/* ==========================================
   Chứng Chỉ BĐS Nhật - スタイルシート
   ========================================== */

/* ---------- Google Fonts（Noto Sans JP）----------ベトナム語声調記号対応 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ---------- CSS変数（カラーパレット） ---------- */
:root {
  --color-main: #DA251D;        /* メイン（赤）ベトナム国旗カラー */
  --color-accent: #FFCD00;      /* アクセント（金）ベトナム国旗カラー */
  --color-base: #0A1628;        /* ベース（ダークネイビー） */
  --color-white: #FFFFFF;       /* テキスト（白） */
  --color-gray: #f4f4f4;        /* 背景グレー */
  --color-text-dark: #1a1a1a;   /* 本文ダーク */
  --font-main: 'Noto Sans JP', sans-serif;
  --transition: 0.3s ease;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* ---------- リセット ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-main);
  color: var(--color-text-dark);
  background-color: var(--color-white);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- 共通ユーティリティ ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 48px;
  font-size: 1rem;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-main);
  text-align: center;
}

.btn-primary {
  background-color: var(--color-main);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #b81e17;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(218, 37, 29, 0.35);
}

.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-base);
}

.btn-accent:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 205, 0, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

/* ========== ヘッダー ========== */
.header {
  background-color: var(--color-base);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-main);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ロゴ */
.logo {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.2;
}

.logo-red {
  color: var(--color-main);
}

.logo-gold {
  color: var(--color-accent);
}

/* ナビゲーション */
.nav-list {
  display: flex;
  gap: 32px;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding-bottom: 4px;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-white);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

