/* =========================================================
   COMMUNE  site.css
   色・文字・余白は design/design.md の決まりに合わせる
   ========================================================= */

:root {
  --bg: #F7F5F2;
  --surface: #FFFFFF;
  --ink: #1F1B18;
  --ink-sub: #6B645D;
  --ink-mute: #A39C94;
  --line: #DCD7D1;
  --dark: #1C1A19;
  --dark-line: #4A4541;
  --on-dark: #F7F5F2;
  --on-dark-sub: #9E9892;
  --warm: #E08A4A;
  --cool: #4C9BD6;
  --warm-text: #A3531E;
  --cool-text: #2C6E9E;
  --error: #B3261E;
  --ph-a: #EFEBE6;
  --ph-b: #E7E2DC;

  --f-ja: 'LINE Seed JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --f-en: 'LINE Seed JP', 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'LINE Seed JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif; /* 数字・日付・ラベル(元は等幅) */
  --f-arrow: 'JetBrains Mono', 'Segoe UI Symbol', sans-serif; /* LINE Seed の ↗ は斜線に見えるので矢印だけ別 */

  --header-h: 80px;
  --edge: 40px;        /* 画面端からの余白(枠・ヘッダー) */
  --pad: 80px;         /* 本文の左右余白 */
  --max: 1280px;
  --sec: 160px;        /* セクション間 */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 767px) {
  :root {
    --header-h: 64px;
    --edge: 20px;
    --pad: 20px;
    --sec: 96px;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ja);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (max-width: 767px) { body { font-size: 14px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s ease-out; }
a:hover { color: var(--warm-text); }
h1, h2, h3, h4, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--cool); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.en-font { font-family: var(--f-en); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: var(--on-dark); padding: 8px 16px; border-radius: 4px; }
.skip-link:focus { top: 16px; color: var(--on-dark); }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* 斜線の仮置き画像 */
.ph {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 10px, var(--ph-b) 10px 20px);
  aspect-ratio: 16 / 10; width: 100%;
}
.ph > span { font-family: var(--f-mono); font-size: 12px; color: var(--ink-sub); background: var(--bg); padding: 4px 8px; }

/* ---------- 出現アニメーション ---------- */
/* JS が動くときだけ隠す(head の1行で html に .js が付く) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 部品 ---------- */
.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transition: background .2s ease-out; }
.dot-warm { background: var(--warm); }
/* ボタン・リンクの右端の矢印。なぞると右へ少し動く */
.arrow { display: inline-block; flex: none; font-family: var(--f-arrow); font-size: 1.45em; line-height: 1; transition: transform .2s ease-out; }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }

.sec-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; font-weight: 400; }
.sec-title .en { font-family: var(--f-en); font-size: 48px; line-height: 1.1; letter-spacing: 0; }
.sec-title .ja { font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; }
.sec-title.is-sm .en { font-size: 40px; }
.sec-title.is-sm .ja { font-size: 13px; }
@media (max-width: 767px) {
  .sec-title { gap: 4px 12px; }
  .sec-title .en, .sec-title.is-sm .en { font-size: 32px; }
  .sec-title .ja { font-size: 12px; }
}

.text-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 280px; max-width: 100%; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px; font-weight: 400;
}
.text-link:hover { color: var(--warm-text); }
.text-link.is-wide { width: 360px; padding-bottom: 16px; }
.text-link.is-strong { border-bottom-color: var(--ink); font-size: 16px; }
.text-link.is-strong .arrow { font-size: 24px; }
@media (max-width: 767px) { .text-link, .text-link.is-wide { width: 100%; padding-top: 12px; } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--ink); color: var(--on-dark); font-size: 15px;
  transition: background .2s ease-out;
}
.icon-btn:hover { color: var(--on-dark); background: #3A3430; }
@media (max-width: 767px) { .icon-btn { width: 44px; height: 44px; } }

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 14px; font-weight: 400; line-height: 1.4; white-space: nowrap;
  transition: background .2s ease-out, color .2s ease-out;
}
.btn-pill:hover { background: var(--ink); color: var(--on-dark); }
.btn-pill.on-dark { border-color: var(--on-dark-sub); color: var(--on-dark); }
.btn-pill.on-dark:hover { background: var(--on-dark); color: var(--dark); }

.btn-pill-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  height: 56px; padding: 0 40px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--on-dark); font-size: 15px; font-weight: 400; cursor: pointer;
  transition: background .2s ease-out;
}
.btn-pill-solid .arrow { color: var(--warm); }
.btn-pill-solid:hover { background: #3A3430; color: var(--on-dark); }
.btn-pill-solid:disabled { opacity: .5; cursor: not-allowed; }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 12px;
  border: 1px solid var(--ink-mute); border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1; color: var(--ink-sub); letter-spacing: .04em; white-space: nowrap;
}
.tag-warm { border-color: var(--warm); color: var(--warm-text); }
.tag-cool { border-color: var(--cool); color: var(--cool-text); }
@media (max-width: 767px) { .tag { font-size: 11px; padding: 0 10px; } }

