/* ==========================================================================
   しくみづくり ランディングページ スタイル
   名刺のデザイン言語（白地・濃い緑・Noto Sans JP・等高線）を Web に移したもの
   ========================================================================== */

/* ---- デザイントークン: 色・書体・余白 ---- */
:root {
  /* 名刺の CMYK 85/20/100/10 に相当する緑。線・点・アイコンなど装飾用 */
  --green: #1b8a3e;
  /* 文字やボタン地に使う、少し深い緑（白地・薄緑地でコントラスト 4.5:1 以上を確保） */
  --green-ink: #16723a;
  /* 自社プロダクト枠の薄い緑の面 */
  --green-surface: #e3f1e1;
  /* 「自社プロダクト」ラベルの緑 */
  --green-pill: #c6e5c4;
  /* 本文の墨（真っ黒より少し柔らかく） */
  --ink: #1b1f1c;
  /* 補足文・英字名などの薄い墨 */
  --ink-sub: #5a625c;
  /* 区切り線 */
  --line: #dfe5df;
  --bg: #ffffff;

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

  /* コンテンツの最大幅と左右の余白（スマホでも 20px 以上） */
  --max: 1080px;
  --gutter: clamp(20px, 5vw, 48px);
  /* セクション間の縦の余白 */
  --section: clamp(72px, 10vw, 128px);
}

/* ---- リセットと基本設定 ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

/* 動きを減らす設定のユーザーにはスムーズスクロールを無効にする */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  /* 等高線の枠（.hero__contours-frame）の基準位置 */
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  /* 日本語本文は行間を広めにとる */
  line-height: 1.85;
  letter-spacing: 0.02em;
  /* 約物の詰め（対応ブラウザのみ） */
  font-feature-settings: "palt" 0;
  text-spacing-trim: trim-start;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* 見出しは文節で改行し、行の長さを揃える */
h1,
h2,
h3 {
  word-break: auto-phrase;
  text-wrap: balance;
  overflow-wrap: normal;
}

/* 本文は最終行に 1 文字だけ残る「泣き別れ」を防ぐ */
p {
  text-wrap: pretty;
}

