@charset "UTF-8";

/* =========================================================
   佐隆板金住宅リフォーム - 共通スタイル (common.css)
   コンセプト: 静かな職人気質 / エディトリアル・ホワイト
   明朝体を主役に、余白・極細罫・苔緑アクセントで上質に。
   v2: ローダー演出 / ヘッダー挙動 / メニュー / CTA / フッター刷新
   ========================================================= */

/* ---- デザイントークン ---- */
:root {
  --paper: #faf9f5;            /* 紙のような白（基調） */
  --paper-2: #f3f1ea;          /* やや沈んだ背景 */
  --paper-3: #ebe8df;          /* 区切り背景 */
  --ink: #1b201d;              /* 文字（黒に近い墨） */
  --ink-soft: #565a54;
  --ink-mute: #8a8c83;
  --moss: #2f4a3c;             /* アクセント（苔緑） */
  --moss-dark: #213729;
  --moss-soft: #5d7d6a;
  --moss-pale: #e6ece7;        /* 緑の極淡い面 */
  --line: #e3ded3;             /* 極細罫 */
  --line-strong: #d3cdbf;
  --line-green: #06c755;       /* LINE公式カラー */

  --serif: "Shippori Mincho B1", "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "EB Garamond", "Shippori Mincho B1", serif;

  /* 旧トークン互換エイリアス（下層ページCSS用） */
  --color-bg: var(--paper);
  --color-bg-soft: var(--paper-2);
  --color-bg-mute: var(--paper-3);
  --color-text: var(--ink);
  --color-text-soft: var(--ink-soft);
  --color-text-mute: var(--ink-mute);
  --color-accent: var(--moss);
  --color-accent-dark: var(--moss-dark);
  --color-accent-soft: var(--moss-soft);
  --color-border: var(--line);
  --color-line: var(--line-green);
  --font-serif: var(--serif);
  --font-sans: var(--sans);

  --maxw: 1160px;
  --maxw-wide: 1320px;
  --maxw-narrow: 880px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-expo: cubic-bezier(0.87, 0, 0.13, 1);
  --shadow-sm: 0 4px 24px rgba(27, 32, 29, 0.06);
  --shadow-md: 0 18px 50px rgba(27, 32, 29, 0.12);
  --shadow-lg: 0 30px 80px rgba(27, 32, 29, 0.16);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.95;
  font-size: 16px;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 微細なグレイン質感（紙の風合い） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--moss); color: #fff; }

:focus-visible {
  outline: 2px solid var(--moss-soft);
  outline-offset: 3px;
}

/* ---- レイアウト共通 ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 28px;
}
.container--narrow { max-width: var(--maxw-narrow); }
.container--wide { max-width: var(--maxw-wide); }

.section { padding: 130px 0; position: relative; }
.section--soft { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #e9e7df; }

/* 見出しブロック（既定で中央揃え） */
.section-head { margin-bottom: 70px; text-align: center; }
.section-head--center { text-align: center; }
.section-head--left { text-align: left; }
.section-head .en {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--en);
  font-size: 0.9rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--moss-soft);
  margin-bottom: 22px;
}
.section-head .en::before,
.section-head .en::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--moss-soft);
  opacity: 0.7;
}
.section-head--left .en::before { display: none; }
.section-head .ja {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.5;
  font-feature-settings: "palt";
}
.section-head .lead {
  margin: 26px auto 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 640px;
}
.section-head--left .lead { margin-inline: 0; }

.accent { color: var(--moss); }
.serif { font-family: var(--serif); }

/* 装飾用の薄い背景番号・英字 */
.ghost-num,
.ghost-word {
  position: absolute;
  font-family: var(--en);
  font-size: clamp(8rem, 22vw, 19rem);
  font-weight: 500;
  line-height: 0.8;
  color: var(--ink);
  opacity: 0.035;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.ghost-word { font-size: clamp(4.5rem, 12vw, 11rem); }

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 40px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: color 0.45s var(--ease), background 0.45s var(--ease),
              border-color 0.45s var(--ease), transform 0.45s var(--ease),
              box-shadow 0.45s var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* 光のスイープ */
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  z-index: -1;
}
.btn:hover::after { left: 130%; }
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }

