/*
Theme Name: Chiho And
Theme URI: https://ichigu.jp/
Author: イチグウ株式会社
Description: 地方企業向け採用代行サービス「地方アンド」のLP・求人票かんたん診断・コラム用テーマ。
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: chiho-and
*/
/* Layout: 白基調の1カラム（toB）。明朝の見出しと控えめな角丸で、採用に詳しくない人にもわかりやすく。青を主色、山吹を印に使う */
:root {
  --paper: #FFFFFF;
  --surface: #F5F8FA;
  --ink: #172126;
  --sub: #3E4A51;
  --line: #E1E7EB;
  --ai: #2A6A90;
  --ai-deep: #1F5677;
  --ai-tint: #E6F1F6;
  --on-ai: #FFFFFF;
  --kihada: #E2A62A;
  --kihada-tint: #FCF0CF;
  --r: 12px;
  --ph-a: #E8EEF2;
  --ph-b: #DCE4EA;
  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --f-num: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
/* LPはライトテーマ固定（閲覧環境のダークモードに左右されないよう、意図的に単一配色） */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.95; letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ai); }
:focus-visible { outline: 3px solid var(--kihada); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.45; margin: 0; text-wrap: balance; word-break: auto-phrase; letter-spacing: .03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.logo-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ai); color: var(--on-ai); display: grid; place-items: center; font-size: 1.1rem; }
.logo-text { display: grid; line-height: 1.2; }
.logo small { display: block; margin-top: 3px; font-family: var(--f-body); font-weight: 500; font-size: .66rem; line-height: 1; color: var(--sub); letter-spacing: .08em; }
.nav { display: flex; gap: 20px; margin-left: auto; font-size: .9rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--ai); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ai); color: var(--on-ai); font: 700 1rem var(--f-body); letter-spacing: .06em; text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--ai-deep); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }
@media (max-width: 860px) { .nav { display: none; } .site-header .btn-sm { margin-left: auto; } }

/* sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--surface); }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .16em; color: var(--ai); margin-bottom: 14px; }
.section-head { display: grid; gap: 18px; max-width: 46em; margin-bottom: clamp(36px, 5vw, 56px); }
.lead { color: var(--sub); }
.note { font-size: .8rem; color: var(--sub); line-height: 1.7; }

/* photo placeholders (AI生成写真の差し替え枠) */
.photo {
  position: relative; margin: 0; max-width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--ph-a) 0 14px, var(--ph-b) 14px 15px);
  display: grid; place-items: end start;
}
.photo.has-img { background: var(--ph-a); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.photo figcaption { margin: 14px; padding: 8px 12px; background: var(--surface); color: var(--sub); font-size: .76rem; line-height: 1.6; border-radius: 10px; max-width: 85%; }
.photo figcaption b { display: block; color: var(--ink); font-size: .7rem; letter-spacing: .12em; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 2.6vw, 3.1rem); line-height: 1.3; }
.hero h1 em { font-style: normal; background: linear-gradient(var(--kihada-tint), var(--kihada-tint)) no-repeat 0 92% / 100% 36%; }
.hero-sub { font-size: 1.05rem; color: var(--sub); max-width: 30em; }
.hero-sub .num { color: var(--ink); font-weight: 600; font-size: 1.2em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.badges li { font-size: .8rem; font-weight: 500; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hero-cta span { font-size: .82rem; color: var(--sub); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }


/* hero visual: 写真＋事例カード */
.hero-visual { position: relative; min-width: 0; padding: 26px 12px 52px 28px; }
.hero .hero-visual { margin-right: calc(var(--gutter) * -0.5); }
.hero-visual::before { content: ""; position: absolute; top: 0; right: 0; width: 72%; height: 78%; border-radius: calc(var(--r) * 2); background: var(--ai-tint); }
.hero-visual::after { content: ""; position: absolute; left: 0; top: 0; width: 112px; height: 112px; background-image: radial-gradient(var(--kihada) 2px, transparent 2.5px); background-size: 16px 16px; opacity: .7; }
.hero-visual .photo { z-index: 1; box-shadow: 0 24px 48px color-mix(in srgb, var(--ink) 14%, transparent); }
.hero-photo { aspect-ratio: 3 / 2; }
.hero-photo img { transform-origin: 45% 40%; object-position: 50% 30%; }
.hero-ridge { position: absolute; left: 28px; right: 12px; bottom: 8px; width: calc(100% - 40px); height: 36px; overflow: visible; }
.hero-ridge path { fill: none; stroke: var(--kihada); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes draw { from { stroke-dashoffset: 1; } }
.js .hero .hero-ridge path { animation: draw 2.4s cubic-bezier(.6,0,.2,1) .8s both; }
@keyframes zoom-out { from { transform: scale(1.1); } }
.js .hero .hero-photo img { animation: zoom-out 9s cubic-bezier(.2,.7,.2,1) both; }
@media (max-width: 560px) {
  .hero-visual { padding: 22px 10px 40px 18px; }
  .hero-ridge { left: 18px; width: calc(100% - 28px); height: 26px; bottom: 6px; }
  .hero-visual::after { width: 80px; height: 80px; }
}
/* 左右反転版（地方アンドとは）とスクロール時の動き */
.hero-visual.flip { padding: 26px 28px 52px 12px; }
.hero-visual.flip::before { right: auto; left: 0; }
.hero-visual.flip::after { left: auto; right: 0; }
.hero-visual.flip .hero-ridge { left: 12px; right: 28px; }
.hero-visual .photo img { transform-origin: 50% 45%; }
.js .hero-visual.rv .photo img { transform: scale(1.1); transition: transform 2.6s cubic-bezier(.2,.7,.2,1) .2s; }
.js .hero-visual.rv.in .photo img { transform: none; }
.js .hero-visual.rv .hero-ridge path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.6,0,.2,1) .7s; }
.js .hero-visual.rv.in .hero-ridge path { stroke-dashoffset: 0; }
@media (max-width: 560px) { .hero-visual.flip { padding: 22px 18px 40px 10px; } .hero-visual.flip .hero-ridge { left: 10px; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero-photo img { animation: none; } .js .hero-ridge path { animation: none; }
  .js .hero-visual.rv .photo img { transform: none; transition: none; } .js .hero-visual.rv .hero-ridge path { stroke-dashoffset: 0; transition: none; }
}

/* worries */
.worries { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; padding: 0; margin: 0; list-style: none; }
.worries li { padding: 18px 22px; background: var(--surface); border-radius: var(--r); display: flex; gap: 12px; align-items: baseline; font-weight: 500; }
.worries li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--kihada); transform: translateY(-1px); }
.closing { margin-top: 36px; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about > div { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* why */
.why { --why-fg: var(--ink); --why-sub: var(--sub); --why-line: var(--line); --why-bar: var(--kihada); background: var(--ai-tint); color: var(--why-fg); }
.why .eyebrow { color: var(--ai); }
.why-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(36px, 6vw, 80px); }
.why-grid > * { min-width: 0; }
.why h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.8rem); }
.why-side { display: grid; gap: 20px; align-content: start; }
.why-lead { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.7; }
.why-issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.why-issues li { background: var(--paper); border-radius: var(--r); padding: 16px 22px; display: flex; gap: 12px; align-items: baseline; }
.why-issues li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--kihada); transform: translateY(-1px); }
.why-main p { max-width: 36em; }
.why-main { display: grid; gap: 20px; align-content: start; }
.wage { margin-top: 12px; display: grid; gap: 10px; }
.wage-title { font-size: .82rem; font-weight: 700; color: var(--why-sub); letter-spacing: .06em; }
.wage-row { display: grid; grid-template-columns: 3.4em 1fr; gap: 12px; align-items: center; font-size: .85rem; }
.wage-bar { width: var(--w); height: 28px; background: var(--kihada-tint); border-radius: 999px; display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; color: var(--ink); font-weight: 600; min-width: 0; }
.wage-row:last-of-type .wage-bar { background: var(--kihada); color: #2A2108; }
.wage .note { color: var(--why-sub); }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* compare */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: .92rem; }
th, td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
thead th { font-size: .85rem; color: var(--sub); font-weight: 700; }
tbody th { font-weight: 700; white-space: nowrap; color: var(--sub); font-size: .85rem; }
.col-us { background: var(--ai-tint); }
thead .col-us { color: var(--ai); font-family: var(--f-display); font-size: 1.05rem; }
.compare-note { margin-top: 16px; display: grid; gap: 4px; }

/* reasons */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.reason { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; }
.reason .k { font-family: var(--f-num); font-size: .8rem; color: var(--kihada); font-weight: 600; letter-spacing: .1em; }
.reason p { color: var(--sub); font-size: .95rem; }

/* service */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.service-list li { display: grid; grid-template-columns: 15em 1fr auto; gap: 20px; padding: 22px 26px; background: var(--surface); border-radius: var(--r); align-items: baseline; }
.service-list h3 { font-size: 1.1rem; }
.service-list p { color: var(--sub); }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--ai-tint); color: var(--ai); white-space: nowrap; }
.tag.opt { background: var(--kihada-tint); color: var(--ink); }
@media (max-width: 720px) { .service-list li { grid-template-columns: 1fr; gap: 6px; } .service-list .tag { justify-self: start; } }

/* chat */
.chat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.chat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 14px; align-content: start; }
.chat-topic { font-size: .78rem; font-weight: 700; color: var(--ai); }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.7; }
.msg.them { background: var(--surface); border: 1px solid var(--line); border-top-left-radius: 3px; }
.msg.me { background: var(--ai); color: var(--on-ai); justify-self: end; border-top-right-radius: 3px; }
.msg small { display: block; font-size: .68rem; opacity: .7; }

