
/* =========================================================
   UNPLACED 共有デザインシステム
   参考: NOT A HOTEL ARCHITECTS 系（白ベース／モノクロ／洗練グロテスク）
   色・フォント・余白はこの :root を変えれば全ページに反映されます。
   ========================================================= */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a8a;
  --line: #e7e7e7;
  --surface: #f6f6f4;
  --pill: #111111;

  --font: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --pad: 48px;
  /* ヘッダーは二段構成：上段(ブランド/言語/CTA)＋下段(ナビ/現在地) */
  --header-top-h: 84px; /* ロゴ(60px+ワードマーク中央合わせの持ち上げ)がはみ出さない高さ */
  --header-sub-h: 40px;
  --header-h: calc(var(--header-top-h) + var(--header-sub-h));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* ページ内リンク（#contact 等）の着地位置：固定ヘッダーに隠れないよう頭を下げる */
section[id] { scroll-margin-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- buttons ---------- */
.cta-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 24px; background: var(--pill); color: #fff;
  border: 1px solid var(--pill); border-radius: 999px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .03em;
  transition: transform .2s, background .2s;
}
.cta-pill:hover { background: #333; transform: translateY(-1px); }
.cta-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 22px; border: 1px solid var(--fg); color: var(--fg);
  border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: .03em;
  transition: .2s;
}
.cta-ghost:hover { background: var(--fg); color: #fff; }

/* ---------- header（二段構成） ---------- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h); z-index: 100;
  display: flex; flex-direction: column;
  /* すりガラス（グラスモーフィズム）：スクロールでコンテンツが透けて見える */
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-bottom: 1px solid rgba(17,17,17,.08);
  transition: background .35s, border-bottom-color .35s;
}
/* スクロール後は白を強めて可読性を上げる（状態は body[data-scrolled] で駆動） */
body[data-scrolled="1"] .site-header {
  background: rgba(255,255,255,.86);
  border-bottom-color: rgba(17,17,17,.14);
}
.site-header__head {
  height: var(--header-top-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 32px var(--pad) 4px; /* コンテンツを下寄せし、下段の境界線に近づける */
}
.site-header__bottom {
  height: var(--header-sub-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  border-top: 1px solid rgba(17,17,17,.06);
}
/* 下段右：いま見ているセクション名（data-current-section と連動） */
.site-header__where {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.site-header__where .dot {
  width: 5px; height: 5px; border-radius: 999px; background: var(--fg); opacity: .55;
}
.site-header__brand { display: flex; align-items: center; }
.site-header__brand img {
  height: 60px; filter: invert(1); display: block; max-width: none;
  /* ロゴ画像はワードマークが下寄り・左に余白ぶん内側にあるため、
     上段のロゴと下段のナビ文字で「左端」と「見た目の重心」を揃える補正 */
  transform: translateY(-11.5px);
  margin-left: -14px;
}
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav > a, .site-nav__svc > span {
  font-size: 13.5px; font-weight: 500; letter-spacing: .03em; color: var(--fg);
  opacity: .85; transition: opacity .2s; cursor: pointer;
}
.site-nav > a:hover { opacity: 1; }
.site-nav__svc { position: relative; }
.site-nav__menu {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px;
  min-width: 230px; box-shadow: 0 20px 50px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transition: .22s;
}
.site-nav__svc:hover .site-nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.site-nav__menu a { display: block; padding: 11px 14px; border-radius: 9px; font-size: 13.5px; opacity: .9; }
.site-nav__menu a:hover { background: var(--surface); opacity: 1; }
.site-header__actions { display: flex; align-items: center; gap: 14px; }

/* burger (mobile only) */
.site-header__burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; cursor: pointer; position: relative;
}
.site-header__burger span {
  position: absolute; left: 11px; width: 18px; height: 1.5px; background: var(--fg); transition: .25s;
}
.site-header__burger span:nth-child(1) { top: 17px; }
.site-header__burger span:nth-child(2) { bottom: 17px; }
body.nav-open .site-header__burger span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.nav-open .site-header__burger span:nth-child(2) { bottom: 20px; transform: rotate(-45deg); }

/* mobile drawer */
.site-drawer {
  position: fixed; inset: 0; z-index: 90;
  /* すりガラス：背後のページがぼけて透ける */
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: .28s;
}
body.nav-open .site-drawer { opacity: 1; visibility: visible; }
.site-drawer__nav { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.site-drawer__nav a { font-size: 22px; font-weight: 500; letter-spacing: .02em; }
.site-drawer__nav .cta-pill { height: 48px; margin-top: 12px; font-size: 15px; }

/* ---------- generic sections ---------- */
section { padding: clamp(84px, 10vh, 132px) 0; }
.sec-head { display: flex; gap: 14px; align-items: baseline; margin-bottom: 54px; }
.sec-head h2 {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: clamp(30px, 4.2vw, 56px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1;
}
.divider { height: 1px; background: var(--line); }

/* ---------- refined form (underline style) ---------- */
.form { max-width: 720px; margin: 0 auto; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }
.field { display: flex; flex-direction: column; padding-top: 22px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.field label .req { color: var(--fg); margin-left: 6px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.field input, .field textarea {
  border: 0; border-bottom: 1px solid #d9d9d5; background: transparent; padding: 8px 2px;
  font-family: var(--font); font-size: 16px; color: var(--fg); transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--fg); }
.field textarea { resize: vertical; min-height: 90px; }
.form .submit { margin-top: 44px; text-align: center; }
.btn-submit {
  display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 54px;
  background: var(--pill); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: .06em;
  transition: transform .2s, background .2s;
}
.btn-submit:hover { background: #333; transform: translateY(-1px); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 48px; }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.site-footer__brand img {
  height: 60px; filter: invert(1); display: block;
  /* 列幅（社名の文字幅）に押されて横に潰れるのを防ぐ＝縦横比を保つ */
  max-width: none;
  /* 画像内の余白補正：上=装飾ぶん引き上げ／左=ワードマーク左端を列左端（社名）に揃える */
  margin-top: -34px;
  margin-left: -14px;
}
.site-footer__company {
  margin-top: 4px; font-size: 12px; font-weight: 500;
  letter-spacing: .14em; color: var(--muted);
}

/* ---------- フッター内サイト内検索 ---------- */
.site-search { display: flex; align-items: center; gap: 6px; }
.site-search input {
  width: 190px; padding: 6px 2px; background: transparent;
  border: 0; border-bottom: 1px solid var(--line);
  font-family: var(--font); font-size: 12.5px; color: var(--fg);
  transition: border-color .2s; border-radius: 0;
}
.site-search input::placeholder { color: var(--muted); letter-spacing: .06em; }
.site-search input:focus { outline: none; border-bottom-color: var(--fg); }
.site-search button {
  background: none; border: 0; cursor: pointer; padding: 4px 6px;
  font-family: var(--font); font-size: 13px; color: var(--muted); transition: color .2s;
}
.site-search button:hover { color: var(--fg); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.site-footer__nav a { font-size: 13.5px; color: var(--fg); opacity: .8; }
.site-footer__nav a:hover { opacity: 1; }
.site-footer__copy { margin-top: 40px; font-size: 12px; letter-spacing: .06em; color: var(--muted); }

@media (max-width: 820px) {
  :root { --pad: 22px; }
  .site-nav { display: none; }
  .site-header__burger { display: block; }
  .site-header__actions > .cta-pill { display: none; } /* モバイルはドロワー内のCTAを使う */
  .form .row { grid-template-columns: 1fr; }
}

/* =========================================================
   i18n（日英切り替え）
   <html lang> に応じて .i-ja / .i-en の表示を切り替える。
   トグルの無いページ（lang="ja" 固定）は常に日本語が出る。
   ========================================================= */
html:not([lang="en"]) .i-en { display: none !important; }
html[lang="en"] .i-ja { display: none !important; }
.lang-toggle { display: flex; align-items: center; gap: 7px; }
.lang-toggle a, .lang-toggle .active, .lang-toggle button {
  background: none; border: 0; cursor: pointer; padding: 2px;
  font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .1em;
  color: var(--muted); transition: color .2s; text-decoration: none;
}
.lang-toggle a:hover { color: var(--fg); }
.lang-toggle .active { color: var(--fg); cursor: default; }
.lang-toggle .sep { color: var(--line); font-size: 11px; }

/* sec-head の日本語サブラベル */
.sec-head .sub { font-size: 13px; color: var(--muted); letter-spacing: .08em; }

/* JA/EN切替のガタつき防止：
   ラベルが差し替わるボタン類は両言語を同じマスに重ね、
   広い方の幅で常に確保する（切替でヘッダー等が動かない） */
.cta-pill, .cta-ghost, .btn-submit { display: inline-grid; place-items: center; }
.cta-pill > span, .cta-ghost > span, .btn-submit > span { grid-area: 1 / 1; white-space: nowrap; }
html:not([lang="en"]) .cta-pill > .i-en,
html:not([lang="en"]) .cta-ghost > .i-en,
html:not([lang="en"]) .btn-submit > .i-en,
html[lang="en"] .cta-pill > .i-ja,
html[lang="en"] .cta-ghost > .i-ja,
html[lang="en"] .btn-submit > .i-ja {
  display: block !important;
  visibility: hidden;
}

/* ---------- service cards（浮遊タイル） ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
a.svc-card {
  position: relative;
  border: 1px solid rgba(17, 17, 17, .05); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, #ffffff 0%, #fbfbfa 100%);
  /* 多層シャドウ：接地の細い影＋足元の拡散影で「浮いている」立体感 */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(17, 17, 17, .05),
    0 14px 28px -10px rgba(17, 17, 17, .12),
    0 36px 72px -24px rgba(17, 17, 17, .18);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1);
}
a.svc-card:hover {
  transform: translateY(-8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(17, 17, 17, .05),
    0 24px 44px -14px rgba(17, 17, 17, .16),
    0 56px 100px -28px rgba(17, 17, 17, .26);
}
/* 水面のような光のスジ（ホバーで左から右へ流れる） */
a.svc-card::after, .soon-card::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -80%; width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, .08) 62%, transparent);
  transform: skewX(-12deg); pointer-events: none;
  transition: left .9s cubic-bezier(.22, 1, .36, 1);
}
a.svc-card:hover::after, .soon-card:hover::after { left: 125%; }
.svc-card__media {
  position: relative; aspect-ratio: 44 / 20; overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 17, 17, .045), rgba(17, 17, 17, 0));
  border-bottom: 1px solid rgba(17, 17, 17, .06);
}
.svc-card__media svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .5s ease; }
a.svc-card:hover .svc-card__media svg { transform: scale(1.04); }
.svc-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card .no { font-size: 11px; font-weight: 600; letter-spacing: .18em; color: var(--muted); }
.svc-card h3 { margin: 12px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.svc-card p { color: #555; font-size: 14.5px; line-height: 1.95; flex: 1; }
.svc-card .more {
  margin-top: 18px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- coming-soon cards（浮遊タイル / Works・Column） ---------- */
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.soon-card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #fbfbfa 100%);
  border: 1px solid rgba(17, 17, 17, .05); border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 1px 2px rgba(17, 17, 17, .05),
    0 12px 26px -10px rgba(17, 17, 17, .10),
    0 30px 60px -24px rgba(17, 17, 17, .15);
  min-height: 170px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s cubic-bezier(.22, 1, .36, 1);
}
.soon-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 2px 4px rgba(17, 17, 17, .05),
    0 20px 38px -12px rgba(17, 17, 17, .14),
    0 44px 80px -26px rgba(17, 17, 17, .2);
}
.soon-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); }

