@charset "UTF-8";
/* ============================================================
   MARTINI Website - Main Stylesheet
   ------------------------------------------------------------
   Build: sass scss/style.scss assets/css/style.css --no-source-map --style=expanded
   ※ CSS・JS・画像は assets/ 配下にまとめています（scss はソースのため対象外）
   ------------------------------------------------------------
   Structure:
   1. Variables
   2. Mixins
   3. Reset / Base
   4. Utilities
   5. Layout (Header / Footer)
   6. Common Components (Headline / Buttons)
   7. Sections (Hero / About / Service / Works / News / Contact)
   8. Sub Page (下層ページ共通 / フォーム / 確認画面 / サンクス)
   9. Scroll Reveal
  10. Utilities
   ============================================================ */
/* -------- 1. Variables -------- */
/* 下層ページのローカルナビ帯 */
/* フォームのエラーメッセージ */
/* -------- 2. Mixins -------- */
/* -------- 3. Reset / Base -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #3D3A39;
  background: #EDEFF1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip にすることで position: sticky を壊さず横スクロールだけ抑止 */
  overflow-x: clip;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

button {
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  color: inherit;
}

/* -------- 4. Utilities -------- */
.section {
  position: relative;
  /* sticky な hero(z-index:0) の上に覆いかぶさる */
  z-index: 1;
  width: 100%;
  overflow: hidden;
}

.section__inner {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 160px;
}
@media (max-width: 1023px) {
  .section__inner {
    padding: 100px 60px;
  }
}
@media (max-width: 767px) {
  .section__inner {
    padding: 64px 24px;
  }
}

/* ============================================================
   5. Layout - Header / Footer
   ============================================================ */
/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: background-color 0.3s ease;
}
.site-header.is-scrolled {
  background-color: rgba(61, 58, 57, 0.85);
  backdrop-filter: blur(6px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
}
@media (max-width: 767px) {
  .site-header__inner {
    height: 56px;
    padding: 0 16px;
  }
}
.site-header__logo {
  display: inline-block;
  width: 216px;
  max-width: 44vw;
}
.site-header__logo img {
  width: 100%;
  height: auto;
}
.site-header {
  /* ヘッダー内 Contact ボタン: MV を過ぎたら表示（PCのみ）。
     ホバーは Learn more と同じく塗りが左→右にスライドイン */
}
.site-header__contact {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  /* ラベルは左、矢印は右（サイト共通ボタンと同じ配置） */
  justify-content: space-between;
  gap: 12px;
  width: 400px;
  height: 56px;
  padding: 0 22px;
  margin-left: auto;
  /* ハンバーガーは見た目上 32px 右にずらしているため、
     見た目の間隔 25px = -7px + 32px */
  margin-right: -7px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease, border-color 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  /* 左→右へ流れる塗り（Learn more と同じ挙動） */
}
.site-header__contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #35574A;
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  pointer-events: none;
}
.site-header__contact-label {
  position: relative;
  z-index: 2;
}
.site-header__contact-arrow {
  position: relative;
  z-index: 2;
  /* 横棒はラベルの中心よりわずかに下げる */
  top: 2px;
  width: 118px;
  height: 1px;
  background: currentColor;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}
.site-header__contact-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 11px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  /* 矢じりは線の「上側」に付ける（正の角度＝上向き） */
  transform: translateY(0px) rotate(40deg);
}
.site-header__contact:hover {
  border-color: #35574A;
}
.site-header__contact:hover::before {
  transform: translateX(0);
}
.site-header__contact:hover .site-header__contact-arrow {
  transform: translateX(6px);
}
@media (max-width: 767px) {
  .site-header__contact {
    display: none;
  }
}
.site-header {
  /* ハンバーガー: 幅広の2本線。開くと同じ線がそのまま大きな×に変形して右上に残る */
}
.site-header__burger {
  position: relative;
  right: -32px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  width: 64px;
  height: 44px;
  padding: 0;
  cursor: pointer;
}
.site-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #FFFFFF;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1), background-color 0.3s ease;
}
.site-header__burger {
  /* 2本線 → ×（中央で交差）。gap 22px の半分=11px 寄せて交差 */
}
.site-header__burger.is-open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.site-header__burger.is-open span:nth-child(2) {
  transform: translateY(-11px) rotate(-45deg);
}
@media (max-width: 767px) {
  .site-header__burger {
    right: 0;
    gap: 16px;
    width: 44px;
    height: 34px;
  }
  .site-header__burger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .site-header__burger.is-open span:nth-child(2) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
.site-header {
  /* メニューを開いている間はヘッダーをナビ(z:150)より前面に出し、
     ハンバーガー(=×)を大きく右上に見せる。背景ぼかしやContactは消す */
}
.site-header:has(.site-header__burger.is-open) {
  z-index: 200;
  background-color: transparent;
  backdrop-filter: none;
}
.site-header:has(.site-header__burger.is-open) .site-header__contact,
.site-header:has(.site-header__burger.is-open) .site-header__cta {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ---- WordPress の管理バー対策 ----
   ログイン中は <html> に 32px（幅782px以下は46px）の余白が入るため、
   固定ヘッダーをその分だけ下げないと、ヘッダーと本文の間に隙間ができる */
body.admin-bar .site-header {
  top: 32px;
}
body.admin-bar .global-nav {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
  body.admin-bar .global-nav {
    top: 46px;
  }
}

/* ---- Global Nav (フルスクリーンメニュー) ---- */
.global-nav {
  position: fixed;
  inset: 0;
  z-index: 150; /* ヘッダー(100)より前面。body直下に配置し常に全画面 */
  display: flex;
  background: #3D3A39;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
.global-nav.is-open {
  opacity: 1;
  visibility: visible;
}
.global-nav {
  /* 左: ビジュアル（PCのみ） */
}
.global-nav__visual {
  position: relative;
  width: 42%;
  flex-shrink: 0;
  overflow: hidden;
}
.global-nav__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) brightness(0.85);
  transform: scale(1.06);
  transition: transform 1.2s ease;
}
@media (max-width: 1023px) {
  .global-nav__visual {
    display: none;
  }
}
.global-nav.is-open .global-nav__visual img {
  transform: scale(1);
}
.global-nav {
  /* 右: メニュー本体 */
}
.global-nav__body {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.global-nav__body::-webkit-scrollbar {
  display: none;
}
.global-nav__body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 40px;
  padding: 104px 8% 56px;
  color: #EDEFF1;
}
@media (max-width: 767px) {
  .global-nav__body {
    padding: 84px 24px 40px;
    gap: 28px;
  }
}

/* メニュー項目 */
.gnav {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 72px);
  perspective: 900px;
}
@media (max-width: 767px) {
  .gnav {
    flex-direction: column;
    gap: 28px;
  }
}
.gnav {
  /* 左カラム: TOP / ABOUT / SERVICE、右カラム: WORKS〜CONTACT */
}
.gnav__col {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media (max-width: 767px) {
  .gnav__col {
    gap: 20px;
  }
}
.gnav__col:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.gnav__col:last-child {
  flex: 0 0 auto;
}
.gnav__link {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}
.gnav__link:hover {
  opacity: 1;
}
.gnav__link:hover .gnav__en {
  color: #FFFFFF;
}
.gnav__en {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: 0.08em;
  line-height: 1;
  color: #EDEFF1;
  transition: color 0.3s ease;
  /* 開いた時に控えめな半回転で登場 */
  opacity: 0;
  transform: rotateY(-90deg);
  transform-origin: left center;
}
@media (max-width: 767px) {
  .gnav__en {
    font-size: 24px;
  }
}
.gnav__ja {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(237, 239, 241, 0.55);
  opacity: 0;
  transform: translateY(6px);
}
.gnav {
  /* SERVICE 配下（第3階層）。セクション丸ごとフェードイン。
     transition は is-open 側だけに定義 → 閉じると即リセットされ、開くたびに再生される */
}
.gnav__children {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 28px;
  opacity: 0;
  transform: translateY(8px);
}
.gnav {
  /* 機械設備・販売を縦に並べる（PC: オリジナルフロアシリーズの右に段組み） */
}
.gnav__group-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.gnav__group-title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(237, 239, 241, 0.9);
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(237, 239, 241, 0.2);
}
.gnav__group ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.gnav__group li a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(237, 239, 241, 0.7);
  transition: color 0.25s ease;
}
.gnav__group li a:hover {
  opacity: 1;
  color: #FFFFFF;
}

/* 開いた時の登場アニメーション（英字＝半回転、和文＝フェード、子＝フェード）。
   オーバーレイが開いてから少し遅れて、ゆっくり登場させる */
.global-nav.is-open .gnav__en {
  opacity: 1;
  transform: rotateY(0deg);
  transition: opacity 0.9s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.global-nav.is-open .gnav__ja {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.global-nav.is-open {
  /* SERVICE 子項目・フッターもセクション丸ごと登場（transition は開く時だけ） */
}
.global-nav.is-open .gnav__children {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 0.95s, transform 0.8s ease 0.95s;
}
.global-nav.is-open .gnav-foot {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease 1.25s, transform 0.8s ease 1.25s;
}

/* 項目ごとに少しずつ遅延（開始を少し遅らせ、間隔もゆったり） */
.global-nav.is-open .gnav__item:nth-child(1) .gnav__en {
  transition-delay: 0.4s;
}
.global-nav.is-open .gnav__item:nth-child(1) .gnav__ja {
  transition-delay: 0.48s;
}

.global-nav.is-open .gnav__item:nth-child(2) .gnav__en {
  transition-delay: 0.5s;
}
.global-nav.is-open .gnav__item:nth-child(2) .gnav__ja {
  transition-delay: 0.58s;
}

.global-nav.is-open .gnav__item:nth-child(3) .gnav__en {
  transition-delay: 0.6s;
}
.global-nav.is-open .gnav__item:nth-child(3) .gnav__ja {
  transition-delay: 0.68s;
}

.global-nav.is-open .gnav__item:nth-child(4) .gnav__en {
  transition-delay: 0.7s;
}
.global-nav.is-open .gnav__item:nth-child(4) .gnav__ja {
  transition-delay: 0.78s;
}

.global-nav.is-open .gnav__item:nth-child(5) .gnav__en {
  transition-delay: 0.8s;
}
.global-nav.is-open .gnav__item:nth-child(5) .gnav__ja {
  transition-delay: 0.88s;
}

.global-nav.is-open .gnav__item:nth-child(6) .gnav__en {
  transition-delay: 0.9s;
}
.global-nav.is-open .gnav__item:nth-child(6) .gnav__ja {
  transition-delay: 0.98s;
}

.global-nav.is-open .gnav__item:nth-child(7) .gnav__en {
  transition-delay: 1s;
}
.global-nav.is-open .gnav__item:nth-child(7) .gnav__ja {
  transition-delay: 1.08s;
}

.global-nav.is-open .gnav__item:nth-child(8) .gnav__en {
  transition-delay: 1.1s;
}
.global-nav.is-open .gnav__item:nth-child(8) .gnav__ja {
  transition-delay: 1.18s;
}

/* メニュー下部の情報 */
.gnav-foot {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid rgba(237, 239, 241, 0.18);
  color: rgba(237, 239, 241, 0.7);
  /* 開くたびに最後にフェードイン。transition は is-open 側だけ（閉じると即リセット） */
  opacity: 0;
  transform: translateY(12px);
}
.gnav-foot__label {
  font-family: "Playfair Display", serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #EDEFF1;
  margin-bottom: 4px;
}
.gnav-foot__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.gnav-foot__copy {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(237, 239, 241, 0.5);
}

/* SP: SERVICE の見出しはページ遷移用のリンク。下層の一覧は常に表示しておく */
@media (max-width: 767px) {
  .gnav__item--parent > .gnav__link {
    position: relative;
    width: 100%;
  }
  .global-nav.is-open .gnav__item--parent .gnav__children {
    max-height: none;
    overflow: visible;
    opacity: 1;
    margin-top: 16px;
    transform: none;
  }
}
/* MV を過ぎたらヘッダーの Contact ボタンを表示（PC） */
body.is-past-mv .site-header__contact {
  opacity: 1;
  visibility: visible;
}

/* ---- Footer ---- */
.site-footer {
  background: #3D3A39;
  color: #EDEFF1;
}
.site-footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 80px 32px;
  display: flex;
  align-items: flex-start;
  gap: 64px;
}
@media (max-width: 1023px) {
  .site-footer__inner {
    flex-wrap: wrap;
    gap: 48px;
    padding: 64px 60px 32px;
  }
}
@media (max-width: 767px) {
  .site-footer__inner {
    flex-direction: column;
    gap: 40px;
    padding: 56px 24px 24px;
  }
}
.site-footer {
  /* 左: ロゴ + SNS */
}
.site-footer__brand {
  width: 290px;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .site-footer__brand {
    width: 100%;
  }
}
.site-footer__logo {
  width: 216px;
  max-width: 60vw;
}
.site-footer__logo img {
  width: 100%;
}
.site-footer__sns {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.site-footer__sns-link {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: #EDEFF1;
}
.site-footer__sns-link svg {
  width: 100%;
  height: 100%;
  display: block;
}
.site-footer__sns-link:hover {
  opacity: 0.7;
}
.site-footer {
  /* 右: サイトマップ */
}
.site-footer__nav {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 0;
}
@media (max-width: 1023px) {
  .site-footer__nav {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 40px 0;
  }
}
@media (max-width: 767px) {
  .site-footer__nav {
    flex-direction: column;
    gap: 32px;
  }
}
.site-footer {
  /* 各カラムは等幅・左そろえ（PCは25%ずつ） */
}
.site-footer__col {
  flex: 0 0 25%;
  width: 25%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 1023px) {
  .site-footer__col {
    flex: 0 0 50%;
    width: 50%;
  }
}
@media (max-width: 767px) {
  .site-footer__col {
    flex: 1 1 auto;
    width: 100%;
    gap: 24px;
  }
}
.site-footer__meta {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px 32px;
  text-align: right;
}
@media (max-width: 1023px) {
  .site-footer__meta {
    padding: 0 60px 32px;
  }
}
@media (max-width: 767px) {
  .site-footer__meta {
    padding: 16px 24px 24px;
    text-align: left;
  }
}
.site-footer__copy {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(237, 239, 241, 0.7);
}

/* フッターのメニュー項目（英字＋和文） */
.fnav__link {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  /* 小項目と同じく、ホバーで文字色が明るくなる */
}
.fnav__link:hover {
  opacity: 1;
}
.fnav__link:hover .fnav__en {
  color: #FFFFFF;
}
.fnav__link:hover .fnav__ja {
  color: #FFFFFF;
}
.fnav__en {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(237, 239, 241, 0.8);
  transition: color 0.3s ease;
}
@media (max-width: 767px) {
  .fnav__en {
    font-size: 22px;
  }
}
.fnav__ja {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: rgba(237, 239, 241, 0.6);
  transition: color 0.3s ease;
}
.fnav {
  /* SERVICE 配下のグループ */
}
.fnav__group {
  margin-top: 8px;
}
.fnav__group + .fnav__group {
  margin-top: 24px;
}
.fnav {
  /* 中項目（オリジナルフロアシリーズ／機械設備／販売）。リンクにもなる */
}
.fnav__group-title {
  display: inline-block;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.fnav__group-title:hover {
  opacity: 1;
  color: #FFFFFF;
  border-bottom-color: #FFFFFF;
}
.fnav__group-title {
  /* 下線を文字の右へ日本語2文字分ほど伸ばす（折り返さないように） */
  padding-right: 2em;
  padding-bottom: 6px;
  white-space: nowrap;
  margin-bottom: 12px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: #EDEFF1;
  border-bottom: 1px solid rgba(237, 239, 241, 0.5);
}
.fnav__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fnav__item a {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: rgba(237, 239, 241, 0.8);
}
.fnav__item a:hover {
  opacity: 1;
  color: #FFFFFF;
}

/* ============================================================
   6. Common Components
   ============================================================ */
/* ---- Headline ---- */
.headline {
  position: relative;
  display: inline-block;
  padding-bottom: 24px;
  /* スマホ時は全ての見出しを CONTACT と同じ中央揃えに
     （flex 親が align-items:flex-start でも中央になるよう width:100%） */
}
@media (max-width: 767px) {
  .headline {
    display: block;
    width: 100%;
    text-align: center;
  }
}
.headline__en {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 64px;
  letter-spacing: 0.1em;
  color: #3D3A39;
  line-height: 1;
}
@media (max-width: 767px) {
  .headline__en {
    font-size: 40px;
  }
}
.headline__ja {
  display: block;
  margin-top: 16px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 24px;
  color: #35574A;
  line-height: 1;
}
@media (max-width: 767px) {
  .headline__ja {
    font-size: 18px;
    margin-top: 12px;
  }
}
.headline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 40px;
  height: 2px;
  background: #3D3A39;
  transform: none;
  /* スマホ時は下線も中央に（ベース定義の後に出力させて確実に上書き） */
}
@media (max-width: 767px) {
  .headline::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
.headline--light .headline__en {
  color: #EDEFF1;
}
.headline--light .headline__ja {
  color: #EDEFF1;
}
.headline--light::after {
  background: #EDEFF1;
}
.headline--center {
  display: block;
  text-align: center;
  /* 中央寄せ見出しは下線も中央に */
}
.headline--center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* ---- Buttons ----
   ホバー時に左→右へ塗りがスライドインする、スタイリッシュな挙動
   ------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 399px;
  max-width: 100%;
  height: 56px;
  padding: 0 32px 0 40px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  overflow: hidden;
  isolation: isolate;
  /* スマホのデフォルトのタップハイライト（灰色のフラッシュ）が出ると、
     背景だけ変わってテキスト色は変わらないように見えてしまうため無効化し、
     :active でPCの :hover と同じ配色変化を出す */
  -webkit-tap-highlight-color: transparent;
  transition: color 0.5s cubic-bezier(0.77, 0, 0.175, 1), border-color 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  /* タッチ端末は指を離すまでの時間が短く（.is-pressed の保持時間はJS側で
     最低限確保しているが）、.5sの色変化だと指を離すまでに変化しきらず
     「変わっていないように見える」ことがあるため、タッチ端末だけ
     ほぼ瞬時に切り替わるようにする（PCのマウスホバーは従来どおり.5sで
     ゆっくり変化させたいので、hover:none の端末だけに限定する） */
}
@media (hover: none) {
  .btn {
    transition-duration: 0.08s;
  }
}
@media (max-width: 767px) {
  .btn {
    width: 100%;
    padding: 0 20px;
    font-size: 14px;
    height: 52px;
  }
}
.btn__label, .btn__arrow {
  position: relative;
  z-index: 2;
  transition: color 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
@media (hover: none) {
  .btn__label, .btn__arrow {
    transition-duration: 0.08s;
  }
}
.btn__label {
  line-height: 1;
}
.btn__arrow {
  width: 56px;
  height: 1px;
  background: currentColor;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1), color 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  /* transform（スライド移動）の見た目の良さはそのまま、colorだけ
     タッチ端末で瞬時に切り替わるようにする（順番は上のtransition-property
     の並びと対応：1番目=transform, 2番目=color） */
}
@media (hover: none) {
  .btn__arrow {
    transition-duration: 0.55s, 0.08s;
  }
}
.btn__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  /* 矢じりは線の「上側」に付ける（正の角度＝上向き） */
  transform: translateY(0px) rotate(36.87deg);
}
.btn {
  /* 左→右へ流れる塗り */
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  transform: translateX(-101%);
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
  pointer-events: none;
}
.btn {
  /* .is-pressed はJS（initBtnTouchActive）がtouchstart/touchendで付け外しする
     クラス。実機（iOS Safari）では :active だけだと文字色など一部のプロパティが
     切り替わらない端末があったため、CSSの:activeに加えてJS管理のクラスでも
     同じスタイルを確実に当てられるようにしている */
}
.btn:hover, .btn:focus-visible, .btn:active, .btn.is-pressed {
  opacity: 1;
  outline: none;
}
.btn:hover::before, .btn:focus-visible::before, .btn:active::before, .btn.is-pressed::before {
  transform: translateX(0);
}
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow, .btn:active .btn__arrow, .btn.is-pressed .btn__arrow {
  transform: translateX(8px);
}
.btn {
  /* -- Variants -- */
  /* ABOUT / WORKS / CONTACT のボタン:
     通常は枠線＋文字＋矢印が #3D3A39、ホバーで緑塗り＋白文字 */
}
.btn--filled {
  background: transparent;
  color: #3D3A39;
  border: 1px solid #3D3A39;
}
.btn--filled::before {
  background: #35574A;
}
.btn--filled {
  /* .btn__label / .btn__arrow は color の継承に頼らず、ここで直接指定する。
     実機（iOS Safari）では :active 時に親の color が子へ継承されるだけだと
     文字・矢印の色が切り替わらない端末があったため */
}
.btn--filled:hover, .btn--filled:active, .btn--filled.is-pressed {
  color: #FFFFFF;
  border-color: #35574A;
}
.btn--filled:hover .btn__label, .btn--filled:hover .btn__arrow, .btn--filled:active .btn__label, .btn--filled:active .btn__arrow, .btn--filled.is-pressed .btn__label, .btn--filled.is-pressed .btn__arrow {
  color: #FFFFFF;
}
.btn {
  /* 明色背景（オリジナルフロアシリーズ等）のボタン。
     通常は枠線＋文字が #3D3A39、ホバーで MTN/green の塗りに変わる */
}
.btn--outline-dark {
  background: transparent;
  color: #3D3A39;
  border: 1px solid #3D3A39;
}
.btn--outline-dark::before {
  background: #35574A;
}
.btn--outline-dark:hover, .btn--outline-dark:active, .btn--outline-dark.is-pressed {
  color: #EDEFF1;
  border-color: #35574A;
}
.btn--outline-dark:hover .btn__label, .btn--outline-dark:hover .btn__arrow, .btn--outline-dark:active .btn__label, .btn--outline-dark:active .btn__arrow, .btn--outline-dark.is-pressed .btn__label, .btn--outline-dark.is-pressed .btn__arrow {
  color: #EDEFF1;
}
.btn {
  /* 深緑カード上に置く明色ボタン（NEXT CTA など）。
     通常はグレーの塗り＋深緑の文字。ホバーで緑の塗りに変わり、枠線・文字・矢印が白になる。
     （枠線は通常時は地色と同色にして、サイズが変わらないようにしている） */
}
.btn--light {
  background: #EDEFF1;
  color: #35574A;
  border: 1px solid #EDEFF1;
}
.btn--light::before {
  background: #35574A;
}
.btn--light:hover, .btn--light:active, .btn--light.is-pressed {
  color: #FFFFFF;
  border-color: #FFFFFF;
}
.btn--light:hover .btn__label, .btn--light:hover .btn__arrow, .btn--light:active .btn__label, .btn--light:active .btn__arrow, .btn--light.is-pressed .btn__label, .btn--light.is-pressed .btn__arrow {
  color: #FFFFFF;
}
.btn {
  /* サブボタン（前の画面に戻る など）: 通常時はグレーの塗り、ホバーで濃色にスライド */
}
.btn--sub {
  background: #EDEFF1;
  color: #3D3A39;
  border: 1px solid #3D3A39;
}
.btn--sub::before {
  background: #3D3A39;
}
.btn--sub:hover, .btn--sub:active, .btn--sub.is-pressed {
  color: #EDEFF1;
}
.btn--sub:hover .btn__label, .btn--sub:hover .btn__arrow, .btn--sub:active .btn__label, .btn--sub:active .btn__arrow, .btn--sub.is-pressed .btn__label, .btn--sub.is-pressed .btn__arrow {
  color: #EDEFF1;
}
.btn--outline-light {
  background: transparent;
  color: #EDEFF1;
  border: 1px solid #EDEFF1;
}
.btn--outline-light::before {
  background: #EDEFF1;
}
.btn--outline-light:hover, .btn--outline-light:active, .btn--outline-light.is-pressed {
  color: #3D3A39;
}
.btn--outline-light:hover .btn__label, .btn--outline-light:hover .btn__arrow, .btn--outline-light:active .btn__label, .btn--outline-light:active .btn__arrow, .btn--outline-light.is-pressed .btn__label, .btn--outline-light.is-pressed .btn__arrow {
  color: #3D3A39;
}
.btn--contact {
  background: #35574A;
  color: #EDEFF1;
}
.btn--contact::before {
  background: #3D3A39;
}
.btn--contact:hover, .btn--contact:active, .btn--contact.is-pressed {
  color: #EDEFF1;
}
.btn--contact:hover .btn__label, .btn--contact:hover .btn__arrow, .btn--contact:active .btn__label, .btn--contact:active .btn__arrow, .btn--contact.is-pressed .btn__label, .btn--contact.is-pressed .btn__arrow {
  color: #EDEFF1;
}
.btn {
  /* 和文ラベルのボタン（送信するなど）: 明朝を site 共通のものに揃える */
}
.btn--ja .btn__label {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.btn {
  /* 英字ラベルに和文の補足を添えるボタン（例: Service 製品・サービス） */
}
.btn__label-ja {
  margin-left: 14px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) {
  .btn__label-ja {
    margin-left: 10px;
    font-size: 13px;
  }
}
.btn {
  /* カード内などに収める小さめのボタン */
}
.btn--sm {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 24px;
  font-size: 14px;
}
.btn--sm .btn__arrow {
  width: 32px;
}
.btn--sm .btn__label-ja {
  margin-left: 10px;
  font-size: 13px;
}
@media (max-width: 767px) {
  .btn--sm {
    height: 46px;
  }
}

/* ============================================================
   7. Sections
   ============================================================ */
/* ---------- Hero (First View) ---------- */
.hero {
  /* カーテンエフェクト: heroを固定し、後続セクションが上に覆いかぶさる */
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: #1a1a1a;
}
@media (max-width: 767px) {
  .hero {
    /* スマホは 100vh 固定にはこだわらず、実ビューポート基準に */
    height: 100svh;
    min-height: 600px;
    /* SPはカーテンエフェクトを無効化（追従Contactボタンを最前面に保つため通常配置に戻す） */
    position: relative;
    top: auto;
    z-index: auto;
  }
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6) saturate(0.9);
  z-index: 0;
}
.hero {
  /* MARTINI 巨大テキスト（静止・上部・幅を溢れる） */
}
.hero__mega-text {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Fraunces", "Playfair Display", serif;
  font-weight: 900;
  font-size: clamp(200px, 26vw, 460px);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: rgba(252, 248, 243, 0.18);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.4s ease 0.1s;
}
@media (max-width: 767px) {
  .hero__mega-text {
    top: 12%;
    font-size: clamp(140px, 42vw, 220px);
  }
}
.hero.is-loaded .hero__mega-text {
  opacity: 1;
}
.hero {
  /* キャラクター群: 画面幅1400px相当の位置で固定し、
     それより広い画面でも左右に離れすぎないよう中央寄せでキャップ */
}
.hero__characters {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  z-index: 2;
  pointer-events: none;
}
.hero {
  /* キャラクター: 大きく、腰上のみ見える。img自身がクリック要素 */
}
.hero__char {
  position: absolute;
  bottom: -110%;
  height: 200%;
  width: auto;
  display: block;
  pointer-events: auto;
  cursor: pointer;
  object-fit: contain;
  object-position: top center;
  filter: grayscale(100%) contrast(1.05);
  transition: filter 0.7s ease, transform 0.7s ease;
  will-change: filter, transform;
  /* タブレット: やや小さくして中央のデザイナーと干渉させない */
}
@media (max-width: 1023px) {
  .hero__char {
    height: 165%;
    bottom: -78%;
  }
}
.hero__char {
  /* スマホ: ズームを抑え、より全身（等身）に近い見せ方へ */
}
@media (max-width: 767px) {
  .hero__char {
    height: 112%;
    bottom: -35%;
  }
}
.hero__char:hover, .hero__char.is-active {
  filter: grayscale(0%) contrast(1);
  transform: translateY(-6px);
}
.hero__char {
  /* 左：営業（緑ネクタイの男性） */
}
.hero__char--sales {
  left: 0;
  z-index: 2;
  /* 画面が狭い時は少し外側へ逃がし、寄りすぎ（中央と重なり）を防ぐ */
}
@media (max-width: 1023px) {
  .hero__char--sales {
    left: -5%;
  }
}
@media (max-width: 767px) {
  .hero__char--sales {
    left: -16%;
  }
}
.hero__char {
  /* 右：施工（作業着の男性） */
}
.hero__char--constructor {
  right: 0;
  z-index: 2;
}
@media (max-width: 1023px) {
  .hero__char--constructor {
    right: -5%;
  }
}
@media (max-width: 767px) {
  .hero__char--constructor {
    right: -16%;
  }
}
.hero__char {
  /* 中央：デザイナー（女性）- 前面配置 */
}
.hero__char--designer {
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.hero__char--designer:hover, .hero__char--designer.is-active {
  transform: translateX(-50%) translateY(-6px);
}
.hero {
  /* メインキャッチコピー（テキスト・巨大） */
}
.hero__catch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  z-index: 5;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  pointer-events: none;
}
.hero__catch-text {
  display: inline-block;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(52px, 9.5vw, 140px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  /* PC: 1行で表示（改行させない） */
  white-space: nowrap;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s ease 0.35s, transform 1.2s ease 0.35s;
  /* スマホ: 「モノづくりの」で改行して2行に */
}
@media (max-width: 767px) {
  .hero__catch-text {
    white-space: normal;
  }
}
.hero__catch {
  /* 改行用<br>: PCでは無効化、SPのみ有効 */
}
.hero__catch-br {
  display: none;
}
@media (max-width: 767px) {
  .hero__catch-br {
    display: inline;
  }
}
.hero.is-loaded .hero__catch-text {
  opacity: 1;
  transform: translateY(0);
}
.hero {
  /* 下段: サブタグライン(左) + Contact Us(右)。1120px内・左右32px */
}
.hero__inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .hero__inner {
    padding: 0 20px;
    /* 下部固定の Contact ボタン(高さ+下余白 約80px)と重ならないよう上げる */
    bottom: 104px;
    /* 下部固定 Contact を works ナビ等(z:10)より前面にするためグループを持ち上げる */
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
}
.hero__tagline {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 32px;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  margin: 0;
}
.hero__tagline span {
  display: block;
}
@media (max-width: 767px) {
  .hero__tagline {
    font-size: 20px;
  }
}
.hero {
  /* Contact ボタン一式: MV(ヒーロー)下段に配置し、スクロールで一緒に流れる（追従しない）。
     背面に白い枠を右下へズラした装飾。ホバーは通常のボタンと同じ挙動 */
}
.hero__cta-frame {
  position: relative;
  flex-shrink: 0;
  width: 400px;
  margin-left: auto; /* タグラインとの折り返し時も右寄せを維持 */
  /* スマホは MV 表示時点から画面下部に固定して追従 */
}
@media (max-width: 767px) {
  .hero__cta-frame {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    margin-left: 0;
    z-index: 90;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* フッター領域に入ったら消す */
  }
  body.is-at-footer .hero__cta-frame {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.hero__cta-frame {
  /* 背面の白枠。通常は右下にズレ、ホバーでボタンに重なる（元のアニメーション） */
}
.hero__cta-frame::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 1px solid #FFFFFF;
  transform: translate(6px, 6px);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}
.hero__cta-frame:hover::after, .hero__cta-frame:focus-within::after {
  transform: translate(0, 0);
}
.hero__cta {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ---------- About ---------- */
.section--about {
  background: #EDEFF1;
}

.about__inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  /* 折り返し時はタイトル（テキスト）を一番上に */
}
@media (max-width: 1023px) {
  .about__inner {
    flex-direction: column;
    gap: 48px;
  }
}
.about__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 560px;
  position: relative;
  z-index: 2;
}
.about__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
.about__lead p {
  margin-bottom: 16px;
}
.about__lead p:last-child {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .about__lead {
    font-size: 15px;
    line-height: 2;
  }
}
.about__image {
  position: relative;
  width: 480px;
  max-width: 100%;
  flex-shrink: 0;
}
.about__image img {
  width: 100%;
  height: 580px;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .about__image img {
    height: 400px;
  }
}
@media (max-width: 767px) {
  .about__image img {
    height: 320px;
  }
}
.about__cross {
  position: absolute;
  right: 60px;
  top: 60%;
  width: 560px;
  max-width: 45%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 1023px) {
  .about__cross {
    display: none;
  }
}
.about {
  /* 右下の装飾ライン: bottom-right を起点に、横は左へ・縦は上へ伸びる。
     伸び具合は JS が --about-line (0〜1) をスクロール量に応じて更新 */
}
.about__deco-lines {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 560px;
  height: 560px;
  pointer-events: none;
  z-index: 1;
  --about-line-len: 560px;
}
@media (max-width: 1023px) {
  .about__deco-lines {
    display: none;
  }
}
.about__deco-line {
  position: absolute;
  background: #3D3A39;
  will-change: transform;
}
.about {
  /* 横線: 下から 75px、右端起点に左へ伸びる（画面に入ったら自動で伸びる） */
}
.about__deco-line--h {
  right: 0;
  bottom: 75px;
  width: var(--about-line-len);
  height: 1px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 2.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.about {
  /* 縦線: 右から 75px、下端起点に上へ伸びる（横線と同じ長さ・少し遅れて） */
}
.about__deco-line--v {
  right: 75px;
  bottom: 0;
  width: 1px;
  height: var(--about-line-len);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 2.4s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}
.about__deco-lines.is-visible .about__deco-line--h {
  transform: scaleX(1);
}
.about__deco-lines.is-visible .about__deco-line--v {
  transform: scaleY(1);
}

/* ---------- Service ---------- */
.section--service {
  position: relative;
  background: #3D3A39;
  color: #EDEFF1;
}

.service__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
  z-index: 2;
}
@media (max-width: 767px) {
  .service__inner {
    gap: 48px;
  }
}
.service {
  /* セクション全体レベルの装飾文字 (Design/Creation) */
}
.service__deco {
  position: absolute;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 12.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(237, 239, 241, 0.2);
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
  /* 右上 */
}
.service__deco--design {
  top: -3.75%;
  right: 0;
}
.service__deco {
  /* 右下 */
}
.service__deco--creation {
  bottom: -2.3%;
  right: 0;
}
@media (max-width: 1023px) {
  .service__deco {
    font-size: clamp(100px, 18vw, 180px);
  }
}
@media (max-width: 767px) {
  .service__deco {
    display: none;
  }
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 160px;
  position: relative;
  width: 100%;
}
@media (max-width: 767px) {
  .service-list {
    gap: 80px;
  }
}

.service-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 80px;
  z-index: 2;
}
@media (max-width: 1023px) {
  .service-item {
    flex-direction: column;
    gap: 32px;
  }
}
.service-item {
  /* Service 2: viewport全幅の明色カード */
}
.service-item--reverse {
  flex-direction: column;
  gap: 0;
  padding: 150px 0;
  background: #D9D9D9;
  color: #3D3A39;
  /* 左は画面端までブリードし、右端はコンテンツ列の右端で止める。
     画像より右側にはサービスセクションの地色(#3D3A39)が見える */
  width: calc(50% + 50vw);
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  /* タブレット以下は縦積みのため左右ブリードに戻す */
}
@media (max-width: 1023px) {
  .service-item--reverse {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}
@media (max-width: 767px) {
  .service-item--reverse {
    padding: 80px 0;
  }
}
.service-item {
  /* Service 2内部レイアウト（テキスト左・画像右） */
}
.service-item__inner {
  /* 上下セクションの service-item と同じ幅・同じ左右位置に揃える。
     カード右端（＝コンテンツ列右端）に右寄せするので、画像の右側は地色になる */
  width: min(1120px, 100vw - 320px);
  max-width: none;
  margin-left: auto;
  margin-right: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: center;
  justify-content: space-between;
  /* 折り返し時は上下のサービス項目と同様、画像を上に */
}
@media (max-width: 1023px) {
  .service-item__inner {
    width: 100%;
    margin: 0;
    padding: 0 60px;
    flex-direction: column-reverse;
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .service-item__inner {
    padding: 0 24px;
    gap: 24px;
  }
}
.service-item__image {
  flex-shrink: 0;
  width: 480px;
  max-width: 100%;
}
.service-item__image img {
  width: 100%;
  /* 3枚とも同じ比率（3:2）で表示する */
  aspect-ratio: 3/2;
  height: auto;
  object-fit: cover;
}
.service-item__body {
  width: 560px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.service-item__title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 0.1em;
  line-height: 1.2;
}
@media (max-width: 767px) {
  .service-item__title {
    font-size: 28px;
  }
}
.service-item__desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.1em;
}
@media (max-width: 767px) {
  .service-item__desc {
    font-size: 15px;
  }
}
.service-item {
  /* Service 2 左下装飾 "Floor" */
}
.service-item__deco {
  position: absolute;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 12.5rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 1;
}
.service-item__deco--floor {
  bottom: -7%;
  left: 0;
  color: rgba(61, 58, 57, 0.2);
}
@media (max-width: 1023px) {
  .service-item__deco {
    font-size: clamp(100px, 18vw, 180px);
  }
}
@media (max-width: 767px) {
  .service-item__deco {
    display: none;
  }
}

/* ---------- Works ---------- */
.section--works {
  background: #EDEFF1;
}

.works__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
  position: relative;
}
@media (max-width: 767px) {
  .works__inner {
    gap: 48px;
  }
}
.works__head {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
@media (max-width: 1023px) {
  .works__head {
    flex-direction: column;
    gap: 24px;
  }
}
.works__lead {
  flex: 1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .works__lead {
    font-size: 15px;
  }
}
.works__btn-wrap {
  display: flex;
  justify-content: center;
  /* カルーセルとの間隔を 80px → 50px に */
  margin-top: -30px;
}
.works__deco {
  position: absolute;
  left: 50%;
  /* デザインに合わせ、下端が少し隠れる程度に */
  bottom: -65px;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 200px;
  color: #35574A;
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .works__deco {
    font-size: 100px;
  }
}
@media (max-width: 767px) {
  .works__deco {
    display: none;
  }
}

.works-carousel {
  position: relative;
  /* 画面幅いっぱい（ビューポート全幅にブリード） */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.works-carousel__viewport {
  position: relative;
  overflow: hidden;
}
.works-carousel__track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0;
  scroll-padding-inline: 50%;
  /* スクロールバーを完全に非表示 */
  scrollbar-width: none;
}
.works-carousel__track::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.works-carousel__track {
  -ms-overflow-style: none;
}
.works-carousel {
  /* 矢印は中央カードの左右に絶対配置。四角ボタン + < > */
}
.works-carousel__nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EDEFF1;
  border: 1px solid #3D3A39;
  border-radius: 0;
  z-index: 10;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.works-carousel__nav:hover {
  background: #3D3A39;
}
.works-carousel__nav:hover .works-carousel__chevron {
  border-color: #EDEFF1;
}
.works-carousel__nav {
  /* 中央カードの左右に位置させる（560px + margin 補正） */
}
.works-carousel__nav--prev {
  left: calc(50% - 300px);
}
.works-carousel__nav--prev .works-carousel__chevron {
  transform: rotate(-135deg);
  margin-left: 4px;
}
@media (max-width: 1023px) {
  .works-carousel__nav--prev {
    left: calc(50% - 214px);
  }
}
@media (max-width: 767px) {
  .works-carousel__nav--prev {
    left: 14px;
  }
}
.works-carousel__nav--next {
  right: calc(50% - 300px);
}
.works-carousel__nav--next .works-carousel__chevron {
  transform: rotate(45deg);
  margin-right: 4px;
}
@media (max-width: 1023px) {
  .works-carousel__nav--next {
    right: calc(50% - 214px);
  }
}
@media (max-width: 767px) {
  .works-carousel__nav--next {
    right: 14px;
  }
}
.works-carousel {
  /* CSSで描画した < > シェブロン */
}
.works-carousel__chevron {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #3D3A39;
  border-right: 1.5px solid #3D3A39;
  transition: border-color 0.25s ease;
}

.works-card {
  flex: 0 0 560px; /* サイズは全て同じ */
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0.3;
  filter: grayscale(70%);
  transition: opacity 0.5s ease, filter 0.5s ease;
  /* フォーカス時: サイズは変えず、色/透明度のみ変更 */
}
.works-card.is-focus, .works-card--active {
  opacity: 1;
  filter: grayscale(0%);
}
.works-card:hover {
  opacity: 1;
  filter: grayscale(0%);
}
@media (max-width: 1023px) {
  .works-card {
    flex: 0 0 440px;
  }
}
@media (max-width: 767px) {
  .works-card {
    flex: 0 0 300px;
  }
}
.works-card__image {
  width: 100%;
  /* 第2階層のカードと同じ比率 */
  aspect-ratio: 1.37;
  overflow: hidden;
}
.works-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-card {
  /* 第2階層（実績紹介一覧）のカードと同じ体裁 */
}
.works-card__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 14px;
  border-left: 1px solid rgba(61, 58, 57, 0.5);
}
.works-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .works-card__title {
    font-size: 16px;
  }
}
.works-card__tags {
  margin-top: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.7);
}
.works-card__client {
  margin-top: 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #35574A;
}

