/* ==========================================================
   竹松工務店  共通スタイル
   ・各セクション（.sec）は、背景を background-image で敷き、手前の部品（写真・ロゴ・アイコン）・文字・ボタン類を上に重ねる
   ・PC版とSP版の切り替え：767px以下でSP版 ／ ヘッダーの切り替え：1024px以下
   ========================================================== */
:root {
  --red: #e60012;
  --dark: #231815;
  --green: #06c755;
  --header-h: 76px;
  /* カンプの書体はヒラギノ角ゴ。入っている端末（Mac・iPhone）ではそれを、無い端末では Noto Sans JP を使う */
  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-en: "Montserrat", var(--font-ja);
}

/* ヒラギノが無い端末で、英数字だけを端末の Arial 系で出す（Noto Sans JP の英数字より、ヒラギノの英数字に幅と太さが近い）。
   Arial も無い端末（Android など）では Noto Sans JP の英数字になる */
@font-face { font-family: "Latin Local"; font-weight: 100 500; src: local("Arial"), local("ArialMT"); unicode-range: U+0020-007E; }
@font-face { font-family: "Latin Local"; font-weight: 600 800; src: local("Arial Bold"), local("Arial-BoldMT"); unicode-range: U+0020-007E; }
@font-face { font-family: "Latin Local"; font-weight: 900; src: local("Arial Black"), local("Arial-Black"); unicode-range: U+0020-007E; }

/* 素材のフォント（Avenir Next / Calisto MT / 小塚ゴシック）は、Web用の利用許諾が無いのでサーバーには置かない。
   端末に入っていればそれを使い、無ければ下の .tx--a / --c / --k の代わりの書体で出す */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.is-menu-open { overflow: hidden; }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: #fff;
  color: var(--dark);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sp { display: none; }
.center { text-align: center; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 読み込み中画面 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: var(--red);
  transition: opacity .5s, visibility .5s;
}
.loader__logo { position: relative; width: 146px; aspect-ratio: 209.03 / 176.64; }
.loader__logo img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 六角形だけを一定のリズムで半回転させる（回転の中心＝六角形の中心） */
.loader__mark { transform-origin: 50% 30.19%; animation: loader-spin 1.1s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes loader-spin { 0% { transform: rotate(0); } 55%, 100% { transform: rotate(180deg); } }
.is-loaded .loader { opacity: 0; visibility: hidden; }
.is-loaded .loader__mark { animation: none; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; top: 0; left: 0; z-index: 100;
  display: flex; align-items: stretch;
  width: 100%; height: var(--header-h);
  background: #fff;
  transition: background .4s;
}
.header__logo { position: relative; display: flex; align-items: center; margin-right: auto; padding-left: 30px; }
.header__logo img { width: 210px; transition: opacity .4s; }
.header__logo-white { position: absolute; top: 50%; left: 30px; transform: translateY(-50%); opacity: 0; }
.header__nav { display: flex; }
.header__nav ul { display: flex; align-items: center; height: 100%; padding-right: 20px; }
.header__nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: var(--header-h); padding: 0 28px;
  line-height: 1.2; transition: color .2s;
}
.header__nav a:hover { color: var(--red); }
.header__nav .en { font-family: var(--font-en); font-size: 16px; font-weight: 700; }
.header__nav .ja { margin-top: 5px; font-size: 9px; font-weight: 900; }
.header__line, .header__contact {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 900; line-height: 1.25; text-align: center;
  transition: opacity .2s;
}
.header__line:hover, .header__contact:hover { opacity: .8; }
.header__line { width: 77px; background: var(--green); font-size: 9px; }
.header__line img { width: 40px; margin-bottom: 2px; }
.header__contact { width: 132px; background: var(--red); font-size: 15px; }
.header__toggle { display: none; }

/* ---------- スマホ用メニュー ----------
   ヘッダーの下に全画面で敷き、開くとヘッダーが透明になってロゴが白に変わる。
   開くとき：斜めの帯が上から流れて背景を埋め、中身がふわっと出る */
