/* CALMWORKS MOBILE-SAFE V3.1: MONOCHROME MINIMAL / CONTENT VISIBLE WITHOUT JAVASCRIPT */
/* 配色は白・黒・ニュートラルグレーのみ。緑系の色値は使用しない。 */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #6f6f6f;
  --body: #4a4a4a;
  --line: rgba(17, 17, 17, 0.12);
  --dark: #141414;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); }
.brand {
  font-family: "Geist", sans-serif;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-family: "Geist", sans-serif;
  font-size: 13px;
  color: #3a3a3a;
  transition: opacity .2s ease;
}
.site-nav a:hover { opacity: .5; }
.menu-button { display: none; }

/* ---- Hero: 装飾なし。文字と余白のみで構成 ---- */
.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 130px 32px 90px;
}
.hero-inner {
  width: min(var(--max), 100%);
}
.eyebrow,
.section-label {
  font-family: "Geist", sans-serif;
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .17em;
  color: var(--muted);
}
.hero h1 {
  margin: 38px 0 34px;
  font-size: clamp(52px, 6.6vw, 86px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}
/* 見出しは意図した2行のみ。行の途中では絶対に折り返さない */
.hero-line {
  display: block;
  white-space: nowrap;
}
/* 行末読点のぶら下げ（日本語組版）。読点分を行幅に含めず、孤立行を防ぐ */
.punct-hang {
  display: inline-block;
  width: 0;
  overflow: visible;
  white-space: nowrap;
}
.hero-copy {
  max-width: 680px;
  margin: 0 0 34px;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.85;
  color: var(--body);
  letter-spacing: 0;
}
.text-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 5px;
  font-size: 14px;
}

.section-pad { padding: 150px 32px; }
.section-grid,
.section-heading,
.business-list,
.company-table,
.contact-card {
  width: min(var(--max), 100%);
  margin-inline: auto;
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 3fr;
  gap: 64px;
}
.statement {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statement-body h2,
.section-heading h2,
.contact-card h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.statement-body h2 {
  font-size: clamp(40px, 4.8vw, 68px);
}
.statement-body p {
  max-width: 730px;
  margin: 56px 0 0;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 2;
  color: #525252;
}

.business { background: var(--bg); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 86px;
}
.section-heading h2,
.contact-card h2 {
  font-size: clamp(38px, 4.6vw, 64px);
}
.business-list { border-top: 1px solid var(--ink); }
.business-item {
  display: grid;
  grid-template-columns: 90px minmax(270px, 1fr) 1.15fr;
  gap: 40px;
  align-items: start;
  padding: 52px 0 58px;
  border-bottom: 1px solid var(--line);
}
.business-number,
.business-en { color: var(--muted); }
.business-number { font-family: "Geist", sans-serif; margin: 6px 0 0; font-size: 12px; }
.business-item h3 {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 570;
}
.business-en {
  font-family: "Geist", sans-serif;
  margin: 11px 0 0;
  font-size: 12px;
  letter-spacing: .08em;
}
.business-description {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.9;
  color: #555555;
}

.company { background: var(--surface); }
.company-table { border-top: 1px solid var(--ink); }
.company-table > div {
  display: grid;
  grid-template-columns: 32% 1fr;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
}
.company-table dt {
  font-size: 12px;
  color: var(--muted);
}
.company-table dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  font-feature-settings: "tnum";
}
/* 代表社員・事業内容など複数項目は、brではなくリストで整然と表示 */
.dd-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dd-list li + li { margin-top: 6px; }

/* Contact: 背景はニュートラルの薄グレー。罫線で区切る */
.contact {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.contact-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-card h2 { margin: 38px 0 32px; }
.contact-card > p:not(.section-label) {
  margin: 0 0 38px;
  font-size: 16px;
  color: var(--body);
}
.mail-link {
  width: fit-content;
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: -0.01em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 7px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  padding: 44px 32px;
  background: var(--dark);
  color: #f5f5f5;
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 25px;
  color: #a6a6a6;
  font-size: 11px;
}
.footer-right p { margin: 0; }
.privacy-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.privacy-button:hover { color: #ffffff; }

.modal {
  width: min(760px, calc(100% - 32px));
  max-height: calc(100svh - 40px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}
.modal::backdrop {
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(7px);
}
.modal-inner { position: relative; padding: 58px; }
.modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}
.modal h2 {
  margin: 24px 0 34px;
  font-size: clamp(34px, 4.6vw, 52px);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
.policy-copy { color: #4d4d4d; line-height: 1.85; }
.policy-copy h3 { margin: 28px 0 5px; color: var(--ink); font-size: 15px; }
.policy-copy p { margin: 0; font-size: 14px; }
.policy-date { padding-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (max-width: 820px) {
  .site-header { height: 64px; padding: 0 20px; }
  .menu-button {
    display: grid;
    gap: 6px;
    width: 36px;
    height: 36px;
    place-content: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 2;
  }
  .menu-button span:not(.sr-only) {
    width: 20px;
    height: 1px;
    background: var(--ink);
    transition: transform .25s ease;
  }
  .nav-open .menu-button span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-open .menu-button span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    background: var(--bg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-open .site-nav { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { font-size: 36px; letter-spacing: -0.01em; }

  /* Hero: 固定高ではなく画面高基準。1画面で見出し〜リンクまで収める */
  .hero {
    min-height: 100svh;
    padding: 100px 20px 64px;
  }
  /* 42〜48px帯。行末読点のぶら下げにより「穏やかな発想から、」が
     幅320px以上の端末で必ず1行に収まる（実効8文字 × 最大44px = 352px以下） */
  .hero h1 {
    margin-top: 24px;
    font-size: clamp(34px, 9.7vw, 42px);
    line-height: 1.18;
  }
  .hero-copy { font-size: 16px; }

  .section-pad { padding: 100px 20px; }
  .section-grid { grid-template-columns: 1fr; gap: 38px; }
  .statement-body p { margin-top: 40px; font-size: 16px; }
  .section-heading { display: block; margin-bottom: 55px; }
  .section-heading h2 { margin-top: 26px; }

  .business-item {
    grid-template-columns: 40px 1fr;
    gap: 20px;
    padding: 36px 0 40px;
  }
  .business-description { grid-column: 2; margin-top: 7px; font-size: 15px; }

  .company-table > div { grid-template-columns: 1fr; gap: 10px; }
  .company-table dd { font-size: 16px; }
  .contact-card { min-height: 400px; }
  .mail-link { font-size: 19px; }
  .site-footer { display: block; padding: 36px 20px; }
  .footer-right { justify-content: space-between; margin-top: 38px; }
  .modal-inner { padding: 50px 25px 35px; }
}

@media (max-width: 359px) {
  /* 極小端末（〜359px）では2行維持を優先してわずかに縮小 */
  .hero h1 { font-size: 34px; }
}