/* ---------- News ---------- */
.section--news {
  position: relative;
  background: #EDEFF1;
  padding-top: 0;
}
.section--news .section__inner {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* 100%幅の上下ライン (#3D3A39) */
.news__line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: #3D3A39;
  z-index: 3;
}
.news__line--top {
  top: 0;
}
.news__line--bottom {
  bottom: 0;
}

.news__inner {
  padding-top: 0;
}
.news__head {
  position: relative;
  display: flex;
  gap: 135px;
  justify-content: space-between;
  align-items: flex-start;
}
@media (max-width: 1023px) {
  .news__head {
    flex-direction: column;
    gap: 32px;
  }
}
.news__list-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 60px;
}
@media (max-width: 767px) {
  .news__list-wrap {
    padding-right: 0;
  }
}
.news {
  /* News: 内部スクロール（スクロールバーは非表示） */
}
.news__scroll {
  max-height: 152px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.news__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
@media (max-width: 767px) {
  .news__scroll {
    max-height: 260px;
  }
}
.news {
  /* 右側の装飾: 縦線＋下向きの「半分の矢印」（news__head の幅内、右端に配置） */
}
.news__scroll-arrow {
  position: absolute;
  right: 0;
  top: 45px;
  bottom: 0px;
  height: 65%;
  width: 1px;
  background: rgba(61, 58, 57, 0.55);
  z-index: 3;
  pointer-events: none;
  /* ボタンの矢印と同じ、片側だけの矢じり */
}
.news__scroll-arrow::after {
  content: "";
  position: absolute;
  left: -2px;
  bottom: 9px;
  width: 12px;
  height: 1px;
  background: rgba(61, 58, 57, 0.55);
  transform-origin: right center;
  transform: rotate(-45deg);
}
@media (max-width: 1023px) {
  .news__scroll-arrow {
    display: none;
  }
}
.news__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.news__item a {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 0;
}
@media (max-width: 767px) {
  .news__item a {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
.news__date {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  color: #35574A;
  letter-spacing: 0.05em;
}
@media (max-width: 767px) {
  .news__date {
    font-size: 14px;
  }
}
.news__title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .news__title {
    font-size: 15px;
  }
}

/* ---------- Contact ---------- */
.section--contact {
  position: relative;
  background: #EDEFF1;
}
.section--contact .section__inner {
  padding-top: 80px;
  padding-bottom: 40px;
}
@media (max-width: 767px) {
  .section--contact .section__inner {
    padding-top: 40px;
    padding-bottom: 24px;
  }
}
.section--contact {
  /* 下層ページ（カタログ等）はフッターとの間に余白を多めに取る */
}
body.page-sub .section--contact .section__inner {
  padding-top: 80px;
  padding-bottom: 100px;
}

.contact {
  /* セクション上端の細い横線（トップページのNEWSの線と同じ仕様） */
}
.contact__line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #3D3A39;
  z-index: 3;
}
.contact__inner {
  text-align: center;
}
.contact__text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}
.contact__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #3D3A39;
  max-width: 640px;
}
@media (max-width: 767px) {
  .contact__lead {
    font-size: 15px;
  }
}
.contact__gallery {
  width: 100%;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 25px;
}
@media (max-width: 767px) {
  .contact__gallery {
    margin-top: 20px;
  }
}
.contact__gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallery-scroll 40s linear infinite;
}
.contact__gallery-track img {
  width: 360px;
  height: 240px;
  object-fit: cover;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .contact__gallery-track img {
    width: 220px;
    height: 150px;
  }
}

@keyframes gallery-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* ============================================================
   8. Sub Page (下層ページ共通)
   ============================================================ */
/* 下層ページはMV(ヒーロー)がないため、ヘッダーを常に地色ありで表示 */
.site-header--solid {
  background-color: #3D3A39;
}

/* 同じ理由で、ヘッダー内 Contact ボタンも最初から表示しておく */
body.page-sub .site-header__contact {
  opacity: 1;
  visibility: visible;
}

/* ---- ローカルナビ: ヘッダー直下の緑帯（横スクロール可・現在地に下線） ---- */
.page-nav {
  /* 固定ヘッダー(60px)の直下に配置し、スクロール時はヘッダーと一緒に固定する */
  position: sticky;
  top: 60px;
  z-index: 95;
  margin-top: 60px;
  background: #5D796D;
}
.page-nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 3vw, 56px);
  /* 狭い画面では横スクロール（スクロールバーは非表示） */
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.page-nav__inner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
@media (max-width: 1023px) {
  .page-nav__inner {
    justify-content: flex-start;
    padding: 0 24px;
  }
}
@media (max-width: 767px) {
  .page-nav__inner {
    padding: 0 16px;
    gap: 18px;
  }
}
.page-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 4px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(237, 239, 241, 0.8);
  white-space: nowrap;
  transition: color 0.3s ease;
  /* 下線（ホバー・現在地で中央から伸びる） */
}
.page-nav__item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 26px;
  height: 1px;
  background: #EDEFF1;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}
.page-nav__item:hover {
  opacity: 1;
  color: #FFFFFF;
}
.page-nav__item:hover::after {
  transform: translateX(-50%) scaleX(1);
}
.page-nav__item.is-current {
  color: #FFFFFF;
}
.page-nav__item.is-current::after {
  transform: translateX(-50%) scaleX(1);
}
@media (max-width: 767px) {
  .page-nav__item {
    height: 48px;
    font-size: 13px;
  }
}

/* 緑帯（.page-nav）の固定範囲をこのラッパー内に限定する。
   main の終わりで固定が解除されるため、フッターには重ならない。
   display: flow-root は帯の上マージンが外に抜けるのを防ぐため */
.page-main {
  display: flow-root;
  /* 緑帯（ページ内ナビ）を置かないページは、固定ヘッダー分の余白をここで確保する */
}
.page-main--no-nav {
  padding-top: 60px;
}

/* ---- ページタイトル（下層ページ共通の見出しエリア） ---- */
.section--page-head {
  background: #EDEFF1;
}
.section--page-head .section__inner {
  padding-top: 100px;
  padding-bottom: 80px;
  text-align: center;
}
@media (max-width: 1023px) {
  .section--page-head .section__inner {
    padding-top: 90px;
    padding-bottom: 60px;
  }
}
@media (max-width: 767px) {
  .section--page-head .section__inner {
    padding-top: 56px;
    padding-bottom: 40px;
  }
}

.page-head__lead {
  margin-top: 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .page-head__lead {
    margin-top: 28px;
    font-size: 15px;
    line-height: 1.9;
  }
}

/* ============================================================
   8-2. Contact Page - Form
   ============================================================ */
.section--contact-form {
  background: #FFFFFF;
}
.section--contact-form .section__inner {
  padding-top: 100px;
  padding-bottom: 120px;
}
@media (max-width: 1023px) {
  .section--contact-form .section__inner {
    padding-top: 72px;
    padding-bottom: 90px;
  }
}
@media (max-width: 767px) {
  .section--contact-form .section__inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}

.contact-form {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  /* フォーム冒頭の案内文 */
}
.contact-form__note {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.8);
  margin-bottom: 48px;
}
@media (max-width: 767px) {
  .contact-form__note {
    font-size: 14px;
    margin-bottom: 32px;
  }
}
.contact-form {
  /* 「※営業目的の…」の補足文：上の案内文との間隔を詰める（48px → 12px） */
}
.contact-form__note--sub {
  margin-top: -36px;
}
@media (max-width: 767px) {
  .contact-form__note--sub {
    margin-top: -24px;
  }
}
.contact-form__rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(61, 58, 57, 0.15);
}
.contact-form {
  /* 1行 = ラベル列 + 入力列 */
}
.contact-form__row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px 40px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(61, 58, 57, 0.15);
}
@media (max-width: 1023px) {
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0;
  }
}
.contact-form {
  /* ラベルは INFORMATION 表と同じく右寄せ（PC）／SPは左寄せ */
}
.contact-form__label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-align: right;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .contact-form__label {
    justify-content: flex-start;
    text-align: left;
    padding-top: 0;
  }
}
@media (max-width: 767px) {
  .contact-form__label {
    font-size: 15px;
  }
}
.contact-form__required {
  flex-shrink: 0;
  display: inline-block;
  padding: 3px 9px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: #FFFFFF;
  background: #35574A;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.contact-form__hint {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.55);
}
.contact-form {
  /* プライバシー同意の注記 */
}
.contact-form__privacy {
  margin-top: 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(61, 58, 57, 0.7);
}
.contact-form__privacy a {
  text-decoration: underline;
}
.contact-form__submit {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ---- フォーム部品 ---- */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  max-width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #3D3A39;
  background: #FFFFFF;
  border: 1px solid rgba(61, 58, 57, 0.28);
  border-radius: 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-input::placeholder,
.form-select::placeholder,
.form-textarea::placeholder {
  color: rgba(61, 58, 57, 0.35);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #35574A;
  box-shadow: 0 0 0 1px #35574A;
}
@media (max-width: 767px) {
  .form-input,
  .form-select,
  .form-textarea {
    height: 48px;
    font-size: 15px;
  }
}

.form-textarea {
  height: auto;
  min-height: 200px;
  padding: 16px;
  line-height: 1.9;
  resize: vertical;
}
@media (max-width: 767px) {
  .form-textarea {
    min-height: 160px;
  }
}

/* 郵便番号など短い入力 */
.form-input--short {
  max-width: 240px;
  /* スマホでは他の入力欄と同じく横幅いっぱいにする */
}
@media (max-width: 767px) {
  .form-input--short {
    max-width: none;
  }
}

/* セレクト: ネイティブ矢印を消し、サイト共通のシェブロンを重ねる */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  cursor: pointer;
}

.form-select-wrap {
  position: relative;
  width: 100%;
}
.form-select-wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(61, 58, 57, 0.6);
  border-bottom: 1px solid rgba(61, 58, 57, 0.6);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* 必須チェックでエラーになった入力欄（JSが .is-error を付与） */
.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
  border-color: #B4342A;
  background: rgba(180, 52, 42, 0.03);
}
.form-input.is-error:focus,
.form-select.is-error:focus,
.form-textarea.is-error:focus {
  border-color: #B4342A;
  box-shadow: 0 0 0 1px #B4342A;
}

/* 入力欄の下に表示するエラーメッセージ（JSが生成） */
.form-error {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #B4342A;
}
@media (max-width: 767px) {
  .form-error {
    font-size: 12px;
  }
}

/* TEL / FAX のような横並び（SPは縦積み） */
.form-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
@media (max-width: 767px) {
  .form-duo {
    grid-template-columns: 1fr;
  }
}
.form-duo__unit {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.form-duo__label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(61, 58, 57, 0.6);
}

/* プライバシーポリシーへの同意チェック */
.contact-form__consent {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.form-checkbox {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: #3D3A39;
  text-align: left;
}
.form-checkbox input[type=checkbox] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-checkbox__box {
  flex-shrink: 0;
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  background: #FFFFFF;
  border: 1px solid rgba(61, 58, 57, 0.35);
}
.form-checkbox__box::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border-right: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  opacity: 0;
  transform: rotate(45deg);
}
.form-checkbox input:checked ~ .form-checkbox__box {
  background: #35574A;
  border-color: #35574A;
}
.form-checkbox input:checked ~ .form-checkbox__box::after {
  opacity: 1;
}
.form-checkbox input:focus-visible ~ .form-checkbox__box {
  box-shadow: 0 0 0 2px rgba(53, 87, 74, 0.35);
}
.form-checkbox input.is-error ~ .form-checkbox__box {
  border-color: #B4342A;
}
.form-checkbox a {
  color: #35574A;
  text-decoration: underline;
}

/* ============================================================
   8-3. Catalog Page (カタログダウンロード)
   ============================================================ */
.section--catalog {
  background: #FFFFFF;
}
.section--catalog .section__inner {
  padding-top: 100px;
  padding-bottom: 120px;
}
@media (max-width: 1023px) {
  .section--catalog .section__inner {
    padding-top: 72px;
    padding-bottom: 90px;
  }
}
@media (max-width: 767px) {
  .section--catalog .section__inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}

/* カタログ一覧（PC3列 / タブレット2列 / スマホ1列） */
.catalog-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px 40px;
}
@media (max-width: 1023px) {
  .catalog-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 32px;
  }
}
@media (max-width: 767px) {
  .catalog-list {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 表紙画像: A4比率（1 : 1.414）の枠にトリミングして揃える */
}
.catalog-card__cover {
  width: 100%;
  aspect-ratio: 1/1.414;
  overflow: hidden;
  background: #EDEFF1;
}
.catalog-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catalog-card__num {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #35574A;
}
.catalog-card__title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .catalog-card__title {
    font-size: 18px;
  }
}
.catalog-card__desc {
  /* 説明文の長さが違ってもボタンの位置が揃うように、余白を吸収させる */
  flex: 1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.8);
}
@media (max-width: 767px) {
  .catalog-card__desc {
    font-size: 14px;
  }
}
.catalog-card__btn {
  margin-top: 8px;
}

/* ============================================================
   8-4. Flow Page (制作の流れ)
   ============================================================ */
/* 1ステップの高さの目安（右メニューの追従範囲の基準に使用） */
/* ステップ内容の右側に確保する余白。
   右のステップメニューは画面右端から 24px・幅約117px に配置されるため、
   200px 空けておけばメニューに被らない（枠の右端から 24px の位置にメニューが来る） */
/* ---- 5ステップ ---- */
.flow-steps {
  position: relative;
  /* 帯の 100vw ぶん（スクロールバー幅）が横スクロールにならないように */
  overflow-x: clip;
  background: #EDEFF1;
  /* 右のステップメニューを追従させる範囲（Flow 01〜04）。
     この範囲を抜けるとメニューがスクロールアウトするため、納品(05)では表示されない。
     display: flow-root はメニューの上マージン（初期位置の調整分）が
     親の外側へ抜けてしまう（マージンの相殺）のを防ぐため */
}
.flow-steps__nav-area {
  position: relative;
  display: flow-root;
}

.flow-step {
  position: relative;
  width: 100%;
  /* 上下の余白はデザイン実測値（1440換算で上 72px）に合わせている。
     左右は画面幅に追従させる:
       左 … 1440px 時に 160px 相当（広い画面でも空きすぎないよう 200px で打ち止め）
       右 … 右メニューの領域を必ず空ける（$flow-gutter-right）
            1440px 時に 240px＝帯の右端 1200px の位置。広い画面ではメニューに追従 */
}
.flow-step__inner {
  position: relative;
  width: 100%;
  /* 他セクションと同じく 1440px の枠を中央寄せにする */
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 200px 0 clamp(24px, 8.4vw, 120px);
  display: flex;
  /* テキストは上端から始める（デザインどおり。中央寄せにすると上の余白が増えてしまう） */
  align-items: flex-start;
  /* テキストは左端・イラストは右端（メニューの手前）に寄せて、幅を活かす */
  justify-content: space-between;
  gap: 48px;
  /* メニューが消える幅では、セクション同士がくっつかないよう下余白をつける */
}
@media (max-width: 1023px) {
  .flow-step__inner {
    padding: 56px 60px 26px;
    gap: 32px;
    max-width: 1440px;
  }
}
@media (max-width: 767px) {
  .flow-step__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 48px 24px 0;
    gap: 24px;
  }
}
.flow-step {
  /* 奇数ステップの背景帯: 画面左端までブリードし、右端はコンテンツ列の内側で止める */
}
.flow-step--band .flow-step__inner::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: 200px; /* 右メニューの手前で止める */
  background: #D9D9D9;
  z-index: 0;
}
@media (max-width: 1023px) {
  .flow-step--band .flow-step__inner::before {
    right: 0;
  }
}
.flow-step {
  /* 帯を画面幅いっぱいにする（納品ステップ。右のメニューが無いため） */
}
.flow-step--full .flow-step__inner {
  padding-bottom: 0;
}
@media (max-width: 1023px) {
  .flow-step--full .flow-step__inner {
    padding-bottom: 56px;
  }
}
@media (max-width: 767px) {
  .flow-step--full .flow-step__inner {
    padding-bottom: 48px;
  }
}
.flow-step--full .flow-step__inner::before {
  right: calc(50% - 50vw);
}
.flow-step {
  /* 納品ステップ: PCはテキスト左・イラスト右でボタンはテキストの下、
     スマホでは「テキスト → イラスト → ボタン」の順に並べ替える */
}
.flow-step--full .flow-step__inner {
  display: grid;
  grid-template-columns: minmax(0, 568px) auto;
  grid-template-areas: "body  image" "btn   image";
  /* ボタンはテキストのすぐ下に置く（デザイン: テキストとの間 40px）。
     2行目を 1fr にしてイラストの高さぶんを吸収させる */
  grid-template-rows: auto 1fr;
  align-content: start;
  row-gap: 0;
  column-gap: 48px;
  align-items: start;
  justify-content: space-between;
}
@media (max-width: 1023px) {
  .flow-step--full .flow-step__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
  }
}
@media (max-width: 767px) {
  .flow-step--full .flow-step__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "body" "image" "btn";
  }
}
.flow-step {
  /* 納品ステップのイラストは少し大きめ（右にメニューが無いため広く使える） */
}
.flow-step--full .flow-step__image {
  /* 高さは下の $flow-img-heights（デザイン値）で指定する */
}
@media (max-width: 1023px) {
  .flow-step--full .flow-step__image img {
    height: 430px;
  }
}
@media (max-width: 767px) {
  .flow-step--full .flow-step__image {
    justify-self: center; /* SP は中央に */
  }
  .flow-step--full .flow-step__image img {
    height: 340px;
  }
}
.flow-step--full .flow-step__body {
  grid-area: body;
}
.flow-step--full .flow-step__btn {
  grid-area: btn;
  align-self: start;
  margin-top: 40px;
}
.flow-step--full .flow-step__image {
  grid-area: image;
  align-self: end;
}
.flow-step {
  /* 製造ステップ（見せ場）: イラストを少し大きく、下の余白を詰めて低めに配置する */
}
.flow-step--feature .flow-step__image {
  /* 枠幅は他ステップと共通（テキスト幅を揃えるため）。高さで大きく見せる */
}
.flow-step--feature .flow-step__image img {
  /* 高さは下の $flow-img-heights（デザイン値）で指定する */
  position: relative;
  left: 0;
  bottom: 0;
}
@media (max-width: 1023px) {
  .flow-step--feature .flow-step__image img {
    height: 420px;
    left: 0;
    bottom: 0;
  }
}
@media (max-width: 767px) {
  .flow-step--feature .flow-step__image {
    /* レスポンシブでは中央に */
  }
  .flow-step--feature .flow-step__image img {
    height: 340px;
    left: 0;
    bottom: 0;
  }
}
.flow-step__body {
  position: relative;
  z-index: 1;
  width: 568px;
  max-width: 100%;
  flex-shrink: 1;
}
@media (max-width: 767px) {
  .flow-step__body {
    width: 100%;
  }
}
.flow-step__num {
  display: block;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #35574A;
}
.flow-step__title {
  margin-top: 20px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 40px;
  letter-spacing: 0.16em;
  line-height: 1;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .flow-step__title {
    font-size: 28px;
    margin-top: 16px;
  }
}
.flow-step {
  /* リード文（"つくりたい"を聞かせてください。） */
}
.flow-step__catch {
  margin-top: 20px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .flow-step__catch {
    font-size: 18px;
    margin-top: 16px;
  }
}
.flow-step__text {
  margin-top: 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .flow-step__text {
    font-size: 14px;
    line-height: 1.9;
  }
}
.flow-step {
  /* ボタン上のマージンはグリッドの行間で調整するため無効化
  &__btn { margin-top: 40px; } */
  /* イラストは帯の下端に接地させる */
}
.flow-step__image {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  width: 480px;
  flex-shrink: 0;
  /* 画像の縦横比が異なっても帯の高さが揃うよう、高さを固定して下寄せで収める */
}
.flow-step__image img {
  position: relative;
  /* 下の余白をつくらないよう、イラストはセクション下端に接地させる */
  top: 0;
  width: 100%;
  height: 415px;
  object-fit: contain;
  object-position: bottom center;
}
@media (max-width: 1023px) {
  .flow-step__image {
    width: 360px;
  }
  .flow-step__image img {
    height: 325px;
  }
}
@media (max-width: 767px) {
  .flow-step__image {
    width: 100%;
    max-width: 310px;
    align-self: center;
  }
  .flow-step__image img {
    height: 275px;
  }
}
.flow-step {
  /* 偶数ステップ: 画像を左・テキストを右（左右反転） */
}
.flow-step--reverse .flow-step__inner {
  flex-direction: row-reverse;
  /* row-reverse では flex-end が左寄せ。左のスペースを活かしつつ右メニューを避ける */
  justify-content: flex-end;
  padding-left: clamp(24px, 6.8vw, 98px);
}
@media (max-width: 1023px) {
  .flow-step--reverse .flow-step__inner {
    padding-left: 60px;
  }
}
@media (max-width: 767px) {
  .flow-step--reverse .flow-step__inner {
    flex-direction: column;
    padding-left: 24px;
  }
}

