/* ==========================================
   フィンガープリントプロファイリング y.minami
   メインスタイルシート
   ========================================== */

/* Font Awesome Icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* カラーパレット
   --color-primary: #E8F4F8 (ベリーペールスカイブルー)
   --color-secondary: #F0F8FB (ソフトアクア)
   --color-white: #FFFFFF (ピュアホワイト)
   --color-gold: #C9A961 (リッチゴールド)
   --color-text: #4A4A4A (チャコールグレー)
   --color-light-blue: #D0EBF5 (ライトブルー)
   --color-accent: #9DD4E5 (アクセントブルー)
*/

:root {
  --color-primary: #E8F4F8;
  --color-secondary: #F0F8FB;
  --color-white: #FFFFFF;
  --color-gold: #C9A961;
  --color-text: #4A4A4A;
  --color-light-blue: #D0EBF5;
  --color-accent: #9DD4E5;
  --font-main: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
}

/* ==========================================
   リセット & ベーススタイル
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

/* ==========================================
   ヘッダー
   ========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
}

.header-sub {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: var(--color-secondary);
  width: 100%;
  padding: 0.75rem 2rem;
  border-top: 1px solid rgba(157, 212, 229, 0.3);
  clear: both;
}

.header-sub .nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.header-sub .nav-menu a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.header-sub .nav-menu a:hover {
  color: var(--color-gold);
}

/* デスクトップではモバイル専用メニューを非表示 */
.mobile-only {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 100px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.logo-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.05em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-text);
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.3s ease;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
  width: 100%;
}

/* ドロップダウンは削除 */

.cta-button {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-accent), var(--color-light-blue));
  color: var(--color-white);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(157, 212, 229, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(157, 212, 229, 0.4);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================
   ヒーローセクション
   ========================================== */

.hero {
  padding: 250px 2rem 100px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(157, 212, 229, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 3rem;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--color-gold), #D4B880);
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 169, 97, 0.4);
}

/* ==========================================
   セクション共通
   ========================================== */

.section {
  padding: 80px 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-accent));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 4rem;
  opacity: 0.8;
}

.section-alt {
  background-color: var(--color-secondary);
}

/* ==========================================
   カード
   ========================================== */

.card {
  background-color: var(--color-white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #FFD700, #FFA500, #FF8C00);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

.card-icon i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.card-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
}

/* ==========================================
   グリッドレイアウト
   ========================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ==========================================
   ボタン
   ========================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-light-blue));
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(157, 212, 229, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(157, 212, 229, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-gold), #D4B880);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ==========================================
   フッター
   ========================================== */

.footer {
  background-color: #2C3E50;
  color: var(--color-white);
  padding: 60px 2rem 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--color-gold);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: var(--color-white);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ==========================================
   アニメーション
   ========================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.8s ease;
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }

  .logo img {
    height: 40px;
  }

  .logo-title {
    font-size: 0.8rem;
  }

  .logo-subtitle {
    font-size: 0.7rem;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* 2行目のサブメニューを非表示 */
  .header-sub {
    display: none;
  }

  /* モバイルメニュー内にサブメニューを表示 */
  .nav-menu > li {
    width: 100%;
    text-align: center;
  }

  /* モバイル専用メニューを表示 */
  .mobile-only {
    display: list-item;
  }

  .cta-button {
    margin-top: 1rem;
  }

  .hero {
    padding: 0 1.5rem;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-container {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 60px 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }
}
