/* 株式会社H&T — 色と形はロゴの「積み木のHTと馬」から。等角（30°）の積み木とマス目が全体のモチーフ */
:root {
  --coral: #F95A41; --coral-ink: #C93A24;
  --teal: #12A9A6; --teal-ink: #08716F;
  --yellow: #FDB406; --indigo: #353A93;
  --mint: #7FD3D0; --lilac: #A3A7E0;
  --ink: #1B1D45; --ink-2: #4B4E78; --line: #DCDFEE;
  --paper: #F6F7FB; --white: #FFFFFF;
  --display: "Dela Gothic One", "M PLUS 2", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "M PLUS 2", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --wrap: 1200px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --hd: 72px;
}
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 16px); }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.85; color: var(--ink); background: var(--paper);
  font-feature-settings: "palt" 0; line-break: strict; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap.narrow { width: min(100% - 40px, 760px); }
.center { text-align: center; }

/* ---------------- ボタン・リンク ---------------- */
.btn { display: inline-flex; align-items: center; gap: .6em; padding: .85em 1.5em; border-radius: 10px; border: 0;
  background: var(--coral-ink); color: #fff; font: 700 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 #8E2615; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #8E2615; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #8E2615; }
.btn .ar { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-lg { font-size: 1.08rem; padding: 1em 1.8em; }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-light { background: #fff; color: var(--indigo); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--indigo); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.link:hover { background-size: 100% 2px; }
.link .ar { width: 1em; height: 1em; }

/* ---------------- ヘッダー ---------------- */
.hd { position: sticky; top: 0; z-index: 50; height: var(--hd); display: flex; align-items: center; gap: 28px;
  padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)); background: rgba(246, 247, 251, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: height .3s var(--ease), border-color .3s; }
.hd.scrolled { height: 60px; border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: auto; height: 42px; transition: height .3s var(--ease), transform .4s var(--ease); }
.hd.scrolled .brand img { height: 34px; }
.brand:hover img { transform: rotate(-6deg) translateY(-2px); }
.b-name { font: 400 1.5rem/1 var(--display); letter-spacing: .02em; display: flex; flex-direction: column; }
.b-name small { font: 700 .66rem/1.4 var(--body); color: var(--ink-2); letter-spacing: .08em; margin-top: 3px; }
.gnav { display: flex; gap: 4px; }
.gnav a { position: relative; padding: 8px 12px; font-weight: 700; font-size: .95rem; text-decoration: none; border-radius: 8px; transition: background .2s; }
.gnav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.gnav a:hover::after, .gnav a[aria-current]::after { transform: scaleX(1); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 10px; background: var(--ink); cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; top: 0; z-index: 40; background: var(--indigo); color: #fff; padding: calc(var(--hd) + 24px) 28px 40px;
  clip-path: circle(0 at calc(100% - 43px) 36px); transition: clip-path .55s var(--ease); display: block; }
.drawer[hidden] { display: block; visibility: hidden; }
.drawer.open { clip-path: circle(150% at calc(100% - 43px) 36px); visibility: visible; }
.drawer nav { display: grid; gap: 4px; }
.drawer a { font: 400 1.6rem/1.5 var(--display); color: #fff; text-decoration: none; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.15);
  opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); transition-delay: calc(.15s + var(--d) * .04s); }
.drawer.open a { opacity: 1; transform: none; }
body.menu-open { overflow: hidden; }
body.menu-open .hd { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .brand, body.menu-open .hd-cta { visibility: hidden; }

/* ---------------- ヒーロー（トップ） ---------------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px;
  background:
    repeating-linear-gradient(30deg, transparent 0 33px, rgba(53,58,147,.07) 33px 34px),
    repeating-linear-gradient(150deg, transparent 0 33px, rgba(53,58,147,.07) 33px 34px), var(--paper); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; gap: 32px; align-items: center; min-height: min(78vh, 720px); }
.hero-h1 { display: flex; flex-direction: column; gap: 18px; }
.h1-sub { font-size: .95rem; font-weight: 700; color: var(--ink-2); letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 10px; }
.h1-sub::before { content: ""; width: 14px; height: 14px; background: var(--coral); transform: rotate(30deg) skewX(-30deg) scaleY(.86); }
.h1-main { font: 400 clamp(2.6rem, 5.6vw, 4.9rem)/1.18 var(--display); letter-spacing: .01em; }
.h1-main .ln { display: block; overflow: hidden; }
.hero-lead { margin-top: 26px; max-width: 34em; font-size: 1.06rem; color: var(--ink-2); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { position: relative; }
.iso { width: 100%; height: auto; overflow: visible; }
.iso .floor line { stroke: rgba(53,58,147,.16); stroke-width: 1; }
.pillar { cursor: pointer; outline: none; }
.pillar .pl-body { transition: transform .45s var(--ease), filter .3s; }
.pillar:hover .pl-body, .pillar:focus-visible .pl-body { transform: translateY(-12px); filter: drop-shadow(0 14px 10px rgba(27,29,69,.18)); }
.pl-label line { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 2 3; }
.pl-label text { font: 700 11px var(--body); fill: var(--ink); }
.pillar:hover .pl-label text, .pillar:focus-visible .pl-label text { fill: var(--coral-ink); }
.pillar:focus-visible .pl-body polygon { stroke: var(--yellow); stroke-width: 2; }
.hero-cap { text-align: right; font-size: .8rem; color: var(--ink-2); margin-top: -8px; }

/* 登場の演出（JS で html.js がついたときだけ） */
.js .h1-sub, .js .hero-lead, .js .hero-btns, .js .hero-cap { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .h1-main .ln > * , .js .h1-main .ln { }
.js .h1-main .ln { opacity: 0; transform: translateY(40%); transition: opacity .8s var(--ease), transform 1s var(--ease); }
.js .pillar .pl-drop { }
.js .pillar { opacity: 0; transform: translateY(-140px); transition: opacity .5s, transform .9s cubic-bezier(.3, 1.35, .45, 1); transition-delay: calc(.25s + var(--i) * .13s); }
.js .pl-label { opacity: 0; transition: opacity .5s; transition-delay: calc(1.2s + var(--i) * .08s); }
.js .horse { opacity: 0; transform: translateY(-60px); transition: opacity .5s, transform .9s cubic-bezier(.3, 1.5, .45, 1); transition-delay: 1.5s; }
.loaded .h1-sub, .loaded .hero-lead, .loaded .hero-btns, .loaded .h1-main .ln { opacity: 1; transform: none; }
.hero-art.in .pillar, .hero-art.in .hero-cap { opacity: 1; transform: none; }
.hero-art.in .pl-label { opacity: 1; }
.loaded .h1-sub { transition-delay: .1s; } .loaded .h1-main .ln:nth-child(1) { transition-delay: .2s; } .loaded .h1-main .ln:nth-child(2) { transition-delay: .32s; }
.loaded .hero-lead { transition-delay: .55s; } .loaded .hero-btns { transition-delay: .7s; } .hero-art.in .hero-cap { transition-delay: 1.6s; }

/* ---------------- 共通のセクション ---------------- */
.sec { padding: clamp(56px, 7.5vw, 96px) 0; }
.sec:not(.tint) + .sec:not(.tint):not(.names) { padding-top: 0; }
.sec-sm { padding: 40px 0 56px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: end; margin-bottom: 40px; }
.sec-head p { color: var(--ink-2); max-width: 36em; }
.h2 { font: 400 clamp(1.7rem, 3.2vw, 2.5rem)/1.35 var(--display); letter-spacing: .01em; }
.h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.5; margin-bottom: 14px; }
.answer { font-size: 1.08rem; line-height: 1.95; max-width: 40em; }
.answer.big { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.9; max-width: 34em; }
.note { font-size: .88rem; color: var(--ink-2); margin-top: 18px; }
.more { margin-top: 32px; }
.tint { background: color-mix(in srgb, var(--c, var(--teal)) 9%, var(--paper)); }

/* スクロールで現れる */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * .1s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------------- トップの部品 ---------------- */
.intro { padding-top: 24px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; border-top: 2px solid var(--ink); }
.stats > div { padding: 22px 20px 6px 0; border-right: 1px solid var(--line); padding-left: 20px; }
.stats > div:first-child { padding-left: 0; } .stats > div:last-child { border-right: 0; }
.stats dt { font-size: .85rem; color: var(--ink-2); font-weight: 700; }
.stats dd { margin: 6px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.stats b { font: 400 clamp(2.2rem, 4vw, 3.3rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.stats dd span { font-weight: 700; font-size: .92rem; }

.services { position: relative; }
.sgroup { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding: 34px 0; border-top: 1px solid var(--line); }
.sg-head h3 { font: 400 1.25rem/1.5 var(--display); }
.sg-head p { font-size: .92rem; color: var(--ink-2); margin-top: 8px; }
.slist li + li { border-top: 1px dashed var(--line); }
.srow { position: relative; display: grid; grid-template-columns: 34px 1fr 1.3fr auto 18px; gap: 18px; align-items: center; padding: 16px 14px; margin: 0 -14px;
  text-decoration: none; border-radius: 12px; isolation: isolate; transition: color .3s; }
.srow::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: color-mix(in srgb, var(--c) 13%, #fff);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.srow:hover::before, .srow:focus-visible::before { transform: scaleX(1); }
.srow .cube { transition: transform .45s var(--ease); }
.srow:hover .cube { transform: translateY(-5px) rotate(-8deg); }
.sr-name { font-weight: 800; font-size: 1.08rem; }
.sr-short { color: var(--ink-2); font-size: .92rem; line-height: 1.6; }
.sr-price { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.srow .ar { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.srow:hover .ar { transform: translateX(5px); }
.srow-preview { position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .4s var(--ease); box-shadow: 0 20px 40px rgba(27,29,69,.25); }
.srow-preview.on { opacity: 1; }
.srow-preview img { width: 100%; height: 100%; object-fit: cover; }

.mission { position: relative; overflow: hidden; color: #fff; background: var(--indigo); padding: clamp(96px, 14vw, 180px) 0; }
.ms-bg { position: absolute; inset: -12% 0; }
.ms-bg img, .ms-bg .ph-fallback { width: 100%; height: 100%; object-fit: cover; opacity: .32; mix-blend-mode: luminosity; }
.mission::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(53,58,147,.96) 30%, rgba(53,58,147,.55)); }
.ms-in { position: relative; z-index: 2; }
.ms-kicker { font-weight: 700; color: var(--yellow); letter-spacing: .08em; }
.ms-h { font: 400 clamp(2.2rem, 6vw, 4.8rem)/1.25 var(--display); margin: 16px 0 26px; }
.ms-p { max-width: 32em; font-size: 1.08rem; color: #E3E5F7; margin-bottom: 34px; }

.nm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.nm { padding: 34px 32px; background: #fff; border-radius: 4px 28px 4px 28px; border: 1px solid var(--line); }
.nm-big { font: 400 clamp(1.7rem, 3.4vw, 2.6rem)/1.2 var(--display); margin-bottom: 14px; }
.nm p:last-child { color: var(--ink-2); }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: f; }
.flow li { position: relative; padding: 0 22px 0 0; }
.flow li::before { content: ""; position: absolute; left: 46px; right: 8px; top: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 11px); }
.flow li:last-child::before { display: none; }
.fl-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: #fff; font: 400 1.15rem/1 var(--display); margin-bottom: 16px; position: relative; }
.flow h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 6px; }
.flow p { font-size: .92rem; color: var(--ink-2); line-height: 1.75; }

.find-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: border-color .25s, transform .25s var(--ease), background .25s; }
.chip:hover { border-color: var(--ink); transform: translateY(-2px); background: var(--white); }

.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.col-card { display: block; text-decoration: none; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.col-card figure { aspect-ratio: 3 / 2; overflow: hidden; background: var(--line); }
.col-card img, .col-card .ph-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.col-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(27,29,69,.1); }
.col-card:hover img { transform: scale(1.05); }
.cc-body { padding: 18px 20px 22px; }
.cc-body time { font-size: .82rem; color: var(--ink-2); font-weight: 700; }
.cc-body h3 { font-size: 1.02rem; font-weight: 800; line-height: 1.6; margin-top: 4px; }

/* よくある質問 */
.qas { margin-top: 28px; border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 4px; font-weight: 700; font-size: 1.04rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary span::before { content: "Q"; font-weight: 800; font-size: 1.15em; color: var(--coral); margin-right: 12px; }
.qa summary svg { flex: none; width: 20px; height: 20px; margin-top: 4px; transition: transform .35s var(--ease); }
.qa[open] summary svg { transform: rotate(45deg); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.qa[open] .qa-a { grid-template-rows: 1fr; }
.qa-a p { overflow: hidden; padding: 0 4px 0 30px; color: var(--ink-2); }
.qa[open] .qa-a p { padding-bottom: 22px; }

/* 相談の帯 */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(72px, 10vw, 120px) 0; }
.cta-in { position: relative; z-index: 1; width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.cta h2 { font: 400 clamp(1.7rem, 3.6vw, 2.8rem)/1.4 var(--display); max-width: 18em; }
.cta p { color: #CFD1EA; margin: 18px 0 32px; max-width: 34em; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-btns.center { justify-content: center; margin-top: 28px; }
.cta .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.cta .btn-ghost:hover { background: #fff; color: var(--ink); }
.cta-blocks { position: absolute; right: max(20px, calc((100vw - var(--wrap)) / 2)); bottom: 30px; display: flex; align-items: flex-end; gap: 6px; opacity: .95; }
.cta-blocks .cube:nth-child(odd) { animation: bob 5s ease-in-out infinite; }
.cta-blocks .cube:nth-child(even) { animation: bob 5s ease-in-out -2.5s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------------- 下層ページ ---------------- */
.phero { position: relative; padding: 36px 0 clamp(48px, 7vw, 80px); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, var(--paper)), var(--paper)); }
.phero::before { content: ""; position: absolute; right: -60px; top: -60px; width: 420px; height: 420px; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(30deg, transparent 0 27px, color-mix(in srgb, var(--c) 35%, transparent) 27px 28px),
              repeating-linear-gradient(150deg, transparent 0 27px, color-mix(in srgb, var(--c) 35%, transparent) 27px 28px);
  -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .82rem; color: var(--ink-2); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.ph-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.ph-grid.has-img { grid-template-columns: 1fr 1fr; }
.ph-sub { font-weight: 700; font-size: .92rem; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.ph-sub::before { content: ""; width: 12px; height: 12px; background: var(--c); transform: rotate(30deg) skewX(-30deg) scaleY(.86); flex: none; }
.ph-h1 { font: 400 clamp(2rem, 4.6vw, 3.4rem)/1.3 var(--display); margin-bottom: 22px; }
.post-h1 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); line-height: 1.45; }
.ph-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px 40px 6px 40px; background: var(--line); }
.ph-img img, .ph-img .ph-fallback { width: 100%; height: 118%; object-fit: cover; }
.js .phero .ph-text > *, .js .phero .ph-img { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .phero .ph-img { transform: scale(.96); clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease) .2s, transform 1.2s var(--ease) .2s, opacity .4s .2s; }
.loaded .phero .ph-text > *, .loaded .phero .ph-img { opacity: 1; transform: none; clip-path: inset(0); }
.loaded .phero .ph-text > :nth-child(2) { transition-delay: .1s; } .loaded .phero .ph-text > :nth-child(3) { transition-delay: .2s; }
.ph-fallback { background: repeating-linear-gradient(30deg, transparent 0 20px, rgba(255,255,255,.4) 20px 21px), linear-gradient(135deg, var(--c, var(--teal)), var(--indigo)); min-height: 100%; }

.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.worry { margin-top: 24px; display: grid; gap: 12px; }
.worry li { position: relative; padding: 16px 18px 16px 52px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 700; }
.worry li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
  background: radial-gradient(circle, #fff 30%, transparent 32%), var(--coral); }
.pricebox { position: sticky; top: calc(var(--hd) + 24px); padding: 30px; border-radius: 20px; background: #fff; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--c); display: grid; gap: 10px; justify-items: start; }
.pb-l { font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.pb-v { font: 400 clamp(1.6rem, 3vw, 2.2rem)/1.3 var(--display); }
.pb-n { font-size: .9rem; color: var(--ink-2); margin-bottom: 10px; }
.pts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.pt { padding: 28px; background: #fff; border-radius: 18px; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.pt:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(27,29,69,.08); }
.pt h3 { font-size: 1.12rem; font-weight: 800; margin: 12px 0 6px; }
.pt p { color: var(--ink-2); }
.rels { display: flex; flex-wrap: wrap; gap: 12px; }
.rel { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; background: #fff; border-radius: 12px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700;
  transition: border-color .3s, transform .3s var(--ease); }
.rel:hover { border-color: var(--c); transform: translateY(-3px); }
.rel .ar { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.rel:hover .ar { transform: translateX(4px); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sec-sm .svc-grid { margin-bottom: 40px; }
.svc-card { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; text-decoration: none; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s; }
.svc-card figure { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.svc-card img, .svc-card .ph-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(27,29,69,.12); }
.svc-card:hover img { transform: scale(1.06); }
.sc-body { padding: 20px 22px 24px; display: grid; gap: 6px; border-top: 5px solid var(--c); }
.sc-body h3, .sc-body .h3 { font-size: 1.12rem; font-weight: 800; margin: 0; }
.sc-body p { color: var(--ink-2); font-size: .94rem; line-height: 1.7; }
.sc-price { font-weight: 700; font-size: .9rem; }

.tbl-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.ptable { width: 100%; border-collapse: collapse; min-width: 640px; }
.ptable th, .ptable td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable thead th { background: var(--ink); color: #fff; font-size: .9rem; }
.ptable tbody th a { font-weight: 800; text-decoration: none; color: var(--indigo); }
.ptable tbody th a:hover { text-decoration: underline; }
.ptable .pr { font-weight: 800; white-space: nowrap; }
.ptable tbody tr:last-child > * { border-bottom: 0; }
/* スマホでは1行ずつカードにして、横にはみ出さないようにする */
@media (max-width: 640px) {
  .ptable { min-width: 0; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tbody tr { display: grid; gap: 6px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .ptable tbody tr:last-child { border-bottom: 0; }
  .ptable tbody th, .ptable tbody td { padding: 0; border: 0; }
  .ptable .pr { white-space: normal; font-size: 1.125rem; color: var(--ink); }
  .ptable tbody td:last-child { font-size: .875rem; color: var(--ink-2, #555); }
}

.steps { display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 22px; position: relative; padding-bottom: 36px; }
.steps li::before { content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px; width: 2px; background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 11px); }
.steps li:last-child::before { display: none; }
.steps h2 { font-size: 1.2rem; font-weight: 800; margin: 6px 0 4px; }
.steps p { color: var(--ink-2); }
.solve { display: grid; gap: 16px; margin-top: 24px; }
.solve li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.solve .fl-n { margin: 0; background: var(--coral); }

.info { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.info th, .info td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info th { width: 9em; font-weight: 800; background: color-mix(in srgb, var(--indigo) 5%, #fff); }
.info tr:last-child > * { border-bottom: 0; }

.prose h2 { font: 400 clamp(1.35rem, 2.6vw, 1.75rem)/1.5 var(--display); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose ul, .prose ol { margin: 14px 0; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 10px; background: var(--teal); transform: rotate(30deg) skewX(-30deg) scaleY(.86); }
.prose ol { counter-reset: o; }
.prose ol li { counter-increment: o; position: relative; padding-left: 34px; }
.prose ol li::before { content: counter(o); position: absolute; left: 0; top: .15em; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; background: var(--ink); color: #fff; font: 400 .8rem/1 var(--display); }
.prose .answer { margin-bottom: 28px; padding: 22px 24px; background: #fff; border-left: 5px solid var(--teal); border-radius: 0 14px 14px 0; }
.sign, .byline { margin-top: 36px !important; font-weight: 700; text-align: right; }
.byline { font-size: .9rem; color: var(--ink-2); }
.post-img { margin: -20px 0 36px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; }
.post-img img, .post-img .ph-fallback { width: 100%; height: 100%; object-fit: cover; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.person { padding: 34px; background: #fff; border-radius: 20px; border: 1px solid var(--line); border-top: 8px solid var(--c); }
.p-role { font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.p-name { font: 400 2rem/1.3 var(--display); margin: 6px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.p-name span { font: 700 .9rem var(--body); color: var(--ink-2); letter-spacing: .06em; }
.p-tag { font-weight: 700; color: var(--c); filter: brightness(.8); margin-bottom: 16px; }
.person ul { display: grid; gap: 8px; }
.person li { position: relative; padding-left: 20px; color: var(--ink-2); }
.person li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.callout { margin-top: 32px; padding: 24px 28px; border-radius: 16px; background: var(--ink); color: #fff; font-weight: 500; }

.hist { position: relative; display: grid; gap: 0; }
.hist li { display: grid; grid-template-columns: 9em 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.hy { font: 400 1.1rem/1.6 var(--display); color: var(--indigo); }
.logo-sec { grid-template-columns: .7fr 1.3fr; align-items: center; }
.logo-fig { padding: 40px; background: #fff; border-radius: 24px; border: 1px solid var(--line); }
.logo-fig img { max-height: 420px; width: auto; margin-inline: auto; }
.swatches li { display: flex; align-items: center; gap: 10px; padding-left: 0 !important; }
.swatches li::before { display: none; }
.swatches span { flex: none; width: 26px; height: 26px; border-radius: 6px; }

.area-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.area-card { position: relative; display: block; padding: 28px 24px 56px; background: #fff; border-radius: 18px; border: 1px solid var(--line); text-decoration: none; transition: transform .4s var(--ease), border-color .3s; }
.area-card:hover { transform: translateY(-5px); border-color: var(--teal); }
.area-card p { color: var(--ink-2); font-size: .92rem; }
.area-card .ar { position: absolute; right: 22px; bottom: 22px; width: 20px; height: 20px; color: var(--teal-ink); }

.news li { border-bottom: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 10em 1fr 18px; gap: 16px; align-items: center; padding: 20px 4px; text-decoration: none; font-weight: 700; transition: padding .3s var(--ease); }
.news a:hover { padding-left: 12px; }
.news time { color: var(--ink-2); font-size: .9rem; }
.news .ar { width: 18px; }

.contact { grid-template-columns: 1.3fr 1fr; }
.form { display: grid; gap: 18px; padding: 32px; background: #fff; border-radius: 20px; border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.req { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--coral-ink); color: #fff; font-size: .72rem; line-height: 1.7; vertical-align: 2px; }
.form input, .form select, .form textarea { font: 400 1rem/1.6 var(--body); color: var(--ink); padding: 12px 14px; border: 1.5px solid #C5C9DE; border-radius: 10px; background: var(--paper); transition: border-color .2s, background .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 3px rgba(53,58,147,.18); }
.form-note { font-size: .85rem; color: var(--ink-2); }
.form .btn { justify-self: start; }
.contact-side .h3 { margin: 26px 0 6px; } .contact-side .h3:first-child { margin-top: 0; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--indigo); word-break: break-all; }
.mail svg { width: 22px; flex: none; }
.smap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.smap ul { display: grid; gap: 6px; }
.smap a { color: var(--indigo); }
.nf { text-align: center; padding: 80px 0 120px; }
.nf-num { font: 400 clamp(5rem, 16vw, 10rem)/1 var(--display); color: var(--coral); }
.nf .answer { margin-inline: auto; }

/* ---------------- フッター ---------------- */
.ft { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 24px; }
.ft-in { width: min(100% - 40px, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 260px 1fr; gap: 56px; }
.ft-brand img { width: 84px; height: auto; }
.ft-mission { font: 400 1.15rem/1.5 var(--display); margin: 18px 0 12px; }
.ft-addr { font-size: .88rem; color: var(--ink-2); }
.ft-addr a { color: var(--indigo); word-break: break-all; }
.ft-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ft-cols h2 { font-size: .95rem; font-weight: 800; margin-bottom: 12px; }
.ft-cols ul { display: grid; gap: 4px; font-size: .9rem; }
.ft-cols a { color: var(--ink-2); text-decoration: none; }
.ft-cols a:hover { color: var(--ink); text-decoration: underline; }
.ft-copy { width: min(100% - 40px, var(--wrap)); margin: 48px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* ---------------- スマホ・タブレット ---------------- */
@media (max-width: 1000px) {
  .gnav, .hd-cta { display: none; }
  .menu-btn { display: block; z-index: 60; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { max-width: 620px; margin: 0 auto; width: 100%; }
  .sgroup { grid-template-columns: 1fr; gap: 12px; }
  .srow { grid-template-columns: 30px 1fr 18px; gap: 4px 14px; }
  .sr-short { grid-column: 2; grid-row: 2; }
  .sr-price { grid-column: 2; grid-row: 3; font-size: .85rem; color: var(--ink-2); }
  .srow .ar { grid-column: 3; grid-row: 1 / span 3; }
  .srow-preview { display: none; }
  .flow { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .flow li:nth-child(2)::before { display: none; }
  .svc-grid, .col-grid { grid-template-columns: 1fr 1fr; }
  .area-grid { grid-template-columns: 1fr 1fr; }
  .ft-in { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  :root { --hd: 62px; }
  body { font-size: 15.5px; }
  .b-name { font-size: 1.3rem; }
  .brand img { height: 36px; }
  .hero { padding-top: 32px; }
  .hero-btns .btn, .cta-btns .btn { flex: 1 1 auto; justify-content: center; }
  .pl-label text { font-size: 14px; }
  .sec-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div { padding: 18px 12px 14px 0 !important; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(even) { padding-left: 14px !important; border-left: 1px solid var(--line); }
  .nm-grid, .find-grid, .two, .pts, .people, .svc-grid, .col-grid, .contact, .smap, .logo-sec { grid-template-columns: 1fr; }
  .ph-grid.has-img { grid-template-columns: 1fr; gap: 24px; }
  .ph-img { aspect-ratio: 16 / 10; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li::before { display: none; }
  .pricebox { position: static; }
  .hist li { grid-template-columns: 1fr; gap: 4px; }
  .news a { grid-template-columns: 1fr 18px; gap: 4px 12px; }
  .news time { grid-column: 1; }
  .news span { grid-column: 1; }
  .news .ar { grid-column: 2; grid-row: 1 / span 2; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .ft-cols > div:first-child { grid-column: 1 / -1; }
  .cta-blocks { opacity: .35; right: 10px; bottom: 10px; }
  .form { padding: 22px; }
  .info th { width: 6.5em; padding: 14px; } .info td { padding: 14px; }
  .area-grid { grid-template-columns: 1fr; }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .rv, .js .pillar, .js .horse, .js .pl-label, .js .h1-main .ln, .js .h1-sub, .js .hero-lead, .js .hero-btns, .js .hero-cap,
  .js .phero .ph-text > *, .js .phero .ph-img { opacity: 1; transform: none; clip-path: none; }
  [data-parallax] { transform: none !important; }
  @view-transition { navigation: none; }
}

/* ================= 写真を増やした版（2026-11-20 本人「地味。もっと写真を多く」） ================= */
/* ヒーローの写真モザイク */
.hero-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; grid-template-rows: 1fr 1fr 1fr; gap: 14px; height: min(70vh, 640px); }
.hm { position: relative; overflow: hidden; border-radius: 6px 34px 6px 34px; background: var(--line); box-shadow: 0 18px 40px rgba(27,29,69,.16); }
.hm img, .hm .ph-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.hm:hover img { transform: scale(1.06); }
.hm-a { grid-row: 1 / span 3; }
.hm-b { grid-row: 1 / span 2; }
.hm-c { grid-row: 3; }
.hm-d { position: absolute; left: -16%; bottom: -26px; width: 46%; aspect-ratio: 4 / 3; border: 6px solid var(--paper); z-index: 2; }
.hm-cube { position: absolute; z-index: 3; filter: drop-shadow(0 10px 10px rgba(27,29,69,.2)); }
.hm-cube1 { right: -18px; top: -22px; animation: bob 6s ease-in-out infinite; }
.hm-cube2 { right: 38%; top: 46%; animation: bob 6s ease-in-out -2s infinite; }
.hm-cube3 { left: 32%; top: -14px; animation: bob 6s ease-in-out -4s infinite; }
.js .hm { opacity: 0; clip-path: inset(100% 0 0 0); transform: scale(1.04); transition: clip-path 1.1s var(--ease), transform 1.4s var(--ease), opacity .3s; }
.js .hm-cube { opacity: 0; transition: opacity .8s 1.3s; }
.loaded .hm { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
.loaded .hm-a { transition-delay: .35s; } .loaded .hm-b { transition-delay: .5s; } .loaded .hm-c { transition-delay: .65s; } .loaded .hm-d { transition-delay: .9s; }
.loaded .hm-cube { opacity: 1; }

/* 流れる写真の帯 */
.strip { overflow: hidden; padding: 30px 0 24px; }
.strip-track { display: flex; gap: 14px; width: max-content; animation: strip 70s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip li { flex: none; width: 260px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--line); }
.strip li:nth-child(odd) { transform: translateY(14px); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
@keyframes strip { to { transform: translateX(-50%); } }

.intro { padding-top: 56px; }
.intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.intro-grid .stats { grid-template-columns: 1fr 1fr; }
.intro-grid .stats > div:nth-child(3) { padding-left: 0; }
.intro-grid .stats > div:nth-child(2) { border-right: 0; }
.intro-grid .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

/* 事業の写真カード */
.pgroup { margin-top: 56px; }
.pg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.pg-head h3 { font: 400 1.4rem/1.4 var(--display); }
.pg-head p { color: var(--ink-2); font-size: .95rem; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pg-local .pgrid { grid-template-columns: 1fr 1fr; }
.pg-local .pcard figure { aspect-ratio: 16 / 8; }
.pcard { position: relative; display: block; text-decoration: none; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.pcard figure { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.pcard img, .pcard .ph-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.pcard figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(27,29,69,.55)); }
.pc-price { position: absolute; z-index: 1; left: 14px; bottom: 12px; color: #fff; font-weight: 800; font-size: .88rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.pc-body { position: relative; padding: 22px 20px; border-top: 5px solid var(--c); }
.pc-body .cube { position: absolute; right: 16px; top: -24px; transition: transform .45s var(--ease); }
.pc-body h4 { font-size: 1.12rem; font-weight: 800; margin-bottom: 4px; }
.pc-body p { color: var(--ink-2); font-size: .92rem; line-height: 1.7; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(27,29,69,.14); }
.pcard:hover img { transform: scale(1.07); }
.pcard:hover .cube { transform: translateY(-6px) rotate(-10deg); }

/* 写真タイル（業種・地域・関連） */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); }
.tile img, .tile .ph-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,22,58,.8)); }
.tile > span { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-weight: 800; font-size: 1.12rem; }
.tile > span small { flex-basis: 100%; order: 2; font-weight: 500; font-size: .85rem; opacity: .92; }
.tile .tile-h { font-weight: 800; }
.tile .ar { width: 18px; height: 18px; margin-left: auto; transition: transform .35s var(--ease); }
.tile:hover img { transform: scale(1.08); }
.tile:hover .ar { transform: translateX(5px); }
.tile-area { aspect-ratio: 3 / 4; }

.names-grid { display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }  /* 2026-11-24 馬の写真を外した */
.names-img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px 48px 6px 48px; }
.names-img img, .names-img .ph-fallback { width: 100%; height: 118%; object-fit: cover; }
.nm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
@media (max-width: 720px) { .nm-list { grid-template-columns: 1fr; } }
.wide-img { aspect-ratio: 21 / 7; overflow: hidden; border-radius: 22px; margin-bottom: 44px; }
.wide-img img, .wide-img .ph-fallback { width: 100%; height: 125%; object-fit: cover; }

/* 2枚の写真の帯 */
.duo { padding: 0 0 clamp(72px, 9vw, 120px); }
.duo-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: end; }
.duo figure { overflow: hidden; border-radius: 6px 36px 6px 36px; background: var(--line); }
.duo-a { aspect-ratio: 16 / 10; }
.duo-b { aspect-ratio: 4 / 5; margin-bottom: -40px; }
.duo img, .duo .ph-fallback { width: 100%; height: 120%; object-fit: cover; }
.mission .ms-bg img { opacity: .5; }
.mission::before { background: linear-gradient(100deg, rgba(53,58,147,.95) 25%, rgba(53,58,147,.35)); }
.ph-img { aspect-ratio: 5 / 4; }

@media (max-width: 1000px) {
  .hero-mosaic { height: 460px; margin-top: 16px; }
  .hm-d { left: -4%; }
  .intro-grid { grid-template-columns: 1fr; }
  .pgrid, .tiles { grid-template-columns: 1fr 1fr; }
  .tiles-4 { grid-template-columns: 1fr 1fr; }
  .names-grid { grid-template-columns: 1fr; }
  .names-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .hero-mosaic { height: 380px; gap: 10px; }
  .hm-d { width: 52%; bottom: -18px; left: -2%; border-width: 4px; }
  .hm-cube1 svg { width: 44px; height: 44px; }
  .strip li { width: 180px; }
  .pgrid, .pg-local .pgrid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile > span { font-size: .98rem; left: 12px; right: 12px; bottom: 10px; }
  .tile-area { aspect-ratio: 4 / 5; }
  .wide-img { aspect-ratio: 16 / 9; }
  .duo-b { margin-bottom: -24px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hm, .js .hm-cube { opacity: 1; clip-path: none; transform: none; }
  .hero-art .pillar, .hero-art .pl-label, .hero-art .hero-cap { opacity: 1 !important; transform: none !important; }
  .strip { overflow-x: auto; }
}

/* 本物の写真（2026-11-21）：見せたい所に合わせて切り抜き位置をずらす */
.hm-a img { object-position: 50% 30%; }
img[src*="/photo/soba"] { object-position: 50% 80%; }
img[src*="/photo/osaka-hai"], img[src*="/photo/paddock"] { object-position: 50% 60%; }
img[src*="/photo/dome"], img[src*="/photo/arena"] { object-position: 50% 75%; }


/* ================= 大企業のような作り（2026-11-24 本人「地味。大企業のようなHPに」） ================= */
:root { --night: #0E1032; }

/* ヘッダー：全面写真のページでは写真の上に重ね、スクロールしたら白い帯に */
.hd-over { position: fixed; left: 0; right: 0; top: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; color: #fff;
  transition: height .3s var(--ease), background .4s, color .4s, border-color .3s; }
.hd-over .b-name small { color: rgba(255,255,255,.78); transition: color .4s; }
.hd-over .gnav a::after { background: var(--yellow); }
.hd-over .menu-btn { background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.hd-over.scrolled { background: rgba(246,247,251,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); color: var(--ink); }
.hd-over.scrolled .b-name small { color: var(--ink-2); }
.hd-over.scrolled .gnav a::after { background: var(--coral); }
.hd-over.scrolled .menu-btn { background: var(--ink); }

.btn-line { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.btn-line:hover { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #fff; }

/* トップ：画面いっぱいの写真が切り替わる */
.xhero { position: relative; height: 100vh; height: min(100svh, 1100px); min-height: 640px; overflow: hidden; background: var(--night); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; }
.xh-slides, .xh-s { position: absolute; inset: 0; }
.xh-s { opacity: 0; transition: opacity 1.6s ease; }
.xh-s.is-on { opacity: 1; z-index: 1; }
.xh-s img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 9s linear; }
.xh-s.is-on img { transform: scale(1); }
.xh-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(14,16,50,.82) 0%, rgba(14,16,50,.42) 50%, rgba(14,16,50,.08) 100%),
              linear-gradient(0deg, rgba(14,16,50,.78) 0%, transparent 42%), linear-gradient(180deg, rgba(14,16,50,.5), transparent 22%); }
.xh-in { position: relative; z-index: 3; padding-bottom: clamp(130px, 17vh, 190px); }
.xh-sub { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .95rem; letter-spacing: .06em; color: var(--yellow); }
.xh-sub::before { content: ""; width: 14px; height: 14px; background: var(--yellow); transform: rotate(30deg) skewX(-30deg) scaleY(.86); flex: none; }
.xh-h1 { display: flex; flex-direction: column; font: 400 clamp(2.7rem, 8.2vw, 6.8rem)/1.14 var(--display); letter-spacing: .01em; margin: 20px 0 26px;
  text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.xh-h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.xh-h1 .ln > span { display: inline-block; }
.xh-lead { max-width: 36em; font-size: 1.08rem; line-height: 1.9; color: rgba(255,255,255,.88); }
.xh-in .hero-btns { margin-top: 34px; }
.js .xh-sub, .js .xh-lead, .js .xh-in .hero-btns { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .xh-h1 .ln > span { transform: translateY(105%); transition: transform 1.15s var(--ease); }
.loaded .xh-sub, .loaded .xh-lead, .loaded .xh-in .hero-btns, .loaded .xh-h1 .ln > span { opacity: 1; transform: none; }
.loaded .xh-sub { transition-delay: .2s; } .loaded .xh-h1 .ln:nth-child(1) > span { transition-delay: .35s; }
.loaded .xh-h1 .ln:nth-child(2) > span { transition-delay: .5s; } .loaded .xh-lead { transition-delay: .85s; } .loaded .xh-in .hero-btns { transition-delay: 1s; }

.xh-bar { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: flex; align-items: flex-end; gap: 24px; }
.xh-bar ol { display: grid; grid-template-columns: repeat(6, minmax(0, 140px)); gap: 16px; margin-right: auto; }
.xh-bar button { appearance: none; border: 0; background: none; font: 700 .85rem/1.4 var(--body); color: rgba(255,255,255,.6); cursor: pointer;
  position: relative; width: 100%; text-align: left; padding: 12px 0 2px; transition: color .3s; }
.xh-bar button::before, .xh-bar button i { content: ""; position: absolute; left: 0; top: 0; height: 2px; }
.xh-bar button::before { right: 0; background: rgba(255,255,255,.25); }
.xh-bar button i { width: 0; background: #fff; }
.xh-bar button:hover, .xh-bar button[aria-current="true"] { color: #fff; }
.xh-bar button[aria-current="true"] i { animation: xhp var(--dur, 6.5s) linear forwards; }
@keyframes xhp { to { width: 100%; } }
.xh-scroll { position: relative; width: 1px; height: 64px; background: rgba(255,255,255,.25); overflow: hidden; }
.xh-scroll::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: xsc 2.2s var(--ease) infinite; }
@keyframes xsc { to { top: 100%; } }

/* 数字の帯 */
.xnum { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: clamp(84px, 11vw, 150px) 0; }
.xnum::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(30deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px), repeating-linear-gradient(150deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 70%); mask: linear-gradient(90deg, transparent, #000 70%); }
.xnum-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.xnum .answer { color: #fff; font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.95; font-weight: 500; border: 0; padding: 0; background: none; }
.xstats { display: grid; grid-template-columns: 1fr 1fr; }
.xstats > div { padding: 30px 0 30px 30px; border-left: 1px solid rgba(255,255,255,.18); }
.xstats > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
.xstats dt { font-size: .85rem; font-weight: 700; color: #B9BCE8; }
.xstats dd { margin: 6px 0 0; display: flex; align-items: baseline; gap: 6px; }
.xstats b { font: 400 clamp(2.6rem, 4.6vw, 4rem)/1 var(--display); color: #fff; }
.xstats span { font-weight: 700; color: var(--yellow); }

/* 事業：大きな写真と文のパネル */
.xbiz-sec { padding: clamp(84px, 11vw, 150px) 0 0; background: var(--paper); }
.xbiz { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 580px; margin-top: clamp(40px, 6vw, 72px); background: #fff; }
.xbiz.rev { grid-template-columns: 1fr 1.3fr; }
.xbiz.rev .xb-img { order: 2; }
.xb-img { position: relative; overflow: hidden; min-height: 440px; background: var(--line); }
.xb-img img, .xb-img .ph-fallback { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; }
.xb-txt { position: relative; padding: clamp(44px, 6vw, 80px) max(20px, calc((100vw - var(--wrap)) / 2)) clamp(44px, 6vw, 80px) clamp(32px, 5vw, 72px); align-self: center; }
.xbiz.rev .xb-txt { padding: clamp(44px, 6vw, 80px) clamp(32px, 5vw, 72px) clamp(44px, 6vw, 80px) max(20px, calc((100vw - var(--wrap)) / 2)); }
.xb-txt::before { content: ""; display: block; width: 56px; height: 5px; background: var(--c); margin-bottom: 26px; }
.xb-txt h3 { font: 400 clamp(1.5rem, 2.6vw, 2.2rem)/1.35 var(--display); }
.xb-txt > p { color: var(--ink-2); margin: 14px 0 26px; }
.xb-txt ul { border-top: 1px solid var(--line); }
.xb-txt li a { display: grid; grid-template-columns: 1fr auto 18px; align-items: center; gap: 16px; padding: 17px 2px; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: padding .35s var(--ease), color .25s; }
.xb-n { font-weight: 800; font-size: 1.04rem; }
.xb-p { font-size: .82rem; color: var(--ink-2); font-weight: 700; }
.xb-txt li a .ar { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.xb-txt li a:hover { padding-left: 12px; color: var(--coral-ink); }
.xb-txt li a:hover .ar { transform: translateX(4px); }

/* 理念：画面いっぱいの写真 */
.mission { min-height: min(88vh, 900px); display: flex; align-items: center; background: var(--night); }
.mission .ms-bg img { opacity: .62; mix-blend-mode: normal; }
.mission::before { background: linear-gradient(100deg, rgba(14,16,50,.92) 22%, rgba(14,16,50,.35)); }

/* 現場の写真の帯 */
.field { padding-bottom: clamp(40px, 6vw, 72px); }
.field .strip { padding-top: 8px; }
.field .strip li { width: 340px; border-radius: 4px; }
.field .strip li:nth-child(odd) { transform: translateY(20px); }

/* 下層ページの頭：写真を画面いっぱいに */
.phero.ph-full { min-height: min(70vh, 640px); display: flex; align-items: flex-end; color: #fff; background: var(--night);
  padding: calc(var(--hd) + 48px) 0 clamp(44px, 6vw, 72px); }
.phero.ph-full::before { right: 0; top: 0; width: auto; height: auto; inset: 0; opacity: 1; z-index: 1; -webkit-mask: none; mask: none;
  background: linear-gradient(0deg, rgba(14,16,50,.86) 0%, rgba(14,16,50,.35) 55%, rgba(14,16,50,.55) 100%), linear-gradient(90deg, rgba(14,16,50,.55), transparent 70%); }
.pf-bg { position: absolute; inset: -8% 0; }
.pf-bg img, .pf-bg .ph-fallback { width: 100%; height: 100%; object-fit: cover; }
.pf-in { position: relative; z-index: 2; }
.ph-full .crumbs ol { color: rgba(255,255,255,.82); }
.ph-full .ph-sub { color: var(--yellow); }
.ph-full .ph-h1 { margin-bottom: 0; text-shadow: 0 4px 24px rgba(0,0,0,.3); font-size: clamp(2.2rem, 5.6vw, 4.4rem); }
.js .ph-full .pf-in > * { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.loaded .ph-full .pf-in > * { opacity: 1; transform: none; }
.loaded .ph-full .pf-in > :nth-child(2) { transition-delay: .12s; } .loaded .ph-full .pf-in > :nth-child(3) { transition-delay: .24s; }
.js .pf-bg img { transform: scale(1.08); }
.pf-lead { padding: clamp(40px, 6vw, 64px) 0 0; }
.pf-lead .answer { max-width: 46em; font-size: 1.12rem; }

@media (max-width: 1000px) {
  .xnum-grid { grid-template-columns: 1fr; }
  .xbiz, .xbiz.rev { grid-template-columns: 1fr; min-height: 0; }
  .xbiz.rev .xb-img { order: 0; }
  .xb-img { min-height: 0; aspect-ratio: 16 / 10; }
  .xb-txt, .xbiz.rev .xb-txt { padding: 40px 24px 48px; }
}
@media (max-width: 720px) {
  .xhero { min-height: 560px; }
  .xh-shade { background: linear-gradient(0deg, rgba(14,16,50,.9) 0%, rgba(14,16,50,.45) 60%, rgba(14,16,50,.5) 100%); }
  .xh-in { padding-bottom: 110px; }
  .xh-lead { font-size: .98rem; }
  .xh-bar { bottom: 22px; }
  .xh-bar ol { grid-template-columns: repeat(3, 1fr); gap: 10px 12px; width: 100%; }
  .xh-in { padding-bottom: 150px; }
  .xh-bar button { font-size: .75rem; }
  .xh-scroll { display: none; }
  .xstats > div { padding: 22px 0 22px 18px; }
  .xb-txt li a { grid-template-columns: 1fr 18px; }
  .xb-p { grid-column: 1; grid-row: 2; margin-top: -6px; }
  .xb-txt li a .ar { grid-column: 2; grid-row: 1 / span 2; }
  .field .strip li { width: 230px; }
  .phero.ph-full { min-height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .xh-s img, .xh-s.is-on img { transform: none; transition: none; }
  .xh-bar button[aria-current="true"] i { animation: none; width: 100%; }
  .xh-scroll::after { animation: none; }
  .js .xh-sub, .js .xh-lead, .js .xh-in .hero-btns, .js .xh-h1 .ln > span, .js .ph-full .pf-in > * { opacity: 1; transform: none; }
}

/* 制作実績 */
.wk-list { display: grid; gap: 28px; }
.wk-card { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .45s var(--ease), box-shadow .45s; }
.wk-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(27,29,69,.1); }
.wk-card figure { margin: 0; overflow: hidden; aspect-ratio: 16 / 10; }
.wk-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.wk-card:hover figure img { transform: scale(1.04); }
.wk-body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.wk-kind { font-size: .85rem; color: var(--ink-2); }
.wk-body h2 { font: 400 clamp(1.5rem, 3vw, 2.1rem)/1.3 var(--display); }
.wk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wk-tags li { font-size: .78rem; padding: 4px 10px; border-radius: 99px; background: var(--bg-2, #f1f1f6); border: 1px solid var(--line); }
.pricebox .wk-tags { margin: 4px 0 18px; }
.wk-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.wk-shot { margin: 0; }
.wk-shot img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(27,29,69,.08); }
.wk-shot figcaption { margin-top: 12px; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 760px) { .wk-card, .wk-shots { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .wk-card, .wk-card figure img { transition: none; } .wk-card:hover, .wk-card:hover figure img { transform: none; } }

/* 事業の見出しを言葉の切れ目で改行する */
.xb-txt h3, .sec-sm .sec-head .h2 { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }

/* 写真の帯：長い名前は言葉の切れ目で2行に */
.xh-bar button { word-break: keep-all; line-height: 1.35; }
.xh-lead { word-break: keep-all; max-width: 40em; }
.xstats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.xstats dd { flex-wrap: wrap; row-gap: 4px; }
.xstats dd span { white-space: nowrap; }
.biz-lead { word-break: keep-all; max-width: none !important; }
@media (max-width: 720px) { .br-pc { display: none; } }
/* 改行は言葉の切れ目（<wbr>）で行う。長すぎる語だけは画面に収まるように折り返す（2026-12-03） */
body { word-break: keep-all; }
h1, h2, h3, h4, .h2, .h3, .ph-h1 { text-wrap: balance; }
/* 本文は言葉の切れ目で自然に折り返す（行末をそろえる処理はしない） */
/* フォームの選択欄が長い項目名で横にはみ出さないように */
.form { min-width: 0; }
.form select, .form input, .form textarea { max-width: 100%; min-width: 0; }
/* 事業欄・紹介文は最後の行が短くなりすぎないように */
/* （事業欄の文は文末のかたまりを nowrap にして短い行を防ぐ） */
/* トップの紹介文は横幅いっぱいにして、指定の位置で改行する。数字の欄はその下に並べる（2026-12-03） */
.xnum-grid { grid-template-columns: 1fr; }
.xnum .answer { max-width: none; }
@media (min-width: 1001px) {
  .xstats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xstats > div:nth-child(-n+2) { border-bottom: 0; }
}
/* スマートフォンは、本文を画面の幅いっぱいに使って改行する（見出しは言葉の切れ目で改行）（2026-12-03） */
@media (max-width: 720px) {
  body, .xh-lead, .biz-lead { word-break: normal; }
  p span[style*="white-space:nowrap"], li span[style*="white-space:nowrap"], td span[style*="white-space:nowrap"], dd span[style*="white-space:nowrap"] { white-space: normal !important; }
  h1, h2, h3, h4, .h2, .h3, .ph-h1, .btn, .xh-bar button { word-break: keep-all; }
}
/* 料金表：タブレット幅でも、スマホと同じ「1行ずつ縦に並べる」形にして、言葉の途中で改行しないように（2026-12-03） */
@media (max-width: 900px) {
  .ptable { min-width: 0; }
  .ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ptable tbody tr { display: grid; gap: 6px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .ptable tbody tr:last-child { border-bottom: 0; }
  .ptable tbody th, .ptable tbody td { padding: 0; border: 0; }
  .ptable .pr { white-space: normal; font-size: 1.125rem; color: var(--ink); }
  .ptable tbody td:last-child { font-size: .875rem; color: var(--ink-2, #555); }
}
/* パソコン・タブレットでは、文の最後の言葉だけが次の行に落ちないように整える（スマホは画面幅で改行） */
@media (min-width: 721px) {
  main p, main li, main dd, main td, main figcaption { text-wrap: pretty; }
}
/* 「現場に、足を運ぶ。」の写真の帯：自分で横にスクロールできる（指・トラックパッド・ドラッグ・ボタン）。触っていないときはゆっくり流れる（2026-12-03） */
.field .strip { overflow-x: auto; overflow-y: hidden; cursor: grab; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent; padding-bottom: 32px; }
.field .strip::-webkit-scrollbar { height: 6px; }
.field .strip::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 3px; }
.field .strip.dragging { cursor: grabbing; user-select: none; }
.field .strip.dragging img { pointer-events: none; }
.field .strip-track { animation: none; }
.field .strip:focus-visible { outline: 3px solid var(--indigo); outline-offset: -3px; }
.strip-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.strip-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.strip-btn:hover { background: var(--ink); color: #fff; }
.strip-btn svg { width: 18px; height: 18px; }