/* ---- ステップインジケーター ----
   5ステップの領域内で画面右に固定（sticky）し、スクロール位置に応じて
   JS が .is-current を付け替える。高さを持たせないのでレイアウトには影響しない */
/* メニューが追従する範囲。絶対配置なのでレイアウトには影響しない。
   $flow-step-height（1ステップの高さの目安）を基準に、
   開始＝ヒアリングの中央 / 停止＝施工セクションの手前 に設定している */
.flow-nav-track {
  position: absolute;
  top: 236px;
  bottom: 236px;
  /* 基準の枠。1440px までは内容と同じ枠、それより広い画面では
     画面幅に追従して外側へ広がり（最大1720px）、内容との間隔が比率で開く */
  left: 0;
  right: 0;
  width: min(100%, clamp(1440px, 100vw - 120px, 1640px));
  margin-left: auto;
  margin-right: auto;
  /* 枠はクリックを透過させ、メニュー項目だけ受け付ける（下の __list で auto に戻す） */
  pointer-events: none;
}
@media (max-width: 1023px) {
  .flow-nav-track {
    display: none;
  }
}

.flow-nav {
  position: sticky;
  top: 50vh;
  z-index: 5;
  height: 0;
  /* 狭い画面では表示しない（縦積みで意味を持たなくなるため） */
}
@media (max-width: 1023px) {
  .flow-nav {
    display: none;
  }
}
.flow-nav__list {
  position: absolute;
  /* リンクとして押せるようにする（親は pointer-events: none） */
  pointer-events: auto;
  /* 枠（左寄せ1440px）の右端から 63px */
  right: 24px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: right;
}
.flow-nav__item {
  transition: color 0.4s ease;
  position: relative;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1;
  color: rgba(61, 58, 57, 0.35);
  white-space: nowrap;
  /* 各ステップへのリンク */
}
.flow-nav__item a {
  color: inherit;
  transition: color 0.3s ease;
}
.flow-nav__item a:hover {
  opacity: 1;
  color: #35574A;
}
.flow-nav__item {
  /* 現在のステップは濃色（スクロールで出ていた短い線は表示しない） */
}
.flow-nav__item.is-current {
  color: #3D3A39;
}

/* 各ステップのイラストの大きさ（デザイン1440幅での実寸に合わせる）
   Flow01 420×338 / Flow02 421×348 / Flow03 361×419 / Flow04 442×402 / Flow05 466×621 */
#flow01 .flow-step__image img {
  height: 338px;
}
@media (max-width: 1023px) {
  #flow01 .flow-step__image img {
    height: 263.64px;
  }
}
@media (max-width: 767px) {
  #flow01 .flow-step__image img {
    height: 196.04px;
  }
}

/* テキストが短いステップでもイラストが下にはみ出さないよう、
   セクションの高さをイラスト＋上余白ぶん確保する */
#flow01 .flow-step__inner {
  min-height: 394px;
}
@media (max-width: 1023px) {
  #flow01 .flow-step__inner {
    min-height: 345.64px;
  }
}
@media (max-width: 767px) {
  #flow01 .flow-step__inner {
    min-height: 0;
  }
}

#flow02 .flow-step__image img {
  height: 348px;
}
@media (max-width: 1023px) {
  #flow02 .flow-step__image img {
    height: 271.44px;
  }
}
@media (max-width: 767px) {
  #flow02 .flow-step__image img {
    height: 201.84px;
  }
}

/* テキストが短いステップでもイラストが下にはみ出さないよう、
   セクションの高さをイラスト＋上余白ぶん確保する */
#flow02 .flow-step__inner {
  min-height: 404px;
}
@media (max-width: 1023px) {
  #flow02 .flow-step__inner {
    min-height: 353.44px;
  }
}
@media (max-width: 767px) {
  #flow02 .flow-step__inner {
    min-height: 0;
  }
}

#flow03 .flow-step__image img {
  height: 419px;
}
@media (max-width: 1023px) {
  #flow03 .flow-step__image img {
    height: 326.82px;
  }
}
@media (max-width: 767px) {
  #flow03 .flow-step__image img {
    height: 243.02px;
  }
}

/* テキストが短いステップでもイラストが下にはみ出さないよう、
   セクションの高さをイラスト＋上余白ぶん確保する */
#flow03 .flow-step__inner {
  min-height: 475px;
}
@media (max-width: 1023px) {
  #flow03 .flow-step__inner {
    min-height: 408.82px;
  }
}
@media (max-width: 767px) {
  #flow03 .flow-step__inner {
    min-height: 0;
  }
}

#flow04 .flow-step__image img {
  height: 402px;
}
@media (max-width: 1023px) {
  #flow04 .flow-step__image img {
    height: 313.56px;
  }
}
@media (max-width: 767px) {
  #flow04 .flow-step__image img {
    height: 233.16px;
  }
}

/* テキストが短いステップでもイラストが下にはみ出さないよう、
   セクションの高さをイラスト＋上余白ぶん確保する */
#flow04 .flow-step__inner {
  min-height: 458px;
}
@media (max-width: 1023px) {
  #flow04 .flow-step__inner {
    min-height: 395.56px;
  }
}
@media (max-width: 767px) {
  #flow04 .flow-step__inner {
    min-height: 0;
  }
}

#flow05 .flow-step__image img {
  height: 430px;
}
@media (max-width: 1023px) {
  #flow05 .flow-step__image img {
    height: 335.4px;
  }
}
@media (max-width: 767px) {
  #flow05 .flow-step__image img {
    height: 249.4px;
  }
}

/* テキストが短いステップでもイラストが下にはみ出さないよう、
   セクションの高さをイラスト＋上余白ぶん確保する */
#flow05 .flow-step__inner {
  min-height: 486px;
}
@media (max-width: 1023px) {
  #flow05 .flow-step__inner {
    min-height: 417.4px;
  }
}
@media (max-width: 767px) {
  #flow05 .flow-step__inner {
    min-height: 0;
  }
}

/* ---- VOICE (お客様の声) ---- */
.section--voice {
  background: #EDEFF1;
}
.section--voice .section__inner {
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
@media (max-width: 1023px) {
  .section--voice .section__inner {
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 48px;
  }
}
@media (max-width: 767px) {
  .section--voice .section__inner {
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 32px;
  }
}

.voice__btn-wrap {
  display: flex;
  justify-content: center;
}

/* ---- MACHINE (機械設備) ---- */
.section--machine {
  background: #3D3A39;
  color: #EDEFF1;
}
.section--machine .section__inner {
  padding-top: 100px;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
@media (max-width: 1023px) {
  .section--machine .section__inner {
    padding-top: 72px;
    padding-bottom: 72px;
    gap: 40px;
  }
}
@media (max-width: 767px) {
  .section--machine .section__inner {
    padding-top: 56px;
    padding-bottom: 56px;
    gap: 32px;
  }
}

.machine__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  text-align: center;
  color: #EDEFF1;
}
@media (max-width: 767px) {
  .machine__lead {
    font-size: 15px;
  }
}
.machine {
  /* 設備写真（3台が1枚に収まった画像） */
}
.machine__images {
  width: 100%;
  max-width: 880px;
}
.machine__images img {
  width: 100%;
  height: auto;
}

/* ============================================================
   8-5. NEXT CTA (下層ページ末尾の次ページ導線・深緑カード)
   ============================================================ */
.section--next {
  background: #EDEFF1;
  /* カードの最大幅は 1320px（通常セクションの 1120px より広め）。
     max-width は左右余白 40px を含めた値にしている（1320 + 40 * 2） */
}
.section--next .section__inner {
  max-width: 1400px;
  padding: 80px 40px;
}
@media (max-width: 1023px) {
  .section--next .section__inner {
    padding: 64px 40px;
  }
}
@media (max-width: 767px) {
  .section--next .section__inner {
    padding: 48px 24px;
  }
}

.next-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  gap: 40px;
  /* デザイン比（カード 1320 : 430）に合わせた最低高さ */
  min-height: 430px;
  padding: 80px 80px 0;
  background: #35574A;
  color: #EDEFF1;
}
@media (max-width: 1023px) {
  .next-cta {
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    padding: 48px 40px 0;
  }
}
@media (max-width: 767px) {
  .next-cta {
    padding: 40px 24px 0;
  }
}
.next-cta {
  /* 左: 見出し（イラストは下の &__visual で絶対配置）
     ※ position を付けるとイラストの絶対配置の基準がこの列になってしまうため付けない
       （z-index はフレックスアイテムなら static でも有効） */
}
.next-cta__left {
  z-index: 1;
  width: 42%;
  flex-shrink: 0;
}
@media (max-width: 1023px) {
  .next-cta__left {
    width: 100%;
  }
}
.next-cta {
  /* 見出し（NEXT）は headline--light を流用し、下線の位置だけ詰める */
}
.next-cta__head {
  margin-bottom: 8px;
}
.next-cta {
  /* 人物イラスト（線画・透過PNG）
     カード下端に貼り付け、見出しの高さまで伸び上がる配置にする。
     絶対配置にすることで、カードの高さがイラストの高さに引っ張られない */
}
.next-cta__visual {
  position: absolute;
  left: 116px;
  bottom: 0;
  z-index: 1;
  width: 435px;
  max-width: 34%;
  pointer-events: none;
}
.next-cta__visual img {
  display: block;
  width: 100%;
  height: auto;
}
.next-cta__visual {
  /* タブレット以下は通常フローに戻して縦積み */
}
@media (max-width: 1023px) {
  .next-cta__visual {
    position: static;
    width: 100%;
    max-width: 260px;
    margin-top: 8px;
  }
}
.next-cta__visual {
  /* スマホは中央寄せ */
}
@media (max-width: 767px) {
  .next-cta__visual {
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
  }
}
.next-cta {
  /* 右: テキスト＋ボタン */
}
.next-cta__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 80px;
}
@media (max-width: 1023px) {
  .next-cta__body {
    gap: 28px;
    padding-bottom: 48px;
  }
}
@media (max-width: 767px) {
  .next-cta__body {
    gap: 24px;
    padding-bottom: 40px;
  }
}
.next-cta__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: #EDEFF1;
}
.next-cta__text p + p {
  margin-top: 24px;
}
@media (max-width: 767px) {
  .next-cta__text {
    font-size: 15px;
  }
}
.next-cta__btn-wrap {
  margin-top: auto;
}
.next-cta {
  /* CONTACT 版（FLOWページ末尾など）: イラストが横長のため位置とサイズを調整 */
}
.next-cta--contact .next-cta__visual {
  left: 140px;
  bottom: 15px;
  width: 470px;
  max-width: 38%;
}
@media (max-width: 1023px) {
  .next-cta--contact .next-cta__visual {
    position: static;
    width: 100%;
    max-width: 300px;
  }
}
@media (max-width: 767px) {
  .next-cta--contact .next-cta__visual {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }
}
.next-cta {
  /* CONTACT 版の装飾文字はカード内の余白に合わせて微調整 */
}
.next-cta--contact .next-cta__deco {
  right: 10px;
  font-size: 197px;
}
@media (max-width: 1023px) {
  .next-cta--contact .next-cta__deco {
    font-size: 120px;
  }
}
.next-cta {
  /* 背面の巨大装飾文字（右下・カード右端まで） */
}
.next-cta__deco {
  position: absolute;
  right: -15px;
  bottom: -5%;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 260px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(237, 239, 241, 0.12);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1023px) {
  .next-cta__deco {
    font-size: 140px;
  }
}
@media (max-width: 767px) {
  .next-cta__deco {
    display: none;
  }
}

/* ============================================================
   8-6. Confirm Page (mail.php の送信確認画面 / エラー表示)
   ============================================================ */
.confirm {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}
.confirm__actions {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .confirm__actions {
    margin-top: 32px;
    flex-direction: column;
    gap: 16px;
  }
}
.confirm {
  /* エラーメッセージのまとまり */
}
.confirm__error {
  padding: 28px 32px;
  border: 1px solid rgba(180, 52, 42, 0.45);
  background: rgba(180, 52, 42, 0.04);
}
@media (max-width: 767px) {
  .confirm__error {
    padding: 20px;
  }
}

/* 確認画面の入力内容テーブル（mail.php の confirmOutput() が tr/th/td を出力） */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid rgba(61, 58, 57, 0.15);
}
.confirm-table th,
.confirm-table td {
  padding: 24px 0;
  border-bottom: 1px solid rgba(61, 58, 57, 0.15);
  vertical-align: top;
  font-size: 16px;
  line-height: 1.8;
}
.confirm-table th {
  width: 260px;
  padding-right: 40px;
  text-align: right;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #3D3A39;
}
.confirm-table td {
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.9);
  word-break: break-all;
}
.confirm-table {
  /* タブレット以下は入力フォームと同じく縦積み */
}
@media (max-width: 1023px) {
  .confirm-table th,
  .confirm-table td {
    display: block;
    width: auto;
    padding-right: 0;
    text-align: left;
  }
  .confirm-table th {
    padding: 20px 0 6px;
    border-bottom: 0;
  }
  .confirm-table td {
    padding: 0 0 20px;
  }
}
@media (max-width: 767px) {
  .confirm-table th, .confirm-table td {
    font-size: 15px;
  }
}

/* mail.php が出力するエラーメッセージ（<p class="error_messe">） */
.error_messe {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: #B4342A;
}
.error_messe + .error_messe {
  margin-top: 8px;
}
@media (max-width: 767px) {
  .error_messe {
    font-size: 14px;
  }
}

/* ============================================================
   8-7. Thanks Page (送信完了)
   ============================================================ */
.section--thanks {
  background: #FFFFFF;
}
.section--thanks .section__inner {
  padding-top: 100px;
  padding-bottom: 120px;
}
@media (max-width: 1023px) {
  .section--thanks .section__inner {
    padding-top: 72px;
    padding-bottom: 90px;
  }
}
@media (max-width: 767px) {
  .section--thanks .section__inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}

.thanks {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.thanks__message {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.06em;
  color: #3D3A39;
}
.thanks__message p + p {
  margin-top: 24px;
}
@media (max-width: 767px) {
  .thanks__message {
    font-size: 15px;
    line-height: 1.9;
  }
}
.thanks {
  /* 今後の流れ（3ステップ） */
}
.thanks__steps {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: left;
}
@media (max-width: 1023px) {
  .thanks__steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 56px;
  }
}
@media (max-width: 767px) {
  .thanks__steps {
    margin-top: 40px;
  }
}
.thanks__step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px;
  background: #EDEFF1;
}
@media (max-width: 767px) {
  .thanks__step {
    padding: 24px 20px;
    gap: 8px;
  }
}
.thanks__step-num {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #35574A;
}
.thanks__step-title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .thanks__step-title {
    font-size: 17px;
  }
}
.thanks__step-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.8);
}
.thanks {
  /* 自動返信が届かない場合などの注記 */
}
.thanks__note {
  margin-top: 56px;
  padding: 28px 32px;
  border: 1px solid rgba(61, 58, 57, 0.15);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: left;
  color: rgba(61, 58, 57, 0.8);
}
@media (max-width: 1023px) {
  .thanks__note {
    margin-top: 40px;
  }
}
@media (max-width: 767px) {
  .thanks__note {
    padding: 20px;
    font-size: 13px;
  }
}
.thanks__note-title {
  display: block;
  margin-bottom: 8px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #3D3A39;
}
.thanks__btn-wrap {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}
@media (max-width: 767px) {
  .thanks__btn-wrap {
    margin-top: 40px;
  }
}

/* ============================================================
   8-8. Contact Page - 電話 / FAX 案内カード（深緑カード）
   ============================================================ */
/* 画面幅いっぱいの緑帯にする（周囲のグレー余白なし） */
.section--contact-info {
  background: #35574A;
}
.section--contact-info .section__inner {
  max-width: none;
  padding: 0;
}

.contact-info {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 80px;
  /* 中身は最大1200px幅で中央に置く */
  padding: 100px max(120px, 50% - 600px);
  background: #35574A;
  color: #EDEFF1;
}
@media (max-width: 1023px) {
  .contact-info {
    flex-direction: column;
    gap: 40px;
    padding: 72px 60px;
  }
}
@media (max-width: 767px) {
  .contact-info {
    gap: 32px;
    padding: 56px 24px;
  }
}
.contact-info__head {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.contact-info__body {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (max-width: 767px) {
  .contact-info__body {
    gap: 24px;
  }
}
.contact-info__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-info__label {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: rgba(237, 239, 241, 0.75);
}
.contact-info__tel {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .contact-info__tel {
    font-size: 26px;
  }
}
.contact-info__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(237, 239, 241, 0.9);
}
@media (max-width: 767px) {
  .contact-info__text {
    font-size: 14px;
  }
}
.contact-info {
  /* 背面の巨大装飾文字（CONTACT セクションと同じ手法） */
}
.contact-info__deco {
  position: absolute;
  right: -1.5%;
  bottom: -14%;
  font-family: "Playfair Display", serif;
  font-size: 200px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(237, 239, 241, 0.09);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
@media (max-width: 1023px) {
  .contact-info__deco {
    font-size: 120px;
  }
}
@media (max-width: 767px) {
  .contact-info__deco {
    display: none;
  }
}

/* ---------- News Modal (ポップアップ) ---------- */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.news-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.news-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 58, 57, 0.6);
  backdrop-filter: blur(2px);
}
.news-modal__panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #FFFFFF;
  padding: 56px 48px 48px;
  transform: translateY(24px);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (max-width: 767px) {
  .news-modal__panel {
    padding: 48px 24px 32px;
  }
}
.news-modal.is-open .news-modal__panel {
  transform: translateY(0);
}
.news-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
}
.news-modal__close::before, .news-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #3D3A39;
}
.news-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.news-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.news-modal__date {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #35574A;
}
.news-modal__title {
  margin-top: 12px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .news-modal__title {
    font-size: 20px;
  }
}
.news-modal__body {
  margin-top: 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  color: #3D3A39;
}

/* ---- プライバシーポリシー モーダル（お問い合わせフォーム） ---- */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.privacy-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.privacy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 58, 57, 0.6);
  backdrop-filter: blur(2px);
}
.privacy-modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  overflow-y: auto;
  background: #FFFFFF;
  padding: 56px 48px 48px;
  transform: translateY(24px);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
@media (max-width: 767px) {
  .privacy-modal__panel {
    padding: 48px 24px 32px;
  }
}
.privacy-modal.is-open .privacy-modal__panel {
  transform: translateY(0);
}
.privacy-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
}
.privacy-modal__close::before, .privacy-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #3D3A39;
}
.privacy-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.privacy-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.privacy-modal__title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.5;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .privacy-modal__title {
    font-size: 20px;
  }
}
.privacy-modal__body {
  margin-top: 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  color: #3D3A39;
}
.privacy-modal__body h4 {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 600;
}
.privacy-modal__body h4:first-child {
  margin-top: 0;
}
.privacy-modal__body p {
  margin-top: 10px;
}
.privacy-modal__body a {
  color: #35574A;
  text-decoration: underline;
  font-weight: 500;
}

/* ============================================================
   8-9. About Page (私たちについて・会社概要)
   about_a.html / about_b.html で共通。MVV セクションの見せ方だけ
   .mvv--texture（パターンA）/ .mvv--line（パターンB）で切り替える
   ============================================================ */
/* ---- MESSAGE（代表メッセージのキービジュアル） ---- */
.message-hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  width: 100%;
  /* デザイン: 1440 × 720（2:1）。
     狭い画面では文字が人物の顔に重ならないよう高さを多めに確保する */
  height: clamp(520px, 50vw, 720px);
  overflow: hidden;
}
@media (max-width: 1023px) {
  .message-hero {
    height: auto;
    min-height: 540px;
  }
}
.message-hero {
  /* スマホはFigmaデザイン（MESSAGE＋名前は上部、キャッチコピーは腕組みの上に
     なるよう下部）に合わせ、上下に分かれた配置にするための高さを確保する。
     幅に応じてある程度スケールしつつ、デザイン比（375幅で約500px）に近い値 */
}
@media (max-width: 767px) {
  .message-hero {
    height: clamp(480px, 133vw, 620px);
  }
}
.message-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.message-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  /* 狭い画面では顔が切れないよう、人物の位置に合わせて表示位置を調整。
     スマホは縦長の表示エリアになり、横方向だけが大きくクロップされるため、
     顔の位置（画像全体の約72〜86%あたり）に合わせて右寄りにする */
}
@media (max-width: 1023px) {
  .message-hero__image img {
    object-position: 62% 22%;
  }
}
@media (max-width: 767px) {
  .message-hero__image img {
    object-position: 80% 18%;
  }
}
.message-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 120px 74px;
}
@media (max-width: 1023px) {
  .message-hero__inner {
    padding: 0 60px 56px;
  }
}
.message-hero__inner {
  /* スマホはMESSAGE＋名前を上部、キャッチコピーを下部（腕組みの上）に
     分けて配置する（Figma: node 1978-1211）。.message-hero 側で高さを
     確保した上で、この2グループを space-between で上下に分ける */
}
@media (max-width: 767px) {
  .message-hero__inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 100px 24px 72px;
  }
}
.message-hero {
  /* ヒーロー内の MESSAGE は 48px（下層ページ見出しの 64px より小さい）。
     写真の背景が明るいため、他の見出しと違い深緑で出す */
}
.message-hero .headline__en {
  color: #35574A;
  font-size: 48px;
}
@media (max-width: 767px) {
  .message-hero .headline__en {
    font-size: 32px;
  }
}
.message-hero .headline::after {
  background: #35574A;
}
.message-hero .headline {
  /* このヒーローだけは、スマホでも中央揃えにせず左揃えのままにする */
}
@media (max-width: 767px) {
  .message-hero .headline {
    text-align: left;
  }
  .message-hero .headline::after {
    left: 0;
    transform: none;
  }
}
.message-hero__catch {
  margin-top: 30px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 900;
  font-size: clamp(30px, 4.5vw, 72px);
  line-height: 1.5;
  letter-spacing: 0.02em;
  /* 「技術の先に、笑顔がある。」が折り返さない大きさまで縮める
     （320px幅の実機相当でも1行に収まることを確認済み） */
}
@media (max-width: 767px) {
  .message-hero__catch {
    font-size: clamp(20px, 6.3vw, 28px);
  }
}
.message-hero {
  /* キャッチコピーは1行ずつ深緑の帯を敷き、白文字を乗せる（Figma: node 1943:3444/3445） */
}
.message-hero__catch-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  background: #35574A;
  color: #FFFFFF;
  padding: 0 0.32em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.message-hero__catch-line + .message-hero__catch-line {
  margin-top: 0.15em;
}
.message-hero__name {
  margin-top: 30px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(14px, 1.7vw, 24px);
  letter-spacing: 0.04em;
  color: #35574A;
  text-shadow: 0 4px 4px #EDEFF1;
  /* スマホはMESSAGE見出しのすぐ下（写真の明るい背景部分）に来るため、
     PCと同じ深緑文字のままで問題ない */
}
@media (max-width: 767px) {
  .message-hero__name {
    margin-top: 20px;
  }
}

/* ---- MESSAGE 本文（4ブロック） ---- */
.section--message {
  background: #EDEFF1;
}
.section--message .section__inner {
  display: flex;
  flex-direction: column;
  gap: 160px;
}
@media (max-width: 1023px) {
  .section--message .section__inner {
    gap: 100px;
  }
}
@media (max-width: 767px) {
  .section--message .section__inner {
    gap: 72px;
  }
}
.section--message .section__inner {
  /* iPad Pro 13インチ縦（1024px）を含むタブレット帯は、テキスト列の幅を
     少しでも広く取れるよう左右パディングを詰める */
}
@media (min-width: 768px) and (max-width: 1040px) {
  .section--message .section__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.msg-block {
  position: relative;
}
.msg-block__title {
  position: relative;
  padding-bottom: 40px;
  margin-bottom: 40px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.5;
  color: #35574A;
  /* 見出し下の 40px ライン（深緑） */
}
.msg-block__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: #35574A;
}
@media (max-width: 1023px) {
  .msg-block__title {
    font-size: 26px;
    padding-bottom: 32px;
    margin-bottom: 32px;
  }
}
@media (max-width: 767px) {
  .msg-block__title {
    font-size: 21px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
}
.msg-block__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  /* デザイン: 18px / 行送り 48px */
  line-height: 2.66;
  letter-spacing: 0.03em;
  color: #3D3A39;
}
.msg-block__text p + p {
  margin-top: 40px;
}
@media (max-width: 1023px) {
  .msg-block__text {
    font-size: 16px;
    line-height: 2.3;
  }
  .msg-block__text p + p {
    margin-top: 28px;
  }
}
@media (max-width: 767px) {
  .msg-block__text {
    font-size: 15px;
    line-height: 2.1;
  }
  .msg-block__text p + p {
    margin-top: 24px;
  }
}
.msg-block__btn {
  margin-top: 40px;
}
.msg-block {
  /* 上に余白を足すブロック（「未来の仲間へ。」） */
}
.msg-block--spaced {
  margin-top: 120px;
}
@media (max-width: 1023px) {
  .msg-block--spaced {
    margin-top: 72px;
  }
}
@media (max-width: 767px) {
  .msg-block--spaced {
    margin-top: 48px;
  }
}
.msg-block {
  /* 中央寄せブロック（01・04） */
}
.msg-block--center {
  text-align: center;
}
.msg-block--center .msg-block__title {
  text-align: center;
}
.msg-block--center .msg-block__title::after {
  left: 50%;
  transform: translateX(-50%);
}
.msg-block--center .msg-block__text {
  width: 720px;
  max-width: 100%;
  margin: 0 auto;
}
.msg-block--center {
  /* スマホは見出し・本文ともに左揃えにする */
}
@media (max-width: 767px) {
  .msg-block--center {
    text-align: left;
  }
  .msg-block--center .msg-block__title {
    text-align: left;
  }
  .msg-block--center .msg-block__title::after {
    left: 0;
    transform: none;
  }
  .msg-block--center .msg-block__text {
    margin: 0;
  }
}
.msg-block {
  /* テキスト＋写真のブロック（02・03） */
}
.msg-block--row {
  /* 写真の高さぶんの余白を確保（テキストが短くても重ならないように） */
  min-height: 420px;
  /* 写真は絶対配置で画面端まで抜くため、テキスト幅だけを決める */
}
.msg-block--row .msg-block__body {
  position: relative;
  z-index: 1;
  width: 640px;
  max-width: 100%;
}
.msg-block--row {
  /* 写真は画面端まで絶対配置で抜いているため、コンテナが狭くなるとテキスト幅
     （640px）に関わらず写真が被ってくる。実測で約1318px幅から被り始めるため、
     余裕を持って1340pxで縦積みレイアウトに切り替える
     （$breakpoint-tab=1024pxちょうどのiPad Pro 13インチ縦も確実に含まれる） */
}
@media (max-width: 1340px) {
  .msg-block--row {
    min-height: 0;
  }
}
.msg-block {
  /* 03 はテキストを右に寄せる */
}
.msg-block--reverse .msg-block__body {
  width: 685px;
  margin-left: auto;
}
.msg-block {
  /* 縦積みになったら「床デザインと空間グラフィックの会社」「未来の仲間へ」と
     同じ幅・中央寄せに揃える（02・03 とも）。
     スマホ（〜767px）は従来どおり左揃えのままにするため対象から外す */
}
@media (min-width: 768px) and (max-width: 1340px) {
  .msg-block--row .msg-block__body, .msg-block--reverse .msg-block__body {
    width: 720px;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }
  .msg-block {
    /* 見出し下の線も中央寄せに（.msg-block--center と同じ考え方） */
  }
  .msg-block--row .msg-block__title::after, .msg-block--reverse .msg-block__title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
.msg-block__photo {
  /* 位置はデザインの座標（ブロック上端からの距離）で指定する。
     ※ transform は表示アニメーションの解除時に none で上書きされるため使わない */
  position: absolute;
  z-index: 0;
  overflow: hidden;
}
.msg-block__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.msg-block__photo {
  /* 右端まで抜ける写真（02） */
}
.msg-block__photo--right {
  top: 232px;
  right: -160px;
  width: 501px;
  height: 374px;
}
.msg-block__photo {
  /* 左端まで抜ける写真（03） */
}
.msg-block__photo--left {
  top: 53px;
  left: -160px;
  width: 410px;
  height: 504px;
}
.msg-block__photo {
  /* タブレット以下は通常フローに戻して縦積み・中央寄せ。
     写真が画面端まで抜くため、コンテナが狭くなるとテキストに被ってしまう。
     実測で約1318px幅から被り始めるため、余裕を持って1340pxを対象にする
     （iPad Pro 13インチ縦=1024pxも確実に含まれる） */
}
@media (max-width: 1340px) {
  .msg-block__photo {
    position: static;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 40px auto 0;
  }
  .msg-block__photo img {
    height: auto;
  }
}
@media (max-width: 767px) {
  .msg-block__photo {
    max-width: 100%;
    margin-top: 32px;
  }
}

/* ---- MVV ---- */
.section--mvv {
  background: #3D3A39;
  /* 帯・装飾文字・イラストが画面外へ抜けるため、はみ出しは隠す */
  overflow: hidden;
}

.mvv__list {
  position: relative;
  margin-top: 160px;
  display: flex;
  flex-direction: column;
  /* デザイン: カード間 約120px。装飾文字（高さ約208px）は前のカードの下に潜り、
     ミッションのカードがビジョンの英字に、ビジョンのカードがバリューの英字に被る */
  gap: 120px;
}
@media (max-width: 1023px) {
  .mvv__list {
    margin-top: 96px;
    gap: 72px;
  }
}
@media (max-width: 767px) {
  .mvv__list {
    margin-top: 104px;
    gap: 48px;
  }
}

.mvv__item {
  position: relative;
}

/* 明るいグレーの帯（画面端まで抜ける） */
.mvv__card {
  position: relative;
  z-index: 1;
  padding: 80px;
  background: #D9D9D9;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .mvv__card {
    padding: 48px 40px;
  }
}
@media (max-width: 767px) {
  .mvv__card {
    padding: 32px 24px;
  }
}

/* 右寄せの帯（Mission / Value）: 画面右端まで伸ばす（画面を広げても続く）。
   calc(50% - 50vw) は「コンテナの端から画面の端まで」の距離。
   テキストはコンテナ内に収まるよう max-width で幅を固定する */