/* ---------- news list ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 110px 118px 1fr; gap: 20px; align-items: center;
  padding: 22px 4px; border-bottom: 1px solid var(--line);
}
.news-item time { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.news-item .cat {
  justify-self: start; font-size: 10.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px;
}
.news-item .ttl { font-size: 15px; }

/* ---------- compact contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: start; }
.contact-grid .sec-head { margin-bottom: 22px; }
.contact-lead { color: #555; font-size: 14.5px; line-height: 2; max-width: 360px; }
.form--compact { max-width: none; margin: 0; }
.form--compact .row { gap: 6px 28px; }
.form--compact .field { padding-top: 12px; }
.form--compact .field label { font-size: 10.5px; margin-bottom: 6px; }
.form--compact .field input, .form--compact .field textarea { font-size: 14.5px; padding: 6px 2px; }
.form--compact .field textarea { min-height: 64px; }
.form--compact .submit { margin-top: 20px; text-align: right; }
.form--compact .btn-submit { height: 46px; padding: 0 40px; font-size: 14px; }

/* consent checkbox + disabled submit */
.consent { display: flex; align-items: flex-start; gap: 11px; margin-top: 24px; }
.consent input[type="checkbox"] {
  width: 18px; height: 18px; margin: 1px 0 0; flex: none;
  accent-color: var(--fg); cursor: pointer;
}
.consent label { font-size: 13px; color: #555; line-height: 1.65; cursor: pointer; }
.consent label a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.btn-submit:disabled { opacity: .3; cursor: not-allowed; }
.btn-submit:disabled:hover { background: var(--pill); transform: none; }

/* ---------- footer (columns) ---------- */
.site-footer__cols { display: grid; grid-template-columns: 1.4fr .8fr 1.2fr 1fr; gap: 44px; align-items: start; }
.site-footer__tag { margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.site-footer__label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.site-footer__col a { display: block; font-size: 13.5px; padding: 5px 0; opacity: .85; }
.site-footer__col a:hover { opacity: 1; }
/* .site-footer__bottom の実体はファイル末尾の「構造アップデート」に定義（二段footer）。
   旧レイアウト（flex・右寄せ・全体をmuted）の指定はそこと衝突するため撤去した。 */
/* ロゴ列内の検索ボックス（社名の下） */
/* 検索は左列の最下部（区切り線のすぐ上）に配置 */
.site-footer__cols > .site-footer__col:first-child { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; }
.site-footer__col .site-search { margin-top: auto; padding-top: 26px; }

/* ---------- カーソル追従ドット（assets/ui.js が生成） ---------- */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: #fff;
  mix-blend-mode: difference; /* 背景の明暗を問わず視認できる反転色 */
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, width .25s, height .25s, margin .25s;
}
.cursor-dot.is-on { opacity: 1; }
.cursor-dot.is-link { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
@media (pointer: coarse) { .cursor-dot { display: none; } }

/* ---------- セクションのスクロール出現（assets/ui.js が制御） ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1);
}
.reveal.reveal-in { opacity: 1; transform: none; }

/* ---------- Q&A（アコーディオン：初期は折りたたみ） ---------- */
/* 一括開閉：見出し横の＋でリスト全体（質問＋回答）を開く */
.faq-master { margin-left: auto; background: none; border: 0; cursor: pointer; padding: 0; align-self: center; }
.faq-master .faq-icon { display: block; width: 42px; height: 42px; flex-basis: 42px; }
.faq-master:hover .faq-icon { border-color: var(--fg); }
.faq-master.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-master.open .faq-icon::before { transform: translate(-50%, -50%) rotate(180deg); }
.faq-wrap { max-height: 0; overflow: hidden; transition: max-height .5s ease; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 24px 4px; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-size: 15.5px; font-weight: 500; color: var(--fg);
  text-align: left; letter-spacing: .02em;
}
.faq-q:hover .faq-q__text { opacity: .65; }
.faq-q__text { transition: opacity .2s; }
.faq-icon { position: relative; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 999px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--fg);
  transform: translate(-50%, -50%); transition: transform .3s ease;
}
.faq-icon::before { width: 12px; height: 1.5px; }
.faq-icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::before { transform: translate(-50%, -50%) rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a__inner { padding: 2px 4px 26px; font-size: 14.5px; line-height: 2; color: #555; max-width: 860px; }

@media (max-width: 820px) {
  .svc-grid, .soon-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .news-item { grid-template-columns: 1fr; gap: 8px; padding: 18px 2px; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 30px; }
}

/* =========================================================
   構造アップデート（参考: Rinnai Aoyama の情報設計）
   ・見出しは英字大＋和文小の縦積み（.dhead）
   ・Service は左スティッキー目次＋右カード縦積み（.floor）
   ・About は段違いエディトリアル（.editorial）
   ・News は左見出し／右リスト（.listsec）
   ・Contact 直前にフルブリードの導線帯（.cta-band）
   ・テキストリンクは共通アトム（.tlink）
   ========================================================= */

/* ---------- 見出し（英字ディスプレイ＋和文サブ） ---------- */
.dhead { margin-bottom: 54px; }
.dhead__en {
  display: block;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: clamp(32px, 4.6vw, 60px); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.05; text-wrap: balance;
}
.dhead__sub {
  display: block; margin-top: 12px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .2em; color: var(--muted);
}
.dhead--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- テキストリンク（下線とアイコン、ホバーで矢印が進む） ---------- */
.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; letter-spacing: .06em;
  padding-bottom: 5px; border-bottom: 1px solid var(--line);
  transition: border-color .25s, color .25s;
}
.tlink__icon {
  position: relative; width: 20px; height: 1px; background: var(--fg); opacity: .5;
  transition: width .3s cubic-bezier(.22,1,.36,1), opacity .25s;
}
.tlink__icon::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px; border-top: 1px solid var(--fg); border-right: 1px solid var(--fg);
  transform: translateY(-50%) rotate(45deg);
}
.tlink:hover { border-bottom-color: var(--fg); }
.tlink:hover .tlink__icon { width: 30px; opacity: 1; }
.tlink:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

/* ---------- Service：左スティッキー目次＋右カード縦積み ---------- */
.floor { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.floor__side { position: sticky; top: calc(var(--header-h) + 48px); }
.floor__index { list-style: none; margin-top: 8px; border-top: 1px solid var(--line); }
.floor__index li { border-bottom: 1px solid var(--line); }
.floor__index a {
  display: flex; align-items: center; gap: 12px; padding: 15px 2px;
  font-size: 14px; letter-spacing: .04em; color: var(--fg);
  opacity: .38; transition: opacity .35s;
}
.floor__index a::before {
  content: ""; width: 0; height: 1px; background: var(--fg);
  transition: width .35s cubic-bezier(.22,1,.36,1);
}
.floor__index a:hover { opacity: .75; }
.floor__index li[aria-current="true"] a { opacity: 1; }
.floor__index li[aria-current="true"] a::before { width: 22px; }
.floor__stack { display: flex; flex-direction: column; gap: 28px; }

/* 横長の浮遊カード（既存タイル意匠を踏襲） */
a.svc-card--row { display: grid; grid-template-columns: 1fr 46%; align-items: stretch; }
a.svc-card--row .svc-card__body { padding: 34px 34px 32px; justify-content: center; }
a.svc-card--row .svc-card__media {
  /* 横積みでは高さを本文側に合わせる。既定の aspect-ratio を残すと
     「min-height × 44/20」が最小幅になり、列幅を超えてアートが切れるため解除する */
  aspect-ratio: auto; min-width: 0; height: auto; min-height: 232px;
  border-bottom: 0; border-left: 1px solid rgba(17,17,17,.06);
}
.svc-card__label {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.svc-card__body .tlink { margin-top: 22px; align-self: flex-start; }

/* ---------- About：段違いエディトリアル ---------- */
.editorial { display: grid; grid-template-columns: repeat(12, 1fr); gap: 34px 30px; }
.editorial__lead { grid-column: 1 / span 7; }
.editorial__lead .big {
  font-size: clamp(21px, 2.5vw, 33px); font-weight: 500; line-height: 1.6; letter-spacing: .01em;
}
.editorial__note { grid-column: 9 / span 4; align-self: end; }
.editorial__body { grid-column: 3 / span 6; font-size: 15px; line-height: 2.05; color: #4a4a4a; }
.editorial__body--offset { grid-column: 6 / span 6; }
.editorial__rule { grid-column: 1 / -1; height: 1px; background: var(--line); }
.editorial__quote {
  grid-column: 2 / span 8; font-size: clamp(17px, 1.9vw, 23px); font-weight: 500;
  line-height: 1.85; letter-spacing: .01em;
}
.editorial__foot { grid-column: 1 / -1; }

/* ---------- News：左見出し／右リスト ---------- */
.listsec { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.listsec__side { position: sticky; top: calc(var(--header-h) + 48px); }
.listsec__side .dhead { margin-bottom: 26px; }

/* ---------- 導線帯（フルブリード） ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(76px, 9vw, 120px) 0; }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: .42; }
.cta-band__veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.82) 52%, rgba(255,255,255,.6) 100%);
}
.cta-band__inner { position: relative; max-width: 720px; }
.cta-band__inner p { margin-top: 18px; font-size: 15px; line-height: 2; color: #444; }
.cta-band__actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- footer：二段構成 ---------- */
.site-footer__head {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 52px;
}
.site-footer__contact p { font-size: 13.5px; line-height: 1.95; color: var(--muted); margin: 14px 0 16px; }
.site-footer__contact .site-search { margin-top: 22px; }
.site-footer__bottom {
  display: grid; grid-template-columns: auto 1fr; gap: 30px 48px; align-items: start;
  padding-top: 46px; border-top: 1px solid var(--line);
}
.site-footer__ident { display: flex; flex-direction: column; }
.site-footer__menu { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.site-footer__menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.site-footer__menu a { font-size: 13px; letter-spacing: .04em; opacity: .8; transition: opacity .2s; }
.site-footer__menu a:hover { opacity: 1; }
.site-footer__menu ul.is-button { gap: 10px; }
.site-footer__menu ul.is-button a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: 999px; opacity: 1;
  font-size: 12.5px; letter-spacing: .06em; transition: background .2s, color .2s, border-color .2s;
}
.site-footer__menu ul.is-button a:hover { background: var(--fg); border-color: var(--fg); color: #fff; }
.site-footer__bottom .site-footer__copy { grid-column: 1 / -1; margin-top: 0; text-align: right; }

@media (max-width: 1040px) {
  .floor, .listsec { grid-template-columns: 1fr; gap: 34px; }
  .floor__side, .listsec__side { position: static; }
  .floor__index { display: none; } /* 1カラムではカード自体が目次を兼ねる */
  a.svc-card--row { grid-template-columns: 1fr; }
  a.svc-card--row .svc-card__media { min-height: 190px; border-left: 0; border-top: 1px solid rgba(17,17,17,.06); }
  .editorial__lead, .editorial__note, .editorial__body, .editorial__body--offset,
  .editorial__quote, .editorial__foot { grid-column: 1 / -1; }
  .site-footer__head { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 820px) {
  :root { --header-top-h: 84px; --header-sub-h: 0px; }
  .site-header__bottom { display: none; } /* ナビはドロワーへ */
  .site-footer__head { grid-template-columns: 1fr; }
  .site-footer__bottom { grid-template-columns: 1fr; }
  .site-footer__menu { align-items: flex-start; }
  .site-footer__menu ul { justify-content: flex-start; }
  .site-footer__bottom .site-footer__copy { text-align: left; }
}

/* 導線帯の見出し／カード全体ホバー時のテキストリンク連動 */
.cta-band__title { font-size: clamp(24px, 3.1vw, 42px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; text-wrap: balance; }
a.svc-card:hover .tlink { border-bottom-color: var(--fg); }
a.svc-card:hover .tlink__icon { width: 30px; opacity: 1; }

/* ============================================================
   HP-43 統合追補: 17ページ版が使用するコンポーネント
   基準 = TOPページのデザイントークン（HP-43_デザイントークン仕様_v1.md）
   2026-08-01 追加
   ============================================================ */

/* --- 下層ページのヒーロー --- */
.page-hero{padding:calc(var(--header-h) + 56px) 0 44px}
.page-hero .wrap{max-width:var(--maxw)}
.crumb{font-size:12px;letter-spacing:.04em;color:var(--muted);margin-bottom:18px}
.crumb a{color:var(--muted);text-decoration:none}
.crumb a:hover{color:var(--fg)}
.page-title{font-family:var(--font);font-weight:600;font-size:clamp(30px,4.2vw,56px);line-height:1.14;letter-spacing:-.03em;margin:14px 0 0;text-wrap:balance}
.sub2{display:block;margin-top:14px;font-size:clamp(13px,1.4vw,16px);font-weight:500;letter-spacing:.02em;color:var(--muted);line-height:1.8}
.lede{margin-top:26px;max-width:760px;color:#555;font-size:16px;line-height:2}
.lead{margin-top:20px;max-width:720px;color:#555;font-size:15px;line-height:2}
.lead-xl{margin-top:24px;max-width:760px;color:#444;font-size:clamp(17px,1.9vw,23px);line-height:1.9;font-weight:500}
.mini-eyebrow{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.catch-ja{font-size:clamp(24px,3.1vw,42px);font-weight:600;letter-spacing:-.02em;line-height:1.4;margin:0}
.catch-en{margin:10px 0 0;font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}

/* --- CTA 行 --- */
.cta-row{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px}

/* --- タイル（横並びカード） --- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px;margin-top:28px}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:26px 24px}
.tile p{margin:0;font-size:14px;line-height:1.95;color:#444}
.tile>b,.tile strong{display:block;margin-bottom:8px;font-weight:600;color:var(--fg)}

/* --- ステップ（AIが実行する / 人が判断する 等） --- */
.st{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;box-shadow:0 20px 50px rgba(0,0,0,.05)}
.st b{display:block;font-size:15px;font-weight:600;margin-bottom:8px}
.st span{display:block;font-size:13.5px;line-height:1.95;color:#555}

/* --- 箇条書き（定義リスト風） --- */
.rows{list-style:none;margin:16px 0 0;padding:0;border-top:1px solid var(--line)}
.rows li{padding:14px 2px;border-bottom:1px solid var(--line);font-size:14px;line-height:1.95;color:#444}
.rows li strong{font-weight:600;color:var(--fg)}

/* --- 表 --- */
.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:20px}
.spec{width:100%;border-collapse:collapse;font-size:14px;min-width:520px}
.spec th,.spec td{border-bottom:1px solid var(--line);padding:14px 16px;text-align:left;line-height:1.85;vertical-align:top}
.spec th{font-weight:600;color:var(--fg);background:var(--surface);white-space:nowrap}
.spec td{color:#555}
.spec .accent,.accent{color:var(--fg);font-weight:600}
.cmp th:first-child{width:34%}
.cmp thead th{background:var(--surface)}

/* --- 目次 --- */
.toc{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:22px 26px;margin:28px 0}
.lbl{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.toc ol{margin:0;padding-left:1.3em}
.toc li{font-size:14px;line-height:2;color:#444}

/* --- 記事本文 --- */
.article{max-width:780px}
.article h2{font-size:clamp(21px,2.5vw,33px);font-weight:600;letter-spacing:-.02em;margin:56px 0 16px;line-height:1.35}
.article h3{font-size:clamp(17px,1.9vw,23px);font-weight:600;margin:36px 0 12px}
.article p{font-size:15px;line-height:2.05;color:#333;margin:0 0 18px}
.article ul,.article ol{font-size:15px;line-height:2.05;color:#333;padding-left:1.4em}
.prose{font-size:15px;line-height:2.05;color:#444;margin:0 0 16px}
.block{padding:16px 0}
.flow{margin:18px 0}
.tight{margin-bottom:8px}

/* --- 注記・補足 --- */
.callout{background:var(--surface);border-left:3px solid var(--fg);border-radius:0 14px 14px 0;padding:20px 24px;font-size:14px;line-height:1.95;color:#444}
.note{font-size:12.5px;line-height:1.9;color:var(--muted);margin-top:12px}
.meta{font-size:12.5px;letter-spacing:.02em;color:var(--muted);margin:14px 0 0}
.tag{display:inline-block;font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line);border-radius:999px;padding:5px 12px;margin-bottom:12px}
.url{word-break:break-all;font-size:13px;color:var(--fg)}

/* --- サービスグリッド 4列 --- */
.svc-grid--4{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}

/* --- 広告LP --- */
.lp-hero{padding:calc(var(--header-h) + 48px) 0 40px;text-align:center}
.lp-badges{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:22px}
.lp-badges span{font-size:12px;letter-spacing:.04em;color:#444;background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:7px 16px}
.lp-banner{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:24px;text-align:center;margin:28px 0}
.lp-note-band{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;font-size:13px;color:#555;line-height:1.95}

/* --- モバイル --- */
@media (max-width:820px){
  .page-hero{padding-top:calc(var(--header-h) + 32px)}
  .lp-hero{padding-top:calc(var(--header-h) + 28px)}
  .toc{padding:18px 20px}
  .spec th,.spec td{padding:12px}
}

/* --- お問い合わせセクション（section.contact） --- */
.contact{background:var(--surface);border-top:1px solid var(--line)}

/* ============================================================
   HP-43 追補2: 新ヘッダーマークアップ（brand | nav | actions の1段構成）
   旧CSSは .site-header__head / __bottom の2段構成を前提としていたため、
   17ページ版のフラットな構造に合わせてレイアウトを定義し直す。
   ============================================================ */
:root{ --header-sub-h: 0px; }
@media (max-width:900px){ :root{ --header-sub-h: 0px; } }

.site-header{
  flex-direction:row; align-items:center; justify-content:space-between;
  gap:24px; padding:0 var(--pad);
}
.site-header__brand{ flex:0 0 auto; }
.site-header__brand img{ height:30px; transform:none; margin-left:0; }
.site-nav{ flex:1 1 auto; justify-content:center; gap:clamp(18px,2.4vw,38px); }
.site-header__actions{ flex:0 0 auto; }

/* モバイル: ナビは既存の .site-drawer（body.nav-open で開く全画面オーバーレイ）が担当する。
   .site-nav は 900px 以下で display:none のため、ここでの追加定義は不要。 */

/* ============================================================
   HP-47: width/height 属性は CLS 対策の「比率宣言」として付与している。
   属性値は presentational hint として CSS の width/height に効いてしまうため、
   レイアウト幅は従来どおり CSS 側で決めることを明示する。
   ============================================================ */
.site-header__brand img{ width:auto; }
.site-footer__brand img{ width:auto; }

/* ===== 統合時の復元パッチ（2026-08-02 Fiesta / HP-7・HP-9） =====
   Oxxyの再構築版site.cssで欠落していた2実装を、オリジナル site.css?v=8
   （HP内容\サイト（デザイン版）\assets\site.css 37〜49行目）から復元。
   1) 日本語の改行を文節単位にする（HP-7）。未対応ブラウザは文字単位折返しにフォールバック。
   2) ページ内リンクのアンカーオフセット（HP-9）。main配下の任意idも対象・ヘッダー+28pxの余裕。
      30行目の section[id]{scroll-margin-top:var(--header-h)} は本規則が後勝ちで上書きする。 */
body { word-break: auto-phrase; line-break: strict; }
p, li, dd, td, th, figcaption, .lead, .lede, .note, .callout, .tile p, .article p,
.svc-card p, .flow .st span, .faq-a__inner, .modal-body p, .modal-content p { text-wrap: pretty; }
main [id], section[id] { scroll-margin-top: calc(var(--header-h) + 28px); }
