/* ==========================================================================
   株式会社スズモク サイト共通スタイル
   配色・トーンは既存（利休鼠 × 生成り）を維持しつつ全体を洗練
   ========================================================================== */

:root {
  --bg: #f6f2e8;
  --surface: #ffffff;
  --surface-soft: #ebe7dc;
  --rikyu: #888e7e;
  --rikyu-dark: #5f665b;
  --rikyu-deep: #3f463f;
  --ink: #20211f;
  --muted: #68685f;
  --line: #d8d2c3;
  --sand: #d8c7ad;
  /* 影は2層構成：接地感のある近影＋ふわっと広がる遠影 */
  --shadow: 0 2px 6px rgba(32, 33, 31, 0.10), 0 22px 48px rgba(32, 33, 31, 0.16);
  --shadow-soft: 0 1px 3px rgba(32, 33, 31, 0.09), 0 12px 28px rgba(32, 33, 31, 0.10);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "BIZ UDMincho", "MS PMincho", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  /* 単色面を避け、紙に光が当たったような淡い起伏をつける */
  background:
    radial-gradient(1100px 600px at 12% -5%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(900px 700px at 95% 30%, rgba(136, 142, 126, 0.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Meiryo",
    system-ui,
    sans-serif;
  font-size: 17px;
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(136, 142, 126, 0.35);
}

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

:focus-visible {
  outline: 3px solid rgba(95, 102, 91, 0.65);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Skip link
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  color: #fff;
  background: var(--rikyu-deep);
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  line-height: 1.4;
  transform: translateY(-110%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* --------------------------------------------------------------------------
   Header / Global nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 242, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 210, 195, 0.85);
  box-shadow: 0 10px 28px -16px rgba(32, 33, 31, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
  transition: min-height 0.35s var(--ease);
}

/* スクロール後はヘッダーを少し締める（JSが .is-scrolled を付与） */
.site-header.is-scrolled .header-inner {
  min-height: 62px;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px -14px rgba(32, 33, 31, 0.30);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-wordmark {
  display: block;
  width: clamp(182px, 24vw, 238px);
  height: auto;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: linear-gradient(135deg, var(--rikyu), var(--rikyu-dark));
  border-radius: 50%;
  letter-spacing: 0.05em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-8deg) scale(1.04);
}

.brand-symbol {
  font-size: 1.15rem;
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.global-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 0.98rem;
  color: var(--muted);
}

.global-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1.5px;
  background: var(--rikyu);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.global-nav a:hover {
  color: var(--rikyu-deep);
}

.global-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.global-nav a[aria-current="page"] {
  color: var(--rikyu-deep);
  font-weight: 700;
}

.global-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.global-nav .nav-cta {
  padding: 8px 20px;
  color: #fff;
  background: var(--rikyu-deep);
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.global-nav .nav-cta::after {
  display: none;
}

.global-nav .nav-cta:hover {
  color: #fff;
  background: var(--rikyu-dark);
  transform: translateY(-1px);
}

/* 言語切替（JP/EN） */
.global-nav .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--rikyu-deep);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.lang-switch-icon {
  flex: none;
  opacity: 0.75;
}

.global-nav .lang-switch::after {
  display: none;
}

.global-nav .lang-switch:hover {
  border-color: var(--rikyu);
  background: rgba(136, 142, 126, 0.10);
}

/* Hamburger (mobile) */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--rikyu-deep);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  /* 明朝見出し：静謐さを保ったまま「格」を出す */
  font-family: var(--font-serif);
  font-weight: 600;
}

h1 {
  font-size: clamp(2.45rem, 4.2vw, 3.75rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  word-break: keep-all;
  line-break: strict;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

h3 {
  font-size: 1.24rem;
  margin-bottom: 12px;
}

.no-break {
  white-space: nowrap;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--rikyu-dark);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--rikyu);
  flex: none;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

/* ホバー時、ボタンの表面を光が一度だけ走る */
.button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-110%);
  pointer-events: none;
}

.button.primary:hover::after {
  transform: translateX(110%);
  transition: transform 0.65s ease;
}

.button.primary {
  color: #fff;
  background: var(--rikyu-deep);
  box-shadow: 0 10px 22px rgba(63, 70, 63, 0.20);
}

.button.primary:hover {
  background: var(--rikyu-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(63, 70, 63, 0.26);
}

.button.secondary {
  color: var(--rikyu-deep);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--rikyu);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.button:active {
  transform: translateY(0);
}

.button .arrow {
  transition: transform 0.25s var(--ease);
}

.button:hover .arrow {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 96px 0 84px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 142, 126, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-title span {
  display: block;
}

.hero-lead {
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 2.05;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-note a {
  color: var(--rikyu-deep);
  font-weight: 700;
  border-bottom: 1px solid var(--rikyu);
}

.hero-card {
  min-height: 430px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(136, 142, 126, 0.16), rgba(136, 142, 126, 0.34)),
    repeating-linear-gradient(
      90deg,
      rgba(95, 102, 91, 0.09) 0,
      rgba(95, 102, 91, 0.09) 1px,
      transparent 1px,
      transparent 44px
    ),
    var(--surface-soft);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 52px;
  border: 2px solid rgba(63, 70, 63, 0.18);
  border-radius: 28px;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 30px;
  width: 64px;
  height: 64px;
  border-top: 2px solid rgba(63, 70, 63, 0.35);
  border-left: 2px solid rgba(63, 70, 63, 0.35);
  border-radius: 8px 0 0 0;
}

.hero-card-inner {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(310px, calc(100% - 56px));
  padding: 24px;
  color: #fff;
  background: rgba(63, 70, 63, 0.92);
  border-radius: 22px;
  backdrop-filter: blur(4px);
}

.card-label {
  color: #d8d2c3;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-card-inner ul {
  margin: 0;
  padding-left: 1.2em;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   フルスクリーンヒーロー
   -------------------------------------------------------------------------- */

.hero-full {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(580px, 86vh, 860px);
  overflow: hidden;
  color: #fff;
}

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

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
  opacity: 0;
  transform: scale(1.06);
  transform-origin: 58% 42%;
  transition: opacity 1.8s ease;
  will-change: transform, opacity;
}

/* アクティブなスライドだけが表示され、カメラワーク（Ken Burns）が始まる */
.hero-bg img.is-active {
  opacity: 1;
  animation: kenBurnsFull 16s ease-in-out infinite alternate;
}

/* 偶数番目のスライドは逆方向（引きのカメラワーク）で単調さを防ぐ */
.hero-bg img:nth-child(even).is-active {
  animation-name: kenBurnsAlt;
}

@keyframes kenBurnsFull {
  from {
    transform: scale(1.06) translate(0, 0);
  }
  to {
    transform: scale(1.18) translate(-2.4%, 1.8%);
  }
}

@keyframes kenBurnsAlt {
  from {
    transform: scale(1.18) translate(2.2%, -1.6%);
  }
  to {
    transform: scale(1.06) translate(0, 0);
  }
}

.hero-bg::after {
  /* 左を深く沈めて文字を立たせ、右へ抜ける映画的グラデーション */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(26, 28, 25, 0.84) 0%, rgba(40, 45, 39, 0.62) 46%, rgba(40, 45, 39, 0.18) 78%, rgba(40, 45, 39, 0.06) 100%),
    linear-gradient(0deg, rgba(26, 28, 25, 0.45), transparent 32%);
}

.hero-content {
  position: relative;
  padding: 110px 0 130px;
}

.hero-full .hero-title {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.22;
  margin-bottom: 10px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.4);
}

.hero-full .hero-title span {
  display: inline-block;
  white-space: nowrap;
}

.hero-en {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  color: var(--sand);
  font-weight: 700;
  font-size: clamp(1rem, 1.9vw, 1.35rem);
  letter-spacing: 0.14em;
}

.hero-en::after {
  content: "";
  width: 64px;
  height: 1.5px;
  background: rgba(216, 199, 173, 0.6);
  flex: none;
}

.hero-full .hero-lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-full .hero-note {
  color: rgba(255, 255, 255, 0.78);
}

.hero-full .hero-note a {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.hero-full .button.primary {
  color: var(--rikyu-deep);
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.30);
}

.hero-full .button.primary:hover {
  background: var(--bg);
}

.hero-full .button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-full .button.secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.hero-panel {
  position: absolute;
  right: 44px;
  bottom: 52px;
  width: 300px;
  padding: 22px 26px;
  background: rgba(30, 33, 29, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-panel ul {
  margin: 0;
  padding-left: 1.2em;
}

.hero-panel li {
  margin: 0.2em 0;
}

.hero-full .photo-note {
  position: absolute;
  left: 22px;
  bottom: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(rgba(255, 255, 255, 0.85), transparent);
  animation: scrollCue 2.2s ease-in-out infinite;
}

@keyframes scrollCue {
  0% {
    transform: translateY(-6px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

.section {
  position: relative;
  padding: 84px 0;
  overflow: clip;
}

.section.muted {
  /* 上下端をわずかに沈ませて「段差」をつくる */
  background: linear-gradient(180deg, #e7e2d3 0%, var(--surface-soft) 14%, var(--surface-soft) 86%, #e7e2d3 100%);
  border-top: 1px solid rgba(216, 210, 195, 0.9);
  border-bottom: 1px solid rgba(216, 210, 195, 0.9);
  box-shadow:
    inset 0 14px 28px -22px rgba(32, 33, 31, 0.30),
    inset 0 -14px 28px -22px rgba(32, 33, 31, 0.22);
}

.section-heading {
  position: relative;
  z-index: 0;
  max-width: 760px;
  margin-bottom: 40px;
}

/* 見出し裏の大型ゴースト英字（data-en属性から生成） */
.section-heading[data-en]::before {
  content: attr(data-en);
  position: absolute;
  z-index: -1;
  top: -0.42em;
  left: -0.03em;
  font-size: clamp(4.2rem, 10vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: rgba(95, 102, 91, 0.08);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  /* JSがスクロール位置に応じて --ghost-y を更新（パララックス） */
  transform: translateY(var(--ghost-y, 0px));
}

.section.muted .section-heading[data-en]::before {
  color: rgba(95, 102, 91, 0.10);
}

.section-heading p,
.two-column p,
.cta p,
.page-hero p {
  color: var(--muted);
}

.section-footer {
  margin-top: 36px;
  text-align: center;
}

.two-column {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: start;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card-grid,
.works-preview,
.works-grid,
.contact-layout {
  display: grid;
  gap: 22px;
}

.card-grid.three,
.works-preview,
.works-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.feature-card,
.work-card,
.contact-form-card,
.contact-side-card {
  display: block;
  /* わずかな縦グラデで「面の向き」を感じさせる */
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf5 100%);
  border: 1px solid var(--line);
  border-bottom-color: #cdc6b4;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-soft);
}

.service-card,
.work-card {
  position: relative;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.service-card:hover,
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(136, 142, 126, 0.6);
}

.service-card .card-arrow,
.work-card .card-arrow {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--rikyu-deep);
  background: rgba(136, 142, 126, 0.14);
  border-radius: 50%;
  font-weight: 700;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-card:hover .card-arrow,
.work-card:hover .card-arrow {
  color: #fff;
  background: var(--rikyu-deep);
  transform: translateX(2px);
}

.card-number {
  display: inline-block;
  color: var(--rikyu-dark);
  font-weight: 800;
  margin-bottom: 26px;
  letter-spacing: 0.08em;
}

.card-number::after {
  content: "";
  display: block;
  width: 30px;
  height: 1.5px;
  margin-top: 8px;
  background: var(--line);
}

.feature-card {
  border-top: 3px solid var(--rikyu);
}

.text-link {
  display: inline-block;
  color: var(--rikyu-deep);
  font-weight: 700;
  margin-top: 10px;
  border-bottom: 1px solid var(--rikyu);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.text-link:hover {
  color: var(--rikyu-dark);
  border-color: var(--rikyu-deep);
}

/* --------------------------------------------------------------------------
   Works
   -------------------------------------------------------------------------- */

.work-image {
  height: 190px;
  margin: -8px -8px 18px;
  border-radius: 18px;
  background: var(--surface-soft);
  overflow: hidden;
}

.work-image.placeholder {
  background:
    linear-gradient(135deg, rgba(136, 142, 126, 0.10), rgba(136, 142, 126, 0.32)),
    repeating-linear-gradient(
      -45deg,
      rgba(63, 70, 63, 0.08) 0,
      rgba(63, 70, 63, 0.08) 1px,
      transparent 1px,
      transparent 18px
    );
}

.work-image.facility {
  background:
    linear-gradient(135deg, rgba(216, 199, 173, 0.48), rgba(136, 142, 126, 0.22)),
    repeating-linear-gradient(
      90deg,
      rgba(63, 70, 63, 0.07) 0,
      rgba(63, 70, 63, 0.07) 1px,
      transparent 1px,
      transparent 28px
    );
}

.work-image.exhibition {
  background:
    radial-gradient(circle at 70% 32%, rgba(136, 142, 126, 0.34), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(136, 142, 126, 0.22)),
    var(--surface-soft);
}

.work-category {
  color: var(--rikyu-dark);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   Flow（ご相談の流れ）
   -------------------------------------------------------------------------- */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.flow-step::before {
  counter-increment: flow;
  content: "0" counter(flow);
  display: inline-block;
  margin-bottom: 16px;
  color: var(--rikyu-dark);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.flow-step::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -17px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--rikyu);
  border-right: 2px solid var(--rikyu);
  transform: translateY(-50%) rotate(45deg);
}

.flow-step:last-child::after {
  display: none;
}

/* 流れの矢印がそっと進行方向へ脈動する */
.flow-step::after {
  animation: arrowNudge 1.6s ease-in-out infinite alternate;
}

@keyframes arrowNudge {
  from {
    translate: 0 0;
    opacity: 0.55;
  }
  to {
    translate: 4px 0;
    opacity: 1;
  }
}

.flow-step h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 52px 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background 0.25s var(--ease);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* FAQの開閉をなめらかに（対応ブラウザのみ。非対応は従来どおり即時開閉） */
.faq-item {
  interpolate-size: allow-keywords;
}

.faq-item::details-content {
  height: 0;
  overflow: clip;
  transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
}

.faq-item[open]::details-content {
  height: auto;
}

.faq-item summary:hover {
  background: rgba(136, 142, 126, 0.08);
}

.faq-item summary::before {
  content: "Q";
  flex: none;
  color: var(--rikyu-dark);
  font-weight: 800;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--rikyu-dark);
  border-bottom: 2px solid var(--rikyu-dark);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
  display: flex;
  gap: 14px;
  padding: 4px 22px 20px;
  color: var(--muted);
}

.faq-answer::before {
  content: "A";
  flex: none;
  color: var(--sand);
  font-weight: 800;
  filter: brightness(0.78);
}

.faq-answer p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */

.cta {
  position: relative;
  padding: 84px 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(136, 142, 126, 0.40), transparent 45%),
    radial-gradient(circle at 10% 110%, rgba(216, 199, 173, 0.14), transparent 40%),
    linear-gradient(180deg, #454c45 0%, var(--rikyu-deep) 30%);
  color: #fff;
  overflow: hidden;
  box-shadow: inset 0 16px 30px -24px rgba(0, 0, 0, 0.55);
}

.cta .eyebrow,
.cta p {
  color: #d8d2c3;
}

.cta .eyebrow::before {
  background: #d8d2c3;
}

.cta::before {
  /* 暗部をゆっくり漂う光（映像的な空気感） */
  content: "";
  position: absolute;
  inset: -25%;
  background: radial-gradient(circle at 30% 35%, rgba(216, 199, 173, 0.12), transparent 42%);
  animation: ctaDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes ctaDrift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(7%, 9%);
  }
}

.cta-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
}

.cta .button.primary {
  color: var(--rikyu-deep);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.cta .button.primary:hover {
  background: var(--bg);
}

.cta-tel {
  margin-top: 14px;
  font-size: 0.95rem;
}

.cta-tel a {
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   Page hero（下層ページ）
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 76px 0;
  background:
    radial-gradient(700px 360px at 88% 0%, rgba(255, 255, 255, 0.5), transparent 60%),
    linear-gradient(135deg, rgba(136, 142, 126, 0.20), rgba(136, 142, 126, 0.05)),
    var(--surface-soft);
  border-bottom: 1px solid rgba(216, 210, 195, 0.9);
  box-shadow: inset 0 -16px 28px -24px rgba(32, 33, 31, 0.28);
}

.page-hero .container {
  max-width: 900px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.page-hero p {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Company table
   -------------------------------------------------------------------------- */

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.company-table th,
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 180px;
  color: var(--rikyu-deep);
  background: rgba(136, 142, 126, 0.18);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.note {
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Service detail
   -------------------------------------------------------------------------- */

.service-list {
  display: grid;
  gap: 24px;
}

.service-detail {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 26px;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.service-detail:hover {
  border-color: rgba(136, 142, 126, 0.6);
  box-shadow: var(--shadow);
}

.service-detail-index {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  color: #fff;
  background: linear-gradient(135deg, var(--rikyu-dark), var(--rikyu-deep));
  border-radius: 50%;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.4em;
  margin: 6px 0;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--rikyu);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   事業内容：対応例・工程図・体制図
   -------------------------------------------------------------------------- */

.case-examples {
  margin-top: 24px;
  padding: 18px 22px;
  background: rgba(136, 142, 126, 0.08);
  border-left: 3px solid var(--rikyu);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case-label {
  margin: 0 0 10px;
  color: var(--rikyu-deep);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.case-examples ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-examples li {
  position: relative;
  padding: 5px 0 5px 1.4em;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.85;
}

.case-examples li::before {
  content: "―";
  position: absolute;
  left: 0;
  color: var(--rikyu);
}

/* 展示会の工程タイムライン */
.onestop-flow {
  margin-top: 28px;
}

.onestop-steps {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: os;
}

.onestop-steps li {
  position: relative;
  flex: 1;
  padding-top: 38px;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--rikyu-deep);
  line-height: 1.5;
}

.onestop-steps li::before {
  counter-increment: os;
  content: counter(os);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: var(--rikyu-deep);
  font-size: 0.8rem;
  font-family: var(--font-serif);
}

.onestop-steps li::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 1.5px;
  background: var(--line);
}

.onestop-steps li:last-child::after {
  display: none;
}

.onestop-bracket {
  position: relative;
  margin: 16px 0 0;
  text-align: center;
  color: var(--rikyu-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.onestop-bracket::before {
  content: "";
  display: block;
  height: 10px;
  margin: 0 14px 10px;
  border: 1.5px solid var(--rikyu);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

/* 工程が順に点灯するアニメーション */
.js .reveal .onestop-steps li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.js .reveal.is-visible .onestop-steps li {
  opacity: 1;
  transform: none;
}

.js .reveal.is-visible .onestop-steps li:nth-child(1) { transition-delay: 0.05s; }
.js .reveal.is-visible .onestop-steps li:nth-child(2) { transition-delay: 0.2s; }
.js .reveal.is-visible .onestop-steps li:nth-child(3) { transition-delay: 0.35s; }
.js .reveal.is-visible .onestop-steps li:nth-child(4) { transition-delay: 0.5s; }
.js .reveal.is-visible .onestop-steps li:nth-child(5) { transition-delay: 0.65s; }

.js .reveal .onestop-bracket {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.9s;
}

.js .reveal.is-visible .onestop-bracket {
  opacity: 1;
}

/* 現場調整のハブ図 */
.hub-diagram {
  margin: 28px auto 0;
  max-width: 480px;
  text-align: center;
}

.hub-diagram svg {
  width: 100%;
  height: auto;
}

.hub-line {
  stroke: var(--rikyu);
  stroke-width: 1.6;
}

.hub-node {
  fill: #fff;
  stroke: var(--line);
  stroke-width: 1.2;
}

.hub-node-label {
  fill: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.hub-center {
  fill: var(--rikyu-deep);
}

.hub-center-label {
  fill: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: 0.08em;
}

/* 線が中心から描画され、ノードが順に現れる */
.js .reveal .hub-line {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset 0.8s var(--ease) 0.35s;
}

.js .reveal.is-visible .hub-line {
  stroke-dashoffset: 0;
}

.js .reveal .hub-node-g {
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.8s;
}

.js .reveal .hub-center-g {
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.1s;
}

.js .reveal.is-visible .hub-node-g,
.js .reveal.is-visible .hub-center-g {
  opacity: 1;
}

@media (max-width: 700px) {
  .onestop-steps {
    flex-direction: column;
    gap: 16px;
    position: relative;
    padding-left: 0;
  }

  /* レールは丸数字（left:4px + 半径14px = 中心18px）を貫く位置に */
  .onestop-steps::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 14px;
    left: 17px;
    width: 2px;
    background: var(--line);
  }

  .onestop-steps li {
    padding: 2px 0 2px 44px;
    text-align: left;
  }

  .onestop-steps li::before {
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
  }

  .onestop-steps li::after {
    display: none;
  }

  .onestop-steps li br {
    display: none;
  }

  .onestop-bracket::before {
    display: none;
  }

  .hub-node-label {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   Contact / Forms
   -------------------------------------------------------------------------- */

.contact-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-weight: 700;
}

.form-field label span {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  color: #fff;
  background: var(--rikyu-dark);
  border-radius: 999px;
  font-size: 0.76rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--rikyu);
  box-shadow: 0 0 0 3px rgba(136, 142, 126, 0.25);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-errors {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff4ef;
  border: 1px solid #e2b8a8;
  color: #663927;
}

.form-errors p {
  margin-bottom: 8px;
  font-weight: 700;
}

.form-errors ul {
  margin: 0;
  padding-left: 1.2em;
}

.contact-phone a {
  color: var(--rikyu-deep);
  font-size: clamp(1.6rem, 4vw, 2.55rem);
  line-height: 1.1;
  font-weight: 800;
  border-bottom: 1px solid var(--rikyu);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.7;
}

/* チェックボックスの本文spanは「必須」バッジ用スタイルを継承しない */
.form-field .checkbox-label span {
  display: inline;
  margin-left: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-size: inherit;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin-top: 0.35em;
  accent-color: var(--rikyu-dark);
}

.checkbox-label .text-link {
  margin-top: 0;
}

.checkbox-label strong {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  color: #fff;
  background: var(--rikyu-dark);
  border-radius: 999px;
  font-size: 0.76rem;
}

/* --------------------------------------------------------------------------
   Legal
   -------------------------------------------------------------------------- */

.legal-text {
  max-width: 860px;
}

.legal-text h2 {
  font-size: 1.35rem;
  margin-top: 36px;
  padding-left: 14px;
  border-left: 3px solid var(--rikyu);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: 52px 0 24px;
  color: #f8f5ee;
  background: #262a25;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
  align-items: flex-start;
}

.footer-brand {
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.footer-wordmark {
  display: block;
  width: clamp(170px, 24vw, 240px);
  height: auto;
}

.footer-copy,
.footer-info {
  color: #d4d0c4;
}

.footer-info a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.25s var(--ease);
}

.footer-info a:hover {
  border-color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  color: #e2ded3;
  font-size: 0.92rem;
}

.footer-links a {
  transition: color 0.25s var(--ease);
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b7b1a6;
  font-size: 0.86rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal（JSが .is-visible を付与。JS無効時は常時表示）
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .reveal-delay-1 { transition-delay: 0.08s; }
.js .reveal-delay-2 { transition-delay: 0.16s; }
.js .reveal-delay-3 { transition-delay: 0.24s; }

/* 方向つきリビール：2カラムは左右から寄り合う */
.js .two-column > div:first-child.reveal {
  transform: translateX(-30px);
}

.js .two-column > div:last-child.reveal {
  transform: translateX(30px);
}

.js .two-column > div.reveal.is-visible {
  transform: none;
}

/* カード類はわずかに縮んだ状態から立ち上がる */
.js .card-grid .reveal,
.js .works-grid .reveal,
.js .works-preview .reveal,
.js .flow-grid .reveal {
  transform: translateY(28px) scale(0.965);
}

/* 写真のワイプリビール：幕が右へ引かれて現れる */
.js .reveal .work-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--surface-soft);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.9s var(--ease) 0.18s;
}

.js .reveal.is-visible .work-image::before {
  transform: scaleX(0);
}

/* 見出し前の短い罫線が、出現時に左から伸びる */
.js .reveal .eyebrow::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease) 0.25s;
}

.js .reveal.is-visible .eyebrow::before {
  transform: scaleX(1);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .two-column > div.reveal {
    transform: none;
  }

  .js .reveal .work-image::before {
    transform: scaleX(0);
  }

  .js .reveal .eyebrow::before {
    transform: scaleX(1);
  }

  .flow-step::after {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Font/readability tuning
   -------------------------------------------------------------------------- */

.service-card p,
.feature-card p,
.work-card p,
.contact-side-card p,
.contact-form-card p,
.company-table th,
.company-table td,
.service-detail p,
.service-detail li,
.footer-copy,
.footer-info,
.footer-links {
  font-size: 1rem;
}

.section-heading p,
.two-column p,
.page-hero p,
.cta p {
  font-size: 1.04rem;
  line-height: 1.95;
}

.service-card,
.feature-card,
.work-card {
  min-height: 210px;
}

.service-card h3,
.feature-card h3,
.work-card h3,
.work-card h2 {
  line-height: 1.45;
}

.work-card h2 {
  font-size: 1.24rem;
  margin-bottom: 12px;
  letter-spacing: 0;
}

.card-number {
  font-size: 0.95rem;
}

.card-label,
.work-category,
.eyebrow {
  font-size: 0.88rem;
}

.hero-card-inner {
  font-size: 1rem;
}

.hero-card-inner li {
  margin: 0.2em 0;
}

.company-table th,
.company-table td {
  line-height: 1.8;
}

.form-field label,
input,
select,
textarea {
  font-size: 1rem;
}

.site-footer {
  font-size: 1rem;
}

.copyright {
  font-size: 0.92rem;
}

@media (min-width: 961px) {
  .hero-title span {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  body {
    font-size: 16px;
  }

  html {
    scroll-padding-top: 84px;
  }

  .header-inner {
    min-height: 70px;
    gap: 14px;
  }

  .nav-toggle {
    display: flex;
    flex: none;
  }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(246, 242, 232, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(32, 33, 31, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .global-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(216, 210, 195, 0.6);
    font-size: 1rem;
  }

  .global-nav a::after {
    display: none;
  }

  .global-nav .nav-cta {
    margin-top: 14px;
    justify-content: center;
    text-align: center;
    display: inline-flex;
    align-items: center;
    border-bottom: 0;
  }

  /* モバイルメニュー内の言語切替：CTAと対になるアウトラインボタン */
  .global-nav .lang-switch {
    margin-top: 10px;
    min-height: 48px;
    justify-content: center;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  .hero {
    padding: 64px 0 70px;
  }

  .hero-full {
    min-height: min(640px, 90svh);
  }

  .hero-content {
    padding: 84px 0 116px;
  }

  .hero-full .hero-title span {
    white-space: normal;
  }

  .hero-panel {
    display: none;
  }

  .hero-full .photo-note {
    left: auto;
    right: 16px;
  }

  .news-band-inner {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 16px 0 18px;
  }

  .news-list {
    flex-basis: 100%;
    order: 3;
  }

  .news-list a {
    white-space: normal;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .hero-grid,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-card {
    min-height: 320px;
  }

  h1 {
    font-size: clamp(2.25rem, 9vw, 3.4rem);
  }

  .hero-title span {
    white-space: normal;
  }

  .card-grid.three,
  .works-preview,
  .works-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .flow-step::after {
    top: auto;
    right: auto;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .service-card,
  .feature-card,
  .work-card {
    min-height: auto;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-wordmark {
    width: min(56vw, 210px);
  }

  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 1.04rem;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 2.85rem);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .section {
    padding: 56px 0;
  }

  .hero-lead,
  .section-heading p,
  .two-column p,
  .page-hero p,
  .cta p {
    font-size: 1rem;
  }

  .service-detail {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    border-bottom: 0;
    padding-bottom: 6px;
  }

  .company-table td {
    padding-top: 6px;
  }
}

/* --------------------------------------------------------------------------
   モバイル固定CTAバー（電話・相談）
   -------------------------------------------------------------------------- */

.mobile-cta {
  display: none;
}

@media (max-width: 960px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: rgba(216, 210, 195, 0.9);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(32, 33, 31, 0.14);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    font-weight: 700;
    font-size: 1rem;
  }

  .mobile-cta-tel {
    color: var(--rikyu-deep);
    background: var(--bg);
  }

  .mobile-cta-form {
    color: #fff;
    background: var(--rikyu-deep);
  }

  /* バーがある分、ページ下部に余白を確保 */
  body:has(.mobile-cta) {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* --------------------------------------------------------------------------
   写真受け入れ（imgを置くだけで成立するレイアウト）
   -------------------------------------------------------------------------- */

.work-image {
  position: relative;
  overflow: hidden;
}

.work-image::after {
  /* 写真の内側に細い縁を入れて沈み込みを表現 */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(32, 33, 31, 0.08), inset 0 2px 6px rgba(32, 33, 31, 0.10);
  pointer-events: none;
}

.work-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-image img,
.work-card:focus-visible .work-image img {
  transform: scale(1.06);
}

.hero-card .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ken Burns：ゆっくりと寄り続ける映像的なズーム */
  animation: kenBurns 26s ease-in-out infinite alternate;
  transform-origin: 62% 38%;
  will-change: transform;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

.hero-card.has-photo::after {
  display: none;
}

.hero-card.has-photo::before {
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-card .photo-note {
  position: absolute;
  top: 14px;
  right: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(32, 33, 31, 0.6);
}

/* --------------------------------------------------------------------------
   TOPページ ヒーロー登場アニメーション（CSSのみ・reduced-motion対応済み）
   -------------------------------------------------------------------------- */

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-28px, 20px);
  }
}

.hero-full .hero-title span,
.hero-full .hero-en,
.hero-full .hero-lead,
.hero-full .hero-actions,
.hero-full .hero-note,
.hero-full .hero-panel,
.hero-full .scroll-cue {
  opacity: 0;
  animation: heroFadeUp 0.9s var(--ease) forwards;
}

.hero-full .hero-title span:nth-child(1) { animation-delay: 0.12s; }
.hero-full .hero-title span:nth-child(2) { animation-delay: 0.26s; }
.hero-full .hero-title span:nth-child(3) { animation-delay: 0.40s; }
.hero-full .hero-en { animation-delay: 0.58s; }
.hero-full .hero-lead { animation-delay: 0.72s; }
.hero-full .hero-actions { animation-delay: 0.84s; }
.hero-full .hero-note { animation-delay: 0.94s; }
.hero-full .hero-panel { animation-delay: 0.70s; animation-duration: 1.1s; }
.hero-full .scroll-cue { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .hero-full .hero-title span,
  .hero-full .hero-en,
  .hero-full .hero-lead,
  .hero-full .hero-actions,
  .hero-full .hero-note,
  .hero-full .hero-panel,
  .hero-full .scroll-cue {
    opacity: 1;
    animation: none;
  }

  .hero-bg img,
  .hero-card .hero-photo,
  .scroll-cue::after,
  .cta::before {
    animation: none;
  }

  .section-heading[data-en]::before {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   フォーム送信UX
   -------------------------------------------------------------------------- */

.contact-form .button[disabled] {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   実績詳細ページ
   -------------------------------------------------------------------------- */

.work-detail {
  max-width: 900px;
  display: grid;
  gap: 28px;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-gallery figure {
  margin: 0;
}

.work-gallery .full {
  grid-column: 1 / -1;
}

.work-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.work-meta th {
  width: 140px;
}

.work-body p {
  margin-bottom: 1em;
}

/* シェア導線 */
.share-block {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.share-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--rikyu-deep);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.share-btn:hover {
  border-color: var(--rikyu);
  background: rgba(136, 142, 126, 0.10);
  transform: translateY(-1px);
}

.share-copied {
  color: var(--rikyu-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   お知らせ
   -------------------------------------------------------------------------- */

.news-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px -18px rgba(32, 33, 31, 0.20);
}

.news-band-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}

.news-band-label {
  display: grid;
  margin: 0;
  color: var(--rikyu-deep);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  flex: none;
}

.news-band-label span {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.news-list {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
}

.news-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 5px 0;
}

.news-list time {
  flex: none;
  color: var(--rikyu-dark);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.news-list a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.news-list a:hover {
  color: var(--rikyu-dark);
  text-decoration: underline;
}

.news-more {
  flex: none;
  margin-top: 0;
}

.news-archive {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.news-item {
  padding: 26px 28px;
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf5 100%);
  border: 1px solid var(--line);
  border-bottom-color: #cdc6b4;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
}

.news-item time {
  color: var(--rikyu-dark);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.news-item h2 {
  font-size: 1.25rem;
  margin: 8px 0 10px;
}

.news-item p {
  margin-bottom: 0.6em;
  color: var(--muted);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   数字・事実の帯
   -------------------------------------------------------------------------- */

.stats {
  position: relative;
  padding: 64px 0 52px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 10%, rgba(136, 142, 126, 0.35), transparent 50%),
    linear-gradient(180deg, #454c45 0%, var(--rikyu-deep) 40%);
  overflow: hidden;
  box-shadow:
    inset 0 16px 30px -24px rgba(0, 0, 0, 0.55),
    inset 0 -16px 30px -24px rgba(0, 0, 0, 0.45);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  text-align: center;
}

.stat-value {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.1;
  color: var(--sand);
  letter-spacing: 0.04em;
  white-space: nowrap; /* 「1-Stop」等の途中折り返しを禁止 */
}

.stat-value span {
  font-size: 0.45em;
  letter-spacing: 0.08em;
}

.stat-value .count {
  font-size: 1em;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.stat-label sup {
  font-size: 0.7em;
}

.stats-note {
  margin: 26px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

/* 統計バンドの小画面調整 */
@media (max-width: 960px) {
  .stat {
    display: grid;
    align-content: start;
    justify-items: center;
  }

  .stat-value {
    font-size: clamp(1.9rem, 6.4vw, 2.6rem);
  }

  .stat-label {
    font-size: 0.86rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
    word-break: keep-all; /* 「撤去」「teardown」等の単語分断を防ぐ */
    overflow-wrap: normal;
  }
}

@media (max-width: 560px) {
  .stats {
    padding: 48px 0 40px;
  }

  .stats-grid {
    gap: 26px 12px;
  }

  .stat-value {
    font-size: clamp(1.7rem, 7.6vw, 2.1rem);
    margin-bottom: 4px;
  }

  .stat-label {
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .stats-note {
    margin-top: 20px;
    padding: 0 12px;
    font-size: 0.7rem;
    line-height: 1.7;
  }
}

/* --------------------------------------------------------------------------
   対応エリアマップ
   -------------------------------------------------------------------------- */

.area-map {
  margin: 0 auto;
  max-width: 980px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  background: #faf8f1;
}

.area-map img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .work-gallery {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   実績カテゴリ・ページネーション・パンくず
   -------------------------------------------------------------------------- */

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-count {
  color: var(--rikyu-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb a {
  color: var(--rikyu-deep);
  border-bottom: 1px solid var(--line);
}

.breadcrumb a:hover {
  border-color: var(--rikyu);
}

.works-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.works-pagination a,
.works-pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--rikyu-deep);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.works-pagination a:hover {
  border-color: var(--rikyu);
}

.works-pagination .current {
  color: #fff;
  background: var(--rikyu-deep);
  border-color: var(--rikyu-deep);
}

@media (max-width: 960px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   ライトボックス（実績写真の拡大表示）
   -------------------------------------------------------------------------- */

.work-gallery img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(32, 33, 31, 0.92);
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  margin: 0;
  max-width: min(1100px, 92vw);
  text-align: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox figcaption {
  margin-top: 12px;
  color: #d8d2c3;
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