/* ハンバーガーメニュー（スマートフォン用） */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ハンバーガー → バツ印アニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== ヒーローセクション ========== */
.hero {
  background-color: var(--color-base);
  color: var(--color-white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* 背景の斜線グラデーション */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(218, 37, 29, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* 右下の装飾 */
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 205, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--color-accent);
  display: block;
}

.hero-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 36px;
  line-height: 1.85;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ヒーロー画像 */
.hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* ========== 「なぜ宅建か」セクション ========== */
.why-section {
  background-color: var(--color-base);
  color: var(--color-white);
}

.why-section .section-title {
  color: var(--color-white);
}

.why-section .section-title .accent {
  color: var(--color-accent);
}

.why-section .section-subtitle {
  color: rgba(255, 255, 255, 0.68);
}

/* 統計カード */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.stat-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 205, 0, 0.18);
  border-radius: 10px;
  padding: 36px 24px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  background-color: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 205, 0, 0.35);
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-unit {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* ポイント一覧 */
.why-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.why-point {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-point-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(218, 37, 29, 0.35);
}

.why-point-text h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.why-point-text p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* ========== 商品紹介セクション ========== */
.products-section {
  background-color: var(--color-gray);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.product-card {
  background-color: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-header {
  padding: 40px 32px 32px;
  text-align: center;
  position: relative;
}

.product-card-header.app-header {
  background: linear-gradient(135deg, #0f2040 0%, var(--color-base) 100%);
}

.product-card-header.text-header {
  background: linear-gradient(135deg, var(--color-base) 0%, #1a1a2e 100%);
}

.product-icon {
  font-size: 3.8rem;
  margin-bottom: 16px;
}

.product-type {
  display: inline-block;
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 0.73rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.product-card-header h3 {
  color: var(--color-white);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.4;
}

/* 近日公開バッジ */
.product-coming-soon {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: var(--color-accent);
  color: var(--color-base);
  font-size: 0.7rem;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 2px;
}

.product-card-body {
  padding: 28px 32px 36px;
}

.product-card-body p {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.75;
  margin-bottom: 22px;
}

.product-features {
  margin-bottom: 28px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: #444;
  margin-bottom: 9px;
  line-height: 1.5;
}

.product-features li::before {
  content: '✓';
  color: var(--color-main);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========== 運営者プロフィール ========== */
.profile-section {
  background-color: var(--color-white);
}

.profile-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: center;
}

/* プロフィール写真（丸型クリッピング） */
.profile-image-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-label {
  display: inline-block;
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.profile-name {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--color-base);
  margin-bottom: 4px;
}

.profile-name-sub {
  font-size: 0.88rem;
  color: #777;
  margin-bottom: 20px;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.profile-tag {
  background-color: rgba(218, 37, 29, 0.07);
  color: var(--color-main);
  border: 1px solid rgba(218, 37, 29, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.profile-desc {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.85;
}

/* 運営者プロフィールセクション：詳細ページへのテキストリンク */
.profile-more-link {
  display: block;
  margin-top: 16px;
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  text-align: right;
  transition: var(--transition);
}

.profile-more-link:hover {
  text-decoration: underline;
}

/* ========== メーリングリストCTAセクション ========== */
.cta-section {
  background-color: var(--color-main);
  color: var(--color-white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 250px; height: 250px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.cta-section .section-title {
  color: var(--color-white);
  margin-bottom: 12px;
  position: relative;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
  position: relative;
}

/* CTAフォーム */
.cta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  justify-content: center;
  position: relative;
}

.cta-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  min-width: 0;
}

.cta-form input[type="email"]::placeholder {
  color: #aaa;
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-main);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.cta-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 16px;
  position: relative;
}

/* 登録完了メッセージ */
.form-success {
  display: none;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 16px;
}

/* ========== ページヘッダー（内部ページ共通） ========== */
.page-header {
  background-color: var(--color-base);
  color: var(--color-white);
  padding: 60px 0 56px;
  text-align: center;
  border-bottom: 4px solid var(--color-main);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(218, 37, 29, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-header-badge {
  display: inline-block;
  background-color: var(--color-main);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  position: relative;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  line-height: 1.35;
}

.page-header h1 .accent {
  color: var(--color-accent);
}

.page-header p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.97rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  line-height: 1.8;
}

/* ========== モックアップセクション ========== */
.mockup-section {
  background-color: var(--color-gray);
  padding: 80px 0;
}

.mockup-container {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

/* スマートフォン画面モックアップのプレースホルダー
   ※後からアプリのスクリーンショットに差し替え予定
   使用ファイル：images/app-screen-1.jpg, app-screen-2.jpg, app-screen-3.jpg */
.phone-mockup {
  width: 175px;
  height: 360px;
  background: linear-gradient(160deg, #1a2a4a 0%, var(--color-base) 100%);
  border-radius: 28px;
  border: 3px solid rgba(255, 205, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  text-align: center;
  padding: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  line-height: 1.6;
  position: relative;
}

/* スマートフォンのノッチ風装飾 */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* テキスト（本）表紙モックアップのプレースホルダー
   ※後からテキスト表紙画像に差し替え予定
   使用ファイル：images/textbook-cover.jpg */
.book-mockup {
  width: 240px;
  height: 320px;
  background: linear-gradient(135deg, var(--color-main) 0%, #8a0f0a 100%);
  border-radius: 4px 12px 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
  text-align: center;
  padding: 28px;
  box-shadow: -6px 6px 24px rgba(0, 0, 0, 0.28), 2px 0 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* 本の背表紙風装飾 */
.book-mockup::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background-color: rgba(0, 0, 0, 0.22);
  border-radius: 4px 0 0 4px;
}

.book-mockup .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  opacity: 0.7;
  display: block;
}

/* ========== 機能紹介セクション ========== */
.features-section {
  background-color: var(--color-white);
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--color-gray);
  border-radius: 10px;
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.feature-card:hover {
  background-color: var(--color-base);
  border-color: rgba(255, 205, 0, 0.2);
  transform: translateY(-4px);
}

.feature-card:hover .feature-title {
  color: var(--color-accent);
}

.feature-card:hover .feature-desc {
  color: rgba(255, 255, 255, 0.75);
}

.feature-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-base);
  margin-bottom: 10px;
  transition: var(--transition);
}

.feature-desc {
  font-size: 0.87rem;
  color: #666;
  line-height: 1.65;
  transition: var(--transition);
}

/* ========== 近日公開バナー＋事前登録フォーム ========== */
.coming-soon-section {
  background-color: var(--color-base);
  color: var(--color-white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.coming-soon-section::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(218, 37, 29, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.coming-soon-badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-base);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 6px 20px;
  border-radius: 20px;
  margin-bottom: 22px;
  letter-spacing: 0.06em;
  position: relative;
}

.coming-soon-section h2 {
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
}

.coming-soon-section > .container > p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 44px;
  font-size: 0.95rem;
  line-height: 1.8;
  position: relative;
}

/* 事前登録フォーム（内部ページ用） */
.register-form {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.register-form .form-group {
  margin-bottom: 12px;
}

.register-form input[type="text"],
.register-form input[type="email"] {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  outline: none;
  transition: var(--transition);
}

.register-form input:focus {
  box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.35);
}

.register-form .btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  margin-top: 4px;
}

.register-note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
}

/* ========== フッター ========== */
.footer {
  background-color: #06101e;
  color: var(--color-white);
  padding: 52px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 44px;
}

.footer-brand .logo {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
}

.footer-nav h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-nav a {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.58);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
}

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

/* タブレット・スマートフォン共通 */
@media (max-width: 900px) {

  /* ヘッダー：ハンバーガーメニューに切り替え */
  .nav-list {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-base);
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }

  .nav-list.open {
    display: flex;
  }

  .hamburger {
    display: flex;
    order: -1; /* ハンバーガーを左端に */
  }

  /* ロゴを中央に（ハンバーガーの幅分を相殺するため絶対配置） */
  .header-inner {
    position: relative;
  }

  .header-inner > .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    white-space: nowrap;
  }

  /* ヒーロー：1カラムレイアウト */
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  /* 統計：縦並び */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* ポイント：縦並び */
  .why-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 商品カード：縦並び */
  .products-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  /* プロフィール：縦並び */
  .profile-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 480px;
    margin: 0 auto;
  }

  .profile-image-wrap {
    max-width: 220px;
    margin: 0 auto;
  }

  /* フッター：縦並び */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* 機能カード：2カラム */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* CTAフォーム：縦並び */
  .cta-form {
    flex-direction: column;
    padding: 0 16px;
  }

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

/* スマートフォン専用 */
@media (max-width: 540px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 60px 0;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
  }

  .stat-number {
    font-size: 2.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .page-header h1 {
    font-size: 1.7rem;
  }
}

/* ==========================================
   profile.html 専用スタイル
   ========================================== */

/* ========== セクション1：ページヒーロー ========== */
.profile-hero {
  width: 100%;
  height: 520px;
  background-color: var(--color-base);
  background-image: url('../images/ishii-hero.webp');
  background-size: cover;
  background-position: center 30%;
  display: flex;
  align-items: center;
  position: relative;
}

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 20, 45, 0.62);
}

.profile-hero-text {
  color: var(--color-white);
  text-align: center;
  padding: 20px 0;
  position: relative;
  z-index: 1;
}

.profile-hero-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 20px;
}

.profile-hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.06em;
}

/* ========== セクション2：ストーリー本文 ========== */
.story-section {
  background-color: var(--color-white);
}

/* 本文の最大幅を制限して読みやすくする */
.story-body {
  max-width: 720px;
  margin: 0 auto;
}

/* 通常の段落 */
.story-p {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--color-text-dark);
  margin-bottom: 1.6em;
}

