@charset "UTF-8";

/* =========================================================
   StartiaX — 事業案内
   設計方針:
     - 装飾を持たない。情報の階層だけで構成する
     - 色は3値（ネイビー / グレー / 白）+ リンク用の1色のみ
     - 全セクションを同一の台帳グリッド（見出し列 + 内容列）で統一する
     - 角丸・影・グラデーション・アニメーションは使わない
   ========================================================= */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
ul,
li,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0b1d2e;
  --body: #41525f;
  --muted: #7a8894;
  --line: #e2e7eb;
  --line-strong: #c9d1d8;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --link: #1b4f8a;

  --font: "Libre Franklin", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", sans-serif;

  --container: 1120px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --section: clamp(3.75rem, 7.5vw, 6.5rem);
  --label-col: 15rem;
}

/* ---------- Base ---------- */
body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.95;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  word-break: auto-phrase;
  line-break: strict;
}

/* 日本語の折り返し。文節単位で折り、行末に1〜2文字だけ残さない */
p,
dd,
li {
  word-break: auto-phrase;
  line-break: strict;
  text-wrap: pretty;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.5rem;
}

.wordmark {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.nav {
  display: none;
  gap: 2rem;
}

.nav a {
  font-size: 0.875rem;
  color: var(--body);
  white-space: nowrap;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--section);
  /* 追従ヘッダーの分だけアンカー位置を下げる */
  scroll-margin-top: 4.5rem;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--bg-alt);
}

.section__title {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

/* セクション内の本文。台帳の内容列と同じ幅・同じ級数に揃える */
.section__text {
  max-width: 62ch;
  font-size: 0.9375rem;
}

/* ---------- 導入 ---------- */
.masthead {
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3.5rem, 7vw, 6rem);
}

.lead-title {
  font-size: clamp(2.125rem, 1.5rem + 2.9vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.masthead__body {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--ink);
}

.lead-text {
  max-width: 62ch;
  font-size: 1.0625rem;
}

/* ---------- 台帳グリッド（事業内容 / 事業者情報 共通） ---------- */
/* 罫線の階層: 見出し下(--ink) > 表の外枠(--line-strong) > 行間(--line) */
.ledger {
  border-block: 1px solid var(--line-strong);
}

.ledger__row {
  padding-block: 1.625rem;
  display: grid;
  gap: 0.375rem 3rem;
  grid-template-columns: 1fr;
}

.ledger__row + .ledger__row {
  border-top: 1px solid var(--line);
}

.ledger__key {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.ledger__val {
  color: var(--body);
  font-size: 0.9375rem;
  max-width: 62ch;
}

/* 事業者情報の見出し列は主張を弱める */
.ledger--facts .ledger__key {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  padding-top: 0.15rem;
}

.ledger--facts .ledger__val {
  color: var(--ink);
}

@media (min-width: 780px) {
  .ledger__row {
    grid-template-columns: var(--label-col) 1fr;
  }
}

.ledger--facts a {
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.125rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ledger--facts a:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

/* ---------- お問い合わせフォーム ---------- */
/* 台帳グリッドと同じ「ラベル列 + 内容列」に乗せる。装飾は罫線のみ */
.form {
  max-width: 52rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.form__rows {
  border-block: 1px solid var(--line-strong);
}

.form__row {
  padding-block: 1.375rem;
  display: grid;
  gap: 0.5rem 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.form__row + .form__row {
  border-top: 1px solid var(--line);
}

@media (min-width: 780px) {
  .form__row {
    grid-template-columns: var(--label-col) 1fr;
  }

  /* 同意チェックのみラベル列を使わず内容列に寄せる */
  .form__row--wide {
    grid-template-columns: 1fr;
  }

  .form__row--wide > * {
    grid-column: 1;
  }
}

.form__label {
  font-size: 0.875rem;
  color: var(--muted);
  padding-top: 0.5rem;
}

.form__req {
  margin-left: 0.5em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
  width: 100%;
  max-width: 34rem;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  appearance: none;
  -webkit-appearance: none;
}

/* select の矢印。罫線と同じ細さの山形だけを置く */
.form select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237a8894' stroke-width='1.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 0.75rem auto;
}

.form textarea {
  min-height: 10rem;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--ink);
}

.form__hint {
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 34rem;
}

.form__consent {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--ink);
  max-width: 44rem;
}

.form__consent input[type="checkbox"] {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--ink);
  transform: translateY(0.35rem);
}

.form__consent a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
  margin-top: 2rem;
}

.form__submit {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.75rem 2.75rem;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.form__submit:hover {
  color: var(--ink);
  background: var(--bg);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding-block: 2.5rem;
  font-size: 0.8125rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer a {
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* ---------- 本文ページ（プライバシーポリシー） ---------- */
.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.0625rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose p,
.prose ul {
  margin-top: 0.875rem;
  font-size: 0.9375rem;
}

.prose ul li {
  padding-left: 1.125rem;
  position: relative;
  margin-top: 0.25rem;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 0.4375rem;
  height: 1px;
  background: var(--line-strong);
}

.prose a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.1875rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  color: var(--link);
  border-bottom-color: var(--link);
}

/* ---------- Motion / Print ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .header {
    position: static;
  }

  .footer {
    background: #fff;
    color: #000;
  }
}
