/* ==========================================================
   MIYASAKA KORYO — site-v2
   写真主役のフルスクリーン構成
   ========================================================== */

:root {
  /* 墨のヒーロー → 生成りの本文 → 墨のフッター(明暗のブックエンド) */
  --base: #eceae5;          /* 本文の地(生成り) */
  --card: #ffffff;          /* 重なる白カード */
  --accent: #a8863f;        /* 深箔 */
  --accent-soft: rgba(168, 134, 63, 0.35);
  --dark: #17150f;          /* ヒーロー下地・フッター */
  --text: #45433e;
  --gray: #8f8c85;
  --line: #dedbd3;
  --shadow-card: 0 30px 70px rgba(50, 46, 38, 0.16);
  --header-h: 72px;
  --font-en: 'Poppins', 'Noto Sans JP', sans-serif;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--text);
  background: var(--base);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }

img { max-width: 100%; vertical-align: middle; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ----------------------------------------------------------
   1. ヘッダー
   ---------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(236, 234, 229, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 32px;
  gap: 32px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header__logo-mark {
  width: 42px;
  height: auto;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header__logo-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.header__logo-ja {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--text);
}

.gnav { margin-left: auto; }

.gnav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.gnav__list a {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 6px 0;
  position: relative;
  transition: color .3s;
}

.gnav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.gnav__list a:hover { color: var(--accent); }
.gnav__list a:hover::after { transform: scaleX(1); }

/* Language 切り替え */
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.lang__label { color: var(--gray); margin-right: 4px; }
.lang__item.is-active { color: var(--accent); font-weight: 400; border-bottom: 1px solid var(--accent); }
.lang__item.is-disabled { color: #b6b2a9; cursor: default; }
.lang__sep { color: #c8c4bb; }

.lang--pc { flex-shrink: 0; }
.lang--mobile { display: none; }

/* --- 言語切替(国旗) ---
   現在地の言語は不透明、もう一方は淡色のリンク。両方を並べることで
   「今どちらを見ているか」が分かる。日本語版・タイ語版で共通のスタイル */
.c-langSwitch {
  --langSwitch-gap: 9px;
  display: inline-flex;
  align-items: center;
  gap: var(--langSwitch-gap);
}
.c-langSwitch__item {
  position: relative;
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
}
/* 国旗は小さいので、レイアウトに影響しない疑似要素で当たり判定を広げる。
   リンク側だけに付ける。現在地(span)にも付けると、隣り合うリンクの
   判定と重なって「押せないはずの国旗」がリンクを踏む恐れがあるため。
   横は11pxまで。2つの国旗の間隔は 9+1+9=19px あるので重ならない */
a.c-langSwitch__item::after {
  content: "";
  position: absolute;
  inset: -15px -11px;
}
.c-langSwitch__flag {
  display: block;
  width: 22px;
  height: auto;
  aspect-ratio: 3 / 2;
  border: 0.5px solid rgb(0 0 0 / 0.18);
}
a.c-langSwitch__item { opacity: 0.38; transition: opacity 0.3s ease; }
a.c-langSwitch__item:hover { opacity: 1; }
.c-langSwitch__sep {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: currentColor;
  opacity: 0.25;
}

/* --- タイ語版で未対応の下層リンク ---
   タイ語ページがまだ無いナビ項目は <a> ではなく
   <span class="... is-disabled" data-th-pending="..."> として出力される。
   リンクと同じ位置・字送りのまま、押せないことが分かる見た目にする */
.gnav__list .is-disabled,
.footer__col .is-disabled,
.footer__legal .is-disabled,
.btn-outline.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.btn-outline.is-disabled { border-style: dashed; }

/* ハンバーガー */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 110;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform .3s, opacity .3s;
}

.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------
   共通: 写真セクション / ボタン / フェードイン
   ---------------------------------------------------------- */
.parallax {
  position: relative;
  overflow: hidden;
}

.parallax__bg {
  position: absolute;
  top: -12%; left: 0;
  width: 100%;
  height: 124%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.btn-outline {
  display: inline-block;
  min-width: 210px;
  padding: 15px 42px;
  border: 1px solid #35332d;
  border-radius: 0;
  color: #35332d;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  transition: background .35s, color .35s, border-color .35s;
}

.btn-outline:hover {
  background: #17150f;
  border-color: #17150f;
  color: #fff;
}

.btn-outline--dark {
  border-color: #35332d;
  color: #35332d;
}

.btn-outline--dark:hover {
  background: #17150f;
  border-color: #17150f;
  color: #fff;
}

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----------------------------------------------------------
   2. ヒーロー
   ---------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-videos { position: absolute; inset: 0; }

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.is-active { opacity: 1; }

/* 動画フォールバック（モバイル / reduced-motion / 自動再生ブロック時） */
.hero-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: none;
  will-change: transform;
}

.hero-poster.is-active {
  display: block;
  animation: kenburns 20s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10, 9, 8, .42), rgba(10, 9, 8, .28) 55%, rgba(10, 9, 8, .46));
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.hero-copy__title {
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  letter-spacing: 0.34em;
  line-height: 1;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .5);
}

.hero-copy__sub {
  margin-top: 24px;
  font-family: var(--font-en);
  font-weight: 200;
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.12em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
}

.hero-copy__since { margin-left: 1.2em; color: #d8bc74; letter-spacing: 0.24em; }

.hero-scroll {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}

.hero-scroll__text {
  font-family: var(--font-en);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  margin-bottom: 10px;
}

.hero-scroll__line {
  width: 1px;
  height: 64px;
  background: rgba(255, 255, 255, .7);
  overflow: hidden;
  position: relative;
}

.hero-scroll__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #d8bc74;
  animation: scrollline 2.2s ease-in-out infinite;
}

@keyframes scrollline {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* ----------------------------------------------------------
   3. ブランドメッセージ
   ---------------------------------------------------------- */
main { counter-reset: biz; }

/* ----------------------------------------------------------
   2.5 About(日英対訳)
   ---------------------------------------------------------- */
.about {
  background: var(--base);
  padding: clamp(96px, 12vw, 180px) 40px;
}

.about__inner {
  width: min(1560px, 100%);
  margin: 0 auto;
}

.about__label {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.42em;
  color: #33312c;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.about__grid {
  display: block;   /* 英文カラム廃止に伴い1カラム(和文を全幅に) */
}

.about__catch {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.4rem, 2vw, 1.85rem);
  letter-spacing: 0.18em;
  line-height: 2;
  color: #33312c;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.about__catch-sub {
  font-size: 0.78em;
  letter-spacing: 0.14em;
}

.about__body {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 2.6;
  letter-spacing: 0.12em;
  color: #5a5750;
}
.about__body p + p { margin-top: 1.9em; }
.about__body-en p + p { margin-top: 1.9em; }

.about__catch-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  line-height: 2.4;
  color: #55524b;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.about__body-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 2.4;
  color: var(--gray);
}

