/* 株式会社サンプル デモサイト 07「スプリット（見開き）」
   左に言葉、右に写真。スマホ（800px以下）は1カラム。 */

:root {
  --paper: #F3F4F1;   /* 石灰白：地・左パネル */
  --ink: #1F2D2F;     /* 墨：文字 */
  --ink-2: #56615F;   /* 墨の薄め：補助文字（AA確保） */
  --celadon: #5E8C88; /* 青磁：現在地・フォーカス・下線のみ */
  --grey: #9AA3A2;    /* 灰：線・仮枠 */
  --line: #D8DCD9;
  --white: #FFFFFF;
  --slot: #E2E6E4;    /* 仮枠 */
  --font: "Hiragino Sans", "Yu Gothic", YuGothic, "Meiryo", sans-serif;
  --gutter: 20px;
  --note-h: 28px;
  --bar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  line-break: strict;
  word-break: auto-phrase; /* 対応ブラウザでは文節単位で改行 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
html.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; }

:focus-visible { outline: 2px solid var(--celadon); outline-offset: 3px; }
main:focus, main:focus-visible { outline: none; }

/* 文節ごとの折り返し単位 */
.ph { display: inline-block; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -120px; z-index: 100;
  padding: 12px 18px; background: var(--ink); color: var(--white);
  font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.noscript { padding: 24px var(--gutter); }

/* ------------------------------------------------------------
   ヘッダー（スマホ基準）
------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: calc(-1 * var(--note-h)); /* 注記の行だけ流れ、バーは残る */
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.demo-note {
  order: -1;
  height: var(--note-h);
  padding: 0 16px;
  font-size: 10.5px;
  line-height: var(--note-h);
  letter-spacing: 0;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.header-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar-h);
  padding: 0 6px 0 var(--gutter);
  background: var(--paper);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .7em;
  min-height: 44px;
  padding-top: 11px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark { font-size: 17px; font-weight: 300; letter-spacing: .22em; }
.brand-sub { font-size: 11px; letter-spacing: .14em; color: var(--ink-2); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 0;
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.menu-icon { position: relative; display: block; width: 20px; height: 9px; }
.menu-icon span {
  position: absolute; left: 0; width: 20px; height: 1px; background: var(--ink);
  transition: transform .2s ease, top .2s ease;
}
.menu-icon span:first-child { top: 0; }
.menu-icon span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:first-child { top: 4px; transform: rotate(35deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:last-child { top: 4px; transform: rotate(-35deg); }

#site-nav {
  position: fixed;
  inset: 0;
  z-index: 1;
  padding: calc(var(--note-h) + var(--bar-h) + 24px) var(--gutter) 40px;
  background: var(--paper);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.menu-open #site-nav { visibility: visible; opacity: 1; transition: opacity .2s ease; }
#site-nav ul { border-top: 1px solid var(--line); }
#site-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: .1em;
  text-decoration: none;
}
#site-nav a::before {
  content: ""; flex: none; width: 16px; height: 2px; background: transparent;
}
#site-nav a[aria-current="page"]::before { background: var(--celadon); }

/* ------------------------------------------------------------
   ページ共通（スマホ基準）
------------------------------------------------------------ */
.lead { padding: 36px var(--gutter) 32px; }
.page-title {
  font-size: clamp(28px, 8.4vw, 36px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: .08em;
}
.lead-text {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-2);
  max-width: 30em;
}
.scene { display: none; }

.lead .text-link { margin-top: 20px; }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--celadon);
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
}
.text-link:hover { text-decoration-thickness: 2px; }

.list-links { border-top: 1px solid var(--line); }
.list-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  text-decoration: none;
}
.list-links a:hover { text-decoration: underline; text-decoration-color: var(--celadon); text-underline-offset: 7px; }
.page-top .lead .list-links { display: none; } /* スマホでは写真下のリンクで代替 */

.media { padding-bottom: 8px; }