/* recruit site */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > div { display: grid; gap: 20px; min-width: 0; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 1.6em; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .7em; width: .7em; height: .7em; border-radius: 50%; background: var(--kihada); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* price */
.pay { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin-bottom: 48px; }
.pay > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.pay .lbl { font-weight: 700; }
.pay .sub { font-size: .85rem; color: var(--sub); line-height: 1.6; }
.pay .amt { font-family: var(--f-num); font-size: 1.9rem; font-weight: 600; line-height: 1.3; margin-top: 6px; }
.pay .amt small { font-family: var(--f-body); font-size: .8rem; font-weight: 500; color: var(--sub); margin-left: 2px; }
.pay .total { background: var(--ai); border-color: var(--ai); color: var(--on-ai); }
.pay .total .sub, .pay .total .amt small { color: var(--on-ai); opacity: .85; }
.pay .op { background: none; border: 0; padding: 0; display: grid; place-items: center; align-content: center; font-family: var(--f-num); font-size: 1.6rem; color: var(--sub); }
@media (max-width: 760px) { .pay { grid-template-columns: 1fr; } .pay .op { padding: 0; line-height: 1; } }
.subhead { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; align-content: start; }
.plan.featured { border: 2px solid var(--ai); }
.plan-name { display: flex; align-items: center; gap: 10px; }
.price { font-family: var(--f-num); font-size: 2.6rem; font-weight: 600; line-height: 1.1; }
.price small { font-family: var(--f-body); font-size: .9rem; font-weight: 500; color: var(--sub); margin-left: 4px; }
.plan-desc { font-size: .95rem; }
.plan-for { font-size: .85rem; color: var(--sub); border-top: 1px solid var(--line); padding-top: 12px; }
.plan-table { margin-top: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.plan-table table { min-width: 520px; }
.plan-table th, .plan-table td { padding: 14px 18px; }
.plan-table td { text-align: center; white-space: nowrap; }
.plan-table thead th:not(:first-child) { text-align: center; }
.plan-table tbody tr:last-child > * { border-bottom: 0; }
.mark-yes { color: var(--ai); font-weight: 700; }
.mark-pick { font-size: .82rem; font-weight: 700; color: var(--ink); background: var(--kihada-tint); padding: 2px 10px; border-radius: 999px; }
.mark-no { color: var(--sub); }
.frame { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.frame > div { min-width: 0; }
.frame-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; align-content: start; }
.frame-box b { font-size: 1rem; }
.frame-box p { font-size: .9rem; color: var(--sub); }
.frame-rules { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; grid-column: 1 / -1; }
.frame-rules li { padding-left: 1.4em; position: relative; font-size: .95rem; }
.frame-rules li::before { content: ""; position: absolute; left: 0; top: .7em; width: .6em; height: .6em; border-radius: 50%; background: var(--kihada); }
@media (max-width: 760px) { .frame { grid-template-columns: 1fr; } }
.terms { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .9rem; }
.terms span::before { content: "・"; color: var(--kihada); }

/* recruit-site mock */
.site-mock { max-width: 100%; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 8%, transparent); font-size: .85rem; line-height: 1.6; }
.sm-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sm-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.sm-bar span { margin-left: 10px; font-family: var(--f-num); font-size: .72rem; color: var(--sub); background: var(--paper); border-radius: 999px; padding: 2px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sm-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); font-weight: 700; gap: 10px; }
.sm-head small { font-weight: 500; color: var(--sub); font-size: .72rem; }
.sm-hero { padding: 26px 18px; background: var(--ai-tint); display: grid; gap: 6px; }
.sm-hero b { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.4; }
.sm-hero span { color: var(--sub); font-size: .78rem; }
.sm-body { padding: 16px 18px 20px; display: grid; gap: 14px; }
.sm-label { font-size: .7rem; font-weight: 700; color: var(--ai); letter-spacing: .1em; }
.sm-voice { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 10px; padding: 12px; }
.sm-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--kihada-tint); border: 2px solid var(--kihada); }
.sm-voice p { min-width: 0; }
.sm-voice small { display: block; color: var(--sub); font-size: .7rem; }
.sm-jobs { display: grid; gap: 8px; }
.sm-job { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sm-job span { min-width: 0; }
.sm-job small { display: block; color: var(--sub); font-size: .7rem; }
.sm-job em { flex: none; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--on-ai); background: var(--ai); padding: 4px 10px; border-radius: 999px; }

/* cases */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.case { background: var(--surface); border-radius: var(--r); padding: 24px; border-top: 6px solid var(--ai); display: grid; gap: 10px; align-content: start; }
.case .who { font-size: .82rem; color: var(--sub); font-weight: 700; }
.case dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .9rem; }
.case dt { color: var(--sub); }
.case dd { margin: 0; text-align: right; }
.case .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.case .total b { font-family: var(--f-num); font-size: 1.6rem; font-weight: 600; }

/* team */
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.roles li { display: grid; gap: 4px; padding-left: 18px; border-left: 2px solid var(--line); }
.roles b { font-family: var(--f-display); }
.roles span { color: var(--sub); font-size: .92rem; }