a {
  color: var(--green-ink);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

/* キーボード操作時のフォーカスリング */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 共通の内側コンテナ */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* スクリーンリーダー専用テキスト */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 本文へスキップするリンク（フォーカス時のみ表示） */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 2;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

/* ヘッダーの小さなロゴタイプ */
.logo {
  display: inline-flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.logo__ja {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.logo__en {
  margin-top: 3px;
  font-weight: 700;
  font-size: 8.5px;
  letter-spacing: 0.32em;
}

/* ヘッダーのナビゲーション */
.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: 6px 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 999px;
  /* 背後の等高線と重なっても読めるよう、白い下地を敷く */
  background: rgba(255, 255, 255, 0.92);
}

.site-nav a:hover {
  color: var(--green-ink);
  background: var(--green-surface);
}

/* お問い合わせだけは緑の枠で目立たせる */
.site-nav .site-nav__contact {
  color: var(--green-ink);
  box-shadow: inset 0 0 0 1px var(--green);
}

/* スマホ幅ではセクション内リンクを省き、お問い合わせだけ残す */
@media (max-width: 720px) {
  .site-nav li:not(:last-child) {
    display: none;
  }
}

/* ==========================================================================
   ヒーロー（ロゴタイプ・キャッチ・等高線）
   ========================================================================== */
.hero {
  position: relative;
  /* ヘッダー分を差し引いた高さ。PC で間延びしないよう上限を設ける */
  padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 136px);
}

/* 等高線の枠。ページ上部の全幅に敷き、はみ出した部分を切り取って横スクロールを防ぐ */
.hero__contours-frame {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto 0;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
}

/* 等高線の SVG。ページ右上に置き、ヘッダーやテキストの背後に回す */
.hero__contours {
  position: absolute;
  z-index: 0;
  top: -50px;
  right: -160px;
  width: min(1180px, 92vw);
  height: auto;
  pointer-events: none;
}

.hero__contours path {
  fill: none;
  stroke: var(--green);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  /* 拡大縮小しても線を細いまま保つ */
  vector-effect: non-scaling-stroke;
}

.hero__peak {
  fill: var(--green);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

/* 大きなロゴタイプ（h1） */
.hero__title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.hero__title-ja {
  font-size: clamp(44px, 8.4vw, 88px);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__title-en {
  margin-top: 0.9em;
  font-size: clamp(11px, 1.35vw, 14px);
  font-weight: 700;
  /* 名刺と同じく字間を大きく広げる */
  letter-spacing: 0.42em;
}

/* キャッチコピー */
.hero__catch {
  margin-top: clamp(40px, 5.5vw, 64px);
  max-width: 22em;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* 文節のかたまりごとに折り返す（「しくみ」と「を、」が泣き別れないように） */
.hero__catch span {
  display: inline-block;
}

/* キャッチの「しくみ」部分に緑の下線を引く */
.hero__catch em {
  font-style: normal;
  background: linear-gradient(transparent 68%, var(--green-pill) 68%, var(--green-pill) 92%, transparent 92%);
}

.hero__lead {
  margin-top: 20px;
  word-break: auto-phrase;
  max-width: 34em;
  color: var(--ink-sub);
  font-size: clamp(15px, 1.6vw, 16px);
}

/* ボタン群 */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* 塗りのボタン（主要アクション） */
.button--primary {
  background: var(--green-ink);
  color: #fff;
}

.button--primary:hover {
  background: #105a2d;
}

/* 枠線のボタン（補助アクション） */
.button--ghost {
  background: #fff;
  color: var(--green-ink);
  box-shadow: inset 0 0 0 1px var(--green);
}

.button--ghost:hover {
  background: var(--green-surface);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* スマホ幅では等高線を小さく・薄くして文字を読みやすくする */
@media (max-width: 720px) {
  .hero__contours {
    top: -20px;
    right: -250px;
    width: 720px;
    opacity: 0.55;
  }
}

/* ==========================================================================
   セクション共通（見出し）
   ========================================================================== */
.section {
  padding-block: var(--section);
}

.section + .section {
  padding-top: 0;
}

/* セクション見出し: 小さな英字ラベル＋日本語見出し＋緑の短い線 */
.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head__en {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
}

/* 英字ラベルの前に山頂の点 */
.section-head__en::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.section-head__title {
  margin-top: 16px;
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   こんなご相談を承ります（4項目）
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  /* 名刺の区切り線と同じく、細い線で区切る */
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 20px;
  padding: clamp(28px, 3.5vw, 40px) clamp(0px, 2.5vw, 32px) clamp(28px, 3.5vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

/* 2 列目の項目は左側に縦線と余白をとる */
.service:nth-child(2n) {
  padding-left: clamp(20px, 3vw, 40px);
  border-left: 1px solid var(--line);
}

/* 項目アイコン（薄緑の丸の中に緑の線画） */
.service__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-surface);
}

.service__icon svg {
  width: 26px;
  height: 26px;
}

.service__num {
  display: block;
  color: var(--green-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
}

.service__title {
  margin-top: 8px;
  font-size: clamp(18px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.5;
}

.service__text {
  margin-top: 10px;
  color: var(--ink-sub);
  font-size: 15px;
  line-height: 1.85;
}

/* 狭い画面では 1 列にする */
@media (max-width: 760px) {
  .services {
    grid-template-columns: 1fr;
  }

  .service,
  .service:nth-child(2n) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }

  .service {
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
  }

  .service__icon {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   自社プロダクト（薄緑の面）
   ========================================================================== */
.product {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  overflow: hidden;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 20px;
  background: var(--green-surface);
}

/* 「自社プロダクト」のラベル */
.product__pill {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--green-pill);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.product__name {
  margin-top: 18px;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.product__tagline {
  margin-top: 12px;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.6;
}

.product__text {
  margin-top: 16px;
  color: #3f4741;
  font-size: 15px;
}

.product__actions {
  margin-top: 28px;
}

/* 右側の数字の見せ場 */
.product__figure {
  display: grid;
  justify-items: start;
  padding: clamp(24px, 3vw, 36px);
  border-radius: 14px;
  background: #fff;
}

.product__figure-label {
  color: var(--ink-sub);
  font-size: 13px;
  font-weight: 500;
}

.product__figure-value {
  margin-top: 4px;
  color: var(--green-ink);
  font-size: clamp(44px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.product__figure-value small {
  margin-left: 4px;
  font-size: 0.36em;
  letter-spacing: 0.04em;
}

.product__figure-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .product {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    border-radius: 16px;
  }
}

/* ==========================================================================
   代表
   ========================================================================== */
.profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
}

.profile__name {
  padding-right: clamp(24px, 5vw, 64px);
  border-right: 1px solid var(--green);
}

.profile__role {
  font-size: 14px;
  font-weight: 500;
}

.profile__name-ja {
  display: block;
  margin-top: 8px;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}

.profile__name-en {
  display: block;
  margin-top: 4px;
  color: var(--ink-sub);
  font-size: 15px;
  letter-spacing: 0.1em;
}

.profile__text {
  max-width: 36em;
  font-size: 16px;
}

@media (max-width: 640px) {
  .profile {
    grid-template-columns: 1fr;
  }

  /* スマホでは縦線を下線に切り替える */
  .profile__name {
    padding-right: 0;
    padding-bottom: 20px;
    border-right: 0;
    border-bottom: 1px solid var(--green);
  }
}

/* ==========================================================================
   お問い合わせ
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}

.contact__lead {
  font-size: 16px;
}

.contact__list {
  display: grid;
  gap: 20px;
  margin: 0;
}

/* アイコン＋項目名（dt）と値（dd）の組。値はアイコン幅だけ字下げする */
.contact__item dt {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-sub);
  font-size: 13px;
  font-weight: 500;
}

.contact__item svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.contact__item dd {
  margin: 2px 0 0;
  padding-left: 36px;
  font-weight: 500;
}

.contact__mail {
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 700;
}

@media (max-width: 760px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 28px;
  color: var(--ink-sub);
  font-size: 13px;
}

.site-footer small {
  font-size: inherit;
}