.mvv__item--right .mvv__card {
  /* 1040px（タブレット横のフルワイド帯の上限）では余白0、1440pxで
     デザイン通りの266pxになるよう線形に増やす。以前は18.5vwの定数clampだった
     ため、1041px付近でいきなり約190pxの余白が付いて不連続だった点を解消し、
     もう少し広い画面幅まで余白なしに近い状態を保つ */
  margin-left: clamp(0px, (100vw - 1040px) * 0.665, 266px);
  margin-right: calc(50% - 50vw);
  padding: 80px calc(50vw - 50%) 80px 80px;
}
.mvv__item--right .mvv__card > * {
  max-width: 768px;
}
.mvv__item--right .mvv__card {
  /* iPad Pro 13インチ縦（1024px）を含めるため 1040px まで対象にする。
     左マージンをなくしてテキスト幅を広く取る */
}
@media (min-width: 768px) and (max-width: 1040px) {
  .mvv__item--right .mvv__card {
    margin-left: 0;
    padding: 40px calc(50vw - 50%) 40px 32px;
  }
}
@media (max-width: 767px) {
  .mvv__item--right .mvv__card {
    margin-left: 16px;
    padding: 32px calc(50vw - 50%) 32px 24px;
  }
}

/* 左寄せの帯（Vision）: 画面左端まで伸ばす */
.mvv__item--left .mvv__card {
  margin-left: calc(50% - 50vw);
  /* 右側はイラストのスペース（デザイン: 帯の右端 1028px / 1440px）。
     1040px（タブレット横のフルワイド帯の上限）では余白0、1440pxで
     デザイン通りの252pxになるよう線形に増やす（左右帯と同じ考え方） */
  margin-right: clamp(0px, (100vw - 1040px) * 0.63, 252px);
  padding: 80px 80px 80px calc(50vw - 50% + 2px);
}
.mvv__item--left .mvv__card > * {
  max-width: 805px;
}
.mvv__item--left .mvv__card {
  /* iPad Pro 13インチ縦（1024px）を含めるため 1040px まで対象にする。
     右マージンをなくしてテキスト幅を広く取る */
}
@media (min-width: 768px) and (max-width: 1040px) {
  .mvv__item--left .mvv__card {
    margin-right: 0;
    padding: 40px 32px 40px calc(50vw - 50% + 2px);
  }
}
@media (max-width: 767px) {
  .mvv__item--left .mvv__card {
    margin-right: 16px;
    padding: 32px 24px 32px calc(50vw - 50% + 2px);
  }
}

.mvv__title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.1em;
}
@media (max-width: 1040px) {
  .mvv__title {
    font-size: 28px;
  }
}
@media (max-width: 767px) {
  .mvv__title {
    font-size: 21px;
    line-height: 1.5;
    letter-spacing: 0.06em;
  }
}

.mvv__text {
  margin-top: 32px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}
@media (max-width: 1040px) {
  .mvv__text {
    margin-top: 24px;
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .mvv__text {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.9;
  }
}

/* 背面の巨大装飾文字。帯の上端に重なるように配置する */
.mvv__ghost {
  position: absolute;
  bottom: calc(100% - 0px);
  z-index: 0;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 260px;
  line-height: 0.8;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  color: rgba(237, 239, 241, 0.2);
  /* 右側に置く装飾文字（画面右へ抜ける） */
}
.mvv__ghost--mission {
  left: 404px;
}
.mvv__ghost--value {
  left: 645px;
}
.mvv__ghost {
  /* 左側に置く装飾文字（画面左へ抜ける） */
}
.mvv__ghost--vision {
  left: -160px;
}
.mvv__ghost {
  /* パターンA の Value は帯の下・左に配置 */
}
.mvv__ghost--value-left {
  left: -160px;
  top: calc(100% - 40px);
  bottom: auto;
}
.mvv__ghost {
  /* iPad Pro 13インチ縦（1024px）を含めるため 1040px まで対象にする */
}
@media (max-width: 1040px) {
  .mvv__ghost {
    font-size: 120px;
    bottom: calc(100% - 16px);
  }
  .mvv__ghost--mission {
    left: auto;
    right: -60px;
  }
  .mvv__ghost--value {
    left: auto;
    right: -60px;
  }
  .mvv__ghost--vision {
    left: -60px;
  }
  .mvv__ghost--value-left {
    left: -60px;
    right: auto;
  }
}
@media (max-width: 767px) {
  .mvv__ghost {
    font-size: 64px;
    bottom: calc(100% - 8px);
    /* スマホでも Mission / Vision / Value すべてカードの上に置く */
  }
  .mvv__ghost--mission {
    right: -24px;
  }
  .mvv__ghost--vision {
    left: -24px;
  }
  .mvv__ghost--value {
    right: -24px;
    left: auto;
  }
  .mvv__ghost--value-left {
    top: auto;
    bottom: calc(100% - 8px);
    /* 右寄せ（画面右端まで） */
    left: auto;
    right: -24px;
  }
}

/* パターンA: 装飾文字を写真テクスチャで塗る。
   chars 演出（1文字ずつ回転）で文字が別レイヤーになるため、
   テクスチャは .char 側にも指定する */
.mvv--texture .mvv__ghost {
  color: transparent;
  opacity: 0.5;
}
.mvv--texture .mvv__ghost .char {
  background-image: url("../images/mvv-texture.jpg");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* パターンB: 線画イラスト */
.mvv__figure {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.55;
}
.mvv__figure img {
  display: block;
  width: 100%;
  height: auto;
}
.mvv__figure {
  /* デザイナー（Vision の右）。帯（テキストボックス）の右端を起点に配置するので、
     画面幅が変わっても常に帯のすぐ右隣に並ぶ。
     100% = コンテナ幅、252px = 帯の右余白（.mvv__item--left .mvv__card の margin-right）
     画像は 560px のまま（顔の大きさを営業と揃える）枠内で中央に見せる */
}
.mvv__figure--designer {
  top: -155px;
  left: calc(100% - 244px);
  right: auto;
  width: 344px;
  height: 420px;
}
.mvv__figure--designer img {
  width: 560px;
  max-width: none;
  margin-left: -71px;
}
.mvv__figure {
  /* 営業（Value の左下・セクション下端まで）。少し縮小 */
}
.mvv__figure--sales {
  top: -90px;
  left: -150px;
  width: 540px;
  height: 560px;
}
.mvv__figure {
  /* 狭い画面ではイラストを出さない（帯と重なって読みづらいため） */
}
@media (max-width: 1023px) {
  .mvv__figure {
    display: none;
  }
}

/* 営業: オリジナルフロアシリーズの帯の中。
   帯の右端＝コンテンツ列の右端なので、右からの距離で置くと
   「テキスト列と写真の間（写真幅480＋余白80）」に頭が来る。
   ボタン（テキスト列の左下）には重ならない位置 */
.service--figure .service-item--reverse .service__figure--sales {
  position: absolute;
  /* 他の2人と頭の大きさを揃えたサイズ（表示幅437px）。帯の下端に足元を合わせる */
  top: auto;
  bottom: 0;
  right: 340px;
  left: auto;
  z-index: 0;
  display: block;
  width: 437px;
  height: auto;
  opacity: 1;
  pointer-events: none;
}
.service--figure .service-item--reverse .service__figure--sales img {
  display: block;
  width: 437px;
  max-width: none;
  height: auto;
}
@media (max-width: 1023px) {
  .service--figure .service-item--reverse .service__figure--sales {
    display: none;
  }
}

/* ---- INFORMATION（会社概要） ---- */
.section--information {
  background: #EDEFF1;
}

.info-table {
  /* ラベル列の幅を全行で揃えるため grid（行は display: contents で透過させる） */
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 50px;
  width: fit-content;
  max-width: 100%;
  margin: 80px auto 0;
  font-family: "Noto Sans JP", sans-serif;
}
@media (max-width: 767px) {
  .info-table {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
    width: 100%;
    margin-top: 48px;
  }
}
.info-table__row {
  display: contents;
}
.info-table dt {
  padding: 8px 0;
  white-space: nowrap;
  text-align: right;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  color: #35574A;
}
@media (max-width: 1023px) {
  .info-table dt {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .info-table dt {
    padding: 12px 0 0;
    text-align: left;
    font-size: 16px;
  }
}
.info-table dd {
  margin: 0;
  padding: 8px 0;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .info-table dd {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .info-table dd {
    padding: 2px 0 4px;
    font-size: 15px;
  }
}
.info-table__list {
  list-style: none;
}

.info-map {
  width: 100%;
  margin-top: 80px;
  /* デザイン: 1118 × 261 の横長 */
  aspect-ratio: 1118/300;
  background: #DDE1E3;
}
.info-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 767px) {
  .info-map {
    margin-top: 48px;
    aspect-ratio: 4/3;
  }
}

/* ---- HISTORY（会社沿革） ---- */
.section--history {
  background: #3D3A39;
}

.history {
  /* 年月の列幅を全行で揃えるため grid（行は display: contents で透過させる） */
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 50px;
  width: fit-content;
  max-width: 100%;
  margin: 80px auto 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #EDEFF1;
}
@media (max-width: 767px) {
  .history {
    column-gap: 16px;
    width: 100%;
    margin-top: 48px;
  }
}
.history__row {
  display: contents;
}
.history dt {
  padding: 8px 0;
  text-align: right;
  font-size: 20px;
  line-height: 1.8;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
@media (max-width: 1023px) {
  .history dt {
    font-size: 18px;
  }
}
@media (max-width: 767px) {
  .history dt {
    padding: 10px 0;
    font-size: 14px;
  }
}
.history {
  /* 年をまたがない行（月のみ）も同じ位置に揃うよう、月は右寄せの固定幅にする */
}
.history__month {
  display: inline-block;
  min-width: 2.3em;
  margin-left: 0.5em;
  text-align: right;
}
@media (max-width: 767px) {
  .history__month {
    min-width: 2.2em;
  }
}
.history dd {
  margin: 0;
  padding: 8px 0;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
@media (max-width: 1023px) {
  .history dd {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .history dd {
    padding: 10px 0;
    font-size: 14px;
  }
}

/* ============================================================
   8-10. Top Page Renewal (A / B)
   ・ヘッダー: メニュー項目を並べる形＋お問い合わせボタン常時表示
   ・FV: キャラクター → キャッチコピー → 背景切り替え（1回きり）
   ・SERVICE: A = あしらい大きめ＋画像マスク / B = あしらい＋線画イラスト
   ============================================================ */
/* ---- ヘッダー（トップページ用・高さ60px） ---- */
.site-header--top {
  background-color: rgba(61, 58, 57, 0.8);
  /* 下層ページ（MVがないページ）は地色を常時表示 */
}
.site-header--top.site-header--solid {
  background-color: #3D3A39;
}
.site-header--top.is-scrolled {
  background-color: rgba(61, 58, 57, 0.92);
}
.site-header--top .site-header__inner {
  height: 60px;
  padding: 0 0 0 24px;
}
@media (max-width: 1023px) {
  .site-header--top .site-header__inner {
    padding: 0 0 0 16px;
  }
}
.site-header--top .site-header__logo {
  width: 168px;
}
@media (max-width: 767px) {
  .site-header--top .site-header__logo {
    width: 132px;
  }
}
.site-header--top {
  /* PCメニュー */
}
.site-header--top .site-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
  margin-right: 40px;
}
@media (max-width: 1023px) {
  .site-header--top .site-header__nav {
    display: none;
  }
}
.site-header--top .site-header__nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 60px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #EDEFF1;
  white-space: nowrap;
  transition: color 0.3s ease;
  /* 下線（ホバー・現在地で中央から伸びる） */
}
.site-header--top .site-header__nav-item::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 27px;
  height: 1px;
  background: #EDEFF1;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}
.site-header--top .site-header__nav-item:hover, .site-header--top .site-header__nav-item.is-current {
  opacity: 1;
  color: #FFFFFF;
}
.site-header--top .site-header__nav-item:hover::after, .site-header--top .site-header__nav-item.is-current::after {
  transform: translateX(-50%) scaleX(1);
}
.site-header--top {
  /* ホバーで開くサブメニュー（ページ内アンカー） */
}
.site-header--top .site-header__nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 60px;
}
.site-header--top .site-header__sub {
  position: absolute;
  top: 100%;
  left: 50%;
  translate: -50% 0;
  z-index: 20;
  /* 項目幅＋左右20pxずつ（gap40pxの半分）。隣のサブメニューと重ならない最大幅 */
  width: calc(100% + 40px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
@media (max-width: 1023px) {
  .site-header--top .site-header__sub {
    display: none;
  }
}
.site-header--top .site-header__sub-inner {
  display: flex;
  flex-direction: column;
  background: rgba(61, 58, 57, 0.94);
  transform: translateY(-8px);
  transition: transform 0.28s cubic-bezier(0.19, 1, 0.22, 1);
}
.site-header--top {
  /* 表示はホバー中のみ（クリックしても開いたままにならない）。
     キーボード操作時だけ :focus-visible で開く（マウスクリックでは付かない） */
}
.site-header--top .site-header__nav-group:hover .site-header__sub,
.site-header--top .site-header__nav-group:has(:focus-visible) .site-header__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-header--top .site-header__nav-group:hover .site-header__sub .site-header__sub-inner,
.site-header--top .site-header__nav-group:has(:focus-visible) .site-header__sub .site-header__sub-inner {
  transform: translateY(0);
}
.site-header--top .site-header__sub-item {
  display: block;
  padding: 12px 16px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #EDEFF1;
  /* 幅を詰めているので折り返しを許可する */
  white-space: normal;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.site-header--top .site-header__sub-item:hover {
  opacity: 1;
  background: #35574A;
  color: #FFFFFF;
}
.site-header--top .site-header__sub-item {
  /* 長いラベル（オリジナルフロアシリーズ）だけ文字を詰めて1行に収める */
}
.site-header--top .site-header__sub-item--long {
  font-size: 13px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-header--top {
  /* 常時表示のお問い合わせボタン（右端いっぱい） */
}
.site-header--top .site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 216px;
  height: 60px;
  flex-shrink: 0;
  background: #35574A;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #FFFFFF;
  transition: background-color 0.35s ease;
}
.site-header--top .site-header__cta:hover {
  opacity: 1;
  background: #5D796D;
}
@media (max-width: 1023px) {
  .site-header--top .site-header__cta {
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .site-header--top .site-header__cta {
    width: 116px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }
}
.site-header--top {
  /* PCではハンバーガーを出さない（メニューが並んでいるため） */
}
.site-header--top .site-header__burger {
  display: none;
  right: 0;
}
@media (max-width: 1023px) {
  .site-header--top .site-header__burger {
    display: flex;
  }
}
@media (max-width: 767px) {
  .site-header--top .site-header__burger {
    right: 0;
  }
}

/* トップページのFV演出中はヘッダーを隠し、背景写真が出てから上から降ろす */
body.fv-intro .site-header {
  transform: translateY(-100%);
}

.site-header {
  transition: background-color 0.3s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---- 日本語のみのボタンラベル ---- */
.btn__label--jp {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
}
@media (max-width: 767px) {
  .btn__label--jp {
    font-size: 14px;
  }
}

/* ---- FV（ファーストビュー） ---- */
.fv {
  /* カーテンエフェクト: FVを画面に固定し、ABOUT以降のセクションが上に覆いかぶさる */
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  /* 背景写真が出るまでの地色（暗め） */
  background: #14100F;
  /* PCは画面いっぱい（100vh）。タブレットはデザイン比、スマホは固定 */
  height: 100vh;
  overflow: hidden;
  /* キャラクター・キャッチコピーのタブレット用分岐（767〜1040px）に合わせる。
     @include tab（max-width:1023px）のままだと1024〜1040pxで高さの指定が
     抜け落ち、上の height:100vh が残ってキャラクターが巨大化してしまう */
}
@media (max-width: 1040px) {
  .fv {
    height: clamp(560px, 90vw, 1040px);
  }
}
.fv {
  /* タブレット幅はFVの高さを画面幅（vw）基準で決めているため、
     ブラウザの高さがそれより低い環境ではカーテン演出（sticky固定）のまま
     下部のキャッチコピーが画面に入らず見えなくなってしまう。
     JS（initFvViewportFit）が実際の高さを比較し、必要な場合だけこのクラスを付け、
     固定をやめて普通にスクロールで最後まで見られるようにする
     （position: static ではなく relative にして、内部の絶対配置要素の
     基準がFV自身のままになるようにする） */
}
.fv.fv--tall {
  position: relative;
  /* キャッチコピーが全部見えた直後にABOUTへ切り替わると余裕がないため、
     タブレット幅では少しだけ下まで余白を足し、もう少しスクロールしてから
     ABOUTへ切り替わるようにする（画像の背景が続くので違和感なく繋がる）。
     ※ キャラクター・キャッチコピーのタブレット用分岐は767〜1040pxだが、
       @include tab は max-width:1023px までしかカバーしないため、
       1024〜1040px（iPad Pro 13インチ縦=1032pxを含む）で高さの上書きが
       効かず .fv が height:100vh のままになり、キャラクターが巨大化して
       画面外に飛び出す不具合があった。範囲をタブレット分岐と揃える */
}
@media (min-width: 767px) and (max-width: 1040px) {
  .fv.fv--tall {
    height: calc(clamp(560px, 90vw, 1040px) + 100px);
  }
}
.fv.fv--tall {
  /* タブレット横向き（タッチ端末 + landscape）は、下の @media (hover:none)...
     のブロックで高さが 100vh/100svh に固定されているため、ここで上書きしないと
     縦向きタブレットと同じ「中身が画面に収まっていない」問題が解消できない。
     画面幅は 1024px 以上になることが多く上の @media（max-width:1040px）の
     対象外になるため、別途ここで同じ計算式を当てる */
}
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .fv.fv--tall {
    height: calc(clamp(560px, 90vw, 1040px) + 100px);
  }
}
@media (max-width: 767px) {
  .fv {
    /* 画面いっぱいに表示する（100vh は一部モバイルブラウザでアドレスバー分が
       余ってしまうため、対応ブラウザでは 100svh を優先する） */
    height: 100vh;
    height: 100svh;
    /* 高さが極端に低い端末・ウィンドウでは、キャラクターの表示が縮みすぎて
       キャッチコピーと顔が被ってしまうため、最低限の高さを確保する
       （その分は縦スクロールで見える） */
    min-height: 740px;
    /* スマホはカーテンエフェクトを無効化（通常のスクロールに戻す） */
    position: relative;
    top: auto;
  }
}
.fv {
  /* 背景（自動切り替え）。キャラクター・文字が出そろうまでは隠しておく */
}
.fv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 2s ease;
}
.fv.is-bg-on .fv__bg {
  opacity: 1;
}
.fv {
  /* 背景写真。切り替えは「次の写真を手前に重ねてフェードイン」させる。
     前の写真は下に残したまま（動きも続けたまま）消えるので、
     切り替わりの瞬間に暗くなったり大きさが飛んだりしない */
}
.fv__bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2.4s ease;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.fv__bg-slide.is-active {
  opacity: 1;
}
.fv__bg-slide {
  /* 表示中は写真ごとに違う動き（寄り／引き／上へ／下へ）をつける。
     .is-anim はフェードアウトが終わるまで残す（動きが途中で戻らないように） */
}
.fv__bg-slide.is-anim:nth-child(4n+1) {
  animation: fvZoomIn 14s ease-out both;
}
.fv__bg-slide.is-anim:nth-child(4n+2) {
  animation: fvZoomOut 14s ease-out both;
}
.fv__bg-slide.is-anim:nth-child(4n+3) {
  animation: fvPanUp 14s ease-out both;
}
.fv__bg-slide.is-anim:nth-child(4n+4) {
  animation: fvPanDown 14s ease-out both;
}
.fv {
  /* 背景を落ち着かせる暗幕（デザイン: 黒 61%） */
}
.fv__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.61);
}
.fv {
  /* フレア: 人物・文字が出そろってから、左上でぼかした光が広がるように現れ、
     その後は位置を動かさず大きさ・濃さだけをランダムに脈打つ（JS: initFvIntro） */
}
.fv__flare {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.fv__flare-orbit {
  position: absolute;
  top: 8%;
  left: 10%;
  width: 0;
  height: 0;
}
.fv__flare-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92) 0%, rgba(255, 253, 247, 0.5) 30%, rgba(255, 248, 232, 0.2) 55%, rgba(255, 248, 232, 0) 76%);
  filter: blur(20px);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  transition: transform 2.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 2.8s ease;
}
.fv.is-flare-on .fv__flare-blob {
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(1);
}
.fv {
  /* ヘッダー(60px)より下がコンテンツ領域 */
}
.fv__contents {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(100% - 80px);
  z-index: 3;
  overflow: hidden;
}
.fv__chars {
  position: absolute;
  inset: 0;
}
.fv {
  /* 3人のキャラクター。3枚は同じキャンバスに1人ずつ描かれているので、
     3枚とも同じ位置に重ねればデザインどおりの距離感（間隔）になる。
     ・大きさはFVの高さ基準（デザイン: 画像1268px ÷ コンテンツ880px = 144%）。
       画面幅基準にすると、広い画面でキャラクターだけ巨大になってしまうため。
     ・横位置は left:50% ＋ translate で「デザイナーの絵の中心（画像内48.89%）」を画面中央に。
       translate は transform とは別プロパティなので、登場アニメーション（transform）と両立する。
     ・max-width: none はリセットの max-width:100% を打ち消すため必須 */
}
.fv__char {
  position: absolute;
  left: 50%;
  translate: -48.89% 0;
  /* デザイン比は 1268/880 = 144%。PCはそれより少し大きい 150%（引き気味）にし、
     両端の2人は中央から画像幅の26%ずつ（デザインの約28%に近い間隔）に配置する。
     translate は「画像幅に対する比率」なので、大きさが変わっても位置関係が保たれる */
  height: 150%;
  width: auto;
  max-width: none;
  opacity: 0;
  /* 登場時の動きは少し大きめ（下から＋やや小さめから）*/
  transform: translateY(48px) scale(0.86);
  transition: opacity 1.3s ease, transform 2s cubic-bezier(0.19, 1, 0.22, 1), filter 1.8s ease;
  will-change: transform, opacity;
  /* 縦位置＋横位置（頭の位置＝中央 ±26%）をキャラクターごとに指定
     ※ 全員そろって約7%下げ、営業のベルトが画面下に隠れる位置にしている */
}
.fv__char--sales {
  top: 9%;
  translate: -45.4% 0;
}
.fv__char--designer {
  top: 5%;
  translate: -48.89% 0;
}
.fv__char--constructor {
  top: 5%;
  translate: -49.6% 0;
}
.fv__char {
  /* 1040px以下（スマホ〜iPad Pro 13インチ縦）は画面の高さいっぱいに表示する。
     height:100% なら頭も足元も常に画面内に収まり、.fv の縦横比に応じて
     見える範囲（ズーム量）が自然に変わる（スマホは縦長で大きくズーム、
     タブレットは横長寄りで引き気味になる） */
}
@media (max-width: 1040px) {
  .fv__char {
    width: auto;
    height: 100%;
    top: auto;
    bottom: 0;
  }
}
.fv__char {
  /* iPad mini 〜 iPad Pro 13インチ縦（768〜1040px）: 引き気味で全員の顔が入る間隔。
     縦位置はコンテンツ高さの約13%分（iPad Pro 13インチ縦での検証に基づく）下げる。
     横位置は、PCと同じく3人の「間」にキャッチコピーを置けるよう、他の幅より
     広めに間隔をとる（スマホ・PCと同じ「人と人の間に文字」の見え方に揃えるため） */
}
@media (min-width: 767px) and (max-width: 1040px) {
  .fv__char {
    bottom: -13%;
  }
  .fv__char.fv__char--sales {
    translate: -52% 0;
  }
  .fv__char.fv__char--constructor {
    translate: -43% 0;
  }
}
.fv__char {
  /* スマホ（〜766px）: 3人の顔がすべて収まる大きさまで引き、
     両端の肩が画面端で少し切れるくらいの間隔にする
     ※ タブレット側の下限を767pxにしているため、ここは766pxまでにして
       768px境界でスクロールバー等により実効幅が1px狭くなった場合でも
       意図せずスマホ側のキャラクター配置に落ちないようにしている */
}
@media (max-width: 766px) {
  .fv__char {
    height: 80%;
    bottom: 0%;
  }
  .fv__char.fv__char--sales {
    translate: -37% 0;
  }
  .fv__char.fv__char--designer {
    translate: -48.89% 0;
  }
  .fv__char.fv__char--constructor {
    translate: -60% 0;
  }
}
.fv {
  /* 下方向のグラデーション（デザイン: 高さ 541/880） */
}
.fv__gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 61.5%;
  background: linear-gradient(180deg, rgba(50, 50, 50, 0) 0%, rgba(42, 42, 42, 0.8) 100%);
  pointer-events: none;
}
.fv {
  /* キャッチコピー（縦書き2行） */
}
.fv__catch {
  position: absolute;
  inset: 0;
  width: min(1440px, 100%);
  margin: 0 auto;
  pointer-events: none;
}
.fv__catch-line {
  position: absolute;
  writing-mode: vertical-rl;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  /* 画面の高さにも追従させる（100vh時に下端で切れないように） */
  font-size: clamp(36px, min(7.6vw, 10.5vh), 110px);
  line-height: 0.93;
  /* 縦書きは字送り = 文字サイズ + letter-spacing。
     デザイン（7文字で781px ≒ 1文字112px）に合わせて詰める */
  letter-spacing: -0.03em;
  color: #EDEFF1;
  text-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  /* メインとサブを完全な左右対称（同じ数値）にすると、サブがデザイナー（中央）の
     顔に被るか、メインが現場監督（右端）の顔に被る（＝全員の顔を収めたまま
     両立できない）ため、3人の顔が見えて文字も被らない配置を優先する */
}
.fv__catch-line--main {
  top: 5%;
  left: 67%;
}
.fv__catch-line {
  /* 「空間を彩る」は約100px下げる（文字サイズは主コピーと同じ） */
}
.fv__catch-line--sub {
  top: 40%;
  left: 25.4%;
}
.fv__catch-line {
  /* iPad mini 〜 iPad Pro 13インチ縦: 文字を少し大きくする。
     左右位置は PC と同じ 67%/25.4%（3人の「間」）に戻す。キャラクター側
     （上の @media (min-width:767px) and (max-width:1040px) 内の translate）を
     この幅専用に広げて間隔を作っているため、同じ数値のままで顔に被らない */
}
@media (min-width: 767px) and (max-width: 1040px) {
  .fv__catch-line {
    font-size: clamp(50px, 9vw, 120px);
  }
  .fv__catch-line--main {
    left: 67%;
  }
  .fv__catch-line--sub {
    left: 25.4%;
  }
}
@media (max-width: 767px) {
  .fv__catch-line {
    /* スマホは文字が小さくなりすぎないよう、最小サイズを引き上げる
       （配置の比率は PC と同じ top:5%/left:67%・top:40%/left:25.4% のまま変えない） */
    font-size: clamp(44px, 12vw, 64px);
  }
}
.fv__catch-accent {
  color: #DEC26C;
}
.fv {
  /* 1文字ずつ、上からすべり込むように表示する */
}
.fv__catch-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-0.35em);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
}
.fv.is-text .fv__catch-char {
  opacity: 1;
  transform: none;
  /* 光彩: 白熱コア＋外側のゴールドの滲みを重ねた二重の光彩で浮かび上がり、
     その後はゆっくり呼吸するように明滅し続ける */
  animation: catchGlowInDouble 1.8s ease forwards, catchGlowPulseDouble 6s ease-in-out infinite;
}
.fv {
  /* 文字ごとの時間差（主コピー7文字 / 副コピー5文字）。
     光彩のアニメーションは、1文字ずつ現れる演出（transition-delay）の
     .9秒後に浮かび上がり、2.7秒後から明滅ループに入る */
}
.fv.is-text .fv__catch-line--main .fv__catch-char:nth-child(1) {
  transition-delay: 0s;
  animation-delay: 0.9s, 2.7s;
}
.fv.is-text .fv__catch-line--main .fv__catch-char:nth-child(2) {
  transition-delay: 0.12s;
  animation-delay: 1.02s, 2.82s;
}
.fv.is-text .fv__catch-line--main .fv__catch-char:nth-child(3) {
  transition-delay: 0.24s;
  animation-delay: 1.14s, 2.94s;
}
.fv.is-text .fv__catch-line--main .fv__catch-char:nth-child(4) {
  transition-delay: 0.36s;
  animation-delay: 1.26s, 3.06s;
}
.fv.is-text .fv__catch-line--main .fv__catch-char:nth-child(5) {
  transition-delay: 0.48s;
  animation-delay: 1.38s, 3.18s;
}
.fv.is-text .fv__catch-line--main .fv__catch-char:nth-child(6) {
  transition-delay: 0.6s;
  animation-delay: 1.5s, 3.3s;
}
.fv.is-text .fv__catch-line--main .fv__catch-char:nth-child(7) {
  transition-delay: 0.72s;
  animation-delay: 1.62s, 3.42s;
}
.fv.is-text .fv__catch-line--sub .fv__catch-char:nth-child(1) {
  transition-delay: 0.45s;
  animation-delay: 1.35s, 3.15s;
}
.fv.is-text .fv__catch-line--sub .fv__catch-char:nth-child(2) {
  transition-delay: 0.57s;
  animation-delay: 1.47s, 3.27s;
}
.fv.is-text .fv__catch-line--sub .fv__catch-char:nth-child(3) {
  transition-delay: 0.69s;
  animation-delay: 1.59s, 3.39s;
}
.fv.is-text .fv__catch-line--sub .fv__catch-char:nth-child(4) {
  transition-delay: 0.81s;
  animation-delay: 1.71s, 3.51s;
}
.fv.is-text .fv__catch-line--sub .fv__catch-char:nth-child(5) {
  transition-delay: 0.93s;
  animation-delay: 1.83s, 3.63s;
}
.fv {
  /* --- 演出（1回きり。JS が is-intro / is-text を付与） --- */
}
.fv.is-intro .fv__char {
  opacity: 1;
  transform: none;
}
.fv.is-intro .fv__char--sales {
  transition-delay: 0.05s;
}
.fv.is-intro .fv__char--constructor {
  transition-delay: 0.2s;
}
.fv.is-intro .fv__char--designer {
  transition-delay: 0.35s;
}

/* タブレットを横向き（ランドスケープ）で見た場合は画面幅が1024px以上になり、
   上記の @include tab（max-width:1023px）に入らず、画面の高さが低いため
   PC用の高さ基準のキャラクター表示だと頭が見切れてしまう。
   タッチ端末（hover:none かつ pointer:coarse）だけを対象に、画面幅に関わらず
   タブレットと同じ「画面幅基準」の表示に切り替える。
   ※以前は画面幅（max-width）でも判定していたが、PCの横長ウィンドウまで対象に
   入ってしまい、かつ高さが clamp() で画面より低くなってファーストビューが
   画面全面を覆わないことがあったため、実機（タッチ端末）だけを対象にし、
   高さも画面いっぱい（100svh）に変更した */