/* team: 体制図 */
.org { margin: 0; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); display: grid; justify-items: center; box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 6%, transparent); }
.org-node { width: 100%; max-width: 24em; display: grid; gap: 2px; padding: 14px 16px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.org-node b { font-family: var(--f-display); font-size: 1.05rem; }
.org-node span { font-size: .8rem; line-height: 1.6; color: var(--sub); }
.org-node.client { background: var(--kihada-tint); border-color: transparent; }
.org-node.dir { background: var(--ai); border-color: var(--ai); color: var(--on-ai); }
.org-node.dir span { color: var(--on-ai); opacity: .9; }
.org-link { position: relative; display: grid; place-items: center; height: 56px; }
.org-link::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--ai); }
.org-link span { position: relative; padding: 2px 10px; background: var(--paper); border: 1px solid var(--ai); border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--ai); }
.org-split { position: relative; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 30px; }
.org-split::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 16px; margin-left: -1px; background: var(--ai); }
.org-split::after { content: ""; position: absolute; top: 14px; left: calc(25% - 3px); right: calc(25% - 3px); height: 2px; background: var(--ai); }
.org-split .org-node { position: relative; }
.org-split .org-node::before { content: ""; position: absolute; top: -16px; left: 50%; width: 2px; height: 16px; margin-left: -1px; background: var(--ai); }
.org-check { width: 100%; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; gap: 10px; }
.org-check p { font-size: .78rem; font-weight: 700; color: var(--sub); letter-spacing: .06em; text-align: center; }
.org-check ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; counter-reset: chk; }
.org-check ol::before { content: ""; position: absolute; top: 13px; left: 12.5%; right: 12.5%; height: 2px; background: var(--ai); }
.org-check li { counter-increment: chk; position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; font-size: .74rem; font-weight: 700; line-height: 1.5; }
.org-check li::before { content: counter(chk); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ai); color: var(--ai); font-family: var(--f-num); font-size: .8rem; font-weight: 600; }
.org-check li:last-child::before { background: var(--ai); color: var(--on-ai); }

/* flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: step; }
.flow li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.flow li::before { content: "STEP " counter(step); font-family: var(--f-num); font-size: .75rem; font-weight: 600; color: var(--ai); letter-spacing: .1em; }
.flow b { font-size: 1rem; }
.flow span { font-size: .85rem; color: var(--sub); line-height: 1.7; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 52em; }
.faq details { background: var(--surface); border-radius: var(--r); padding-inline: 24px; }
.alt .service-list li, .alt .case, .alt .flow li { background: var(--paper); }
.faq-cat { font-size: .85rem; font-weight: 700; color: var(--ai); letter-spacing: .08em; margin-top: 18px; }
.faq-cat:first-child { margin-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-family: var(--f-num); font-size: 1.5rem; color: var(--ai); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--sub); }

/* column */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px; }
.post { display: grid; gap: 10px; align-content: start; text-decoration: none; color: var(--ink); }
.post .photo { aspect-ratio: 16 / 10; }
.post time { font-family: var(--f-num); font-size: .8rem; color: var(--sub); }
.post h3 { font-size: 1.05rem; }
.more { margin-top: 28px; }

/* company */
.company { display: grid; grid-template-columns: 9em 1fr; max-width: 52em; margin: 0; }
.company dt, .company dd { padding-block: 14px; border-bottom: 1px solid var(--line); margin: 0; }
.company dt { color: var(--sub); font-size: .9rem; }

