/* TEGIWA（手際）LP — 営業資料「TEGIWA サービス紹介資料」と同じ見た目
   色：紺 #071a33／クリーム #f5f2ea／紙 #fbf9f4／ピンク #fa0860／緑 #70cc03／オレンジ #fc9002／青 #0186fb
   字：Zen Kaku Gothic New。このファイルは TEGIWA のページだけで使う（クラスはすべて tg- で始まる）。 */

:root {
  --tg-navy: #071a33;
  --tg-navy-2: #0b2343;
  --tg-cream: #f5f2ea;
  --tg-cream-2: #efebe1;
  --tg-paper: #fbf9f4;
  --tg-pink: #fa0860;
  --tg-pink-2: #ff1f70;
  --tg-green: #70cc03;
  --tg-orange: #fc9002;
  --tg-blue: #0186fb;
  --tg-muted: #5a6478;
  --tg-muted-navy: #a3abbb;
  --tg-shadow: rgba(0, 0, 0, .35);
  --tg-font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --tg-gutter: 20px;
  --tg-hdr-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tg-hdr-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.tg {
  margin: 0;
  background: var(--tg-navy);
  color: var(--tg-navy);
  font-family: var(--tg-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.75;
  /* 日本語は文節で折り返す（<wbr> を build.py が入れる） */
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  font-feature-settings: "palt" 1;
  overflow-x: hidden;
}
/* 初期化は :where() で弱くする（部品ごとの余白・色を消さないため） */
:where(.tg) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
:where(.tg) :where(ul, ol) { list-style: none; }
:where(.tg) :where(img, video) { display: block; max-width: 100%; height: auto; }
:where(.tg) :where(a) { color: inherit; }
:where(.tg) :where(em) { font-style: normal; color: var(--tg-pink); }
:where(.tg) :where(sup) { font-size: .6em; vertical-align: .6em; line-height: 0; margin-left: 1px; }

.tg-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--tg-paper); color: var(--tg-navy); padding: 8px 14px; }
.tg-skip:focus { left: 8px; }
.tg :focus-visible { outline: 3px solid var(--tg-blue); outline-offset: 3px; }

.tg-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--tg-gutter); position: relative; z-index: 1; }

.tg-navy { background: var(--tg-navy); color: var(--tg-cream); }
.tg-cream { background: var(--tg-cream); color: var(--tg-navy); }
.tg-cream-2 { background: var(--tg-cream-2); }

/* ---------- 部品 ---------- */
.tg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 22px;
  font-weight: 900; font-size: 16px; line-height: 1.35; text-decoration: none; text-align: center;
  border: 3px solid var(--tg-navy); cursor: pointer; font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tg-btn-pink { background: var(--tg-pink); color: #fff; border-color: var(--tg-pink); box-shadow: 6px 6px 0 var(--tg-shadow); }
.tg-navy .tg-btn-pink { border-color: var(--tg-pink); }
.tg-btn-pink:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--tg-shadow); }
.tg-btn-pink:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--tg-shadow); }
.tg-btn-ghost { background: transparent; color: var(--tg-cream); border-color: var(--tg-cream); }
.tg-btn-ghost:hover { background: var(--tg-cream); color: var(--tg-navy); }
.tg-btn-sm { min-height: 40px; padding: 6px 14px; font-size: 14px; box-shadow: 4px 4px 0 var(--tg-shadow); border-width: 2px; white-space: nowrap; }
.tg-btn-block { width: 100%; }

.tg-tag {
  display: inline-block; padding: 3px 14px; font-weight: 900; font-size: 14px; line-height: 1.5; white-space: nowrap;
  color: var(--tg-navy); box-shadow: 4px 4px 0 var(--tg-navy); transform: rotate(-2deg); vertical-align: middle;
}
.tg-navy .tg-tag { box-shadow: 4px 4px 0 var(--tg-shadow); }
.tg-tag-green { background: var(--tg-green); }
.tg-tag-orange { background: var(--tg-orange); }
.tg-tag-pink { background: var(--tg-pink-2); }
.tg-tag-navy { background: var(--tg-navy); color: var(--tg-cream); }

.tg-card { background: var(--tg-paper); border: 3px solid var(--tg-navy); box-shadow: 6px 6px 0 var(--tg-navy); }

.tg-label {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  font-weight: 900; font-size: 13px; letter-spacing: .3em; line-height: 1.4; margin-bottom: 12px;
}
.tg-label::before { content: ""; width: 40px; height: 5px; background: var(--tg-pink); flex: 0 0 auto; }
.tg-label .tg-tag { letter-spacing: 0; }

