/* ---------- Base ---------- */ :root {
  --bg: #cfc2b9;
  --paper: #efe7df;
  --ink: #320F05;
  --sub: #6d5a4e;
  --accent: #8a6b5c;
  --brown: #3b2a22;
  --beige: #e7ddd3;
  --sand: #d9c7ba;
  --line: #e6ded7;
  --white: #fff;
  --footer-bg: #CCBA93;
  --footer-txt: #7A6A56;
  --p-bg: #CFC2B9;
  --p-border: #AD9F9B;
}
* {
  box-sizing: border-box;
}
/* ---------------------------------------------
    base settings
--------------------------------------------- */ :root {
  /* Base REM scale: 1440px→10px, 1920px→16px */
  font-size: clamp(9.5px, calc(9.5px + (13 - 9.5) * ((100vw - 768px) / (2500 - 768))), 13px);
  /*font-size: clamp(9px, calc(9px + (14 - 9) * ((100vw - 1024px) / (1920 - 1024))), 14px);*/
  /*font-size: clamp(10px, calc(10px + (11 - 10) * ((100vw - 1024px) / (1920 - 1024))), 11px);*/
}
:root {
  /* Type scale tokens */
  --s-2: calc(var(--s1) / 2);
  --s1: 0.8rem;
  --s2: calc(var(--s1) * 2);
  --s3: calc(var(--s1) * 3);
  --s4: calc(var(--s1) * 4);
  --s5: calc(var(--s1) * 5);
  --s6: calc(var(--s1) * 6);
  --s7: calc(var(--s1) * 7);
  --s8: calc(var(--s1) * 8);
  --s9: calc(var(--s1) * 9);
  --s10: calc(var(--s1) * 10);
  /* 画像スケール基準（vw基準にするとフォントと同期しやすい） */
  --img-scale: clamp(0.8, 1vw, 1.2);
  /* フォント指定 */
  --fn-en: "Sorts Mill Goudy", serif;
  --fn-jp: "Yu Gothic Medium", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "MS PGothic", sans-serif;
  --fn-yu: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", "MS Mincho", serif;
  --fn-out: "Outfit", sans-serif;
  /* フォントサイズ指定 */
  --fs08: 0.8rem;
  --fs09: 0.9rem;
  --fs10: 1.0rem;
  --fs11: 1.1rem;
  --fs12: 1.2rem;
  --fs13: 1.3rem;
  --fs14: 1.4rem;
  --fs15: 1.5rem;
  --fs16: 1.6rem;
  --fs17: 1.7rem;
  --fs18: 1.8rem;
  --fs19: 1.9rem;
  --fs20: 2.0rem;
  --fs21: 2.1rem;
  --fs22: 2.2rem;
  --fs23: 2.3rem;
  --fs24: 2.4rem;
  --fs25: 2.5rem;
  --fs26: 2.6rem;
  --fs27: 2.7rem;
  --fs28: 2.8rem;
  --fs29: 2.9rem;
  --fs30: 3.0rem;
  --fs31: 3.1rem;
  --fs32: 3.2rem;
  --fs33: 3.3rem;
  --fs34: 3.4rem;
  --fs35: 3.5rem;
  --fs36: 3.6rem;
  --fs37: 3.7rem;
  --fs38: 3.8rem;
  --fs39: 3.9rem;
  --fs40: 4.0rem;
  --fs41: 4.1rem;
  --fs42: 4.2rem;
  --fs43: 4.3rem;
  --fs44: 4.4rem;
  --fs45: 4.5rem;
  --fs46: 4.6rem;
  --fs47: 4.7rem;
  --fs48: 4.8rem;
  --fs49: 4.9rem;
  --fs50: 5.0rem;
}
/*@media screen and (max-width: 1024px) {
  :root {
    font-size: 9px;
  }
}*/
html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
  letter-spacing: .02em;
  font-feature-settings: 'palt'1;
}
h1, h2, h3 {
  /*font-family: "Noto Serif JP", serif;*/
  color: var(--ink);
  line-height: 1.3;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
@media screen and (min-width: 768px) {
  .for-sp {
    display: none !important;
  }
}
@media screen and (max-width: 767px) {
  .for-pc {
    display: none !important;
  }
}
/* フルワイド基本：containerは左右余白だけ */
.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: 60px;
}
@media (max-width:1024px) {
  .container {
    padding-inline: 30px;
  }
}
@media (max-width:767px) {
  .container {
    padding-inline: 20px;
  }
}
.section {
  padding-block: clamp(40px, 6vw, 88px);
}
/* 全ページのアンカー位置調整 */
[id] {
  scroll-margin-top: 80px;
}
/* ---------------------------------------------
   Header (PC: brand-left / nav-right / company-right)
   SP: company-left / brand-center / hamburger-right
--------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: transparent;
  border: 0;
}
.header-inner {
  display: grid;
}
/* ---------------------------------------------
   PC (≥1025px)
--------------------------------------------- */
@media (min-width:1025px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "brand nav company";
    align-items: flex-start;
    min-height: 110px;
    padding-top: 30px;
  }
  .brand-logo {
    grid-area: brand;
  }
  .brand-logo img {
    height: 60px;
  }
  .nav {
    grid-area: nav;
    justify-self: end;
    margin-right: clamp(40px, 2vw, 24px);
  }
  .company-logo {
    grid-area: company;
  }
  .company-logo img {
    height: 22px;
  }
  .nav-toggle {
    display: none;
  }
  /* PCナビ（横並び／濃色文字） */
  .nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
  }
  .nav a {
    font-family: var(--fn-out);
    font-size: var(--fs11);
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 1px;
  }
  /* PC ドロップダウン */
  .has-sub {
    position: relative;
  }
  .nav .nav-link {
    display: inline-flex;
    align-items: center;
    gap: .4em;
  }
  .caret {
    display: none !important;
  }
  .dropdown {
    position: absolute;
    top: calc(100% + 15px); /* 元の100%に15px下げる */
    left: 0;
    display: grid;
    gap: 8px;
    min-width: 180px;
    padding: 15px;
    background: var(--white);
    border-radius: 12px;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .18s, transform .18s;
    z-index: 101;
  }
  .has-sub:hover > .dropdown, .has-sub:focus-within > .dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .has-sub::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
  }
  /* ★ PCでは SP用白ロゴは非表示（SPのdisplay:blockを上書きしない位置で明示） */
  .overlay-logos {
    display: none !important;
  }
}
/* ---------------------------------------------
   SP（≤1024px）: ハンバーガー／オーバーレイ 最終版
--------------------------------------------- */
@media (max-width:1024px) {
  /* ヘッダー行 */
  .header-inner {
    grid-template-areas: "company brand hamburger";
    align-items: center;
    background: var(--line);
    height: 60px;
  }
  .brand-logo {
    grid-area: brand;
    justify-self: center;
  }
  .brand-logo img {
    height: 35px;
    padding-right: 20px;
  }
  .company-logo {
    grid-area: company;
  }
  .company-logo img {
    height: 12px;
  }
  .nav-toggle {
    grid-area: hamburger;
    justify-self: end;
    display: inline-block;
  }
  /* オーバーレイ本体（中央寄せ grid は使わない） */
  #primary-nav.nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    display: block;
    padding-top: 72px;
    transform: scale(.96);
    opacity: 0;
    pointer-events: none;
    border: 0;
    z-index: 1500;
    transition: transform .36s cubic-bezier(.22, .61, .36, 1), opacity .36s ease;
  }
  #primary-nav.nav.is-open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  /* メニュー本文：画面幅いっぱい */
  #primary-nav > ul {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 clamp(20px, 6vw, 40px);
    box-sizing: border-box;
    list-style: none;
  }
  #primary-nav > ul > li {
    border-top: 1px solid rgba(255, 255, 255, .28);
  }
  #primary-nav > ul > li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .28);
  }
  /* 行全体をタップ領域に（左テキスト／右矢印） */
  #primary-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-block: 16px;
    text-align: left;
    font-family: var(--fn-out);
    font-size: var(--fs18);
    font-weight: 600;
    letter-spacing: 0.2rem;
    color: #fff;
    text-decoration: none;
  }
  #primary-nav a::after {
    content: "＞";
    font-family: var(--fn-jp);
    font-size: var(--fs17);
    font-weight: 400;
    margin-left: auto;
    opacity: .85;
    flex: 0 0 auto;
  }
  /* ドロップダウン（INFORMATION配下）も横いっぱい・左寄せ */
  #primary-nav .dropdown {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    margin-bottom: 10px;
  }
  #primary-nav .dropdown a {
    font-size: var(--fs18);
    font-weight: 400;
    padding: 12px 0;
    opacity: .85;
  }
  .has-sub {
    text-align: left;
  }
  /* タップ抜け防止（テキストを常に前面に） */
  #primary-nav ul {
    position: relative;
    z-index: 2201;
  }
  /* SP専用 白ロゴ（装飾） */
  .overlay-logos {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transform: scale(.96);
    filter: blur(1px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.22, .61, .36, 1), filter .35s ease;
    z-index: 2000; /* テキスト(2201)より下 */
  }
  .ol-brand {
    position: fixed;
    top: 14px;
    left: 52%;
    transform: translateX(-50%);
    height: 35px;
    width: auto;
  }
  .ol-company {
    position: fixed;
    top: 25px;
    left: 20px;
    height: 12px;
    width: auto;
  }
  body.no-scroll .overlay-logos {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
  body.no-scroll .brand-logo, body.no-scroll .company-logo {
    visibility: hidden;
  }
}
/* phiten-beauty ロゴリンク */
/* PC(≥1025px)では非表示 */
@media (min-width:1025px) {
  #primary-nav .nav-bottom-logo {
    display: none !important;
  }
}
@media (max-width:1024px) {
  #primary-nav .nav-bottom-logo {
    display: flex;
    justify-content: center;
    padding: 20px 0 28px;
    margin-top: 5px;
    position: relative;
  }
  /* ▼ 下ボーダーに変更 */
  #primary-nav .nav-bottom-logo::after {
    content: "";
    position: absolute;
    bottom: 0; /* ← 下側に配置 */
    left: clamp(20px, 6vw, 40px); /* 左右パディング分だけ内側に */
    right: clamp(20px, 6vw, 40px);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
  }
  #primary-nav .nav-bottom-logo a {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: auto !important;
    padding: 0 !important;
    text-align: center !important;
  }
  #primary-nav .nav-bottom-logo a::after {
    content: none !important; /* > を消す */
  }
  #primary-nav .nav-bottom-logo img {
    display: block;
    width: clamp(180px, 40vw, 280px);
    height: auto;
  }
}
/* ===== iPhone下部バーに隠れないオーバーレイ ===== */
@media (max-width:1024px) {
  /* オーバーレイ本体：dvhで実画面に追随し、縦フレックス化 */
  #primary-nav.nav {
    display: flex; /* ← 追加：縦フレックス */
    flex-direction: column;
    min-height: 100dvh; /* 実画面高（iOSのUIを除外） */
    padding-top: 72px;
    padding-bottom: max(24px, env(safe-area-inset-bottom) + 16px);
    overflow: hidden; /* 自身はスクロールさせない */
  }
  /* メニューリスト：ここだけスクロール領域にする */
  #primary-nav > ul {
    flex: 1 1 auto; /* 縦に伸び縮み */
    overflow: auto; /* 中身だけスクロール */
    -webkit-overflow-scrolling: touch;
    padding: 0 clamp(20px, 6vw, 40px);
    /* 最下行が隠れないように “見えない余白” を追加 */
    scroll-padding-bottom: 120px;
  }
  /* 最下部ロゴ：常に見えるように下側に貼りつけ＋安全余白 */
  #primary-nav .nav-bottom-logo {
    position: sticky; /* ビューポート下辺に粘着 */
    bottom: 0;
    background: var(--ink); /* 下が透ける場合に備え背景指定 */
    justify-content: center;
    padding: 16px 0 max(20px, env(safe-area-inset-bottom) + 8px);
    margin-top: 8px; /* リストとの間隔 */
  }
  #primary-nav .nav-bottom-logo::after {
    /* 罫線はそのまま使えます（必要なら少し上に上げる） */
    bottom: auto;
    top: 0;
    border-bottom: none;
    left: clamp(20px, 6vw, 40px);
    right: clamp(20px, 6vw, 40px);
  }
  /* リンクの > はロゴでは非表示（念押し） */
  #primary-nav .nav-bottom-logo a::after {
    content: none !important;
  }
}
/* ---------------------------------------------
   Hamburger Button → X animation（※HTML順序：
   <span></span><span></span><span></span><span class="sr-only">…</span>）
--------------------------------------------- */
.nav-toggle {
  position: relative;
  width: 32px;
  height: 24px;
  z-index: 2200;
  cursor: pointer;
  background: transparent;
  border: none;
  outline: none;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: all .5s, background-color .3s;
}
.nav-toggle span:nth-of-type(1) {
  top: 2px;
}
.nav-toggle span:nth-of-type(2) {
  top: 10px;
}
.nav-toggle span:nth-of-type(3) {
  top: 18px;
}
.nav-toggle.is-open span {
  background-color: var(--white);
}
.nav-toggle.is-open span:nth-of-type(1) {
  transform: translateY(8px) rotate(-45deg);
}
.nav-toggle.is-open span:nth-of-type(2) {
  opacity: 0;
}
.nav-toggle.is-open span:nth-of-type(3) {
  transform: translateY(-8px) rotate(45deg);
}
body.no-scroll {
  overflow: hidden;
}
.logo {
  display: none !important;
}
/* ---------------------------------------------
    Hero（フルワイド）
--------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: stretch;
  overflow: clip;
  background: var(--paper);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/top/hero-main.jpg') center/cover no-repeat;
  filter: saturate(95%) contrast(102%);
  transform: scale(1.02);
}
@media (max-width: 767px) {
  .hero, .hero-bg {
    height: 100%;
    min-height: 100vh;
  }
  .hero-bg {
    margin-top: 60px;
    background: url('../img/top/hero-main_sp.jpg') center center / cover no-repeat;
  }
}
.hero-content {
  height: 100%;
  z-index: 1;
}
.hero-copy {
  position: absolute;
  bottom: 10%;
  left: 60px;
  display: grid;
  gap: 28rem;
  justify-content: center;
}
.hero-title-block {
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 767px) {
  .hero-copy {
    position: absolute;
    bottom: 80px !important;
    left: 30px !important;
    display: grid;
    gap: 28rem;
    justify-content: center;
  }
}
.vertical-title {
  margin: 0;
  font-family: var(--fn-yu);
  writing-mode: vertical-rl;
  font-size: var(--fs50);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
}
.roman-caption {
  writing-mode: vertical-rl;
  font-family: var(--fn-yu);
  font-size: var(--fs14);
  letter-spacing: .2rem;
  color: var(--ink);
  padding-top: .2rem;
  margin: 0;
}
.tagline {
  font-family: var(--fn-yu);
  font-size: var(--fs30);
  letter-spacing: .25em;
  color: var(--ink);
  margin: 0;
}
/* SPは縦積み */
@media (max-width:767px) {
  .hero-copy {
    grid-template-columns: 1fr;
    left: 30px;
    justify-items: start;
    gap: 5rem;
  }
  .vertical-title {
    font-size: var(--fs45);
  }
  .roman-caption {
    font-size: var(--fs14);
    letter-spacing: .2rem;
    color: var(--ink);
    padding-top: .2rem;
    margin: 0;
  }
  .tagline {
    font-size: var(--fs25);
    letter-spacing: .25em;
  }
}
.scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  font-size: 12px;
  color: var(--sub);
  text-decoration: none;
}
/* ---------------------------------------------
    Scroll Down
--------------------------------------------- */
/* Scroll Down ボタンの装飾 */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  font-family: var(--fn-en);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--sub);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeInUp 1.2s ease both;
}
/* 下矢印をCSSで描画 */
.scroll-down::after {
  content: "";
  display: block;
  width: 1px;
  height: 18px;
  background: currentColor;
  margin-top: 4px;
  animation: scrollAnim 1.5s infinite;
}
/* 出現アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
/* 矢印が上下に動く */
@keyframes scrollAnim {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: .5;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
/* hover時に少し強調 */
.scroll-down:hover {
  color: var(--ink);
  letter-spacing: .25em;
  transition: color .3s, letter-spacing .3s;
}
/* ---------------------------------------------
    concept
--------------------------------------------- */
.concept {
  /*background: url('../img/top/concept-visual-01.jpg') center/cover no-repeat;*/
  width: 100%;
  height: 100%;
  min-height: 700px;
  position: relative; /* ← これでOK（背景は既存のまま） */
}
.concept img {
  object-fit: cover;
  object-position: 50% 100%;
  width: 100%;
  height: 100%;
  min-height: 700px;
}
.concept-text {
  position: absolute;
  background: var(--bg);
  left: 0;
  bottom: 0;
  max-width: clamp(320px, 40vw, 560px);
  padding: 60px 60px 110px;
}
/* スマホ時は読みやすさ優先で幅いっぱいに */
@media (max-width: 767px) {
  .concept {
    margin: 30px 0;
  }
  .concept img {
    min-height: 400px;
    object-position: 60% 100%;
  }
  .concept-text {
    position: inherit;
    padding: 0 0 0;
    max-width: none;
    padding: 50px 0 20px;
  }
}
.concept-text h2 {
  font-family: var(--fn-en);
  font-size: var(--fs28);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .2rem;
  margin: 0 0 !important;
}
.concept-text .subtitle {
  font-size: var(--fs12);
  font-weight: 400;
  margin: 0 0 45px;
  letter-spacing: .1rem;
}
.concept-text h3 {
  font-family: var(--fn-yu);
  font-size: var(--fs28);
  font-weight: 400;
  letter-spacing: 1rem;
  margin: 0 0 30px;
}
.concept-text h3 span {
  font-family: var(--fn-jp);
  font-size: var(--fs11);
  font-weight: 400;
  letter-spacing: 0.2rem;
}
.concept-text h4 {
  font-family: var(--fn-yu);
  font-size: var(--fs18);
  font-weight: 400;
  letter-spacing: 0.5rem;
  margin: 0 0 15px;
}
.concept-text p {
  font-size: var(--fs12);
  font-weight: 400;
  line-height: 2.2;
  letter-spacing: 0.15rem;
  margin: 0 0 45px;
}
.concept-btn {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-size: var(--fs12);
  font-weight: 400;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 10px;
}
/* Quick Links */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 20px 20px;
}
.quick-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  text-decoration: none;
  color: inherit;
  overflow: clip;
  border-right: 1px solid var(--ink);
}
.quick-card:last-child {
  border-right: none;
}
@media (max-width:767px) {
  .quick-card {
    border-right: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 20px;
  }
  .quick-card:last-child {
    border-bottom: none;
    padding-bottom: 0px;
  }
}
.q-media {
  background: linear-gradient(135deg, var(--beige), var(--sand));
}
.q-body {
  padding: 14px 16px 18px;
}
.q-title {
  font-family: "Sorts Mill Goudy", serif;
  font-size: 2.0rem;
  font-weight: 400;
  margin: 0 0;
  color: var(--ink);
}
.q-desc {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
}
/* ---------------------------------------------
    Feature Rail
--------------------------------------------- */
.feature-rail {
  margin: 50px 0;
}
.feature-rail .rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 20px 60px;
}
.rail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: flex-start;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-right: 1px solid var(--ink);
  padding: 0 10px;
}
.rail-item:last-child {
  border-right: none;
}
@media (max-width:1024px) {
  .feature-rail .rail {
    padding: 20px 20px;
  }
  .rail-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 20px 20px 10px;
  }
}
@media (max-width:767px) {
  .feature-rail .rail {
    grid-template-columns: 1fr;
    padding: 0 0;
  }
  .rail-item {
    gap: 0px;
    border-right: none;
    border-bottom: 1px solid var(--ink);
    padding: 20px 20px 30px;
  }
  .rail-item:last-child {
    border-bottom: none;
  }
}
.rail-thumb {}
.rail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rail-body {
  display: grid;
  align-content: start;
  gap: 35px;
  margin-top: 10px
}
.rail-eyebrow {
  font-family: var(--fn-en);
  font-size: var(--fs17);
  font-weight: 400;
  letter-spacing: 0.1rem;
  margin: 0 0;
  color: var(--ink);
}
.rail-title {
  font-size: var(--fs10);
  font-weight: 400;
  letter-spacing: 0.2rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.rail-title span {
  font-size: var(--fs09);
}
@media (max-width: 767px) {
  .rail-eyebrow {
    font-size: var(--fs25);
  }
  .rail-title {
    font-size: var(--fs14);
  }
  .rail-title span {
    font-size: var(--fs11);
  }
}
/* View More → */
/*.view-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--fn-out);
  font-size: var(--fs11);
  font-weight: 400;
  letter-spacing: 0.05rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 10px;
}*/
.rail-item:hover .view-link::after, .rail-item:focus .view-link::after {
  transform: scaleX(0.7);
}
/* ---------------------------------------------
    PRODUCT IMG（フルワイド）
--------------------------------------------- */
.product-hero {}
.product-bg {
  background: url('../img/top/product-visual-01.jpg') center/cover no-repeat;
  min-height: 688px;
}
@media (max-width: 767px) {
.product-bg {
  background: url('../img/top/product-visual-01-sp.jpg') center/cover no-repeat;
  min-height: 600px;
}
}
/* ---------------------------------------------
    Product
--------------------------------------------- */
.product {
  margin: 0 0 150px;
}
.product .section-title {
  font-family: var(--fn-en);
  font-size: var(--fs28);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .2rem;
  margin: 0 0;
}
.product .subtitle {
  font-size: var(--fs12);
  font-weight: 400;
  margin: 0 0 45px;
  letter-spacing: .1rem;
}
.product-list {
  display: grid;
  gap: 50px;
}
.product-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width:1024px) {
  .product-card {
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
  }
}
@media (max-width: 767px) {
  .product-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
.p-media {
  align-self: stretch;
}
.ph {
  width: 100%;
  max-width: none;
  display: grid;
  place-items: center; /* 余白が出るとき中央に配置 */
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 画像は全部見せる。余白は残す */
  display: block;
}
.ph--tall {
  /*aspect-ratio: 3/5;*/
}
.p-body {
  padding: 40px 0 0;
}
.p-kind {
  color: var(--ink);
  font-size: var(--fs10);
  letter-spacing: .2rem;
  font-weight: 400;
}
@media (max-width:1024px) {
  .p-body {
    padding: 0 0 40px;
  }
}
.p-body h3 {
  font-size: var(--fs22);
  font-family: var(--fn-out);
  font-weight: 600;
  letter-spacing: .3rem;
  line-height: 1.5;
  margin: 0 0 15px;
}
.p-body h4 {
  font-size: var(--fs17);
  font-family: var(--fn-yu);
  font-weight: 400;
  letter-spacing: .2rem;
  line-height: 1.7;
  margin: 0 0 10px;
}
.p-copy {
  font-size: var(--fs12);
  font-weight: 400;
  letter-spacing: .2rem;
  line-height: 2;
  margin: 0 0 25px;
}
.p-price {
  font-size: var(--fs11);
  font-family: var(--fn-jp);
  font-weight: normal;
  letter-spacing: .1rem;
  margin: 0 0 30px;
}
.p-price .price {
  font-size: var(--fs15);
  padding: 0 0.2rem 0 0.5rem;
}
.p-price .tax {
  font-size: var(--fs10);
}
/* ---------------------------------------------
    Brand Hero（フルワイド）
--------------------------------------------- */
.brand-hero {
  position: relative;
  background: url('../img/top/brand-story-bg.jpg') center/cover no-repeat;
  min-height: 830px;
}
@media (max-width: 1024px) {
  .brand-hero {
    background-position: 90% 30%;
    min-height: 750px;
  }
}
.brand-inner {
  z-index: 1;
  color: var(--white);
  padding-top: 100px; /*padding-block: clamp(36px, 6vw, 72px);*/
}
@media (max-width: 767px) {
  .brand-inner {
    padding-top: 100px;
  }
}
.brand-inner h2 {
  font-family: var(--fn-en);
  font-size: var(--fs28);
  font-weight: 400;
  color: var(--white);
  letter-spacing: .2rem;
  margin: 0 0;
}
.brand-inner .subtitle {
  font-size: var(--fs12);
  font-weight: 400;
  color: var(--white);
  margin: 0 0 35px;
  letter-spacing: .1rem;
}
.brand-inner h3 {
  font-family: var(--fn-yu);
  font-size: var(--fs21);
  font-weight: 400;
  color: var(--white);
  line-height: 1.8;
  letter-spacing: .3rem;
  margin: 0 0 15px;
}
.brand-inner p {
  font-size: var(--fs12);
  font-weight: 400;
  line-height: 2.5;
  letter-spacing: .2rem;
  margin: 0 0 40px;
}
.brand-inner .brand-logo {
  position: absolute;
  right: 80px;
  bottom: 90px;
  z-index: 1;
}
.brand-inner .brand-logo img {
  width: 144px;
  height: auto;
}
@media (max-width:1024px) {
  .brand-inner .brand-logo {
    right: 20px;
    bottom: 45px;
  }
}
/* ---------------------------------------------
    Journal
--------------------------------------------- */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
}
.journal .section-title {
  font-family: var(--fn-en);
  font-size: var(--fs28);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .2rem;
  margin: 0 0;
}
.journal .subtitle {
  font-size: var(--fs12);
  font-weight: 400;
  margin: 0 0 45px;
  letter-spacing: .1rem;
}
.j-card {
  display: grid;
  grid-template-rows: auto auto;
  overflow: clip;
}
.j-media {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.j-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.j-body {
  /*padding: 14px 16px 18px;*/
}
.j-card a.j-link {
  display: grid;
  grid-template-rows: auto auto;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.j-Category {
  display: inline-block;
  min-width: 80px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--fn-out);
  font-size: var(--fs11);
  font-weight: 600;
  letter-spacing: .15rem;
  margin: 20px 0 10px;
  padding: 1px 10px;
  text-align: center;
}
.j-title {
  font-size: var(--fs13);
  letter-spacing: .1rem;
  font-weight: 600;
  line-height: 1.7;
  text-align: justify;
  margin: 0 0 10px;
}
.j-date {
  color: var(--sub);
  font-size: var(--fs11);
  font-family: var(--fn-out);
  font-weight: 500;
  letter-spacing: .1rem;
  margin: 0 0 4px;
}
/* Journal More Button */
.journal-more {
  text-align: right;
  margin-top: 40px;
}
.journal-btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: var(--fs11);
  font-weight: 400;
  letter-spacing: .2rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--sub);
  padding-bottom: 6px;
  position: relative;
}
.journal-btn .circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: var(--fs11);
  line-height: 1;
  padding-left: 2px;
}
.journal-btn:hover {
  opacity: 0.7;
}
@media (max-width: 767px) {
  .journal-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .j-card {
    grid-template-rows: auto auto;
  }
  .j-media img {
    width: 100%;
    height: auto;
  }
}
/* ---------------------------------------------
    CTAs
--------------------------------------------- */
.cta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--sub);
  border-bottom: 1px solid var(--sub);
}
@media (max-width: 767px) {
  .cta-grid {
    grid-template-columns: 1fr;
  }
}
.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 0;
  background: transparent;
  border: none;
  border-right: 1px solid var(--sub);
}
.cta-card:last-child {
  border-right: none;
}
@media (max-width: 767px) {
  .cta-card {
    border-right: none;
    border-bottom: 1px solid var(--sub);
  }
  .cta-card:last-child {
    border-bottom: none;
  }
}
.cta-card a {
  display: flex;
  flex-direction: column; /* 縦に並べる */
  align-items: center; /* 横方向を中央揃え */
  text-decoration: none;
  color: var(--ink);
}
.cta-card a p {
  margin: 6px 0 0; /* 上に少し余白をつける */
  font-size: var(--fs10);
  font-weight: 400;
  letter-spacing: .1em;
  text-align: center;
}
.cta-card h3 {
  font-family: var(--fn-en);
  font-size: var(--fs19);
  font-weight: 400;
  letter-spacing: .1em;
  margin: 0 0 2px;
}
.cta-desc {
  font-size: var(--fs10);
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--ink);
}
.cta-icons {
  display: flex;
  gap: 24px;
}
.cta-icon {
  display: flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 10px;
  background: var(--beige);
  margin: 15px 0 5px;
}
.cta-card p {
  font-size: var(--fs10);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .1em;
  margin: 0 0 !important;
}
.cta-icon:hover {
  opacity: 0.7;
}
/* ---------------------------------------------
    Breadcrumbs
--------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  height: 60px;
}
.breadcrumb .container {
  padding-block: 10px;
}
.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sub);
  font-size: var(--fs12);
  letter-spacing: .08em;
}
.breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 6px;
  color: var(--sub);
}
@media (max-width: 1024px) {
  .breadcrumb {
    height: 50px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .breadcrumb ol {
    flex-wrap: nowrap; /* 折り返さず横並び */
    gap: 4px; /* 間隔を少し狭く */
    font-size: var(--fs10);
  }
  .breadcrumb li {
    display: inline-block;
  }
}
@media (max-width:560px) {
  .breadcrumb .container {
    padding-block: 8px;
  }
}
/* ===============================
   FOOTER — full replace (clean)
   =============================== */
