/* ==========================================================================
   Kaitaku Inc. — 共通スタイル(全ページ)
   正本: 承認済みトップページ(index.html)のデザイン
   ゴシック体・無彩色・罫線・広い余白。アクセントカラーは作らない。
   ========================================================================== */

:root {
  --paper: #f7f7f5;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #5f5e5a;
  --line: #deddd8;
  --soft: #ecebe7;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 245, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.brand-copy { display: flex; align-items: center; line-height: 1.25; }
.brand-copy strong { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }

/* Hero(トップ) */
.hero { padding: 104px 0 0; }
.hero-grid {
  min-height: 430px;
  display: flex;
  align-items: end;
  padding-bottom: 80px;
}
.hero-copy { width: min(100%, 820px); }
.hero-copy .label { margin-bottom: 46px; }
.hero h1 {
  max-width: 10em;
  margin: 0 0 36px;
  font-size: clamp(42px, 5.2vw, 66px);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: .025em;
  text-wrap: balance;
}
.hero .lede {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}
.hero-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 72px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero-fields span {
  display: flex;
  align-items: center;
  padding: 0 22px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.hero-fields span + span { border-left: 1px solid var(--line); }

/* About(トップ)・2カラム汎用 */
.about {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8vw;
  padding: 130px 0;
}
.about h2 {
  margin: 0 0 30px;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: .025em;
}
.about p:not(.label) { max-width: 43em; margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }

/* Work(トップ)・罫線リスト汎用 */
.work { padding: 112px 0 128px; background: var(--surface); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 54px;
}
.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .02em;
}
.section-heading .note { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.work-list { border-top: 1px solid var(--ink); }
.work-row {
  display: grid;
  grid-template-columns: 56px 1fr 1.35fr 32px;
  gap: 28px;
  align-items: center;
  min-height: 146px;
  padding: 25px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
a.work-row { transition: background-color .2s ease, padding .2s ease; }
a.work-row:hover { padding-inline: 14px; background: var(--paper); }
.work--on-paper a.work-row:hover { background: var(--surface); }
.work-no { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.work-name small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
}
.work-name strong { display: block; margin-top: 6px; font-size: 21px; font-weight: 600; letter-spacing: .02em; }
.work-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.work-arrow { color: var(--muted); font-size: 20px; text-align: right; }

/* Company(トップ)・詳細テーブル汎用 */
.company { padding: 126px 0; background: var(--soft); }
.company-grid { display: grid; grid-template-columns: 240px 1fr; gap: 8vw; }
.company-intro h2 { margin: 24px 0 12px; font-size: 30px; font-weight: 600; letter-spacing: .04em; }
.company-intro p:not(.label) { margin: 0; color: var(--muted); font-size: 14px; }
.company-table,
.detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.company-table th,
.company-table td,
.detail-table th,
.detail-table td { padding: 17px 0; border-bottom: 1px solid #d1d0cb; text-align: left; vertical-align: top; }
.company-table tr:first-child th,
.company-table tr:first-child td,
.detail-table tr:first-child th,
.detail-table tr:first-child td { border-top: 1px solid var(--ink); }
.company-table th,
.detail-table th { width: 9em; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.company-table td,
.detail-table td { line-height: 1.85; }
.detail-table th,
.detail-table td { border-bottom-color: var(--line); }

/* News(トップ) */
.news { padding: 94px 0 108px; }
.news-grid { display: grid; grid-template-columns: 240px 1fr; gap: 8vw; }
.news h2 { margin: 20px 0 0; font-size: 30px; font-weight: 600; }
.news-item {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.news-item + .news-item { border-top: none; }
.news-item time { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.news-item p { margin: 0; font-size: 14px; }

/* Footer */
.footer { padding: 44px 0 36px; border-top: 1px solid var(--ink); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; align-items: baseline; }
.footer-name strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: .04em; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px 25px; }
.footer-links a { color: var(--muted); font-size: 12px; font-weight: 500; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.copyright { margin-top: 36px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }

/* ==========================================================================
   下層ページ共通パターン
   ========================================================================== */

/* Page Hero */
.page-hero { padding: 100px 0 0; }
.page-hero-inner { padding-bottom: 78px; border-bottom: 1px solid var(--ink); }
.page-hero .label { margin-bottom: 40px; }
.page-hero h1 {
  max-width: 16em;
  margin: 0 0 28px;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .025em;
  text-wrap: balance;
}
.page-hero .page-lede {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
}

/* セクション */
.section { padding: 110px 0; }
.section--surface { background: var(--surface); }
.section--soft { background: var(--soft); }
.section-intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 8vw;
}
.section-intro h2 {
  margin: 0 0 26px;
  font-size: clamp(27px, 3.2vw, 40px);
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: .025em;
}
.section-intro h2:last-child { margin-bottom: 0; }
.section-intro p:not(.label) { max-width: 43em; margin: 0; color: var(--muted); font-size: 16px; line-height: 2; }

/* 罫線リスト(シンプル) */
.line-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); font-size: 14px; }
.line-list li { padding: 14px 2px; border-bottom: 1px solid var(--line); line-height: 1.85; }

/* 番号付き罫線リスト(注意事項・流れ) */
.numbered-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); counter-reset: n; }
.numbered-list li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 22px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
}
.numbered-list li::before {
  content: counter(n, decimal-leading-zero);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 2.4;
}
.numbered-list h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.numbered-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* 2カラム(設備リスト等) */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.list-heading { margin: 0 0 16px; font-size: 15px; font-weight: 600; letter-spacing: .1em; }
* + .list-heading { margin-top: 48px; }

/* 写真ギャラリー */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-grid--169 img { aspect-ratio: 16 / 9; }
.media-grid--34 img { aspect-ratio: 3 / 4; }
.media-caption { margin: 0 0 14px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.media-grid + .media-caption { margin-top: 40px; }
.media-grid figure { margin: 0; }
.media-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.media-grid figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }

/* Before / After */
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ba-pair figure { margin: 0; }
.ba-pair img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}
.ba-pair figcaption {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* 地図 */
.map-frame {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* CTA */
.page-cta { padding: 116px 0 128px; border-top: 1px solid var(--ink); }
.page-cta-inner { max-width: 640px; }
.page-cta h2 {
  margin: 14px 0 18px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .025em;
}
.page-cta p:not(.label) { margin: 0 0 40px; color: var(--muted); font-size: 15px; line-height: 2; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 36px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  transition: opacity .2s ease;
}
.btn:hover { opacity: .82; }
.text-link {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--line);
}
.text-link:hover { text-decoration-color: var(--ink); }
.cta-sub { margin-top: 26px; }
.cta-sub .text-link { font-size: 13px; }

/* 長文ページ(プライバシーポリシー等) */
.prose { max-width: 45em; }
.prose h2 { margin: 72px 0 20px; font-size: 22px; font-weight: 600; letter-spacing: .02em; line-height: 1.6; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 2; }
.prose ol, .prose ul { margin: 0 0 20px; padding-left: 1.6em; color: var(--muted); font-size: 15px; line-height: 2; }
.prose li { margin-bottom: 6px; }

/* 補足 */
.fine-note { margin: 16px 0 0; color: var(--muted); font-size: 12.5px; }

/* フォーム */
.form { max-width: 640px; display: grid; gap: 30px; }
.field label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.field .req { margin-left: 6px; color: var(--muted); font-size: 11px; font-weight: 600; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
}
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.field textarea { min-height: 200px; resize: vertical; }
.form .btn { border: 0; cursor: pointer; justify-self: start; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media (max-width: 820px) {
  .wrap { width: min(100% - 40px, 680px); }
  .about,
  .company-grid,
  .news-grid,
  .section-intro { grid-template-columns: 180px 1fr; gap: 45px; }
  .work-row { grid-template-columns: 42px 1fr 1.1fr 25px; gap: 18px; }
  .media-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .nav { min-height: 106px; flex-wrap: wrap; align-content: center; gap: 10px; }
  .brand { width: 100%; }
  .brand img { width: 36px; height: 36px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 10px; }
  .nav-links a { font-size: 11px; }
  .hero { padding-top: 74px; }
  .hero-grid { min-height: 0; padding-bottom: 66px; }
  .hero-copy .label { margin-bottom: 30px; }
  /* 2行目「身近なところから。」(9文字+字間)が .wrap 内幅に収まる上限 */
  .hero h1 { font-size: clamp(28px, 9.4vw, 40px); margin-bottom: 26px; }
  .hero-fields { min-height: 58px; }
  .hero-fields span { padding: 0 8px; font-size: 10px; letter-spacing: .06em; justify-content: center; text-align: center; }
  .about,
  .company-grid,
  .news-grid,
  .section-intro { grid-template-columns: 1fr; gap: 38px; }
  .about { padding: 92px 0; }
  .about h2 { font-size: 27px; }
  .work { padding: 86px 0 96px; }
  .section-heading { display: block; margin-bottom: 40px; }
  .section-heading .note { margin-top: 12px; }
  .work-row { grid-template-columns: 30px 1fr 24px; gap: 12px; min-height: 130px; }
  .work-desc { grid-column: 2 / 4; margin-top: -7px; }
  .work-name strong { font-size: 17px; }
  .company { padding: 92px 0; }
  .company-table th,
  .detail-table th { width: 7em; }
  .news { padding: 78px 0 88px; }
  .news-item { grid-template-columns: 1fr; gap: 4px; }
  .footer-top { display: block; }
  .footer-links { justify-content: flex-start; margin-top: 28px; }

  .page-hero { padding-top: 72px; }
  .page-hero-inner { padding-bottom: 62px; }
  .page-hero .label { margin-bottom: 28px; }
  .page-hero h1 { font-size: 34px; margin-bottom: 22px; }
  .section { padding: 84px 0; }
  .section-intro h2 { font-size: 26px; }
  .media-grid { grid-template-columns: 1fr; gap: 16px; }
  .cols-2 { grid-template-columns: 1fr; gap: 48px; }
  .ba-pair { grid-template-columns: 1fr; gap: 28px; }
  .map-frame { height: 300px; }
  .numbered-list li { grid-template-columns: 34px 1fr; gap: 14px; }
  .page-cta { padding: 90px 0 100px; }
}