/* results (支援事例) */
.results { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1080px) { .results { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.result { border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 30px); display: grid; gap: 14px; align-content: start; background: var(--paper); }
.result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.result-top > div { display: grid; gap: 4px; min-width: 0; }
.result .where { font-size: .8rem; font-weight: 700; color: var(--ai); }
.result h3 { font-size: 1.1rem; }
.result .big { flex: none; text-align: right; display: grid; line-height: 1.2; }
.result .big small { font-size: .75rem; color: var(--sub); font-weight: 700; }
.result .big b { font-family: var(--f-num); font-size: 2.6rem; font-weight: 600; color: var(--ai); }
.result .big b span { font-family: var(--f-body); font-size: 1rem; margin-left: 2px; }
.result .big.text b { font-family: var(--f-display); font-size: 1.15rem; font-weight: 800; }
.result dl { margin: 0; display: grid; gap: 10px; }
.result dl > div { display: grid; grid-template-columns: 4.2em 1fr; gap: 12px; font-size: .93rem; line-height: 1.75; }
.result dt { font-size: .75rem; font-weight: 700; color: var(--sub); padding-top: 3px; }
.result dd { margin: 0; min-width: 0; }

/* diagnosis */
.diag { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.diag > div { min-width: 0; display: grid; gap: 22px; align-content: start; }
.report { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px color-mix(in srgb, var(--ink) 8%, transparent); padding: clamp(20px, 3vw, 30px); display: grid; gap: 18px; font-size: .9rem; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.report-head > div { display: grid; gap: 2px; min-width: 0; }
.report-head b { font-family: var(--f-display); font-size: 1.15rem; }
.report-head span { font-size: .8rem; color: var(--sub); }
.stamp { flex: none; font-size: .7rem; font-weight: 700; color: var(--kihada); border: 1.5px solid var(--kihada); border-radius: 4px; padding: 2px 8px; }
.overall { display: flex; align-items: center; gap: 14px; }
.overall .grade { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--kihada); display: grid; place-items: center; font-family: var(--f-num); font-size: 1.6rem; font-weight: 600; }
.overall p { min-width: 0; line-height: 1.6; }
.overall small { display: block; color: var(--sub); font-size: .75rem; }
.scores { display: grid; gap: 9px; }
.score { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.score span { min-width: 0; }
.score em { font-style: normal; font-family: var(--f-num); font-weight: 600; font-size: .85rem; }
.meter { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ai); border-radius: 999px; }
.meter.low i { background: var(--kihada); }
.advice { display: grid; gap: 6px; background: var(--surface); border-radius: 10px; padding: 14px 16px; }
.advice b { font-size: .8rem; color: var(--ai); }
.advice ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
@media (max-width: 860px) { .diag { grid-template-columns: 1fr; } }


/* CTA band */
.cta-band { background: var(--ai); color: var(--on-ai); padding-block: clamp(40px, 6vw, 64px); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem); line-height: 1.5; text-wrap: balance; }
.cta-band p small { display: block; font-family: var(--f-body); font-weight: 500; font-size: .9rem; opacity: .9; margin-top: 4px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-light { background: var(--paper); color: var(--ai); }
.btn-light:hover { background: var(--surface); }
.btn-line { background: transparent; color: var(--on-ai); box-shadow: inset 0 0 0 1.5px var(--on-ai); }
.btn-line:hover { background: color-mix(in srgb, var(--on-ai) 12%, transparent); }
.btn-ghost { background: transparent; color: var(--ai); box-shadow: inset 0 0 0 1.5px var(--ai); }
.btn-ghost:hover { background: var(--ai-tint); }


/* contact */
.contact { background: var(--ai-tint); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; max-width: 52em; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; }
.req { font-size: .7rem; color: var(--on-ai); background: var(--ai); padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.opt-l { font-size: .7rem; color: var(--sub); margin-left: 6px; }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.form-foot { grid-column: 1 / -1; display: grid; gap: 14px; justify-items: start; }
.sent { padding: 14px 18px; background: var(--surface); border-radius: 12px; font-size: .92rem; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } .company { grid-template-columns: 1fr; } .company dt { border-bottom: 0; padding-bottom: 0; } }

footer { padding-block: 40px calc(96px + env(safe-area-inset-bottom, 0px)); font-size: .8rem; color: var(--sub); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--sub); }

/* mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent); border-top: 1px solid var(--line);
  }
  .sticky-cta .btn { width: 100%; }
}

/* ===== 改行・動き・レスポンシブ ===== */
body { line-break: strict; }
.nw { display: inline-block; }
section[id] { scroll-margin-top: 76px; }

/* header: 読了バー・現在地・メニュー */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--ai); transform-origin: 0 50%; transform: scaleX(0); }
.nav a { padding-block: 4px; transition: color .2s, box-shadow .2s; }
.nav a[aria-current="true"] { color: var(--ai); box-shadow: inset 0 -2px 0 var(--ai); }
.menu-btn { display: none; width: 42px; height: 42px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; padding: 0; place-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.site-header.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 860px) {
  .site-header .wrap { gap: 12px; }
  .menu-btn { display: grid; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 4px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px color-mix(in srgb, var(--ink) 8%, transparent); font-size: 1rem; }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="true"] { box-shadow: none; }
}
@media (max-width: 480px) { .site-header .btn-sm { display: none; } .menu-btn { margin-left: auto; } }

/* ボタン・カードの手ざわり */
.btn { transition: background .2s, transform .2s, box-shadow .2s; }
.reason, .result, .case, .post, .plan { transition: translate .25s ease, box-shadow .25s ease; }
.post .photo { transition: transform .4s ease; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px color-mix(in srgb, var(--ai) 22%, transparent); }
  .reason:hover, .result:hover, .case:hover, .plan:hover { translate: 0 -4px; box-shadow: 0 14px 30px color-mix(in srgb, var(--ink) 8%, transparent); }
  .post:hover h3 { color: var(--ai); }
  .post:hover .photo { transform: scale(1.02); }
}