.spmenu {
  position: fixed; inset: 0; z-index: 90;
  overflow-y: auto;
  padding: var(--header-h) 0 40px;
  color: #fff;
  visibility: hidden; opacity: 0;
  transition: opacity .4s, visibility 0s .4s, background 0s .4s;
}
.is-menu-open .spmenu { visibility: visible; opacity: 1; background: #333; transition: opacity .2s, background 0s 1.2s; }
.spmenu__bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.spmenu__bg i {
  position: absolute; top: 0; width: 80vw; height: 0;
  background: #333;
  transform: skewX(45deg); transform-origin: 0 0;
}
.spmenu__bg i:nth-child(1) { left: -296vw; animation-delay: .2s; }
.spmenu__bg i:nth-child(2) { left: -216vw; animation-delay: .15s; }
.spmenu__bg i:nth-child(3) { left: -136.3vw; }
.spmenu__bg i:nth-child(4) { left: -56.6vw; animation-delay: .05s; }
.spmenu__bg i:nth-child(5) { left: 23vw; animation-delay: .1s; }
.is-menu-open .spmenu__bg i { animation-name: menu-bg; animation-duration: 1s; animation-timing-function: cubic-bezier(.43, .05, .17, 1); animation-fill-mode: forwards; }
@keyframes menu-bg { from { height: 0; } to { height: 100%; } }
.spmenu__body { position: relative; opacity: 0; transition: opacity .3s; }
.is-menu-open .spmenu__body { opacity: 1; transition: opacity 1s ease-out .15s; }
.spmenu__list { padding: 30px 0 14px 54px; }
.spmenu__list a {
  display: flex; align-items: baseline; gap: 8px;
  padding: 14px 0 14px 26px;
  background: url(../img/hex.svg) no-repeat left center / 16px auto;
}
.spmenu__list .en { font-family: var(--font-en); font-size: 18px; font-weight: 700; }
.spmenu__list .ja { font-size: 10px; font-weight: 700; }
.spmenu__btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 220px; height: 40px; margin: 0 auto;
  border-radius: 20px;
  font-size: 14px; font-weight: 900; letter-spacing: .1em;
}
.spmenu__btn--contact { background: var(--red); }
.spmenu__btn--line { background: var(--green); box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); font-size: 17px; letter-spacing: 0; }
.spmenu__btn--line small { font-size: 13px; }
.spmenu hr { width: 276px; margin: 28px auto 24px; border: 0; border-top: 1px solid #fff; }
.spmenu__company { margin-top: 50px; text-align: center; font-weight: 700; line-height: 1.4; }
.spmenu__company small { display: block; font-size: 9px; }
.spmenu__company a { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 900; }

/* ==========================================================
   セクションの背景と、上に重ねる要素
   位置・大きさは sections.php がカンプの座標から％で出力する
   （--p◯ = PC版、--s◯ = SP版）
   ========================================================== */
/* 背景の画像と縦横比（.sec--◯◯）は、sections.php がセクションごとに <style> で出す */
.sec { position: relative; max-width: 1920px; margin: 0 auto; container-type: inline-size; background: no-repeat center / 100% 100%; }
/* 背景は、画面に近づいてから読み込む（main.js が is-near を付ける。ページ先頭のセクションは最初から付いている） */
.js .sec:not(.is-near) { background-image: none; }
.sec picture, .sec picture img { display: block; width: 100%; height: auto; }
.sec + .sec { margin-top: -1px; }   /* 継ぎ目に白線が出ないよう1px重ねる */

/* 手前の部品（写真・ロゴ・アイコン）。1つずつの画像で、位置と幅は sections.php が％で出す */
.pt { position: absolute; display: block; max-width: none; height: auto; }
.pt[data-dev="sp"] { display: none; }
/* 部品の画像は、選択の対象にせず、ドラッグでも掴めないようにする（文字を選択・コピーしようとしたときに、
   画像が選択されたり動いたりするのを防ぐ）。右クリックでの「画像を保存」はできるままにしてある。
   マウスで操作する端末だけに指定する（iPhoneでは、この指定があると長押しのメニューが出なくなる） */
@media (hover: hover) {
  .pt, .sec picture img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
}

.ov { position: absolute; top: var(--py); left: var(--px); width: var(--pw); height: var(--ph); }
.ov--btn {
  display: flex; align-items: center; justify-content: center;
  border-radius: .42cqw;
  background: var(--red); color: #fff;
  font-size: calc(var(--pf) / 1440 * 100cqw); font-weight: 900; line-height: 1; letter-spacing: .04em; white-space: nowrap;
  transition: filter .2s, transform .2s;
}
.ov--btn:hover { filter: brightness(1.12); transform: translateY(1px); }
.ov--white { background: #fff; color: var(--red); }
.ov--white:hover { filter: brightness(.94); }
.ov--square { border-radius: 0; }
.ov--arrow { justify-content: space-between; padding: 0 1.4cqw 0 2.2cqw; }
.ov--arrow::after { content: ""; width: .55em; height: .55em; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); }
.ov--area { border-radius: .5cqw; transition: background .2s; }
.ov--area:hover { background: rgba(255, 255, 255, .22); }
.ov:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.ov--map { background: #c8c8c8; }   /* 地図が出るまでの間に見えるグレーの枠 */
.ov--map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ==========================================================
   カンプの文字（.tx）
   sections.php が text-data.php から1行ずつ出す。left / bottom でベースラインの左端を置き、
   大きさ（--s）はカンプ上のpt。セクションの幅に比例して拡大縮小する。
   --w はカンプ上の幅（文字の大きさ＝1）で、main.js が字間（--ls）を調整して幅を合わせる
   （端末によって書体が変わっても、行の長さがカンプと揃うように）
   ========================================================== */
.tx { position: absolute; margin: 0; font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Latin Local", "Noto Sans JP", Meiryo, sans-serif; font-size: 0; line-height: 0; white-space: pre; }
/* 選択したときの色。指定しないと、文字の中だけ色が変わってふち（太さを補う -webkit-text-stroke）や影は元の色のまま残り、
   袋文字のように見える。中・ふちとも白にそろえ、影は消す */
.tx ::selection { background: #1a73e8; color: #fff; -webkit-text-stroke-color: #fff; text-shadow: none; }
.tx--palt > span { font-feature-settings: "palt"; }
/* 太さ（ヒラギノの W4〜W9）。ヒラギノが無い端末（header.php の判定で .no-hira が付く）では、
   Noto Sans JP は同じ数字でも細く見えるので、1段階太い値にする */
.tx--w4 { font-weight: 400; } .tx--w5 { font-weight: 500; } .tx--w6 { font-weight: 600; }
.tx--w7 { font-weight: 700; } .tx--w8 { font-weight: 800; } .tx--w9 { font-weight: 900; }
.no-hira .tx--w6 { font-weight: 700; } .no-hira .tx--w7 { font-weight: 800; } .no-hira .tx--w8 { font-weight: 900; }
/* いちばん太い値でも足りない分は、文字のふちを同じ色で少し太らせて補う（カンプと並べて濃さを測って決めた値） */
.no-hira .tx--w7 > span { -webkit-text-stroke: .011em; }
.no-hira .tx--w8 > span { -webkit-text-stroke: .024em; }
.no-hira .tx--w9 > span { -webkit-text-stroke: .045em; }
/* 斜体（--k）と、英数字だけの行の幅合わせ（--sx。main.js が字間の代わりに横に伸縮する） */
.tx--tf > span { transform: scaleX(var(--sx, 1)) skewX(var(--k, 0deg)); transform-origin: 0 .85em; }
/* 高さ0の箱にして、親の下端＝文字のベースラインになるようにしている（書体が変わっても上下にずれない） */
.tx > span { display: inline-block; height: 0; font-size: calc(var(--s) / 1440 * 100cqw); line-height: 1; letter-spacing: calc(var(--ls, 0) * 1em);
  /* 箱の高さは0のまま、下に1行ぶんの余白を足して同じだけ引く。位置は変わらず、箱が文字の上に重なるので、
     スマホの長押しでも「文字を押した」と判定されて選択できる（高さ0の箱からはみ出した文字は、iPhoneでは押しても反応しない） */
  padding-bottom: 1em; margin-bottom: -1em; }
.tx[data-dev="sp"] { display: none; }
.tx--rot { transform: rotate(var(--r)); transform-origin: 0 100%; }
.tx--a { font-family: "Avenir Next", var(--font-en); }
.tx--c { font-family: "Calisto MT", "Times New Roman", Times, serif; font-variant-numeric: lining-nums; }   /* Georgia は数字が小文字ふうになるので使わない */
.tx--k { font-family: var(--font-ja); }
.tx--r { font-family: "Hiragino Mincho ProN", "Noto Serif JP", serif; }
/* カンプではこの明朝の文字に細いふち線を付けて少し太く見せている（線の太さは文字の大きさの約2.4%）。
   ふち線は背景画像には入れず（入れると文字と重なって二重に見える）、ここで文字に付ける */
.tx--r > span { -webkit-text-stroke: .024em; }

/* ==========================================================
   動きを付ける部品（.fx）
   カンプから切り分けた写真・帯・ぼかしと、その範囲にある文字。
   画面に入ると main.js が is-in を付ける。JSが動かない環境では最初から表示する（.js が付かないため）
   ========================================================== */
.ov.fx { pointer-events: none; }   /* 重ねてある画像と枠だけ。文字（.tx.fx）は選択・コピーできるよう対象にしない */
.ov.fx--reveal { pointer-events: auto; }   /* About の事務所写真は、写真そのものを保存できるように反応させる */

/* 1文字ずつ（--i = 何文字目か。sections.php が1文字ごとに振る） */
.fx--chars i { display: inline-block; font-style: normal; }
.js .fx--chars i { opacity: 0; }
.fx--chars.is-in i {
  animation: fx-char var(--dur, .6s) cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--delay, 0ms) + var(--i) * var(--step, 40ms));
}
@keyframes fx-char { from { opacity: 0; transform: translate(var(--fx, 0px), var(--fy, 10px)); } to { opacity: 1; transform: none; } }
.fx--hero    { --step: 130ms; --dur: .9s; --fy: 22px; }                       /* FV「家のこと、全部。」 */
.fx--title   { --step: 45ms; --fx: -14px; --fy: 0px; }                        /* セクション名 */
.fx--quality { --step: 16ms; --dur: .45s; --fy: 6px; --delay: calc((var(--n) - 1) * 90ms); }
.fx--reason  { --step: 45ms; --dur: .55s; --fy: 10px; --delay: calc(var(--n) * 220ms + 300ms); }   /* Reason の赤い見出し（数字のあとに出る） */

/* ポンと出る（Reason の数字 01〜03。--n = 何番目のブロックか） */
.fx--pop { --delay: calc(var(--n) * 220ms); }
.js .fx--pop { opacity: 0; transform: scale(.3); transform-origin: 50% 60%; }
.js .fx--pop.is-in { opacity: 1; transform: none; transition: opacity .3s ease var(--delay), transform .6s cubic-bezier(.34, 1.56, .64, 1) var(--delay); }

/* 文字の背面のぼかし */
.js .fx--glow { opacity: 0; }
.fx--glow.is-in { opacity: 1; transition: opacity .9s ease .2s; }
/* FVは main.js がぼかしを1文字ぶんずつに切り分け（.fx__slice）、文字と同じ動きをさせる */
.js .fx--glow.fx--hero.is-sliced { opacity: 1; transition: none; }
.fx--glow.is-sliced > picture { display: none; }
.fx__slice { position: absolute; inset: 0; }
.js .fx__slice { opacity: 0; }
.fx--glow.is-in .fx__slice {
  animation: fx-char var(--dur, .6s) cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(var(--delay, 0ms) + var(--i) * var(--step, 40ms));
}

/* FVの文字の影：影の画像はヒラギノの字形で作られているので、ヒラギノが無い端末では文字と形が合わない。
   その端末では影の画像を使わず、文字そのものに影を付ける（字形に必ず合い、文字と一緒に動く） */
.no-hira .ov.fx--glow.fx--hero, .no-hira .ov.fx--after-hero, .no-hira .ov.fx--shadow { display: none; }
.no-hira .tx.fx--hero > span, .no-hira .tx.fx--shadow > span { text-shadow: 0 0 .05em rgba(60, 30, 20, .55), 0 0 .12em rgba(60, 30, 20, .5), 0 0 .26em rgba(60, 30, 20, .4); }
.no-hira .tx.fx--after-hero > span, .no-hira .tx.fx--shadow-sub > span { text-shadow: 0 0 .12em rgba(60, 30, 20, .6), 0 0 .3em rgba(60, 30, 20, .55), 0 0 .6em rgba(60, 30, 20, .4); }
/* （.fx--shadow = ページ下部の「家のこと、全部。」。こちらは動かさない） */

/* ふわっと出る */
.js .fx--fade { opacity: 0; transform: translateY(14px); }
.js .fx--fade.is-in { opacity: 1; transform: none; transition: opacity .9s ease var(--delay, 0s), transform .9s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s); }
.fx--after-hero  { --delay: 1.3s; }
.fx--after-photo { --delay: .75s; }

/* 写真が左から現れ、赤い帯が横切る */
.fx--reveal { overflow: hidden; }
.js .fx--reveal img { clip-path: inset(0 100% 0 0); transition: clip-path .8s cubic-bezier(.43, .05, .17, 1); }
.js .fx--reveal.is-in img { clip-path: inset(0); }
.fx--reveal::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(114deg, rgba(230, 0, 18, 0), rgba(230, 0, 18, .8) 30%, rgba(230, 0, 18, .8) 80%, rgba(230, 0, 18, 0) 110%);
  opacity: .85;
  transform: translateX(-101%);
}
.fx--reveal.is-in::before { animation: fx-sweep 1.25s cubic-bezier(.43, .05, .17, 1) both; }
@keyframes fx-sweep { from { transform: translateX(-101%); } to { transform: translateX(101%); } }