/* ---------- 光の等高線 ---------- */
canvas.contour { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h); padding: 0 var(--edge);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--bg);
}
.logo { display: block; line-height: 0; }
/* ロゴは下に「Dimming & Programming」が入って縦長になったので、幅を前と同じにして高さで合わせる */
.logo img { height: 45px; width: auto; }
@media (max-width: 767px) { .logo img { height: 34px; } }
.logo:hover { color: var(--ink); }
.gnav { display: flex; align-items: center; gap: 32px; font-family: var(--f-en); font-weight: 400; font-size: 15px; letter-spacing: .04em; }
.gnav a { padding: 8px 0; }
.gnav a.is-current { color: var(--warm-text); }
.gnav a.header-contact { display: inline-flex; align-items: center; gap: 10px; margin-left: 8px; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--on-dark); }
.gnav a.header-contact:hover { background: #3A3430; color: var(--on-dark); }
.gnav a.header-contact .arrow { color: var(--warm); }
.gnav a.header-contact.is-current { background: var(--warm-text); color: var(--on-dark); }
.menu-btn { display: none; }
.sp-menu { display: none; }

@media (max-width: 900px) and (min-width: 768px) {
  .gnav { gap: 20px; font-size: 14px; }
}
@media (max-width: 767px) {
  .logo { font-size: 18px; }
  .gnav, .header-contact { display: none; }
  .menu-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; border-radius: 8px; background: var(--ink); cursor: pointer; padding: 0;
  }
  .menu-btn span { width: 16px; height: 1.5px; background: var(--on-dark); transition: transform .3s var(--ease); }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .sp-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 49;
    background: var(--bg); padding: 24px 20px 40px; overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .sp-menu[hidden] { display: none; }
  .sp-menu a:not(.btn-pill-solid) { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .sp-menu .en { font-family: var(--f-en); font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: 0; }
  .sp-menu .ja { font-size: 12px; font-weight: 700; color: var(--ink-sub); }
  .sp-menu a[aria-current] .en { color: var(--warm-text); }
  .sp-menu .btn-pill-solid { margin-top: 32px; height: 52px; }
  body.menu-open { overflow: hidden; }
}

/* ---------- TOP: ヒーロー ---------- */
.hero { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 640px; max-height: 1000px; padding: 0 var(--edge) var(--edge); }
.hero-frame { position: relative; height: 100%; border: 1px solid var(--ink); overflow: hidden; }
.hero-label, .hero-source, .hero-scroll { position: absolute; font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; line-height: 1.4; pointer-events: none; }
.hero-label { top: 32px; left: 40px; color: var(--ink-sub); }
.hero-tools { position: absolute; top: 24px; right: 32px; display: flex; align-items: center; gap: 16px; }
.hero-source { position: static; display: flex; gap: 16px; font-variant-numeric: tabular-nums; }
.hero-pause { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(247, 245, 242, .8);
  font-family: var(--f-ja); font-size: 12px; color: var(--ink-sub); cursor: pointer; transition: border-color .2s, color .2s; }
.hero-pause:hover { border-color: var(--ink); color: var(--ink); }
.hero-pause .icon { width: 8px; height: 10px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.hero-pause[aria-pressed="true"] .icon { width: 0; height: 0; border: 0; border-left: 9px solid currentColor; border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.hero-scroll { right: 32px; bottom: 24px; color: var(--ink-sub); pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px; }
.hero-scroll:hover { color: var(--ink); }
.hero-scroll .arrow { animation: scroll-hint 2.4s var(--ease) infinite; }
.hero-scroll:hover .arrow { transform: none; }
@keyframes scroll-hint { 0%, 100% { transform: translateY(-2px); opacity: .6; } 50% { transform: translateY(3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-scroll .arrow { animation: none; } }
.hero-copy { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 24px; pointer-events: none; }
.hero-copy h1 { font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.35; letter-spacing: .02em; }
.hero-copy .sub { font-family: var(--f-en); font-size: 15px; color: var(--ink-sub); letter-spacing: .02em; line-height: 1.6; }
.hero-news { position: absolute; left: 40px; bottom: 28px; display: flex; align-items: center; gap: 16px; font-size: 13px; line-height: 1.6; max-width: calc(100% - 200px); }
.hero-news .mono { color: var(--ink-sub); }
.hero-news .label { font-family: var(--f-en); font-weight: 600; font-size: 12px; letter-spacing: .08em; }
.hero-news a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) {
  .hero { height: 680px; min-height: 0; padding: 0 20px 20px; }
  .hero-label { top: 20px; left: 20px; font-size: 11px; }
  /* 縦のスマホは1行に収まらない(375px で LIGHTING × PROGRAMMING と色温度が重なる)。
     色温度は LIGHTING の下の行へ、一時停止ボタンは右上のまま */
  .hero-tools { top: 14px; right: 14px; left: 20px; justify-content: flex-end; gap: 8px; pointer-events: none; }
  .hero-pause { pointer-events: auto; }
  .hero-source { position: absolute; left: 0; top: 30px; font-size: 11px; gap: 8px; }
  .hero-pause { height: 30px; padding: 0 10px; }
  .hero-pause .label { display: none; }
  .hero-source .src { display: none; }
  .hero-copy { top: auto; bottom: 64px; left: 20px; right: 20px; transform: none; gap: 16px; }
  .hero-copy h1 { font-size: min(32px, 8.2vw); line-height: 1.45; } /* 「プログラミングを、」9字が1行に収まる大きさ */
  .hero-copy .sub { font-size: 13px; }
  .hero-scroll { right: 20px; bottom: 20px; font-size: 11px; }
  .hero-news { display: none; }
}

/* ---------- TOP: About ---------- */
.top-about { padding-top: var(--sec); padding-bottom: var(--sec); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 96px; align-items: center; }
.top-about-art { aspect-ratio: 440 / 420; display: flex; align-items: center; justify-content: center; margin: 0 -48px 0 48px; } /* PC は文字の位置を変えずに画像だけ右へ(間の余白に入る) */
.top-about-art svg { width: 100%; height: 100%; overflow: visible; }
.top-about-art .art-text { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.top-about-body { display: flex; flex-direction: column; gap: 32px; padding-left: 40px; }
.statement { font-size: 28px; font-weight: 400; line-height: 1.7; letter-spacing: .04em; }
.top-about-body p { max-width: 34em; text-wrap: pretty; }
@media (max-width: 767px) {
  .top-about { grid-template-columns: 1fr; gap: 32px; }
  .top-about-body { padding-left: 0; }
  .top-about .sec-title { order: -2; }
  .top-about-art { width: 100%; justify-self: center; order: -1; margin: 0; } /* 80% だとコードの文字が読めない */
  .statement { font-size: 22px; }
}

/* ---------- サービスの行(mud型) ---------- */
.service-list { border-bottom: 1px solid var(--line); }
.service-row {
  border-top: 1px solid var(--line); padding: 64px 40px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px;
}
.service-row:hover { color: var(--ink); }
.service-row:hover .service-en { color: var(--warm-text); }
.service-row:hover .round-arrow { background: var(--ink); color: var(--on-dark); transform: translateX(4px); }
.service-head { display: flex; gap: 24px; margin-left: -24px; }
.service-no { font-family: var(--f-mono); font-size: 22px; padding-top: 12px; line-height: 1; min-width: 2.6em; }
.service-names { display: flex; flex-direction: column; gap: 16px; min-width: 0; flex: 1; container-type: inline-size; }
/* いちばん長い「Programming」(6.15em)が1行に収まる大きさにする */
.service-en { font-family: var(--f-en); font-size: clamp(44px, 5.6vw, 80px); font-size: min(96px, 15.5cqi); font-weight: 400; line-height: 1; letter-spacing: -.02em; transition: color .2s ease-out; }
.service-ja { font-size: 12px; font-weight: 400; color: var(--ink-sub); letter-spacing: .08em; line-height: 1.4; }
.service-desc { padding-top: 16px; display: flex; flex-direction: column; gap: 20px; }
.service-desc h3 { font-size: 22px; font-weight: 400; line-height: 1.7; }
.service-desc p { font-size: 14px; color: var(--ink-sub); }
.service-desc .more { align-self: flex-end; display: inline-flex; align-items: center; gap: 16px; margin-top: 8px; font-size: 13px; color: var(--ink-sub); }
.round-arrow { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 1px solid var(--ink); border-radius: 50%;
  font-family: var(--f-arrow); font-size: 24px; color: var(--ink); transition: background .2s ease-out, color .2s ease-out, transform .2s ease-out; }
.top-service .sec-title { padding: 0 40px 40px; }
@media (max-width: 767px) {
  .service-row { grid-template-columns: 1fr; padding: 40px 0; gap: 16px; }
  .service-head { flex-direction: column; gap: 16px; }
  .service-head { margin-left: 0; }
  .service-no { font-size: 16px; padding-top: 0; }
  .round-arrow { width: 44px; height: 44px; font-size: 18px; }
  .service-desc { padding-top: 8px; gap: 12px; }
  .service-desc h3 { font-size: 18px; }
  .top-service .sec-title { padding: 0 0 24px; }
}

/* ---------- TOP: Works(写真固定+リスト) ---------- */
.top-works { padding-top: var(--sec); padding-bottom: var(--sec); }
.top-works .sec-title { padding-bottom: 48px; }
.works-cards-more { display: none; }
.top-works-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.works-photo { position: sticky; top: calc(var(--header-h) + 40px); aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--surface); }
.works-photo > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; opacity: 0; transition: opacity .4s ease-out; }
.works-photo > .is-active { opacity: 1; }
.works-list { display: flex; flex-direction: column; }
.works-item { border-top: 1px solid var(--line); padding: 24px 0 40px; display: flex; flex-direction: column; gap: 12px; color: var(--ink-mute); transition: color .4s ease-out, border-color .4s ease-out; }
.works-item.is-active, .works-item.is-active:hover { color: var(--ink); border-top-color: var(--ink); }
.works-item-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 13px; line-height: 1.4; }
.works-item-title { font-size: 26px; font-weight: 400; line-height: 1.5; }
.works-item-meta { display: flex; gap: 16px; align-items: center; font-size: 13px; line-height: 1.4; }
.works-more { margin-top: 24px; align-self: flex-end; }
.works-cards { display: none; }
@media (max-width: 767px) {
  .top-works .sec-title { padding-bottom: 24px; }
  .top-works-grid { display: none; }
  .works-cards {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scroll-padding-inline: var(--pad); scrollbar-width: none;
  }
  .works-cards::-webkit-scrollbar { display: none; }
  .works-card { flex: 0 0 280px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
  .works-card .thumb { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--surface); }
  .works-card .thumb > * { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
  .works-card .mono { font-size: 12px; color: var(--ink-sub); }
  .works-card .title { font-size: 16px; font-weight: 400; line-height: 1.6; }
  .works-cards-more { display: block; }
  .works-more { margin-top: 24px; }
}

/* ---------- TOP: News ---------- */
.top-news { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-bottom: var(--sec); }
.top-news-head { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
@media (max-width: 767px) {
  .top-news { grid-template-columns: 1fr; gap: 24px; }
  .top-news-head { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---------- 一覧(実績・お知らせ共通) ---------- */
.list { border-bottom: 1px solid var(--line); }
.list-item { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 32px; align-items: center; }
.list-item.no-thumb { grid-template-columns: minmax(0, 1fr) auto; }
.list-item:hover { color: var(--ink); }
.list-item:hover .list-title { color: var(--warm-text); }
.list-item:hover .list-arrow { transform: translateX(4px); color: var(--warm-text); }
.list-item:hover .list-thumb > img { transform: scale(1.03); }
.list-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px; background: var(--surface); }
.list-thumb > * { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.list-body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.list-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; line-height: 1.4; }
.list-meta .mono { color: var(--ink-sub); }
.list-title { font-size: 15px; font-weight: 400; line-height: 1.8; transition: color .2s ease-out; }
.list-item:not(.no-thumb) .list-title { font-size: 18px; line-height: 1.7; }
.list-arrow { font-family: var(--f-arrow); font-size: 20px; line-height: 1; transition: transform .2s ease-out, color .2s ease-out; }
.list-empty { border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-sub); }
@media (max-width: 767px) {
  .list-item { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .list-item.no-thumb { grid-template-columns: 1fr; }
  .list-arrow { display: none; }
  .list-meta { gap: 10px; }
  .list-meta .mono { font-size: 12px; }
  .list-title { font-size: 14px; }
  .list-item:not(.no-thumb) .list-title { font-size: 16px; }
}

.list-page { padding-top: 64px; }
@media (max-width: 767px) { .list-page { padding-top: 40px; } }

/* 絞り込み */
.filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.filter a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 400; line-height: 1;
}
.filter a:hover { border-color: var(--ink); color: var(--ink); }
.filter a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
@media (max-width: 767px) { .filter { gap: 8px; margin-bottom: 24px; } .filter a { padding: 0 16px; font-size: 13px; } }

/* ---------- TOP: Contact ---------- */
.top-contact { padding-bottom: var(--sec); }
.top-contact-inner { border-top: 1px solid var(--ink); padding: 80px 40px 0; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.top-contact-inner .big { font-family: var(--f-en); font-size: 96px; font-weight: 400; line-height: 1; letter-spacing: -.02em; }
.top-contact-inner p { font-size: 18px; letter-spacing: .05em; margin-top: 24px; }
.top-contact-inner .text-link { width: auto; }
@media (max-width: 767px) {
  .top-contact-inner { grid-template-columns: 1fr; padding: 48px 0 0; gap: 20px; }
  .top-contact-inner .big { font-size: 56px; }
  .top-contact-inner p { font-size: 15px; margin-top: 20px; }
}

/* ---------- 下層: タイトル枠・パンくず ---------- */
.page-title { position: relative; margin: 0 var(--edge); height: 280px; border: 1px solid var(--ink); overflow: hidden; }
.page-title.is-tall { height: 420px; }
.page-title-no { position: absolute; left: 40px; top: 32px; font-family: var(--f-mono); font-size: 13px; line-height: 1; }
.page-title-text { position: absolute; left: 40px; right: 40px; bottom: 40px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; font-weight: 400; pointer-events: none; }
.page-title-text .en { font-family: var(--f-en); font-size: 96px; line-height: 1; letter-spacing: -.02em; }
.page-title-text .ja { font-size: 14px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; }
.page-title.is-tall .page-title-text { flex-direction: column; align-items: flex-start; gap: 16px; }
.page-title.is-tall .page-title-text .en { font-size: clamp(64px, 9vw, 120px); }
@media (max-width: 767px) {
  .page-title { height: 200px; }
  .page-title.is-tall { height: 300px; }
  .page-title-no { left: 20px; top: 20px; font-size: 12px; }
  .page-title-text { left: 20px; right: 20px; bottom: 24px; }
  .page-title-text .en { font-size: 52px; }
  .page-title.is-tall .page-title-text .en { font-size: 48px; }
  .page-title-text .ja { font-size: 12px; }
}

.breadcrumb { max-width: var(--max); margin: 0 auto; padding: 20px var(--pad); display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--f-mono); font-size: 12px; line-height: 1.6; color: var(--ink-sub); text-transform: uppercase; }
.breadcrumb.has-border { max-width: none; border-top: 1px solid var(--line); padding-left: max(var(--pad), calc((100% - var(--max)) / 2 + var(--pad))); }
.breadcrumb a { color: var(--ink-sub); }
.breadcrumb a:hover { color: var(--warm-text); }

/* 左に項目名、右に内容(4:8) */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-top: 120px; }
.split:first-of-type { padding-top: 96px; }
.split-label { font-size: 18px; font-weight: 700; letter-spacing: .08em; line-height: 1.6; }
.split-label .en { display: block; font-family: var(--f-en); font-size: 16px; font-weight: 400; color: var(--ink-sub); letter-spacing: .04em; margin-bottom: 6px; }
@media (max-width: 767px) { .split-label { font-size: 16px; } .split-label .en { font-size: 14px; } }
.split-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.split-body p { max-width: 40em; }
.page-end { padding-bottom: var(--sec); }
@media (max-width: 767px) {
  .split, .split:first-of-type { grid-template-columns: 1fr; gap: 20px; padding-top: 64px; }
}

/* 定義リスト(会社情報) */
.dl { border-top: 1px solid var(--ink); }
.dl > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); line-height: 1.8; }
.dl dt { font-weight: 700; }
.dl dd a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
@media (max-width: 767px) { .dl > div { grid-template-columns: 1fr; gap: 4px; padding: 20px 0; } }

.signature { font-size: 14px; font-weight: 400; line-height: 1.8; }

/* ---------- サービス詳細 ---------- */
.svc-overview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; padding-top: 96px; }
.svc-overview h2 { font-size: 32px; font-weight: 400; line-height: 1.6; }
.svc-overview .body { display: flex; flex-direction: column; gap: 24px; font-size: 16px; line-height: 2.1; }
.svc-block { padding-top: 120px; }
.svc-block > .sec-title { padding-bottom: 40px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.feature { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.feature .mono { color: var(--ink-sub); }
.feature h3 { font-size: 20px; font-weight: 400; line-height: 1.6; }
.feature p { font-size: 14px; color: var(--ink-sub); }
.scope { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.scope li { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 400; line-height: 1.7; }
.scope li .mono { color: var(--ink-sub); font-size: 12px; flex: none; }
.scope-note { margin-top: 20px; font-size: 13px; color: var(--ink-sub); }
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.flow li { padding: 24px 24px 24px 0; margin-right: 24px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.flow li:last-child { border-right: 0; margin-right: 0; }
.flow .mono { font-size: 12px; color: var(--ink-sub); line-height: 1.4; }
.flow .t { font-size: 17px; font-weight: 400; line-height: 1.5; }
.flow .d { font-size: 13px; line-height: 1.8; color: var(--ink-sub); }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding-top: 120px; padding-bottom: var(--sec); }
.cta-lead { font-size: 22px; font-weight: 400; line-height: 1.7; }
@media (max-width: 767px) {
  .svc-overview { grid-template-columns: 1fr; gap: 24px; padding-top: 64px; }
  .svc-overview h2 { font-size: 24px; }
  .svc-overview .body { font-size: 15px; }
  .svc-block { padding-top: 80px; }
  .svc-block > .sec-title { padding-bottom: 24px; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .scope { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow li { border-right: 0; margin-right: 0; padding: 20px 0; border-bottom: 1px solid var(--line); }
  .flow li:last-child { border-bottom: 0; }
  .cta { flex-direction: column; align-items: stretch; gap: 24px; padding-top: 80px; }
  .cta-lead { font-size: 18px; }
}

/* サービス詳細の上部。PC: 上に番号・名前・説明を横一列、下に横長の絵を枠の幅いっぱい中央に。
   スマホ: 上に縦長の絵、下に文字。絵は PC 用(.art-wide)とスマホ用(.art-compact)を出し分ける */
.svc-hero { margin: 0 var(--edge); border: 1px solid var(--ink); overflow: hidden; display: flex; flex-direction: column; }
.svc-hero-text { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 36px 48px 0; }
.svc-hero-head { display: flex; flex-direction: column; gap: 14px; }
.svc-hero-no { font-family: var(--f-mono); font-size: 16px; letter-spacing: .08em; color: var(--ink-sub); line-height: 1.4; }
/* 「照度シミュレーション」(10字)が1行に収まる大きさ */
.svc-hero-title { font-size: clamp(32px, 3.8vw, 52px); font-weight: 700; line-height: 1.25; letter-spacing: .04em; white-space: nowrap; }
.svc-hero-lead { font-size: 15px; line-height: 1.9; color: var(--ink-sub); max-width: 30em; padding-bottom: 6px; }
.svc-hero-art { position: relative; height: clamp(320px, 31vw, 400px); padding: 20px 48px 32px; display: flex; align-items: center; justify-content: center; }
.svc-hero-art svg { width: 100%; height: 100%; }
.svc-hero-art .art-compact { display: none; }
.svc-hero-art .art-text { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.svc-hero-art .art-code text { white-space: pre; } /* コードの字下げ(行頭の空白)を詰めない */
.svc-hero-art .sim-art { display: block; width: 100%; height: 100%; cursor: crosshair; }
@media (max-width: 1000px) and (min-width: 768px) {
  .svc-hero-text { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 767px) {
  .svc-hero-text { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 20px 24px; }
  .svc-hero-head { gap: 10px; }
  .svc-hero-art { order: -1; height: auto; aspect-ratio: 600 / 440; padding: 12px; border-bottom: 1px solid var(--ink); }
  .svc-hero-art .art-wide { display: none; }
  .svc-hero-art .art-compact { display: block; }
  .svc-hero-no { font-size: 12px; }
  .svc-hero-title { font-size: min(28px, 7.2vw); }
  .svc-hero-lead { font-size: 14px; padding-bottom: 0; }
}

/* サービス詳細: ご用意いただきたい資料 */
.svc-lead { margin: -16px 0 32px; color: var(--ink-sub); }
.req-list { border-top: 1px solid var(--ink); }
.req-list > div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.req-list dt { display: flex; align-items: baseline; gap: 16px; font-size: 17px; font-weight: 700; line-height: 1.6; }
.req-list dt .mono { font-weight: 400; color: var(--ink-sub); font-size: 12px; }
.req-list dt .opt { align-self: center; }
.req-list dd { color: var(--ink-sub); line-height: 1.8; }
@media (max-width: 767px) {
  .svc-lead { margin: -8px 0 24px; }
  .req-list > div { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .req-list dt { font-size: 16px; }
  .req-list dd { padding-left: 32px; }
}

/* サービス詳細: 開発したソフト */
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; border-top: 1px solid var(--ink); padding-top: 32px; }
.product-cover { display: block; border-radius: 6px; overflow: hidden; background: #11161B; }
.product-cover img { width: 100%; transition: transform .6s var(--ease); }
.product-cover:hover img { transform: scale(1.03); }
.product-body { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.product-head { display: flex; align-items: center; gap: 16px; }
.product-mark { width: 44px; height: 44px; }
.product-name { font-family: var(--f-en); font-size: 32px; font-weight: 700; letter-spacing: .02em; line-height: 1.1; }
.product-tagline { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-sub); letter-spacing: .08em; }
.product-body p { font-size: 15px; }
.product-points { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.8; }
.product-points li { position: relative; padding-left: 1.3em; }
.product-points li::before { content: ''; position: absolute; left: .2em; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--warm); }
.product-body .btn-pill { margin-top: 4px; gap: 10px; }
.product-shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product-shots figure { display: flex; flex-direction: column; gap: 10px; }
.product-shots img { width: 100%; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.product-shots figcaption { font-size: 13px; color: var(--ink-sub); }
@media (max-width: 767px) {
  .product { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .product-name { font-size: 26px; }
  .product-shots { grid-template-columns: 1fr; gap: 16px; }
}

/* 工事中のページ */
.wip { padding-top: 96px; padding-bottom: var(--sec); display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.wip-badge { display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 16px; border: 1px solid var(--warm); border-radius: 999px; color: var(--warm-text); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.wip-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warm); animation: wip-blink 1.6s ease-in-out infinite; }
@keyframes wip-blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .wip-badge::before { animation: none; } }
.wip h2 { font-size: 28px; font-weight: 400; line-height: 1.6; }
.wip p { color: var(--ink-sub); max-width: 36em; }
@media (max-width: 767px) { .wip { padding-top: 56px; } .wip h2 { font-size: 22px; } }

/* サービス一覧ページの冒頭 */
.svc-intro { padding-top: 96px; padding-bottom: 64px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.svc-intro h2 { font-size: 28px; font-weight: 400; line-height: 1.7; }
@media (max-width: 767px) { .svc-intro { grid-template-columns: 1fr; gap: 20px; padding-top: 64px; padding-bottom: 40px; } .svc-intro h2 { font-size: 22px; } }

/* ---------- 記事(実績・お知らせの詳細) ---------- */
/* 記事: 写真・動画はサービスのページと同じ幅(1120px)いっぱいに。文章だけは1行が長くなりすぎないよう 760px で止める */
.article { max-width: var(--max); margin: 0 auto; padding: 80px var(--pad) 120px; display: flex; flex-direction: column; gap: 32px; }
.article h1 { max-width: 900px; }
.article-body > p, .article-body > h2, .article-body > h3, .article-body > ul, .article-body > pre { max-width: 760px; }
.article-meta { display: flex; align-items: center; gap: 12px; line-height: 1.4; }
.article-meta .mono { color: var(--ink-sub); }
.article h1 { font-size: 32px; font-weight: 400; line-height: 1.6; text-wrap: pretty; }
.article-body { display: flex; flex-direction: column; gap: 32px; font-size: 16px; line-height: 2.1; }
.article-body h2 { margin-top: 24px; font-size: 22px; font-weight: 400; line-height: 1.6; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-body h3 { font-size: 18px; font-weight: 700; line-height: 1.6; }
.article-body a:not(.btn-pill) { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ink-mute); }
.article-body ul { display: flex; flex-direction: column; gap: 4px; }
.article-body ul li { padding-left: 1.2em; position: relative; }
.article-body ul li::before { content: ''; position: absolute; left: .2em; top: .95em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-mute); }
.article-body .note { font-size: 14px; color: var(--ink-sub); line-height: 1.9; }
.article-body pre { margin: 0; background: var(--dark); color: var(--on-dark); padding: 20px 24px; border-radius: 4px; font-family: var(--f-mono); font-size: 13px; line-height: 1.9; overflow-x: auto; }
.article-figure { display: flex; flex-direction: column; gap: 12px; }
.article-figure img, .article-figure .ph { border-radius: 4px; background: var(--surface); }
.article-figure figcaption { font-size: 13px; color: var(--ink-sub); line-height: 1.6; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
/* 記事の写真は旧サイトと同じく1枚ずつ横幅いっぱいに、切り抜かずに見せる */
.gallery { grid-template-columns: 1fr; gap: 24px; }
.gallery img, .gallery .ph { border-radius: 4px; width: 100%; height: auto; background: var(--surface); }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--dark); border-radius: 4px; overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; padding: 0; background: var(--dark); cursor: pointer; width: 100%; }
.video-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s ease-out; }
.video-poster:hover img { opacity: 1; }
.video-poster .play { position: relative; display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 24px; border-radius: 999px; background: rgba(28, 26, 25, .85); color: var(--on-dark); font-size: 14px; font-weight: 400; }
.video-poster .play::before { content: ''; border-left: 10px solid var(--warm); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.pager { border-top: 1px solid var(--line); padding-top: 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-size: 14px; font-weight: 400; }
.pager-next { justify-self: end; }
@media (max-width: 767px) {
  .article { padding: 48px var(--pad) 96px; gap: 24px; }
  .article h1 { font-size: 24px; }
  .article-body { font-size: 15px; gap: 24px; }
  .article-body h2 { font-size: 19px; margin-top: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .btn-pill { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding-top: 80px; padding-bottom: var(--sec); }
.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-side .steps { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute); line-height: 1.6; }
.contact-side .steps .is-current { color: var(--ink); }
.form { display: flex; flex-direction: column; gap: 40px; max-width: 720px; }
.field { display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-label { display: flex; gap: 12px; align-items: center; font-size: 14px; font-weight: 700; line-height: 1.4; padding: 0; }
legend.field-label { margin-bottom: 12px; } /* fieldset の中の legend には gap が効かない */
.req, .opt { font-size: 11px; font-weight: 700; border: 1px solid; border-radius: 999px; padding: 1px 8px; line-height: 1.6; }
.req { color: var(--warm-text); border-color: var(--warm); }
.opt { color: var(--ink-sub); border-color: var(--ink-mute); }
.input, .textarea {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 4px; background: var(--surface);
  font-size: 16px; line-height: 1.6; outline: none;
  transition: border-color .2s ease-out, box-shadow .2s ease-out;
}
.textarea { height: auto; min-height: 200px; padding: 16px; line-height: 1.8; resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px var(--cool); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--error); }
.field-error { font-size: 13px; color: var(--error); font-weight: 400; line-height: 1.6; }
.field-hint { font-size: 13px; color: var(--ink-sub); line-height: 1.6; }
.choices { display: flex; flex-wrap: wrap; gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 400; line-height: 1; transition: background .2s, color .2s, border-color .2s;
}
.choice input:checked + span { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--cool); }
.choice:hover span { border-color: var(--ink); }
.file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.file-row input[type=file] { font-size: 14px; max-width: 100%; }
.file-row input[type=file]::file-selector-button {
  height: 40px; padding: 0 20px; margin-right: 12px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--surface); font-family: var(--f-ja); font-size: 13px; font-weight: 400; cursor: pointer;
}
.check { display: flex; gap: 12px; align-items: center; font-size: 14px; cursor: pointer; line-height: 1.6; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; margin: 0; }
.check a { text-decoration: underline; text-underline-offset: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { border: 1px solid var(--error); color: var(--error); border-radius: 4px; padding: 16px 20px; font-size: 14px; font-weight: 400; line-height: 1.8; background: var(--surface); }
.form-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.confirm-list { border-top: 1px solid var(--ink); }
.confirm-list > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); line-height: 1.8; }
.confirm-list dt { font-weight: 700; font-size: 14px; }
.confirm-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .form { gap: 32px; }
  .choices { gap: 8px; }
  .choice span { padding: 0 16px; font-size: 13px; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 4px; }
  .form-actions .btn-pill-solid { width: 100%; }
  .form-actions .btn-pill { width: 100%; min-height: 52px; }
}

/* ---------- 本文だけのページ(プライバシーポリシー・404) ---------- */
.doc { max-width: 720px; display: flex; flex-direction: column; gap: 40px; }
.doc section { display: flex; flex-direction: column; gap: 12px; }
.doc h2 { font-size: 17px; font-weight: 700; line-height: 1.6; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ---------- フッター ---------- */
.site-footer { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--warm); }
.footer-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 96px var(--pad) 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; pointer-events: none; }
.footer-inner a, .footer-bottom a { pointer-events: auto; }
.footer-info { display: flex; flex-direction: column; gap: 40px; }
.footer-block { display: flex; flex-direction: column; gap: 12px; line-height: 1.5; }
.footer-label { font-family: var(--f-en); font-size: 13px; color: var(--on-dark-sub); letter-spacing: .04em; }
.footer-big { font-family: var(--f-en); font-size: 24px; letter-spacing: 0; }
.footer-small { font-size: 13px; color: var(--on-dark-sub); }
.footer-sns { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--f-en); font-size: 24px; }
.footer-sns a { text-decoration: underline; text-underline-offset: 6px; }
.footer-sns .is-soon { color: var(--on-dark-sub); display: inline-flex; align-items: baseline; gap: 10px; }
.footer-sns .is-soon small { font-family: var(--f-ja); font-size: 11px; font-weight: 700; letter-spacing: .08em; border: 1px solid var(--dark-line); border-radius: 999px; padding: 2px 8px; line-height: 1.4; }
.footer-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.product-name { font-family: var(--f-en); font-size: 22px; font-weight: 600; letter-spacing: .02em; line-height: 1.2; }
.footer-col { display: flex; flex-direction: column; gap: 14px; font-size: 14px; font-weight: 400; line-height: 1.6; }
.footer-col-title { font-family: var(--f-en); font-size: 15px; padding: 12px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.footer-actions { display: flex; gap: 12px; }
.footer-actions .btn-pill { gap: 12px; }
.footer-bottom { position: relative; max-width: var(--max); margin: 0 auto; padding: 120px var(--pad) 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 12px; color: var(--on-dark-sub); line-height: 1.6; }
.footer-bottom a { color: var(--on-dark-sub); }
/* 「COMMUNE」は 5.5em。横幅いっぱいに収め、下端だけ画面からはみ出させる */
.footer-logo { position: relative; margin: 64px var(--edge) 0; color: var(--on-dark); pointer-events: none; user-select: none; line-height: 0; }
.footer-logo svg { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: 1fr; padding: 64px var(--pad) 0; gap: 40px; }
  .footer-big { font-size: 20px; }
  .footer-sns { font-size: 18px; }
  .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .footer-col-title { padding: 10px 0; }
  .footer-actions { align-items: stretch; }
  .footer-bottom { padding-top: 48px; font-size: 11px; }
  .footer-logo { margin-top: 40px; }
}