/* ----------------------------------------------------------
   2.6 調香(左断ち落とし写真 + 右下に重なる対訳カード)
   ---------------------------------------------------------- */
.feature {
  background: var(--base);
  padding: clamp(24px, 4vw, 64px) 0 clamp(96px, 11vw, 180px);
  --pw: min(70%, 1340px);              /* 写真の断ち落とし幅 */
  --f-overlap: clamp(180px, 24vw, 480px); /* カードが写真に食い込む量(横) */
}

.feature__inner { position: relative; }

.feature__photo {
  width: var(--pw);
  margin: 0;                            /* 左端から断ち落とし */
}
.feature__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature__card {
  position: relative;
  width: min(1020px, calc(100% - (var(--pw) - var(--f-overlap)) - 24px));
  margin: calc(-1 * clamp(100px, 13vw, 240px)) 0 0 calc(var(--pw) - var(--f-overlap));
  padding: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 76px);
  background: var(--card);
  border: 1px solid rgba(168, 134, 63, 0.22);
  box-shadow: var(--shadow-card);
}

.feature__jp {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 2.6;
  letter-spacing: 0.12em;
  color: #5a5750;
}

.feature__en {
  margin-top: 2.2em;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  line-height: 2.4;
  color: var(--gray);
}

/* スタッガード構成: 写真は比率を持つブロック、カードが角に重なる */
.message {
  --pw: min(70%, 1380px);              /* 写真の幅(横長の帯) */
  --xov: clamp(160px, 22vw, 440px);    /* カードの横の食い込み */
  --yov: clamp(100px, 12vw, 240px);    /* カードの縦の食い込み */
  background: var(--base);
  padding: clamp(56px, 7vw, 130px) 0 clamp(96px, 10vw, 170px);
}

