@charset "UTF-8";

/* ============================================
   トップページ専用スタイル
   余白を大きく取り、写真のマスク形状と色面を組み合わせる構成
   ============================================ */

:root {
  --sage:      #ede6d8;   /* セクションの色面（濃いめの砂） */
  --sage-pale: #f7f3ea;
  --brown:     #7a6c55;   /* フッターの面 */
  --hair:      #d9d0be;
}

/* ---------- ヘッダー ---------- */

.site-header { background: rgba(255, 253, 248, 0.92); }
.header-inner { min-height: 84px; gap: 26px; }

.nav-list { gap: 20px; }
.nav-list a { font-size: 14px; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.btn-pill:hover { background: var(--blue-deep); color: #fff; }
@media (max-width: 1120px) { .btn-pill { display: none; } }

/* ---------- 共通：英字見出し ---------- */

.eyebrow { margin-bottom: clamp(32px, 5vw, 60px); }
.eyebrow .en {
  display: block;
  font-family: "Jost", var(--font-round), sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5.4vw, 52px);
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--ink);
}
.eyebrow .ja {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.eyebrow--c { text-align: center; }

/* ---------- 共通：点線下線のリンク ---------- */

.dotted-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--ink-faint);
}
.dotted-link .arrow {
  width: 26px; height: 17px;
  border-radius: 999px;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.dotted-link .arrow svg { width: 12px; height: 12px; color: #fff; }
.dotted-link:hover { color: var(--blue-deep); }
.dotted-link:hover .arrow { background: var(--blue); transform: translateX(3px); }
.dotted-link--light { color: #fff; border-bottom-color: rgba(255,255,255,0.5); }
.dotted-link--light .arrow { background: #fff; }
.dotted-link--light .arrow svg { color: var(--ink); }

/* ---------- 共通：写真の枠（マスク形状つき） ---------- */

.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg, #eee6d7 0 13px, #e7ddca 13px 26px);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 5px;
  color: #9c907e;
  padding: 18px;
  overflow: hidden;
}
.ph .ph-id {
  font-family: "Jost", sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #fff;
  background: #b6a894;
  border-radius: 999px;
  padding: 2px 11px;
  justify-self: center;
}
.ph .ph-what { font-size: 12.5px; line-height: 1.7; }
.ph .ph-size { font-size: 11px; letter-spacing: 0.04em; }

/* マスク形状 */
.ph--arch    { border-radius: 999px 999px 0 0 / 46% 46% 0 0; }
.ph--oval    { border-radius: 50%; }
.ph--quarter { border-radius: 999px 0 0 0 / 100% 0 0 0; }
.ph--slant   { clip-path: polygon(0 6%, 100% 0, 100% 94%, 0 100%); }
.ph--notch {
  clip-path: polygon(0 0, 78% 0, 78% 14%, 100% 14%, 100% 100%,
                     22% 100%, 22% 86%, 0 86%);
}
.ph--round   { border-radius: var(--radius-m); }

/* ---------- 共通：重ねる線画イラスト ---------- */

.float-illus {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.float-illus img { width: 100%; height: auto; display: block; }
/* 写真に重なる部分でも線が読めるよう、地色の淡い縁をつける */
.strip-item .float-illus img,
.st-card .float-illus img {
  filter:
    drop-shadow(0 0 5px rgba(255, 253, 248, 0.95))
    drop-shadow(0 0 2px rgba(255, 253, 248, 1))
    drop-shadow(0 0 1px rgba(255, 253, 248, 1));
}

/* 背景に敷く色面 */
.blob {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* ============================================
   1. ヒーロー
   ============================================ */

.st-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px) 0 clamp(60px, 9vw, 130px);
  background: var(--sand);
}
.st-hero .blob-1 {
  left: -6%; top: 32%;
  width: 26%; height: 320px;
  background: #e8e2d4;
  transform: skewY(-9deg);
}
.st-hero .blob-2 {
  left: 40%; bottom: 0;
  width: 30%; height: 200px;
  background: #efe9dc;
}
.st-hero-head { position: relative; z-index: 2; max-width: 700px; }
.st-hero h1 {
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.62;
  letter-spacing: 0.01em;
}
.st-hero h1 .line { display: block; word-break: keep-all; }
.st-hero-sub {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.st-hero-stage {
  position: relative;
  z-index: 2;
  margin-top: clamp(30px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(14px, 3vw, 40px);
  align-items: start;
  /* 左は本文に揃え、右は画面の端まで抜ける */
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  padding-right: 0;
}
.st-hero-main { aspect-ratio: 16 / 10; }
.st-hero-arch {
  aspect-ratio: 3 / 3.7;
  margin-top: clamp(-180px, -10vw, -50px);
}
.st-hero .illus-a { left: calc(var(--gutter) * 0.4); bottom: -56px; width: clamp(100px, 10%, 150px); }
.st-hero .illus-b { left: 56%; bottom: -74px; width: clamp(104px, 11%, 158px); }

.st-hero-actions {
  position: relative;
  z-index: 2;
  margin-top: clamp(34px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.st-hero-note { font-size: 12.5px; color: var(--ink-soft); }

@media (max-width: 820px) {
  .st-hero-stage { grid-template-columns: 1fr; }
  .st-hero-arch { margin-top: 0; aspect-ratio: 4 / 3.4; }
  .st-hero .illus-a { width: 96px; bottom: -20px; }
  .st-hero .illus-b { display: none; }
}

/* ============================================
   2. コンセプト
   ============================================ */

.st-about {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: clamp(70px, 10vw, 140px) 0;
}
.st-plan {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.75;
  pointer-events: none;
}
.st-plan svg { width: 100%; height: 100%; }
.st-plan rect, .st-plan path { stroke-width: 1.4; }

.st-about-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
}
.st-about-oval { grid-column: 1 / span 4; aspect-ratio: 4 / 4.6; }
.st-about-copy {
  grid-column: 6 / span 7;
  padding-top: clamp(20px, 5vw, 70px);
}
.st-about-copy p {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 2.1;
  margin-bottom: 34px;
}
/* 1行ずつ字下げをずらして、視線を落としていく */
.st-about-copy p:nth-child(1) { margin-left: 0; }
.st-about-copy p:nth-child(2) { margin-left: 4%; }
.st-about-copy p:nth-child(3) { margin-left: 9%; }
.st-about-copy p:nth-child(4) { margin-left: 4%; }

.st-about-illus { grid-column: 9 / span 4; justify-self: end; width: 78%; margin-top: -30px; }
.st-about-slant { grid-column: 8 / span 5; aspect-ratio: 4 / 3.1; margin-top: 10px; }
.st-about-quarter { grid-column: 2 / span 3; aspect-ratio: 3 / 3.6; margin-top: -40px; }
.st-about-cta { grid-column: 4 / span 6; justify-self: center; margin-top: clamp(30px, 5vw, 56px); }

@media (max-width: 860px) {
  .st-about-grid { grid-template-columns: repeat(6, 1fr); }
  .st-about-oval { grid-column: 1 / span 3; }
  .st-about-illus { grid-column: 4 / span 3; width: 100%; margin-top: 0; }
  .st-about-copy { grid-column: 1 / span 6; }
  .st-about-copy p { margin-left: 0 !important; }
  .st-about-slant { grid-column: 3 / span 4; }
  .st-about-quarter { grid-column: 1 / span 2; margin-top: 0; }
  .st-about-cta { grid-column: 1 / span 6; }
}

/* ============================================
   3. 横に流れる写真帯
   ============================================ */

.st-strip {
  position: relative;
  background: var(--paper);
  padding: clamp(76px, 9vw, 116px) 0 clamp(84px, 10vw, 126px);
  overflow: hidden;
}
.st-track {
  display: flex;
  gap: 26px;
  width: max-content;
  animation: st-slide 46s linear infinite;
}
@keyframes st-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .st-track { animation: none; }
  .st-strip { overflow-x: auto; }
}
.st-track .ph {
  flex: none;
  width: clamp(190px, 22vw, 280px);
  aspect-ratio: 4 / 3;
}
.st-track .ph:nth-child(3n) { align-self: flex-end; }
.st-track .ph:nth-child(4n) { aspect-ratio: 3 / 4; }
.st-strip .float-illus { z-index: 4; }
.st-strip .illus-c { left: 20%; top: 42%; width: clamp(72px, 8vw, 104px); }
.st-strip .illus-d { left: 62%; top: 30%; width: clamp(72px, 8vw, 104px); }

/* ============================================
   4. Service
   ============================================ */

.st-service {
  background: var(--sage);
  padding: clamp(70px, 10vw, 130px) 0;
}
.st-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  margin-bottom: 34px;
  overflow: visible;
}
.st-card:last-child { margin-bottom: 0; }
.st-card-body { padding: clamp(28px, 4vw, 52px); }
.st-card-tag {
  display: inline-block;
  border-left: 3px solid var(--blue);
  padding-left: 11px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.st-card h3 {
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.st-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 30px; }
.st-card .ph { min-height: 100%; }
.st-card .float-illus {
  left: 32%; top: -52px;
  width: clamp(116px, 14vw, 176px);
}
@media (max-width: 760px) {
  .st-card { grid-template-columns: 1fr; }
  .st-card .ph { aspect-ratio: 16 / 10; }
  .st-card .float-illus { right: 6%; top: -30px; width: 108px; }
}

/* ============================================
   5. Case（施工事例カルーセル）
   ============================================ */

.st-case {
  background: var(--paper);
  padding: clamp(70px, 10vw, 130px) 0;
  overflow: hidden;
}
.st-rail {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  padding-bottom: 8px;
  scrollbar-width: none;
}
.st-rail::-webkit-scrollbar { display: none; }
.st-case-card {
  flex: none;
  width: min(860px, 84vw);
  scroll-snap-align: center;
  background: var(--sage-pale);
  border: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(20px, 3vw, 34px);
}
.st-case-card .ph { aspect-ratio: 4 / 3; }
.st-case-card h3 { font-size: clamp(18px, 2.2vw, 25px); margin-bottom: 16px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.case-tags span {
  font-size: 12px;
  border: 1px solid var(--hair);
  background: var(--paper);
  border-radius: 3px;
  padding: 4px 10px;
  color: var(--ink-soft);
}
.case-spec { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.case-spec th, .case-spec td {
  text-align: left;
  font-size: 13.5px;
  font-weight: 400;
  padding: 9px 4px;
  border-bottom: 1px solid var(--hair);
}
.case-spec th { width: 88px; color: var(--ink-soft); }
.st-rail-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}
.st-rail-nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink-faint);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.st-rail-nav button:hover { background: var(--ink); color: var(--paper); }
.st-rail-nav svg { width: 15px; height: 15px; }
@media (max-width: 700px) {
  .st-case-card { grid-template-columns: 1fr; width: 84vw; }
}

/* ============================================
   6. お客様の声（コラージュ）
   ============================================ */

.st-voice {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  padding: clamp(70px, 10vw, 130px) 0;
}
.st-voice .blob-3 {
  left: 0; top: 30%;
  width: 22%; height: 340px;
  background: var(--paper);
  border-radius: 0 999px 0 0 / 0 100% 0 0;
}
.st-voice .blob-4 {
  right: 0; top: 14%;
  width: 30%; height: 380px;
  background: var(--paper);
}
.st-collage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}
.st-collage .ph-lead { grid-column: 3 / span 6; aspect-ratio: 16 / 10; }
.st-collage .ph-sm1 { grid-column: 1 / span 2; aspect-ratio: 1 / 1; margin-top: 54px; }
.st-collage .ph-sm2 { grid-column: 9 / span 3; aspect-ratio: 3 / 4; margin-top: -30px; }
.st-collage .illus-e { right: -2%; top: 52%; width: clamp(120px, 15vw, 200px); }
.st-voice-words {
  grid-column: 3 / span 8;
  margin-top: clamp(34px, 5vw, 60px);
  text-align: center;
}
.st-voice-words p {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 2.3;
  margin-bottom: 0;
}
.st-voice-cta { grid-column: 1 / span 12; justify-self: center; margin-top: 40px; }
@media (max-width: 760px) {
  .st-collage { grid-template-columns: repeat(6, 1fr); }
  .st-collage .ph-lead { grid-column: 1 / span 6; }
  .st-collage .ph-sm1, .st-collage .ph-sm2 { grid-column: span 3; margin-top: 0; }
  .st-voice-words { grid-column: 1 / span 6; }
  .st-collage .illus-e { display: none; }
}

/* ============================================
   7. ご相談の流れ
   ============================================ */

.st-flow { background: var(--paper); padding: clamp(70px, 10vw, 120px) 0; }
.st-flow-list { border-top: 1px solid var(--hair); }
.st-flow-item {
  display: grid;
  grid-template-columns: 80px 220px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--hair);
}
.st-flow-num {
  font-family: "Jost", sans-serif;
  font-size: 22px;
  color: var(--blue);
  letter-spacing: 0.08em;
}
.st-flow-item h3 { font-size: 17px; }
.st-flow-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }
@media (max-width: 700px) {
  .st-flow-item { grid-template-columns: 56px 1fr; }
  .st-flow-item p { grid-column: 2; }
}

/* ============================================
   8. Contact（全面写真＋オーバーレイ）
   ============================================ */

.st-contact {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 10vw, 130px) 0 clamp(60px, 7vw, 96px);
  color: #fff;
}
.st-contact .ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  place-content: start start;
  text-align: left;
  padding: 22px 26px;
}
.st-contact .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(51,49,45,0.80), rgba(51,49,45,0.74));
}
.st-contact .ph > span { position: relative; z-index: 2; }
.st-contact .ph .ph-what,
.st-contact .ph .ph-size { color: rgba(255,255,255,0.85); }
.st-contact .shell { position: relative; z-index: 2; }
.st-contact .eyebrow .en,
.st-contact .eyebrow .ja { color: #fff; }
.st-contact .eyebrow .ja { opacity: 0.82; }
.st-contact h2 {
  text-align: center;
  font-size: clamp(19px, 2.7vw, 30px);
  margin-bottom: 26px;
}
.st-area {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 10px 22px;
  font-size: 13.5px;
}
.st-contact-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.btn-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 240px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  padding: 20px 34px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.btn-round:hover { transform: translateY(-2px); color: var(--ink); }
.btn-round--tel { background: var(--orange); color: #fff; }
.btn-round--tel:hover { color: #fff; }
.st-contact .float-illus {
  left: 50%; top: 34px;
  width: clamp(96px, 10vw, 134px);
  transform: translateX(-50%);
}
/* 暗い面に乗せるので線を白く反転させる */
.st-contact .float-illus img,
.st-footer .float-illus img { filter: brightness(0) invert(1); opacity: 0.92; }
.st-contact-tel {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  opacity: 0.9;
}

/* ============================================
   9. フッター（色面）
   ============================================ */

.st-footer {
  position: relative;
  background: var(--brown);
  color: #fff;
  padding: clamp(56px, 8vw, 92px) 0 clamp(20px, 3vw, 34px);
}
.st-footer a { color: #fff; }
.st-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 40px;
}
.st-footer .brand-logo { height: 66px; }
.st-footer-addr {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 2;
  opacity: 0.92;
}
.st-footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 20px;
  list-style: none;
  margin: 0; padding: 0;
  align-content: start;
}
.st-footer-links a { font-size: 14px; text-decoration: none; opacity: 0.94; }
.st-footer-links a:hover { text-decoration: underline; }
.st-footer .float-illus { right: 3%; bottom: 210px; width: clamp(110px, 13vw, 172px); }
.st-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 70px);
  font-size: 12px;
  opacity: 0.85;
}
.st-tagline {
  margin: clamp(18px, 2.6vw, 32px) 0 0;
  padding: 0 var(--gutter) clamp(10px, 1.4vw, 18px);
}
.st-tagline-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.st-tagline-text {
  font-family: var(--font-round), "Zen Maru Gothic", sans-serif;
  font-weight: 700;
  font-size: 116px;
  fill: #fff;
  letter-spacing: 0.005em;
}
@media (max-width: 760px) {
  .st-footer-grid { grid-template-columns: 1fr; }
  .st-footer-links { grid-template-columns: repeat(2, 1fr); }
  .st-footer .float-illus { width: 110px; bottom: 220px; opacity: 0.9; }
}