/* 写真 */
.shot { position: relative; margin: 0 0 56px; scroll-margin-top: calc(var(--bar-h) + 12px); }
.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--slot);
  overflow: hidden;
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.slot-label {
  position: absolute; left: 16px; bottom: 12px;
  font-size: 12px; letter-spacing: .08em; color: var(--ink-2);
}
.badge {
  position: absolute; left: 12px; top: 12px;
  padding: 4px 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
}
.cap { display: block; padding: 14px var(--gutter) 0; }
.cap-name { display: block; font-size: 19px; font-weight: 300; letter-spacing: .1em; line-height: 1.6; }
.cap-line { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.cap-note { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.ai-tag { display: block; margin-top: 8px; font-size: 11px; letter-spacing: .04em; color: var(--ink-2); }
.cap-link { margin: 2px var(--gutter) 0; }

.page-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin: 8px var(--gutter) 0;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.8;
  color: var(--ink-2);
}

/* 表（会社概要・サテライト） */
.spec { border-top: 1px solid var(--line); }
.spec > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 12px; letter-spacing: .08em; color: var(--ink-2); }
.spec dd { margin-top: 4px; font-size: 15px; }
.tbd { color: var(--ink-2); }
.spec .text-link { min-height: 44px; }

.surface { background: var(--white); padding: 32px var(--gutter) 8px; }
.surface .page-foot { margin-left: 0; margin-right: 0; }

.sub-h { font-size: 20px; font-weight: 300; letter-spacing: .1em; line-height: 1.5; }

/* 仮枠（代表写真・地図） */
.frame.is-empty, .map-slot {
  display: flex; align-items: center; justify-content: center;
  padding: 16px; text-align: center;
  background: var(--slot);
  border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}

/* 会社概要 */
.rep { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 20px; align-items: end; margin-bottom: 40px; }
.rep .frame.is-empty { font-size: 12px; }
.rep-name { margin-top: 2px; font-size: 22px; font-weight: 300; letter-spacing: .14em; }
.rep-note { margin-top: 6px; font-size: 13px; color: var(--ink-2); }

/* サテライト */
.satellite-info { padding: 0 var(--gutter); }
.satellite-info .spec { margin-bottom: 32px; }
.map-slot { aspect-ratio: 4 / 3; margin-bottom: 40px; }

/* 物件・施工事例 */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
  margin: 0 var(--gutter) 28px;
  border-bottom: 1px solid var(--line);
}
.filters button {
  position: relative;
  min-height: 48px;
  padding: 0 2px;
  background: none;
  border: 0;
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--celadon);
}
.work { margin-bottom: 64px; }
.work .shot { margin: 0; }
.work-body { padding: 18px var(--gutter) 0; }
.work-kind { font-size: 12px; letter-spacing: .08em; color: var(--ink-2); }
.work-title { margin: 2px 0 14px; font-size: 20px; font-weight: 300; letter-spacing: .08em; line-height: 1.6; }
.facts > div {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: 13px; }
.filter-status { margin: 0 var(--gutter) 24px; font-size: 12px; color: var(--ink-2); }

/* お問い合わせ */
.channels { display: grid; gap: 12px; padding: 0 0 8px; }
.channel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px var(--gutter) 32px;
  background: var(--white);
}
.channel-h { font-size: 28px; font-weight: 300; letter-spacing: .12em; line-height: 1.4; }
.channel .facts { width: 100%; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 56px;
  max-width: 100%;
  padding: 10px 28px;
  background: transparent;
  border: 1px dashed var(--grey);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}
.btn:disabled { cursor: not-allowed; }
.contact .page-foot { margin-top: 20px; }

/* 404 */
.nf { padding: 0 var(--gutter) 24px; }
.nf .sub-h { margin-bottom: 12px; font-size: 14px; color: var(--ink-2); letter-spacing: .08em; }

@media (min-width: 480px) {
  .spec > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; align-items: baseline; }
  .spec dd { margin-top: 0; }
  .rep { grid-template-columns: minmax(0, 168px) minmax(0, 1fr); gap: 28px; }
}

