/* ==========================================================================
   天草プロジェクト 特設ナラティブページ CSS
   ========================================================================== */

/* 1. 変数定義 (CSS Variables)
   ========================================================================== */
:root {
  /* カラーシステム */
  --color-ocean: #0A1C36;          /* 深い海の藍: ベースカラー */
  --color-sunset: #E0A96D;         /* 夕日の金: アクセント */
  --color-island: #4D6052;         /* 島の緑: セカンダリ */
  --color-sand: #F7F5F0;           /* 砂浜のような淡いベージュ: 背景用 */
  --color-white: #FFFFFF;
  --color-text-dark: #1E293B;      /* 深い色用テキスト */
  --color-text-light: #F8FAFC;     /* 明るい色用テキスト */
  --color-text-sub: #64748B;       /* サブテキスト */
  --color-midnight-light: #112240; /* 少し明るいダークブルー */
  --color-gold: #D4AF37;           /* リッチゴールド */

  /* フォントシステム */
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Inter', 'Outfit', 'Noto Sans JP', sans-serif;

  /* 共通設定 */
  --transition-speed: 0.4s;
  --container-width: 1200px;
  --container-narrow-width: 720px; /* 物語用の幅 */
}

/* 2. リセット & ベーススタイル
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-text-dark);
  line-height: 2;
  font-weight: 300;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-speed), background-color var(--transition-speed);
}

li {
  list-style: none;
}

/* 共通コンポーネント */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 3. ヘッダー (Header)
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10, 28, 54, 0.05);
  transition: padding var(--transition-speed);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.header__logo a {
  display: flex;
  flex-direction: column;
}

.header__logo .logo-en {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-ocean);
}

.header__logo .logo-jp {
  font-family: var(--font-serif);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--color-sunset);
  margin-top: 0.1rem;
}

.header__nav {
  display: flex;
  align-items: center;
}

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

.header__nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
}

.header__nav-link:hover {
  color: var(--color-sunset);
}

.header__btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-white);
  background-color: var(--color-ocean);
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-ocean);
  transition: all var(--transition-speed);
  letter-spacing: 0.05em;
}

.header__btn:hover {
  background-color: transparent;
  color: var(--color-ocean);
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 22px;
  position: relative;
  z-index: 101;
}

.header__burger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background-color: var(--color-ocean);
  left: 0;
  transition: all 0.3s ease-in-out;
}

.header__burger span:nth-child(1) { top: 0; }
.header__burger span:nth-child(2) { top: 10px; }
.header__burger span:nth-child(3) { top: 20px; }

/* 4. ヒーローセクション
   ========================================================================== */
.narrative-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.narrative-hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.narrative-hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(10, 28, 54, 0.45) 0%, rgba(10, 28, 54, 0.85) 100%);
  z-index: 2;
}

.narrative-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slowZoom 20s infinite alternate ease-in-out;
}

.img-note {
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  z-index: 3;
}

.narrative-hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  color: var(--color-text-light);
  padding-top: 4rem;
  transform: translateY(20px);
  opacity: 0;
  animation: fadeInUp 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
}

.narrative-hero__sub {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  color: var(--color-sunset);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.narrative-hero__title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.narrative-hero__desc {
  font-size: 1.1rem;
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.8;
}

/* 5. ストーリーセクション共通
   ========================================================================== */
.narrative-section {
  padding: 8rem 0;
  background-color: var(--color-white);
  border-bottom: 1px solid rgba(10, 28, 54, 0.05);
}

.narrative-section:last-of-type {
  border-bottom: none;
}

.sec-intro { background-color: var(--color-white); }
.sec-fact { background-color: var(--color-sand); }
.sec-rebuild { background-color: var(--color-white); }
.sec-future { background-color: var(--color-sand); }

.narrative-h2 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--color-ocean);
  margin-bottom: 3.5rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.narrative-h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-sunset);
}

.narrative-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text-dark);
  line-height: 2.1;
  letter-spacing: 0.04em;
  text-align: justify;
}

.narrative-text p {
  margin-bottom: 2rem;
}

.narrative-text p:last-child {
  margin-bottom: 0;
}

.image-placeholder {
  width: 100%;
  height: 380px;
  background-color: rgba(10, 28, 54, 0.03);
  border: 1px dashed rgba(10, 28, 54, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4rem 0;
  padding: 2rem;
  text-align: center;
  color: var(--color-text-sub);
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

/* 6. CTA（アクションエリア）
   ========================================================================== */
.narrative-cta {
  padding: 8rem 0;
  background-color: var(--color-ocean);
  color: var(--color-text-light);
  text-align: center;
}

.cta-box {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(224, 169, 109, 0.2);
  padding: 5rem 3rem;
}

.cta-box h3 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--color-sunset);
  margin-bottom: 1.5rem;
  letter-spacing: 0.12em;
}