/* 変数の保険（未定義時でも読めるように） */
.site-footer {
  --footer-txt: #fff;
}
/* ---- 基本レイアウト ---- */
.site-footer {
  margin-top: 0;
  padding-top: 0;
  background: transparent;
  color: inherit;
}
.footer-mega {
  background: #320F05;
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  padding-block: 56px;
  align-items: start;
}
@media (max-width:1024px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width:767px) {
  .footer-grid {
    padding: 40px 30px;
  }
}
/* ブランド */
.footer-brandlogo {
  display: block;
  max-width: 150px;
  height: auto;
  margin: 0 0 25px;
}
.footer-tagline {
  font-size: var(--fs10);
  font-weight: 400;
  letter-spacing: .1rem;
  color: #fff;
  margin: 0;
}
@media (max-width:1024px) {
  .footer-tagline {
    font-size: var(--fs14);
  }
}
/* 列（PC/Tablet） */
.footer-cols {
  display: flex;
  justify-content: flex-end;
  column-gap: 50px;
  margin-left: 50px;
  margin-right: 0;
}
@media (max-width:1024px) {
  .footer-cols {
    justify-content: space-between;
    margin-left: 0;
    margin-right: 0;
  }
}
/* 列（SP） */
@media (max-width:767px) {
  .footer-cols {
    display: grid;
    grid-template-columns: 1fr;
  }
  .footer-col {
    width: 100%;
    border-bottom: 1px solid #826D66;
  }
}
/* ---- タイポ・共通 ---- */
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.footer-col a {
  font-family: var(--fn-out);
  font-size: var(--fs11);
  font-weight: 400;
  letter-spacing: .1rem;
  color: #efe8e2;
  text-decoration: none;
}
.footer-col a:hover {
  text-decoration: underline;
}
/*.footer-bottom {
  font-family: var(--fn-out);
  font-size: var(--fs11);
  font-weight: 200;
  letter-spacing: .1rem;
  color: #826D66;
  text-align: right;
  padding: 0 20px 24px;
}
@media (max-width:1024px) {
  .footer-bottom {
    text-align: center;
  }
}*/
/* ===== Footer bottom：左=コピー / 右=ロゴ（Grid安定版） ===== */
.footer-bottom {
  display: grid;
  grid-template-columns: 1fr minmax(96px, max-content); /* ← 右列は最低96px確保 */
  align-items: center;
  gap: 16px;
  padding: 0 20px 24px;
  font-family: var(--fn-out);
  font-size: var(--fs11);
  font-weight: 200;
  letter-spacing: .1rem;
  color: #826D66;
}
.footer-bottom .footer-copy {
  margin: 0;
  min-width: 0; /* 長文でも折り返して縮められるように */
  text-align: left;
  word-break: break-word; /* 必要なら */
}
.footer-bottom .footer-logo-link {
  justify-self: end; /* 右端に寄せる */
  display: inline-flex;
  align-items: center;
  min-width: 96px; /* 念押し（列と同値） */
}
.footer-bottom .footer-logo-link img {
  height: 14px; /* ← 固定の高さを与える（重要） */
  width: auto;
  display: block;
}
/* SPで縦積みにしたい場合（横並びのままで良ければ省略可） */
@media (max-width:1024px) {
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr; /* 1列配置 */
    justify-items: center; /* 中央寄せ */
    text-align: center; /* コピーも中央揃え */
    gap: 12px;
  }
  /* 並び順：ロゴを上、コピーを下に */
  .footer-bottom .footer-logo-link {
    order: -1; /* 先に表示 */
    justify-self: center; /* 中央寄せ */
    margin-bottom: 30px;
  }
  .footer-bottom .footer-copy {
    order: 0;
    text-align: center; /* 念のため中央に固定 */
  }
}
/* ---- 見出し（共通） ---- */
.f-head {
  display: flex;
  align-items: center;
  justify-content: space-between; /* ← 左テキスト / 右トグル */
  gap: 8px;
  margin: 0 0 10px;
  line-height: 1.4;
  background: transparent;
  border: 0;
  padding: 0;
  color: #826D66;
  font-family: var(--fn-out);
  font-size: var(--fs11);
  font-weight: 400;
  letter-spacing: .1rem;
}
.f-head span.f-title {
  flex: 1 1 auto;
  display: inline-block;
}
/* 見出しリンクの色を固定（親状態に引っ張られない） */
.f-head .f-headlink {
  color: var(--footer-txt) !important;
  font-weight: 500;
  letter-spacing: .1rem;
  text-decoration: none;
  flex: 1 1 auto;
  /*padding: 10px 8px 10px 0;*/
}
/* PC: トグルは出さない */
.f-toggle {
  display: none;
}
/* ---- SP専用（≤767px） ---- */
@media (max-width:767px) {
  /* 旧 実装の＋を完全に無効化（ここが二重表示の原因だった） */
  .f-head::before, .f-head::after {
    content: none !important;
  }
  /* 見出しのサイズ感をSPに合わせる */
  .f-head {
    margin: 0;
    padding: 15px 0;
    color: #fff;
    font-size: var(--fs16);
    font-weight: 400;
  }
  /* ＋トグル（アコーディオン有り列だけ） */
  .f-toggle {
    display: block;
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .f-toggle::before, .f-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 1.5px;
    background: var(--footer-txt);
    transform: translate(-50%, -50%);
    transition: transform .25s, opacity .25s;
  }
  .f-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
  } /* ＋の縦線 */
  .f-head[aria-expanded="true"] .f-toggle::after {
    opacity: 0;
  } /* 開：－ */
  /* 本文アコーディオン */
  .footer-col .f-body {
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height .3s ease, padding .25s ease;
  }
  .footer-col .f-body li:last-child {
    margin-bottom: 20px;
  }
  .f-head[aria-expanded="true"] + .f-body {
    max-height: 320px;
    padding: 0 0 12px;
  }
  .footer-col.is-linkonly .f-head::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--footer-txt);
    border-top: 1.5px solid var(--footer-txt);
    transform: translateY(-50%) rotate(45deg); /* ＞ */
  }
  /* 小リンクはSPで少し大きく */
  .footer-col a {
    display: block;
    font-size: var(--fs16);
    padding: 8px 0;
  }
}
/* ===== Footer links fix ===== */
.site-footer .footer-col a {
  text-decoration: none !important; /* 下線を常に消す */
  color: #efe8e2; /* デザインに合わせた色 */
}
.site-footer .footer-col a:hover {
  text-decoration: underline; /* hover時のみ出す場合 */
}
/* ========= Footer: final overrides ========= */
/* PCの見出しリンク色は親に合わせる（上書き解除） */
@media (min-width: 768px) {
  .footer-col .f-head .f-headlink {
    color: inherit !important; /* ← これで PC の色が元に戻る */
    padding-right: 0;
  }
}
/* SP：まず旧実装の「＋」を完全に消す（ここは全列に適用） */
@media (max-width: 767px) {
  .footer-col .f-head::before, .footer-col .f-head::after {
    content: none !important;
  }
}
/* SP：リンクのみ列（.is-linkonly）は「>」を必ず描画 */
@media (max-width: 767px) {
  .footer-col.is-linkonly .f-toggle {
    display: none !important;
  }
  .footer-col.is-linkonly .f-body {
    display: none !important;
  }
  .footer-col.is-linkonly .f-head {
    position: relative;
    padding-right: 28px;
  }
  .footer-col.is-linkonly .f-head::after {
    content: "" !important; /* ← content:none を確実に打ち消す */
    position: absolute;
    right: 15px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--footer-txt);
    border-top: 1.5px solid var(--footer-txt);
    transform: translateY(-50%) rotate(45deg); /* ＞ */
  }
}
/* SP：アコーディオン有り列は＋を .f-toggle 側だけで描画 */
@media (max-width: 767px) {
  .f-toggle {
    display: block;
    position: relative;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .f-toggle::before, .f-toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 1.5px;
    background: var(--footer-txt);
    transform: translate(-50%, -50%);
    transition: transform .25s, opacity .25s;
  }
  .f-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
  } /* ＋の縦線 */
  .f-head[aria-expanded="true"] .f-toggle::after {
    opacity: 0;
  } /* 開＝－表示 */
}
/* ---------------------------------------------
    Responsive
--------------------------------------------- */
@media (max-width:1024px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .card.media img {
    aspect-ratio: 16/9;
  }
  .section {
    padding-block: clamp(28px, 8vw, 56px);
  }
}
/* Buttons / A11y */
.btn {
  display: inline-block;
  font-family: var(--fn-out);
  font-size: var(--fs12);
  font-weight: 400;
  letter-spacing: .1rem;
  padding: 12px 25px;
  text-decoration: none;
}
.btn--ghost {
  background: transparent !important;
}
.btn--sm {
  background: var(--ink);
  color: var(--white);
}
.btn--light {
  color: var(--white);
  border: 1px solid var(--white);
  ;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* ---------------------------------------------
    btn
--------------------------------------------- */
/* 共通：矢印はCSSで付与（重複回避） */
.view-link::after, .concept-btn::after {
  content: " →";
}
/* “テキスト幅だけ”にしたい場合 */
.view-link, .concept-btn {
  display: inline-flex;
  width: fit-content; /* ← 重要：内容幅にする */
  align-items: center;
  gap: .4em;
  font-family: var(--fn-out);
  font-size: var(--fs12);
  font-weight: 400;
  letter-spacing: .05rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  text-decoration: none;
}
@media (max-width: 767px) {
  .concept-btn, .view-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%; /* 行全体をタップ */
    padding: 14px 0;
    text-decoration: none; /* 下線はボーダーで */
    border-bottom: 1px solid var(--sub); /* サイトの細線色を使用:contentReference[oaicite:6]{index=6} */
    font-size: var(--fs14);
    letter-spacing: .12rem;
  }
  .concept-btn::after, .view-link::after {
    content: "→";
    flex: 0 0 auto;
  }
}
/* =========================================================
  Page Top button
========================================================= */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #6d5a4e;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background-color .2s ease, bottom .3s ease;
}
.to-top:is(:hover, :focus-visible) {
  background: #8a6b5c;
}
.to-top:active {
  transform: translateY(12px) scale(.96);
}
.to-top[data-visible="true"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* フッター出現時だけボタンを少し上げる（IOでclass付与） */
.to-top.is-avoid-footer {
  bottom: calc(60px + env(safe-area-inset-bottom));
}
@media (max-width:767px) {
  .to-top.is-avoid-footer {
    bottom: calc(110px + env(safe-area-inset-bottom));
  }
}
/* =========================================
   Universal Fade-in（画像向け・長め）
   - レイアウトに影響しないよう opacity のみ
   ========================================= */ :root {
  --fade-duration: 1.4s; /* ← 長め：お好みで 1.2s〜2.0s */
  --fade-ease: cubic-bezier(.25, .8, .25, 1);
}
/* 初期状態（JSが付与） */
.js-fade {
  opacity: 0;
  transition: opacity var(--fade-duration) var(--fade-ease);
  will-change: opacity;
}
/* 表示状態（IOで付与） */
.is-inview {
  opacity: 1;
  /* 個別遅延：style="--fade-delay:.2s" があれば反映 */
  transition-delay: var(--fade-delay, 0s);
}
/* 低速/動きを減らす設定の端末は即時表示 */
@media (prefers-reduced-motion: reduce) {
  .js-fade, .is-inview {
    transition: none !important;
    opacity: 1 !important;
  }
}
/* =========================================
    SPヘッダー：タップ抜け/不応対策
   ========================================= */
@media (max-width:1024px) {
  /* 1) 白ロゴは常にクリック不可（隣接セレクタ依存を断つ） */
  .nav.is-open + .overlay-logos {
    pointer-events: none !important;
  }
  .overlay-logos {
    pointer-events: none !important;
    z-index: 2000 !important;
  }
  /* 2) メニュー本文は常に最前面の”面”として反応させる */
  #primary-nav .nav a, #primary-nav .dropdown a {
    position: relative;
    z-index: 2202;
  }
  /* 3) メニュー閉時は念のためナビ全体を不可視・非反応に固定 */
  #primary-nav {
    visibility: hidden;
    pointer-events: none !important;
  }
  #primary-nav.is-open {
    visibility: visible;
    pointer-events: auto !important;
  }
}