@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
  .fv {
    /* 画面いっぱいに表示する（100vh は一部モバイルブラウザでアドレスバー分が
       余ってしまうため、対応ブラウザでは 100svh を優先する） */
    height: 100vh;
    height: 100svh;
  }
  .fv__char {
    width: auto;
    height: 100%;
    top: auto;
    bottom: 0;
    /* キャッチコピーが3人の「間」に来る配置（767〜1040px帯と同じ）に揃える。
       この間隔より狭いと、どの幅でもキャッチコピーが顔に被ってしまう */
  }
  .fv__char--sales {
    translate: -52% 0;
  }
  .fv__char--constructor {
    translate: -43% 0;
  }
}
/* FV背景の動き（参考: positive.co.jp のようにゆっくり寄り引きする） */
@keyframes fvZoomIn {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.14);
  }
}
@keyframes fvZoomOut {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1.02);
  }
}
@keyframes fvPanUp {
  from {
    transform: scale(1.1) translateY(2.5%);
  }
  to {
    transform: scale(1.1) translateY(-2.5%);
  }
}
@keyframes fvPanDown {
  from {
    transform: scale(1.1) translateY(-2.5%);
  }
  to {
    transform: scale(1.1) translateY(2.5%);
  }
}
/* キャッチコピーの光彩（内側：白熱コア／外側：ゴールドの滲み、の二重光彩） */
@keyframes catchGlowInDouble {
  from {
    text-shadow: 0 10px 10px rgba(0, 0, 0, 0.5);
  }
  to {
    text-shadow: 0 10px 10px rgba(0, 0, 0, 0.55), 0 0 3px rgba(255, 255, 255, 0.85), 0 0 8px rgba(255, 244, 214, 0.6), 0 0 16px rgba(222, 194, 108, 0.4), 0 0 26px rgba(222, 194, 108, 0.22);
  }
}
@keyframes catchGlowPulseDouble {
  0%, 100% {
    text-shadow: 0 10px 10px rgba(0, 0, 0, 0.55), 0 0 3px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 244, 214, 0.55), 0 0 16px rgba(222, 194, 108, 0.36), 0 0 26px rgba(222, 194, 108, 0.2);
  }
  50% {
    text-shadow: 0 10px 10px rgba(0, 0, 0, 0.55), 0 0 4px rgb(255, 255, 255), 0 0 11px rgba(255, 244, 214, 0.8), 0 0 22px rgba(222, 194, 108, 0.55), 0 0 34px rgba(222, 194, 108, 0.32);
  }
}
/* パターンB: キャラクターが白黒からカラーへ変化する */
.fv--mono {
  /* Bは背景の動きをすべて「寄り」で統一する */
}
.fv--mono .fv__bg-slide.is-anim,
.fv--mono .fv__bg-slide.is-anim:nth-child(4n+1),
.fv--mono .fv__bg-slide.is-anim:nth-child(4n+2),
.fv--mono .fv__bg-slide.is-anim:nth-child(4n+3),
.fv--mono .fv__bg-slide.is-anim:nth-child(4n+4) {
  animation: fvZoomIn 14s ease-out both;
}
.fv--mono .fv__char {
  filter: grayscale(1) contrast(1.05);
  /* Bは「前に出る」動きは控えめにして、色の変化を見せる */
  transform: translateY(16px) scale(0.98);
}
.fv--mono.is-intro .fv__char {
  filter: grayscale(0) contrast(1);
  /* 表示されてから色が乗るように、filter だけ遅らせる */
  transition: opacity 1.2s ease, transform 1.6s cubic-bezier(0.19, 1, 0.22, 1), filter 2s ease 0.9s;
}

/* ---- SERVICE: パターンA（あしらい大きめ＋画像マスク） ---- */
.service--deco-lg {
  /* Creation の文字が「製品開発・制作」に重ならない程度の下の余白 */
}
.service--deco-lg .section__inner {
  padding-bottom: 255px;
}
@media (max-width: 1023px) {
  .service--deco-lg .section__inner {
    padding-bottom: 180px;
  }
}
@media (max-width: 767px) {
  .service--deco-lg .section__inner {
    padding-bottom: 120px;
  }
}
.service--deco-lg .service__deco,
.service--deco-lg .service-item__deco {
  /* デザイン: 「Design」の字幅 729px ≒ 250px 相当 */
  font-size: 250px;
  letter-spacing: 0;
  color: transparent;
  opacity: 0.3;
  /* 1文字ずつ回転する演出のため、テクスチャは .char 側にも指定する */
}
.service--deco-lg .service__deco .char,
.service--deco-lg .service-item__deco .char {
  background-image: url("../images/mvv-texture.jpg");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 1023px) {
  .service--deco-lg .service__deco,
  .service--deco-lg .service-item__deco {
    font-size: clamp(110px, 20vw, 200px);
  }
}
.service--deco-lg {
  /* デザイン座標に合わせて配置（Design=右上 / Creation=下 / Floor=左） */
}
.service--deco-lg .service__deco--design {
  top: 40px;
  right: 0;
  left: auto;
}
.service--deco-lg {
  /* Creation は黒い背景の下端に文字の下端（ベースライン）を合わせ、
     右端は Design と同じ位置（画面右端）に揃える */
}
.service--deco-lg .service__deco--creation {
  bottom: -0.087em;
  right: 0;
  left: auto;
  line-height: 1;
}
.service--deco-lg .service-item__deco--floor {
  /* 明色の帯の上端に英字の頭（キャップハイト）を合わせる。
     line-height:1 のとき、字面の上端はボックス上端から約 .21em 下にあるため
     その分だけ持ち上げる */
  top: -0.135em;
  bottom: auto;
  left: 0;
  line-height: 1;
  /* 明るい帯の上でも写真テクスチャをそのまま活かしつつ見やすくするため、
     不透明度を上げたうえでテクスチャに黒を20%重ねる（Figma: node 1936:3429） */
  opacity: 0.6;
  /* 日本語タイトルの下に敷く */
  z-index: 0;
}
.service--deco-lg .service-item__deco--floor .char {
  background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url("../images/mvv-texture.jpg");
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.service--deco-lg {
  /* 装飾文字を背面にするため、テキスト側を前面に */
}
.service--deco-lg .service-item--reverse .service-item__inner {
  position: relative;
  z-index: 1;
}

/* ---- SERVICE: パターンB（あしらい＋線画イラスト） ---- */
.service--figure {
  /* Design は 240px */
}
.service--figure .service__deco--design {
  font-size: 240px;
}
@media (max-width: 1023px) {
  .service--figure .service__deco--design {
    font-size: clamp(100px, 18vw, 180px);
  }
}
.service--figure {
  /* Floor はオリジナルフロアシリーズ（明色の帯）の左上に */
}
.service--figure .service-item__deco--floor {
  top: -0.135em;
  bottom: auto;
  left: 0;
  line-height: 1;
}
.service--figure {
  /* Creation は一番下・中央に */
}
.service--figure .service__deco--creation {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}
.service--figure .service__figure {
  position: absolute;
  z-index: 1;
  display: block;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}
.service--figure .service__figure img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1023px) {
  .service--figure .service__figure {
    display: none;
  }
}
.service--figure {
  /* デザイナー: 1つ目のサービスの右（右端で少し切れる）。
     頭の上端が「空間デザイン」の見出し・写真の上端より少し下に来る位置 */
}
.service--figure .service__figure--designer {
  top: 19.4%;
  right: -60px;
  width: 380px;
  height: 560px;
  /* 明色の帯（z-index:2）より前に出して、椅子まで見えるようにする */
  z-index: 3;
}
.service--figure .service__figure--designer img {
  width: 437px;
  max-width: none;
}
.service--figure {
  /* 施工: 3つ目のサービスの右。デザインどおり足元が少し切れる位置に置く */
}
.service--figure .service__figure--constructor {
  top: auto;
  bottom: -110px;
  right: 90px;
  width: 480px;
  height: auto;
  /* 頭の大きさを営業のイラストに合わせつつ、少し大きめに */
}
.service--figure .service__figure--constructor img {
  width: 480px;
  max-width: none;
}

/* ---- FLOWページ Bパターン: 右の追従メニューなし ---- */
.flow-steps--no-nav {
  /* メニュー用に空けていた右余白を詰める（左と同じ 120px まで） */
}
.flow-steps--no-nav .flow-step__inner {
  padding-right: clamp(24px, 8.4vw, 120px);
}
@media (max-width: 1023px) {
  .flow-steps--no-nav .flow-step__inner {
    padding-right: 60px;
  }
}
@media (max-width: 767px) {
  .flow-steps--no-nav .flow-step__inner {
    padding-right: 24px;
  }
}
.flow-steps--no-nav {
  /* 帯も同じ位置まで伸ばす */
}
.flow-steps--no-nav .flow-step--band .flow-step__inner::before {
  right: clamp(24px, 8.4vw, 120px);
}
@media (max-width: 1023px) {
  .flow-steps--no-nav .flow-step--band .flow-step__inner::before {
    right: 0;
  }
}
.flow-steps--no-nav {
  /* 納品ステップは元から画面幅いっぱいなのでそのまま */
}
.flow-steps--no-nav .flow-step--full .flow-step__inner::before {
  right: calc(50% - 50vw);
}

/* ============================================================
   8-11. Services Page (製品・サービス一覧)
   ============================================================ */
/* ---- 小見出し（Original floor / Machine / Sales） ---- */
.sub-headline {
  display: inline-block;
}
.sub-headline__en {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .sub-headline__en {
    font-size: 30px;
  }
}
.sub-headline__ja {
  display: block;
  margin-top: 14px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #35574A;
}
@media (max-width: 767px) {
  .sub-headline__ja {
    margin-top: 10px;
    font-size: 15px;
  }
}
.sub-headline--center {
  display: block;
  text-align: center;
}
.sub-headline--light .sub-headline__en,
.sub-headline--light .sub-headline__ja {
  color: #EDEFF1;
}

/* ---- Original floor（6商品のカード） ---- */
.section--floor {
  background: #EDEFF1;
}
.section--floor .section__inner {
  padding: 96px 120px;
}
@media (max-width: 1023px) {
  .section--floor .section__inner {
    padding: 72px 60px;
  }
}
@media (max-width: 767px) {
  .section--floor .section__inner {
    padding: 56px 24px;
  }
}
.section--floor {
  /* ページ見出し（SERVICES）と小見出しの間隔 */
}
.section--floor .headline--center {
  margin-bottom: 80px;
}
@media (max-width: 767px) {
  .section--floor .headline--center {
    margin-bottom: 48px;
  }
}

/* 右上の線画イラスト（デザイナー） */
.floor__figure {
  position: absolute;
  top: 5px;
  right: 90px;
  z-index: 0;
  display: block;
  width: 330px;
  height: 400px;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}
.floor__figure img {
  display: block;
  width: 460px;
  max-width: none;
  margin-left: -70px;
}
@media (max-width: 1023px) {
  .floor__figure {
    display: none;
  }
}

.floor-grid {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 60px;
  row-gap: 72px;
}
@media (max-width: 1023px) {
  .floor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 48px;
  }
}
@media (max-width: 767px) {
  .floor-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    margin-top: 32px;
  }
}

.floor-card {
  display: block;
}
.floor-card__image {
  overflow: hidden;
}
.floor-card__image img {
  display: block;
  width: 100%;
  /* デザイン: 360 × 257 */
  aspect-ratio: 360/257;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.floor-card:hover {
  opacity: 1;
}
.floor-card:hover .floor-card__image img {
  transform: scale(1.04);
}
.floor-card:hover .floor-card__title {
  color: #35574A;
}
.floor-card {
  /* 左に縦線のアクセント */
}
.floor-card__body {
  margin-top: 24px;
  padding-left: 20px;
  border-left: 1px solid rgba(61, 58, 57, 0.5);
}
@media (max-width: 767px) {
  .floor-card__body {
    margin-top: 16px;
  }
}
.floor-card__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #3D3A39;
  transition: color 0.3s ease;
}
@media (max-width: 767px) {
  .floor-card__title {
    font-size: 17px;
  }
}
.floor-card__desc {
  margin-top: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.85);
}
@media (max-width: 767px) {
  .floor-card__desc {
    font-size: 13px;
    margin-top: 8px;
  }
}

.floor__btn {
  margin-top: 80px;
  text-align: center;
}
.floor__btn .btn {
  margin: 0 auto;
}
@media (max-width: 767px) {
  .floor__btn {
    margin-top: 48px;
  }
}

/* ---- Machine（機械設備） ---- */
.section--machine-svc {
  background: #3D3A39;
  color: #EDEFF1;
}
.section--machine-svc .section__inner {
  padding: 96px 120px;
  text-align: center;
}
@media (max-width: 1023px) {
  .section--machine-svc .section__inner {
    padding: 72px 60px;
  }
}
@media (max-width: 767px) {
  .section--machine-svc .section__inner {
    padding: 56px 24px;
  }
}
.section--machine-svc {
  /* タイトル（Machine／機械設備）だけ左揃え */
}
.section--machine-svc .sub-headline {
  display: block;
  text-align: left;
}

/* 左下の線画イラスト（ヘルメットの作業スタッフ） */
.machine-svc__figure {
  position: absolute;
  left: 20px;
  bottom: -40px;
  z-index: 0;
  display: block;
  width: 445px;
  height: 380px;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}
.machine-svc__figure img {
  display: block;
  width: 425px;
  max-width: none;
}
@media (max-width: 1023px) {
  .machine-svc__figure {
    display: none;
  }
}

.machine-svc__images {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1014px;
  margin: 64px auto 0;
}
.machine-svc__images img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 767px) {
  .machine-svc__images {
    margin-top: 40px;
  }
}
.machine-svc__lead {
  position: relative;
  z-index: 1;
  margin-top: 56px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.9;
  letter-spacing: 0.06em;
}
@media (max-width: 767px) {
  .machine-svc__lead {
    margin-top: 32px;
    font-size: 15px;
  }
}
.machine-svc__btn {
  position: relative;
  z-index: 1;
  margin-top: 40px;
}
.machine-svc__btn .btn {
  margin: 0 auto;
}

/* ---- Sales（販売） ---- */
.section--sales {
  background: #EDEFF1;
}
.section--sales .section__inner {
  padding: 96px 120px;
}
@media (max-width: 1023px) {
  .section--sales .section__inner {
    padding: 72px 60px;
  }
}
@media (max-width: 767px) {
  .section--sales .section__inner {
    padding: 56px 24px;
  }
}

/* 右上の線画イラスト（営業スタッフ） */
.sales__figure {
  position: absolute;
  top: 30px;
  right: 74px;
  z-index: 0;
  display: block;
  width: 375px;
  height: 412px;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}
.sales__figure img {
  display: block;
  width: 400px;
  max-width: none;
  margin-left: 0;
}
@media (max-width: 1023px) {
  .sales__figure {
    display: none;
  }
}

.sales-list {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 120px;
}
@media (max-width: 1023px) {
  .sales-list {
    gap: 72px;
  }
}
@media (max-width: 767px) {
  .sales-list {
    gap: 56px;
  }
}

.sales-item {
  display: flex;
  align-items: center;
  gap: 80px;
}
@media (max-width: 1023px) {
  .sales-item {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }
}
.sales-item__image {
  flex-shrink: 0;
  width: 440px;
  max-width: 100%;
}
.sales-item__image img {
  display: block;
  width: 100%;
  /* デザイン: 440 × 213 */
  aspect-ratio: 440/213;
  height: auto;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .sales-item__image {
    width: 100%;
    max-width: 440px;
  }
}
.sales-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
@media (max-width: 767px) {
  .sales-item__body {
    gap: 28px;
  }
}
.sales-item {
  /* 左に縦線のアクセント */
}
.sales-item__txt {
  padding-left: 20px;
  border-left: 1px solid rgba(61, 58, 57, 0.5);
}
.sales-item__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .sales-item__title {
    font-size: 17px;
  }
}
.sales-item__desc {
  margin-top: 22px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 2.28;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .sales-item__desc {
    margin-top: 14px;
    line-height: 1.9;
  }
}
.sales-item {
  /* 2つ目はテキスト左・画像右（タブレット以下は画像が先） */
}
@media (max-width: 1023px) {
  .sales-item--reverse {
    flex-direction: column-reverse;
  }
}

/* ---- NEXT（画面幅いっぱいの深緑帯） ---- */
.section--next-wide {
  background: #EDEFF1;
}
.section--next-wide .section__inner {
  display: none;
}

.next-wide {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* デザイン: 1440 × 440 */
  min-height: 440px;
  background: #35574A;
  color: #EDEFF1;
  /* 768px以上は常にPCと同じ横幅いっぱい（余白なし）のデザインにする。
     余白なしで縦積みにするのはスマホ（〜767px）だけ */
}
@media (max-width: 767px) {
  .next-wide {
    min-height: 0;
    width: auto;
    margin: 0;
  }
}
.next-wide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  /* 1024〜1440px では見出し幅・間隔・左右余白を画面幅に応じて縮め、
     ボタン（幅399px固定）がテキスト列からはみ出して右端がずれるのを防ぐ */
  padding: 80px clamp(48px, 48px + (100vw - 1024px) * 0.1731, 120px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  /* デザイン: 見出し275px ＋ 間隔269px ＋ テキスト656px */
  gap: clamp(80px, 80px + (100vw - 1024px) * 0.4543, 269px);
  /* レスポンシブ（スマホのみ）: 見出し → イラスト → テキスト → ボタン の縦並び・中央揃え */
}
@media (max-width: 767px) {
  .next-wide__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    padding: 40px 24px;
    gap: 20px;
  }
}
.next-wide__left {
  width: clamp(200px, 200px + (100vw - 1024px) * 0.1803, 275px);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .next-wide__left {
    width: 100%;
    text-align: center;
  }
}
.next-wide__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 56px;
  /* スマホは縦積み（align-items:center）になるため、幅を指定しないと
     テキストの内容量によってボタンの幅までページごとに変わってしまう。
     左の見出し（.next-wide__left）と同じく横幅いっぱいに固定する */
}
@media (max-width: 767px) {
  .next-wide__body {
    width: 100%;
    gap: 32px;
  }
}
.next-wide__body {
  /* タブレット（768〜1023px）はイラストが下に回り込み、見出し＋テキスト列の
     横に並ぶものが無くなるため、flex:1のままだと帯の右端近くまで
     間延びして見える。テキスト列自体の横幅を少し狭くする */
}
@media (min-width: 768px) and (max-width: 1023px) {
  .next-wide__body {
    max-width: 460px;
  }
}
.next-wide__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  /* テキストの行自体は左揃えのまま、ブロック全体をボタンの右端に揃える */
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
}
.next-wide__text p + p {
  margin-top: 24px;
}
@media (max-width: 767px) {
  .next-wide__text {
    width: auto;
    margin-left: 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.9;
  }
}
.next-wide {
  /* ボタンはテキストの右端に揃える（デザイン） */
}
.next-wide__btn {
  margin-left: auto;
}
.next-wide__btn .btn {
  margin-left: auto;
}
.next-wide__btn {
  /* スマホのみ中央揃え＋コンテナ幅いっぱい */
}
@media (max-width: 767px) {
  .next-wide__btn {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .next-wide__btn .btn {
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
}
.next-wide {
  /* 線画イラスト（NEXT の文字の右側）。
     位置・大きさは帯に対する割合で指定しているので、画面幅が変わっても
     文字との位置関係が保たれる（デザイン: left 330/1440, 幅 400/1440, 高さ 397/440） */
}
.next-wide__figure {
  position: absolute;
  left: 23%;
  bottom: 0;
  z-index: 1;
  display: block;
  width: 28%;
  height: 90%;
  overflow: hidden;
  opacity: 1;
  pointer-events: none;
}
.next-wide__figure img {
  display: block;
  width: 120%;
  max-width: none;
  margin-left: -10%;
}
.next-wide__figure {
  /* タブレット・スマホは「NEXT」の下に通常フローで配置。
     絶対配置のまま（見出し＋本文の横並びと同じ768px〜）にすると、
     イラストが大きすぎてテキストに被ってしまうため、静止画像として
     横並びの下に収める（他ページのNEXTのイラストに合わせ、上半身で切る） */
}
@media (max-width: 1023px) {
  .next-wide__figure {
    position: static;
    width: 240px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
  }
  .next-wide__figure img {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 767px) {
  .next-wide__figure {
    width: 220px;
    height: 185px;
  }
}
.next-wide {
  /* 実績紹介ページのNEXT: イラストを左右反転し、切れずに全身が入るよう配置する
     （反転は .js-reveal の failsafe に打ち消されないよう img 側に指定する） */
}
.next-wide__figure--flip img {
  transform: scaleX(-1);
}
@media (min-width: 1024px) {
  .next-wide__figure--flip {
    /* デザイン: x141 / 508×337px、帯（440px）の下端に接地。
       左位置はコンテンツ左端（最大1440pxのセンタリング）から141px */
    left: max(141px, 50% - 579px);
    bottom: 0;
    width: 508px;
    height: 337px;
    overflow: hidden;
    /* 幅基準で拡大し、下端（脚）はデザイン同様に帯の下辺で切る */
  }
  .next-wide__figure--flip img {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
}
.next-wide {
  /* CONTACT版（第3階層など）。文字数が多いぶん装飾文字を小さくする */
}
.next-wide--contact .next-wide__deco {
  font-size: 197px;
}
@media (max-width: 1023px) {
  .next-wide--contact .next-wide__deco {
    font-size: 90px;
  }
}
.next-wide {
  /* CONTACT版の見出し。「CONTACT」は「NEXT」より文字数が多く、
     左カラムの幅（768〜1440pxでは200〜275pxの可変幅）に対して
     64px固定のままだと右のテキストへはみ出して重なってしまうため、
     左カラムの幅と同じ比率で見出しサイズも可変にする */
}
@media (min-width: 768px) {
  .next-wide--contact .next-wide__left .headline__en {
    font-size: clamp(36px, 36px + (100vw - 1024px) * 0.0673, 64px);
  }
}
.next-wide {
  /* CONTACT版のイラスト（横長のため幅基準で配置し、帯の下端に接地させる） */
}
@media (min-width: 1024px) {
  .next-wide__figure--contact {
    left: max(141px, 50% - 579px);
    bottom: 0;
    width: min(34%, 490px);
    height: auto;
    overflow: visible;
  }
  .next-wide__figure--contact img {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
}
@media (max-width: 1023px) {
  .next-wide__figure--contact {
    width: 320px;
    height: auto;
    overflow: visible;
  }
  .next-wide__figure--contact img {
    width: 100%;
  }
}
@media (max-width: 767px) {
  .next-wide__figure--contact {
    width: 260px;
  }
}
.next-wide {
  /* 背面の装飾文字 */
}
.next-wide__deco {
  position: absolute;
  right: 0;
  bottom: -23px;
  z-index: 0;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  /* デザイン: 264px */
  font-size: 264px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(237, 239, 241, 0.12);
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 1023px) {
  .next-wide__deco {
    font-size: 100px;
    right: 0;
    opacity: 0.6;
  }
}
@media (max-width: 767px) {
  .next-wide__deco {
    display: none;
  }
}

/* ============================================================
   8-12. Page List (確認用のページ一覧)
   ============================================================ */
.pagelist {
  min-height: 100vh;
  padding: 80px 24px 120px;
  background: #EDEFF1;
}
.pagelist__inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.pagelist__head {
  padding-bottom: 40px;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(61, 58, 57, 0.2);
}
.pagelist__en {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  letter-spacing: 0.1em;
  line-height: 1;
  color: #3D3A39;
}
.pagelist__title {
  margin-top: 16px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #35574A;
}
.pagelist__note {
  margin-top: 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 2;
  color: rgba(61, 58, 57, 0.8);
}
.pagelist__group + .pagelist__group {
  margin-top: 56px;
}
.pagelist__group-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-left: 14px;
  border-left: 3px solid #35574A;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: #3D3A39;
}
.pagelist__group-title span {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #35574A;
}
.pagelist {
  /* 階層見出しの下に並ぶ「1ページ分」のブロック */
}
.pagelist__page {
  margin-top: 28px;
  padding: 20px 24px 24px;
  background: rgba(255, 255, 255, 0.55);
  border-left: 2px solid rgba(53, 87, 74, 0.35);
}
.pagelist__page-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.pagelist__level {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: #35574A;
  font-family: "Playfair Display", serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}
.pagelist__level--todo {
  background: rgba(61, 58, 57, 0.45);
}
.pagelist__page-name {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
.pagelist__page-count {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: rgba(61, 58, 57, 0.6);
}
.pagelist__page-desc {
  margin-top: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(61, 58, 57, 0.75);
}
.pagelist__page-desc--lead {
  margin-top: 20px;
}
.pagelist__notes {
  list-style: none;
  margin-top: 28px;
}
.pagelist__notes li {
  position: relative;
  padding-left: 1.4em;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.9;
  color: rgba(61, 58, 57, 0.6);
}
.pagelist__notes li::before {
  content: "※";
  position: absolute;
  left: 0;
}
.pagelist__list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 767px) {
  .pagelist__list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pagelist__item a {
  display: block;
  height: 100%;
  padding: 20px 24px;
  background: #FFFFFF;
  border: 1px solid rgba(61, 58, 57, 0.12);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.pagelist__item a:hover {
  opacity: 1;
  border-color: #35574A;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.pagelist__item {
  /* 2案あるページは1行に1件（説明が長いため） */
}
.pagelist__item--ab a {
  display: block;
}
.pagelist__item--todo {
  padding: 20px 24px;
  background: rgba(61, 58, 57, 0.04);
  border: 1px dashed rgba(61, 58, 57, 0.25);
}
.pagelist__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  background: #35574A;
  font-family: "Playfair Display", serif;
  font-size: 15px;
  color: #FFFFFF;
  vertical-align: middle;
}
.pagelist__badge--b {
  background: #3D3A39;
}
.pagelist__name {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: #3D3A39;
  vertical-align: middle;
}
.pagelist__url {
  display: inline-block;
  margin-left: 10px;
  font-family: "Playfair Display", serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #35574A;
  vertical-align: middle;
}
.pagelist__desc {
  display: block;
  margin-top: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(61, 58, 57, 0.7);
}
.pagelist__list--todo {
  grid-template-columns: minmax(0, 1fr);
}

/* ============================================================
   9. Scroll Reveal (JS: IntersectionObserver で is-visible 付与)
   ============================================================ */
/* 全体の基準値。ゆっくり・なめらかに見せるため、減速カーブ（ease-out寄り）で統一する */
.js-reveal {
  --reveal-duration: 1.4s;
  --reveal-ease: cubic-bezier(.19, 1, .22, 1);
  will-change: transform, opacity, clip-path;
}

/* 画面外に出た要素を初期状態へ戻すときだけ、アニメーションを無効化する。
   （巻き戻しを見せると、上スクロールで戻ってきた際に途中から再生されてしまうため。
     JS が一瞬だけこのクラスを付けて初期化する） */
.js-reveal.is-resetting,
.js-reveal.is-resetting .char {
  transition: none !important;
}

/* up: 下から浮き上がり
   透明度は動きより少し早く終わらせると、ふわっと浮かび上がる印象になる */
.js-reveal[data-reveal=up] {
  --reveal-duration: 1.8s;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.4s ease-out, transform var(--reveal-duration) var(--reveal-ease);
}
.js-reveal[data-reveal=up].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* fade: フェードイン */
.js-reveal[data-reveal=fade] {
  opacity: 0;
  transition: opacity var(--reveal-duration) var(--reveal-ease);
}
.js-reveal[data-reveal=fade].is-visible {
  opacity: 1;
}

/* clip-left: 左から右へ画像をパキッと開く（TNGリクルート風）
   - 中の画像は常に表示状態を維持し、親のclip-pathで開閉する
   - 初期状態でJSが無効/遅延時にも視認できるよう opacity 併用 */
.js-reveal[data-reveal=clip-left] {
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  transition: clip-path 2.2s var(--reveal-ease), opacity 0.6s ease;
}
.js-reveal[data-reveal=clip-left].is-visible {
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

/* JSが未動作の場合のフェイルセーフ（1.5秒後全表示） */
/* chars は親要素の opacity / transform を演出に使う（Original Design の opacity:.18 や
   中央寄せ transform）ため、このフェイルセーフの対象から除外する */
html.no-js .js-reveal:not([data-reveal=chars]),
.js-reveal.is-visible:not([data-reveal=chars]) {
  opacity: 1 !important;
  transform: none !important;
}

/* clip-path のフェイルセーフは clip-left 画像のみに限定する。
   （全要素に inset(0) をかけると、見出しの下線 ::after が親ボックス外＝下にあるため
     クリップされて消えてしまうため） */
html.no-js .js-reveal[data-reveal=clip-left],
.js-reveal[data-reveal=clip-left].is-visible {
  clip-path: inset(0 0 0 0) !important;
}

/* slide-in-left: 背景カードごと画面外(左)から差し込んでくる（Service2用） */
.js-reveal[data-reveal=slide-in-left] {
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 1.2s var(--reveal-ease), transform 2.4s var(--reveal-ease);
}
.js-reveal[data-reveal=slide-in-left].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* chars: 装飾テキストを1文字ずつ くるっと回転して表示（Design / Floor / Creation / Original Design） */
.js-reveal[data-reveal=chars] {
  perspective: 800px;
}
.js-reveal[data-reveal=chars] .char {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: rotateY(-180deg);
  transform-origin: 50% 50%;
  transition: opacity 1.1s ease, transform 1.6s cubic-bezier(0.2, 0.7, 0.3, 1);
  will-change: transform, opacity;
}
.js-reveal[data-reveal=chars].is-visible .char {
  opacity: 1;
  transform: rotateY(0deg);
}

/* スマホは縦スクロール量が多く、フェードインを待つ場面が頻繁にあるため、
   PCと同じ尺だと「出てくるのが遅い」と感じやすい。各演出の尺を縮めて素早く見せる */
@media (max-width: 767px) {
  .js-reveal {
    --reveal-duration: .8s;
  }
  .js-reveal[data-reveal=up] {
    transition: opacity 0.6s ease-out, transform var(--reveal-duration) var(--reveal-ease);
  }
  .js-reveal[data-reveal=fade] {
    transition: opacity var(--reveal-duration) var(--reveal-ease);
  }
  .js-reveal[data-reveal=clip-left] {
    transition: clip-path 1s var(--reveal-ease), opacity 0.4s ease;
  }
  .js-reveal[data-reveal=slide-in-left] {
    transition: opacity 0.6s var(--reveal-ease), transform 1.1s var(--reveal-ease);
  }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal,
  .js-reveal[data-reveal=up],
  .js-reveal[data-reveal=fade],
  .js-reveal[data-reveal=clip-left],
  .js-reveal[data-reveal=slide-in-left] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .js-reveal[data-reveal=chars] .char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero__mega-text span,
  .contact__gallery-track {
    animation: none !important;
  }
}
/* ============================================================
   8-13. Works Archive (実績紹介)
   ※ WordPress化を想定。1件＝1カード（主タグ1つ＋副タグ複数）
   ============================================================ */
.section--works-archive {
  background: #EDEFF1;
}
.section--works-archive .section__inner {
  padding: 96px 120px 120px;
}
@media (max-width: 1023px) {
  .section--works-archive .section__inner {
    padding: 72px 60px 96px;
  }
}
@media (max-width: 767px) {
  .section--works-archive .section__inner {
    padding: 56px 24px 72px;
  }
}

/* ---- 見出し＋操作ボタン ---- */
.works-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 767px) {
  .works-head {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }
}

.works-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  /* スマホは横並びだと3つ目（クリア）が収まらず崩れるため縦並びにする。
     タグ（.works-chip）とボタンの見分けが付くよう、ボタン側は後述の
     .works-tool のスマホ指定で一回り大きく・はっきりした見た目にする */
}
@media (max-width: 767px) {
  .works-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 0;
  }
}

.works-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  /* カテゴリのタグと同じ仕様（枠線・文字・アイコン＝緑／背景なし） */
  background: transparent;
  border: 1px solid #35574A;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: #35574A;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.works-tool:hover, .works-tool.is-active {
  background: #35574A;
  border-color: #35574A;
  color: #FFFFFF;
}
.works-tool {
  /* スマホ: 上部のタグ（.works-chip、高さ34px・枠線のみ）とはっきり差が
     付くよう、操作ボタンは横幅いっぱい・一回り大きく・濃い塗りにする */
}
@media (max-width: 767px) {
  .works-tool {
    width: 100%;
    justify-content: center;
    height: 48px;
    padding: 0 20px;
    background: #35574A;
    border-width: 1px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: #FFFFFF;
  }
  .works-tool .works-tool__icon {
    background-color: #FFFFFF;
  }
  .works-tool:hover, .works-tool.is-active {
    background: #5D796D;
    border-color: #5D796D;
  }
}
.works-tool {
  /* アイコン（支給PNG）。マスクで塗るので、ホバー時は文字色と一緒に白くなる */
}
.works-tool__icon {
  display: block;
  flex-shrink: 0;
  background-color: currentColor;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  /* 絞り込み（漏斗） 29 : 30 */
}
.works-tool__icon--filter {
  width: 14px;
  height: 15px;
  mask-image: url("../images/icon-filter.png");
  -webkit-mask-image: url("../images/icon-filter.png");
}
.works-tool__icon {
  /* キーワード検索（虫めがね） 34 : 34 */
}
.works-tool__icon--search {
  width: 15px;
  height: 15px;
  mask-image: url("../images/icon-search.png");
  -webkit-mask-image: url("../images/icon-search.png");
}
.works-tool {
  /* 絞り込み中であることが分かる「クリア」。
     「絞り込み」「キーワード検索」と見分けやすいよう、枠線なし・グレー背景にする
     （絞り込みモーダル内の .works-modal__clear と同じ配色） */
}
.works-tool--clear {
  background: rgba(61, 58, 57, 0.06);
  border-color: transparent;
  color: rgba(61, 58, 57, 0.75);
}
.works-tool--clear .works-tool__icon--clear {
  width: auto;
  height: auto;
  background: none;
  mask-image: none;
  -webkit-mask-image: none;
  font-size: 16px;
  line-height: 1;
}
.works-tool--clear:hover {
  background: rgba(61, 58, 57, 0.12);
  border-color: transparent;
  color: rgba(61, 58, 57, 0.75);
}

/* キーワード検索の入力欄（ボタンで開閉） */
.works-search {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 300px;
  /* 開閉はフェード＋わずかなスライドで */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.32s ease;
  pointer-events: none;
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid rgba(61, 58, 57, 0.35);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.works-search.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.works-search__input {
  flex: 1;
  min-width: 0;
  height: 28px;
  border: 0;
  background: transparent;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #3D3A39;
}
.works-search__input:focus {
  outline: none;
}
.works-search {
  /* 送信ボタンは画面に出さない（Enterでも送信できるように要素は残す） */
}
.works-search__submit {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.works-search__clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: transparent;
  border: 0;
  font-size: 16px;
  line-height: 1;
  color: rgba(61, 58, 57, 0.6);
  cursor: pointer;
}
.works-search__clear:hover {
  color: #35574A;
}
@media (max-width: 767px) {
  .works-search {
    width: 100%;
  }
}

/* ---- タグ（クイック絞り込み・モーダル共通） ---- */
.works-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  background: #FFFFFF;
  border: 1px solid rgba(61, 58, 57, 0.3);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #3D3A39;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.works-chip:hover {
  border-color: #35574A;
  color: #35574A;
}
.works-chip {
  /* 選択中は深緑の塗り＋右上に解除マーク */
}
.works-chip.is-active {
  background: #35574A;
  border-color: #35574A;
  color: #FFFFFF;
}
.works-chip.is-active::after {
  content: "×";
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  background: #D9D9D9;
  border-radius: 50%;
  font-size: 8px;
  line-height: 1;
  color: #35574A;
}

.works-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 48px;
  /* 一覧上部のカテゴリは「枠線・文字＝緑／背景なし」 */
}
.works-quick .works-chip {
  background: transparent;
  border-color: #35574A;
  color: #35574A;
}
.works-quick .works-chip:hover, .works-quick .works-chip.is-active {
  background: #35574A;
  border-color: #35574A;
  color: #FFFFFF;
}
.works-quick {
  /* スマホ: 下の操作ボタン（絞り込み等）を大きくしっかりした見た目にする分、
     タグ側は少し控えめ（小さめ）にしてメリハリを付ける */
}
@media (max-width: 767px) {
  .works-quick {
    margin-top: 32px;
    gap: 8px;
  }
  .works-quick .works-chip {
    height: 30px;
    padding: 0 12px;
    font-size: 12px;
  }
}

/* ---- カテゴリごとのグループ ---- */
.works-group {
  margin-top: 72px;
}
.works-group.is-empty {
  display: none;
}
@media (max-width: 767px) {
  .works-group {
    margin-top: 48px;
  }
}
.works-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.works-group__count {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.8);
  /* 初期表示（絞り込み前）は件数を出さない */
  display: none;
}
.works-group__empty {
  display: none;
  margin-top: 48px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  color: rgba(61, 58, 57, 0.7);
}
.works-group__more {
  margin-top: 56px;
  text-align: center;
}
.works-group__more .btn {
  margin: 0 auto;
}
@media (max-width: 767px) {
  .works-group__more {
    margin-top: 40px;
  }
}