/* ============================================
   スクロールで現れる動き
   ============================================ */

.rise { opacity: 0; transform: translateY(26px); }
.rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.25, 1);
}
.rise.d1.is-in { transition-delay: 0.1s; }
.rise.d2.is-in { transition-delay: 0.2s; }
.rise.d3.is-in { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; }
  .rise.is-in { transition: none; }
}

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

.page-hero {
  background: #f1ebdd;
  padding: clamp(46px, 7vw, 92px) 0 clamp(26px, 3.4vw, 44px);
}
.page-hero-title .en {
  display: block;
  font-family: "Jost", var(--font-round), sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 5.6vw, 56px);
  line-height: 1.08;
  color: var(--ink);
}
.page-hero-title .ja {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.page-hero .crumbs {
  margin: clamp(22px, 3vw, 40px) 0 0;
  text-align: right;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.page-hero .crumbs a { color: var(--ink-soft); text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero .crumbs .sep { margin: 0 10px; }
.page-lead {
  margin: 18px 0 0;
  max-width: 44em;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ---------- 絞り込みタブ ---------- */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(30px, 4vw, 50px);
}
.filter-tabs a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  background: var(--sage-pale);
  border: 1px solid var(--hair);
  border-radius: var(--radius-s);
  padding: 12px 26px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.filter-tabs a:hover { border-color: var(--blue); color: var(--blue-deep); }
.filter-tabs a[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ---------- 事例カード（一覧・全幅） ---------- */

.case-list { display: grid; gap: clamp(26px, 4vw, 46px); }
.case-row {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: clamp(22px, 3.4vw, 50px);
  background: var(--sage-pale);
  border: 1px solid var(--hair);
  padding: clamp(20px, 3vw, 38px);
}
.case-row .ph { aspect-ratio: 4 / 3; }
.case-row h2 {
  font-size: clamp(19px, 2.3vw, 27px);
  line-height: 1.55;
  margin-bottom: 20px;
}
.case-row .case-tags { margin-bottom: 26px; }
.case-row .case-spec { margin-bottom: 26px; }
.case-row .dotted-link { float: right; }
@media (max-width: 780px) {
  .case-row { grid-template-columns: 1fr; }
}

/* ---------- 下層で使う本文まわり ---------- */

.st-section { padding: clamp(56px, 8vw, 104px) 0; }
.st-section--paper { background: var(--paper); }
.st-section--sand  { background: var(--sand); }
.st-section--sage  { background: var(--sage); }

/* ============================================
   事例詳細ページ
   ============================================ */

/* 見出しなし・パンくずだけの細い帯 */
.page-hero--slim { padding: clamp(30px, 4vw, 54px) 0 clamp(22px, 3vw, 38px); }
.page-hero--slim .crumbs { margin: 0; }

.detail-head { padding: clamp(42px, 6vw, 78px) 0 clamp(24px, 3vw, 40px); }
.detail-head h1 {
  font-size: clamp(21px, 3.1vw, 36px);
  line-height: 1.55;
  letter-spacing: 0.01em;
}

/* ---------- 写真ギャラリー ---------- */

.gallery { padding-bottom: clamp(30px, 4vw, 52px); }
.gallery-main { aspect-ratio: 16 / 9; }
.gallery-main.ph--fit { aspect-ratio: auto; background: var(--sage-pale); }
.gallery-main.ph--fit img { height: auto; }
.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 20px 0 26px;
}
.gallery-nav button {
  width: 46px; height: 32px;
  border: 1px solid var(--ink-faint);
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.gallery-nav button:hover { background: var(--ink); color: var(--paper); }
.gallery-nav svg { width: 15px; height: 15px; }

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
}
.thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  background: repeating-linear-gradient(135deg, #eee6d7 0 9px, #e7ddca 9px 18px);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #a2957f;
  transition: border-color 0.2s ease;
}
.thumb:hover { border-color: var(--blue); }
.thumb[aria-current="true"] { border-color: var(--ink); outline: 1px solid var(--ink); }

/* ---------- 本文とスペック ---------- */

.detail-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  padding-bottom: clamp(40px, 6vw, 76px);
}
.detail-body .case-tags { grid-column: 1 / -1; margin-bottom: 6px; }
.detail-text p { font-size: 15.5px; line-height: 2.15; }
.detail-body .case-spec th { width: 96px; }
@media (max-width: 780px) {
  .detail-body { grid-template-columns: 1fr; }
}

.detail-back {
  border-top: 1px solid var(--hair);
  padding: clamp(30px, 4vw, 52px) 0 clamp(50px, 7vw, 90px);
  display: flex;
  justify-content: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}
.back-link .arrow-box {
  width: 46px; height: 32px;
  border: 1px solid var(--ink-faint);
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.back-link:hover .arrow-box { background: var(--ink); color: var(--paper); }
.back-link .arrow-box svg { width: 15px; height: 15px; }
.back-link .label {
  font-size: 14.5px;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--ink-faint);
}

/* 詳細ページ本文は白地に */
.detail-head, .gallery, .detail-body-wrap, .detail-back { background: var(--paper); }

/* スマホの固定バーにタグラインが隠れないよう余白を足す */
@media (max-width: 1120px) {
  .st-footer { padding-bottom: 84px; }
}

/* ============================================
   イラストの配置予定枠（納品後に差し替え）
   ============================================ */

.illus-pending {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 2px dashed #9dc0ea;
  border-radius: 10px;
  background: rgba(234, 242, 252, 0.85);
  font-family: "Jost", var(--font-round), sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

/* 写真帯：写真ごとにイラストを連れて動かす */
.strip-item { position: relative; flex: none; }
.strip-item > .ph { width: clamp(190px, 22vw, 280px); aspect-ratio: 4 / 3; }
.strip-item:nth-child(3n) { align-self: flex-end; }
.strip-item:nth-child(4n) > .ph { aspect-ratio: 3 / 4; }
.strip-item .float-illus,
.strip-item .illus-pending { width: clamp(104px, 11.5vw, 156px); }
.pos-tr { right: -7%; top: -40%; }
.pos-br { right: -7%; bottom: -30%; }
.pos-bl { left: -7%; bottom: -30%; }
.pos-tl { left: -7%; top: -40%; }

/* Service カード：見出しの右上にまたがせる */
.st-card .illus-pending { left: 34%; top: -40px; width: clamp(104px, 13vw, 158px); }
@media (max-width: 760px) {
  .st-card .illus-pending { left: auto; right: 6%; top: -30px; width: 108px; }
}

/* ---------- 写真が入った枠 ---------- */

.ph--photo {
  background: none;
  padding: 0;
  display: block;
}
.ph--photo picture { display: block; width: 100%; height: 100%; }
.ph--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ビフォーアフターの並びなど、全体を見せたい写真 */
.ph--fit { background: var(--paper); }
.ph--fit img { object-fit: contain; }

/* Contact の背景写真は暗幕を残す */
.st-contact .ph--photo::after { content: ""; position: absolute; inset: 0; }

/* スマホでは帯の余白を詰める */
@media (max-width: 700px) {
  .st-strip { padding: clamp(64px, 15vw, 88px) 0 clamp(64px, 15vw, 88px); }
  .strip-item .float-illus { width: clamp(84px, 24vw, 110px); }
}

/* ---------- 絞り込みタブ（ボタン要素版） ---------- */

.filter-tabs button {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--sage-pale);
  border: 1px solid var(--hair);
  border-radius: var(--radius-s);
  padding: 12px 26px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-tabs button:hover { border-color: var(--blue); color: var(--blue-deep); }
.filter-tabs button[aria-current="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.case-empty {
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
  padding: 40px 0;
}

/* ---------- サムネイル（写真入り） ---------- */

.thumb--photo { background: none; padding: 0; overflow: hidden; }
.thumb--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ============================================
   お客様の声（カード）
   ============================================ */

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.6vw, 30px);
}
.voice-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
}
.voice-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 4px;
  background: var(--blue);
  border-radius: var(--radius-m) var(--radius-m) 0 0;
}
.voice-who {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  color: var(--blue-deep);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 14px;
  flex: none;
}
.voice-cat {
  font-size: 13px;
  color: var(--blue-deep);
  margin-bottom: 8px;
}
.voice-card h3 {
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.6;
  margin-bottom: 14px;
}
.voice-card p {
  font-size: 14.5px;
  line-height: 2;
  color: var(--ink-soft);
  margin: 0;
}
.voice-card .voice-work {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ============================================
   スマホの表示調整
   ============================================ */

@media (max-width: 760px) {
  /* お客様の声：本文とボタンが12列指定のまま細く潰れていたので全幅に戻す */
  .st-collage .ph-lead,
  .st-voice-words,
  .st-voice-cta { grid-column: 1 / -1; }
  .st-voice-words { text-align: left; }
  .st-voice-words p { font-size: 15px; line-height: 2.1; }

  /* フッターのイラストがリンクに重なっていたので、下に逃がす */
  .st-footer .float-illus {
    position: static;
    width: 118px;
    margin: 10px 0 0 auto;
  }
}

@media (max-width: 1120px) {
  /* 画面下の固定バーにタグラインが隠れないよう、余白を確保する */
  .st-footer { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px) + 56px); }
}
