/* ================================================================
   Xtech WordPress Theme — Main Stylesheet
   Next.js デザインからの移植
   ================================================================ */

/* ── CSS変数（デザイントークン） ─────────────────────────── */
:root {
  --font-sans:          "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --font-yugothic:      "Yu Gothic Medium", "Yu Gothic", YuGothic, sans-serif;
  --font-segoe-light:   "Segoe UI Semilight", "Segoe UI", system-ui, sans-serif;

  --color-black:        #212122;
  --color-white:        #fff;
  --color-gray-mid:     #808080;
  --color-gray-light:   #dcdcdc;

  --header-height:      80px;
  --container-max:      80rem;   /* 1280px */
  --container-px:       3rem;    /* 48px */
  --container-px-sm:    1.5rem;  /* 24px */
}

/* ── リセット＆ベース ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* ── プリローダー ──────────────────────────────────────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  pointer-events: all;
  background: #000;
}

.preloader__top,
.preloader__bottom {
  position: absolute;
  left: 0;
  right: 0;
  background: #fff;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
/* 2px 重ねてサブピクセルの隙間を完全に消す */
.preloader__top    { top: 0;    height: calc(50% + 2px); }
.preloader__bottom { bottom: 0; height: calc(50% + 2px); }

.preloader.is-exiting .preloader__top    { transform: translateY(-100%); }
.preloader.is-exiting .preloader__bottom { transform: translateY(100%); }

.preloader__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.35s ease-in;
}
.preloader.is-exiting .preloader__content { opacity: 0; }