/* 絞り込み後は「件数」と「ページ送り」を出し、「もっと見る」は隠す */
.section--works-archive.is-filtered .works-group__count {
  display: block;
}
.section--works-archive.is-filtered .works-group__more {
  display: none;
}
.section--works-archive.is-filtered .works-pager {
  display: flex;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 60px;
  row-gap: 56px;
  margin-top: 40px;
}
@media (max-width: 1023px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
    row-gap: 40px;
  }
}
@media (max-width: 767px) {
  .works-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
    margin-top: 28px;
  }
}

.works-item {
  display: block;
}
.works-item.is-hidden {
  display: none;
}
.works-item {
  /* 「もっと見る」で追加されたカードは左からすべり込む */
}
.works-item.is-appear {
  animation: worksAppearLeft 0.9s cubic-bezier(0.19, 1, 0.22, 1) both;
}
.works-item__image {
  overflow: hidden;
}
.works-item__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.37;
  height: auto;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}
.works-item:hover {
  opacity: 1;
}
.works-item:hover .works-item__image img {
  transform: scale(1.04);
}
.works-item:hover .works-item__title {
  color: #35574A;
}
.works-item {
  /* 主タグ＋副タグ（左に縦線のアクセント） */
}
.works-item__body {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 1px solid rgba(61, 58, 57, 0.5);
}
.works-item__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: #3D3A39;
  transition: color 0.3s ease;
}
.works-item {
  /* お客様名（掲載可の事例のみ。WordPress側で無ければ出力しない） */
}
.works-item__client {
  margin-top: 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #35574A;
}
.works-item__tags {
  margin-top: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.7);
}

@keyframes worksAppearLeft {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* ---- ページ送り ---- */
.works-pager {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 56px;
  list-style: none;
}
.works-pager button {
  position: relative;
  padding: 4px 2px;
  background: transparent;
  border: 0;
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: rgba(61, 58, 57, 0.6);
  cursor: pointer;
  transition: color 0.3s ease;
}
.works-pager button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #3D3A39;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.works-pager button:hover {
  color: #3D3A39;
}
.works-pager button.is-current {
  color: #3D3A39;
}
.works-pager button.is-current::after {
  transform: scaleX(1);
}
.works-pager button {
  /* 前へ・次へ（先頭／末尾では押せない） */
}
.works-pager button.works-pager__nav {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.works-pager button.works-pager__nav::after {
  content: none;
}
.works-pager button.works-pager__nav:disabled {
  color: rgba(61, 58, 57, 0.25);
  cursor: default;
}
.works-pager {
  /* 省略記号 */
}
.works-pager__ellipsis {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: rgba(61, 58, 57, 0.4);
}
@media (max-width: 767px) {
  .works-pager {
    gap: 12px;
    margin-top: 40px;
  }
}

/* ---- 絞り込みモーダル ---- */
.works-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  /* 開閉はフェードで */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.works-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.works-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(61, 58, 57, 0.8);
}
.works-modal__panel {
  position: relative;
  width: 100%;
  /* デザイン: パネル幅 約1180px */
  max-width: 1180px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 56px 80px 48px;
  background: #FFFFFF;
  /* パネルは少し下からすべり上がる */
  opacity: 0;
  transform: translateY(20px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
@media (max-width: 1023px) {
  .works-modal__panel {
    padding: 48px 40px 32px;
  }
}
@media (max-width: 767px) {
  .works-modal__panel {
    padding: 48px 20px 28px;
  }
}
.works-modal.is-open .works-modal__panel {
  opacity: 1;
  transform: none;
}
.works-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: 0;
  font-size: 16px;
  line-height: 1;
  color: rgba(61, 58, 57, 0.7);
  cursor: pointer;
}
.works-modal__close:hover {
  color: #35574A;
}
.works-modal__tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
@media (max-width: 767px) {
  .works-modal__tabs {
    gap: 28px;
  }
}
.works-modal__tab {
  position: relative;
  padding: 4px 2px 10px;
  background: transparent;
  border: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: bold;
  font-size: 15px;
  letter-spacing: 0.06em;
  /* 未選択は緑の50%、選択中は同じ緑の100% */
  color: rgba(53, 87, 74, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
}
.works-modal__tab::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 28px;
  height: 1px;
  background: #35574A;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease;
}
.works-modal__tab:hover {
  color: #35574A;
}
.works-modal__tab.is-current {
  color: #35574A;
}
.works-modal__tab.is-current::after {
  transform: translateX(-50%) scaleX(1);
}
.works-modal__group {
  margin-top: 40px;
}
@media (max-width: 767px) {
  .works-modal__group {
    margin-top: 28px;
  }
}
.works-modal__label {
  padding-bottom: 5px;
  border-bottom: 1px solid #35574A;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #35574A;
}
.works-modal__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  /* モーダル内は背景は白のまま、枠線をクリアボタンの色で少し太く */
}
.works-modal__chips .works-chip {
  background: #FFFFFF;
  border: 2px solid rgba(61, 58, 57, 0.06);
}
.works-modal__chips .works-chip:hover {
  border-color: #35574A;
}
.works-modal__chips .works-chip.is-active {
  background: #35574A;
  border-color: #35574A;
}
@media (max-width: 767px) {
  .works-modal__chips {
    gap: 8px;
  }
}
.works-modal__foot {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 767px) {
  .works-modal__foot {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 32px;
  }
}
.works-modal__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(61, 58, 57, 0.06);
  border: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: rgba(61, 58, 57, 0.75);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.works-modal__clear:hover {
  background: rgba(61, 58, 57, 0.12);
}
@media (max-width: 767px) {
  .works-modal__clear {
    width: 100%;
  }
}
.works-modal {
  /* 「この条件で絞り込む」ボタン（件数バッジ付き） */
}
.works-modal__apply {
  flex: 0 0 auto;
  justify-content: center;
  gap: 12px;
  /* デザイン: 約480px */
  width: 480px;
  max-width: 100%;
  height: 48px;
  padding: 0 24px;
  /* ホバー前から深緑の塗り（件数バッジが常に見えるように） */
  background: #35574A;
  border-color: #35574A;
  color: #FFFFFF;
}
.works-modal__apply::before {
  display: none;
}
.works-modal__apply:hover {
  color: #FFFFFF;
  opacity: 0.88;
}
.works-modal__apply .btn__label--jp {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
}
@media (max-width: 767px) {
  .works-modal__apply {
    width: 100%;
  }
}
.works-modal__count {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  background: rgba(255, 255, 255, 0.22);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #FFFFFF;
}

/* ============================================================
   8-14. Product Detail（第3階層・製品／サービス詳細）
   ブロック単位（pd-*）で組み替えられる汎用テンプレート。
   intro / textlist / 3image / 1image / 4image / 2image + add /
   caution / information(spec) / textonly / machine に対応
   ============================================================ */
.section--pd-intro {
  background: #EDEFF1;
}
.section--pd-intro .section__inner {
  padding: 96px 160px 72px;
}
@media (max-width: 1023px) {
  .section--pd-intro .section__inner {
    padding: 72px 60px 56px;
  }
}
@media (max-width: 767px) {
  .section--pd-intro .section__inner {
    padding: 56px 24px 40px;
  }
}
.section--pd-intro .section__inner {
  /* タブレット横（iPad横=1024px〜iPad Pro 12.9横=1366px）は
     @include tab（〜1023px）に含まれずデスクトップ扱いの160pxのままだと
     表示領域が狭く感じるため、左右の余白をさらに狭くする */
}
@media (min-width: 1024px) and (max-width: 1366px) {
  .section--pd-intro .section__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* 通常ブロック（地色は交互に切り替える） */
.section--pd {
  background: #EDEFF1;
}
.section--pd .section__inner {
  padding: 72px 160px;
}
@media (max-width: 1023px) {
  .section--pd .section__inner {
    padding: 56px 60px;
  }
}
@media (max-width: 767px) {
  .section--pd .section__inner {
    padding: 40px 24px;
  }
}
.section--pd .section__inner {
  /* タブレット横は表示領域を広げるため左右の余白をさらに狭くする */
}
@media (min-width: 1024px) and (max-width: 1366px) {
  .section--pd .section__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}
.section--pd {
  /* 最後のブロック（この下はコンタクト）は余白を広めに */
}
.section--pd:has(+ .section--next-wide) .section__inner, .section--pd:has(+ .section--contact-info) .section__inner {
  padding-bottom: 180px;
}
@media (max-width: 1023px) {
  .section--pd:has(+ .section--next-wide) .section__inner, .section--pd:has(+ .section--contact-info) .section__inner {
    padding-bottom: 120px;
  }
}
@media (max-width: 767px) {
  .section--pd:has(+ .section--next-wide) .section__inner, .section--pd:has(+ .section--contact-info) .section__inner {
    padding-bottom: 80px;
  }
}
.section--pd-alt {
  background: #FFFFFF;
}

/* ---- ページタイトル ---- */
.pd-title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 56px;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: #35574A;
  /* デザイン: 製品名の下に緑の短い線（40px） */
}
.pd-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 40px;
  background: #35574A;
}
@media (max-width: 1023px) {
  .pd-title {
    font-size: 44px;
  }
}
@media (max-width: 767px) {
  .pd-title {
    font-size: 30px;
  }
  .pd-title::after {
    margin-top: 20px;
  }
}

/* ---- intro ---- */
.pd-intro {
  display: flex;
  align-items: flex-start;
  gap: 80px;
  margin-top: 40px;
}
@media (max-width: 1023px) {
  .pd-intro {
    flex-direction: column;
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .pd-intro {
    margin-top: 32px;
  }
}
.pd-intro__body {
  flex: 1;
  min-width: 0;
}
.pd-intro__catch {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-intro__catch {
    font-size: 32px;
  }
}
@media (max-width: 767px) {
  .pd-intro__catch {
    font-size: 24px;
  }
}
.pd-intro__text {
  margin-top: 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
.pd-intro__text p + p {
  margin-top: 20px;
}
@media (max-width: 1023px) {
  .pd-intro__text {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-intro__text {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.95;
  }
}
.pd-intro__image {
  flex-shrink: 0;
  /* デザイン: 480 × 512 */
  width: 480px;
  max-width: 100%;
}
.pd-intro__image img {
  display: block;
  width: 100%;
  aspect-ratio: 480/512;
  height: auto;
  object-fit: cover;
}
@media (max-width: 1023px) {
  .pd-intro__image {
    width: 100%;
  }
}
.pd-intro__image {
  /* タブレット横は余白を狭めて表示領域を広げる分、画像の横幅の比率も
     少しだけ小さくして本文の読みやすさとのバランスを取る */
}
@media (min-width: 1024px) and (max-width: 1366px) {
  .pd-intro__image {
    width: 360px;
  }
}
.pd-intro {
  /* タブレットは「上段：見出し／下段：本文＋画像」の2カラムに組み替える。
     画像の無い intro（データ作成時の注意点など）は対象外。
     .pd-intro__body は display:contents で透過させ、見出し・本文・画像を
     同じグリッドの行として配置する */
}
@media (min-width: 768px) and (max-width: 1023px) {
  .pd-intro:has(.pd-intro__image) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 24px;
    align-items: start;
    grid-template-areas: "catch catch" "text  image";
  }
  .pd-intro:has(.pd-intro__image) .pd-intro__body {
    display: contents;
  }
  .pd-intro:has(.pd-intro__image) .pd-intro__catch {
    grid-area: catch;
  }
  .pd-intro:has(.pd-intro__image) .pd-intro__text {
    grid-area: text;
    margin-top: 0;
  }
  .pd-intro:has(.pd-intro__image) .pd-intro__image {
    grid-area: image;
    width: 100%;
    margin: 0;
  }
  .pd-intro:has(.pd-intro__image) {
    /* 本文が空（機械設備）のときは画像のみの1カラムにする */
  }
  .pd-intro:has(.pd-intro__image):not(:has(.pd-intro__text p)) {
    grid-template-columns: 1fr;
    grid-template-areas: "catch" "image";
  }
}
.pd-intro {
  /* 見出しが長いページ（約20文字以上）は、PCでも同じ構成にする */
}
@media (min-width: 1024px) {
  .pd-intro.pd-intro--stacked-pc:has(.pd-intro__image) {
    display: grid;
    grid-template-columns: 1fr 480px;
    column-gap: 80px;
    /* 見出し（catch）が画像と横並びにならずそれ単体で1行を占めるため、
       本文・画像の行との間がやや詰まって見える。ここだけ広めにとる */
    row-gap: 40px;
    /* タブレット横は画像列を少し狭くする（.pd-intro__image の通常版と同じ考え方） */
    align-items: start;
    grid-template-areas: "catch catch" "text  image";
  }
}
@media (min-width: 1024px) and (max-width: 1366px) {
  .pd-intro.pd-intro--stacked-pc:has(.pd-intro__image) {
    grid-template-columns: 1fr 360px;
  }
}
@media (min-width: 1024px) {
  .pd-intro.pd-intro--stacked-pc:has(.pd-intro__image) .pd-intro__body {
    display: contents;
  }
  .pd-intro.pd-intro--stacked-pc:has(.pd-intro__image) .pd-intro__catch {
    grid-area: catch;
  }
  .pd-intro.pd-intro--stacked-pc:has(.pd-intro__image) .pd-intro__text {
    grid-area: text;
    margin-top: 0;
  }
  .pd-intro.pd-intro--stacked-pc:has(.pd-intro__image) .pd-intro__image {
    grid-area: image;
    width: 100%;
    margin: 0;
  }
}

/* ---- ブロック共通の見出し ---- */
.pd-block {
  /* 見出しの下に横幅いっぱいの線は引かない（短い線のみ） */
}
.pd-block__head {
  padding-bottom: 0;
  border-bottom: 0;
}
.pd-block__title {
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  /* デザイン: 32px / 行送り36px / 字間0.1em */
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  color: #35574A;
  /* タイトルの下は黒の短い線（40px）で統一 */
}
.pd-block__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 28px;
  background: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-block__title {
    font-size: 26px;
  }
}
@media (max-width: 767px) {
  .pd-block__title {
    font-size: 21px;
  }
  .pd-block__title::after {
    margin-top: 18px;
  }
}
.pd-block {
  /* 説明文はタイトル・短い線の下に置く */
}
.pd-block__text {
  margin-top: 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-block__text {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-block__text {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.95;
  }
}

/* ---- textlist（箇条書き） ---- */
.pd-list {
  margin-top: 40px;
  list-style: none;
}
.pd-list li {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-list li {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-list li {
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  .pd-list {
    margin-top: 24px;
  }
}

/* ---- ブロックを横に2分割（サイン資機材販売の「取扱商品」「主要取扱メーカー」など） ---- */
.pd-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 64px;
}
@media (max-width: 1023px) {
  .pd-split {
    gap: 40px;
  }
}
@media (max-width: 767px) {
  .pd-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

/* ---- カード（3枚 / 4枚 / 2枚） ---- */
.pd-cards {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}
.pd-cards--1 {
  grid-template-columns: minmax(0, 1fr);
  /* 図版なので切り抜かず、デザインの1image（横640px）に合わせて中央に置く */
}
.pd-cards--1 .pd-card__image {
  text-align: center;
}
.pd-cards--1 .pd-card__image img {
  width: auto;
  max-width: min(640px, 100%);
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto;
}
.pd-cards--1 {
  /* 説明文は画像の最大幅（640px）に合わせて中央に置く */
}
.pd-cards--1 .pd-card__text {
  max-width: min(640px, 100%);
  margin: 32px auto 0;
}
@media (max-width: 767px) {
  .pd-cards--1 .pd-card__text {
    margin-top: 20px;
  }
}
.pd-cards {
  /* 640px固定だと余白が広すぎて写真が小さく見えるカード用に拡大する
     （玄関マットのゴム縁写真）。元画像の解像度が454pxとそれほど高くない
     ため、85%そのままだと粗く見えやすく、650pxを上限にして拡大する */
}
.pd-cards--1.pd-cards--w85 .pd-card__image img {
  width: min(85%, 650px);
  max-width: min(85%, 650px);
}
.pd-cards--1.pd-cards--w85 .pd-card__text {
  max-width: 85%;
}
.pd-cards--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pd-cards {
  /* 画面幅いっぱいに広がると画像(短いラベル)の間の余白が目立つため、
     見出しと同じ左揃えのまま、横幅だけ画面の7割程度に収める
     （中央寄せにすると見出しから離れて浮いて見えるため、中央寄せはしない） */
}
.pd-cards--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: start;
  max-width: 70%;
}
@media (max-width: 1023px) {
  .pd-cards--2 {
    max-width: 85%;
  }
}
.pd-cards {
  /* クッションカーペット「構造」の表面・裏面など、見出しから離れていても
     中央寄せのほうが収まりが良いカード用に、左揃えをやめて中央に置く */
}
.pd-cards--2.pd-cards--center {
  margin: 0 auto;
}
.pd-cards {
  /* タイトル＋説明文を含むカード（画像だけのカードより文章が長い）は、
     70%幅だと窮屈＆右側の余白が目立って中央に寄って見えるため、
     幅いっぱいに広げ、余白も広くとる
     （データ作成時の注意点／GAマットの特徴／COMFORTの製品について） */
}
.pd-cards--2.pd-cards--wide {
  max-width: none;
  gap: 80px;
}
@media (max-width: 1023px) {
  .pd-cards--2.pd-cards--wide {
    max-width: none;
  }
}
.pd-cards {
  /* 図版が小さい写真のときは大きめに表示する（クッションカーペットの構造、
     COMFORTの製品についてなど） */
}
.pd-cards--2.pd-cards--img-lg .pd-card__image img {
  height: 320px;
  max-height: none;
  width: auto;
  max-width: 100%;
}
@media (max-width: 767px) {
  .pd-cards--2.pd-cards--img-lg .pd-card__image img {
    height: auto;
  }
}
.pd-cards {
  /* デザイン: 4image のカードは全幅で縦に並ぶ */
}
.pd-cards--4 {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
@media (max-width: 1023px) {
  .pd-cards--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .pd-cards--3, .pd-cards--2, .pd-cards--4 {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .pd-cards--2 {
    max-width: none;
  }
  .pd-cards {
    margin-top: 28px;
  }
}

.pd-card__image {
  overflow: hidden;
}
.pd-card__image img {
  display: block;
  width: 100%;
  /* デザイン: 360 × 256 */
  aspect-ratio: 360/256;
  height: auto;
  object-fit: cover;
}
.pd-card {
  /* デザイン: 2枚並びは図版なので切り抜かず、高さ185pxの枠に中央揃えで統一
     （画像ごとの比率差は枠内の余白＝上下マージンとして吸収し、拡大・切り抜きはしない） */
}
.pd-cards--2 .pd-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 185px;
}
.pd-cards--2 .pd-card__image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .pd-cards--2 .pd-card__image {
    height: auto;
  }
  .pd-cards--2 .pd-card__image img {
    max-height: none;
  }
}
.pd-card__title {
  margin-top: 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #35574A;
  /* 4image のように見出しが先頭に来る場合は余白なし */
}
.pd-card__title:first-child {
  margin-top: 0;
}
@media (max-width: 1023px) {
  .pd-card__title {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-card__title {
    font-size: 16px;
  }
}
.pd-card {
  /* デザイン: 写真の下のキャプションは左に緑の縦ライン */
}
.pd-card__caption {
  display: block;
  margin-top: 12px;
  padding-left: 20px;
  border-left: 1px solid #35574A;
  min-height: 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .pd-card__caption {
    padding-left: 14px;
    font-size: 13px;
  }
}
.pd-card__text {
  display: table;
  margin-top: 10px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 1.78;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-card__text {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-card__text {
    font-size: 15px;
  }
}
.pd-card {
  /* 仕様の箇条書き（●で始まる行） */
}
.pd-card__spec {
  margin-top: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
  white-space: pre-line;
}
@media (max-width: 1023px) {
  .pd-card__spec {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-card__spec {
    font-size: 15px;
  }
}

/* ---- 1image（画像1枚） ---- */
.pd-figure {
  margin-top: 40px;
  /* 画像は元のサイズのまま中央に置く（引き伸ばさない） */
  text-align: center;
}
.pd-figure img {
  display: inline-block;
  width: auto;
  /* デザイン: 1image の図版は横640px */
  max-width: min(640px, 100%);
  height: auto;
}
.pd-figure {
  /* デザインで幅が決まっている図版 */
}
.pd-figure--w640 img {
  max-width: min(640px, 100%);
}
.pd-figure {
  /* タイルカーペット「2種類のパイルをご用意」: 640px固定だと余白が広すぎて
     写真・文字が小さく見えるため、一旦コンテナ幅の85%まで拡大する。
     元画像が高解像度（1400px）なので85%まで拡大しても粗くならない */
}
.pd-figure--w85 img {
  width: 85%;
  max-width: 85%;
}
.pd-figure {
  /* データ作成時の注意点「指定可能なカラー」: 上の説明文と同じ幅いっぱいに広げる */
}
.pd-figure--full img {
  max-width: 100%;
}
.pd-figure {
  /* クッションカーペット「優れた弾力性」: 元画像の解像度が低い（269px）ため、
     他の図版と同じ85%まで拡大すると粗く見えてしまう。ぼやけが目立たない
     範囲で拡大する */
}
.pd-figure--upscale-sm img {
  width: min(60%, 420px);
  max-width: 60%;
}
@media (max-width: 767px) {
  .pd-figure {
    margin-top: 28px;
  }
}

/* ---- 補足＋ボタン（テキスト・ボタンとも中央揃え） ---- */
.pd-add {
  margin-top: 40px;
  text-align: center;
}
.pd-add__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-add__text {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-add__text {
    font-size: 15px;
  }
}
.pd-add .btn {
  margin: 40px auto 0;
}
@media (max-width: 767px) {
  .pd-add {
    margin-top: 28px;
  }
}

/* ---- caution（ご注意） ---- */
.pd-caution {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 36px;
}
@media (max-width: 767px) {
  .pd-caution {
    gap: 28px;
    margin-top: 24px;
  }
}
.pd-caution__title {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #35574A;
}
@media (max-width: 767px) {
  .pd-caution__title {
    font-size: 16px;
  }
}
.pd-caution__list {
  margin-top: 10px;
  list-style: none;
}
.pd-caution__list li {
  position: relative;
  /* デザイン: 本文中に「●」を打っているのと同じ見え方にする */
  padding-left: 1.5em;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-caution__list li {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-caution__list li {
    font-size: 15px;
  }
}
.pd-caution__list li::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: 1em;
  line-height: inherit;
  color: inherit;
}
.pd-caution__list {
  /* ●を付けず、頭に見出し（strong）を置くタイプ（グラピカの比較など） */
}
.pd-caution__list--plain li {
  padding-left: 0;
}
.pd-caution__list--plain li::before {
  content: none;
}
.pd-caution__list--plain li strong {
  display: block;
  font-weight: 500;
  color: #35574A;
}
.pd-caution__list--plain li + li {
  margin-top: 14px;
}
.pd-caution__note {
  display: block;
  padding-left: 1em;
  font-size: 1em;
  color: #3D3A39;
}

/* ---- information（製品仕様の表） ---- */
.pd-spec {
  margin-top: 40px;
  display: grid;
  /* 項目名（左）は値（右）より短いため、左:右 = 4:11（左約26.7%）にして
     広い画面で左列だけ余白が目立たないようにする */
  grid-template-columns: minmax(0, 4fr) minmax(0, 11fr);
  column-gap: 10px;
  font-family: "Noto Sans JP", sans-serif;
}
@media (max-width: 767px) {
  .pd-spec {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
}
.pd-spec__title {
  grid-column: 1/-1;
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #35574A;
}
@media (max-width: 767px) {
  .pd-spec__title {
    font-size: 16px;
    margin-bottom: 12px;
  }
}
.pd-spec__row {
  display: contents;
}
.pd-spec dt {
  padding: 4px 0;
  font-size: 16px;
  line-height: 2.25;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .pd-spec dt {
    padding-bottom: 0;
    font-size: 14px;
  }
}
.pd-spec dd {
  margin: 0;
  padding: 4px 0;
  font-size: 16px;
  line-height: 2.25;
  letter-spacing: 0.1em;
  color: #3D3A39;
  white-space: pre-line;
}
.pd-spec dd img {
  max-width: 500px;
  width: 100%;
}
@media (max-width: 767px) {
  .pd-spec dd {
    padding-top: 0;
    font-size: 14px;
  }
}

/* 各種マーク（防炎認定など） */
.pd-marks {
  margin-top: 36px;
  /* 小見出し（デザイン: 「機能性マーク」） */
}
.pd-marks__title {
  margin-bottom: 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #35574A;
}
@media (max-width: 767px) {
  .pd-marks__title {
    font-size: 16px;
  }
}
.pd-marks {
  /* デザイン: マーク画像（約80px）＋右に説明文 */
}
.pd-marks__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.pd-marks__item + .pd-marks__item {
  margin-top: 24px;
}
.pd-marks__item img {
  display: block;
  flex-shrink: 0;
  width: auto;
  max-width: 80px;
  height: auto;
}
.pd-marks__item {
  /* 複数のマークが1枚に並んだ画像（機能マーク一覧） */
}
.pd-marks__item--wide img {
  max-width: 440px;
}
@media (max-width: 767px) {
  .pd-marks__item {
    flex-direction: column;
    gap: 12px;
  }
  .pd-marks__item--wide img {
    max-width: 100%;
  }
}
.pd-marks__text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-marks__text {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-marks__text {
    font-size: 15px;
  }
}
@media (max-width: 767px) {
  .pd-marks {
    margin-top: 24px;
  }
}

/* ---- 雛形ページ用（本番では不要） ---- */
.pd-notice {
  padding: 14px 24px;
  background: #FFF6D9;
  border-bottom: 1px solid rgba(61, 58, 57, 0.12);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #3D3A39;
  text-align: center;
}
.pd-notice strong {
  font-weight: 500;
}

.pd-blocklabel {
  display: inline-block;
  margin-bottom: 20px;
  padding: 4px 10px;
  background: rgba(53, 87, 74, 0.1);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #35574A;
}

/* 4image のカード（画像2枚＋h4＋本文＋仕様） */
.pd-card--wide {
  /* 画像（左）と仕様テキスト（右）を横並びに */
}
.pd-card--wide .pd-card__cols {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 767px) {
  .pd-card--wide .pd-card__cols {
    flex-direction: column;
    gap: 16px;
  }
}
.pd-card--wide .pd-card__images {
  flex: 0 0 482px;
  max-width: 482px;
}
.pd-card--wide .pd-card__images img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 1023px) {
  .pd-card--wide .pd-card__images {
    flex-basis: 380px;
    max-width: 380px;
  }
}
@media (max-width: 767px) {
  .pd-card--wide .pd-card__images {
    flex-basis: auto;
    max-width: 100%;
    width: 100%;
  }
}
.pd-card--wide .pd-card__spec {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}
.pd-card--wide .pd-card__text {
  margin-top: 10px;
}
.pd-card--wide {
  /* 商品写真が小さめのカード（デザイン: 240px） */
}
.pd-card--wide.pd-card--img-sm .pd-card__images {
  flex-basis: 240px;
  max-width: 240px;
}
@media (max-width: 767px) {
  .pd-card--wide.pd-card--img-sm .pd-card__images {
    flex-basis: auto;
    max-width: 320px;
  }
}

.pd-block--spaced {
  margin-top: 72px;
}

/* ---- machine（機械設備の一覧・機械設備ページ用） ---- */
.pd-machines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  /* デザイン: 360px × 3列・間隔20px */
  gap: 40px 20px;
  margin-top: 40px;
  /* 設備（粉体塗装ブースなど）はデザイン: 400px幅を中央に */
}
.pd-machines--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 20px;
}
.pd-machines--2 .pd-machines__item img {
  width: auto;
  max-width: min(400px, 100%);
  margin: 0 auto;
}
@media (max-width: 1023px) {
  .pd-machines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .pd-machines {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
.pd-machines__item {
  /* デザイン: 機械名 → 写真の順。写真は元の比率のまま */
}
.pd-machines__item-name {
  margin-bottom: 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.1em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .pd-machines__item-name {
    font-size: 16px;
  }
}
@media (max-width: 767px) {
  .pd-machines__item-name {
    font-size: 15px;
  }
}
.pd-machines__item img {
  display: block;
  width: 100%;
  height: auto;
}

/* 機械設備ページ最下部: 実績紹介（絞り込み済み）への誘導ボタン */
.pd-machines-cta {
  text-align: center;
}
.pd-machines-cta .btn {
  margin: 0 auto;
}

/* ============================================================
   8-16. 404 Not Found
   ============================================================ */
.section--notfound {
  background: #EDEFF1;
}
.section--notfound .section__inner {
  padding: 140px 120px 160px;
  text-align: center;
}
@media (max-width: 1023px) {
  .section--notfound .section__inner {
    padding: 100px 60px 120px;
  }
}
@media (max-width: 767px) {
  .section--notfound .section__inner {
    padding: 72px 24px 88px;
  }
}

.notfound__code {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 120px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(53, 87, 74, 0.25);
}
@media (max-width: 767px) {
  .notfound__code {
    font-size: 72px;
  }
}
.notfound__title {
  margin-top: 24px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 0.08em;
  color: #35574A;
}
@media (max-width: 767px) {
  .notfound__title {
    margin-top: 16px;
    font-size: 20px;
  }
}
.notfound__text {
  margin-top: 28px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .notfound__text {
    margin-top: 20px;
    font-size: 14px;
  }
}
.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-top: 40px;
  list-style: none;
}
.notfound__links a {
  position: relative;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #35574A;
}
.notfound__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.notfound__links a:hover {
  opacity: 1;
}
.notfound__links a:hover::after {
  transform: scaleX(1);
}
@media (max-width: 767px) {
  .notfound__links {
    gap: 12px 20px;
    margin-top: 28px;
  }
}
.notfound__btn {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
@media (max-width: 767px) {
  .notfound__btn {
    margin-top: 36px;
  }
  .notfound__btn .btn {
    width: 100%;
  }
}

/* 固定ヘッダー（60px）分を考慮したアンカー位置。
   別ページから「about_a.html#message」のように飛んできたときに、
   見出しがヘッダーの下に隠れないようにする。
   ※ 先頭の #message はページ上端（スクロール0）で止まる */
.message-hero[id],
.section[id],
.works-group[id],
.flow-step[id],
.pd-block[id] {
  scroll-margin-top: 60px;
  /* WordPress の管理バー（32px / 幅782px以下は46px）の分だけ下げる */
}
body.admin-bar .message-hero[id],
body.admin-bar .section[id],
body.admin-bar .works-group[id],
body.admin-bar .flow-step[id],
body.admin-bar .pd-block[id] {
  scroll-margin-top: 92px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .message-hero[id],
  body.admin-bar .section[id],
  body.admin-bar .works-group[id],
  body.admin-bar .flow-step[id],
  body.admin-bar .pd-block[id] {
    scroll-margin-top: 106px;
  }
}

/* スマホでは改行しない <br> */
@media (max-width: 767px) {
  .u-br-pc {
    display: none;
  }
}

/* スマホでだけ改行する <br> */
.u-br-sp {
  display: none;
}
@media (max-width: 767px) {
  .u-br-sp {
    display: inline;
  }
}

/* ============================================================
   8-15. Works Detail（実績紹介の個別ページ・single-works.php 想定）
   記事見出し / Before・After / 工事概要 / 施工写真 / お客様の声 /
   関連実績 で構成。共通ブロックは 8-14（pd-*）を流用する。
   ============================================================ */
.section--wd-head {
  background: #FFFFFF;
}
.section--wd-head .section__inner {
  padding: 72px 120px 88px;
}
@media (max-width: 1023px) {
  .section--wd-head .section__inner {
    padding: 56px 60px 64px;
  }
}
@media (max-width: 767px) {
  .section--wd-head .section__inner {
    padding: 40px 24px 48px;
  }
}

/* ---- パンくず ---- */
.wd-back {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.6);
}
.wd-back a {
  color: #35574A;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.wd-back a:hover {
  opacity: 0.6;
}
.wd-back span[aria-hidden] {
  color: rgba(61, 58, 57, 0.35);
}
@media (max-width: 767px) {
  .wd-back {
    gap: 8px;
    font-size: 12px;
    /* 現在ページ名は長くなるため折り返さず省略
       （min-width:0 が無いと flex item は内容の幅まで縮まないため、
       省略記号が効かず「実績紹介一／覧」のように親ごと折り返ってしまう） */
  }
  .wd-back > span:last-child {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

/* ---- 記事見出し ---- */
.wd-head {
  margin-top: 32px;
}
.wd-head__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.wd-head__meta time {
  color: rgba(61, 58, 57, 0.6);
}
.wd-head__cat {
  padding: 5px 16px;
  background: #35574A;
  color: #FFFFFF;
  font-size: 12px;
  letter-spacing: 0.1em;
}
.wd-head__title {
  margin-top: 20px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.45;
  letter-spacing: 0.06em;
  color: #3D3A39;
}
@media (max-width: 1023px) {
  .wd-head__title {
    font-size: 32px;
  }
}
@media (max-width: 767px) {
  .wd-head__title {
    font-size: 24px;
    margin-top: 16px;
  }
}
.wd-head__client {
  margin-top: 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: rgba(61, 58, 57, 0.7);
}
@media (max-width: 767px) {
  .wd-head__client {
    font-size: 14px;
  }
}
@media (max-width: 767px) {
  .wd-head {
    margin-top: 24px;
  }
}

/* ---- タグ（主タグ＋副タグ） ---- */
.wd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  list-style: none;
}
.wd-tags li {
  padding: 6px 18px;
  border: 1px solid #35574A;
  border-radius: 999px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #35574A;
}
@media (max-width: 767px) {
  .wd-tags li {
    padding: 5px 14px;
    font-size: 12px;
  }
}
.wd-tags {
  /* 主タグ（1件につき1つ）は塗りで区別する
     ※ .wd-tags li より詳細度を上げないと文字色が上書きされないため li を付ける */
}
.wd-tags li.wd-tags__main {
  background: #35574A;
  color: #FFFFFF;
}
@media (max-width: 767px) {
  .wd-tags {
    margin-top: 20px;
    gap: 8px;
  }
}

/* ---- メイン画像 ---- */
.wd-main-image {
  margin-top: 48px;
  overflow: hidden;
}
.wd-main-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  height: auto;
  object-fit: cover;
}
@media (max-width: 767px) {
  .wd-main-image {
    margin-top: 32px;
  }
}

/* ---- リード文 ---- */
.wd-lead {
  margin-top: 40px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
.wd-lead p + p {
  margin-top: 20px;
}
@media (max-width: 767px) {
  .wd-lead {
    margin-top: 28px;
    font-size: 14px;
    line-height: 1.95;
  }
}

/* ---- Before / After ---- */
.wd-ba {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 767px) {
  .wd-ba {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 28px;
  }
}
.wd-ba__item {
  position: relative;
  margin: 0;
}
.wd-ba__item img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
}
.wd-ba__item figcaption {
  margin-top: 14px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.8);
}
.wd-ba {
  /* BEFORE / AFTER のラベルは画像の左上に重ねる
     （.js-reveal の failsafe が transform を打ち消すため top/left で配置する） */
}
.wd-ba__label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  padding: 8px 20px;
  background: rgba(61, 58, 57, 0.75);
  font-family: "Playfair Display", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #FFFFFF;
}
.wd-ba__label--after {
  background: #35574A;
}
@media (max-width: 767px) {
  .wd-ba__label {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* ---- 施工写真 ---- */
.wd-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
}
@media (max-width: 1023px) {
  .wd-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .wd-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 28px;
  }
}
.wd-gallery__item img {
  display: block;
  width: 100%;
  aspect-ratio: 3/2;
  height: auto;
  object-fit: cover;
}

/* ---- お客様の声 ---- */
.wd-voice {
  margin: 40px 0 0;
  padding: 48px 56px;
  /* 地色がグレーのセクションでは白、白のセクションではグレーにして必ずカードが立つようにする */
  background: #FFFFFF;
  border-left: 4px solid #35574A;
}
.section--pd-alt .wd-voice {
  background: #EDEFF1;
}
@media (max-width: 767px) {
  .wd-voice {
    margin-top: 28px;
    padding: 32px 24px;
  }
}
.wd-voice__text {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: #3D3A39;
}
.wd-voice__text p + p {
  margin-top: 20px;
}
@media (max-width: 767px) {
  .wd-voice__text {
    font-size: 14px;
    line-height: 1.95;
  }
}
.wd-voice__client {
  margin-top: 24px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #35574A;
  text-align: right;
}

/* ---- 制作プロセス ---- */
.wd-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 40px;
  list-style: none;
  counter-reset: none;
}
@media (max-width: 1023px) {
  .wd-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .wd-process {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-top: 28px;
  }
}
.wd-process__item {
  padding-top: 20px;
  border-top: 2px solid #35574A;
  /* STEP 01 の上だけ線を引かない */
}
.wd-process__item:first-child {
  border-top: none;
}
.wd-process__num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #35574A;
}
.wd-process__title {
  margin-top: 10px;
  font-family: "Zen Old Mincho", "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: #3D3A39;
}
@media (max-width: 767px) {
  .wd-process__title {
    font-size: 16px;
  }
}
.wd-process__text {
  margin-top: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: rgba(61, 58, 57, 0.8);
}

/* ---- 使用した製品・サービスへのリンク ---- */
.wd-links {
  margin-top: 36px;
  list-style: none;
  border-top: 1px solid rgba(61, 58, 57, 0.12);
}
.wd-links li {
  border-bottom: 1px solid rgba(61, 58, 57, 0.12);
}
.wd-links a {
  position: relative;
  display: block;
  padding: 20px 40px 20px 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #3D3A39;
  text-decoration: none;
  transition: color 0.3s ease, padding-left 0.3s ease;
  /* 右端の矢印（横棒＋矢じり。サイト共通のボタンの矢印と同じ角度） */
}
.wd-links a::after, .wd-links a::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  height: 1px;
  margin-top: -0.5px;
  background: #35574A;
  transition: right 0.3s ease;
}
.wd-links a {
  /* 横棒 */
}
.wd-links a::after {
  width: 28px;
}
.wd-links a {
  /* 矢じり（横棒の右端を軸に上へ跳ね上げる） */
}
.wd-links a::before {
  width: 10px;
  transform-origin: right center;
  transform: rotate(36.87deg);
}
.wd-links a:hover {
  opacity: 1;
  color: #35574A;
  padding-left: 8px;
}
.wd-links a:hover::after, .wd-links a:hover::before {
  right: 0;
}
@media (max-width: 767px) {
  .wd-links a {
    padding: 16px 32px 16px 0;
    font-size: 14px;
  }
}