.cta-box p {
  font-size: 1rem;
  color: rgba(248, 250, 252, 0.8);
  margin-bottom: 3.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-narrative-gold {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-ocean);
  background-color: var(--color-sunset);
  padding: 1rem 2.2rem;
  border: 1px solid var(--color-sunset);
  transition: all var(--transition-speed);
}

.btn-narrative-gold:hover {
  background-color: transparent;
  color: var(--color-sunset);
  transform: translateY(-2px);
}

.btn-narrative-ocean {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.08);
  padding: 1rem 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-speed);
}

.btn-narrative-ocean:hover {
  background-color: var(--color-white);
  color: var(--color-ocean);
  transform: translateY(-2px);
}

.btn-narrative-outline {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(248, 250, 252, 0.6);
  background-color: transparent;
  padding: 1rem 2.2rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
  transition: all var(--transition-speed);
}

.btn-narrative-outline:hover {
  border-color: var(--color-sunset);
  color: var(--color-sunset);
  transform: translateY(-2px);
}

/* 7. フッター
   ========================================================================== */
.footer {
  background-color: var(--color-ocean);
  color: var(--color-text-light);
  padding: 6rem 0 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5rem;
}

.footer__info {
  max-width: 500px;
}

.footer__logo-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--color-white);
}

.footer__addr {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: rgba(248, 250, 252, 0.8);
}

.footer__note {
  font-size: 0.78rem;
  color: rgba(248, 250, 252, 0.5);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer__link-item {
  font-size: 0.9rem;
  color: rgba(248, 250, 252, 0.8);
  letter-spacing: 0.08em;
}

.footer__link-item:hover {
  color: var(--color-sunset);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
}

.footer__copyright {
  font-size: 0.75rem;
  color: rgba(248, 250, 252, 0.4);
  letter-spacing: 0.1em;
}

/* 8. アニメーションキーフレーム
   ========================================================================== */
@keyframes slowZoom {
  0% { transform: scale(1.01); }
  100% { transform: scale(1.06); }
}

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

/* 9. メディアクエリ
   ========================================================================== */

/* タブレットサイズ (1024px以下) */
@media screen and (max-width: 1024px) {
  .narrative-hero__title {
    font-size: 2.8rem;
  }

  .narrative-h2 {
    font-size: 1.6rem;
  }

  .image-placeholder {
    height: 320px;
    margin: 3rem 0;
  }
}

/* スマホサイズ (768px以下) */
@media screen and (max-width: 768px) {
  /* スマホナビゲーション */
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    padding: 6rem 2rem 3rem 2rem;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    transition: right 0.4s ease;
    z-index: 99;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    width: 100%;
  }

  .header__btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
  }

  .header__burger {
    display: block;
  }

  /* ヒーロー */
  .narrative-hero__title {
    font-size: 2.2rem;
  }

  .narrative-hero__desc {
    font-size: 0.95rem;
  }

  /* 本文 */
  .narrative-h2 {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
  }

  .narrative-text {
    font-size: 0.95rem;
    line-height: 1.9;
  }

  .image-placeholder {
    height: 240px;
    margin: 2.5rem 0;
  }

  /* CTA */
  .cta-box {
    padding: 3.5rem 1.5rem;
  }

  .cta-box h3 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .btn-narrative-gold,
  .btn-narrative-ocean,
  .btn-narrative-outline {
    width: 100%;
    text-align: center;
  }

  .footer__wrapper {
    flex-direction: column;
    gap: 3rem;
  }
}

/* 10. 画像表示用追加スタイル (Added for AI Images)
   ========================================================================== */
.narrative-img-block {
  width: 100%;
  margin: 4rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.narrative-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(10, 28, 54, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.narrative-img-block .img-note {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--color-text-sub);
  text-align: center;
  position: static;
  opacity: 0.85;
}

@media screen and (max-width: 768px) {
  .narrative-img-block {
    margin: 2.5rem 0;
  }
}

/* 非公式サイトの免責文用スタイル */
.site-disclaimer {
  max-width: 960px;
  margin: 3rem auto 1.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  text-align: center;
}

.site-disclaimer p {
  margin: 0;
}