.tg-h2 { font-weight: 900; font-size: clamp(28px, 6.4vw, 56px); line-height: 1.22; letter-spacing: .01em; }
.tg-h3 { font-weight: 900; font-size: clamp(18px, 4.4vw, 24px); line-height: 1.4; }
.tg-lead { margin-top: 18px; font-size: clamp(15px, 3.9vw, 19px); line-height: 1.85; max-width: 60em; }
.tg-lead-dark { color: var(--tg-navy); }
.tg-side { font-size: clamp(15px, 3.8vw, 19px); line-height: 1.8; }
.tg-fine { margin-top: 14px; font-size: 12.5px; line-height: 1.7; color: var(--tg-muted-navy); }
.tg-fine-dark { color: var(--tg-muted); margin-top: 18px; }

.tg-head-split { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }

/* 背景の白抜きの大きな英字 */
.tg-sec, .tg-hero, .tg-stage { position: relative; overflow: hidden; }
.tg-bgword {
  position: absolute; z-index: 0; left: -2%; bottom: -0.12em; margin: 0;
  font-weight: 900; font-size: clamp(110px, 26vw, 380px); line-height: 1; letter-spacing: -.02em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 2px currentColor; opacity: .09; pointer-events: none; user-select: none;
}
.tg-cream .tg-bgword { color: transparent; -webkit-text-stroke-color: var(--tg-navy); }
.tg-navy .tg-bgword { -webkit-text-stroke-color: var(--tg-cream); }
.tg-bgword-right { left: auto; right: -2%; }
.tg-bgword-top { bottom: auto; top: .1em; }
.tg-bgword-low { opacity: .07; }

.tg-sec { padding: 72px 0 80px; }