/* ---- 副CTA（制作の流れ / 関連製品） ---- */
/* ボタン自体は .btn--filled のデフォルト（幅399px・透明塗り・濃色文字枠線）の
   ままにし、ここでは2つを並べる／縦に積むレイアウトだけを指定する */
.wd-sub-cta {
  display: flex;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 767px) {
  .wd-sub-cta {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }
}

/* ---- 関連実績 ---- */
.works-grid--related {
  margin-top: 40px;
}
@media (max-width: 767px) {
  .works-grid--related {
    margin-top: 28px;
  }
}

.wd-more {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
@media (max-width: 767px) {
  .wd-more {
    margin-top: 36px;
  }
  .wd-more .btn {
    width: 100%;
  }
}

/* ---- 実績紹介一覧ボタンのセクションは直後が .section--next-wide でも、
   他の section--pd と同じベースの72pxのままにする（180pxにしない）。
   共通ルール側は他ページでも使うため変更せず、このセクションだけを
   IDでピンポイントに上書きする。 ---- */
#works-list-link.section--pd .section__inner {
  padding-top: 0;
  padding-bottom: 72px;
}
@media (max-width: 1023px) {
  #works-list-link.section--pd .section__inner {
    padding-bottom: 56px;
  }
}
@media (max-width: 767px) {
  #works-list-link.section--pd .section__inner {
    padding-bottom: 40px;
  }
}

/* ---- 「関連する実績」のカードとボタンの間隔を、トップページの
   works-carousel と実績紹介ボタンの間隔（gap 80px - 30px = 50px／
   spは48px - 30px = 18px）と同じにする。
   実装上はカードとボタンが #related / #works-list-link の2セクションに
   分かれているため、#related 側の下パディングを0にし、#works-list-link
   側の .wd-more の margin-top だけで間隔をつくる（.wd-more は single.php の
   お知らせ詳細でも使うため、ここでは #works-list-link 内に限定して上書き）。 ---- */
#related.section--pd .section__inner {
  padding-bottom: 0;
}

#works-list-link .wd-more {
  margin-top: 50px;
}
@media (max-width: 767px) {
  #works-list-link .wd-more {
    margin-top: 18px;
  }
}

/* ============================================================
   10. Utilities（詳細度を確実に効かせるためファイル末尾で定義）
   ============================================================ */
/* 行間0（＝行送りの余白なし。line-height: 1 でフォントサイズと同値にする）
   サブタイトル（h3 / Zen Old Mincho / 40px / カタカナのみ）は字面の上下に余白があり、
   行間があると間延びして見えるため、該当する見出しにこのクラスを付ける。
   例: <h3 class="service-item__title u-lh0">オリジナルフロアシリーズ</h3>
   ※CSSの line-height: 0 にすると、折り返して2行になったときに文字が重なるため 1 とする */
.u-lh0 {
  line-height: 1;
}

/* ボタン文言の折り返し防止（トップの3つの強み・製品・サービスの販売欄） */
@media (min-width: 360px) {
  .service-item__body .btn__label,
  .sales-item__body .btn__label {
    white-space: nowrap;
  }
}
/* 1024px 前後で販売欄のボタンが狭くなるため、左右の余白を詰め、矢印が縮まないようにする */
@media (min-width: 768px) and (max-width: 1279px) {
  .sales-item__body .btn {
    padding-left: 20px;
    padding-right: 16px;
    gap: 12px;
  }
  .sales-item__body .btn__arrow {
    flex-shrink: 0;
  }
}
/* ============================================================
   9-1. ユーティリティ：折り返し・改行禁則
   ============================================================ */
body {
  line-break: strict;
}

.u-nowrap {
  white-space: nowrap;
}

.u-phrase {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.u-keep {
  word-break: keep-all;
}

.u-br-tb {
  display: none;
}

@media (max-width: 1024px) {
  .u-br-tb {
    display: inline;
  }
}
/* ============================================================
   9-2. 見出し・リード文：バランス・折り返し
   ============================================================ */
/* 見出しの最後の1〜2文字だけが次の行に落ちるのを防ぐ（対応ブラウザでは文節で改行し、行の長さをそろえる） */
h1, h2, h3, h4, .pd-label, .pd-name,
.headline__ja, .sub-headline__ja {
  text-wrap: balance;
  word-break: auto-phrase;
}

.flow-step__catch, .mvv__title, .wd-head__title, .floor-card__title, .works-item__title {
  text-wrap: balance;
}

/* 制作の流れのキャッチは読点・句点の位置でだけ改行する（入りきらないときだけ語の途中で折り返す） */
.flow-step__catch {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.floor-card__title {
  word-break: keep-all;
}

/* リード文・カードの説明など：最後の行に1〜2文字だけ残らないようにする */
.page-head__lead, .machine-svc__lead, .works__lead, .wd-lead,
.news__title, .catalog-card__desc, .floor-card__desc, .machine__lead,
.service-item__desc, .sales-item__desc, .info-table__row dd, .next-wide__text p {
  text-wrap: pretty;
}

.pd-title:has(wbr), .pd-caution__title:has(wbr) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  .pd-block__title {
    line-height: 1.5;
  }
  .pd-title {
    line-height: 1.5;
  }
}
@media (max-width: 767px) {
  .service-item__title {
    line-height: 1.4;
  }
}
/* スマホ（767px 以下）：15px の本文の行の高さを2種類にそろえる（文章 2.0／カード・表・箇条書き 1.8） */
@media (max-width: 767px) {
  .pd-intro__text p, .pd-block__text, .pd-add__text, .msg-block__text p, .next-wide__text p, .page-head__lead,
  .machine-svc__lead, .machine__lead, .about__lead p, .service-item__desc, .contact__lead, .works__lead {
    line-height: 2;
  }
  .pd-item__text, .pd-card__text, .pd-card__spec, .info-table__row dd, .info-table__list li,
  .pd-caution__list li, .pd-list li {
    line-height: 1.8;
  }
  /* サイン資機材の一覧は 14px・1.7 のまま変えない */
  .pd-split .pd-list li, .pd-split .pd-block__text {
    line-height: 1.7 !important;
  }
}
/* ============================================================
   9-3. ヘッダー・フッター
   ============================================================ */
.site-header .site-header__logo {
  flex-shrink: 0;
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header .site-header__nav {
    gap: 24px;
    margin-left: auto;
    margin-right: 24px;
  }
  .site-header .site-header__nav-item {
    font-size: 16px;
    letter-spacing: 0.08em;
  }
}
/* 1024〜1279px で項目名が1〜2文字だけ折り返すのを防ぐ */
@media (min-width: 1024px) and (max-width: 1279px) {
  .site-footer__inner {
    gap: 40px;
  }
  .site-footer__brand {
    flex: 0 0 200px;
  }
  .site-footer__nav {
    flex: 1 1 auto;
    gap: 24px;
  }
  .site-footer__col {
    flex: 1 1 0;
    min-width: 0;
  }
  .site-footer__col:nth-child(2) {
    flex-grow: 1.5;
  }
}
/* タブレット：左の列に TOP〜ABOUT と WORKS〜CONTACT を縦に積み、右の列に SERVICE を置く（左の列の大きな空きをなくす） */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 24px;
  }
  .site-footer__col {
    width: auto;
    min-width: 0;
  }
  .site-footer__col:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }
  .site-footer__col:nth-child(2) {
    grid-column: 2;
    grid-row: 1/span 2;
  }
  .site-footer__col:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
}
/* 1280px 以上：右端（サイトマップの右端・コピーライト）を緑の帯の右端にそろえる */
@media (min-width: 1280px) {
  .site-footer__inner, .site-footer__meta {
    padding-right: 120px;
  }
}
@media (min-width: 1280px) and (max-width: 1366px) {
  body:has(.section--pd) .site-footer__inner, body:has(.section--pd) .site-footer__meta {
    padding-right: 40px;
  }
}
@media (min-width: 1367px) {
  body:has(.section--pd) .site-footer__inner, body:has(.section--pd) .site-footer__meta {
    padding-right: 160px;
  }
}
/* ============================================================
   9-4. 404ページ
   ============================================================ */
.notfound__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 600px;
}

.notfound__links .btn {
  width: 100%;
  padding-left: 24px;
  padding-right: 20px;
  gap: 12px;
}

.notfound__links .btn__label {
  white-space: nowrap;
}

.notfound__links .btn__arrow {
  flex-shrink: 0;
}