/* 「視差効果を減らす」設定の端末では動かさない */
@media (prefers-reduced-motion: reduce) {
  .fx, .fx *, .fx::before, .loader, .loader__mark, .spmenu__bg i, .ct__hex { animation: none !important; transition: none !important; }
  .js .fx--chars i, .js .fx--glow, .js .fx--fade, .js .fx--pop, .js .fx__slice { opacity: 1; transform: none; }
  .js .fx--reveal img { clip-path: none; }
  .is-menu-open .spmenu { transition: none; }
}

/* ==========================================================
   HTMLで組んでいる部分の共通部品（施工事例・お問い合わせ）
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 245px; padding: 9px 24px;
  border-radius: 6px;
  background: var(--red); color: #fff;
  box-shadow: 0 3px 0 #a8000d;
  font-size: 13px; font-weight: 900; line-height: 1.3; letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 #a8000d; }

/* ビフォーアフター */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba figure { position: relative; margin: 0; }
.ba img { display: block; width: 100%; aspect-ratio: 160 / 147; object-fit: cover; }
.ba figcaption {
  position: absolute; right: -4px; bottom: 4px;
  padding: 0 12px; background: #595757; color: #fff;
  font-family: var(--font-en); font-size: 23px; font-weight: 800; line-height: 1.4;
}
.ba__after figcaption { background: var(--red); }