/* スクロールで現れる */
.js .rv { opacity: 0; transform: translateY(22px); --d: calc(var(--rv-i, 0) * 90ms);
  transition: opacity .7s ease var(--d), transform .8s cubic-bezier(.2,.7,.2,1) var(--d), translate .25s ease, box-shadow .25s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* hero */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes mark { from { background-size: 0 36%; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
.js .hero-copy > *, .js .hero .hero-visual { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .2s; }
.js .hero-copy > :nth-child(4) { animation-delay: .3s; }
.js .hero-copy > :nth-child(5) { animation-delay: .4s; }
.js .hero .hero-visual { animation-delay: .25s; }
.js .hero h1 em { animation: mark 1s .8s cubic-bezier(.6,0,.2,1) both; }

/* 最低賃金グラフが伸びる */
.js .wage-bar { transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.js .wage-row:nth-of-type(2) .wage-bar { transition-delay: .2s; }
.js .wage-row:nth-of-type(3) .wage-bar { transition-delay: .4s; }
.js .wage:not(.in) .wage-bar { width: 5.5em; }

/* チャットが順に届く */
.js .chat .msg { opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .45s ease, transform .45s ease; transition-delay: calc(var(--m, 0) * .8s + .4s); }
.js .chat.in .msg { opacity: 1; transform: none; }

/* 診断サンプルの点数が伸びる */
.meter i { transition: width 1.1s cubic-bezier(.2,.7,.2,1) .3s; }
.score:nth-child(2) .meter i { transition-delay: .42s; }
.score:nth-child(3) .meter i { transition-delay: .54s; }
.score:nth-child(4) .meter i { transition-delay: .66s; }
.score:nth-child(5) .meter i { transition-delay: .78s; }
.js .report:not(.in) .meter i { width: 0 !important; }
.js .report.in .grade { animation: pop .5s 1s both; }

/* 導入の流れ（PCは矢印でつなぐ） */
@media (min-width: 901px) {
  .flow li { position: relative; }
  .flow li:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ai); border-right: 2px solid var(--ai); transform: translateY(-50%) rotate(45deg); }
}
.faq details[open] p { animation: fade-up .35s ease both; }

/* 料金シミュレーター */
.sim-hint { font-size: .9rem; color: var(--sub); margin-bottom: 14px; }
.seg { display: flex; gap: 4px; padding: 4px; margin-top: 10px; background: var(--surface); border-radius: 999px; }
.seg label { flex: 1; position: relative; text-align: center; cursor: pointer; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 8px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--sub); transition: background .2s, color .2s; white-space: nowrap; }
.seg input:checked + span { background: var(--ai); color: var(--on-ai); }
.seg input:focus-visible + span { outline: 3px solid var(--kihada); outline-offset: 2px; }
.pay input.range { margin-top: 10px; padding: 0; border: 0; background: none; height: 28px; accent-color: var(--ai); cursor: pointer; }
.pay .amt { transition: color .2s; }

/* 表：スマホでは1列目を固定して横スクロール */
.scroll-hint { display: none; font-size: .78rem; color: var(--sub); text-align: right; margin-bottom: 8px; }
.table-scroll tbody th, .table-scroll thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); }

