/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本スタイル */
:root {
  --primary-color: #2C3E50; /* 背景色を深いネイビーに変更 */
  --secondary-color: #34495E; /* セカンダリ背景色 */
  --accent-color: #FFC107; /* アクセントをゴールドに変更 */
  --text-color: #ECF0F1; /* 基本テキスト色 */
  --heading-color: #FFFFFF; /* 見出しテキスト色 */
  --red-accent: #E53935; /* 赤いアクセント */
  --blue-accent: #1E88E5; /* 青いアクセント */
  --border-radius: 8px; /* 基本的な角丸半径 */
  --section-padding: 100px 0; /* セクションの基本パディング */
  --transition: all 0.3s ease; /* 基本トランジション */
}

body {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 共通コンポーネント */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1em;
  line-height: 1.8;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--red-accent);
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  font-size: 0.9rem;
}

.primary-btn {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border: 2px solid var(--accent-color);
}

.primary-btn:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.secondary-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.secondary-btn:hover {
  background-color: var(--text-color);
  color: var(--primary-color);
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-right {
  opacity: 0;
  animation: fadeInRight 1s ease forwards;
  animation-delay: 0.3s;
}

.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

/* セクションのスタイル */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-line {
  width: 80px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 20px auto;
}

.section-subheading {
  font-size: 1.2rem;
  color: var(--text-color);
  font-weight: 300;
  margin-top: 10px;
}

/* ヘッダースタイル */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 25px 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(44, 62, 80, 0.95);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  width: 50px;
  margin-right: 15px;
}

h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--heading-color);
}

nav ul {
  display: flex;
  list-style-type: none;
  align-items: center;
}

nav ul li {
  margin-left: 40px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 5px;
}

nav ul li a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
  color: var(--accent-color);
}

nav ul li a:hover:after, nav ul li a.active:after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* ヒーローセクション */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background-color: var(--primary-color);
}

.hero-content {
  width: 100%;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 80px;
}

.main-message {
  flex: 1;
  max-width: 600px;
}

.message-wrapper {
  display: flex;
  flex-direction: column;
}

/*メインメッセージのスタイル*/
.top-message, .bottom-message {
  margin-bottom: 30px;
}

.top-message p,
/* .middle-message p, */
.bottom-message p {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1.3;
}

.highlight {
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--red-accent);
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.8;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

/* コンパスのスタイル */
.compass-animation {
  position: relative;
  width: 400px;
  height: 400px;
  z-index: 1;
}

.compass-svg {
  width: 100%;
  height: 100%;
}

/* コンパスニードルのアニメーション */
.compass-needle {
  transform-origin: 250px 250px;
  transition: transform 0.3s ease;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  transition: var(--transition);
}

.scroll-text {
  margin-bottom: 10px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-color);
  border-radius: 15px;
  position: relative;
}

.scroll-arrow:before {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-color);
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { transform: translate(-50%, 0); opacity: 0; }
  40% { opacity: 1; }
  80% { transform: translate(-50%, 20px); opacity: 0; }
  100% { opacity: 0; }
}

/* About Usセクション */
.about-section {
  padding: var(--section-padding);
  background-color: var(--secondary-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.navigation-tools {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation-tools svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.3));
}

.about-text {
  padding: 20px;
}

.about-text h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
}

.about-text h4 {
  color: var(--heading-color);
  margin: 30px 0 15px;
  font-size: 1.3rem;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: var(--text-color);
}

.about-list li:before {
  content: "•";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.5em;
  line-height: 1;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.stat-desc {
  color: var(--text-color);
  font-size: 1.1rem;
}

/* プロダクトセクション */
.product-section {
  padding: var(--section-padding);
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
}

.bg-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.05;
}

.compass-line {
  position: absolute;
  width: 2px;
  height: 200%;
  background-color: var(--accent-color);
  transform: rotate(45deg);
}

.compass-line:nth-child(1) {
  left: 30%;
  top: -50%;
}

.compass-line:nth-child(2) {
  left: 60%;
  top: -50%;
}

.compass-line:nth-child(3) {
  left: 90%;
  top: -50%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 1;
}

.product-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px;
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-color);
}

.product-icon {
  margin-bottom: 20px;
}

.product-card h3 {
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.product-card p {
  margin-bottom: 25px;
  flex-grow: 1;
}

.product-link {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
}

.product-link span {
  transition: var(--transition);
  margin-left: 5px;
}

.product-link:hover span {
  transform: translateX(5px);
}

/* フッター */
.footer {
  background-color: var(--secondary-color);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1;
}

.footer-logo h2 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: var(--text-color);
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer-bottom a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: var(--red-accent);
}

/* レスポンシブデザイン */
@media screen and (max-width: 1200px) {
  .compass-animation {
    width: 400px;
    height: 400px;
  }
}

@media screen and (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .main-message {
    margin-bottom: 40px;
  }

  .message-wrapper {
    max-width: 100%;
  }

  .compass-animation {
    width: 350px;
    height: 350px;
  }

  .top-message p,
  .bottom-message p {
    font-size: 2.5rem;
  }

  .highlight {
    font-size: 2.5rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    min-height: 300px;
  }

  .about-text {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background-color: var(--secondary-color);
  padding: 80px 40px;
  transition: var(--transition);
  z-index: 999;
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav ul li {
  margin: 0;
}

.mobile-nav ul li a {
  display: block;
  padding: 10px 0;
  font-size: 1.2rem;
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-nav ul li a:hover {
  color: var(--accent-color);
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

@media screen and (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  h2 {
    font-size: 2rem;
  }

  .top-message p,
  .bottom-message p {
    font-size: 2rem;
  }

  .highlight {
    font-size: 2rem;
  }

  .footer-links {
    display: none;
  }
}

@media screen and (max-width: 480px) {
  .compass-animation {
    width: 300px;
    height: 300px;
  }

  .top-message p,
  .bottom-message p {
    font-size: 1.8rem;
  }

  .highlight {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* データ分析セクションのスタイル */
.data-analysis {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.data-analysis::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%232a2a2a"/><path d="M0 0h100v100H0z" fill="%231a1a1a" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.1;
    z-index: 1;
}

.data-analysis .container {
    position: relative;
    z-index: 2;
}

.data-analysis h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
}

.data-analysis .subtitle {
    color: #ccc;
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.2em;
}

.data-analysis .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.data-analysis .feature {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.data-analysis .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.data-analysis .feature h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.data-analysis .feature p {
    color: #ccc;
    line-height: 1.6;
}

/* 企業データ表示用のスタイル */
.metric-card, .finance-card, .basic-info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-card h3, .finance-card h3, .basic-info-card h3 {
    color: #fff;
    margin-bottom: 15px;
}

.metric-card p, .finance-card p, .basic-info-card p {
    color: #ccc;
    margin: 5px 0;
}

/* 企業選択用のスタイル */
#company-select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    display: block;
}

#company-select option {
    background: #2a2a2a;
    color: #fff;
}