.message__media,
.biz__media {
  position: relative;
  overflow: hidden;
  width: var(--pw);
  aspect-ratio: 16 / 9;                /* 横長の帯として断ち落とす */
}
.message__media { margin-left: auto; } /* 右端から断ち落とし */
.message__media .parallax__bg,
.biz__media .parallax__bg {
  left: 0;
  right: auto;
  width: 100%;
}

.message__overlay { display: none; }

.message__inner {
  position: relative;
  z-index: 2;
  display: block;
  /* 幅は「画面幅 - 写真の非重なり部分」から自動算出(上限720px) */
  width: min(1000px, calc(100% - (var(--pw) - var(--xov)) - 24px));
  /* 横: 写真幅から逆算して必ず --xov 重なる / 縦: --yov 分写真に乗り上げる */
  margin: calc(-1 * var(--yov)) calc(var(--pw) - var(--xov)) 0 auto;
  padding: clamp(40px, 4.5vw, 60px) clamp(32px, 4.5vw, 64px);
  background: var(--card);
  border: 1px solid rgba(168, 134, 63, 0.22);
  box-shadow: var(--shadow-card);
  color: var(--text);
}

.message__title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  letter-spacing: 0.18em;
  line-height: 1.9;
  color: #33312c;
  padding-left: 24px;
  border-left: 1px solid var(--accent);
}

.message__body {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 2.25;
  letter-spacing: 0.12em;
  color: #5a5750;
}

.message__body p + p { margin-top: 2em; }

/* ----------------------------------------------------------
   4. 事業セクション
   ---------------------------------------------------------- */
.biz {
  counter-increment: biz;
  --pw: min(70%, 1380px);
  --xov: clamp(160px, 22vw, 440px);
  --yov: clamp(90px, 12vw, 250px);
  background: var(--base);
  padding: clamp(48px, 6vw, 110px) 0 clamp(96px, 11vw, 180px);
}
/* 写真: 既定(01 business / 03 recruit)は左端から断ち落とし */
.biz__media { margin-left: 0; margin-right: auto; }
/* 02 rd / 04 company は右端から断ち落とし */
#rd .biz__media, #company .biz__media { margin-left: auto; margin-right: 0; }

.biz__overlay { display: none; }

.biz__inner {
  position: relative;
  z-index: 2;
  width: min(1000px, calc(100% - (var(--pw) - var(--xov)) - 24px));
  /* 縦: --yov 分だけ写真に乗り上げる。左右は下の配置ルールで指定 */
  margin-top: calc(-1 * var(--yov));
  margin-bottom: 0;
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 68px);
  background: var(--card);
  border: 1px solid rgba(168, 134, 63, 0.22);
  box-shadow: var(--shadow-card);
  color: var(--text);
}

/* カード左右配置: 写真の反対側に寄せ、横--xov だけ写真に重なる
   (ショートハンド margin を使わないよう .biz__inner の後に個別指定) */
/* 既定(01 business / 03 recruit): カード=右 */
.biz__inner {
  margin-left: calc(var(--pw) - var(--xov));
  margin-right: auto;
}
/* 02 rd / 04 company: カード=左 */
#rd .biz__inner, #company .biz__inner {
  margin-left: auto;
  margin-right: calc(var(--pw) - var(--xov));
}

/* 「01」の箔ナンバー */
.biz__sub::before {
  content: counter(biz, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-weight: 200;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}
/* 和文を主見出しに昇格 */
.biz__sub {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: 0.2em;
  line-height: 1.8;
  color: #33312c;
  margin-bottom: 10px;
}

/* 欧文は添えの小見出しに */
.biz__title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 30px;
  padding-bottom: 22px;
  position: relative;
}
.biz__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 1px;
  background: var(--accent);
}