@media (max-width: 1279px) {
  .notfound__links {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .notfound__links {
    margin-left: 0;
    max-width: none;
  }
}
/* ============================================================
   9-5. お問い合わせフォーム
   ============================================================ */
/* スマホのお問い合わせ入力欄に触れたときの自動拡大を防ぐ */
@media (max-width: 1023px) {
  .contact-form input:not([type=checkbox]):not([type=radio]),
  .contact-form select,
  .contact-form textarea {
    font-size: 16px;
  }
}
/* ハニーポット（スパムボット対策）。人間には見えないおとりの入力欄 */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============================================================
   9-6. 制作の流れ（flow-step）
   ============================================================ */
/* STEP05「お問い合わせはこちら」ボタンの折り返し防止 */
.flow-step__btn .btn {
  width: max-content;
  max-width: none;
  padding-left: 24px;
  padding-right: 20px;
  gap: 14px;
}

.flow-step__btn .btn__label {
  white-space: nowrap;
}

.flow-step__btn .btn__arrow {
  flex-shrink: 0;
}

/* 768〜1279px で本文の列が狭くなるのを防ぐ */
@media (min-width: 1024px) and (max-width: 1279px) {
  .flow-step__inner {
    padding-left: 60px;
  }
  .flow-step__image {
    width: 340px;
    flex: 0 0 340px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .flow-step__image {
    width: 280px;
    flex: 0 0 280px;
  }
}
/* スマホ：「お問い合わせ」の段の「お問い合わせはこちら」ボタンを中央に */
@media (max-width: 767px) {
  .flow-step--full .flow-step__btn {
    justify-self: center;
  }
}
/* PC（1024px 以上）：手順の説明文の下に 48px 以上の余白を確保する（手順1・2・3） */
@media (min-width: 1024px) {
  .flow-step:not(.flow-step--full) .flow-step__body {
    padding-bottom: 48px;
  }
}
/* ============================================================
   9-7. トップページ：お知らせ・SERVICE・販売ボタン
   ============================================================ */
/* 1024〜1340px：お知らせの題名が細く折れないようタブレットと同じ縦並びに */
@media (min-width: 1024px) and (max-width: 1340px) {
  .news__head {
    flex-direction: column;
    gap: 32px;
  }
  .news__scroll-arrow {
    display: none;
  }
}
/* タブレット：「オリジナルフロアシリーズ」の帯の中身を、上下の項目と同じ左端にそろえる */
@media (min-width: 768px) and (max-width: 1023px) {
  .service-item--reverse .service-item__inner {
    align-items: flex-start;
  }
}
/* 1024〜1279px（iPad 横など）：写真と文章を横に並べると幅が足りないため、タブレットと同じく写真の下に文章を置く */
@media (min-width: 1024px) and (max-width: 1279px) {
  .service-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }
  .service-item__body {
    width: 560px;
  }
  .service-item--reverse {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .service-item--reverse .service-item__inner {
    width: 100%;
    margin: 0;
    padding: 0 160px;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 32px;
  }
}
/* 販売のボタン：ボタンに余裕のある幅では、文字の前の余白をほかのボタン（40px）にそろえる（1024〜1099px はボタンが細いため詰めた余白のまま） */
@media (min-width: 768px) and (max-width: 1023px), (min-width: 1100px) and (max-width: 1279px) {
  .sales-item__body .btn {
    padding-left: 40px;
    padding-right: 32px;
    gap: 16px;
  }
}
@media (min-width: 1024px) and (max-width: 1099px) {
  .sales-item__body .btn {
    gap: 8px;
  }
  .sales-item__body .btn__arrow {
    width: 40px;
    flex-shrink: 0;
  }
}
/* 360px 未満のスマホ：トップ・販売のボタンの文字を1行に収める */
@media (max-width: 359px) {
  .service-item__body .btn, .sales-item__body .btn {
    letter-spacing: 0.04em;
  }
  .service-item__body .btn__label, .sales-item__body .btn__label {
    white-space: nowrap;
  }
  .service-item__body .btn__arrow, .sales-item__body .btn__arrow {
    width: 40px;
    flex-shrink: 0;
  }
}
/* ============================================================
   9-8. カタログ
   ============================================================ */
/* 横に並んだカードどうしで、表紙・番号・題名・説明・ボタンの高さをそろえる */
@media (min-width: 768px) {
  .catalog-card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 16px;
  }
}
/* ============================================================
   9-9. 私たちについて
   ============================================================ */
/* 理念の見出しが 390px 未満のスマホで3行になるため、少し小さくして2行に収める */
@media (max-width: 389px) {
  .mvv__title {
    font-size: 19px;
    letter-spacing: 0.04em;
  }
}
/* 社長メッセージの本文：360〜374px は文字を 14px にして、375px と同じ位置で改行する */
@media (min-width: 360px) and (max-width: 374px) {
  .msg-block__text p {
    font-size: 14px;
  }
  .msg-block__text .lb-sp {
    display: inline;
  }
  .msg-block__text .lb-sps {
    display: inline;
  }
}
/* ============================================================
   9-10. 緑の帯（NEXT・CONTACT）
   ============================================================ */
/* 帯の左右の余白を、そのページの本文の左右の端にそろえる
   タブレット＝60px／PC（1024〜1439px）＝120px／製品ページ・実績詳細＝1024〜1366px は 40px、1367px 以上は 160px */
@media (min-width: 768px) and (max-width: 1023px) {
  .next-wide__inner {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (min-width: 1024px) and (max-width: 1439px) {
  .next-wide__inner {
    padding-left: 120px;
    padding-right: 120px;
  }
}
@media (min-width: 1024px) and (max-width: 1366px) {
  body:has(.section--pd) .next-wide__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (min-width: 1367px) {
  body:has(.section--pd) .next-wide__inner {
    padding-left: 160px;
    padding-right: 160px;
  }
}
/* 帯の文：行間と段落の間を詰める（タブレット・PC 2.1 → 1.8、段落の間 24px → 12px） */
@media (min-width: 768px) {
  .next-wide__text {
    line-height: 1.8;
  }
  .next-wide__text p + p {
    margin-top: 12px;
  }
}
@media (max-width: 767px) {
  .next-wide__text p + p {
    margin-top: 12px;
  }
}
/* タブレット（768〜1023px）と 1024〜1279px も、1280px と同じ横並びにする */
@media (min-width: 768px) and (max-width: 1279px) {
  .next-wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(480px, 64%);
    grid-template-rows: auto 1fr;
    column-gap: 40px;
    row-gap: 24px;
    padding: 64px 40px;
    min-height: 0;
    position: relative;
  }
  .next-wide__inner, body:has(.section--pd) .next-wide__inner {
    display: contents;
  }
  .next-wide__left {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    text-align: left;
    position: relative;
    z-index: 2;
  }
  .next-wide__body {
    grid-column: 2;
    grid-row: 1/span 2;
    width: auto;
    max-width: none;
    gap: 32px;
    position: relative;
    z-index: 2;
  }
  .next-wide__text {
    width: auto;
    margin-left: 0;
    text-align: left;
  }
  .next-wide__btn, .next-wide__btn .btn {
    width: 100%;
    max-width: none;
  }
  .next-wide__deco, .next-wide--contact .next-wide__deco {
    display: block;
    font-size: 120px;
    right: 0;
    bottom: -14px;
    opacity: 1;
    z-index: 0;
  }
  .next-wide__figure, .next-wide__figure--flip, .next-wide__figure--contact {
    grid-column: 1;
    grid-row: 2;
    align-self: end;
    justify-self: start;
    position: relative;
    left: auto;
    bottom: auto;
    margin: 0 0 -64px;
    z-index: 1;
    width: min(100%, 320px);
    max-width: none;
    height: auto;
    overflow: hidden;
  }
  .next-wide__figure, .next-wide__figure--flip {
    aspect-ratio: 508/337;
  }
  .next-wide__figure--contact {
    aspect-ratio: auto;
  }
  .next-wide__figure img, .next-wide__figure--flip img, .next-wide__figure--contact img {
    width: 100%;
    height: auto;
    margin-left: 0;
  }
}
/* 帯の文は、タブレット・PC とも決めた位置でだけ改行する（text-wrap: pretty は使わない） */
@media (min-width: 768px) {
  .next-wide__text p {
    text-wrap: wrap;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .next-wide__text {
    font-size: 16px;
  }
  .next-wide__deco, .next-wide--contact .next-wide__deco {
    display: none;
  }
}
@media (min-width: 1023px) and (max-width: 1279px) {
  .next-wide {
    grid-template-columns: minmax(0, 1fr) min(600px, 62%);
  }
}
/* 768〜1279px の帯の文の改行：<br class="lb-b1"> は 768〜1022px、<br class="lb-b2"> は 1023〜1279px でだけ改行する */
:where(.lb-b1, .lb-b2) {
  display: none;
}

@media (min-width: 768px) and (max-width: 1279px) {
  .next-wide__text br[class] {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1022px) {
  .next-wide__text br.lb-b1 {
    display: inline;
  }
}
@media (min-width: 1023px) and (max-width: 1279px) {
  .next-wide__text br.lb-b2 {
    display: inline;
  }
}
/* 768〜1279px：見出しの下の白線を左ぞろえに（1280px と同じ） */
@media (min-width: 768px) and (max-width: 1279px) {
  .next-wide__left .headline::after {
    left: 0;
    transform: none;
  }
}
/* 1280px 以上：1行に収まるなら改行しない。収まらないときは「製品とサービスの」の後で折り返す */
@media (min-width: 1280px) {
  .u-nowrap-1280 {
    white-space: nowrap;
  }
  .u-nowrap-1280 wbr {
    display: none;
  }
}
/* ============================================================
   9-11. 実績一覧・実績詳細（works / wd-*）
   ============================================================ */
.wd-back a {
  white-space: nowrap;
  flex-shrink: 0;
}

.works-item__tag {
  white-space: nowrap;
}

.works-card__tag {
  white-space: nowrap;
}

/* Safari でタグの間でも改行できるようにする */
.works-card__tags, .works-item__tags {
  word-break: normal;
}

.works-card {
  min-width: 0;
}

/* 主タグの塗りつぶしをやめ、すべて同じ枠線にそろえる */
.wd-tags li.wd-tags__main {
  background: transparent;
  color: #35574A;
}

/* 上部（見出し・メイン画像・リード）の左右の余白を本文と同じにする */
.section--wd-head .section__inner {
  padding-left: 160px;
  padding-right: 160px;
}

@media (min-width: 1024px) and (max-width: 1366px) {
  .section--wd-head .section__inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1023px) {
  .section--wd-head .section__inner {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 767px) {
  .section--wd-head .section__inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}
/* 文字の大きさと行の高さを製品ページ（第3階層）の決まりにそろえる */
.wd-lead, .wd-voice__text {
  font-size: 16px;
  line-height: 2;
}

.wd-process__title {
  font-size: 18px;
}

.wd-process__text {
  font-size: 14px;
  line-height: 1.8;
}

.wd-ba__item figcaption {
  font-size: 14px;
  line-height: 1.8;
}

.wd-links a {
  font-size: 16px;
}

@media (max-width: 767px) {
  .wd-lead, .wd-voice__text {
    font-size: 15px;
    line-height: 2;
  }
  .wd-process__title {
    font-size: 16px;
  }
  .wd-links a {
    font-size: 15px;
  }
}
/* Before / After の列の間を製品ページの2列（48px）にそろえる */
.wd-ba {
  column-gap: 48px;
}

@media (max-width: 767px) {
  .wd-ba {
    column-gap: 0;
  }
}
/* 「制作の流れ」「製品・サービス」のボタンを中央にそろえる */
.wd-sub-cta {
  flex-wrap: wrap;
  justify-content: center;
}

/* 施工写真も製品ページと同じく拡大できるようにする（img に class="js-zoom" を付けたうえで、枠の幅いっぱいに出す） */
.wd-gallery .img-zoom-wrap {
  width: 100%;
}

/* 絞り込み・キーワード検索・クリア */
.works-tool {
  white-space: nowrap;
  flex-shrink: 0;
}

.works-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  display: none;
}

@media (max-width: 1023px) {
  .works-tools {
    flex-wrap: wrap;
  }
  .works-search {
    position: static;
    width: 100%;
    transform: none;
  }
  .works-search:not(.is-open) {
    display: none;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .works-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .works-tools {
    padding-top: 0;
  }
}
/* ============================================================
   9-12. 幅ごとの改行クラス（lb-* / u-nowrap-*）
   ============================================================ */
/* <br class="lb-sp"> はスマホ（375〜767px）、lb-tb はタブレット（768〜1023px）、lb-pc は PC（1024px〜）でだけ改行する（lb-pcm／lb-pcw は下）。
   クラスなしの <br> はすべての幅で改行する。374px 以下は lb-sp の改行を入れず、言葉の切れ目で自然に折り返す */
.lb-sp, .lb-tb, .lb-pc, .lb-pcm, .lb-pcw {
  display: none;
}

@media (min-width: 375px) and (max-width: 767px) {
  .lb-sp {
    display: inline;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .lb-tb {
    display: inline;
  }
}
@media (min-width: 1024px) {
  .lb-pc {
    display: inline;
  }
}
/* lb-pcm は PC の 1024〜1340px（社長メッセージの写真つきの段が写真の下で中央ぞろえになる幅）、lb-pcw は 1341px 以上でだけ改行する */
@media (min-width: 1024px) and (max-width: 1340px) {
  .lb-pcm {
    display: inline;
  }
}
@media (min-width: 1341px) {
  .lb-pcw {
    display: inline;
  }
}
/* 言葉の途中で折り返さない（<wbr> の所と句読点でだけ折り返す） */
.lb-k {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* lb-k-sp／lb-k-tb／lb-k-pc はそれぞれの幅でだけ効く */
@media (max-width: 767px) {
  .lb-k-sp {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .lb-k-tb {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 1024px) {
  .lb-k-pc {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
/* lb-k-sp375 は 375〜767px、lb-k-sp430 は 430〜767px でだけ、言葉の途中で折り返さない（それより狭い幅ではもとの折り返し方のまま） */
@media (min-width: 375px) and (max-width: 767px) {
  .lb-k-sp375 {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
@media (min-width: 430px) and (max-width: 767px) {
  .lb-k-sp430 {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}
/* 幅ごとの改行（さらに細かい版）：lb-sps はスマホの 375〜429px、lb-spl は 430〜767px、lb-tbs はタブレットの 768〜833px、lb-tbl は 834〜1023px、lb-pc1280 は 1280px 以上でだけ改行する
   ほかの改行のクラスと一緒に付いたときは、そちらの改行を優先する（:where で弱くしておく） */
:where(.lb-sps, .lb-spl, .lb-tbs, .lb-tbl, .lb-pc1280) {
  display: none;
}

@media (min-width: 375px) and (max-width: 429px) {
  .lb-sps {
    display: inline;
  }
}
@media (min-width: 430px) and (max-width: 767px) {
  .lb-spl {
    display: inline;
  }
}
@media (min-width: 768px) and (max-width: 833px) {
  .lb-tbs {
    display: inline;
  }
}
@media (min-width: 834px) and (max-width: 1023px) {
  .lb-tbl {
    display: inline;
  }
}
@media (min-width: 1280px) {
  .lb-pc1280 {
    display: inline;
  }
}
/* 中央ぞろえの理念の説明文：タブレット・PC では、1行に収まらないときだけ読点の後で改行する */
@media (min-width: 768px) {
  .u-nowrap-tb-pc {
    white-space: nowrap;
  }
  .u-nowrap-tb-pc wbr {
    display: none;
  }
}
/* ============================================================
   9-13. 製品ページ：文字入り画像の拡大表示（虫めがねボタン）
   ============================================================ */
.img-zoom-wrap {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.img-zoom-wrap > img {
  cursor: zoom-in;
}

.img-zoom-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(61, 58, 57, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: #3d3a39;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.img-zoom-btn svg {
  width: 16px;
  height: 16px;
}

.img-zoom-btn:hover, .img-zoom-btn:focus-visible {
  background: #fff;
  border-color: rgba(61, 58, 57, 0.5);
}

.img-zoom {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 12px 24px;
  background: rgba(30, 30, 30, 0.92);
}

.img-zoom[hidden] {
  display: none;
}

.img-zoom__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}

.img-zoom__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 44px;
  cursor: pointer;
}

/* 拡大ボタンを画像の外（右下の下）に出す：形は丸のまま */
.img-zoom-btn {
  position: static;
  margin: 8px 0 0 auto;
  background: #fff;
}

/* 拡大ボタンの枠：pd-set の組み方では左寄せ・下寄せを崩さない */
.pd-item__media .img-zoom-wrap {
  margin-inline: 0;
  flex: 0 1 auto;
  min-width: 0;
}

.pd-set[data-text="0"]:has(> .pd-item:only-child) .pd-item__media .img-zoom-wrap {
  margin-inline: auto;
}

.pd-item__media .img-zoom-wrap > img {
  max-width: 100%;
}

.pd-set[data-fit=height] .img-zoom-wrap {
  width: 100%;
}

.pd-spec__row--marks .img-zoom-wrap {
  margin-inline: 0;
}

/* 拡大マークが画像の右下から離れて見える図版（タイルカーペット「2種類のパイル」・ピタっとマット「軽量」）：画像の幅を％で決めていたため、幅を枠の側で決め、マークを画像の右下にそろえる */
.pd-figure--w85 .img-zoom-wrap {
  width: 85%;
}

.pd-figure--w85 .img-zoom-wrap > img {
  width: 100%;
  max-width: 100%;
}

.pd-figure:not(.pd-figure--w85):not(.pd-figure--full) .img-zoom-wrap {
  max-width: min(640px, 100%);
}

.pd-figure:not(.pd-figure--w85):not(.pd-figure--full) .img-zoom-wrap > img {
  max-width: 100%;
}

@media (max-width: 767px) {
  .pd-figure--w85 .img-zoom-wrap {
    width: 100%;
  }
}
/* ============================================================
   9-14. 製品ページ：組み方（pd-set / pd-item）
   ============================================================ */
/* 機械設備の機械名を【種類】の後ろで改行する */
.pd-machines__item-name {
  min-height: 2lh;
}

/* 「構造」はスマホで文字→画像の順にする */
@media (max-width: 767px) {
  .pd-block--structure .pd-block__head {
    margin-bottom: 32px;
  }
  .pd-block--structure .pd-cards {
    margin-top: 0;
  }
  .pd-block--structure .pd-card {
    display: flex;
    flex-direction: column;
  }
  .pd-block--structure .pd-card__image {
    order: 2;
  }
  .pd-block--structure .pd-card__title,
  .pd-block--structure .pd-card__caption {
    order: 1;
    margin-top: 0;
    margin-bottom: 12px;
  }
}
/* スマホの写真の下の説明を少し大きくする */
@media (max-width: 767px) {
  .pd-card__caption {
    font-size: 14px;
  }
}
/* スマホの説明文付きカードの間を詰める */
@media (max-width: 767px) {
  .pd-cards--wide {
    gap: 40px;
  }
}
.pd-set {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  column-gap: var(--gap-x, 80px);
  row-gap: 64px;
  margin-top: 40px;
}

.pd-block__text + .pd-set {
  margin-top: 40px;
}

.pd-set:has(> .pd-item:nth-child(2)) {
  --cols:2;
}

.pd-set:has(> .pd-item:nth-child(3):last-child), .pd-set:has(> .pd-item:nth-child(5)) {
  --cols:3;
  --gap-x:64px;
}

.pd-set[data-text=c], .pd-set:has(> .pd-item:only-child .pd-item__body) {
  --cols:1!important;
}

.pd-set > .pd-item:only-child:has(.pd-item__body) {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: none;
  grid-row: auto;
  column-gap: 80px;
  align-items: start;
}

.pd-set[data-text=c] > .pd-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto auto auto;
  grid-row: auto;
  column-gap: 80px;
}

.pd-set[data-text=c] .pd-item__body {
  display: contents;
}

.pd-set[data-text=c] .pd-item__title {
  grid-column: 1/-1;
  grid-row: 1;
}

.pd-set[data-text=c] .pd-item__text {
  grid-column: 1/-1;
  grid-row: 2;
  margin: 8px 0 24px;
}

.pd-set[data-text=c] .pd-item__media {
  grid-column: 1;
  grid-row: 3;
}

.pd-set[data-text=c] .pd-item__spec {
  grid-column: 2;
  grid-row: 3;
  align-self: start;
  margin-top: 0;
}

.pd-set[data-fit=height] {
  display: flex;
  gap: var(--gap-x, 80px);
  align-items: flex-start;
}

.pd-set[data-fit=height] > .pd-item {
  flex: var(--ar) 1 0;
  display: block;
  min-width: 0;
}

.pd-set[data-fit=height] .pd-item__media.is-figure img {
  width: 100%;
  max-width: none;
  max-height: none;
}

.pd-set[data-align=center] .pd-item__media.is-figure {
  align-items: center;
}

.pd-set[data-align=top] .pd-item__media.is-figure {
  align-items: flex-start;
}

.pd-item {
  margin: 0;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 0;
  align-content: start;
}

.pd-set[data-text="0"] > .pd-item {
  grid-row: auto;
  grid-template-rows: none;
}

.pd-item__media {
  margin: 0;
  min-width: 0;
}

.pd-item__media.is-photo {
  overflow: hidden;
}

.pd-item__media.is-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

.pd-item__media.is-figure {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.pd-item__media.is-figure img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.pd-set[data-text=name] .pd-item__media.is-figure {
  align-items: flex-start;
}

.pd-set:not([data-text=c]):not([data-fit]):has(> .pd-item:nth-child(3)) .pd-item__media.is-figure img {
  max-height: 240px;
}

.pd-set[data-text=c] .pd-item__media.is-figure {
  align-items: flex-start;
}

.pd-set[data-text=c] .pd-item__media.is-figure img {
  width: 100%;
  max-height: none;
}

.pd-set[data-text="0"] .pd-item__media.is-figure {
  justify-content: center;
}

.pd-set[data-text="0"]:has(> .pd-item:only-child) .pd-item__media.is-figure img {
  max-width: min(100%, 640px);
  max-height: none;
}

/* 構造（部位名）：PC は画像の下、スマホは画像の上 */
.pd-set[data-text=part] > .pd-item > .pd-item__media {
  grid-row: 1;
}

.pd-set[data-text=part] > .pd-item > .pd-name {
  grid-row: 2;
  margin: 12px 0 0;
  align-self: start;
}

/* 写真の下の「表面」「裏面」「側面」：PC（1024px 以上）だけ 18px に */
@media (min-width: 1024px) {
  .pd-set[data-text=part] > .pd-item > .pd-name {
    font-size: 18px;
    letter-spacing: 0.06em;
    padding-left: 20px;
  }
}
.pd-intro__wide {
  width: 100%;
  aspect-ratio: 5/2;
  overflow: hidden;
}

.pd-intro__wide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.pd-intro--wide .pd-intro__catch {
  margin: 40px 0 32px;
}

.pd-intro--wide .pd-intro__text {
  margin-top: 40px;
}

.pd-intro--wide {
  margin-top: 8px;
}

@media (max-width: 767px) {
  .pd-intro__wide {
    aspect-ratio: 16/9;
  }
  .pd-intro--wide .pd-intro__catch {
    margin: 24px 0;
  }
}
/* PC で左右に並べるものの間は 80px（サイン資機材の2列の一覧も） */
@media (min-width: 768px) {
  .pd-split {
    column-gap: 80px;
  }
}
@media (min-width: 768px) {
  .pd-set > .pd-item.is-small-img:only-child:has(.pd-item__body) {
    grid-template-columns: auto minmax(0, 1fr);
  }
}
.pd-item__media.pd-item__media--crop {
  aspect-ratio: var(--crop);
  overflow: hidden;
  width: 403px;
  max-width: 100%;
}

.pd-item__media.pd-item__media--crop img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  max-height: none;
}

@media (min-width: 768px) {
  .pd-item__media.is-mid {
    align-items: center !important;
  }
}
.pd-item__text.is-gap {
  margin-top: 1.78em !important;
}

@media (min-width: 768px) {
  .pd-intro__text p.pd-intro__p {
    margin: 0;
  }
  .pd-intro__text p.pd-intro__p + p.pd-intro__p {
    margin-top: 2em;
  }
}
@media (max-width: 767px) {
  .pd-intro__text p.pd-intro__p {
    display: inline;
    margin: 0;
  }
}
/* スマホ：冒頭の文章を、段落ごとに行頭から始める（段落の間は空けない） */
@media (max-width: 767px) {
  .pd-intro__text p.pd-intro__p {
    display: block;
  }
}
@media (min-width: 768px) {
  .pd-intro__p {
    margin: 0;
  }
  .pd-intro__p + .pd-intro__p {
    margin-top: 2em;
  }
}
@media (max-width: 767px) {
  .pd-intro__head {
    margin-top: 24px;
  }
  .pd-intro__head .pd-intro__catch {
    margin-top: 0;
  }
  .pd-intro__head .pd-intro__logo {
    margin: 0 0 24px !important;
  }
  .pd-intro__head .pd-intro__logo img {
    width: 220px !important;
    margin: 0 !important;
  }
  .pd-intro__p {
    display: inline;
  }
}
@media (min-width: 768px) {
  .pd-intro__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    column-gap: 80px;
    align-items: start;
    margin-top: 40px;
  }
  .pd-intro__head .pd-intro__catch {
    margin: 0;
  }
  .pd-intro__head .pd-intro__logo img {
    width: 100%;
    display: block;
  }
  .pd-intro__text--full {
    margin-top: 40px;
    max-width: none;
  }
}
/* PC の統一（監査で見つけた差） */
@media (min-width: 768px) {
  .pd-block__head + .pd-marks {
    margin-top: 40px;
  }
  .pd-intro__text > p + p {
    margin-top: 2em;
  }
  .pd-block__head + .pd-caution {
    margin-top: 40px;
  }
}
@media (max-width: 1279px) {
  .pd-intro__head {
    display: flex;
    flex-direction: column;
  }
  .pd-intro__head .pd-intro__logo {
    order: -1;
    margin: 0 0 32px;
  }
  .pd-intro__head .pd-intro__logo img {
    width: 360px;
    max-width: 100%;
  }
}
/* 768〜1279px：横並びの間を少し詰める */
@media (min-width: 768px) and (max-width: 1279px) {
  .pd-set {
    --gap-x:64px;
  }
  .pd-set:has(> .pd-item:nth-child(3):last-child), .pd-set:has(> .pd-item:nth-child(5)) {
    --gap-x:48px;
  }
  .pd-set > .pd-item:only-child:has(.pd-item__body), .pd-set[data-text=c] > .pd-item {
    column-gap: 64px;
  }
  .pd-pair {
    column-gap: 64px !important;
  }
  .pd-split {
    column-gap: 64px;
  }
  .pd-intro {
    column-gap: 64px !important;
  }
}
/* 768〜1023px：冒頭の文が写真より大きく長くなるページは縦並び */
@media (min-width: 768px) and (max-width: 1023px) {
  .pd-intro.pd-intro--tb-stack {
    display: block !important;
  }
  .pd-intro.pd-intro--tb-stack .pd-intro__text {
    margin-top: 40px !important;
  }
  .pd-intro:not(.pd-intro--stacked-pc):not(.pd-intro--tb-stack) .pd-intro__catch + .pd-intro__text {
    margin-top: 16px !important;
  }
  .pd-intro.pd-intro--tb-stack .pd-intro__image {
    width: 100% !important;
    max-width: none !important;
    margin-top: 40px;
    aspect-ratio: 3/2;
    overflow: hidden;
  }
  .pd-intro.pd-intro--tb-stack .pd-intro__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
}
/* 768〜1023px：画像と文の2カラムは間を 40px に */
@media (min-width: 768px) and (max-width: 1023px) {
  .pd-intro {
    column-gap: 40px !important;
  }
  .pd-set > .pd-item:only-child:has(.pd-item__body), .pd-set[data-text=c] > .pd-item {
    column-gap: 40px !important;
  }
  .pd-set, .pd-set:has(> .pd-item:nth-child(3):last-child), .pd-set:has(> .pd-item:nth-child(5)) {
    --gap-x:40px!important;
  }
  .pd-pair, .pd-split {
    column-gap: 40px !important;
  }
  .pd-item__spec-sub {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .pd-item__spec-sub > span:first-child {
    margin-top: 4px;
  }
  .pd-item__text {
    font-size: 16px !important;
  }
}
/* 768〜1023px：文が短い横並び（優れた弾力性）は縦並びに */
@media (min-width: 768px) and (max-width: 1023px) {
  .pd-set > .pd-item.is-small-img:only-child:has(.pd-item__body) {
    display: block !important;
  }
  .pd-set > .pd-item.is-small-img:only-child .pd-item__body {
    margin-top: 24px !important;
  }
}
/* ラグタイル コンフォート：「製品について」の画像2枚を、2カラムのとき（768px 以上）だけ上下の中央にそろえる */
@media (min-width: 768px) {
  .pd-set.is-center-2col .pd-item__media.is-figure {
    align-items: center;
  }
}
@media (max-width: 767px) {
  .pd-split .pd-list li, .pd-split .pd-block__text {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
}
@media (max-width: 767px) {
  .pd-figure.pd-figure--w85 {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .pd-figure.pd-figure--w85 img {
    width: 100% !important;
    max-width: none !important;
  }
}
@media (max-width: 767px) {
  .pd-intro__catch {
    font-size: 20px !important;
  }
}
/* スマホの統一（監査で見つけた差） */
@media (max-width: 767px) {
  .pd-set, .pd-block__text + .pd-set, .pd-pair .pd-set, .pd-figure, .pd-spec, .pd-block__head + .pd-marks {
    margin-top: 24px !important;
  }
  .pd-block__text + .pd-figure {
    margin-top: 24px !important;
  }
  .pd-intro--wide .pd-intro__catch {
    margin-top: 32px !important;
    margin-bottom: 24px !important;
  }
  .pd-intro--wide .pd-intro__text {
    margin-top: 24px !important;
  }
  .pd-intro__head {
    margin-top: 32px !important;
  }
}
@media (max-width: 767px) {
  .pd-set[data-fit=height] img[src*=tc-sample-chip] {
    max-width: 477px !important;
  }
}
/* 小さなブロックを2つ横に */
.pd-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 80px;
  align-items: start;
}

.pd-pair .pd-set {
  margin-top: 40px;
}

.pd-pair .pd-item__media.is-figure img {
  max-height: none;
  width: 100%;
}

/* 文字組 */
.pd-label {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  border-left: 1px solid #35574A;
  padding-left: 16px;
  align-self: start;
}

.pd-name {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  border-left: 1px solid #35574A;
  padding-left: 16px;
  align-self: end;
}

.pd-name.is-split {
  border-left: 0;
  padding-left: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.6;
  margin-bottom: 24px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.pd-kind {
  display: block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
  color: #35574A;
}

.pd-model {
  white-space: nowrap;
}

.pd-item__body {
  margin-top: 24px;
  min-width: 0;
}

.pd-item.is-long > .pd-item__body {
  margin-top: 40px;
}

.pd-item.is-long .pd-item__text {
  margin-top: 12px;
}

.pd-set > .pd-item:only-child .pd-item__body {
  margin-top: 0;
}

.pd-set > .pd-item:only-child .pd-item__body > .pd-item__text:first-child {
  margin-top: 0;
}

.pd-set > .pd-item:only-child:has(.pd-item__body) .pd-item__media.is-figure {
  align-items: flex-start;
}

.pd-set > .pd-item:only-child:has(.pd-item__body) .pd-item__media.is-figure img {
  width: 100%;
  max-height: none;
}

.pd-item__title {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: #35574A;
}

.pd-item__text {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.78;
  letter-spacing: 0.1em;
}

.pd-item__spec {
  margin: 16px 0 0;
  padding: 0;
  border-top: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.pd-item__spec dt, .pd-item__spec dd {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #D5D7DA;
}

.pd-item__spec dt:nth-last-child(2), .pd-item__spec dd:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-item__spec dt:first-child, .pd-item__spec dt:first-child + dd {
  padding-top: 0;
}

.pd-item__spec dt {
  color: #35574A;
  font-weight: 500;
  padding-right: 24px;
  white-space: nowrap;
}

.pd-item__spec-sub {
  display: grid;
  grid-template-columns: 5em 1fr;
  gap: 0 8px;
}

.pd-after {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.pd-after__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  letter-spacing: 0.08em;
  color: #6B6866;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .pd-set, .pd-set:has(> .pd-item:nth-child(3):last-child), .pd-set:has(> .pd-item:nth-child(5)) {
    --cols:1!important;
    --gap-x:24px!important;
  }
  .pd-set {
    row-gap: 40px;
    margin-top: 28px;
  }
  .pd-set[data-text=b], .pd-set[data-text=c] {
    row-gap: 48px;
  }
  .pd-set[data-text=name]:has(> .pd-item:nth-child(4)) {
    --cols:2!important;
    row-gap: 32px;
  }
  .pd-set > .pd-item:only-child:has(.pd-item__body) {
    display: block;
  }
  .pd-set[data-text=c] > .pd-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }
  .pd-set[data-text=c] .pd-item__media {
    grid-column: 1;
    grid-row: 3;
  }
  .pd-set[data-text=c] .pd-item__spec {
    grid-column: 1;
    grid-row: 4;
    margin-top: 16px;
  }
  .pd-set[data-text=c] .pd-item__text {
    margin: 8px 0 16px;
  }
  .pd-item:only-child .pd-item__body, .pd-set > .pd-item:only-child .pd-item__body {
    margin-top: 16px;
  }
  .pd-item__body {
    margin-top: 16px;
  }
  .pd-item.is-long > .pd-item__body {
    margin-top: 24px;
  }
  .pd-item {
    grid-row: auto !important;
    grid-template-rows: none;
    display: flex;
    flex-direction: column;
  }
  .pd-item__media.is-figure img {
    max-height: 240px;
  }
  .pd-item__title {
    font-size: 16px;
  }
  .pd-item__text {
    font-size: 15px;
  }
  .pd-item__spec {
    font-size: 14px;
  }
  .pd-item__spec-sub {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pd-item__spec-sub > span:first-child {
    margin-top: 4px;
  }
  .pd-name {
    font-size: 14px;
    align-self: stretch;
    padding-left: 12px;
  }
  .pd-name.is-split {
    font-size: 14px;
    padding-left: 0;
    margin-bottom: 16px;
  }
  .pd-kind {
    font-size: 12px;
  }
  .pd-maker, .pd-model {
    display: block;
  }
  .pd-label {
    padding-left: 12px;
  }
  .pd-set[data-text=part] > .pd-item > .pd-name {
    order: -1;
    margin: 0 0 12px;
  }
  .pd-set[data-fit=height] {
    flex-direction: column;
    gap: 28px;
  }
  .pd-set[data-fit=height] > .pd-item {
    flex: none;
    width: 100%;
  }
  .pd-pair {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 56px;
  }
  .pd-after {
    margin-top: 40px;
    gap: 20px;
  }
}
/* ============================================================
   9-15. 製品ページ：製品仕様表（pd-spec）
   ============================================================ */
/* GAマットの仕様カードと同じ見た目 */
.pd-spec.pd-spec--lined {
  grid-template-columns: minmax(0, 12em) minmax(0, 1fr);
  column-gap: 0;
  border-top: 0;
  padding-top: 0;
}

.pd-spec.pd-spec--lined .pd-spec__row:last-child dt, .pd-spec.pd-spec--lined .pd-spec__row:last-child dd {
  border-bottom: 0;
  padding-bottom: 0;
}

.pd-spec.pd-spec--lined .pd-spec__title {
  grid-column: 1/-1;
  margin: 0;
  padding: 0 0 8px;
  border-bottom: 1px solid #D5D7DA;
}

.pd-spec.pd-spec--lined dt, .pd-spec.pd-spec--lined dd {
  padding: 12px 0;
  border-bottom: 1px solid #D5D7DA;
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.pd-spec.pd-spec--lined dt {
  color: #35574A;
  font-weight: 500;
  padding-right: 24px;
}

@media (max-width: 767px) {
  .pd-spec.pd-spec--lined {
    grid-template-columns: minmax(0, 7em) minmax(0, 1fr);
    column-gap: 0;
  }
  .pd-spec.pd-spec--lined dt {
    padding-right: 12px;
  }
  .pd-spec.pd-spec--lined dt, .pd-spec.pd-spec--lined dd {
    font-size: 14px;
    padding: 10px 0;
  }
}
/* 機能性マークの行（表の中）：マークの並び・注記の位置を他の仕様行と合わせる */
.pd-spec__row--marks dd .pd-marks__row {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.pd-spec__row--marks dd .pd-marks__row img {
  width: auto !important;
  height: 72px !important;
  max-width: none !important;
  display: block;
}

.pd-spec__row--marks dd .pd-marks__note {
  margin-top: 8px;
}

.pd-spec__row--marks img.mark-kinou {
  display: block;
  width: 422px !important;
  max-width: 100% !important;
  height: auto !important;
  margin-top: 4px;
}

@media (max-width: 767px) {
  .pd-spec.pd-spec--lined .pd-spec__row--marks dt, .pd-spec.pd-spec--lined .pd-spec__row--marks dd {
    grid-column: 1/-1;
  }
  .pd-spec.pd-spec--lined .pd-spec__row--marks dt {
    border-bottom: 0;
    padding-bottom: 4px;
  }
  .pd-spec.pd-spec--lined .pd-spec__row--marks dd {
    padding-top: 0;
  }
  .pd-spec__row--marks img.mark-kinou {
    width: 100% !important;
  }
}
/* 製品仕様の中の「項目：内容」を GAマットの仕様と同じ組み方に */
.pd-spec dd.pd-spec__subs {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  align-content: start;
}

.pd-spec dd.pd-spec__subs .pd-spec__k {
  color: #6B6866;
}

.pd-spec dd.pd-spec__subs .pd-spec__n {
  grid-column: 1/-1;
  margin-top: 4px;
}

.pd-spec dd.pd-spec__subs .pd-spec__n:has(wbr), .pd-spec dd:has(wbr) {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.pd-spec dd, .pd-item__spec dd, .pd-marks__note {
  word-break: auto-phrase;
  text-wrap: pretty;
}

@media (max-width: 767px) {
  .pd-spec dd.pd-spec__subs {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }
  .pd-spec dd.pd-spec__subs .pd-spec__k {
    margin-top: 6px;
  }
  .pd-spec dd.pd-spec__subs .pd-spec__k:first-child {
    margin-top: 0;
  }
}
/* ============================================================
   9-16. 製品ページ：機能性マーク（pd-marks）
   ============================================================ */
/* マークを横に並べ、防炎マークの説明は下に注記で出す */
.pd-marks__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

.pd-marks__row img {
  display: block;
  width: auto;
  height: 72px;
}

.pd-marks__note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 767px) {
  .pd-marks__row img {
    height: 72px;
  }
}
/* ============================================================
   9-17. 製品ページ：データ作成時の注意点リンク（#dataguide-link）
   ============================================================ */
/* 「データ作成時の注意点」が単独セクションになっているページ（玄関マット・
   クッションカーペット・ピタっとマット）は、前のセクションの下パディングと
   このセクションの上パディング、.pd-after 自身の margin-top が重なって
   上の余白が広くなりすぎるため、ここだけ詰める */
#dataguide-link.section--pd .section__inner {
  padding-top: 32px;
}

#dataguide-link .pd-after {
  margin-top: 0;
}

@media (max-width: 1023px) {
  #dataguide-link.section--pd .section__inner {
    padding-top: 24px;
  }
}
@media (max-width: 767px) {
  #dataguide-link.section--pd .section__inner {
    padding-top: 16px;
  }
}
