/* ===== テラカルトのページ共通：デジタル庁デザインシステム（DADS）の決まりに寄せる層 2026-10-18 =====
   各ページの </head> の直前で読む（ページの <style> より後なので、同じ強さならこちらが勝つ）。
   本番と共用の /css/style.css は変えない。色は今の4色（生成り・サンゴ・紺・リンクのサンゴ濃）から足さない。
   決めごと：
   - 字は 16px 以上。14px は注記・フッターだけ。太さは 400 / 700。字間は .02em（見出しは .01〜.02em）
   - 行間 本文1.7・見出し1.4〜1.5
   - 余白は 8 の段（8・16・24・32・48・64）
   - 角丸は 8（ボタン・カード・枠）／16（大きい囲み）／まる の3つ
   - 影はほぼ使わない。押せる物の境目は影でなく 3:1 以上の枠で出す。ホバーで浮かせない
   - リンクは下線1px（字との間3px）、ホバーで3px。色だけで示さない
   - フォーカスは黒4px＋黄2px（DADS の形）
   - ボタン：高さ48以上（大は56）・字16px太字・字間.02em・角丸8
*/
:root {
  --link: #a0412d;          /* 生成りの上でも 5.9:1（前の #c0533d は 4.25 で届かなかった） */
  --coral-strong: #c0533d;  /* 白字を載せる塗り・小さい字のサンゴ（白字 4.62:1）。
                               大きい字（見出しの「マップ」・明朝の数字）と飾りは前のとおり #dd7059 */
  --edge: #8a979e;          /* 押せる物の枠（白の上で 3.0:1） */
  --focus-ring: #000;
  --focus-bg: #ffd43d;
  --r-s: 8px;
  --r-l: 16px;
  --elev-1: 0 2px 8px 1px rgba(0,0,0,.1), 0 1px 5px 0 rgba(0,0,0,.3);
}

body { line-height: 1.7; letter-spacing: .02em; }
em { font-style: normal; }

/* ----- 文中リンク（DADS link.css の形） ----- */
:where(main) a:where(:not([class])),
.crumb a, .fmap a, .n-start .more a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
:where(main) a:where(:not([class])):hover,
.crumb a:hover, .fmap a:hover {
  color: var(--link);
  text-decoration-thickness: 3px;
}
.n-start .more a { color: #fff; }
.n-start .more a:hover { text-decoration-thickness: 3px; }

/* ----- フォーカス（DADS：黒4px＋黄2px。リンクは地も黄） ----- */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 4px solid var(--focus-ring) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px var(--focus-bg) !important;
  border-radius: 4px;
}
:where(main, .crumb, .site-footer) a:where(:not([class])):focus-visible,
.fmap a:focus-visible, .crumb a:focus-visible {
  background: var(--focus-bg);
  color: #000;
}

/* ----- ボタン（DADS button.css の md / lg） ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 48px; min-width: 96px;
  padding: 8px 24px;
  font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .02em;
  border-radius: var(--r-s);
  border: 1px solid transparent;
  text-align: center;
}
.btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn.large { min-height: 56px; min-width: 136px; padding: 12px 28px; font-size: 16px; }
/* 白字を載せる塗りだけ濃いサンゴ。下層ページのヘッダーのダウンロードは前のとおり紺のまま（色は現状維持） */
.btn.coral, .hdr-dl { background: var(--coral-strong); color: #fff; }
.btn.coral:hover, .hdr-dl:hover { background: var(--link); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid currentColor; }
.btn.ghost:hover { background: var(--cream); color: var(--navy); }
.btn .arr { text-decoration: none; }

/* ----- ヘッダー：字は14px未満にしない。入りきらない幅（〜899px）は≡に畳む ----- */
.header-nav a.text-link { font-size: 15px; }
.header-nav .btn { min-height: 44px; font-size: 15px; padding: 8px 18px; letter-spacing: .02em; }
@media (max-width: 899px) {
  .site-header .inner { position: relative; }
  .nav-toggle { display: block; width: 44px; height: 44px; }
  .header-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--elev-1); padding: 8px 0;
  }
  .site-header.nav-open .header-nav { display: flex; }
  .header-nav a.text-link, .header-nav .btn {
    width: 100%; font-size: 16px; padding: 12px 24px; min-height: 48px; text-align: left;
    white-space: normal; justify-content: flex-start; border-radius: 0;
  }
  .header-nav .btn { background: transparent; color: var(--navy); letter-spacing: .02em; font-weight: 700; }
  .header-nav .btn:hover { background: var(--cream); }
  .hdr-dl {
    display: inline-flex; align-items: center; margin-left: auto; min-height: 44px; padding: 0 16px;
    font-size: 14px; font-weight: 700; letter-spacing: .02em; border-radius: var(--r-s); text-decoration: none; white-space: nowrap;
  }
  .site-header .inner .nav-toggle { margin-left: 4px; }
  .hdr-dl ~ .header-nav .btn { display: none !important; }
  .header-nav a.text-link[aria-current="page"]::after { display: none; }
  .header-nav a.text-link[aria-current="page"] { background: var(--cream); }
  .header-nav a.text-link { border-bottom: 1px solid var(--line); }
}
/* ≡ を出さないページ（ヘッダーにダウンロードの外出しが無い）は、ボタンを≡の中に残す */
.site-header .inner:not(:has(.hdr-dl)) .nav-toggle { margin-left: auto; }