.btn--primary { background: var(--moss); color: #fff; box-shadow: 0 8px 24px rgba(47, 74, 60, 0.25); }
.btn--primary:hover { background: var(--moss-dark); transform: translateY(-3px); box-shadow: 0 14px 32px rgba(47, 74, 60, 0.32); }
.btn--outline { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--line { background: var(--line-green); color: #fff; box-shadow: 0 8px 24px rgba(6, 199, 85, 0.25); }
.btn--line:hover { filter: brightness(0.95); transform: translateY(-3px); }
.btn--ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light { background: #fff; color: var(--moss); }
.btn--light:hover { background: var(--paper-3); transform: translateY(-3px); }

/* テキストリンク（共通化） */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--moss);
  font-weight: 500;
  padding-bottom: 5px;
  position: relative;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--moss-soft);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.text-link:hover::after { transform: scaleX(0.4); }
.text-link:hover { color: var(--moss-dark); }
.text-link--light { color: #fff; }
.text-link--light::after { background: rgba(255,255,255,0.5); }
.text-link--light:hover { color: #fff; }

/* =========================================================
   ローダー（初回のみフル演出 / 回遊時は短縮）
   ========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--paper);
  transition: transform 0.9s var(--ease-expo), visibility 0.9s;
}
.loader.is-hidden {
  transform: translateY(-100%);
  visibility: hidden;
}
.loader__logo {
  width: 150px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--en);
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--ink-mute);
  font-size: 0.78rem;
  background: #fff;
  animation: loaderLogo 1.2s var(--ease-out) both;
  overflow: hidden;
}
.loader__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.loader__name {
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--ink-soft);
  animation: loaderLogo 1.2s var(--ease-out) 0.15s both;
}
@keyframes loaderLogo {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.loader__bar {
  width: 200px;
  height: 1.5px;
  background: var(--line);
  overflow: hidden;
  position: relative;
  animation: loaderLogo 1.2s var(--ease-out) 0.3s both;
}
.loader__bar::after {
  content: ""; position: absolute; inset: 0; width: 40%;
  background: var(--moss);
  animation: loaderslide 1.1s var(--ease) infinite;
}
@keyframes loaderslide { 0% { left: -40%; } 100% { left: 100%; } }

/* 回遊時（2回目以降）はシンプルに即フェード */
.loader.is-quick { transition: opacity 0.45s var(--ease), visibility 0.45s; }
.loader.is-quick.is-hidden { transform: none; opacity: 0; }
.loader.is-quick .loader__logo,
.loader.is-quick .loader__name,
.loader.is-quick .loader__bar { animation-duration: 0.01s; animation-delay: 0s; }

/* =========================================================
   ヘッダー
   ========================================================= */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: height 0.4s var(--ease), border-color 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              transform 0.5s var(--ease);
}
/* 背景・ぼかしは ::before に分離する。
   backdrop-filter を .header 自体に置くと、子孫の position:fixed
   （SP版フルスクリーンメニューの .nav）がヘッダー基準で配置されてしまうため */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 249, 245, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.4s var(--ease);
}
.header.is-scrolled {
  height: 66px;
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header.is-scrolled::before { background: rgba(250, 249, 245, 0.94); }
/* 下スクロールで隠れ、上スクロールで現れる */
.header.is-hidden { transform: translateY(-105%); }
.header__inner {
  height: 100%;
  max-width: var(--maxw-wide);
  margin-inline: auto;
  padding-inline: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ配置エリア（枠のみ） */
.logo { display: flex; align-items: center; gap: 14px; }
.logo__frame {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-family: var(--en);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-indent: 0.14em;
  color: var(--ink-mute);
  background: #fff;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
}
.logo__frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo:hover .logo__frame { border-color: var(--moss-soft); color: var(--moss); }
.logo__text { display: flex; flex-direction: column; line-height: 1.35; }
.logo__name {
  font-family: var(--serif);
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.logo__sub { font-family: var(--en); font-size: 0.6rem; letter-spacing: 0.26em; color: var(--ink-mute); }

/* ナビ */
.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; align-items: center; gap: 34px; }
.nav__link {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 8px 0;
  color: var(--ink);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px; background: var(--moss);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--moss); }
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-current { color: var(--moss); }

.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn { padding: 11px 22px; font-size: 0.82rem; }

/* モバイルメニュー内の連絡先（JSで挿入） */
.nav__info { display: none; }

/* ハンバーガー */
.hamburger {
  display: none;
  width: 48px; height: 48px;
  border: none; background: transparent;
  position: relative; z-index: 1100;
}
.hamburger span {
  position: absolute; left: 11px; width: 26px; height: 1.5px;
  background: var(--ink); transition: all 0.4s var(--ease);
}
.hamburger span:nth-child(1) { top: 18px; }
.hamburger span:nth-child(2) { top: 24px; width: 18px; }
.hamburger span:nth-child(3) { top: 30px; }
.hamburger.is-active span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.hamburger.is-active span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* =========================================================
   下層ページ共通の見出し（ページヒーロー / 写真背景）
   ========================================================= */
.page-hero {
  position: relative;
  margin-top: 0;
  padding: calc(var(--header-h) + 110px) 0 96px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: var(--ink);
}
.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__media img {
  position: absolute;
  left: 0;
  top: -8%;
  width: 100%;
  height: 116%;
  object-fit: cover;
  will-change: transform;
}
.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18,24,20,0.62) 0%, rgba(18,24,20,0.55) 55%, rgba(18,24,20,0.72) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__en {
  font-family: var(--en);
  font-size: 0.95rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-top: 20px;
  font-feature-settings: "palt";
}
.page-hero__lead {
  margin-top: 22px;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.8);
}
.breadcrumb {
  position: relative;
  margin-top: 30px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.05em;
}
.page-hero .breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 10px; opacity: 0.6; }