/* ---------- 施工事例 ---------- */
.wk { padding: 52px 20px 20px; }
.wk__cats { display: grid; grid-template-columns: repeat(4, 153px); justify-content: center; gap: 14px 12px; }
.wk__cats a { display: flex; align-items: center; justify-content: center; height: 36px; border: 1px solid #595757; font-size: 14px; font-weight: 900; transition: background .2s, color .2s; }
.wk__cats a:hover, .wk__cats a.is-current { border-color: var(--red); background: var(--red); color: #fff; }
.wk__list { display: grid; grid-template-columns: repeat(3, minmax(0, 357px)); justify-content: center; gap: 24px; margin-top: 40px; }
.wk__list li { padding: 12px 12px 10px; border: 1px solid #b5b5b6; }
.wk__list h2 { margin: 10px 0 4px 4px; padding-left: 28px; background: url(../img/hex.svg) no-repeat left center / 20px auto; font-size: 17px; font-weight: 900; line-height: 1.5; }
.wk__list dl { display: flex; align-items: center; gap: 0 10px; margin: 0 0 0 4px; font-size: 13px; font-weight: 900; }
.wk__list dt { min-width: 56px; padding: 0 6px; border: 1px solid #595757; font-size: 11px; line-height: 1.4; text-align: center; }
.wk__list dd { margin: 0 14px 0 0; white-space: nowrap; }
.wk__empty { margin: 60px 0; text-align: center; font-weight: 700; }
.wk__pager { display: flex; justify-content: center; gap: 26px; margin: 44px 0 48px; }
.wk__pager a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #595757; font-size: 18px; line-height: 1; }
.wk__pager a:hover, .wk__pager a.is-current { background: #e2e2e2; }
.wk__list + .wk__back { margin-top: 48px; }   /* ページ送りが出ないとき（絞り込みで6件以下）も間をあける */

/* ---------- お問い合わせ（フォーム） ---------- */
.ct { position: relative; z-index: 0; padding: 34px 20px 30px; overflow: hidden; }
/* まわりの六角形。個人／法人を切り替えるたびに main.js が --spin を増やしてクルッと回す */
.ct__hex {
  position: absolute; z-index: -1;
  transform: rotate(var(--spin, 0deg));
  transition: transform .8s cubic-bezier(.34, 1.45, .64, 1);
}
.ct__hex--1 { left: -40px; top: 10px; width: 236px; }
.ct__hex--2 { left: -100px; top: 180px; width: 180px; transform: rotate(calc(var(--spin, 0deg) * -1)); }
/* 右側も上からの位置で固定（法人で項目が増えても動かないように。個人のときの見た目に合わせた値） */
.ct__hex--3 { right: 0; top: 310px; width: 150px; opacity: .8; transform: rotate(calc(var(--spin, 0deg) * -1)); }
.ct__hex--4 { right: -110px; top: 400px; width: 230px; opacity: .8; }
.ct__form { max-width: 648px; margin: 0 auto; scroll-margin-top: calc(var(--header-h) + 20px); }
.ct__title { width: fit-content; margin: 0 auto 36px; padding-bottom: 8px; border-bottom: 5px solid var(--red); border-radius: 0 0 3px 3px; font-size: 25px; font-weight: 900; line-height: 1.3; }
.ct__type { display: flex; justify-content: center; gap: 44px; margin-bottom: 40px; font-size: 13px; font-weight: 900; }
.ct__type label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ct__type input { appearance: none; width: 19px; height: 19px; margin: 0; border: 1.5px solid var(--red); border-radius: 50%; background: #fff; cursor: pointer; }
.ct__type input:checked { background: var(--red); box-shadow: inset 0 0 0 2px #fff; }   /* 赤い丸を輪の真ん中に */
.ct__field { margin-bottom: 30px; }
.ct__field label { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2px; padding: 0 4px; font-size: 11px; font-weight: 900; }
.ct__field label em { color: var(--red); font-size: 9px; font-style: normal; }
.ct__field input, .ct__field textarea {
  display: block; width: 100%; padding: 4px 10px;
  border: 1px solid var(--red); border-radius: 5px; background: #fff;
  color: inherit; font: inherit; font-size: 16px; line-height: 1.4;
}
.ct__field textarea { min-height: 92px; resize: vertical; }
.ct__field input:focus, .ct__field textarea:focus, .ct__type input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.ct__field--corp { display: none; }
form[data-type="corporate"] .ct__field--corp { display: block; }
.ct__error { display: block; margin-top: 4px; color: var(--red); font-size: 12px; font-weight: 700; }
.ct__error--top { margin: 0 0 24px; padding: 10px 14px; border: 1px solid var(--red); border-radius: 5px; background: #fdeeee; font-size: 14px; text-align: center; }
.ct__hp { position: absolute; left: -9999px; }
.ct__submit { min-width: 168px; margin-top: 12px; padding: 3px 20px; background: var(--red); color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .06em; transition: opacity .2s; }
.ct__submit:hover { opacity: .8; }
.ct__done { padding: 30px 0; text-align: center; line-height: 2; }
.ct__done strong { font-size: 20px; font-weight: 900; }
.ct__done .btn { margin-top: 30px; }
.ct__note { color: #777; font-size: 12px; }

/* ==========================================================
   ヘッダーの切り替え（1024px以下）
   ========================================================== */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .pc { display: none; }
  .sp { display: inline; }
  .header { align-items: center; padding: 0 14px 0 12px; }
  .header__logo { padding-left: 0; }
  .header__logo img { width: 175px; }
  .header__logo-white { left: 0; }
  .header__nav, .header__line { display: none; }
  .header__contact { width: auto; height: 26px; padding: 0 16px; font-size: 12px; letter-spacing: .08em; }
  /* 三本線は位置と幅を直接指定して置く（ボタンを flex にして並べる方法だと、iPhone で線が出ない端末があった。この置き方はブラウザごとの差が出ない） */
  .header__toggle { position: relative; display: block; flex: none; width: 24px; height: 20px; margin-left: 14px; -webkit-appearance: none; appearance: none; }
  .header__toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--dark); transition: transform .4s ease-out, opacity .4s ease-out, background .4s; }
  .header__toggle span:nth-child(1) { top: 0; }
  .header__toggle span:nth-child(2) { top: 9px; }
  .header__toggle span:nth-child(3) { top: 18px; }

  /* メニューを開いている間：ヘッダーを透明に、ロゴを白に、三本線を×に */
  .is-menu-open .header { background: transparent; }
  .is-menu-open .header__logo img { opacity: 0; }
  .is-menu-open .header__logo .header__logo-white { opacity: 1; }
  .is-menu-open .header__contact { opacity: 0; pointer-events: none; }
  .is-menu-open .header__toggle span { background: #fff; }
  .is-menu-open .header__toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .is-menu-open .header__toggle span:nth-child(2) { opacity: 0; }
  .is-menu-open .header__toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* ==========================================================
   SP（767px以下）
   ========================================================== */
@media (max-width: 767px) {
  .ov { top: var(--sy); left: var(--sx); width: var(--sw); height: var(--sh); }
  .ov--btn { border-radius: 1.4cqw; font-size: calc(var(--sf) / 390 * 100cqw); }
  .ov--square { border-radius: 0; }
  .ov--arrow { padding: 0 5cqw 0 7cqw; }
  .ov--area { border-radius: 2cqw; }
  .tx[data-dev="pc"], .pt[data-dev="pc"] { display: none; }
  .tx[data-dev="sp"], .pt[data-dev="sp"] { display: block; }
  .tx > span { font-size: calc(var(--s) / 390 * 100cqw); }
  .fx--quality { --delay: 0ms; }
  .fx--reason { --delay: 300ms; }   /* SPはブロックが縦に並ぶので、ブロックごとに画面に入った時点で動かす */
  .fx--pop { --delay: 0ms; }

  .ba figcaption { font-size: 19px; }
  .wk { padding: 26px 20px 10px; }
  .wk__cats { grid-template-columns: repeat(3, 1fr); gap: 7px 11px; max-width: 440px; margin: 0 auto; }
  .wk__cats a { height: 26px; font-size: 10px; }
  .wk__list { grid-template-columns: minmax(0, 420px); gap: 16px; margin-top: 28px; }
  .wk__pager { gap: 18px; margin: 32px 0 36px; }
  .wk__list + .wk__back { margin-top: 36px; }
  .btn { min-width: 193px; padding: 6px 20px; font-size: 12px; }

  .ct { padding: 20px 24px 20px; }
  .ct__hex--1 { left: -150px; opacity: .6; }
  .ct__hex--2 { left: -210px; opacity: .6; }
  .ct__hex--3 { right: -80px; top: 280px; opacity: .4; }
  .ct__hex--4 { right: -190px; top: 371px; opacity: .4; }
  .ct__title { font-size: 21px; }
  .ct__type { gap: 24px; }
}