/* ブランド名は折り返さない（狭い画面でダウンロードを外に出したとき「テラカル／ト」になった） */
.brand { white-space: nowrap; }
@media (max-width: 374px) { .hdr-dl { padding: 0 12px; } }

/* ----- パンくず ----- */
.crumb ol { font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.crumb li + li::before { color: var(--ink-soft); margin: 0 8px; }

/* ----- カード：浮かせない。枠は 3:1 の灰。ホバーは地の色と矢印だけ ----- */
.cardlink { border-color: var(--edge); border-radius: var(--r-s); box-shadow: none; }
.cardlink:hover { transform: none; box-shadow: none; border-color: var(--navy); background: #fff; }
.mcard.ws { border-color: var(--edge); border-radius: var(--r-s); box-shadow: none; }
.mcard .cardlink img, .fcard img { border-radius: 7px 7px 0 0 !important; }
.mcard.ws .cardlink { border-radius: 7px 7px 0 0; }
.mcard .sub a { border-radius: 0 0 7px 7px; font-size: 14px; }
.mcard .cardlink:hover, .mcard.ws .cardlink:hover { box-shadow: none; }
.go { font-size: 16px; color: var(--link); }
.cardlink .go { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.cardlink:hover .go { text-decoration-thickness: 3px; }
.arr-c { background: var(--coral-strong); width: 32px; height: 32px; }

/* ----- 入口カード（gcard）：箱を4つ並べず、1つの枠を線で区切った一覧にする（DADS のカード＝外周を枠、段の間を線） ----- */
.ggrid { gap: 0; border: 1px solid var(--edge); border-radius: var(--r-s); background: #fff; overflow: hidden; }
.ggrid .gcard { border: 0; border-radius: 0; border-top: 1px solid var(--line); min-height: 72px; padding: 16px; }
.ggrid .gcard:first-child { border-top: 0; }
.gcard:hover { background: var(--cream); }
.gcard:hover b { text-decoration: underline; text-underline-offset: 3px; }
.gcard b { font-size: 18px; line-height: 1.5; margin-bottom: 0; }
.gcard span.d { font-size: 16px; line-height: 1.7; }
.gcard .for { font-size: 14px; }
@media (max-width: 600px) { .gcard b { font-size: 16px; } .ggrid .gcard { padding: 16px 12px; gap: 12px; } }
@media (min-width: 820px) {
  .ggrid { column-gap: 0; }
  .ggrid .gcard:nth-child(2) { border-top: 0; }
  .ggrid:not(.three) .gcard:nth-child(even) { border-left: 1px solid var(--line); }
  .ggrid.three .gcard:nth-child(-n+3) { border-top: 0; }
  .ggrid.three .gcard:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
}

/* ----- 前へ／次へ ----- */
.pager .cardlink small { font-size: 14px; letter-spacing: .02em; }
.pager .cardlink b { font-size: 16px; }
.pager .where { font-size: 14px; }

/* ----- 飾りのラベル（英字の小見出し）：字間を広げず、透かさない（DADS 見出しの肩＝1段小さい字）
   色は前のサンゴの系統のまま。14pxでも読める濃い方（#c0533d）にする ----- */
.n-label, .h-label { opacity: 1; font-size: 14px; letter-spacing: .04em; font-weight: 700; }

/* ----- フッター ----- */
.fmap h2 { font-size: 16px; letter-spacing: .02em; }
.fmap li { margin: 0; }
.fmap a { display: inline-block; font-size: 14px; color: var(--ink-soft); padding: 6px 0; text-decoration-color: currentColor; }
.fmap a:hover { color: var(--navy); }
.footer-links a { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.copyright { font-size: 14px; }
.footer-social a:hover { transform: none; }

/* ----- ストアのバッジ：字が小さくなりすぎないように ----- */
.store-badge { border-radius: var(--r-s); min-height: 48px; }
.store-badge .txt small { font-size: 11px; }  /* 公式バッジの決まり文句（読ませる字ではない） */


/* ----- 共用 style.css の小さい字を、テラカルトのページだけ 14px 以上・本文 16px に上げる ----- */
.map-demo-lead, .pricing-note, .join-lead, .lp2-band p, .legal p, .legal li { font-size: 16px; line-height: 1.7; }
.pricing-footnote, .legal .note, .legal .enacted, .app-note .note, .join-note, .event-step,
.path-badge, .tag, .lp2-sec-label, .plan-name, .plan-price small, .plan-table .note,
.plan-table tbody th small { font-size: 14px; letter-spacing: .02em; }
.plan-table th, .plan-table td { font-size: 16px; }
.dl-band .copy .genre { font-size: clamp(1rem, 2.2vw, 1.125rem); }
@media (max-width: 600px) {
  .plan-table th, .plan-table td { font-size: 14px; }  /* 3列の表をスマホで収めるための例外 */
}


/* ----- 見出しの字間：広げすぎない（DADS 見出しは .01〜.02em）。ロゴの「テラカルト」は字形の一部なので除く ----- */
.section-title, .legal h1, .legal h2, .join-title, .pricing-subtitle, .event-step b,
.dl-band .copy .lead, .dl-band .copy .genre, .dl-band .copy .app-name, .store-lead, .plan-name { letter-spacing: .02em; }
.lp2-sec-label { color: var(--coral-strong); font-size: 14px; letter-spacing: .04em; font-weight: 700; }
.lp2-demo img, .dl-band .app-icon { box-shadow: none; }


/* ----- 申し込みの帯（共用 .lp2-band）：白字が読める濃さのサンゴに。2つ目のボタンは「枠だけ」 ----- */
.lp2-band { background: var(--coral-strong); border-radius: var(--r-l); }
.lp2-band h3 { line-height: 1.5; letter-spacing: .02em; }
.lp2-band p { opacity: 1; font-size: 16px; }
.lp2-band .btn { background: #fff; color: var(--link); }
.lp2-band .btn:hover { background: var(--cream); }
.lp2-band .btn + .btn { background: transparent !important; color: #fff !important; border: 1px solid #fff; }
.lp2-band .btn + .btn:hover { background: var(--link) !important; }

/* ----- 強い影を消す（共用 style.css の飾りの影） ----- */
.phone-mock, .phone-screen img { box-shadow: none; }

/* ----- 2回目（10/18）：スマホで崩れた所 ----- */
/* 語の途中で折らない（文言はそのまま。数字と単位・メールアドレス・短いリンクをひとまとまりに） */
.nw { white-space: nowrap; }
.ask a.mail .nw { word-break: keep-all; }
/* 料金の表：<small> と値段を14px未満にしない */
.plan-table td small, .plan-table th small, .plan-price, .plan-price small { font-size: 14px; }
@media (max-width: 600px) {
  /* 3列の表がスマホで右に切れた（charge 333/327・payment 330/327）。表の中だけ字間を0、左右の余白を6pxに詰め、
     見出し行は前のとおり左右3px（字間0にすれば「サイトプラン」が1行に収まる） */
  .plan-table, .plan-table * { letter-spacing: 0 !important; }
  .plan-table th, .plan-table td { padding-left: 6px !important; padding-right: 6px !important; overflow-wrap: anywhere; }
  .plan-table thead th { padding-left: 3px !important; padding-right: 3px !important; }
  .plan-table:not(.event-plan-table) thead th:nth-child(n+2) { width: 92px !important; }  /* 80pxでは「サイトプラン」14px×6字が入らない */
  .plan-table td small, .plan-table th small, .plan-price, .plan-price small { font-size: 14px; }
  /* lp の紺の帯のメールボタン：字間0・左右16pxで1行に収める */
  .ask a.mail { letter-spacing: 0; padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn .arr, .go .arr, .arr-c { transition: none !important; }
}
