/* 株式会社サンプル デモサイト 05「スイス・ポスター」
   色は4色のみ：白 / 信号の赤 / 墨 / 薄い灰。角丸・影・グラデーションなし。 */

:root {
  --white: #FFFFFF;
  --red: #E4002B;
  --ink: #161616;
  --gray: #EDEDED;
  --gutter: clamp(16px, 2.4vw, 36px);
  --gap: clamp(12px, 1.5vw, 24px);
  --space: clamp(72px, 9vw, 144px);
  --hh: 64px;
  --latin: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.85;
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.3; letter-spacing: .01em; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.w { display: inline-block; overflow-wrap: anywhere; }

/* フォーカス */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-red :focus-visible, .on-ink :focus-visible, html.menu-open .site-header :focus-visible { outline-color: var(--white); }
main:focus, main:focus-visible { outline: none; }

/* 本文へ移動 */
.skip {
  position: absolute; left: 8px; top: -120px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

.demo-note {
  background: var(--gray);
  font-size: 12px; line-height: 1.5;
  padding: 6px var(--gutter);
}

/* ---------- グリッド ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--gutter);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 801px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

/* ---------- 画像スロット ---------- */
.img-slot { position: relative; overflow: hidden; background: var(--gray); aspect-ratio: 3 / 2; }
.img-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-label {
  position: absolute; left: 0; bottom: 0;
  background: var(--white); color: var(--ink);
  font-size: 12px; font-weight: 700; line-height: 1.4;
  padding: 6px 10px;
}
.img-slot[data-slot="hero"] { aspect-ratio: 8 / 5; }
.img-slot[data-slot="biz-sale"],
.img-slot[data-slot="biz-management"],
.img-slot[data-slot="biz-renovation"] { aspect-ratio: 4 / 5; }
.img-slot[data-slot="project-1"] { aspect-ratio: 4 / 3; }
.img-slot[data-slot="project-2"] { aspect-ratio: 4 / 5; }
.img-slot[data-slot="satellite"] { aspect-ratio: 3 / 2; }

/* ---------- 文字 ---------- */
.h2 { font-size: clamp(1.625rem, 2.6vw, 2.5rem); line-height: 1.25; }
.h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.35; }
.body-s { font-size: 1rem; line-height: 1.85; }
.body-l { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.7; font-weight: 700; }

.text-link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding-block: 6px 4px;
  font-weight: 700; line-height: 1.4; text-decoration: none;
  border-bottom: 3px solid currentColor;
}
.text-link:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.on-red .text-link:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 10px 24px;
  border: 0; border-radius: 0;
  background: var(--ink); color: var(--white);
  font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--red); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--red); color: var(--white); }
.btn-off, .btn-off:hover { background: var(--gray); color: var(--ink); cursor: not-allowed; }

.on-red { background: var(--red); color: var(--white); }
.on-ink { background: var(--ink); color: var(--white); }
.band-gray { background: var(--gray); }
.band-ink { background: var(--ink); color: var(--white); }

/* ---------- ヘッダー ---------- */
.site-header { background: var(--white); position: relative; z-index: 30; }
.header-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  padding: 20px var(--gutter) 24px;
}
.brand { grid-column: 1 / 5; display: inline-flex; flex-direction: column; text-decoration: none; justify-self: start; line-height: 1; padding-block: 2px; }
.brand-mark { font-family: var(--latin); font-weight: 700; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.brand-sub { font-size: 12px; font-weight: 700; margin-top: 8px; line-height: 1.3; }

.site-nav { grid-column: 7 / 13; }
.site-nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: var(--gap);
}
.site-nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 34px; padding-block: 4px;
  border-top: 1px solid var(--ink);
  font-size: .875rem; font-weight: 700; line-height: 1.3;
  text-decoration: none; white-space: nowrap;
}
.site-nav a::before { content: ""; flex: none; width: 10px; height: 10px; background: transparent; }
.site-nav a[aria-current="page"]::before { background: var(--red); }
.site-nav a:hover { background: var(--gray); }