/* mobile sticky CTA（ヒーローを過ぎたら表示、フォームでは隠す） */
@media (max-width: 860px) {
  .sticky-cta { display: grid; grid-template-columns: 1fr auto; gap: 8px; transition: transform .35s ease; }
  .js .sticky-cta:not(.show) { transform: translateY(110%); }
  .sticky-cta .btn { width: auto; padding-inline: 18px; }
  .hero .photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .scroll-hint { display: block; }
  .table-scroll tbody th { white-space: normal; width: 7.5em; min-width: 7.5em; }
  .plan-table table { min-width: 0; }
  .plan-table tbody th { width: auto; min-width: 0; }
  .plan-table th, .plan-table td { padding: 12px 10px; }
  .plan-table td { width: 5.6em; font-size: .8rem; }
  .plan-table .mark-pick { padding: 2px 8px; font-size: .75rem; }
  .sm-head small { display: none; }
  .plan-table + .frame, .frame { margin-top: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; line-height: 1.9; }
  .hero-cta .btn, .cta-actions .btn { flex: 1 1 100%; }
  .faq details { padding-inline: 18px; }
  .price { font-size: 2.2rem; }
  .pay { margin-bottom: 36px; }
  .result-top { flex-direction: column; gap: 10px; }
  .result .big { text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .result .big b { font-size: 2.2rem; }
  .company dd { padding-top: 4px; }
  .org { padding: 18px 14px; }
  .org-node { padding: 12px 10px; }
  .org-check li { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .chat .msg { opacity: 1; transform: none; transition: none; }
  .js .hero-copy > *, .js .hero .hero-visual, .js .hero h1 em, .js .report.in .grade, .faq details[open] p { animation: none; }
  .js .wage-bar, .meter i, .btn, .reason, .result, .case, .post, .plan, .sticky-cta { transition: none; }
}

/* ===== 診断ページ ===== */
.dg-top { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 120px); }
.dg-head { max-width: none; }
.page-title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.7rem); line-height: 1.4; }
.dg-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.dg-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; background: var(--surface); border-radius: var(--r); min-width: 0; }
.dg-steps li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--ai); color: var(--on-ai); display: grid; place-items: center; font-family: var(--f-num); font-weight: 600; }
.dg-steps li:last-child::before { background: var(--kihada); color: var(--ink); }
.dg-steps b { font-size: .95rem; line-height: 1.5; }
.dg-steps span { font-size: .8rem; color: var(--sub); line-height: 1.5; }
@media (max-width: 760px) { .dg-steps { grid-template-columns: 1fr; } }
.dg-form { display: grid; gap: 18px; min-width: 0; align-content: start; }
.dg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .dg-row { grid-template-columns: 1fr; } }
.dg-form textarea { min-height: 240px; }
.dg-count { font-size: .78rem; color: var(--sub); text-align: right; }
.dg-count.ok { color: var(--ai); font-weight: 700; }
.dg-sites { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.dg-sites legend { font-size: .88rem; font-weight: 700; padding: 0; margin-bottom: 8px; }
.dg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dg-chips label { position: relative; cursor: pointer; }
.dg-chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.dg-chips span { display: block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .88rem; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.dg-chips input:checked + span { background: var(--ai); border-color: var(--ai); color: var(--on-ai); }
.dg-chips input:checked + span::before { content: "✓ "; }
.dg-chips input:focus-visible + span { outline: 3px solid var(--kihada); outline-offset: 2px; }
.dg-error { color: #A4321F; font-weight: 700; font-size: .9rem; }
.dg-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (min-width: 861px) { .dg-side { position: sticky; top: 84px; } }
.report.is-result .stamp { color: var(--ai); border-color: var(--ai); }
.score-na { grid-column: 1 / -1; font-size: .72rem; color: var(--sub); }
.wage-box { display: grid; gap: 4px; padding: 12px 16px; border: 1px dashed var(--line); border-radius: 10px; font-size: .85rem; }
.wage-box p { display: flex; justify-content: space-between; gap: 12px; }
.wage-box b { font-weight: 600; white-space: nowrap; }
.wage-box small { color: var(--sub); font-size: .75rem; }
.dg-next { border: 2px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 20px 22px; display: grid; gap: 10px; justify-items: start; transition: border-color .4s, box-shadow .4s; }
.dg-next.is-on { border-color: var(--ai); box-shadow: 0 12px 28px color-mix(in srgb, var(--ai) 16%, transparent); }
.dg-next p { font-size: .92rem; color: var(--sub); }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.detail > div { display: grid; gap: 22px; min-width: 0; }
.detail .form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.detail-list li { display: grid; gap: 2px; padding: 14px 18px; background: var(--paper); border-radius: var(--r); border-left: 4px solid var(--kihada); }
.detail-list span { font-size: .85rem; color: var(--sub); }
#dt-result { min-height: 120px; font-size: .85rem; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; } .sticky-cta.single { grid-template-columns: 1fr; } }
.back { padding-block: 48px; text-align: center; display: grid; gap: 14px; justify-items: center; }
footer .note { font-size: .72rem; }

/* =================================================================
   WordPress 用の追加スタイル
   ================================================================= */

/* 管理バー表示時のヘッダー位置 */
.admin-bar .site-header { top: calc(32px + env(safe-area-inset-top, 0px)); }
@media (max-width: 782px) { .admin-bar .site-header { top: calc(46px + env(safe-area-inset-top, 0px)); } }
@media (max-width: 600px) { .admin-bar .site-header { top: env(safe-area-inset-top, 0px); } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ai); color: var(--on-ai); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { max-width: 100%; height: auto; }

/* 記事カード（アイキャッチなしのときは「&」） */
.post .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .photo.no-img { place-items: center; }
/* 自動で作ったアイキャッチ（1200×630）は文字が切れないよう同じ比率で表示 */
.post .photo.is-eyecatch { aspect-ratio: 1200 / 630; }
.post .photo.is-eyecatch img { object-position: 50% 50%; }
.post .photo.no-img::after { content: "&"; font-family: var(--f-display); font-weight: 800; font-size: 3rem; color: var(--ai); opacity: .35; }
.post-cat { font-size: .72rem; font-weight: 700; color: var(--ai); }
.post-meta { display: flex; gap: 10px; align-items: center; }

/* フォーム（Contact Form 7） */
.contact-form-wrap { max-width: 52em; }
.contact-form-wrap .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.contact-form-wrap .wpcf7-form > * { grid-column: 1 / -1; }
.contact-form-wrap .wpcf7-form > .field:not(.full) { grid-column: auto; }
.contact-form-wrap .hidden-fields-container { display: none; }
.contact-form-wrap .wpcf7-form-control-wrap { display: block; }
.contact-form-wrap input[type="checkbox"], .contact-form-wrap input[type="radio"] { width: auto; padding: 0; accent-color: var(--ai); }
.contact-form-wrap .wpcf7-list-item { margin: 0; }
.contact-form-wrap .agree label { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 500; cursor: pointer; }
.contact-form-wrap .agree input { margin-top: 7px; }
.contact-form-wrap input.btn { appearance: none; -webkit-appearance: none; width: auto; padding: 14px 28px; border: 0; background: var(--ai); color: var(--on-ai); font: 700 1rem var(--f-body); }
.contact-form-wrap input.btn:hover { background: var(--ai-deep); }
.contact-form-wrap .wpcf7-not-valid { border-color: #A4321F !important; }
.contact-form-wrap .wpcf7-not-valid-tip { color: #A4321F; font-size: .8rem; margin-top: 4px; }
.contact-form-wrap .wpcf7-spinner { display: none; margin: 0 0 0 8px; }
.contact-form-wrap .wpcf7-form.submitting .wpcf7-spinner { display: inline-block; }
.contact-form-wrap .wpcf7-submit:disabled { opacity: .6; cursor: wait; }
.contact-form-wrap .wpcf7-response-output { margin: 0 !important; border-radius: 12px; padding: 14px 18px !important; font-size: .92rem; border: none !important; background: var(--paper); color: var(--ink); }
.contact-form-wrap .wpcf7-form.invalid .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.unaccepted .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.failed .wpcf7-response-output,
.contact-form-wrap .wpcf7-form.spam .wpcf7-response-output { background: #FBEAE8; color: #8C1D18; }
.contact-form-wrap .wpcf7-response-output:empty, .contact-form-wrap .init .wpcf7-response-output { display: none; }
.contact-form-wrap .form-setup { font-size: .92rem; background: var(--paper); border-radius: 12px; padding: 16px 20px; }
.booking-cta { margin-top: 20px; display: grid; gap: 14px; justify-items: start; background: var(--paper); border: 2px solid var(--ai); border-radius: var(--r); padding: 20px 22px; }
.booking-cta b { display: block; font-family: var(--f-display); font-size: 1.05rem; }
.detail .contact-form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.detail .contact-form-wrap .wpcf7-form { gap: 16px; }
@media (max-width: 640px) {
  .contact-form-wrap .wpcf7-form { grid-template-columns: 1fr; }
  .contact-form-wrap .wpcf7-form > .field:not(.full) { grid-column: 1 / -1; }
  .contact-form-wrap .form-foot .btn, .booking-cta .btn { width: 100%; }
}

/* 下層ページ共通 */
.page-hero { padding-block: clamp(48px, 8vw, 88px) clamp(28px, 5vw, 44px); }
.page-hero .wrap { display: grid; gap: 14px; }
.page-hero h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); }
.page-hero .lead { max-width: 40em; }
.breadcrumb { font-size: .8rem; color: var(--sub); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--sub); }
.breadcrumb span[aria-hidden] { opacity: .6; }

/* 記事一覧 */
.archive-body { padding-block: 0 clamp(64px, 9vw, 120px); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.cat-filter a { font-size: .82rem; font-weight: 700; text-decoration: none; color: var(--ai); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.cat-filter a.current, .cat-filter a:hover { background: var(--ai); border-color: var(--ai); color: var(--on-ai); }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: inline-grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ai); text-decoration: none; font-weight: 700; }
.pagination .page-numbers.current { background: var(--ai); border-color: var(--ai); color: var(--on-ai); }
.no-posts { background: var(--surface); border-radius: var(--r); padding: 28px; }

/* 記事本文 */
.article { padding-block: 0 clamp(64px, 9vw, 120px); }
.article .wrap { max-width: 820px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .82rem; color: var(--sub); }
.article-meta .cat { font-weight: 700; color: var(--ai); background: var(--ai-tint); border-radius: 999px; padding: 2px 12px; text-decoration: none; }
.article-thumb { margin: 0 0 32px; }
.article-thumb img { width: 100%; height: auto; border-radius: var(--r); display: block; }
.entry { font-size: 1rem; line-height: 2; }
.entry > * + * { margin-top: 1.4em; }
.entry > :first-child { margin-top: 0; }
.entry h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); margin-top: 2.4em; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.entry h3 { font-size: clamp(1.1rem, 1rem + .6vw, 1.25rem); margin-top: 2em; padding-left: 12px; border-left: 4px solid var(--kihada); }
.entry h4 { font-size: 1.05rem; margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .4em; }
.entry img { border-radius: 10px; }
.entry figure { margin-inline: 0; }
.entry figcaption { font-size: .82rem; color: var(--sub); margin-top: 6px; text-align: center; }
.entry blockquote { margin-inline: 0; padding: 16px 20px; background: var(--surface); border-left: 4px solid var(--ai); border-radius: 0 10px 10px 0; }
.entry table { min-width: 0; border: 1px solid var(--line); }
.entry .wp-block-table { overflow-x: auto; }
.entry th { background: var(--surface); }
/* スマホ：表がはみ出すとページ全体が横にずれるため、表の中だけ横スクロールにする */
@media (max-width: 760px) {
  .entry table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.85rem; }
  .entry th, .entry td { padding: 10px 12px; }
  .entry tbody th { white-space: normal; }
}
.entry hr { border: none; border-top: 1px solid var(--line); }
.entry code { background: var(--surface); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry .alignwide, .entry .alignfull { margin-inline: 0; }
.article-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; background: var(--ai); color: var(--on-ai); border-radius: var(--r); padding: clamp(22px, 4vw, 32px); }
.article-cta div { display: grid; gap: 6px; }
.article-cta b { font-family: var(--f-display); font-size: clamp(1.05rem, 1rem + .6vw, 1.25rem); }
.article-cta span { font-size: .88rem; opacity: .9; }
.article-cta .cta-actions .btn { flex: 0 0 auto; }
@media (max-width: 600px) { .article-cta .btn { width: 100%; } }
.post-nav { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-nav a { display: grid; gap: 4px; background: var(--surface); border-radius: var(--r); padding: 14px 18px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; }
.post-nav small { color: var(--sub); font-weight: 500; font-size: .75rem; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }
.related { margin-top: 56px; }
.related h2 { font-size: 1.25rem; margin-bottom: 18px; }

/* 404 */
.notfound { padding-block: clamp(64px, 12vw, 120px); text-align: center; }
.notfound .wrap { display: grid; justify-items: center; gap: 18px; }
.notfound .big { font-family: var(--f-num); font-weight: 600; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--ai-tint); }

/* フッター */
.site-footer .wrap { align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
