/* ==========================================================
   刻のコレクション 公式サイト 共通スタイル
   ========================================================== */

:root {
  --bg: #F4F0E6;        /* 背景 */
  --surface: #FDFBF5;   /* 面 */
  --line: #E3DAC4;      /* 罫線 */
  --indigo: #2F6F78;    /* 藍 */
  --gold: #A9822D;      /* 金 */
  --ink: #2A2620;       /* 墨 */
  --sub: #5B5344;       /* 補助 */
  --faint: #9A9080;     /* 淡 */
  --vermilion: #B03A2E; /* 朱(朱印) */
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  /* B-1: 和紙の質感(feTurbulenceノイズ・不透明度3.5%) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)' opacity='0.035'/></svg>");
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3,
.serif {
  font-family: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  line-height: 1.5;
}

a {
  color: var(--indigo);
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* B-3: セクション見出し上の金罫 */
.rule-above::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 18px;
}

.booklet .rule-above::before {
  margin-left: 0;
}

/* ---------- ヘッダー ---------- */

.site-header {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  transition: background 0.25s, box-shadow 0.25s;
}

/* G-3: スクロール時は半透明白+blur */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(42, 38, 32, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

/* W-10c: 実アプリアイコン(iOS風角丸22%) */
.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  color: var(--sub);
  text-decoration: none;
  font-size: 14px;
}

.header-nav a:hover {
  color: var(--indigo);
}

/* ---------- ボタン ---------- */

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #FDFBF5;
  text-decoration: none;
  border-radius: 12px;
  padding: 10px 20px;
  line-height: 1.3;
  transition: opacity 0.15s;
}

.btn-store:hover {
  opacity: 0.85;
}

.btn-store.is-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.75;
}

