/* Pillars — 1ページ。寸法と色は design/pillars_design_2026-11-09.webp（1590px幅）を実測した値。 */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f4f2;
  --ink: #0c0d16;
  --muted: #777775;     /* h1 の2行目 */
  --muted-2: #888986;   /* 英語のタグ行 */
  --sub: #5a595e;       /* サービスの日本語小見出し */
  --body: #6a6a6c;      /* サービスの本文 */
  --foot: #767376;

  --en: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;

  --gutter: clamp(20px, 4.4vw, 70px);     /* ロゴと About ブロックの左右 */
  --inset: clamp(20px, 7.8vw, 124px);     /* サービス3列の左右 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--en);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
.ja { font-family: var(--ja); }
.page { max-width: 1590px; margin: 0 auto; }
br.sp { display: none; }

/* ── ヘッダー ── */
header.site { padding: 56px var(--gutter) 0; }
.brand { display: inline-block; font-size: 18px; font-weight: 600; line-height: 24px; }

/* ── ヒーロー ── */
.hero { max-width: 808px; margin: 0 auto; padding-top: clamp(72px, 13.5vw, 215px); }
.display { font-size: clamp(28px, 8.8vw, 72.75px); font-weight: 600; line-height: 1.0584; }
.display span { display: block; }
.display .muted { color: var(--muted); }
.lead { margin-top: clamp(24px, 2.9vw, 46px); font-size: clamp(26px, 7.2vw, 48px); font-weight: 500; line-height: 1.3334; letter-spacing: -0.009em; white-space: nowrap; }
.tags { margin-top: clamp(20px, 3.4vw, 55px); font-size: clamp(15px, 4vw, 27px); line-height: 1.185; color: var(--muted-2); }
.intro { margin-top: clamp(40px, 6.85vw, 109px); font-size: clamp(16px, 4.2vw, 25.4px); line-height: 1.5354; }

/* ── サービス3列 ── */
.services {
  margin: clamp(64px, 6.98vw, 111px) var(--inset) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 5.6vw, 89px);
}
.service h2 { font-size: clamp(18px, 1.557vw, 24.75px); font-weight: 600; line-height: 1.293; }
.service .sub { margin-top: 4px; font-size: clamp(17px, 1.38vw, 22px); font-weight: 500; line-height: 1.455; color: var(--sub); }
.service .body { margin-top: clamp(20px, 2.33vw, 37px); font-size: clamp(16px, 1.252vw, 19.9px); line-height: 1.608; color: var(--body); }

/* ── About（黒いブロック） ── */
.about { margin: clamp(64px, 6.7vw, 106px) var(--gutter) 0; padding: 69px 24px 72px; background: var(--ink); color: #fff; }
.about .inner { max-width: 1012px; margin: 0 auto; }
.about h2 { margin-bottom: 1px; font-size: 20px; font-weight: 700; line-height: 32px; }
.about p { font-size: clamp(16px, 1.252vw, 19.9px); line-height: 1.608; white-space: nowrap; }

/* ── Contact ── */
.contact { margin-top: clamp(64px, 6.7vw, 106px); padding: 0 var(--gutter); text-align: center; }
.contact h2 { font-size: 20px; font-weight: 700; line-height: 32px; }
.contact p { margin-top: 31px; font-size: clamp(16px, 4.2vw, 20px); line-height: 32px; }
.contact .mail { margin-top: 46px; }
.mail-copy {
  appearance: none; -webkit-appearance: none; border: 0; background: none; padding: 4px 8px; margin: 0;
  font: inherit; font-family: var(--en); font-size: 20px; font-weight: 600; line-height: 32px; color: var(--ink);
  cursor: pointer; user-select: text; -webkit-user-select: text;
  text-decoration: none;
}
.mail-copy:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mail-copy:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.contact .mail-status { margin-top: 4px; min-height: 24px; font-size: 14px; line-height: 24px; color: var(--foot); }

/* ── 404 ── */
.notfound { max-width: 808px; margin: 0 auto; padding: clamp(72px, 13.5vw, 215px) 0 120px; font-size: 20px; line-height: 32px; }
.notfound .back { display: inline-block; margin-top: 24px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* ── フッター ── */
footer.site { margin-top: 41px; padding: 0 var(--gutter) 101px; text-align: center; font-size: 15.5px; line-height: 24px; color: var(--foot); }

/* ── 1200px 未満: サービスを縦に並べ、手動の改行をやめる ── */
@media (max-width: 1199px) {
  br.pc { display: none; }
  .ja { word-break: auto-phrase; line-break: strict; }  /* 対応ブラウザでは文節で折り返す。非対応なら通常の折り返し */
  .services { grid-template-columns: 1fr; gap: 48px; max-width: 808px; margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
  .service h2 { font-size: clamp(18px, 5vw, 25px); }
  .service .sub { font-size: clamp(16px, 4.4vw, 22px); }
  .service .body { margin-top: 16px; font-size: clamp(16px, 2.2vw, 20px); }
  .about p { font-size: clamp(16px, 2.2vw, 20px); white-space: normal; }
}

/* ── 900px 未満: スマホ ── */
@media (max-width: 899px) {
  header.site { padding-top: 28px; }
  .hero { max-width: none; margin: 0 var(--gutter); }
  .notfound { max-width: none; margin: 0 var(--gutter); }
  .lead { white-space: normal; }
  br.sp { display: inline; }
  .services { max-width: none; margin-left: 0; margin-right: 0; }
  .about { padding: 48px 24px; }
  .contact p { margin-top: 20px; }
  .contact .mail { margin-top: 32px; }
  footer.site { margin-top: 32px; padding-bottom: 64px; }
}