/* 写真なしページ（プライバシー等）用フォールバック */
.page-hero--plain {
  background: var(--paper-2);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-hero--plain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 130%, rgba(47,74,60,0.08), transparent 60%);
  pointer-events: none;
}
.page-hero--plain .page-hero__en { color: var(--moss-soft); }
.page-hero--plain .breadcrumb { color: var(--ink-mute); }
.page-hero--plain .breadcrumb a:hover { color: var(--moss); }
.page-hero--plain .page-hero__lead { color: var(--ink-soft); }

/* =========================================================
   共通CTA
   ========================================================= */
.cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(160deg, var(--moss) 0%, var(--moss-dark) 100%);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.08), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(0,0,0,0.2), transparent 50%);
}
/* 大きなゴースト英字 */
.cta::after {
  content: "CONTACT";
  position: absolute;
  left: 50%;
  bottom: -0.18em;
  transform: translateX(-50%);
  font-family: var(--en);
  font-size: clamp(6rem, 17vw, 15rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.cta__inner,
.cta .container { position: relative; z-index: 1; }
.cta__en {
  font-family: var(--en);
  font-size: 0.9rem;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.cta__title { font-family: var(--serif); font-size: clamp(1.6rem, 4.4vw, 2.5rem); font-weight: 600; margin-top: 18px; letter-spacing: 0.1em; font-feature-settings: "palt"; }
.cta__text { margin-top: 22px; color: rgba(255,255,255,0.86); font-size: 0.97rem; }
.cta__actions { margin-top: 44px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta__phone { margin-top: 40px; font-size: 0.84rem; color: rgba(255,255,255,0.78); letter-spacing: 0.08em; }
.cta__phone a { color: #fff; transition: opacity 0.3s var(--ease); }
.cta__phone a:hover { opacity: 0.85; }
.cta__phone strong {
  display: block;
  font-family: var(--en);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  margin-top: 8px;
  font-weight: 500;
}
.cta__phone strong::before { content: "TEL "; font-size: 0.9rem; letter-spacing: 0.24em; color: rgba(255,255,255,0.6); vertical-align: middle; }

/* =========================================================
   フッター
   ========================================================= */
.footer {
  position: relative;
  background: var(--ink);
  color: #c8ccc4;
  padding: 96px 0 120px;
  overflow: hidden;
}
/* 大きなウォーターマーク */
.footer::before {
  content: "SARYU BANKIN";
  position: absolute;
  left: 50%;
  bottom: -0.14em;
  transform: translateX(-50%);
  font-family: var(--en);
  font-size: clamp(4.5rem, 13vw, 11.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.025);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.footer .container { position: relative; z-index: 1; }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand .logo__frame { background: #fff; border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.5); }
.footer__brand .logo__name { color: #fff; }
.footer__brand .logo__sub { color: rgba(255,255,255,0.55); }
.footer__desc { margin-top: 24px; font-size: 0.85rem; line-height: 2.1; color: rgba(255,255,255,0.6); max-width: 380px; }
.footer__col h4 {
  font-family: var(--en);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer__col li { margin-bottom: 13px; }
.footer__col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.footer__col a:hover { color: #fff; padding-left: 5px; }
.footer__info { font-size: 0.84rem; line-height: 1.9; margin: 0; }
.footer__info dt { color: rgba(255,255,255,0.4); font-size: 0.7rem; letter-spacing: 0.14em; margin-top: 14px; }
.footer__info dt:first-child { margin-top: 0; }
.footer__info dd { margin: 3px 0 0; color: rgba(255,255,255,0.8); }
.footer__info dd a:hover { color: #fff; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; padding-top: 32px;
  font-size: 0.74rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}
.footer__bottom a:hover { color: #fff; }

/* =========================================================
   モバイル追従CTAバー（JSで全ページに自動挿入）
   ========================================================= */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  display: none;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -6px 24px rgba(27,32,29,0.16);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--ink);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 13px 8px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}
.mobile-cta a small { font-size: 0.6rem; font-weight: 400; letter-spacing: 0.18em; opacity: 0.85; }
.mobile-cta__tel { background: var(--moss); }
.mobile-cta__line { background: var(--line-green); }

/* 上に戻るボタン（JSで挿入） */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 50px; height: 50px;
  z-index: 1400;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
  border: none; border-radius: 50%;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
  box-shadow: var(--shadow-md);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--moss); transform: translateY(-3px); }
.to-top::before {
  content: ""; width: 10px; height: 10px;
  border-top: 1.5px solid #fff; border-right: 1.5px solid #fff;
  transform: rotate(-45deg); margin-top: 4px;
}

/* =========================================================
   マーキー（流れる英字テキスト）
   ========================================================= */
.marquee {
  overflow: hidden;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: relative;
  z-index: 1;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee__item {
  display: flex;
  align-items: center;
  gap: 48px;
  padding-right: 48px;
  font-family: var(--en);
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  letter-spacing: 0.14em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee__item em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}
.marquee__item i {
  font-style: normal;
  width: 7px; height: 7px;
  background: var(--moss-soft);
  border-radius: 50%;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   スクロールアニメーション
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }

/* 子要素を順番にリビール */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.09s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.18s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.27s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.36s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.45s; }
[data-stagger].is-visible > *:nth-child(7) { transition-delay: 0.54s; }
[data-stagger].is-visible > *:nth-child(8) { transition-delay: 0.63s; }

/* 画像のマスクリビール（カーテンが開くように） */
.reveal-img {
  position: relative;
  overflow: hidden;
}
.reveal-img img {
  transform: scale(1.12);
  transition: transform 1.4s var(--ease-out);
}
.reveal-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper-2);
  transform-origin: left;
  transition: transform 1.1s var(--ease-expo);
  z-index: 2;
}
.reveal-img.is-visible img { transform: scale(1); }
.reveal-img.is-visible::after { transform: scaleX(0); transform-origin: right; }

/* 見出しの行リビール（split-line） */
.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-expo);
}
.is-visible .split-line > span,
.split-line.is-visible > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-stagger] > *,
  .reveal-img img,
  .split-line > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .reveal-img::after { display: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
  body::before { display: none; }
}

/* =========================================================
   レスポンシブ
   ========================================================= */
@media (max-width: 1000px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .section { padding: 92px 0; }
  .hamburger { display: block; }

  /* フルスクリーンメニュー */
  .nav {
    position: fixed; inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 44px;
    background: rgba(250, 249, 245, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-expo);
    overflow-y: auto;
    padding: 90px 0 60px;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; gap: 0; text-align: center; }
  .nav__list li {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
  .nav.is-open .nav__list li { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(1) { transition-delay: 0.16s; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: 0.22s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: 0.28s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: 0.34s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: 0.40s; }
  .nav.is-open .nav__list li:nth-child(6) { transition-delay: 0.46s; }
  .nav__link {
    display: inline-block;
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 13px 0;
  }
  .nav__cta {
    flex-direction: column;
    width: 270px;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s var(--ease-out) 0.52s, transform 0.55s var(--ease-out) 0.52s;
  }
  .nav.is-open .nav__cta { opacity: 1; transform: none; }
  .nav__cta .btn { width: 100%; padding: 16px 22px; font-size: 0.92rem; }

  .nav__info {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    color: var(--ink-mute);
    letter-spacing: 0.1em;
    opacity: 0;
    transition: opacity 0.55s var(--ease-out) 0.6s;
  }
  .nav.is-open .nav__info { opacity: 1; }

  /* メニュー展開中：ヘッダーの隠れアニメーションを即解除し、
     追従CTAバー・上に戻るボタンがメニューに被らないよう退避させる */
  body.is-menu-open .header { transform: none; transition: none; }
  body.is-menu-open .mobile-cta { transform: translateY(110%); visibility: hidden; }
  body.is-menu-open .to-top { opacity: 0; visibility: hidden; }

  .page-hero { padding: calc(var(--header-h) + 80px) 0 70px; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .container { padding-inline: 22px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 46px; }
  .logo__sub { display: none; }
  .logo { gap: 10px; }
  .logo__frame { width: 42px; height: 42px; }
  .logo__name { font-size: 0.92rem; letter-spacing: 0.04em; }
  .footer { padding-bottom: 110px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .cta { padding: 90px 0; }
  .cta__phone strong { font-size: 1.9rem; }
  .mobile-cta { display: grid; }
  .to-top { right: 16px; bottom: 92px; width: 46px; height: 46px; }
  .marquee { padding: 24px 0; }
}