/* ------------------------------------------------------------
   PC・タブレット横（801px以上）：左右見開き
------------------------------------------------------------ */
@media (min-width: 801px) {
  :root {
    --panel: 40%;
    --px: clamp(28px, 3.6vw, 60px);
    --top-zone: 112px;
    --bottom-zone: 236px;
    --media-px: clamp(32px, 6vw, 112px);
  }

  .layout { display: grid; grid-template-columns: var(--panel) minmax(0, 1fr); }

  .site-header {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 0 var(--px);
    background: transparent;
    border: 0;
    pointer-events: none; /* 下の左パネル本文をクリックできるように */
  }
  .site-header > * { pointer-events: auto; }
  .header-bar { height: var(--top-zone); padding: 0; background: transparent; }
  .menu-toggle { display: none; }
  .brand-mark { font-size: 19px; }

  #site-nav {
    position: static;
    margin-top: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  #site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  #site-nav a {
    min-height: 44px;
    gap: 10px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .06em;
  }
  #site-nav a::before { width: 14px; }
  #site-nav a:hover::before { background: var(--grey); }
  #site-nav a[aria-current="page"]::before { background: var(--celadon); }

  .demo-note {
    order: 0;
    height: auto;
    padding: 14px 0 22px;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: .04em;
    white-space: normal;
    border: 0;
  }

  main { grid-column: 1 / -1; grid-row: 1; min-width: 0; }

  .page { display: grid; grid-template-columns: var(--panel) minmax(0, 1fr); }

  .lead {
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    padding: var(--top-zone) var(--px) var(--bottom-zone);
    display: flex;
    flex-direction: column;
    justify-content: safe center;
  }
  .page-title { font-size: clamp(28px, 3vw, 46px); }
  .lead-text { margin-top: 18px; }
  .lead .text-link { align-self: flex-start; }

  .scene { display: block; margin-top: 36px; transition: opacity .18s ease; }
  .scene.is-out { opacity: 0; }
  .scene-ticks { display: flex; gap: 6px; margin-bottom: 16px; }
  .scene-ticks span { width: 16px; height: 2px; background: var(--line); transition: width .18s ease, background-color .18s ease; }
  .scene-ticks span.is-on { width: 34px; background: var(--celadon); }
  .scene-name { font-size: 20px; font-weight: 300; letter-spacing: .1em; line-height: 1.5; }
  .scene-line { margin-top: 6px; min-height: 3.6em; font-size: 14px; line-height: 1.8; color: var(--ink-2); max-width: 26em; }
  .scene-note { margin-top: 2px; font-size: 12px; color: var(--ink-2); }
  .scene-note:empty { display: none; }
  .page-business .scene-name { font-size: clamp(22px, 2.2vw, 30px); }

  .page-top .lead .list-links { display: block; margin-top: 28px; max-width: 22em; }
  .list-links a { min-height: 48px; }

  .media {
    min-height: 100vh;
    padding: var(--top-zone) var(--media-px) 0;
    background: var(--white);
    border-left: 1px solid var(--line);
  }

  .shot {
    width: clamp(240px, 70%, 540px);
    margin: 0 0 clamp(104px, 18vh, 200px);
  }
  .media > .shot:nth-of-type(even) { margin-left: auto; }
  .shot.is-hero { width: min(100%, calc((100vh - var(--top-zone) - 64px) * .8)); }

  .cap {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0 0;
  }
  .cap-name { font-size: 13px; font-weight: 400; letter-spacing: .1em; }
  .cap-line, .cap-note {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .ai-tag { margin-top: 0; white-space: nowrap; }
  .cap-link { display: none; }

  .page-foot { margin: 0; padding: 20px 0 32px; }

  /* 会社概要：白い面に2列の表 */
  .surface { padding: var(--top-zone) var(--media-px) 0; }
  .company .rep { grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 40px; margin-bottom: 72px; }
  .company .spec > div { grid-template-columns: minmax(8em, 30%) minmax(0, 1fr); gap: 24px; padding: 24px 0; }
  .company .spec + .page-foot { margin-top: 96px; }

  /* サテライト */
  .page-satellite .media > .shot { margin-bottom: 72px; }
  .satellite-info { padding: 0; width: min(100%, 620px); }
  .satellite-info .spec { margin-bottom: 48px; }
  .map-slot { margin-bottom: 120px; }

  /* 物件・施工事例 */
  .filters { margin: 0 0 16px; }
  .filter-status { margin: 0 0 64px; }
  .work { margin-bottom: 120px; }
  .work .shot { width: 100%; }
  .work-body { padding: 20px 0 0; }
  .work-title { font-size: 22px; }

  /* お問い合わせ */
  .channels { gap: 16px; }
  .channel {
    min-height: calc((100vh - var(--top-zone) - 88px) / 2);
    justify-content: space-between;
    padding: clamp(28px, 4vw, 56px);
    background: var(--paper);
  }
  .channel-h { font-size: clamp(26px, 2.6vw, 38px); }
  .channel .facts { max-width: 420px; }

  .nf { padding: 0; max-width: 420px; }
}