.biz__text {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 2.5;
  letter-spacing: 0.12em;
  color: #5a5750;
  margin-bottom: 44px;
}

/* ----------------------------------------------------------
   5. ニュース
   ---------------------------------------------------------- */
.news {
  background: var(--card);
  border-top: 1px solid var(--line);
  padding: 120px 40px;
}

/* ヒーロー直下に置かれた場合のみ、上罫線を消す(下層ページの .news には非適用) */
.hero + .news { border-top: none; }

.news__inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

/* --- 見出し行(横並び・下罫) --- */
.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--text);
}
.news__title {
  font-family: var(--font-en);
  font-weight: 200;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.news__title-ja {
  font-family: var(--font-ja);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.news__head .btn-outline--dark { flex-shrink: 0; }

/* --- タブ --- */
.news__tabs {
  display: flex;
  gap: 8px;
  margin: 36px 0 8px;
  border-bottom: 0;
}
.news__tab {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 9px 22px;
  cursor: pointer;
  position: relative;
  transition: color .3s, border-color .3s, background .3s;
}
.news__tab::after { display: none; }
.news__tab:hover { color: var(--text); border-color: var(--gray); }
.news__tab.is-active {
  color: var(--card);
  background: var(--dark);
  border-color: var(--dark);
  font-weight: 400;
}

/* --- リスト --- */
.news__list {
  counter-reset: news;
  list-style: none;
  margin: 0;
  padding: 0;
}
.news__item {
  counter-increment: news;
  border-bottom: 1px solid var(--line);
}
.news__item:first-child { border-top: 1px solid var(--line); }
.news__item.is-hidden { display: none; }

.news__item a {
  display: grid;
  grid-template-columns: 56px 128px 152px 1fr;
  align-items: center;
  gap: 28px;
  padding: 30px 8px;
  position: relative;
  color: var(--text);
  text-decoration: none;
  transition: padding .45s cubic-bezier(.2,.7,.3,1), color .3s;
}
/* 大きな連番 */
.news__item a::before {
  content: counter(news, decimal-leading-zero);
  font-family: var(--font-en);
  font-weight: 200;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  transition: color .3s;
}
/* ホバーで箔金の敷き面が左から差し込む */
.news__item a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(168,134,63,0.10), rgba(168,134,63,0) 70%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.news__item a:hover { padding-left: 24px; }
.news__item a:hover::after { opacity: 1; }
.news__item a:hover .news__text { color: #2a2823; }

.news__item time {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gray);
  white-space: nowrap;
}
.news__cat {
  justify-self: start;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--gray);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 15px;
  white-space: nowrap;
  transition: color .3s, border-color .3s;
}
.news__cat--sustainability {
  color: var(--accent);
  border-color: var(--accent-soft);
}
.news__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  transition: color .3s;
}
/* 行末の矢印: グリッド最終セルに擬似要素で描画(HTML変更不要) */
.news__item a > .news__text::after {
  content: "→";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  color: var(--gray);
  transition: color .3s, transform .45s cubic-bezier(.2,.7,.3,1);
}
.news__item a:hover > .news__text::after {
  color: var(--accent);
  transform: translateY(-50%) translateX(6px);
}

/* ----------------------------------------------------------
   6. フッター
   ---------------------------------------------------------- */
.footer {
  background: var(--dark);
  color: #d9d5cc;
  padding: 72px 40px 32px;
}

.footer__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.footer__top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer__logo-mark {
  width: 48px;
  height: auto;
}

.footer__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.footer__logo-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.footer__logo-ja {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: #f0ede6;
}

.footer__address {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 24px;
  line-height: 2;
}

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

.footer__col-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  color: #f0ede6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__col li { margin-bottom: 10px; }

.footer__col a {
  font-size: 0.82rem;
  color: #a8a49b;
  transition: color .3s;
}

.footer__col a:hover { color: var(--accent); }