.menu-toggle {
  display: none;
  min-height: 44px; min-width: 96px; padding: 0 16px;
  border: 0; border-radius: 0;
  background: var(--ink); color: var(--white);
  font-size: .9375rem; font-weight: 700; line-height: 1;
  white-space: nowrap; cursor: pointer;
}

@media (max-width: 800px) {
  .site-header { position: sticky; top: 0; }
  .header-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: var(--hh); padding: 10px var(--gutter);
  }
  .brand, .menu-toggle { position: relative; z-index: 2; }
  .brand { min-height: 44px; justify-content: center; }
  .brand-sub { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  html.menu-open { overflow: hidden; }
  html.menu-open .brand { color: var(--white); }
  html.menu-open .menu-toggle { background: var(--white); color: var(--ink); }

  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    background: var(--red); color: var(--white);
    padding: calc(var(--hh) + 24px) var(--gutter) 40px;
    overflow-y: auto;
    visibility: hidden;
  }
  .menu-toggle[aria-expanded="true"] + .site-nav { visibility: visible; }
  .site-nav ul { display: block; }
  .site-nav a {
    min-height: 60px; gap: 14px;
    border-top: 2px solid var(--white);
    font-size: 1.5rem; white-space: normal;
  }
  .site-nav li:last-child a { border-bottom: 2px solid var(--white); }
  .site-nav a::before { width: 12px; height: 12px; }
  .site-nav a[aria-current="page"]::before { background: var(--white); }
  .site-nav a:hover { background: var(--ink); }
}