@media (min-width: 1200px) {
  .work { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; }
  .work-body { padding: 0 0 36px; }
}

/* 低い画面では左パネルの余白を詰める */
@media (min-width: 801px) and (max-height: 760px) {
  :root { --top-zone: 88px; --bottom-zone: 206px; }
  .lead-text { margin-top: 12px; }
  .scene { margin-top: 24px; }
  /* 2026-09-17: 高さ760px以下では見出し＋説明＋場面＋事業リストが下段のナビに食い込む。
     事業リストはナビの「事業紹介」で代替できるため、この高さでは出さない */
  .page-top .lead .list-links { display: none; }
}

/* 2026-09-17: 左パネル下段（ナビ・注記）は不透明にし、上段の本文が伸びても文字が重ならない保険 */
@media (min-width: 801px) {
  #site-nav, .site-header .demo-note { background: var(--paper); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* ─── モバイルメニュー：閉じる／HOME（TATEURI 必須・メニューを開いている間だけ表示） ─── */
.mobile-nav-extra { display: none; }
html.tt-nav-open #site-nav .mobile-nav-extra {
  position: relative; z-index: 5; display: flex; flex: 0 0 auto; align-self: stretch; align-items: center; justify-content: space-between; gap: 16px;
  box-sizing: border-box; width: 100%; margin: 0 0 14px; padding: 0 0 10px; border-bottom: 1px solid rgba(128, 128, 128, .35);
}
html.tt-nav-open #site-nav a.mobile-nav-home,
html.tt-nav-open #site-nav button.mobile-nav-close {
  display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 44px; margin: 0; padding: 0 2px;
  font: inherit; font-size: 14px; line-height: 1; letter-spacing: .12em; color: inherit; text-decoration: none;
  background: none; border: 0; border-radius: 0; box-shadow: none; opacity: 1; transform: none; cursor: pointer;
}
html.tt-nav-open #site-nav a.mobile-nav-home { font-weight: 700; letter-spacing: .2em; box-shadow: inset 0 -3px 0 var(--celadon); }
html.tt-nav-open #site-nav a.mobile-nav-home::before, html.tt-nav-open #site-nav a.mobile-nav-home::after,
html.tt-nav-open #site-nav button.mobile-nav-close::before, html.tt-nav-open #site-nav button.mobile-nav-close::after { content: none; display: none; }
html.tt-nav-open #site-nav button.mobile-nav-close svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* メニューを開いている間、デモバーが画面に見えていれば一時的に外す（各案のメニュー位置は元のまま） */
html.tt-bar-hide #demo-bar { display: none; }

/* ─── 横スクロール防止（TATEURI 規則。sticky を壊さないよう hidden ではなく clip） ─── */
html, body { overflow-x: clip; }

/* 語が長くなった分の補正（801〜1100px はナビを1列に） */
@media (min-width: 801px) and (max-width: 1100px) { #site-nav ul { grid-template-columns: 1fr; } }

/* ─── DEMO BAR（TATEURI 共通・通常フローに置く） ─── */
#demo-bar { position: relative; z-index: 1200; background: #101215; border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 7px 16px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.demo-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: 12px; line-height: 1.5; letter-spacing: .02em; color: rgba(255, 255, 255, .55); }
.demo-badge { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; background: rgba(200, 168, 92, .18); color: #C8A85C; padding: 3px 10px; flex-shrink: 0; }
.demo-link { display: inline-block; padding: 4px 0; color: #C8A85C; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.demo-copy { color: rgba(255, 255, 255, .3); font-size: 11px; }
@media (max-width: 640px) { .demo-copy { display: none; } }