.footer__cert {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__cert img { height: 56px; width: auto; border-radius: 3px; }

.footer__cert-caption {
  font-size: 0.78rem;
  color: var(--gray);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__legal a {
  font-size: 0.75rem;
  color: var(--gray);
  transition: color .3s;
}

.footer__legal a:hover { color: var(--accent); }

.footer__copyright {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gray);
}

/* ----------------------------------------------------------
   モバイル
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .gnav__list { gap: 18px; }
  .gnav__list a { font-size: 0.8rem; }
  .lang--pc .lang__label { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }

  .header__inner { padding: 0 16px; }

  .menu-btn { display: block; margin-left: auto; }

  .lang--pc { display: none; }
  .lang--mobile { display: flex; justify-content: center; margin-top: 40px; }

  .gnav {
    position: fixed;
    inset: 0;
    background: rgba(236, 234, 229, 0.97);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 24px;
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
    z-index: 105;
  }

  .gnav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .gnav__list {
    flex-direction: column;
    gap: 0;
  }

  .gnav__list li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--line);
  }

  .gnav__list a {
    display: block;
    padding: 16px 0;
    font-size: 1rem;
  }

  .hero-copy__title { font-size: clamp(1.9rem, 8vw, 2.4rem); letter-spacing: 0.26em; }
  .hero-copy__since { display: block; margin-left: 0; margin-top: 6px; }

  .about { padding: 80px 24px; }

  .feature { --pw: 100%; padding-bottom: 96px; }
  .feature__card {
    width: calc(100% - 32px);
    margin: -48px auto 0;
    padding: 40px 26px;
  }

  /* SP: 写真フル幅 → カードが下から重なる */
  .message, .biz { --pw: 100%; }
  .message__media, .biz__media { aspect-ratio: 3 / 2; }
  .feature__photo img { aspect-ratio: 3 / 2; }

  .message__inner,
  .biz__inner,
  #rd .biz__inner,
  #company .biz__inner {
    width: calc(100% - 32px);
    margin: -44px auto 0;
    padding: 40px 26px;
  }

  .btn-outline { min-width: 170px; padding: 12px 32px; }

  .news { padding: 80px 24px; }

  .news__head { flex-direction: column; align-items: flex-start; gap: 20px; }

  .news__tabs { gap: 8px; flex-wrap: wrap; }

  .news__item a {
    grid-template-columns: auto auto;
    gap: 8px 16px;
    padding: 22px 4px;
  }

  .news__item a::before { grid-row: 1; }
  .news__text { grid-column: 1 / -1; }
  .news__item a:hover { padding-left: 8px; }

  .footer { padding: 56px 24px 24px; }

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

  .footer__sitemap {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------------------------------------------------
   prefers-reduced-motion
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-video { transition: none; }
  .hero-poster.is-active { animation: none; }
  .hero-scroll__line::after { animation: none; }

  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .parallax__bg {
    top: 0;
    height: 100%;
    transform: none !important;
  }
}

/* ==========================================================
   下層ページ共通
   ========================================================== */

/* --- サブヒーロー（下層の共通ヘッダー写真） --- */
/* 固定ヘッダー(白・不透明)の下に写真が始まる構成。
   .parallax を併用すると既存のパララックスJSがそのまま効く。 */
.subhero {
  position: relative;
  min-height: 44svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.subhero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.3) 60%, rgba(0,0,0,.15));
}
.subhero__inner {
  position: relative;
  width: min(1100px, 100%);
  margin: 0 auto;
  /* 固定ヘッダー分をpaddingで確保 → タイトルがヘッダーに隠れない */
  padding: calc(var(--header-h) + 48px) 40px 48px;
}
.subhero__en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: .12em;
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}
.subhero__ja {
  display: block;
  margin-top: 12px;
  font-size: .9rem;
  letter-spacing: .22em;
  opacity: .95;
}