/* ---------- フッター ---------- */
.site-footer { border-top: 4px solid var(--ink); padding-block: 48px 32px; }
.footer-grid { row-gap: 28px; }
.footer-mark { font-family: var(--latin); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; line-height: 1; }
.footer-name { font-size: 12px; font-weight: 700; margin-top: 8px; }
.footer-biz { font-size: .875rem; font-weight: 700; line-height: 1.6; }
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
.footer-nav a {
  display: flex; align-items: center; min-height: 44px;
  border-top: 1px solid var(--ink);
  font-size: .875rem; font-weight: 700; line-height: 1.3; text-decoration: none;
}
.footer-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-nav a:hover { background: var(--gray); }
.footer-note { font-size: 12px; line-height: 1.6; background: var(--gray); padding: 8px 12px; justify-self: start; }
@media (min-width: 801px) {
  .footer-brand { grid-column: 1 / 5; }
  .footer-biz { grid-column: 5 / 7; }
  .footer-nav { grid-column: 7 / 13; }
  .footer-nav ul { grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
  .footer-nav a { min-height: 36px; }
  .footer-note { grid-column: 1 / 13; }
}

/* ---------- 共通セクション ---------- */
.sec { padding-block: var(--space); }
.sec + .sec { padding-top: 0; }

/* ---------- TOP：巨大ロゴタイプと赤い面 ---------- */
.hero { overflow-x: clip; row-gap: 0; }
.hero-plane {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(24px, 2.6vw, 44px);
}
.hero-title { font-size: clamp(1.875rem, 3.7vw, 3.75rem); line-height: 1.22; letter-spacing: 0; }
.hero-lead { font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 700; line-height: 1.6; }
.logotype {
  font-size: 23.2vw;
  height: .7em;
  overflow: hidden;
  margin-right: calc(var(--gutter) * -1);
  margin-top: clamp(12px, 1.6vw, 24px);
}
.logotype span {
  display: block; width: max-content;
  font-family: var(--latin); font-weight: 700;
  line-height: 1; letter-spacing: -.055em; white-space: nowrap;
  margin-top: -.12em; margin-left: -.035em;
}
@media (min-width: 801px) {
  .hero-plane { grid-column: 1 / 6; grid-row: 1; }
  .hero-photo { grid-column: 6 / 13; grid-row: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .is-intro .hero-plane { animation: plane-in .9s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes plane-in { from { transform: translateX(-104%); } to { transform: none; } }
}

/* TOP：事業 */
.top-biz { row-gap: 40px; }
.top-biz-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.biz-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px var(--gap); }
.biz-col .img-slot { margin-bottom: 18px; }
.biz-col .h3 { margin-bottom: 6px; }
@media (min-width: 801px) {
  .top-biz-head { grid-column: 1 / 4; }
  .biz-cols { grid-column: 4 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* TOP：物件・施工事例 */
.top-projects { row-gap: 32px; }
.top-projects-text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
@media (min-width: 801px) {
  .top-projects-photo { grid-column: 1 / 9; }
  .top-projects-text { grid-column: 10 / 13; align-self: end; }
}

/* TOP：サテライト */
.top-satellite { padding-top: var(--space); }
.top-satellite-plane {
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 32px;
  padding: clamp(24px, 2.6vw, 44px);
}
.plane-title { font-size: clamp(1.75rem, 2.8vw, 2.75rem); line-height: 1.28; }
@media (min-width: 801px) {
  .top-satellite-photo { grid-column: 1 / 9; grid-row: 1; }
  .top-satellite-plane { grid-column: 9 / 13; grid-row: 1; }
}

/* TOP：お問い合わせ */
.top-contact { row-gap: 32px; }
.contact-lead-title { font-size: clamp(2rem, 4.4vw, 4.25rem); line-height: 1.2; }
.top-contact-side { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
@media (min-width: 801px) {
  .contact-lead-title { grid-column: 1 / 8; }
  .top-contact-side { grid-column: 9 / 13; align-self: end; }
}

/* ---------- 下層ページの見出し ---------- */
.page-head {
  row-gap: 20px;
  padding-block: clamp(40px, 6vw, 104px) clamp(36px, 4.5vw, 72px);
}
.page-head + .sec { padding-top: clamp(16px, 2.5vw, 40px); }
.page-title { font-size: clamp(2.375rem, 6.4vw, 6.25rem); line-height: 1.1; letter-spacing: -.01em; }
.page-lead { font-size: 1rem; line-height: 1.85; max-width: 34em; }
@media (min-width: 801px) {
  .page-title { grid-column: 1 / 9; }
  .page-lead { grid-column: 9 / 13; align-self: end; }
}

/* ---------- 物件・施工事例 ---------- */
.sec-list { padding-bottom: var(--space); row-gap: 16px; }
.filters { display: flex; flex-wrap: wrap; border-top: 4px solid var(--ink); padding-top: 16px; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 20px;
  border: 2px solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink);
  font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap;
}
.filters button:hover { background: var(--gray); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filter-status { font-size: .875rem; margin-bottom: 24px; }
.works-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px var(--gap); grid-auto-flow: dense; }
.work[hidden] { display: none; }
.work .img-slot { margin-bottom: 16px; }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 8px; font-size: .8125rem; font-weight: 700; line-height: 1.4; }
.tag { background: var(--ink); color: var(--white); padding: 4px 8px; }
.work-title { font-size: clamp(1.25rem, 1.7vw, 1.625rem); margin-bottom: 12px; }
.work-dl { font-size: .875rem; line-height: 1.6; }
.work-dl div, .mini-dl div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding-block: 8px; border-top: 1px solid var(--ink); }
.work-dl dt, .mini-dl dt { font-weight: 700; }
@media (min-width: 801px) {
  .filters, .filter-status, .works-grid { grid-column: 1 / 13; }
  .works-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); row-gap: 80px; }
  .work.is-l { grid-column: span 8; }
  .work.is-s { grid-column: span 4; }
  .work.is-l .work-body { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--gap); }
  .work.is-l .work-meta, .work.is-l .work-title { grid-column: 1 / 5; }
  .work.is-l .work-dl { grid-column: 5 / 9; grid-row: 1 / 3; }
}