.btn-store .store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-store .store-label {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-store .store-label small {
  font-size: 10px;
  color: #D8D3C8;
  letter-spacing: 0.04em;
}

.btn-store .store-label span {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-header .btn-store {
  padding: 7px 16px;
}

.site-header .btn-store .store-label small {
  display: none;
}

.site-header .btn-store .store-label span {
  font-size: 13px;
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  overflow: hidden;
  /* D-1: 松本城の写真を背景全面に */
  background: url("img/photo-matsumoto.jpg") center 40% / cover no-repeat;
}

/* D-1: 和紙色オーバーレイ(上端ほど濃く) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(244, 240, 230, 0.94) 0%,
    rgba(244, 240, 230, 0.87) 55%,
    rgba(244, 240, 230, 0.80) 100%
  );
  z-index: 0;
}

/* B-2: 朱印風モチーフ(二重円+「刻」) */
.hero-seal {
  position: absolute;
  top: -70px;
  right: -90px;
  width: 520px;
  height: 520px;
  color: var(--vermilion);
  opacity: 0.05;
  z-index: 1;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  padding-top: 112px;
  padding-bottom: 112px;
}

.hero h1 {
  font-size: clamp(30px, 8.4vw, 44px);
  letter-spacing: 0.06em;
  line-height: 1.45;
  margin-bottom: 24px;
}

.hero-lead {
  color: var(--sub);
  max-width: 26em;
  margin-bottom: 32px;
}

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

.hero-cta-note {
  color: var(--faint);
  font-size: 13px;
}

.hero-visual {
  justify-self: center;
}

/* 端末フレーム (F-1: 柔らかい大きめの影) */
.device-frame {
  width: 270px;
  padding: 12px;
  background: #1C1A17;
  border-radius: 40px;
  filter: drop-shadow(0 24px 48px rgba(42, 38, 32, 0.18));
}

.device-frame img {
  border-radius: 28px;
}

/* ---------- 紙上旅行セクション (E-1) ---------- */

.paper-travel {
  background: url("img/photo-gusuku-wall.jpg") center 60% / cover no-repeat;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}

.paper-travel-card {
  background: rgba(244, 240, 230, 0.92);
  border-radius: 20px;
  max-width: 640px;
  padding: 48px;
  text-align: center;
}

.pt-kicker {
  color: var(--gold);
  font-family: "Shippori Mincho", serif;
  font-size: 14px;
  letter-spacing: 0.5em;
  margin-bottom: 14px;
}

.paper-travel-card h2 {
  font-size: 26px;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.paper-travel-card p:last-child {
  color: var(--sub);
  font-size: 15px;
  text-align: left;
}

/* ---------- 機能セクション ---------- */

.features {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 112px 0;
}

.section-title {
  font-size: 30px;
  letter-spacing: 0.05em;
  text-align: center;
  margin-bottom: 48px;
}

/* W-9b: 左右交互の機能行 */
.feature-rows {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.feature-row--flip {
  grid-template-columns: 1fr 320px;
}

.feature-row--flip .feature-row-visual {
  order: 2;
}

.feature-row-visual {
  display: flex;
  justify-content: center;
}

.feature-row .device-frame {
  width: 280px;
  padding: 10px;
  border-radius: 36px;
}

.feature-row .device-frame img {
  border-radius: 26px;
}

.feature-num {
  color: var(--gold);
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  letter-spacing: 0.2em;
}

.feature-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 22px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.feature-row-text p {
  color: var(--sub);
  font-size: 15px;
  line-height: 2.1;
  max-width: 34em;
}

/* ---------- 姫路城フォトバンド (E-2) ---------- */

.photo-band {
  position: relative;
}

.photo-band img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
}

.photo-band-caption {
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: #FFFFFF;
  font-size: 12px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

/* ---------- しおりセクション ---------- */

.booklet {
  padding: 112px 0;
}

.booklet .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}

.booklet h2 {
  font-size: 30px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.booklet p {
  color: var(--sub);
  max-width: 32em;
}

/* ---------- フッター ---------- */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
}

.footer-brand {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 22%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--sub);
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

.footer-note {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 2;
  margin-bottom: 16px;
}

.footer-copy {
  color: var(--faint);
  font-size: 12.5px;
}

/* ---------- 文面ページ（プライバシー/規約/問い合わせ） ---------- */

.doc-main {
  padding: 56px 0 80px;
}

.doc-main .container {
  max-width: 760px;
}

.doc-title {
  font-size: 30px;
  letter-spacing: 0.05em;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.doc-body p {
  margin-bottom: 1.4em;
  color: var(--ink);
  font-size: 15px;
}

.doc-body h2 {
  font-size: 17px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  margin: 2.2em 0 0.8em;
}

.doc-body .doc-date {
  margin-top: 3em;
  color: var(--sub);
}

/* ---------- お問い合わせ ---------- */

.contact-lead {
  color: var(--sub);
  font-size: 15px;
  margin-bottom: 32px;
}

.contact-form-wrap iframe {
  width: 100%;
  border: none;
  display: block;
}

/* ---------- G-1: スクロールフェードイン ---------- */

.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- レスポンシブ ---------- */

@media (max-width: 820px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 40px;
  }

  .hero-kicker {
    font-size: 13px;
    letter-spacing: 0.4em;
  }

  .hero-seal {
    width: 360px;
    height: 360px;
    top: -50px;
    right: -80px;
  }

  /* I-1: スクショは幅70%中央寄せ */
  .hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .hero-visual .device-frame {
    width: 70%;
    max-width: 270px;
  }

  .paper-travel {
    min-height: 360px;
    padding: 48px 20px;
  }

  .paper-travel-card {
    padding: 32px 24px;
  }

  .paper-travel-card h2 {
    font-size: 22px;
  }

  .features {
    padding: 72px 0;
  }

  /* W-9b SP: 画像→文の縦積み */
  .feature-rows {
    gap: 56px;
  }

  .feature-row,
  .feature-row--flip {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-row--flip .feature-row-visual {
    order: 0;
  }

  .feature-row .device-frame {
    width: 62%;
    max-width: 240px;
  }

  .photo-band img {
    height: 260px;
  }

  .booklet {
    padding: 72px 0;
  }

  .booklet .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* I-2: 画像→文の縦順 */
  .booklet-visual {
    order: 1;
    justify-self: center;
  }

  .booklet-text {
    order: 2;
  }

  .section-title,
  .booklet h2 {
    font-size: 21px;
  }

  .header-nav .nav-anchor {
    display: none;
  }

  .device-frame {
    width: 230px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 15px;
    white-space: nowrap;
  }

  .site-header .btn-store {
    padding: 6px 12px;
  }

  .site-header .btn-store .store-label span {
    font-size: 12px;
    white-space: nowrap;
  }

  .site-header .btn-store .store-icon {
    width: 18px;
    height: 18px;
  }
}