/* --- パンくず --- */
.breadcrumb { background: var(--base); border-bottom: 1px solid var(--line); }
.breadcrumb__inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 14px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .75rem; letter-spacing: .04em; color: var(--gray);
}
.breadcrumb a { color: var(--gray); transition: color .3s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--text); }
.breadcrumb__sep { color: #565049; }

/* --- 標準セクション --- */
.section { padding: 96px 40px; background: var(--base); }
.section--gray { background: #f4f2ed; }
.section__inner { width: min(1100px, 100%); margin: 0 auto; }
.section__inner--narrow { width: min(820px, 100%); margin: 0 auto; }

/* --- セクション見出し（英大 + 和小、newsのタイトル流儀に合わせる） --- */
.sec-head { margin-bottom: 48px; }
.sec-head__en {
  font-family: var(--font-en); font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: .1em; line-height: 1.3; color: var(--text);
}
.sec-head__ja {
  display: block; margin-top: 6px;
  font-size: .8rem; letter-spacing: .22em; color: var(--accent);
}
.sec-head--center { text-align: center; }

/* --- 本文テキスト --- */
.lead { font-size: 1.05rem; line-height: 2.2; letter-spacing: .04em; max-width: 760px; }
.prose { line-height: 2.1; letter-spacing: .03em; }
.prose p + p { margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: .04em; color: var(--accent); margin: 2em 0 .6em; }

/* --- 塗りボタン（明るい背景のCTA用。既存 .btn-outline は写真上用） --- */
.btn-fill {
  display: inline-block; min-width: 200px; padding: 15px 40px;
  border-radius: 0; background: var(--accent); color: #fff;
  font-family: var(--font-en); font-weight: 300; font-size: .85rem;
  letter-spacing: .14em; text-align: center; transition: opacity .3s;
}
.btn-fill:hover { opacity: .88; }

/* --- 定義テーブル（会社概要など） --- */
.def-table { width: 100%; border-collapse: collapse; }
.def-table th, .def-table td {
  text-align: left; vertical-align: top;
  padding: 20px 8px; border-bottom: 1px solid var(--line);
  font-size: .92rem; line-height: 1.9; font-weight: 400;
}
.def-table th { width: 200px; color: var(--accent); font-weight: 500; letter-spacing: .06em; }

/* --- 沿革 --- */
.history { border-top: 1px solid var(--line); }
.history__row {
  display: grid; grid-template-columns: 140px 1fr; gap: 24px;
  padding: 22px 8px; border-bottom: 1px solid var(--line);
}
.history__year {
  font-family: var(--font-en); font-weight: 300; color: var(--accent);
  letter-spacing: .06em; font-size: 1rem;
}
.history__event { font-size: .92rem; line-height: 1.9; }

/* --- カードグリッド --- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card__img { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: #e3e0da; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__title { margin-top: 18px; font-size: 1.05rem; font-weight: 500; letter-spacing: .04em; }
.card__text { margin-top: 8px; font-size: .88rem; color: #5f5c55; line-height: 1.9; }

/* --- 画像 + テキストの2カラム --- */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.media-row + .media-row { margin-top: 72px; }
.media-row--reverse .media-row__media { order: 2; }
.media-row__media img { width: 100%; border-radius: 4px; }
.media-row__title { font-family: var(--font-serif); font-weight: 300; font-size: 1.5rem; letter-spacing: .06em; margin-bottom: 18px; line-height: 1.7; }

/* --- 図版 + キャプション --- */
.figure img { width: 100%; border-radius: 4px; }
.figure figcaption { margin-top: 10px; font-size: .78rem; color: var(--gray); }

/* --- 経営理念ブロック --- */
.philosophy { display: grid; gap: 56px; }
.philosophy__block { text-align: center; }
.philosophy__label { font-family: var(--font-en); letter-spacing: .22em; color: var(--accent); font-size: .8rem; }
.philosophy__phrase {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: .1em;
  margin: 14px 0 20px; line-height: 1.8;
}
.philosophy__text { max-width: 680px; margin: 0 auto; font-size: .95rem; line-height: 2.1; color: #55524b; }

/* --- 共通CTAバンド --- */
.cta { position: relative; padding: 100px 40px; text-align: center; overflow: hidden; color: #fff; }
.cta__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.cta__inner { position: relative; width: min(720px, 100%); margin: 0 auto; }
.cta__title {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .12em;
  line-height: 1.8; margin-bottom: 28px;
}

/* --- お問い合わせフォーム --- */
.form { max-width: 760px; }
.form__row { margin-bottom: 28px; }
.form__label { display: block; font-size: .88rem; font-weight: 500; letter-spacing: .06em; margin-bottom: 8px; }
.form__req { color: #c0392b; font-size: .72rem; margin-left: 8px; }
.form__control {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 4px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--text);
  transition: border-color .3s;
}
.form__control:focus { outline: none; border-color: var(--accent); }
textarea.form__control { min-height: 160px; resize: vertical; }
.form__note { font-size: .8rem; color: var(--gray); line-height: 1.9; }
.form__submit { text-align: center; margin-top: 8px; }
.form__error { color: #c0392b; font-size: .78rem; margin-top: 6px; display: none; }
.form__control.is-invalid { border-color: #c0392b; }

/* --- ニュース一覧のページャ --- */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--font-en); font-size: .85rem; color: var(--text); transition: .3s;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --- ニュース詳細 --- */
.article__head { margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article__meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.article__title { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; line-height: 1.6; letter-spacing: .02em; }
.article__body { line-height: 2.1; letter-spacing: .03em; }
.article__body h2 { font-size: 1.2rem; color: var(--accent); margin: 2em 0 .8em; }
.article__body p { margin-bottom: 1.4em; }

/* --- グローバルナビ現在地 --- */
.gnav__list a.is-current { color: var(--accent); }
.gnav__list a.is-current::after { transform: scaleX(1); }

/* --- 下層レスポンシブ --- */
@media (max-width: 860px) {
  .subhero__inner { padding: calc(var(--header-h) + 28px) 24px 28px; }
  .breadcrumb__inner { padding: 12px 24px; }
  .section { padding: 64px 24px; }
  .sec-head { margin-bottom: 32px; }
  .card-grid, .card-grid--2 { grid-template-columns: 1fr; gap: 28px; }
  .media-row { grid-template-columns: 1fr; gap: 28px; }
  .media-row--reverse .media-row__media { order: 0; }
  .media-row + .media-row { margin-top: 48px; }
  .def-table tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .def-table th, .def-table td { display: block; border-bottom: none; padding: 2px 0; }
  .def-table th { width: auto; }
  .history__row { grid-template-columns: 84px 1fr; gap: 16px; }
  .cta { padding: 72px 24px; }
}


/* ==========================================================
   下層ページ 追加コンポーネント (会社情報系フェーズ)
   ========================================================== */

/* --- プレーンヒーロー(写真なし・生成り) --- */
.subhero--plain {
  min-height: 0;
  color: var(--text);
  background: var(--base);
  border-bottom: 1px solid var(--line);
}
.subhero--plain .subhero__en {
  color: #33312c;
  text-shadow: none;
}
.subhero--plain .subhero__ja {
  color: var(--accent);
  opacity: 1;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
}

/* --- サイドメニュー付き2カラムレイアウト --- */
.sub-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(48px, 5vw, 88px);
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 72px 40px 120px;
}

.sidenav {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  align-self: start;
}
.sidenav__title {
  margin-bottom: 16px;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.76rem;
  letter-spacing: 0.3em;
  color: var(--gray);
}
.sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.sidenav a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--text);
  transition: color 0.3s, padding-left 0.3s;
}
.sidenav a:hover {
  color: var(--accent);
  padding-left: 10px;
}
.sidenav a[aria-current="page"] {
  position: relative;
  padding-left: 16px;
  color: var(--accent);
  font-weight: 500;
}
.sidenav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--accent);
}

/* 本文側の見出し・表の余白微調整 */
.sub-content .sec-head { margin-bottom: 36px; }
.sub-content .def-table + .sec-head { margin-top: 72px; }

@media (max-width: 860px) {
  .sub-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px 80px;
  }
  .sidenav { position: static; }
  .sidenav ul { display: flex; flex-wrap: wrap; gap: 8px; border-top: 0; }
  .sidenav a {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-size: 0.8rem;
  }
  .sidenav a:hover { padding-left: 14px; }
  .sidenav a[aria-current="page"] { padding-left: 14px; border-color: var(--accent); }
  .sidenav a[aria-current="page"]::before { display: none; }
}