/* ---------- ヘッダー ---------- */
.tg-hdr {
  position: sticky; top: 0; z-index: 50; height: var(--tg-hdr-h);
  background: rgba(7, 26, 51, .94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(245, 242, 234, .1); color: var(--tg-cream);
}
.tg-hdr-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tg-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tg-brand img { width: auto; height: 34px; }
.tg-brand-name { font-weight: 900; font-size: 17px; letter-spacing: .04em; padding-left: 12px; border-left: 1px solid rgba(245, 242, 234, .3); line-height: 1.2; white-space: nowrap; }
.tg-brand-name small { font-size: .82em; margin-left: .2em; }
.tg-gnav { display: none; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; margin-left: auto; }
.tg-gnav > a, .tg-gnav-item > a { display: block; padding: 8px 10px; text-decoration: none; opacity: .88; white-space: nowrap; }
.tg-gnav > a:hover, .tg-gnav-item > a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--tg-pink); }
.tg-gnav-item { position: relative; }
.tg-gnav-item > a::after { content: "▾"; font-size: .7em; margin-left: .35em; opacity: .7; }
.tg-gnav-drop {
  position: absolute; top: 100%; left: -8px; min-width: 230px; padding: 8px 0;
  background: var(--tg-paper); color: var(--tg-navy); border: 3px solid var(--tg-navy); box-shadow: 6px 6px 0 var(--tg-shadow);
  opacity: 0; visibility: hidden; translate: 0 6px; transition: opacity .15s ease, translate .15s ease, visibility .15s;
}
.tg-gnav-item:hover .tg-gnav-drop, .tg-gnav-item:focus-within .tg-gnav-drop { opacity: 1; visibility: visible; translate: 0 0; }
.tg-gnav-drop a { display: block; padding: 8px 18px; text-decoration: none; font-size: 14px; white-space: nowrap; }
.tg-gnav-drop a:hover { background: var(--tg-cream); }
.tg-gnav-drop a[aria-current="page"] { color: var(--tg-pink); font-weight: 900; }
.tg-hdr-act { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tg-hb { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; background: transparent; border: 2px solid rgba(245, 242, 234, .5); cursor: pointer; padding: 0; }
.tg-hb span { display: block; width: 20px; height: 2px; background: var(--tg-cream); transition: transform .2s ease, opacity .2s ease; }
.tg-hb[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tg-hb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tg-hb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.tg-drawer { position: fixed; inset: var(--tg-hdr-h) 0 0 0; z-index: 49; background: #04101f; color: var(--tg-cream); overflow-y: auto; }
.tg-drawer[hidden] { display: none; }
.tg-drawer-in { max-width: 560px; margin: 0 auto; padding: 22px var(--tg-gutter) 120px; }
.tg-drawer-cap { font-weight: 900; font-size: 12px; letter-spacing: .25em; color: var(--tg-muted-navy); margin: 18px 0 6px; }
.tg-drawer-nav a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(245, 242, 234, .12); text-decoration: none; font-weight: 700; font-size: 16px; }
.tg-drawer-nav a[aria-current="page"] { color: var(--tg-pink); }
.tg-toc { display: none; }

/* ---------- 1. いちばん上 ---------- */
.tg-hero { padding: 40px 0 72px; background: radial-gradient(ellipse 70% 60% at 78% 30%, rgba(245, 242, 234, .1), rgba(245, 242, 234, 0) 70%), var(--tg-navy); }
.tg-hero .tg-bgword { opacity: .08; }
.tg-hero-grid { display: grid; gap: 40px; }
.tg-hero-title { font-weight: 900; font-size: clamp(40px, 11vw, 96px); line-height: 1.14; letter-spacing: 0; text-shadow: 6px 6px 0 rgba(0, 0, 0, .35); }
.tg-bars { display: flex; gap: 6px; margin: 26px 0 22px; }
.tg-bars i { width: 64px; height: 6px; background: var(--tg-pink); }
.tg-bars i:nth-child(2) { background: var(--tg-green); }
.tg-bars i:nth-child(3) { background: var(--tg-orange); }
.tg-bars i:nth-child(4) { background: var(--tg-blue); }
.tg-hero-name { font-weight: 900; font-size: clamp(22px, 5.4vw, 30px); letter-spacing: .06em; line-height: 1.3; }
.tg-hero-lead { margin-top: 10px; font-size: clamp(16px, 4.2vw, 21px); line-height: 1.7; }
.tg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tg-chips li { padding: 4px 12px; border: 2px solid rgba(245, 242, 234, .55); font-weight: 700; font-size: 14px; line-height: 1.5; white-space: nowrap; }
.tg-cta-row { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.tg-hero-co { margin-top: 18px; font-size: 14px; color: var(--tg-muted-navy); }
.tg-hero-media { position: relative; margin: 8px 6px 0 0; }
.tg-hero-tag { position: absolute; top: -14px; left: -6px; z-index: 2; transform: rotate(-4deg); font-size: 14px; }
.tg-video-card { position: relative; background: var(--tg-paper); padding: 10px; box-shadow: 10px 10px 0 var(--tg-shadow); transform: rotate(1.5deg); }
.tg-video { width: 100%; aspect-ratio: 16 / 9; background: #fff; object-fit: cover; }
.tg-video-btn {
  position: absolute; right: 18px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--tg-navy); background: rgba(251, 249, 244, .92); color: var(--tg-navy);
  font-size: 12px; font-weight: 900; cursor: pointer; letter-spacing: -1px;
}
.tg-hero-media figcaption { margin-top: 18px; font-size: 13.5px; color: var(--tg-muted-navy); line-height: 1.7; }

/* ---------- 2. お悩み ---------- */
.tg-concerns { display: grid; gap: 22px; margin-top: 30px; }
.tg-concern-list { display: grid; gap: 16px; }
.tg-concern { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
.tg-concern p { font-size: clamp(16px, 4vw, 20px); line-height: 1.6; }
.tg-stat { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.tg-stat-q, .tg-stat-a { font-weight: 900; font-size: clamp(17px, 4.2vw, 21px); line-height: 1.45; }
.tg-stat-num { font-weight: 900; font-size: clamp(64px, 18vw, 104px); line-height: 1.05; color: var(--tg-blue); letter-spacing: -.02em; }
.tg-stat-num small { font-size: .62em; margin-left: .04em; }
.tg-stat-src { margin-top: 10px; padding-top: 12px; border-top: 2px solid rgba(7, 26, 51, .15); font-size: 13px; color: var(--tg-muted); line-height: 1.65; }

/* ---------- 3. なぜ ---------- */
.tg-why-grid { display: grid; gap: 24px; margin-top: 32px; }
.tg-panel { background: var(--tg-paper); color: var(--tg-navy); padding: 22px 22px 26px; box-shadow: 10px 10px 0 var(--tg-shadow); }
.tg-cost { display: flex; align-items: flex-end; gap: 18px; margin-top: 16px; }
.tg-cost-stack { flex: 1 1 52%; display: flex; flex-direction: column; gap: 6px; max-width: 240px; }
.tg-cost-stack li { padding: 5px 10px; text-align: center; background: var(--tg-cream); border: 2px solid var(--tg-navy); font-size: 15px; line-height: 1.5; }
.tg-cost-stack .tg-cost-top { background: var(--tg-paper); border: 3px solid var(--tg-blue); border-radius: 40px; font-weight: 900; position: relative; margin-bottom: 10px; }
.tg-cost-stack .tg-cost-top::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 3px; height: 10px; background: var(--tg-navy); transform: translateX(-50%); }
.tg-cost-illust { flex: 1 1 48%; display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.tg-cost-illust img { width: 48%; max-width: 120px; }
.tg-who-made { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.tg-who-made li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 4px; border: 2px dashed rgba(7, 26, 51, .4); background: rgba(7, 26, 51, .03); }
.tg-who-made b { font-weight: 900; font-size: clamp(14px, 3.8vw, 19px); line-height: 1.35; }
.tg-who-made span { font-size: 12px; color: var(--tg-muted); }
.tg-note-sq { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--tg-muted); }
.tg-note-sq i { width: 18px; height: 18px; background: var(--tg-orange); flex: 0 0 auto; }
.tg-why-answer { margin-top: 16px; font-weight: 900; font-size: clamp(20px, 5.2vw, 28px); line-height: 1.4; color: var(--tg-pink); }

/* ---------- 4. 答え ---------- */
.tg-answer-grid { display: grid; gap: 26px; }
.tg-box { background: var(--tg-paper); border: 3px solid var(--tg-navy); display: flex; flex-direction: column; }
.tg-box-pro { box-shadow: 8px 8px 0 var(--tg-navy); }
.tg-box-ai img { width: 100%; aspect-ratio: 1200 / 612; object-fit: cover; background: var(--tg-orange); }
.tg-box-head { padding: 8px 18px; font-weight: 900; font-size: 15px; line-height: 1.5; }
.tg-box-ai .tg-box-head { background: var(--tg-orange); border-top: 3px solid var(--tg-navy); }
.tg-box-pro .tg-box-head { background: var(--tg-pink-2); }
.tg-box-list li { padding: 10px 18px; border-bottom: 1px solid rgba(7, 26, 51, .15); font-size: 15px; line-height: 1.6; }
.tg-box-list-lg li { font-weight: 900; font-size: clamp(16px, 4vw, 20px); padding: 12px 18px; }
.tg-box-foot { display: flex; flex-direction: column; gap: 18px; padding: 18px; flex: 1; justify-content: flex-end; }
.tg-box-who { display: flex; align-items: flex-start; gap: 10px; font-weight: 900; font-size: clamp(17px, 4.4vw, 22px); line-height: 1.4; }
.tg-box-who i { width: 16px; height: 16px; margin-top: .35em; background: var(--tg-pink); flex: 0 0 auto; }
.tg-stick { align-self: flex-end; background: var(--tg-navy); color: var(--tg-cream); padding: 12px 18px; font-weight: 900; font-size: 14px; line-height: 1.7; box-shadow: 5px 5px 0 var(--tg-pink); transform: rotate(-1.5deg); }

/* ---------- 5. 頼む前・作る時・納品のあと ---------- */
.tg-qa-block + .tg-qa-block { margin-top: 72px; }
.tg-qa { display: grid; gap: 22px; }
.tg-qa > li { display: grid; grid-template-columns: 1fr; gap: 6px; justify-items: stretch; }
.tg-bubble { background: var(--tg-paper); border: 3px solid var(--tg-navy); border-radius: 22px; padding: 12px 18px; font-size: clamp(15px, 4vw, 19px); line-height: 1.55; }
.tg-arrow { justify-self: center; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 14px solid var(--tg-pink); margin: 2px 0; }
.tg-ans { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.tg-ans-main { font-weight: 900; font-size: clamp(16px, 4.1vw, 20px); line-height: 1.55; }
.tg-ans-sub { font-weight: 900; font-size: 14.5px; line-height: 1.6; }
.tg-give { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 14px; line-height: 1.65; }
.tg-give b { background: var(--tg-navy); color: var(--tg-cream); padding: 0 8px; font-weight: 900; white-space: nowrap; flex: 0 0 auto; }
.tg-give span { flex: 1 1 12em; }
@media (max-width: 599px) { .tg-give { flex-direction: column; align-items: flex-start; gap: 4px; } .tg-give span { flex: none; } }

/* ---------- 6. 証拠 ---------- */
.tg-proof-grid { display: grid; gap: 40px; }
.tg-proof-board { background: var(--tg-paper); padding: 10px; box-shadow: 10px 10px 0 var(--tg-shadow); transform: rotate(-2deg); max-width: 460px; margin: 0 auto; }
.tg-proof-row { display: grid; gap: 22px; margin-top: 24px; }
.tg-redpen { background: var(--tg-paper); color: var(--tg-navy); border-left: 8px solid var(--tg-pink); padding: 16px 18px; box-shadow: 8px 8px 0 var(--tg-shadow); }
.tg-redpen-cap { font-size: 14px; color: var(--tg-muted); margin-bottom: 6px; }
.tg-redpen dl > div { display: grid; grid-template-columns: 6.6em 1fr; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed rgba(7, 26, 51, .15); }
.tg-redpen dl > div:last-child { border-bottom: 0; }
.tg-redpen dt { font-weight: 900; font-size: 15px; }
.tg-redpen dd { font-weight: 900; font-size: 15.5px; color: var(--tg-pink); position: relative; padding-left: 1.4em; }
.tg-redpen dd::before { content: "→"; position: absolute; left: 0; color: var(--tg-navy); font-weight: 700; }
.tg-redpen s { text-decoration-thickness: 2px; text-decoration-color: var(--tg-pink); }
.tg-proof-frame img { width: 100%; border: 3px solid var(--tg-cream); }
.tg-proof-frame figcaption { font-size: 13px; color: var(--tg-muted-navy); margin-top: 8px; }
.tg-proof-tag { margin-top: 14px; font-weight: 900; font-size: clamp(22px, 5.6vw, 30px); line-height: 1.3; }

/* ---------- 7. 作り方の流れ ---------- */
.tg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 18px; font-weight: 900; font-size: 14px; }
.tg-legend li { display: flex; align-items: center; gap: 8px; }
.tg-legend i { width: 20px; height: 20px; border: 2px solid var(--tg-navy); }
.tg-c-pink { background: var(--tg-pink); } .tg-c-orange { background: var(--tg-orange); } .tg-c-green { background: var(--tg-green); }
.tg-steps { display: grid; gap: 14px; counter-reset: tgstep; position: relative; }
.tg-step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px 58px; border: 3px solid var(--tg-navy); box-shadow: 5px 5px 0 var(--tg-navy); counter-increment: tgstep; }
.tg-step::before { content: counter(tgstep); position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; background: var(--tg-navy); color: var(--tg-cream); font-weight: 900; font-size: 15px; border-radius: 50%; }
.tg-step b { font-weight: 900; font-size: 17px; line-height: 1.4; }
.tg-step > span { font-size: 14.5px; line-height: 1.6; }
.tg-step-pink { background: var(--tg-pink); color: #fff; } .tg-step-pink::before { background: #fff; color: var(--tg-pink); }
.tg-step-orange { background: var(--tg-orange); }
.tg-step-green { background: var(--tg-green); margin-top: 12px; }
.tg-step-done { background: var(--tg-paper); border-color: var(--tg-pink); }
.tg-step-flag { position: absolute; top: -16px; right: 10px; background: var(--tg-green); border: 2px solid var(--tg-navy); padding: 0 10px; font-style: normal; font-weight: 900; font-size: 13px; color: var(--tg-navy); transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--tg-navy); }
.tg-check { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 22px; height: 22px; font-size: 14px; }
.tg-check-g { background: var(--tg-green); border-radius: 50%; color: var(--tg-navy); }
.tg-step-green .tg-check { top: auto; bottom: 10px; }
.tg-nw { white-space: nowrap; }
.tg-speed { margin-top: 36px; }
.tg-speed-kicker { font-weight: 900; font-size: clamp(17px, 4.4vw, 22px); color: var(--tg-pink); }
.tg-speed-main { font-weight: 900; font-size: clamp(30px, 8vw, 46px); line-height: 1.3; }
.tg-speed-main em, .tg-speed-cond em { color: var(--tg-blue); }
.tg-speed-cond { font-weight: 900; font-size: clamp(15px, 4vw, 20px); line-height: 1.6; }
.tg-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; font-size: 14.5px; line-height: 1.7; }

/* ---------- 8. 料金の舞台 ---------- */
.tg-stage { padding: 64px 0 72px; background: #021028; } /* 舞台の絵のふちの色に合わせる（絵の四角が見えないように） */
.tg-stage-grid { display: grid; gap: 26px; }
.tg-stage-art { position: relative; container-type: inline-size; }
.tg-stage-art img { width: 100%; }
.tg-stage-tag { position: absolute; left: 3%; top: 1.5%; font-size: clamp(12px, 3.6cqw, 22px); transform: rotate(-3deg); box-shadow: 4px 4px 0 var(--tg-shadow); }
.tg-stage-sign {
  position: absolute; left: 9.5%; top: 11%; width: 64%; height: 44%;
  display: flex; flex-direction: column; justify-content: center;
  font-weight: 900; font-size: 6.2cqw; line-height: 1.24; color: var(--tg-cream); text-shadow: .3cqw .3cqw 0 rgba(0, 0, 0, .45);
  word-break: keep-all;
}
.tg-stage-sign-in { display: block; }
.tg-stage-sign .tg-b { color: var(--tg-blue); }
.tg-stage-copy p { font-size: clamp(16px, 4.2vw, 20px); line-height: 1.85; }
.tg-pinkbar { display: block; width: 90px; height: 4px; background: var(--tg-pink); margin-bottom: 18px; }
.tg-stage-copy .tg-stage-tagline { margin-top: 18px; font-weight: 900; font-size: clamp(26px, 6.6vw, 38px); line-height: 1.3; color: var(--tg-pink); }

/* ---------- 9. 料金と条件 ---------- */
.tg-price-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.tg-asof { align-self: flex-start; border: 2px solid var(--tg-navy); padding: 2px 10px; font-weight: 900; font-size: 13px; background: var(--tg-paper); }
.tg-plans { display: grid; gap: 28px; }
.tg-plan { background: var(--tg-paper); border: 3px solid var(--tg-navy); box-shadow: 8px 8px 0 var(--tg-navy); }
.tg-plan-head { padding: 12px 18px; background: var(--tg-navy); color: var(--tg-cream); font-weight: 900; font-size: clamp(18px, 4.6vw, 23px); line-height: 1.4; }
.tg-plan-sub .tg-plan-head { background: var(--tg-pink); color: #fff; }
.tg-terms > div { display: grid; grid-template-columns: 7.4em 1fr; gap: 10px; padding: 9px 18px; border-bottom: 1px solid rgba(7, 26, 51, .13); align-items: baseline; }
.tg-terms > div:last-child { border-bottom: 0; }
.tg-terms dt { font-weight: 900; font-size: 14px; line-height: 1.55; }
.tg-terms dd { font-size: 14.5px; line-height: 1.6; }
.tg-terms .tg-terms-price dd { font-weight: 900; font-size: 16.5px; }

/* ---------- 10. よくある不安 ---------- */
.tg-faq { display: grid; gap: 18px; margin-top: 30px; }
.tg-faq-item { background: var(--tg-paper); color: var(--tg-navy); padding: 18px 20px 20px; box-shadow: 8px 8px 0 var(--tg-shadow); }
.tg-faq-hl { border-left: 8px solid var(--tg-pink); }
.tg-faq-item h3 { font-weight: 900; font-size: clamp(17px, 4.4vw, 21px); line-height: 1.45; margin-bottom: 8px; }
.tg-faq-item p { font-size: 15px; line-height: 1.75; }
.tg-faq-src { margin-top: 8px !important; font-size: 13px !important; color: var(--tg-muted); }

/* ---------- 11. 効果 ---------- */
.tg-effect { margin-top: 26px; display: grid; gap: 18px; }
.tg-effect-row.tg-effect-headrow { display: none; }
.tg-effect-row { background: var(--tg-paper); border: 3px solid var(--tg-navy); box-shadow: 6px 6px 0 var(--tg-navy); display: grid; }
.tg-effect-row > span { padding: 12px 16px; font-size: 15px; line-height: 1.65; border-top: 1px solid rgba(7, 26, 51, .13); }
.tg-effect-row > span[data-plan]::before { content: attr(data-plan); display: block; font-size: 12px; font-weight: 900; color: var(--tg-muted); letter-spacing: .04em; }
.tg-effect-row > .tg-effect-rh { border-top: 0; background: var(--tg-navy); color: var(--tg-cream); font-weight: 900; font-size: 16px; }
.tg-effect-rh small { font-size: 12px; font-weight: 500; margin-left: .4em; opacity: .8; }
.tg-effect-measure { border-color: var(--tg-blue); }
.tg-effect-measure .tg-effect-rh { background: var(--tg-blue); color: #fff; }
.tg-effect-rh i { display: none; }

/* ---------- 12. 代表 ---------- */
.tg-who-grid { display: grid; gap: 36px; }
.tg-quote { margin: 26px 0 0; padding: 0 0 0 16px; border-left: 4px solid var(--tg-pink); }
.tg-quote p { font-weight: 900; font-size: clamp(17px, 4.4vw, 22px); line-height: 1.6; }
.tg-quote footer { margin-top: 10px; font-size: 14px; color: var(--tg-muted); }
.tg-company { margin-top: 26px; border-top: 3px solid var(--tg-navy); }
.tg-company > div { display: grid; grid-template-columns: 5.6em 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(7, 26, 51, .15); }
.tg-company dt { font-weight: 900; font-size: 14px; }
.tg-company dd { font-size: 14.5px; line-height: 1.6; }
.tg-who-side { display: flex; flex-direction: column; gap: 22px; }
.tg-who-logo { width: 46%; max-width: 230px; align-self: flex-end; }
.tg-credits { padding: 18px 20px; }
.tg-credits h3 { font-weight: 900; font-size: clamp(16px, 4.2vw, 20px); line-height: 1.45; margin-bottom: 10px; }
.tg-credits li { position: relative; padding-left: 20px; font-weight: 700; font-size: 15px; line-height: 1.6; margin: 6px 0; }
.tg-credits li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; background: var(--tg-pink); }
.tg-credits p { margin-top: 10px; font-size: 13.5px; color: var(--tg-muted); }
.tg-greenbar { border-left: 5px solid var(--tg-green); padding-left: 12px; font-weight: 700; font-size: 14.5px; line-height: 1.7; }

/* ---------- 13. ご相談 ---------- */
.tg-next { padding-bottom: 96px; }
.tg-next-grid { display: grid; gap: 36px; }
.tg-next-copy { position: relative; }
.tg-mail { margin-top: 14px; font-size: 14.5px; line-height: 1.8; color: var(--tg-muted-navy); }
.tg-mail a { color: var(--tg-cream); font-weight: 900; text-decoration-color: var(--tg-pink); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.tg-next-person { display: none !important; }
.tg-form { background: var(--tg-paper); color: var(--tg-navy); padding: 22px 20px 24px; box-shadow: 10px 10px 0 var(--tg-shadow); position: relative; }
.tg-form-title { font-weight: 900; font-size: clamp(18px, 4.6vw, 22px); line-height: 1.4; margin-bottom: 14px; }
.tg-form-title small { font-size: .72em; color: var(--tg-pink); margin-left: .2em; }
.tg-ff { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tg-ff label { font-weight: 900; font-size: 14px; }
.tg-ff label em { font-size: 11px; background: var(--tg-pink); color: #fff; padding: 1px 6px; margin-left: 8px; vertical-align: 2px; }
.tg-ff label small { font-weight: 500; font-size: 12px; color: var(--tg-muted); margin-left: 4px; }
.tg-ff input, .tg-ff textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--tg-navy); background: #fff;
  border: 2px solid var(--tg-navy); border-radius: 0; padding: 11px 12px; line-height: 1.5;
}
.tg-ff textarea { resize: vertical; min-height: 110px; }
.tg-ff input:focus, .tg-ff textarea:focus { outline: 3px solid var(--tg-blue); outline-offset: 1px; }
.tg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tg-form-sub { margin-top: 6px; }
.tg-form .form-msg { margin-top: 10px; font-size: 13.5px; }
.tg-form-note { margin-top: 12px; font-size: 12.5px; color: var(--tg-muted); }
.tg-form-note a { text-decoration: underline; }
.tg-form .form-done { display: none; }
.tg-form.sent > :not(.form-done) { display: none; }
.tg-form.sent .form-done { display: block; padding: 28px 4px; text-align: center; }
.tg-form .form-done b { display: block; font-size: 22px; font-weight: 900; color: var(--tg-pink); margin-bottom: 8px; }

/* ---------- フッター ---------- */
.tg-ftr { background: #04101f; color: var(--tg-muted-navy); padding: 44px 0 100px; font-size: 13.5px; }
.tg-ftr-row { display: flex; flex-direction: column; gap: 28px; }
.tg-ftr-co img { width: 120px; margin-bottom: 12px; }
.tg-ftr-co p { line-height: 1.8; }
.tg-ftr-co a { color: var(--tg-cream); }
.tg-ftr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; }
.tg-ftr-cols nav { display: flex; flex-direction: column; gap: 8px; }
.tg-ftr-h { font-weight: 900; font-size: 12px; letter-spacing: .2em; color: var(--tg-muted-navy); margin-bottom: 2px; }
.tg-ftr-cols a { color: var(--tg-cream); text-decoration: none; font-weight: 700; }
.tg-ftr-cols a:hover { text-decoration: underline; }
.tg-ftr-cols a[aria-current="page"] { color: var(--tg-pink); }
.tg-ftr-copy { max-width: 1200px; margin: 30px auto 0; padding: 18px var(--tg-gutter) 0; border-top: 1px solid rgba(245, 242, 234, .12); font-size: 12px; line-height: 1.8; }

/* ---------- スマホの下の固定ボタン ---------- */
.tg-float {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 54px;
  background: var(--tg-pink); color: #fff; font-weight: 900; font-size: 16px; text-decoration: none;
  border: 3px solid var(--tg-navy); box-shadow: 5px 5px 0 rgba(0, 0, 0, .35);
  transform: translateY(140%); transition: transform .25s ease;
}
.tg-float.is-on { transform: none; }

/* ---------- 出てくる動き（静かに・1回だけ） ---------- */
/* transform ではなく translate を使う（傾けてある絵の rotate を消さないため） */
.tg-rv { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .6s ease; }
.tg-rv.is-in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .tg-rv { opacity: 1; translate: none; transition: none; } .tg-float { transition: none; } }

/* 説明の文の改行は広い画面だけ（build.py が <br class="tg-pc"> にする） */
@media (max-width: 899px) { br.tg-pc { display: none; } }

/* いちばん狭いスマホ（〜399px）：ヘッダーを詰める */
@media (max-width: 399px) {
  .tg-brand { gap: 8px; }
  .tg-brand img { height: 28px; }
  .tg-brand-name { font-size: 15px; padding-left: 8px; }
  .tg-hdr-act { gap: 6px; }
  .tg-hdr-act .tg-btn-sm { padding: 6px 10px; font-size: 13px; }
  .tg-hb { width: 38px; height: 38px; }
}

/* ===================== 広い画面 ===================== */
@media (min-width: 600px) {
  :root { --tg-gutter: 32px; }
  .tg-cta-row { flex-direction: row; flex-wrap: wrap; }
  .tg-concern { flex-direction: row; align-items: center; gap: 18px; }
  .tg-concern .tg-tag { flex: 0 0 auto; min-width: 7.5em; text-align: center; }
  .tg-who-made li { padding: 14px 6px; }
  .tg-who-made span { font-size: 13px; }
  .tg-faq { grid-template-columns: 1fr 1fr; }
  .tg-steps { grid-template-columns: repeat(2, 1fr); }
  .tg-step-green { margin-top: 0; }
}

@media (min-width: 900px) {
  :root { --tg-hdr-h: 68px; }
  .tg-brand img { height: 40px; }
  .tg-brand-name { font-size: 19px; }
  .tg-sec { padding: 104px 0 112px; }
  .tg-hero { padding: 72px 0 104px; }
  .tg-hero-grid { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 44px; }
  .tg-hero-title { font-size: clamp(52px, 5vw, 72px); }
  .tg-hero-media { margin-top: 0; }
  .tg-head-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 34px; }
  .tg-head-split .tg-side { flex: 0 0 auto; text-align: left; }
  .tg-concerns { grid-template-columns: 1.55fr 1fr; gap: 36px; }
  .tg-concern { padding: 20px 24px; }
  .tg-why-grid { grid-template-columns: 1fr 1.15fr; gap: 32px; }
  .tg-panel { padding: 28px 30px 32px; }
  .tg-answer-grid { grid-template-columns: .9fr 1.3fr; gap: 32px; }
  .tg-box-foot { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .tg-qa > li { grid-template-columns: minmax(0, 30%) 40px minmax(0, 1fr); align-items: center; gap: 14px; }
  .tg-arrow { border-top: 12px solid transparent; border-bottom: 12px solid transparent; border-left: 18px solid var(--tg-pink); border-right: 0; margin: 0; }
  .tg-ans { padding: 16px 24px 18px; }
  .tg-proof-grid { grid-template-columns: .82fr 1.18fr; gap: 56px; align-items: center; }
  .tg-proof-board { max-width: none; }
  .tg-proof-row { grid-template-columns: 1.35fr .9fr; align-items: start; gap: 26px; }
  .tg-steps { grid-template-columns: repeat(7, 1fr); gap: 10px; padding-bottom: 26px; }
  .tg-steps::after { content: ""; position: absolute; left: 0; right: 8px; bottom: 0; height: 4px; background: var(--tg-navy); }
  .tg-steps::before { content: ""; position: absolute; right: 0; bottom: -8px; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 14px solid var(--tg-navy); }
  .tg-step { padding: 12px 12px 16px; min-height: 196px; }
  .tg-step::before { position: static; width: 28px; height: 28px; font-size: 13px; margin-bottom: 6px; }
  .tg-step b { font-size: 16px; }
  .tg-step > span { font-size: 13.5px; }
  .tg-step-flag { top: -18px; left: 8px; right: auto; }
  .tg-stage { padding: 80px 0 88px; }
  .tg-stage-grid { grid-template-columns: 1.65fr 1fr; align-items: center; gap: 44px; }
  .tg-price-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .tg-asof { align-self: auto; }
  .tg-plans { grid-template-columns: 1fr 1fr; gap: 32px; }
  .tg-terms > div { grid-template-columns: 8.6em 1fr; }
  .tg-effect { gap: 0; border: 3px solid var(--tg-navy); box-shadow: 8px 8px 0 var(--tg-navy); background: var(--tg-paper); }
  .tg-effect-row.tg-effect-headrow { display: grid; }
  .tg-effect-row { grid-template-columns: 1.05fr 1.3fr 1.3fr; border: 0; box-shadow: none; background: transparent; }
  .tg-effect-row > span { border-top: 1px solid rgba(7, 26, 51, .13); border-left: 1px solid rgba(7, 26, 51, .13); padding: 16px 20px; font-size: 16px; }
  .tg-effect-row > span[data-plan]::before { display: none; }
  .tg-effect-row > .tg-effect-rh { background: transparent; color: var(--tg-navy); border-left: 0; border-top: 1px solid rgba(7, 26, 51, .13); }
  .tg-effect-rh small { display: block; margin: 0; color: var(--tg-muted); opacity: 1; }
  .tg-effect-headrow > span { border-top: 0; padding: 10px 20px; font-weight: 900; font-size: 17px; }
  .tg-effect-corner { background: var(--tg-paper); border-left: 0 !important; }
  .tg-effect-h1 { background: var(--tg-navy); color: var(--tg-cream); }
  .tg-effect-h2 { background: var(--tg-pink); color: #fff; }
  .tg-effect-measure { outline: 3px solid var(--tg-blue); outline-offset: -3px; }
  .tg-effect-measure .tg-effect-rh { background: transparent; color: var(--tg-navy); }
  .tg-effect-rh i { display: inline-block; width: 14px; height: 14px; background: var(--tg-blue); margin-right: 8px; vertical-align: -1px; }
  .tg-who-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
  #who .tg-h2 { font-size: clamp(32px, 3.4vw, 46px); }
  #contact .tg-h2 { font-size: clamp(32px, 3.4vw, 48px); }
  .tg-answer-grid { align-items: start; }
  .tg-next-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .tg-next-person { display: block !important; width: 120px; margin: 30px 0 0 auto; opacity: .95; }
  .tg-form { padding: 28px 30px 30px; }
  .tg-ftr { padding-bottom: 40px; }
  .tg-ftr-row { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .tg-ftr-cols { grid-template-columns: repeat(3, auto); gap: 0 56px; }
  .tg-float { display: none; }
}

@media (min-width: 1200px) {
  .tg-step { min-height: 180px; }
}

@media (min-width: 1100px) {
  .tg-gnav { display: flex; }
  .tg-hdr-act { margin-left: 12px; }
  .tg-hb { display: none; }
  .tg-drawer { display: none !important; }
  .tg-toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 13.5px; font-weight: 700; }
  .tg-toc a { color: var(--tg-muted-navy); text-decoration: none; }
  .tg-toc a::before { content: "↓ "; color: var(--tg-pink); }
  .tg-toc a:hover { color: var(--tg-cream); }
}