/* ---------- 事業紹介 ---------- */
.biz-page { padding-top: 0; }
.biz-three { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px var(--gap); border-top: 4px solid var(--ink); padding-top: var(--gap); }
.biz-item .img-slot { margin-bottom: 20px; }
.biz-kind { font-size: .875rem; font-weight: 700; margin: 4px 0 12px; }
.mini-dl { font-size: .875rem; line-height: 1.6; margin-top: 20px; }
@media (min-width: 801px) {
  .biz-three { grid-column: 1 / 13; grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.biz-cta-plane {
  display: flex; flex-direction: column; align-items: flex-start; gap: 32px;
  padding: clamp(24px, 3vw, 48px);
  min-height: clamp(240px, 26vw, 400px); justify-content: space-between;
}
@media (min-width: 801px) {
  .biz-cta-plane { grid-column: 6 / 13; }
}

/* ---------- 会社概要・表 ---------- */
.split { row-gap: 24px; }
.split-head { padding-top: 12px; }
.info-table { width: 100%; border-collapse: collapse; border-top: 4px solid var(--ink); }
.info-table tr { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: var(--gap); border-bottom: 1px solid var(--ink); padding-block: 14px; }
.info-table th { text-align: left; font-weight: 700; line-height: 1.6; padding: 0; }
.info-table td { line-height: 1.7; padding: 0; }
@media (min-width: 801px) {
  .split-head { grid-column: 1 / 4; }
  .split-body { grid-column: 4 / 13; }
  .info-table tr { grid-template-columns: repeat(9, minmax(0, 1fr)); padding-block: 18px; }
  .info-table th { grid-column: 1 / 4; }
  .info-table td { grid-column: 4 / 10; }
}
.rep-photo {
  display: flex; align-items: flex-end;
  aspect-ratio: 4 / 5; max-width: 320px;
  background: var(--gray); padding: 14px;
  font-size: .8125rem; font-weight: 700; line-height: 1.5;
}
.rep-text { display: flex; flex-direction: column; gap: 12px; }
.rep-name { font-size: clamp(1.5rem, 2.4vw, 2.25rem); font-weight: 700; line-height: 1.3; }
@media (min-width: 801px) {
  .rep-photo { grid-column: 4 / 7; max-width: none; }
  .rep-text { grid-column: 8 / 13; align-self: end; }
}

/* ---------- サテライトオフィス ---------- */
.satellite-hero { overflow-x: clip; row-gap: 0; padding-top: clamp(0px, 2vw, 24px); }
.satellite-plane {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(24px, 2.6vw, 44px);
}
.satellite-title { font-size: clamp(2.375rem, 5vw, 5rem); line-height: 1.1; }
.plane-lead { font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 700; line-height: 1.5; }
.photo-note { font-size: .8125rem; line-height: 1.6; padding-top: 10px; }
.map-box {
  display: flex; align-items: flex-end;
  aspect-ratio: 16 / 6; margin-top: 40px;
  background: var(--gray); padding: 14px;
  font-size: .875rem; font-weight: 700; line-height: 1.5;
}
@media (min-width: 801px) {
  .satellite-photo { grid-column: 1 / 10; grid-row: 1; }
  .satellite-plane { grid-column: 9 / 13; grid-row: 1; align-self: end; position: relative; z-index: 1; min-height: clamp(280px, 30vw, 480px); margin-bottom: calc(var(--space) * -.35); }
  .photo-note { padding-right: var(--gap); }
  .photo-note { grid-column: 1 / 9; grid-row: 2; }
}
@media (max-width: 800px) {
  .map-box { aspect-ratio: 4 / 3; }
}

/* ---------- お問い合わせ ---------- */
.contact { padding-top: 0; row-gap: var(--gap); }
.contact-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
  padding: clamp(24px, 3vw, 48px);
  min-height: clamp(300px, 30vw, 460px);
}
.contact-name { font-size: clamp(3rem, 7vw, 7rem); line-height: 1; letter-spacing: -.01em; margin-bottom: auto; }
.contact-text { font-size: clamp(1.125rem, 1.4vw, 1.375rem); font-weight: 700; line-height: 1.6; }
.contact-box .btn { max-width: 100%; }
.contact-notes { margin-top: 48px; border-top: 4px solid var(--ink); padding-top: 20px; }
.notes { margin-top: 12px; }
.notes li { padding-block: 10px; border-bottom: 1px solid var(--ink); }
@media (min-width: 801px) {
  .contact-box.on-red { grid-column: 1 / 8; }
  .contact-box.on-ink { grid-column: 8 / 13; }
  .contact-notes { grid-column: 1 / 7; }
}

/* ---------- 404 ---------- */
.nf-link { padding-top: 0; }
.page-notfound .sec { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: 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 currentColor; }
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; }

/* ─── 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; } }