.preloader__line {
  width: 1px;
  height: 0;
  background: rgba(33,33,34,.2);
  transition: height 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.preloader__line--top  { transform-origin: bottom; transition-delay: 0s; }
.preloader__line--bottom { transform-origin: top; transition-delay: 0.1s; }
.preloader.is-showing .preloader__line { height: 52px; }

.preloader__logo {
  padding: 1.5rem 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s ease-out 0.2s, transform 1s ease-out 0.2s;
}
.preloader.is-showing .preloader__logo {
  opacity: 1;
  transform: scale(1);
}
.preloader__logo img {
  width: 8rem;
  height: auto;
}
@media (min-width: 768px) { .preloader__logo img { width: 10rem; } }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

address { font-style: normal; }

/* ── コンテナ ─────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

@media (max-width: 1023px) {
  .container { padding-inline: var(--container-px-sm); }
}

/* ================================================================
   ヘッダー
   ================================================================ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-height);
  z-index: 100;
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

/* トップページのヒーロー上：透明 + プリローダー中は非表示（原サイト: !isStarted ? 'hidden'） */
.site-header--front {
  background-color: transparent;
  opacity: 0;
  pointer-events: none;
}
body.hero-started .site-header--front {
  opacity: 1;
  pointer-events: auto;
}

/* スクロール後 / トップ以外：黒半透明 */
.site-header--scrolled {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ */
.site-header__logo {
  display: block;
  width: 48px;
  flex-shrink: 0;
}

.site-header__logo img { width: 100%; }


/* PC ナビ */
.site-header__nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-header__logo { display: block; }
  .logo-black { display: none; }

  .site-header__nav { display: block; }

  .site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  /* スクロール後のみ HOME を非表示 */
  .site-header--scrolled .site-header__menu .menu-item-home { display: none; }

  /* スクロール後: ナビ全体は hover で link opacity を変えない */
  .site-header__menu .nav-link:hover { opacity: 1; }

  /* スクロール後: 非アクティブは JP text を opacity 0.8、アクティブは 1.0 */
  .site-header--scrolled .site-header__menu .nav-link .nav-label-jp { opacity: 0.8; }
  .site-header--scrolled .site-header__menu .menu-item.current-menu-item .nav-link .nav-label-jp { opacity: 1; }

  /* スクロール後: hover → JP text を white/50 */
  .site-header--scrolled .site-header__menu .nav-link:hover .nav-label-jp {
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
  }

  /* スクロール後: EN は white/40 */
  .site-header--scrolled .site-header__menu .nav-label-en {
    color: rgba(255, 255, 255, 0.4);
  }

  /* ヒーロー時: ロゴ非表示、ナビが full-width で justify-around */
  .site-header--front .site-header__logo { display: none; }
  .site-header--front .site-header__inner { justify-content: center; }
  .site-header--front .site-header__nav { width: 100%; }
  .site-header--front .site-header__menu {
    justify-content: space-around;
    gap: 0;
    width: 100%;
  }

  /* ヒーロー時: hover → JP text を white/60 */
  .site-header--front .site-header__menu .nav-link:hover .nav-label-jp {
    color: rgba(255, 255, 255, 0.6);
  }

  /* ナビ入場アニメーション */
  .site-header--front .site-header__menu > li {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  body.hero-started .site-header--front .site-header__menu > li {
    opacity: 1;
    transform: none;
  }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(1)  { transition-delay: 0.20s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(2)  { transition-delay: 0.35s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(3)  { transition-delay: 0.50s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(4)  { transition-delay: 0.65s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(5)  { transition-delay: 0.80s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(6)  { transition-delay: 0.95s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(7)  { transition-delay: 1.10s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(8)  { transition-delay: 1.25s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(9)  { transition-delay: 1.40s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(10) { transition-delay: 1.55s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(11) { transition-delay: 1.70s; }
  body.hero-started .site-header--front .site-header__menu > li:nth-child(12) { transition-delay: 1.85s; }
}

@media (min-width: 1280px) {
  .site-header--scrolled .site-header__menu { gap: 4rem; }
}

/* ナビリンク（共通） */
.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.3s;
  outline: none;
}

.nav-link:hover { opacity: 0.5; }
.nav-link:focus-visible { outline: 1px solid rgba(255,255,255,0.4); outline-offset: 4px; border-radius: 2px; }

.nav-label-jp {
  font-family: var(--font-yugothic); /* ヘッダーは font-yugothic（フッター/ドロワーは個別上書き） */
  font-size: 13px;
  letter-spacing: 0.05em; /* tracking-wider */
  color: var(--color-white);
  line-height: 1.2;
}

.nav-label-en {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* アクティブ */
.menu-item.current-menu-item .nav-link { opacity: 1; }

/* モバイルMENUボタン */
.site-header__menu-toggle {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
}

.menu-toggle__label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(0, 0, 0, 0.7);
}

/* トップページ透明時はMENUボタン非表示（PCではどうせ非表示） */
@media (min-width: 1024px) {
  .site-header__menu-toggle { display: none; }
}

/* モバイルヘッダーの背景調整 */
@media (max-width: 1023px) {
  .site-header--scrolled {
    background-color: rgba(220, 220, 220, 0.8);
  }

  /* タブレット/モバイル: ロゴは黒白切り替え */
  .logo-black { display: none; }
  .site-header--scrolled .logo-black { display: block; }
  .site-header--scrolled .logo-white { display: none; }

  .site-header--front {
    background-color: transparent;
  }

  /* タブレット/モバイル: ヒーロー時はロゴ非表示 */
  .site-header--front .site-header__logo {
    display: none;
  }

  /* フロントページの透明ヘッダーではMENUボタンを非表示 */
  .site-header--front .site-header__menu-toggle {
    display: none;
  }
}

/* ================================================================
   ドロワーメニュー
   ================================================================ */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  /* 閉じるとき: パネルのスライドアウト(0.4s)が終わってから visibility を hidden にする */
  transition: visibility 0s 0.4s;
}

.menu-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
  /* 開くとき: 即座に visible にする */
  transition: visibility 0s 0s;
}

.menu-drawer__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-drawer.is-open .menu-drawer__overlay { opacity: 1; }

.menu-drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: 100%;
  max-width: 480px;
  background-color: var(--color-black);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (min-width: 768px) {
  .menu-drawer__panel { padding: 4rem; }
}

.menu-drawer.is-open .menu-drawer__panel { transform: translateX(0); }

/* CLOSEボタン */
.menu-drawer__close {
  position: absolute;
  inset-block-start: 2rem;
  inset-inline-end: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.menu-drawer__close:hover { color: var(--color-white); }

@media (min-width: 768px) {
  .menu-drawer__close {
    inset-block-start: 3rem;
    inset-inline-end: 3rem;
  }
}

.menu-drawer__close-label {
  font-family: var(--font-sans);
  font-size: 10px; /* text-[10px] */
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .menu-drawer__close-label { font-size: 14px; } /* md:text-sm */
}

.menu-drawer__close-icon {
  width: 2rem;   /* w-8 = 32px */
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.menu-drawer__close-icon svg {
  transition: transform 0.3s;
}

.menu-drawer__close:hover .menu-drawer__close-icon {
  border-color: rgba(255, 255, 255, 0.6);
}

.menu-drawer__close:hover .menu-drawer__close-icon svg {
  transform: rotate(90deg);
}

/* ドロワーナビ */
.menu-drawer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  counter-reset: drawer-item;
}

/* ── ナビ項目: 閉じている間は右にオフセット（高速でリセット） */
.menu-drawer__menu .menu-item {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

/* ── 開いたとき: 右→左へスタガーフェードイン */
.menu-drawer.is-open .menu-drawer__menu .menu-item {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(1)  { transition-delay: 0.15s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(2)  { transition-delay: 0.22s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(3)  { transition-delay: 0.29s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(4)  { transition-delay: 0.36s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(5)  { transition-delay: 0.43s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(6)  { transition-delay: 0.50s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(7)  { transition-delay: 0.57s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(8)  { transition-delay: 0.64s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(9)  { transition-delay: 0.71s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(10) { transition-delay: 0.78s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(11) { transition-delay: 0.85s; }
.menu-drawer.is-open .menu-drawer__menu .menu-item:nth-child(12) { transition-delay: 0.92s; }

@media (min-width: 768px) {
  .menu-drawer__menu { gap: 2rem; }
}

.menu-drawer__menu .menu-item { counter-increment: drawer-item; }

.menu-drawer__menu .nav-link {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 0 1rem;
}

.menu-drawer__menu .nav-link::before {
  content: "0" counter(drawer-item);
  font-family: monospace;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  grid-row: 1;
  grid-column: 1;
  padding-top: 6px;
}

.menu-drawer__menu .nav-label-jp {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.2em; /* tracking-[0.2em] */
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
  grid-row: 1;
  grid-column: 2;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .menu-drawer__menu .nav-label-jp { font-size: 24px; }
}

.menu-drawer__menu .nav-label-en {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  grid-row: 2;
  grid-column: 2;
}

.menu-drawer__menu .nav-link:hover .nav-label-jp { color: var(--color-white); }

.menu-drawer__menu .menu-item.current-menu-item .nav-link .nav-label-jp {
  color: var(--color-white);
}

/* 現在ページ：番号を白く（active = text-white） */
.menu-drawer__menu .menu-item.current-menu-item .nav-link::before {
  color: white;
}

/* 現在ページ：JP テキストと同じ上下中央に白いバーを配置（flex + align-items: center） */
.menu-drawer__menu .menu-item.current-menu-item .nav-link .nav-label-jp {
  display: flex;
  align-items: center; /* bar を JP テキスト中央に揃える */
  gap: 0.75rem;        /* gap-3 */
}
.menu-drawer__menu .menu-item.current-menu-item .nav-link .nav-label-jp::before {
  content: '';
  flex-shrink: 0;
  width: 1.5rem;  /* w-6 = 24px */
  height: 1.5px;
  background: white;
}

/* EN: opacity-60、bar + gap 分インデントして JP テキストに揃える */
.menu-drawer__menu .menu-item.current-menu-item .nav-label-en {
  color: white;
  opacity: 0.6;
  padding-left: calc(1.5rem + 0.75rem); /* bar(w-6) + gap-3 */
}

/* ホバー時：EN も opacity-60 に */
.menu-drawer__menu .nav-link:hover .nav-label-en { opacity: 0.6; }
.menu-drawer__menu .nav-link:hover::before { color: rgba(255, 255, 255, 0.6); }

/* ================================================================
   フッター
   ================================================================ */
.site-footer {
  position: relative;
  padding-block: 2.5rem 2rem;
  padding-inline-start: 1rem;
  padding-inline-end: 2rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-footer { padding-inline-start: 1.5rem; padding-inline-end: 3rem; min-height: 65vh; }
}

@media (min-width: 1024px) {
  .site-footer { padding-block: 5rem 3rem; padding-inline: 0; min-height: 40vh; }
}

/* フッター背景 */
.site-footer__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.site-footer__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px);
  transform: scale(1.1);
}

.site-footer__bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(128, 128, 128, 0.6);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding-inline: 0;
}

/* モバイル/タブレット: container の margin-inline:auto を無効化して左寄せ + 左パディング */
@media (max-width: 1023px) {
  .site-footer__inner { margin-inline-start: 0; padding-inline-start: 1.5rem; }
}

@media (min-width: 1024px) {
  .site-footer__inner {
    width: 100%;
    padding-inline: 4rem;
  }
}

@media (min-width: 1280px) {
  .site-footer__inner {
    padding-inline: 6rem;
  }
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .site-footer__top {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
  }
}

/* フッターナビ */
.site-footer__nav { display: block; }

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .site-footer__menu {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 1.25rem 4rem;
  }
}

.site-footer__menu .nav-link {
  align-items: flex-start;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.site-footer__menu .nav-link:hover { opacity: 1; }

.site-footer__menu .menu-item.current-menu-item .nav-link { opacity: 1; }

/* フッター: カレントページに白いバー（元サイト準拠: w-4 h-[1.5px]、JP+EN の左に独立配置） */
.site-footer__menu .menu-item.current-menu-item .nav-link {
  display: grid;
  grid-template-columns: 1rem auto;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  align-items: center;
}
.site-footer__menu .menu-item.current-menu-item .nav-link::before {
  content: '';
  grid-column: 1;
  grid-row: 1 / 3;
  width: 1rem;
  height: 1.5px;
  background: white;
  align-self: center;
}
.site-footer__menu .menu-item.current-menu-item .nav-label-jp {
  grid-column: 2;
  grid-row: 1;
}
.site-footer__menu .menu-item.current-menu-item .nav-label-en {
  grid-column: 2;
  grid-row: 2;
}

.site-footer__menu .nav-label-jp {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
}
@media (min-width: 768px) {
  .site-footer__menu .nav-label-jp { font-size: 18px; }
}
@media (min-width: 1024px) {
  .site-footer__menu .nav-label-jp { font-size: 13px; }
}

.site-footer__menu .nav-label-en {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  color: white;
  opacity: 0.6; /* tracking-wider + opacity-60（元サイト準拠） */
  letter-spacing: 0.05em;
}
@media (min-width: 768px) {
  .site-footer__menu .nav-label-en { font-size: 12px; }
}
@media (min-width: 1024px) {
  .site-footer__menu .nav-label-en { font-size: 9px; }
}

/* フッターナビ：スタガー遅延 */
.site-footer__menu li:nth-child(1).js-reveal  { transition-delay: 0s; }
.site-footer__menu li:nth-child(2).js-reveal  { transition-delay: 0.1s; }
.site-footer__menu li:nth-child(3).js-reveal  { transition-delay: 0.2s; }
.site-footer__menu li:nth-child(4).js-reveal  { transition-delay: 0.3s; }
.site-footer__menu li:nth-child(5).js-reveal  { transition-delay: 0.4s; }
.site-footer__menu li:nth-child(6).js-reveal  { transition-delay: 0.5s; }
.site-footer__menu li:nth-child(7).js-reveal  { transition-delay: 0.6s; }
.site-footer__menu li:nth-child(8).js-reveal  { transition-delay: 0.7s; }
.site-footer__menu li:nth-child(9).js-reveal  { transition-delay: 0.8s; }
.site-footer__menu li:nth-child(10).js-reveal { transition-delay: 0.9s; }
.site-footer__menu li:nth-child(11).js-reveal { transition-delay: 1.0s; }
.site-footer__menu li:nth-child(12).js-reveal { transition-delay: 1.1s; }

/* フッター会社情報 */
.site-footer__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .site-footer__info { gap: 2rem; }
}

.site-footer__logo { display: block; width: 80px; }

@media (min-width: 1024px) {
  .site-footer__logo { width: 56px; }
}

.site-footer__address {
  font-family: var(--font-yugothic);
  font-size: 14px;        /* text-sm */
  line-height: 1.625;     /* leading-relaxed */
  letter-spacing: 0.05em; /* tracking-wider */
  color: var(--color-white);
}
@media (min-width: 768px) {
  .site-footer__address { font-size: 16px; } /* text-base */
}
@media (min-width: 1024px) {
  .site-footer__address { font-size: 13px; }
}

.site-footer__address p { margin: 0 0 0.25rem; }

.site-footer__address a { color: inherit; }

/* フッター下部：コピーライト中央揃え */
.site-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 2.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer__bottom { margin-top: 4rem; }
}
@media (min-width: 1024px) {
  .site-footer__bottom { margin-top: 4rem; }
}

.site-footer__copyright {
  font-family: var(--font-segoe-light);
  font-size: 14px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
@media (min-width: 768px) {
  .site-footer__copyright { font-size: 16px; } /* md:text-base */
}
@media (min-width: 1024px) {
  .site-footer__copyright { font-size: 11px; } /* lg:text-[11px] */
}

/* ページトップへ戻るボタン（fixed: aboutセクション到達後に表示） */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  width: 2.75rem;   /* w-11 = 44px */
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: #212122;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
  /* 入退場: opacity + translateY(10px) */
  opacity: 0;
  transform: translateY(10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
}
.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0s;
}
.scroll-top:hover { opacity: 0.7; }
@media (min-width: 768px) {
  .scroll-top { bottom: 2.5rem; right: 2.5rem; }
}
/* ドロワー展開中はページトップボタンをドロワー背面に隠す */
body:has(.menu-drawer.is-open) .scroll-top {
  z-index: 100;
  pointer-events: none;
}

/* ================================================================
   コンテンツ共通
   ================================================================ */
.site-main {
  min-height: 60vh;
}

.page-content {
  padding-block: 4rem;
}

.page-title {
  font-family: var(--font-yugothic);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 0 0 2rem;
}

/* ================================================================
   投稿リスト（archive.php / index.php）
   ================================================================ */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-list--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.post-list__link {
  display: flex;
  gap: 1.5rem;
  transition: opacity 0.3s;
}

.post-list__link:hover { opacity: 0.7; }

.post-list__link--card {
  flex-direction: column;
  gap: 1rem;
}

.post-list__thumb {
  flex-shrink: 0;
  width: 120px;
  aspect-ratio: 3/2;
  overflow: hidden;
  background-color: rgba(255,255,255,0.1);
}

.post-list__thumb--placeholder {
  background-color: rgba(255,255,255,0.08);
}

.post-list__link--card .post-list__thumb {
  width: 100%;
  aspect-ratio: 3/2;
}

.post-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-list__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.post-list__date {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
}

.post-list__title {
  font-family: var(--font-yugothic);
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.05em;
}

.post-list__excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ================================================================
   シングル記事
   ================================================================ */
.single-article { max-width: 760px; margin-inline: auto; }

.single-article__header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.single-article__date {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.entry-content {
  line-height: 1.8;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-yugothic);
  margin-top: 2.5em;
  margin-bottom: 1em;
  letter-spacing: 0.05em;
}

.entry-content p { margin-bottom: 1.5em; }

.entry-content img {
  max-width: 100%;
  height: auto;
  margin-block: 1.5rem;
}

/* ページナビ */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.post-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
  letter-spacing: 0.05em;
}

.post-nav a:hover { color: var(--color-white); }

/* ================================================================
   ページネーション
   ================================================================ */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

/* ================================================================
   その他ユーティリティ
   ================================================================ */
.no-posts {
  color: #212122;
  text-align: center;
  padding: 4rem 0;
  font-size: 1.125rem;
}

/* スクリーンリーダー専用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* WordPress アライン */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-inline: auto; margin-bottom: 1rem; }

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

/* ── PageHero（下層ページヒーロー 新デザイン） ──────────────── */
.page-hero {
  position: relative;
  height: 40vh;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
}
@media (min-width: 768px) { .page-hero { height: 44vh; padding-top: 6rem; } }
@media (min-width: 1024px) { .page-hero { height: 50vh; padding-top: 8rem; } }

.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}
.page-hero__content {
  position: relative;
  z-index: 10;
  padding: 0 1rem;
}
.page-hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
@media (min-width: 768px) { .page-hero__text { gap: .5rem; } }
@media (min-width: 1024px) { .page-hero__text { gap: .75rem; } }

.page-hero__title-jp {
  font-family: var(--font-yugothic);
  font-weight: 500;
  font-size: 2.5rem;
  color: #fff;
  letter-spacing: .1em;
  line-height: 1.1;
  margin: 0;
}
@media (min-width: 768px) { .page-hero__title-jp { font-size: 3rem; } }
@media (min-width: 1024px) { .page-hero__title-jp { font-size: 3.25rem; } }

.page-hero__title-en {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: .3em;
  line-height: 1;
  text-transform: uppercase;
}
@media (min-width: 768px) { .page-hero__title-en { font-size: 2rem; letter-spacing: .35em; } }
@media (min-width: 1024px) { .page-hero__title-en { font-size: 1.625rem; } }

/* ── 下層ページ共通レイアウト ───────────────────────────────── */
.lower-page-bg {
  background: #dcdcdc;
}

.inner-section {
  padding: 1.5rem 1.5rem 5rem;
  font-family: var(--font-yugothic);
  color: #212122;
}
@media (min-width: 768px) { .inner-section { padding: 1.5rem 6rem 5rem; } }
@media (min-width: 1024px) { .inner-section { padding: 1.5rem 0 5rem; } }

.inner-section__container {
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .inner-section__container { padding: 0 4rem; }
}
.inner-section__container--md { max-width: 56rem; }
.inner-section__container--sm { max-width: 42rem; }

/* 汎用固定ページ：コンテンツ本文スタイル */
.page-content {
  font-size: .9375rem;
  line-height: 1.9;
  color: #212122;
}

/* ================================================================
   グーテンベルグ ブロックスタイル（フロントエンド）
   .entry-content 内の wp-block-* をサイトデザインに合わせる
   ================================================================ */

/* ── 見出し */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  font-family: var(--font-yugothic);
  font-weight: 700;
  color: #212122;
  line-height: 1.4;
  letter-spacing: .04em;
  margin: 1.75em 0 .75em;
}
.entry-content h1 { font-size: clamp(1.5rem, 3.5vw, 1.875rem); }
.entry-content h2 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
.entry-content h3 { font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.entry-content h4 { font-size: 1rem; }
.entry-content h5,
.entry-content h6 { font-size: .9375rem; }

/* ── 段落・本文 */
.entry-content p {
  font-family: var(--font-yugothic);
  font-size: .9375rem;
  line-height: 1.9;
  color: #3d3d3e;
  margin: 0 0 1em;
}

/* ── リンク */
.entry-content a {
  color: var(--color-black);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.entry-content a:hover { opacity: .7; }

/* ── 強調 */
.entry-content strong { font-weight: 700; color: #212122; }
.entry-content em     { font-style: italic; }

/* ── リスト */
.entry-content ul,
.entry-content ol {
  font-family: var(--font-yugothic);
  font-size: .9375rem;
  line-height: 1.9;
  color: #3d3d3e;
  padding-left: 1.5rem;
  margin: 0 0 1em;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .35em; }

/* ── 引用 */
.entry-content blockquote,
.entry-content .wp-block-quote {
  border-left: 3px solid var(--color-black);
  padding: .5rem 0 .5rem 1.25rem;
  margin: 1.5rem 0;
  font-size: .9375rem;
  color: #555;
}
.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
  display: block;
  font-size: .8125rem;
  margin-top: .5rem;
  color: var(--color-gray-mid);
}

/* ── 区切り線 */
.entry-content hr,
.entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-gray-light);
  margin: 2rem 0;
}

/* ── コード */
.entry-content code {
  font-family: monospace;
  background: #f4f4f2;
  padding: .125em .4em;
  border-radius: 3px;
  font-size: .875em;
}
.entry-content pre {
  background: #f4f4f2;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: .875rem;
  line-height: 1.7;
  margin: 0 0 1.5em;
}

/* ── テーブル
   WP ブロックライブラリの border: 1px solid を !important で完全リセットし、
   必要な罫線だけを再適用する */

/* ① すべてのボーダーをリセット */
.entry-content .wp-block-table,
.entry-content .wp-block-table table,
.entry-content .wp-block-table thead,
.entry-content .wp-block-table tfoot,
.entry-content .wp-block-table tbody,
.entry-content .wp-block-table tr,
.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
  border: 0 !important;
}

/* ② テーブル基本スタイル */
.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse !important;
  font-size: .9375rem;
  margin: 0 0 1.5em;
}

/* ③ ヘッダーセル */
.entry-content .wp-block-table th {
  background: var(--color-black) !important;
  color: var(--color-white) !important;
  font-weight: 600;
  padding: .625rem 1rem;
  text-align: left;
  letter-spacing: .04em;
}

/* ④ データセル（行間の下線のみ） */
.entry-content .wp-block-table td {
  padding: .625rem 1rem;
  color: #3d3d3e;
  border-bottom: 1px solid #c8c8c8 !important;
}

/* ⑤ 最終行の下線を消す */
.entry-content .wp-block-table tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* ⑥ 縞模様 */
.entry-content .wp-block-table tr:nth-child(even) td { background: #f9f9f7; }

@media (max-width: 600px) {
  .entry-content .wp-block-table table { font-size: .8125rem; }
  .entry-content .wp-block-table th,
  .entry-content .wp-block-table td { padding: .5rem .75rem; }
}

/* ── リスト番号・記号の色 */
.entry-content ol li::marker,
.entry-content ul li::marker,
.entry-content .wp-block-list li::marker {
  color: #3d3d3e;
}

/* ── 画像 */
/* .entry-content img の基本は line 982 で定義済み（margin-block: 1.5rem）。
   Gutenberg では figure が margin を持つため、figure 内の img は margin をリセット */
.entry-content figure img { margin-block: 0; }
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption {
  font-size: .8125rem;
  color: var(--color-gray-mid);
  text-align: center;
  margin-top: .5rem;
}
.entry-content .wp-block-image img { border-radius: 4px; }
.entry-content .wp-block-image.is-style-xtech-shadow img {
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

/* ── ギャラリー */
.entry-content .wp-block-gallery { gap: .5rem; }
.entry-content .wp-block-gallery img {
  border-radius: 4px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .entry-content .wp-block-gallery { gap: .75rem; }
}

/* ── ボタン */
.entry-content .wp-block-buttons { margin: 1.5rem 0; }
.entry-content .wp-block-button__link {
  font-family: var(--font-yugothic);
  font-size: .9375rem;
  letter-spacing: .08em;
  padding: .75rem 2.25rem;
  border-radius: 100px;
  border: 2px solid var(--color-black);
  text-decoration: none;
  transition: opacity .2s;
  display: inline-block;
}
/* デフォルト：塗り潰し黒 */
.entry-content .wp-block-button:not(.is-style-outline):not(.is-style-xtech-outline) .wp-block-button__link {
  background: var(--color-black);
  color: var(--color-white);
}
.entry-content .wp-block-button:not(.is-style-outline):not(.is-style-xtech-outline) .wp-block-button__link:hover {
  opacity: .78;
}
/* アウトライン：サイト標準ピルボタン */
.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.entry-content .wp-block-button.is-style-xtech-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-black);
}
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-xtech-outline .wp-block-button__link:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* ── カラム */
.entry-content .wp-block-columns { gap: 2rem; margin-block: 1.5rem; }
@media (min-width: 768px) {
  .entry-content .wp-block-columns { gap: 2.5rem; }
}

/* ── グループ */
.entry-content .wp-block-group { margin-block: 1.5rem; }
.entry-content .wp-block-group.has-background { padding: 1.75rem; border-radius: 6px; }

/* ── プルクオート */
.entry-content .wp-block-pullquote {
  border-top: 3px solid var(--color-black);
  border-bottom: 3px solid var(--color-black);
  padding: 1.75rem 0;
  margin: 2rem 0;
  text-align: center;
}
.entry-content .wp-block-pullquote blockquote {
  border: none;
  padding: 0;
  margin: 0;
  color: var(--color-black);
}
.entry-content .wp-block-pullquote blockquote p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-black);
  margin: 0 0 .75em;
}
.entry-content .wp-block-pullquote cite {
  font-size: .8125rem;
  color: var(--color-gray-mid);
  font-style: normal;
}

/* ── メディアとテキスト */
.entry-content .wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-block: 1.5rem;
}
@media (max-width: 767px) {
  .entry-content .wp-block-media-text {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .entry-content .wp-block-media-text .wp-block-media-text__media { order: -1; }
}
.entry-content .wp-block-media-text__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  margin-block: 0;
}
.entry-content .wp-block-media-text__content { padding: 0; }

/* ── ギャラリー画像の高さ統一 */
.entry-content .wp-block-gallery .wp-block-image img {
  height: 200px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .entry-content .wp-block-gallery .wp-block-image img { height: 240px; }
}

/* ── インライン要素 */
.entry-content mark {
  background: #fff59d;
  color: var(--color-black);
  padding: 0 .2em;
  border-radius: 2px;
}
.entry-content sup,
.entry-content sub { font-size: .75em; }
.entry-content del { color: var(--color-gray-mid); text-decoration: line-through; }
.entry-content ins { text-decoration: underline; text-decoration-color: var(--color-black); }

/* ── カバー */
.entry-content .wp-block-cover {
  border-radius: 6px;
  overflow: hidden;
  min-height: 240px;
}
.entry-content .wp-block-cover__inner-container p {
  color: #fff;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: .375rem;
  flex-wrap: wrap;
  font-family: var(--font-yugothic);
  font-size: 0.9375rem; /* 15px */
  color: #212122;
  letter-spacing: .05em;
  padding: 1rem 0;
  max-width: 80rem;
  margin: 0 auto;
}
@media (min-width: 768px) { .breadcrumbs { font-size: 0.875rem; } } /* 14px */
@media (min-width: 1024px) { .breadcrumbs { font-size: 0.75rem; padding: 1rem 4rem; } } /* 12px */
/* コンテナ内に置かれた場合はコンテナ側のpadding-inlineを使うため自身の横paddingはリセット */
.inner-section__container .breadcrumbs { padding-inline: 0; }

.breadcrumbs a {
  color: #9e9e9e;
  transition: opacity 0.2s;
  text-decoration: none;
}
.breadcrumbs a:hover { opacity: 0.7; }
.breadcrumbs__current { color: #212122; }
.breadcrumbs__sep {
  color: rgba(33,33,34,.6);
  display: block;
  flex-shrink: 0;
  width: 0.875rem;
  height: 0.875rem;
}
@media (min-width: 1024px) {
  .breadcrumbs__sep { width: 0.75rem; height: 0.75rem; }
}

/* Section heading (JP + EN) */
.section-heading {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.section-heading__title {
  font-family: var(--font-yugothic);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #212122;
  line-height: 1;
  margin: 0;
}
@media (min-width: 768px) { .section-heading__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .section-heading__title { font-size: 2.5rem; } }
.section-heading__en {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(33,33,34,.4);
  letter-spacing: .1em;
}

/* ── ABOUT page ─────────────────────────────────────────────── */
.greeting-section { padding-top: 1.5rem; }
/* 原サイト: md:text-[40px] lg:text-[44px] */
@media (min-width: 768px) { .greeting-section .section-heading__title { font-size: 2.5rem; } }
@media (min-width: 1024px) { .greeting-section .section-heading__title { font-size: 2.75rem; } }
/* 原サイト: md:text-[18px] lg:text-[16px] */
@media (min-width: 768px) { .greeting-section .section-heading__en { font-size: 1.125rem; } }
@media (min-width: 1024px) { .greeting-section .section-heading__en { font-size: 1rem; } }

/* パンくずリストの直後のコンテナに余白を確保（mt-16 lg:mt-12 相当） */
.greeting-section .inner-section__container--md { margin-top: 4rem; }
@media (min-width: 1024px) { .greeting-section .inner-section__container--md { margin-top: 3rem; } }

.greeting-body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .05em;
  font-weight: 500;
  color: #212122;
  margin-bottom: 0;
  margin-top: 4rem;
}
@media (min-width: 768px) { .greeting-body { font-size: 1.0625rem; line-height: 2; } }
@media (min-width: 1024px) { .greeting-body { gap: 2.5rem; font-size: 1rem; margin-top: 3rem; } }
.greeting-body p { margin: 0; }
/* ACF コンテンツが単一 div でラップされた場合の段落間スペース */
.greeting-body > div > p + p { margin-top: 3rem; }
@media (min-width: 1024px) { .greeting-body > div > p + p { margin-top: 2.5rem; } }

.president {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  margin-top: 1.25rem;
  width: 80%;
  padding-bottom: 3rem; /* name-wrap が下にはみ出す分の余白 */
}
@media (min-width: 768px) { .president { margin-top: 5rem; width: 65%; padding-bottom: 3.5rem; } }
@media (min-width: 1024px) { .president { margin-top: 6rem; width: 55%; margin-left: 10%; padding-bottom: 4rem; } }

.president__img-wrap {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 5 / 3;
}
.president__img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2); }
.president__name-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 1.5rem;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .president__name-wrap { right: -160px; }
}
@media (min-width: 1024px) {
  .president__name-wrap { right: -100px; }
}
.president__role {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(33,33,34,.6);
}
@media (min-width: 768px) { .president__role { font-size: .875rem; } }
.president__name {
  font-size: 1.375rem;
  font-weight: 700;
  color: rgba(33,33,34,.9);
  letter-spacing: .1em;
  line-height: 1;
  margin: 0;
}
@media (min-width: 768px) { .president__name { font-size: 1.625rem; } }

/* 会社概要セクション：原サイト py-20 に合わせて上余白を 5rem に */
.outline-section { padding-top: 5rem; }
/* 所在地セクション：原サイト py-20 に合わせて上余白を 5rem に */
.map-section { padding-top: 5rem; }

/* Outline table */
.outline-table-wrap {
  background: #fff;
  border-radius: 1.875rem;
  padding: 2rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
@media (min-width: 768px) { .outline-table-wrap { border-radius: 2.5rem; padding: 2.5rem; } }
@media (min-width: 1024px) { .outline-table-wrap { padding: 3rem 4rem; } }

.outline-table { display: block; margin: 0; } /* <dl> デフォルト margin 1em 0 をリセット */
.outline-table__row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 2rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.outline-table__row--last { border-bottom: none; }
@media (min-width: 1024px) {
  .outline-table__row { flex-direction: row; gap: 0; padding: 1.5rem 0; align-items: baseline; }
}
.outline-table__label {
  font-size: 1rem;
  font-weight: 700;
  color: #4C4042;
  letter-spacing: .1em;
  padding-left: .25rem;
}
@media (min-width: 1024px) { .outline-table__label { font-size: .8125rem; width: 10rem; flex-shrink: 0; } }
.outline-table__value {
  font-size: 1rem;
  font-weight: 500;
  color: #212122;
  letter-spacing: .05em;
  line-height: 1.6;
  padding-left: .25rem;
  margin: 0;
}
@media (min-width: 768px) { .outline-table__value { font-size: 1.0625rem; } }
@media (min-width: 1024px) { .outline-table__value { font-size: .9375rem; flex: 1; } }

/* Map：inner-section のパディングを打ち消して画面横幅いっぱいに */
.map-section__iframe-wrap {
  width: calc(100% + 3rem); /* 左右 1.5rem ずつ打ち消し */
  margin-left: -1.5rem;
  height: 300px;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .map-section__iframe-wrap {
    width: calc(100% + 12rem); /* 左右 6rem ずつ打ち消し */
    margin-left: -6rem;
    height: 450px;
  }
}
@media (min-width: 1024px) {
  .map-section__iframe-wrap {
    width: 100%; /* PC は inner-section padding-inline: 0 なので元に戻す */
    margin-left: 0;
    height: 600px;
    margin-bottom: 5rem;
  }
}
.map-section__iframe-wrap iframe { width: 100%; height: 100%; border: 0; }

.map-info { display: flex; flex-direction: column; gap: 2.5rem; }
.map-info__city {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  color: #212122;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0;
}
@media (min-width: 768px) { .map-info__city { font-size: 1.625rem; } }
.map-info__address,
.map-info__contact {
  font-size: 1rem;
  font-weight: 500;
  color: #212122;
  letter-spacing: .05em;
  line-height: 1.8;
  margin: 0;
}
@media (min-width: 1024px) {
  .map-info__address, .map-info__contact { font-size: .9375rem; }
}
.map-info__cta { padding-top: 2.5rem; display: flex; justify-content: center; }
@media (min-width: 768px) { .map-info__cta { justify-content: flex-start; } }

/* ── WORKFLOW page ───────────────────────────────────────────── */
.workflow-intro {
  font-size: 1rem;
  font-weight: 500;
  color: #212122;
  line-height: 2.2;
  letter-spacing: .05em;
  margin: 4rem 2rem 3rem;
}
@media (min-width: 1024px) { .workflow-intro { font-size: .9375rem; margin: 3.5rem 0 2.5rem; } }

.workflow-cards { display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 1024px) { .workflow-cards { gap: 2rem; } }

.workflow-card {
  position: relative;
  margin: 0 0.5rem;
}
.workflow-card__badge {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  z-index: 10;
  background: #212122;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .2em;
  padding: .375rem 1rem;
  border-radius: .5rem;
}
@media (min-width: 768px) { .workflow-card__badge { font-size: .875rem; } }
@media (min-width: 1024px) { .workflow-card__badge { font-size: .8125rem; } }
.workflow-card__body {
  background: #fff;
  padding: 3rem 1.25rem 2rem;
  margin: 0.5rem;
}
@media (min-width: 768px) { .workflow-card__body { padding: 3rem 2rem 2rem; } }
@media (min-width: 1024px) { .workflow-card__body { padding: 3.5rem 2.5rem 2.5rem; } }
.workflow-card__title {
  font-family: var(--font-yugothic);
  font-weight: 700;
  font-size: 1.125rem;
  color: #212122;
  letter-spacing: .05em;
  margin: 0 0 1rem;
}
.workflow-card__desc {
  font-family: var(--font-yugothic);
  font-size: .9375rem;
  color: #212122;
  line-height: 1.8;
  letter-spacing: .05em;
  margin: 0;
}
@media (min-width: 1024px) { .workflow-card__desc { font-size: .875rem; } }

/* ── CONTACT page ───────────────────────────────────────────── */
.contact-intro {
  font-size: .9375rem;
  font-weight: 500;
  color: #212122;
  line-height: 2;
  letter-spacing: .05em;
  margin: 4rem 0 1.25rem;
}
@media (min-width: 1024px) { .contact-intro { font-size: .875rem; margin-top: 3rem; } }
.contact-required {
  font-size: .8125rem;
  color: #212122;
  letter-spacing: .05em;
  margin: 0 0 2.5rem;
}
@media (min-width: 1024px) { .contact-required { font-size: .75rem; } }
.contact-required__mark { color: #ef4444; }

.contact-form { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .contact-form { gap: 1.5rem; } }
.contact-form__field { display: flex; flex-direction: column; }
.contact-form__label {
  font-family: var(--font-yugothic);
  font-weight: 700;
  font-size: .9375rem;
  color: #212122;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
@media (min-width: 1024px) { .contact-form__label { font-size: .8125rem; } }
.contact-form__required { color: #ef4444; margin-left: .25rem; }
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(33,33,34,.2);
  padding: .75rem 1rem;
  font-family: var(--font-yugothic);
  font-size: .9375rem;
  color: #212122;
  letter-spacing: .05em;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: rgba(33,33,34,.6);
}
@media (min-width: 1024px) { .contact-form__input, .contact-form__textarea { font-size: .875rem; } }
.contact-form__textarea { resize: none; }
/* チェックボックス行 */
.contact-form__privacy { display: flex; justify-content: center; }
.contact-form__privacy p { margin: 0; }
/* CF7のacceptanceタグが生成するlabelをflexにして上下中央揃え */
.wpcf7-acceptance label { display: inline-flex !important; align-items: center !important; gap: .75rem; cursor: pointer; }
.contact-form__checkbox {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid rgba(33,33,34,.3);
  accent-color: #212122;
  cursor: pointer;
  margin: 0; /* ブラウザデフォルトのマージンをリセット */
}
.wpcf7-list-item-label { font-size: .875rem; color: #212122; letter-spacing: .05em; cursor: pointer; }
@media (min-width: 1024px) { .wpcf7-list-item-label { font-size: .8125rem; } }
.contact-form__privacy-label { font-size: .875rem; color: #212122; letter-spacing: .05em; cursor: pointer; }
@media (min-width: 1024px) { .contact-form__privacy-label { font-size: .8125rem; } }
.contact-form__privacy-link { text-decoration: underline; text-underline-offset: 2px; }
.contact-form__privacy-link:hover { opacity: .6; }

/* 送信ボタン */
.contact-form__submit-wrap { display: flex; justify-content: center; padding-top: .5rem; }
/* CF7が<p>で囲む: その<p>をarrow基準のコンテナにする */
.contact-form__submit-wrap p {
  margin: 0;
  position: relative;
  line-height: 0; /* inputの下余白を消す */
}
/* <p>::after で矢印円を描画（SVGをbackground-imageで） */
.contact-form__submit-wrap p::after {
  content: '';
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3Cpolyline points='12 5 19 12 12 19'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  pointer-events: none;
  transition: opacity 0.2s;
}
/* disabled時: :has()対応ブラウザはp全体をフェード（矢印も連動） */
.contact-form__submit-wrap p:has(.contact-form__submit:disabled) { opacity: .4; cursor: not-allowed; }
/* :has()非対応ブラウザ向けフォールバック: inputのみフェード */
@supports not selector(:has(a)) {
  .contact-form__submit:disabled { opacity: .4; }
}
.contact-form__submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: 13rem;
  padding: .875rem 1rem;
  background: #4C4042;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-yugothic);
  font-size: 1rem;
  letter-spacing: .1em;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  vertical-align: middle;
}
@media (min-width: 1024px) { .contact-form__submit { font-size: .875rem; width: 12rem; padding: .875rem 1rem; } }
.contact-form__submit:hover:not(:disabled) { opacity: .8; }
/* 不要になった旧クラス（フォールバック用フォームで使用） */
.contact-form__submit-arrow {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.contact-form__submit-arrow::after {
  content: '';
  display: block;
  width: .4rem;
  height: .4rem;
  border-right: 1.5px solid #fff;
  border-top: 1.5px solid #fff;
  transform: rotate(45deg) translateX(-1px);
}
@media (min-width: 1024px) { .contact-form__submit-arrow { width: 1.5rem; height: 1.5rem; right: .625rem; } }

.contact-sns-section {
  background: #000;
  padding: 4rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .contact-sns-section { padding: 5rem 1.5rem; } }
.contact-sns-section__text {
  color: #fff;
  font-family: var(--font-yugothic);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: .1em;
  text-align: center;
  margin: 0;
}
@media (min-width: 1024px) { .contact-sns-section__text { font-size: .9375rem; } }

/* ── PRIVACY page ───────────────────────────────────────────── */
.privacy-section { padding-top: 8rem; }
@media (min-width: 1024px) { .privacy-section { padding-top: 9rem; } }

.privacy-heading {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid #9e9e9e;
  margin-bottom: 1.5rem;
}
.privacy-heading__title {
  font-family: var(--font-yugothic);
  font-weight: 700;
  font-size: 1.875rem;
  color: #212122;
  letter-spacing: .05em;
  line-height: 1.2;
  margin: 0 0 .5rem;
}
@media (min-width: 768px) { .privacy-heading__title { font-size: 2.25rem; } }
.privacy-heading__en {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #212122;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 0;
}
@media (min-width: 1024px) { .privacy-heading__en { font-size: .8125rem; } }

.privacy-content {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) { .privacy-content { margin-top: 2rem; gap: 2rem; } }

/* entry-content overrides to match the original privacy-item design */
.privacy-content.entry-content h2 {
  font-weight: 700;
  font-size: 1rem;
  font-family: var(--font-yugothic);
  letter-spacing: .05em;
  margin: 0 0 .75rem;
  color: #212122;
}
@media (min-width: 768px)  { .privacy-content.entry-content h2 { font-size: 1.125rem; } }
@media (min-width: 1024px) { .privacy-content.entry-content h2 { font-size: .9375rem; } }
.privacy-content.entry-content p {
  font-size: .875rem;
  line-height: 1.9;
  letter-spacing: .05em;
  color: #212122;
  margin: 0 0 1rem;
}
@media (min-width: 768px)  { .privacy-content.entry-content p  { font-size: 1rem; } }
@media (min-width: 1024px) { .privacy-content.entry-content p  { font-size: .875rem; line-height: 2; } }
.privacy-content.entry-content ul {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.privacy-content.entry-content ul li {
  display: flex;
  gap: .5rem;
  font-size: .875rem;
  line-height: 1.9;
  letter-spacing: .05em;
  color: #212122;
}
.privacy-content.entry-content ul li::before { content: '●'; flex-shrink: 0; }
@media (min-width: 768px)  { .privacy-content.entry-content ul li { font-size: 1rem; } }
@media (min-width: 1024px) { .privacy-content.entry-content ul li { font-size: .875rem; line-height: 2; } }

/* JS で動的に生成されるセクションラッパー */
.privacy-item {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* legacy classes kept for reference — no longer rendered */
.privacy-item__heading {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .05em;
  margin: 0 0 .75rem;
  color: #212122;
}
@media (min-width: 768px) { .privacy-item__heading { font-size: 1.125rem; } }
@media (min-width: 1024px) { .privacy-item__heading { font-size: .9375rem; } }
.privacy-item__body {
  font-size: .875rem;
  line-height: 1.9;
  letter-spacing: .05em;
  color: #212122;
}
@media (min-width: 768px) { .privacy-item__body { font-size: 1rem; } }
@media (min-width: 1024px) { .privacy-item__body { font-size: .875rem; line-height: 2; } }
.privacy-item__body p { margin: 0 0 1rem; }
.privacy-item__list { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-direction: column; gap: .5rem; }
.privacy-item__list li { display: flex; gap: .5rem; }
.privacy-item__list li::before { content: '●'; flex-shrink: 0; }

/* ── CPT 一覧共通 ──────────────────────────────────────────── */
.cpt-archive-section { color: #212122; }

/* 商品検索バー */
.product-search-wrap {
  max-width: 80rem;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}
@media (min-width: 768px) { .product-search-wrap { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .product-search-wrap { padding: 0 4rem; margin-top: 1rem; } }

.product-search {
  position: relative;
}
.product-search__input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(33,33,34,.2);
  font-family: var(--font-yugothic);
  font-size: .875rem;
  color: #212122;
  letter-spacing: .05em;
  padding: .75rem 2.5rem .75rem 1rem;
  outline: none;
  transition: border-color .3s;
  box-sizing: border-box;
}
@media (min-width: 1024px) { .product-search__input { font-size: .8125rem; } }
.product-search__input::placeholder { color: rgba(33,33,34,.3); }
.product-search__input:focus { border-color: rgba(33,33,34,.5); }
.product-search__icon {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(33,33,34,.3);
  pointer-events: none;
  width: 1rem;
  height: 1rem;
}
.product-search__clear {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(33,33,34,.4);
  display: flex;
  align-items: center;
  transition: color .2s;
}
.product-search__clear:hover { color: #212122; }
.product-search__clear[hidden] { display: none; }

.product-no-results {
  font-family: var(--font-yugothic);
  font-size: .875rem;
  color: rgba(33,33,34,.5);
  letter-spacing: .05em;
  text-align: center;
  padding: 3rem 0;
  display: none;
}

.cpt-archive-layout {
  max-width: 80rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* tablet 以上では inner-section の 6rem padding で十分なため追加余白を解除 */
@media (min-width: 768px) { .cpt-archive-layout { padding: 0; } }
@media (min-width: 1024px) {
  .cpt-archive-layout {
    flex-direction: row;
    gap: 4rem;
    padding: 0 4rem;
    align-items: flex-start;
  }
}

.cpt-archive-main { flex: 1; min-width: 0; }

.cpt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .cpt-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1024px) { .cpt-grid { gap: 2rem; } }

.cpt-card__link { display: block; }
.cpt-card__link:hover .cpt-card__img { transform: scale(1.05); }

.cpt-card__img-wrap {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: rgba(33,33,34,.1);
  margin-bottom: .75rem;
}
@media (min-width: 768px) { .cpt-card__img-wrap { aspect-ratio: 4/3; } }
@media (min-width: 1024px) { .cpt-card__img-wrap { aspect-ratio: 3/2; } }
.cpt-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.cpt-card__no-img {
  width: 100%;
  height: 100%;
  background: #212122;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-en);
  font-size: .75rem;
  letter-spacing: .1em;
}
.cpt-card__meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .25rem; }
.cpt-card__meta--stacked { flex-direction: column; align-items: flex-start; gap: .25rem; padding-top: .625rem; }
.cpt-card__meta-row { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cpt-card__date { font-family: var(--font-yugothic); font-size: .8125rem; color: rgba(33,33,34,.6); letter-spacing: .05em; }
@media (min-width: 1024px) { .cpt-card__date { font-size: .75rem; } }
.cpt-card__title {
  font-family: var(--font-yugothic);
  font-weight: 500;
  font-size: 1.25rem;
  color: #212122;
  letter-spacing: .05em;
}
@media (min-width: 768px) { .cpt-card__title { font-size: 1rem; } }
@media (min-width: 1024px) { .cpt-card__title { font-size: .9375rem; } }
.cpt-card__cat {
  font-family: var(--font-yugothic);
  font-size: .875rem;
  color: #fff;
  background: #212122;
  border-radius: .125rem;
  padding: .125rem .5rem;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}
@media (min-width: 1024px) { .cpt-card__cat { font-size: .75rem; } }
.cpt-card__price {
  font-family: var(--font-yugothic);
  font-size: .8125rem;
  color: rgba(33,33,34,.6);
  letter-spacing: .05em;
  margin: 0;
}
@media (min-width: 1024px) { .cpt-card__price { font-size: .75rem; } }

/* Pagination */
.cpt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: .375rem;
  margin-bottom: 4rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}
@media (min-width: 1024px) { .cpt-pagination { margin-bottom: 2rem; } }
.cpt-pagination .page-numbers {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: .875rem;
  color: #212122;
  border: 1px solid rgba(33,33,34,.4);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.cpt-pagination a.page-numbers:hover { border-color: #212122; }
.cpt-pagination .page-numbers.current { background: #212122; color: #fff; border-color: #212122; }
.cpt-pagination .page-numbers.dots { border: none; background: none; }
.cpt-pagination .page-numbers.prev,
.cpt-pagination .page-numbers.next { border: none; background: none; color: #212122; width: auto; min-width: 1.5rem; }
.cpt-pagination .page-numbers.prev:hover,
.cpt-pagination .page-numbers.next:hover { color: #444; }
@media (min-width: 1024px) { .cpt-pagination .page-numbers { width: 2rem; height: 2rem; font-size: .75rem; } }

/* Sidebar */
.cpt-sidebar {
  display: block;
}
/* tablet 以下: 横並びチップ */
@media (max-width: 1023px) {
  .cpt-sidebar__heading-wrap { margin-bottom: 1rem; }
  .cpt-sidebar__cats { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
  .cpt-sidebar__divider { margin-bottom: 1rem; }
}
@media (min-width: 1024px) {
  .cpt-sidebar { margin-top: 0; order: 0; width: 13rem; flex-shrink: 0; position: sticky; top: calc(var(--header-height) + 2rem); }
}

.cpt-sidebar__heading-wrap { margin-bottom: 1.5rem; }
.cpt-sidebar__heading {
  font-family: var(--font-yugothic);
  font-weight: 700;
  font-size: 1.25rem;
  color: #212122;
  letter-spacing: .05em;
  line-height: 1;
  margin: 0 0 .25rem;
}
@media (min-width: 768px) { .cpt-sidebar__heading { font-size: 1rem; } }
@media (min-width: 1024px) { .cpt-sidebar__heading { font-size: .875rem; } }
.cpt-sidebar__heading-en {
  font-family: var(--font-sans);
  font-size: .75rem;
  color: rgba(33,33,34,.5);
  letter-spacing: .15em;
}
@media (min-width: 1024px) { .cpt-sidebar__heading-en { font-size: .6875rem; } }
.cpt-sidebar__divider { width: 100%; height: 1px; background: #fff; margin-bottom: 1.5rem; }
.cpt-sidebar__cats { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
@media (min-width: 1024px) { .cpt-sidebar__cats { gap: .5rem; } }
.cpt-sidebar__cat {
  font-family: var(--font-yugothic);
  font-size: .875rem;
  color: #fff;
  background: #212122;
  border: 1px solid #212122;
  border-radius: .125rem;
  padding: .25rem 1rem;
  letter-spacing: .05em;
  transition: opacity 0.2s;
  text-decoration: none;
}
.cpt-sidebar__cat:hover { opacity: .7; }
.cpt-sidebar__cat.is-active { background: #fff; color: #212122; }
@media (min-width: 1024px) { .cpt-sidebar__cat { font-size: .75rem; } }
.cpt-sidebar__cat-reset {
  font-family: var(--font-yugothic);
  font-size: .8125rem;
  color: rgba(33,33,34,.6);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: .5rem;
}
.cpt-sidebar__cat-reset:hover { color: #212122; }

/* ── 商品・実績 詳細ページ ──────────────────────────────────── */
.single-cpt-section { color: #212122; }

/* 汎用single テキストエリア
   .entry-content のデフォルト色（白）を上書き。
   ブロックエディターのインラインカラーはより具体的なため引き続き優先される。 */
.single-cpt-section .entry-content { color: #212122; }
.single-generic__date {
  display: block;
  font-family: var(--font-yugothic);
  font-size: .8125rem;
  color: rgba(33,33,34,.5);
  letter-spacing: .05em;
  margin-bottom: 2rem;
}
@media (min-width: 1024px) { .single-generic__date { font-size: .75rem; } }
.single-generic__content { margin-top: 0; }

.single-cpt-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .single-cpt-layout { flex-direction: row; gap: 4rem; align-items: flex-start; }
}
.single-cpt-layout--archive .single-cpt-info { max-width: 24rem; }

.single-cpt-hero-img { margin-bottom: 1rem; }
.single-cpt-hero-img img { width: 100%; height: auto; }

.single-cpt-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .5rem;
}
.single-cpt-gallery__item { overflow: hidden; aspect-ratio: 4/3; }
.single-cpt-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.single-cpt-gallery__item:hover img { transform: scale(1.05); }

.single-cpt-main { flex: 1; min-width: 0; }
.single-cpt-info { flex-shrink: 0; width: 100%; }
@media (min-width: 1024px) { .single-cpt-info { width: 22rem; position: sticky; top: calc(var(--header-height) + 2rem); } }

.single-cpt-info__title {
  font-family: var(--font-yugothic);
  font-size: 1.5rem;
  font-weight: 700;
  color: #212122;
  letter-spacing: .05em;
  line-height: 1.3;
  margin: 0 0 1rem;
}
@media (min-width: 1024px) { .single-cpt-info__title { font-size: 1.375rem; } }
.single-cpt-info__cat {
  display: inline-block;
  font-family: var(--font-yugothic);
  font-size: .8125rem;
  color: #fff;
  background: #212122;
  border-radius: .125rem;
  padding: .125rem .625rem;
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
}
.single-cpt-info__price {
  font-family: var(--font-yugothic);
  font-size: 1.25rem;
  font-weight: 700;
  color: #4C4042;
  letter-spacing: .05em;
  margin: 0 0 1.5rem;
}
.single-cpt-info__desc {
  font-size: .9375rem;
  line-height: 1.8;
  color: #212122;
  margin-bottom: 2rem;
}
.single-cpt-info__back { margin-top: 2rem; }

/* ── 商品詳細 single-prod ──────────────────────────────────────── */
.single-prod { color: #212122; }

.single-prod__cat-wrap { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.single-prod__cat {
  display: inline-block;
  font-family: var(--font-yugothic);
  font-size: .75rem;
  color: #fff;
  background: #212122;
  border-radius: .125rem;
  padding: .125rem .5rem;
  letter-spacing: .05em;
}

.single-prod__title {
  font-family: var(--font-yugothic);
  font-size: 1.625rem;
  font-weight: 700;
  color: #212122;
  letter-spacing: .05em;
  line-height: 1.3;
  margin: 0 0 .5rem;
}
@media (min-width: 1024px) { .single-prod__title { font-size: 1.5rem; } }

.single-prod__specs {
  margin: 0 0 2rem;
  border-top: 1px solid rgba(33,33,34,.15);
}
@media (min-width: 1024px) { .single-prod__specs { margin-bottom: 1.5rem; } }
.single-prod__spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .875rem 0;
  border-bottom: 1px solid rgba(33,33,34,.15);
}
.single-prod__spec-label {
  font-family: var(--font-segoe-light);
  font-size: .625rem;
  color: rgba(33,33,34,.4);
  letter-spacing: .3em;
  flex-shrink: 0;
  padding-left: 0;
  margin: 0;
}
.single-prod__spec-value {
  font-family: var(--font-yugothic);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #212122;
  letter-spacing: .05em;
  text-align: right;
  margin: 0;
  padding-left: 1rem;
}
@media (min-width: 1024px) { .single-prod__spec-value { font-size: 1rem; } }

.single-prod__card {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .single-prod__card { padding: 2rem; } }
@media (min-width: 1024px) { .single-prod__card { padding: 3rem; margin-bottom: 2.5rem; } }

/* .single-prod__img-wrap は prod-gallery に統合 */

/* ── 商品ギャラリー ────────────────────────────────────── */
.prod-gallery { margin-bottom: 2rem; }
@media (min-width: 1024px) { .prod-gallery { margin-bottom: 2.5rem; } }

.prod-gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: .75rem;
}
.prod-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .25s ease;
}

.prod-gallery__thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.prod-gallery__thumbs::-webkit-scrollbar { display: none; }

.prod-gallery__thumb {
  flex-shrink: 0;
  width: 5rem;
  height: 3.75rem;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
  background: none;
  scroll-snap-align: start;
  transition: border-color .2s, opacity .2s;
  outline-offset: 2px;
}
.prod-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-gallery__thumb:hover { opacity: .75; }
.prod-gallery__thumb.is-active { border-color: #212122; opacity: 1; }

.single-prod__divider {
  width: 100%;
  border-top: 1px solid rgba(33,33,34,.1);
  margin-bottom: 2rem;
}

.single-prod__desc {
  font-family: var(--font-yugothic);
  font-size: .9375rem;
  color: #212122;
  line-height: 2.2;
  letter-spacing: .05em;
  white-space: pre-wrap;
}
@media (min-width: 1024px) { .single-prod__desc { font-size: .9375rem; line-height: 2; } }

.single-prod__nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-top: 1px solid rgba(33,33,34,.2);
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 1024px) { .single-prod__nav { margin-bottom: 2rem; } }
.single-prod__nav-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-yugothic);
  font-size: .875rem;
  color: #212122;
  letter-spacing: .05em;
  text-decoration: none;
  transition: opacity .2s;
}
.single-prod__nav-item:hover { opacity: .6; }
.single-prod__nav-item--next { text-align: right; }
@media (min-width: 1024px) { .single-prod__nav-item { font-size: .8125rem; } }
.single-prod__nav-dir {
  display: block;
  font-family: var(--font-segoe-light);
  font-size: .6875rem;
  color: rgba(33,33,34,.5);
  letter-spacing: .15em;
  margin-bottom: .125rem;
}
@media (min-width: 1024px) { .single-prod__nav-dir { font-size: .625rem; } }
.single-prod__nav-title { display: block; }

.single-prod__divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 1.5rem 0;
}
.single-prod__desc {
  color: #212122;
  font-size: .9375rem;
  line-height: 1.8;
  padding-bottom: 0.5rem;
}
@media (min-width: 1024px) { .single-prod__desc { font-size: 1rem; } }

.single-prod__back { display: flex; justify-content: center; margin-bottom: 2.5rem; }
@media (min-width: 1024px) { .single-prod__back { margin-bottom: 0; } }
.single-prod__back-link {
  font-family: var(--font-yugothic);
  font-size: .875rem;
  color: #212122;
  letter-spacing: .05em;
  text-decoration: none;
  transition: opacity .2s;
}
.single-prod__back-link:hover { opacity: .6; }
@media (min-width: 1024px) { .single-prod__back-link { font-size: .75rem; } }

/* ================================================================
   フロントページ セクション
   ================================================================ */

/* ── 共通ユーティリティ ─────────────────────────────────────── */
/* transition は常に付与（is-visible 追加時に再生するため） */
.js-reveal {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  transition-delay: var(--reveal-delay, 0s); /* インラインstyleで--reveal-delayを指定するとスタッガー可能 */
}
/* :not(.is-visible) で詳細度 0,2,0 → コンポーネント固有スタイル(0,1,0)に勝ち opacity/transform を確実に 0 にする */
.js-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(20px);
}
.js-reveal--x:not(.is-visible) {
  transform: translateX(30px);
}
.js-reveal--x-left:not(.is-visible) {
  transform: translateX(-50px);
}
/* steps は duration 0.5s（元サイト準拠） */
.workflow-step.js-reveal {
  transition-duration: 0.5s;
}
/* ウォーターマーク：右からスライドして opacity 0.2 で止まる */
.js-reveal--workflow-bg {
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.js-reveal--workflow-bg:not(.is-visible) {
  opacity: 0;
  transform: translateX(100px);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* workflow-bg は詳細度を上げて opacity: 0.2 で止める */
.js-reveal.js-reveal--workflow-bg.is-visible {
  opacity: 0.2;
}
/* archive-bg：右からスライドして opacity 0.6 で止まる */
.js-reveal--archive-bg {
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.js-reveal--archive-bg:not(.is-visible) {
  opacity: 0;
  transform: translateX(100px);
}
.js-reveal.js-reveal--archive-bg.is-visible {
  opacity: 0.6;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.75rem;
  border-radius: 9999px;
  border: 1px solid;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  font-family: var(--font-segoe-light);
  font-size: 1rem;
  letter-spacing: 0.1em;
}
@media (min-width: 768px) { .btn-outline { font-size: 1.0625rem; } }
@media (min-width: 1024px) { .btn-outline { font-size: 0.8125rem; } }

.btn-outline--light {
  border-color: rgba(255,255,255,.4);
  color: #fff;
  background: transparent;
}
.btn-outline--light:hover { background: #fff; color: #000; }

.btn-outline--dark {
  border-color: rgba(0,0,0,.2);
  color: #212122;
  background: rgba(220,220,220,.5);
}
.btn-outline--dark:hover { background: #000; color: #fff; }

.btn-outline__arrow {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s;
}
.btn-outline--light .btn-outline__arrow { border-color: rgba(255,255,255,.3); }
.btn-outline--dark  .btn-outline__arrow { border-color: rgba(0,0,0,.2); }
@media (min-width: 1024px) { .btn-outline__arrow { width: 1.5rem; height: 1.5rem; } }
.btn-outline__arrow::after {
  content: '';
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.3s;
}
@media (min-width: 1024px) { .btn-outline__arrow::after { width: 0.75rem; height: 0.75rem; } }
.btn-outline:hover .btn-outline__arrow::after {
  transform: translateX(3px);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #000;
}

/* Slideshow */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* Ken Burns: starts zoomed in, scales down slowly when active */
  transform: scale(1.15);
}
.hero-slide.is-active img {
  transform: scale(1.0);
  transition: transform 30s linear;
}
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6);
}

/* Logo: hidden until preloader completes, then fades in with scale+translate */
.hero-logo {
  position: absolute;
  top: 20vh;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(0.95);
  z-index: 10;
  opacity: 0;
  transition: opacity 1.2s ease-out 1.3s, transform 1.2s ease-out 1.3s;
}
body.hero-started .hero-logo {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.hero-logo img { width: 96px; height: auto; }
@media (min-width: 768px) { .hero-logo img { width: 144px; } }
@media (min-width: 1024px) {
  .hero-logo {
    left: auto;
    right: 10%;
    top: 50%;
    transform: translateY(calc(-50% + 10px)) scale(0.95);
  }
  body.hero-started .hero-logo {
    transform: translateY(-50%) scale(1);
  }
  .hero-logo img { width: 220px; }
}

/* Mobile hero nav: hidden until preloader, staggered fade-in */
.hero-nav {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 20;
  width: 35%;
}
@media (min-width: 768px) { .hero-nav { bottom: 3rem; right: 3rem; width: auto; } }
@media (min-width: 1024px) { .hero-nav { display: none; } }
.hero-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.hero-nav__item {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
body.hero-started .hero-nav__item { opacity: 1; transform: none; }
body.hero-started .hero-nav__item:nth-child(1)  { transition-delay: 1.0s; }
body.hero-started .hero-nav__item:nth-child(2)  { transition-delay: 1.1s; }
body.hero-started .hero-nav__item:nth-child(3)  { transition-delay: 1.2s; }
body.hero-started .hero-nav__item:nth-child(4)  { transition-delay: 1.3s; }
body.hero-started .hero-nav__item:nth-child(5)  { transition-delay: 1.4s; }
body.hero-started .hero-nav__item:nth-child(6)  { transition-delay: 1.5s; }
body.hero-started .hero-nav__item:nth-child(7)  { transition-delay: 1.6s; }
body.hero-started .hero-nav__item:nth-child(8)  { transition-delay: 1.7s; }
body.hero-started .hero-nav__item:nth-child(9)  { transition-delay: 1.8s; }
body.hero-started .hero-nav__item:nth-child(10) { transition-delay: 1.9s; }
body.hero-started .hero-nav__item:nth-child(11) { transition-delay: 2.0s; }
body.hero-started .hero-nav__item:nth-child(12) { transition-delay: 2.1s; }
.hero-nav__link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: #fff;
  transition: color 0.3s;
}
@media (min-width: 768px) { .hero-nav__link { font-size: 0.875rem; font-weight: 600; } }
.hero-nav__underline {
  height: 1px;
  background: rgba(255,255,255,.4);
  margin-top: 4px;
  width: 100%;
  transition: background 0.3s;
}
.hero-nav__item:hover .hero-nav__underline { background: #fff; }

/* Scroll indicator: hidden until preloader, slides in from top */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 1.5rem;
  z-index: 20;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
  color: #fff;
  padding: 0;
  outline: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s ease-out 2.0s, transform 0.8s ease-out 2.0s;
}
body.hero-started .hero-scroll {
  opacity: 1;
  transform: translateY(0);
}
@media (min-width: 768px) { .hero-scroll { bottom: 3rem; left: 3rem; } }
@media (min-width: 1024px) { .hero-scroll { bottom: 5rem; left: 5rem; } }

/* line + arrow を縦に積む列 */
.hero-scroll__col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-scroll__line-wrap {
  width: 1px;
  height: 4rem;
  background: rgba(255,255,255,.2);
  overflow: hidden;
  position: relative;
  transform: translateY(1px);
}
@media (min-width: 768px) { .hero-scroll__line-wrap { height: 5rem; } }
.hero-scroll__line-inner {
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollLine 2s linear infinite;
}
@keyframes scrollLine {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}

/* 元サイトに合わせ border-bottom のみ、translate → rotate の順 */
.hero-scroll__arrow {
  width: 8px;
  height: 8px;
  border-bottom: 1px solid #fff;
  transform: translateY(-8px) rotate(45deg);
}

.hero-scroll__label {
  writing-mode: vertical-rl;
  font-family: var(--font-sans);
  font-size: 0.625rem;
  letter-spacing: 0.6em;
  font-weight: 300;
  opacity: 0.8;
}
@media (min-width: 768px) { .hero-scroll__label { font-size: 0.75rem; font-weight: 500; } }

/* ── ABOUT ─────────────────────────────────────────────────────── */
.about-section {
  position: relative;
  background: #dcdcdc; /* 元サイト bg-[#DCDCDC]/85 on white body の相当色 */
  overflow: hidden;
  font-family: var(--font-yugothic);
  color: #1a1a1a;
}

.about-section__watermark {
  position: absolute;
  top: 13%;
  right: 0;
  transform: translateX(40%);
  width: 100%; /* 元サイト同様コンテナ幅に合わせる（overflow:hiddenでクリップ） */
  opacity: .2;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 768px) {
  .about-section__watermark { right: -15%; transform: none; width: 90%; }
}
@media (min-width: 1024px) {
  .about-section__watermark { left: 0; right: auto; top: 40%; width: 35%; transform: translateX(-35%); }
}
.about-section__watermark img { width: 100%; height: auto; filter: brightness(1.1); }

/* Layout: Mobile → single col, Tablet → 2 col, PC → 3 col */
.about-section__inner {
  position: relative;
  z-index: 10;
  padding: 8rem 2rem 0;
  min-height: 100vh;
}
@media (min-width: 768px) {
  .about-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 48rem;
    margin: 0 auto;
    padding: 5rem 3rem;
    min-height: auto;
  }
  .about-section__col--gallery { grid-column: 2; grid-row: 1 / 3; }
}
@media (min-width: 1024px) {
  .about-section__inner {
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 2rem;
    max-width: 80rem;
    padding: 7rem;
    align-items: center;
  }
  .about-section__col--gallery { grid-column: auto; grid-row: auto; }
}
@media (min-width: 1280px) {
  .about-section__inner {
    padding: 9rem 6rem;
    gap: 4rem;
  }
}

.about-section__supertitle {
  font-family: var(--font-segoe-light);
  font-size: .875rem;
  letter-spacing: .2em;
  color: #212122;
  margin: 0 0 1.5rem;
}
@media (min-width: 1024px) { .about-section__supertitle { font-size: .6875rem; } }

.about-section__heading {
  font-size: 2rem;
  font-weight: 700;
  color: #4C4042;
  line-height: 1.3;
  letter-spacing: .05em;
  margin: 0 0 3rem;
}
@media (min-width: 768px) { .about-section__heading { font-size: 2.25rem; margin-bottom: 0; } }
@media (min-width: 1024px) { .about-section__heading { font-size: 2.25rem; } }

/* タブレット: label列をコンテンツの高さだけに留め、row-gapを縮小 */
@media (min-width: 768px) and (max-width: 1023px) {
  .about-section__col--label { align-self: start; }
  .about-section__inner { row-gap: 1.5rem; }
}
@media (min-width: 1024px) {
  .about-section__col--label { align-self: start; padding-top: 7rem; }
}
@media (min-width: 1280px) { .about-section__heading { font-size: 2.25rem; } }

.about-section__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1rem;
  color: #212122;
  line-height: 2;
  letter-spacing: .05em;
  font-weight: 500;
}
.about-section__body p { margin: 0; }
@media (min-width: 1024px) { .about-section__body { font-size: 1rem; gap: 1rem; line-height: 1.9; } }
@media (min-width: 1280px) { .about-section__body { font-size: 1.0625rem; } }

/* Gallery: 3 overlapping images */
.about-gallery {
  position: relative;
  height: 600px; /* min-h-[620px] + pb-40(160px) 相当 */
  margin-top: 5rem; /* mt-20 */
  max-width: 400px;
  margin-inline: auto;
}
@media (min-width: 768px) { .about-gallery { height: 400px; margin-top: 1rem; max-width: none; } }
@media (min-width: 1024px) { .about-gallery { height: 550px; margin-top: 0; max-width: 340px; margin-inline: auto; } }

/* ギャラリー画像ごとのアニメーション遅延（元サイト delay 0.2/0.3/0.4s） */
.about-gallery__item--1.js-reveal { transition-delay: 0.0s; }
.about-gallery__item--2.js-reveal { transition-delay: 0.1s; }
.about-gallery__item--3.js-reveal { transition-delay: 0.2s; }

.about-gallery__item {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.about-gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Mobile positions */
.about-gallery__item--1 { left: 0; top: 0;       width: 85%;  max-width: 366px; aspect-ratio: 4/5;  z-index: 1; }
.about-gallery__item--2 { left: 40%; top: 170px;  width: 215px; aspect-ratio: 1/1; z-index: 20; }
.about-gallery__item--3 { left: -2rem; top: 280px; width: calc(100% + 4rem); max-width: 494px; aspect-ratio: 1/1; z-index: 0; }

@media (min-width: 768px) {
  .about-gallery__item--1 { width: 62%; max-width: none; height: auto; aspect-ratio: 4/5; top: 0; left: 0; }
  .about-gallery__item--2 { top: 32%; right: 0; left: auto; width: 58%; height: auto; aspect-ratio: 1/1; }
  .about-gallery__item--3 { bottom: 0; left: -30px; top: auto; width: 100%; height: auto; aspect-ratio: 3/2; }
}
@media (min-width: 1024px) {
  .about-gallery__item--1 { top: 15%; left: -20%; width: 75%; height: auto; aspect-ratio: 3/4; z-index: 0; }
  .about-gallery__item--2 { bottom: 30%; left: 30%; top: auto; right: auto; transform: translateX(-50%); width: 65%; height: auto; aspect-ratio: 1/1; z-index: 20; }
  .about-gallery__item--3 { top: 50%; left: -30%; bottom: auto; width: 130%; height: auto; aspect-ratio: 5/4; z-index: -1; }
}
@media (min-width: 1280px) {
  .about-gallery__item--1 { width: 65%; }
  .about-gallery__item--2 { width: 60%; }
  .about-gallery__item--3 { width: 135%; }
}

/* ── SERVICES ──────────────────────────────────────────────────── */
.services-section {
  position: relative;
  background: rgba(0,0,0,.95);
  color: #fff;
  padding: 6rem 2rem;
  overflow: hidden;
  font-family: var(--font-yugothic);
}
@media (min-width: 768px) { .services-section { padding: 6rem; } }
@media (min-width: 1024px) { .services-section { padding: 6rem 0; } }

.services-section__inner { max-width: 80rem; margin: 0 auto; }

.services-section__heading-wrap { margin-bottom: 6rem; }
@media (min-width: 1024px) { .services-section__heading-wrap { padding: 0 4rem; margin-bottom: 4rem; } }
@media (min-width: 1280px) { .services-section__heading-wrap { padding: 0 6rem; } }

.services-section__supertitle {
  font-family: var(--font-segoe-light);
  font-size: .875rem;
  letter-spacing: .2em;
  margin: 0 0 3rem;
}
@media (min-width: 1024px) { .services-section__supertitle { font-size: .6875rem; margin-bottom: 2.5rem; } }

.services-section__heading {
  font-size: 1.5625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
  max-width: 48rem;
  margin: 0;
}
@media (min-width: 768px) { .services-section__heading { font-size: 2.25rem; } }
@media (min-width: 1024px) { .services-section__heading { font-size: 2.125rem; } }

.services-section__heading-sub { font-size: 1.125rem; display: block; margin-bottom: .5rem; }
@media (min-width: 768px) { .services-section__heading-sub { font-size: 1.375rem; } }
@media (min-width: 1024px) { .services-section__heading-sub { font-size: 1.5rem; } }

/* Slider container: mobile uses flex-row (btn + viewport + btn), PC uses separate ghost columns */
.services-slider {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .services-slider {
    display: grid;
    grid-template-columns: 22% 1fr 22%;
    grid-template-rows: 1fr auto;
    gap: 2.5rem;
    align-items: start;
  }
}
@media (min-width: 1280px) { .services-slider { gap: 4rem; } }

/* Buttons: absolute over viewport, visible on mobile/tablet only */
.services-slider__btn {
  position: absolute;
  top: 160px;
  transform: translateY(-50%);
  background: rgba(255,255,255,.5);
  border: none;
  cursor: pointer;
  border-radius: 15%;
  padding: .5rem 0;
  z-index: 30;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.services-slider__btn--prev { left: -20px; }
.services-slider__btn--next { right: -20px; }
@media (min-width: 768px) {
  .services-slider__btn { top: 200px; padding: 2rem 6px; }
  .services-slider__btn--prev { left: -50px; }
  .services-slider__btn--next { right: -50px; }
}
@media (min-width: 1024px) { .services-slider__btn { display: none; } }
.services-slider__btn:hover { background: rgba(255,255,255,.7); }

/* Chevron: SVG icon color */
.services-slider__btn svg {
  color: #000;
  display: block;
}
@media (min-width: 768px) {
  .services-slider__btn svg { width: 40px; height: 40px; }
}

/* Wrapper: relative container for button absolute positioning */
.services-slider__wrapper {
  position: relative;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}
@media (min-width: 1024px) { .services-slider__wrapper { display: none; } }

/* Viewport: the sliding window for mobile */
.services-slider__viewport {
  overflow: hidden;
  width: 87%;
  margin: 0 auto;
}

.services-slider__track {
  display: grid; /* grid で全スライドを同セルに重ねる */
}

/* PC: active slide column */
.services-slider__pc-active {
  display: none;
  overflow: hidden;
  min-width: 0;
}
@media (min-width: 1024px) {
  .services-slider__pc-active { display: block; }
}
.services-slider__pc-track {
  display: grid;
}

/* Ghost columns (PC only) */
.services-slider__pc-ghost {
  display: none;
}
@media (min-width: 1024px) {
  .services-slider__pc-ghost {
    display: block;
    position: relative;
    cursor: pointer;
  }
  .services-slider__pc-ghost--prev { order: -1; }
}
.services-slider__pc-ghost-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.services-slider__pc-ghost-img img { width: 100%; height: 100%; object-fit: cover; }
.services-slider__pc-ghost-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  transition: background 0.3s;
}
.services-slider__pc-ghost:hover .services-slider__pc-ghost-overlay { background: rgba(0,0,0,.5); }
.services-slider__pc-ghost-title {
  display: block;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  color: rgba(255,255,255,.5);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .05em;
  z-index: 10;
}

/* Slide: grid の同セルに重ねて、is-active のみ表示 */
.services-slide {
  grid-row: 1;
  grid-column: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.services-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.services-slide__title-row {
  width: 100%;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .1em;
}
@media (min-width: 768px) { .services-slide__title-row { font-size: 1.75rem; } }
@media (min-width: 1024px) { .services-slide__title-row { font-size: 1.5rem; } }

.services-slide__accent {
  display: inline-block;
  background: #fff;
  width: 8px;
  height: 28px;
  transform: skewX(-12deg);
  flex-shrink: 0;
}
@media (min-width: 1024px) { .services-slide__accent { height: 24px; } }

.services-slide__divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.4);
  margin-bottom: 1.2rem;
}

.services-slide__image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  box-shadow: 0 25px 50px rgba(0,0,0,.5);
}
@media (min-width: 1024px) { .services-slide__image-wrap { aspect-ratio: 4 / 3; } }
.services-slide__image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.services-slide__content {
  margin-top: 2rem;
  width: 100%;
  max-width: 48rem;
  align-self: flex-start;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: .05em;
  font-weight: 500;
  font-family: var(--font-yugothic);
  color: #fff;
  min-height: 7.5rem;
}
.services-slide__content p { margin: 0; }
@media (min-width: 1024px) { .services-slide__content { font-size: .875rem; line-height: 1.8; min-height: 3.5rem; } }

/* Indicator: spans all 3 columns on PC */
.services-slider__indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  margin-top: 2.5rem;
  width: 100%;
}
@media (min-width: 1024px) {
  .services-slider__indicator { grid-column: 1 / 4; }
}

.services-slider__dots { display: flex; align-items: center; gap: .5rem; }
.services-slider__dot {
  width: 1.5rem;
  height: 2px;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.services-slider__dot.is-active { background: #fff; }

.services-slider__counter {
  font-size: .6875rem;
  letter-spacing: .2em;
  color: rgba(255,255,255,.4);
  font-family: var(--font-sans);
}

.services-section__cta {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) { .services-section__cta { margin-top: 3rem; } }

/* ── WORK FLOW ─────────────────────────────────────────────────── */
.workflow-section {
  position: relative;
  padding: 3.75rem 1.5rem 5rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .workflow-section { padding-bottom: 8rem; } }
.workflow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #dcdcdc; /* solid — 黒bodyとのブレンドを避ける */
  z-index: -1;
}

.workflow-section__bg-text {
  position: absolute;
  top: 200px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
  font-size: 10vw;
  font-weight: 700;
  color: #000;
  letter-spacing: .15em;
  opacity: .2;
}
@media (min-width: 768px) { .workflow-section__bg-text { font-size: 5rem; top: 200px; } }
@media (min-width: 1024px) { .workflow-section__bg-text { font-size: 6.25rem; top: 250px; } }

.workflow-section__inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .workflow-section__inner { padding: 0 3rem; }
}

.workflow-section__vertical-text {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start; /* stretchを防いでボーダーがテキスト高さのみに収まる */
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}
@media (min-width: 768px) { .workflow-section__vertical-text { gap: 2rem; margin-bottom: 3.5rem; padding-top: 2.5rem; } }

.workflow-section__vtext {
  writing-mode: vertical-rl;
  font-family: var(--font-yugothic);
  color: #4C4042;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: .2em;
  border-right: 1px solid #4C4042;
  opacity: .8;
  padding-bottom: .5rem;
}
@media (min-width: 768px) { .workflow-section__vtext { font-size: 2.125rem; } }
/* margin-top は front-page.php でカラム数に応じてインライン生成 */
.workflow-section__vtext.is-visible { opacity: .8; } /* js-reveal.is-visible(opacity:1)を上書き */

.workflow-section__desc {
  margin-bottom: 6rem;
  font-family: var(--font-yugothic);
  font-weight: 500;
  color: #4C4042;
  font-size: 1rem;
  line-height: 2.2;
}
.workflow-section__desc p { margin: 0; }
@media (min-width: 1024px) { .workflow-section__desc { display: flex; justify-content: center; margin-bottom: 5rem; } }

.workflow-steps { list-style: none; margin: 0 0 6rem; padding: 0; }
@media (min-width: 1024px) {
  .workflow-steps { max-width: 36rem; margin-left: auto; margin-right: auto; margin-bottom: 3rem; }
}

.workflow-step { display: flex; flex-direction: column; align-items: flex-start; }
.workflow-step__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 0 1rem;
}
@media (min-width: 768px) { .workflow-step__inner { gap: 3rem; } }
@media (min-width: 1024px) {
  .workflow-step__inner { gap: 2.5rem; padding: .75rem 1rem; border-radius: .25rem; transition: background 0.3s; }
  .workflow-step:hover .workflow-step__inner { background: rgba(76,64,66,.08); }
}

.workflow-step__badge {
  flex-shrink: 0;
  width: 5rem;
  background: #000;
  border-radius: .625rem;
  border: 1px solid rgba(76,64,66,.3);
  padding: .25rem 0;
  text-align: center;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .1em;
}
@media (min-width: 768px) { .workflow-step__badge { width: 7rem; font-size: .9375rem; padding: .375rem 0; } }
@media (min-width: 1024px) { .workflow-step__badge { display: none; } }

.workflow-step__num {
  display: none;
}
@media (min-width: 1024px) {
  .workflow-step__num {
    display: block;
    flex-shrink: 0;
    color: rgba(76,64,66,.4);
    font-size: .6875rem;
    letter-spacing: .25em;
    width: 1.5rem;
  }
}

.workflow-step__title {
  font-family: var(--font-yugothic);
  color: #212122;
  font-weight: 500;
  font-size: 1.125rem;
  letter-spacing: .05em;
}
@media (min-width: 1024px) {
  .workflow-step__title { font-size: 1rem; transition: color 0.3s; }
  .workflow-step:hover .workflow-step__title { color: #4C4042; }
}

.workflow-step__connector {
  width: 5rem;
  display: flex;
  justify-content: center;
  margin-left: 1rem;
}
.workflow-step__connector::before {
  content: '';
  display: block;
  width: 1px;
  height: 2.5rem;
  background: rgba(76,64,66,.3);
}
@media (min-width: 768px) { .workflow-step__connector { width: 7rem; } }
@media (min-width: 1024px) {
  .workflow-step__connector { width: 2rem; }
  .workflow-step__connector::before { background: rgba(76,64,66,.2); height: 1.25rem; }
}

.workflow-section__cta { display: flex; justify-content: center; margin-top: 2rem; }

/* ── ARCHIVE ────────────────────────────────────────────────────── */
.archive-section {
  position: relative;
  padding: 10rem 0 5rem;
  overflow: hidden;
}
@media (min-width: 1024px) { .archive-section { padding: 16rem 0 10rem; } }

.archive-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.archive-section__bg img { width: 100%; height: 100%; object-fit: cover; }
.archive-section__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.7);
}

.archive-section__bg-text {
  position: absolute;
  top: -6.25rem;
  left: 0;
  right: 0;
  z-index: -1;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  white-space: nowrap;
  font-size: 2.5rem;
  font-weight: 700;
  color: #000;
  letter-spacing: .15em;
  opacity: .6;
}
@media (min-width: 768px) { .archive-section__bg-text { font-size: 6.25rem; top: -3.75rem; } }
@media (min-width: 1024px) { .archive-section__bg-text { top: -12rem; } }

.archive-section__inner {
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
/* タブレット: ウォーターマークが drag hint より上に来るよう内側コンテンツを下にずらす */
@media (min-width: 768px) and (max-width: 1023px) {
  .archive-section__inner { padding-top: 7rem; }
}
@media (min-width: 1024px) { .archive-section__inner { padding: 0 4rem; } }

.archive-section__drag-hint {
  text-align: center;
  color: rgba(33,33,34,.4);
  font-size: .6875rem;
  letter-spacing: .3em;
  margin-bottom: 1.5rem;
  transition: opacity 0.3s;
}
@media (min-width: 1024px) { .archive-section__drag-hint { margin-top: 7rem; } }
.archive-section__drag-hint.is-dragging { opacity: 0; }

/* Slider wrapper: constrain width on tablet */
.archive-slider-wrap {
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}
@media (min-width: 1024px) { .archive-slider-wrap { max-width: 920px; } }

.archive-drag-slider { width: 100%; overflow: hidden; }
.archive-drag-slider.is-loopable { cursor: grab; }
.archive-drag-slider.is-loopable:active { cursor: grabbing; }

.archive-drag-slider__track {
  display: flex;
  gap: 1rem;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: transform 0s;
}
.archive-drag-slider__track:active { cursor: grabbing; }
@media (min-width: 768px) { .archive-drag-slider__track { gap: 1.25rem; } }

.archive-card {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 3/4;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
  position: relative;
}
@media (min-width: 768px) { .archive-card { width: 320px; } }
.archive-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease-in-out; }
.archive-card:hover img { transform: scale(1.1); }
.archive-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.4);
  padding: .75rem 1rem;
  transform: translateY(100%);
  transition: transform 0.3s;
}
.archive-card:hover .archive-card__overlay { transform: none; }
.archive-card__title {
  color: #fff;
  font-family: var(--font-yugothic);
  font-size: .8125rem;
  letter-spacing: .1em;
  margin: 0;
}
@media (min-width: 768px) { .archive-card__title { font-size: .9375rem; } }
.archive-card__category {
  color: rgba(255,255,255,.7);
  font-family: var(--font-yugothic);
  font-size: .6875rem;
  letter-spacing: .1em;
}

.archive-section__cta { display: flex; justify-content: center; margin-top: 5rem; }
@media (min-width: 1024px) { .archive-section__cta { margin-top: 3rem; } }

.archive-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 5rem 0;
}
.archive-coming-soon__text {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #555;
}
.archive-coming-soon__sub {
  font-size: 0.9375rem;
  color: #888;
  letter-spacing: 0.1em;
}

/* ── CONTACT ────────────────────────────────────────────────────── */
.contact-section {
  position: relative;
  padding: 6rem 1.5rem;
  background: #000;
}
@media (min-width: 1024px) { .contact-section { padding: 8rem 1.5rem; } }

.contact-section__inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-section__heading {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 600;
  font-family: var(--font-sans);
  letter-spacing: .1em;
  margin: 0 0 3rem;
}
@media (min-width: 768px) { .contact-section__heading { font-size: 4.5rem; } }
@media (min-width: 1024px) { .contact-section__heading { font-size: 5rem; margin-bottom: 4rem; } }

.contact-section__cta { margin-bottom: 5rem; }
@media (min-width: 1024px) { .contact-section__cta { margin-bottom: 3.5rem; } }

.contact-section__sns-text {
  color: #fff;
  font-family: var(--font-yugothic);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.8;
  letter-spacing: .1em;
  text-align: center;
  margin: 0 0 3.5rem;
}
@media (min-width: 768px) { .contact-section__sns-text { font-size: 1.25rem; } }
@media (min-width: 1024px) { .contact-section__sns-text { font-size: 1rem; margin-bottom: 2.5rem; } }

.contact-section__sns { display: flex; flex-direction: column; align-items: center; gap: 0.875rem; }
.contact-section__sns-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 10rem;
  padding: 0.625rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.375rem;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s, opacity 0.3s;
}
.contact-section__sns-link:hover { background: rgba(255, 255, 255, 0.15); opacity: 1; }
.contact-section__sns-link svg { width: 1.5rem; height: 1.5rem; fill: currentColor; flex-shrink: 0; }
.contact-section__sns-name { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.05em; line-height: 1; }
.contact-section__sns-custom-icon { width: 1.5rem; height: 1.5rem; object-fit: contain; flex-shrink: 0; }
@media (min-width: 768px) {
  .contact-section__sns { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem; }
  .contact-section__sns-link svg { width: 1.75rem; height: 1.75rem; }
}

/* ================================================================
   セクションビルダー（page-builder.php）
   ================================================================ */

/* ── パンくずラッパー（セクションビルダー用：セクション外に配置） ─── */
.pb-breadcrumbs-wrap {
  padding: 1.5rem var(--container-px-sm);
}
@media (min-width: 1024px) {
  .pb-breadcrumbs-wrap { padding: 1.5rem var(--container-px); }
}
@media (min-width: 1440px) {
  .pb-breadcrumbs-wrap { padding: 1.5rem 6rem; }
}
/* ラッパー内のbreadcrumbsはラッパーのpaddingを使用するためリセット */
.pb-breadcrumbs-wrap .breadcrumbs {
  padding: 0;
  max-width: none;
  margin: 0;
}

/* ── 共通 ─────────────────────────────────────────────────────── */
.pb-section { overflow: hidden; }


/* ── ① ヒーローバナー ─────────────────────────────────────────── */
.pb-hero-banner {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-hero-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.pb-hero-banner__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pb-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
}

.pb-hero-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem var(--container-px-sm);
}

.pb-hero-banner__title-jp {
  font-family: var(--font-yugothic);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--color-white);
  margin: 0 0 .5rem;
  letter-spacing: .1em;
}

.pb-hero-banner__title-en {
  font-size: clamp(.75rem, 1.5vw, .875rem);
  letter-spacing: .2em;
  color: rgba(255,255,255,.6);
}

/* ── ② 見出し＋本文 ─────────────────────────────────────────── */
.pb-heading-text { padding-block: 3rem; }
@media (min-width: 768px) { .pb-heading-text { padding-block: 5rem; } }

.pb-heading-text .section-heading { margin-bottom: 1.75rem; }
@media (min-width: 768px) { .pb-heading-text .section-heading { margin-bottom: 2.25rem; } }


.pb-heading-text .entry-content {
  font-size: .9375rem;
  line-height: 2;
  color: #3d3d3e;
  max-width: 40em;
}
@media (min-width: 768px) {
  .pb-heading-text .entry-content { font-size: 1rem; }
}

/* ── ③ 画像＋テキスト ─────────────────────────────────────────── */
.pb-image-text { padding-block: 3rem; }
@media (min-width: 768px) { .pb-image-text { padding-block: 5rem; } }

.pb-image-text__layout {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .pb-image-text__layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .pb-image-text--img-right .pb-image-text__img-col { order: 2; }
  .pb-image-text--img-right .pb-image-text__text-col { order: 1; }
}
@media (min-width: 1200px) {
  .pb-image-text__layout { gap: 5rem; }
}

.pb-image-text__img-col img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,.12);
  display: block;
}

.pb-image-text__heading {
  font-family: var(--font-yugothic);
  font-size: clamp(1.125rem, 2.25vw, 1.5rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: .04em;
  line-height: 1.4;
}

.pb-image-text__text-col .entry-content {
  font-size: .9375rem;
  line-height: 2;
  color: #3d3d3e;
  margin-top: .25rem;
}

/* ── ④ CTA ─────────────────────────────────────────────────────── */
.pb-cta {
  padding-block: 3.5rem;
  text-align: center;
}
@media (min-width: 768px) { .pb-cta { padding-block: 5rem; } }

.pb-cta--dark  { background: var(--color-black); }
.pb-cta--light { background: #f4f4f2; }

.pb-cta--dark  .pb-cta__text { color: var(--color-white); }
.pb-cta--light .pb-cta__text { color: var(--color-black); }

/* ── 見出し＋本文 ダークバリアント ─────────────────────────────── */
.pb-heading-text--dark { background: var(--color-black); }
.pb-heading-text--dark .section-heading__title { color: var(--color-white); }
.pb-heading-text--dark .section-heading__en    { color: rgba(255,255,255,.3); }
.pb-heading-text--dark .entry-content,
.pb-heading-text--dark .entry-content p,
.pb-heading-text--dark .entry-content h2,
.pb-heading-text--dark .entry-content h3,
.pb-heading-text--dark .entry-content h4,
.pb-heading-text--dark .entry-content li,
.pb-heading-text--dark .entry-content strong { color: rgba(255,255,255,.82); }
.pb-heading-text--dark .entry-content a { color: var(--color-white); }

/* ── FAQ（アコーディオン） ───────────────────────────────────────── */
.pb-faq-list { padding-block: 3rem; }
@media (min-width: 768px) { .pb-faq-list { padding-block: 5rem; } }

.pb-faq__list { margin: 0; padding: 0; }
.pb-faq__item { border-bottom: 1px solid rgba(33,33,34,.12); }
.pb-faq__item:first-child { border-top: 1px solid rgba(33,33,34,.12); }

.pb-faq__btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.375rem .25rem;
  text-align: left;
  font-weight: normal;
  transition: background .15s;
}
.pb-faq__btn:hover { background: rgba(0,0,0,.025); }
.pb-faq__btn:hover .pb-faq__q-text { opacity: .7; }

.pb-faq__q-label,
.pb-faq__a-label {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.6;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  letter-spacing: .02em;
}

.pb-faq__q-text {
  font-family: var(--font-yugothic);
  font-size: .9375rem;
  color: #212122;
  line-height: 1.8;
  flex: 1;
  transition: opacity .2s;
}
@media (min-width: 768px) { .pb-faq__q-text { font-size: 1rem; } }

.pb-faq__icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  position: relative;
  margin-top: .3rem;
}
.pb-faq__icon::before,
.pb-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--color-black);
  border-radius: 1px;
}
.pb-faq__icon::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.pb-faq__icon::after  { width: 2px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); transition: transform .25s ease, opacity .25s ease; }
.pb-faq__btn[aria-expanded="true"] .pb-faq__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.pb-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .38s cubic-bezier(.4,0,.2,1);
  margin: 0;
}
.pb-faq__answer.is-open { max-height: 1000px; }

.pb-faq__answer-inner {
  display: flex;
  gap: 1rem;
  padding: 1rem 1rem 1.375rem;
  background: #fafaf9;
  border-radius: 0 0 4px 4px;
  margin-bottom: .25rem;
}

.pb-faq__a-text {
  flex: 1;
  font-size: .9375rem;
  line-height: 1.9;
  color: #3d3d3e;
}
.pb-faq__a-text p { margin: 0 0 .5em; }
.pb-faq__a-text p:last-child { margin-bottom: 0; }

/* ── 写真ギャラリー ─────────────────────────────────────────────── */
.pb-gallery-grid { padding-block: 3rem; }
@media (min-width: 768px) { .pb-gallery-grid { padding-block: 5rem; } }

.pb-gallery__grid {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .pb-gallery__grid { gap: .625rem; } }
@media (min-width: 768px) {
  .pb-gallery__grid { gap: .75rem; }
  .pb-gallery__grid--col-2 { grid-template-columns: repeat(2, 1fr); }
  .pb-gallery__grid--col-3 { grid-template-columns: repeat(3, 1fr); }
  .pb-gallery__grid--col-4 { grid-template-columns: repeat(4, 1fr); }
}

/* 1枚のときはコンテナ幅いっぱいに */
.pb-gallery__grid--single { grid-template-columns: 1fr; gap: 0; }
.pb-gallery__grid--single .pb-gallery__item img {
  height: clamp(220px, 42vw, 520px);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.pb-gallery__item { overflow: hidden; border-radius: 4px; }
.pb-gallery__item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, opacity .2s;
}
.pb-gallery__item:hover img { transform: scale(1.04); opacity: .9; }
@media (min-width: 480px)  { .pb-gallery__item img { height: 180px; } }
@media (min-width: 768px)  { .pb-gallery__item img { height: 220px; } }
@media (min-width: 1024px) { .pb-gallery__item img { height: 260px; } }

/* ── ページビルダー SP / Tablet レスポンシブ調整 ─────────────── */
@media (max-width: 767px) {
  /* 見出し＋本文：行間・フォントを若干引き締め */
  .pb-heading-text { padding-block: 2.25rem; }

  /* 画像＋テキスト：画像を先に表示（img-rightでも同様） */
  .pb-image-text { padding-block: 2.25rem; }
  .pb-image-text__layout { gap: 1.75rem; }
  .pb-image-text--img-right .pb-image-text__img-col,
  .pb-image-text--img-right .pb-image-text__text-col { order: unset; }
  .pb-image-text__img-col { order: -1; }
  .pb-image-text__img-col img { aspect-ratio: 16 / 9; border-radius: 6px; }
  .pb-image-text__heading {
    font-size: 1.0625rem;
    margin-bottom: .75rem;
  }

  /* FAQ：タップしやすいように */
  .pb-faq-list { padding-block: 2.25rem; }
  .pb-faq__btn { padding: 1.125rem .125rem; gap: .75rem; }
  .pb-faq__q-text { font-size: .875rem; }

  /* ギャラリー：SP は1枚のとき少し低く */
  .pb-gallery-grid { padding-block: 2.25rem; }
  .pb-gallery__grid--single .pb-gallery__item img { height: clamp(180px, 55vw, 300px); }

  /* CTA */
  .pb-cta { padding-block: 2.5rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* タブレット：画像＋テキストの横並びを55/45に */
  .pb-image-text__layout { grid-template-columns: 55fr 45fr; gap: 2.5rem; }
}

/* ================================================================
   404 Not Found
   ================================================================ */
.not-found-section { background: #f5f5f5; }
.not-found-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  padding-block: 5rem;
}
.not-found-section__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1;
  letter-spacing: 0.05em;
}
.not-found-section__message {
  font-size: 1rem;
  color: #212122;
  line-height: 1.8;
}
@media (min-width: 768px) {
  .not-found-section__message { font-size: 1.0625rem; }
}

.pb-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding-inline: var(--container-px-sm);
}

.pb-cta__text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-family: var(--font-yugothic);
  letter-spacing: .05em;
  margin: 0;
}
@media (min-width: 1024px) { .contact-section__sns-link svg { width: 1.5rem; height: 1.5rem; } }

/* ── Contact Form 7 統合スタイル ──────────────────────────────── */

/* CF7ラッパーのリセット */
.wpcf7 { margin: 0; }
.wpcf7-form { margin: 0; }

/* CF7のフィールドラップをblock表示 */
.wpcf7-form-control-wrap { display: block; width: 100%; }

/* バリデーションエラーメッセージ */
.wpcf7-not-valid-tip {
  display: block;
  font-size: .75rem;
  color: #e74c3c;
  margin-top: .35rem;
  font-family: var(--font-yugothic);
}

/* 送信中スピナー */
.wpcf7-spinner {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: .75rem;
  vertical-align: middle;
}
.wpcf7-form.submitting .wpcf7-spinner { display: inline-block; }

/* 送信結果メッセージ */
.wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: .875rem 1rem;
  border-radius: 4px;
  font-size: .875rem;
  font-family: var(--font-yugothic);
  letter-spacing: .04em;
  border: none;
}
.wpcf7-form.sent .wpcf7-response-output {
  background: #e8f5e9;
  color: #2e7d32;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
  background: #fdecea;
  color: #c62828;
}

/* CF7 submit ボタン: 高い詳細度で pill スタイルを確実に適用 */
.wpcf7 input[type="submit"].contact-form__submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  width: 13rem;
  padding: .875rem 1rem;
  background: #4C4042;
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-family: var(--font-yugothic);
  font-size: 1rem;
  letter-spacing: .1em;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
  vertical-align: middle;
}
@media (min-width: 1024px) {
  .wpcf7 input[type="submit"].contact-form__submit { font-size: .875rem; width: 12rem; padding: .875rem 1rem; }
}
.wpcf7 input[type="submit"].contact-form__submit:hover:not(:disabled) { opacity: .8; }
.wpcf7 input[type="submit"].contact-form__submit:disabled { cursor: not-allowed; }