/* 締めの段落 */
.story-p--closing {
  font-weight: 700;
  font-size: 1.05rem;
}

/* セリフ（引用ブロック）：左ボーダー＋背景色 */
.story-quote {
  border-left: 4px solid var(--color-main);
  background-color: #fdf5f5;
  padding: 16px 20px;
  margin: 2em 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-text-dark);
  border-radius: 0 6px 6px 0;
}

/* キーとなるセリフ：アクセントカラーのボーダー */
.story-quote--key {
  border-left-color: var(--color-accent);
  background-color: #fffbec;
  font-size: 1.15rem;
  text-align: center;
  border-radius: 6px;
  border-left-width: 0;
  border: 3px solid var(--color-accent);
}

/* ========== セクション3：プロフィール情報カード ========== */
.profile-card-section {
  background-color: var(--color-gray);
}

/* カード本体：ダークネイビー背景 */
.profile-card {
  background-color: var(--color-base);
  border-radius: 14px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 800px;
  margin: 0 auto;
  color: var(--color-white);
}

/* プロフィール写真（丸型クリッピング）
   差し替えファイル：images/ishii-profile.jpg */
.profile-photo-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-accent);
  background-color: rgba(255, 255, 255, 0.06);
  /* 画像が未設定の場合のフォールバック */
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 氏名 */
.profile-info-name {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.profile-info-kana {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

/* プロフィール情報テーブル */
.profile-info-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-info-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.profile-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.profile-info-row dt {
  flex-shrink: 0;
  width: 56px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
}

.profile-info-row dd {
  color: rgba(255, 255, 255, 0.88);
}

/* ========== セクション4：CTAセクション ========== */
.profile-cta-section {
  background-color: var(--color-main);
  color: var(--color-white);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* 装飾：背景の光 */
.profile-cta-section::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.profile-cta-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 40px;
  position: relative;
}

/* ボタンを横並び */
.profile-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
}

/* ========== profile.html レスポンシブ ========== */

/* タブレット */
@media (max-width: 900px) {
  .profile-hero {
    height: 400px;
  }

  .profile-hero-title {
    font-size: 1.75rem;
  }

  .profile-card {
    padding: 36px;
    gap: 36px;
  }
}

/* スマートフォン */
@media (max-width: 540px) {
  /* ヒーロー：高さを縮小 */
  .profile-hero {
    height: 320px;
  }

  .profile-hero-title {
    font-size: 1.3rem;
    br { display: none; } /* 改行をインラインに戻す */
  }

  .profile-hero-subtitle {
    font-size: 0.85rem;
  }

  /* プロフィールカード：縦並び */
  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    gap: 28px;
  }

  .profile-photo-wrap {
    width: 160px;
    height: 160px;
  }

  .profile-info-row {
    justify-content: center;
  }

  /* CTAボタン：縦並び */
  .profile-cta-buttons {
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
  }

  .profile-cta-buttons .btn {
    width: 100%;
    max-width: 320px;
  }

  .profile-cta-title {
    font-size: 1.6rem;
  }
}