/* CF7 acceptanceチェックボックス: labelをflexにして上下中央揃え */
.wpcf7-acceptance label { display: inline-flex !important; align-items: center !important; gap: .75rem; cursor: pointer; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item-label { font-size: .875rem; color: #212122; letter-spacing: .05em; }

/* ================================================================
   大型モニター対応
   1440px: コンテナ拡張(1440px) + 見出しスケールアップ約10%
   1920px: コンテナ拡張(1600px) + さらにスケールアップ
   ================================================================ */

/* ── 1440px ──────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  :root {
    --container-max: 90rem;  /* 1440px */
    --container-px: 4rem;
  }

  /* ── ヒーロー ── */
  .hero-logo img { width: 260px; }

  /* ── 下層ページヒーロー ── */
  .page-hero { height: 56vh; }
  .page-hero__title-jp { font-size: 3.75rem; }   /* 52 → 60px */
  .page-hero__title-en { font-size: 2rem; }       /* 26 → 32px */

  /* ── 共通セクション見出し ── */
  .section-heading__title { font-size: 2.75rem; } /* 40 → 44px */

  /* ── ホーム ABOUT ── */
  .about-section__inner { padding: 9rem 8rem; }
  .about-section__heading { font-size: 2.5rem; }  /* 36 → 40px */
  .about-section__body    { font-size: 1.0625rem; } /* 16 → 17px */

  /* ── ホーム SERVICES ── */
  .services-section__heading-wrap { padding: 0 8rem; }
  .services-section__heading     { font-size: 2.375rem; } /* 34 → 38px */
  .services-section__heading-sub { font-size: 1.625rem; } /* 24 → 26px */
  .services-slider { gap: 5rem; }
  .services-slide__title-row { font-size: 1.625rem; }     /* 24 → 26px */

  /* ── ホーム WORKFLOW ── */
  .workflow-section__vtext    { font-size: 2.375rem; }    /* 34 → 38px */
  .workflow-section__bg-text  { font-size: 8rem; }        /* 100 → 128px */

  /* ── ホーム ARCHIVE ── */
  .archive-section__bg-text  { font-size: 8rem; }         /* 100 → 128px */
  .archive-slider-wrap       { max-width: 1100px; }
  .archive-card              { width: 360px; }

  /* ── ホーム CONTACT ── */
  .contact-section__heading  { font-size: 5.5rem; }       /* 80 → 88px */
  .contact-section__sns-text { font-size: 1.0625rem; }

  /* ── About ページ ── */
  .greeting-section .section-heading__title { font-size: 3rem; } /* 44 → 48px */
  .greeting-body   { font-size: 1.0625rem; }
  .map-info__city  { font-size: 1.75rem; }                /* 26 → 28px */

  /* ── 下層ページ共通レイアウト ── */
  .inner-section__container { padding: 0 6rem; }          /* 4rem → 6rem */
  .privacy-section .inner-section__container { padding: 0 4rem; } /* プライバシーは1024px幅と同一 */
  .breadcrumbs               { padding: 1rem 6rem; }

  /* ── CPT 一覧 ── */
  .product-search-wrap  { padding: 0 6rem; }
  .cpt-archive-layout   { padding: 0 6rem; }
  .cpt-grid             { grid-template-columns: 1fr 1fr 1fr; } /* 2 → 3 列 */
  .cpt-sidebar          { width: 15rem; }

  /* ── フッター ── */
  .site-footer__inner   { padding-inline: 8rem; }         /* 6rem → 8rem */
}
