/* ==================================================
   Tento Web Support - Craft Style
   方針: 紙の質感・手書きの添え書き・罫線で見せる。
         グラデーション／アイコン付き角丸カード／ピル型ラベル／
         全セクション中央寄せ は使わない。
   Brand Navy: #164C70（ロゴ由来）
   ================================================== */

:root {
  --paper: #F4EEE3;
  --paper-deep: #EAE1D1;
  --card: #FBF8F2;
  --ink: #2A2621;
  --ink-soft: #5E564C;
  --line: #D6CAB5;
  --brand: #164C70;
  --brand-deep: #0F3A57;
  --on-brand: #FBF8F2;
  --terra: #A94C2E;
  --shadow-pin: 0 1px 2px rgba(42, 38, 33, 0.12), 0 8px 20px rgba(42, 38, 33, 0.12);

  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", var(--font-body);
  --font-hand: "Klee One", "Hiragino Mincho ProN", serif;

  --header-h: 72px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1D1A17;
    --paper-deep: #252019;
    --card: #2A2621;
    --ink: #EFE8DC;
    --ink-soft: #B5AA9A;
    --line: #453D34;
    --brand: #8DB8DA;
    --brand-deep: #12304A;
    --on-brand: #12202C;
    --terra: #E3906E;
    --shadow-pin: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.35);
  }
}

/* === Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background-color: var(--paper);
  /* 紙の目（ごく薄いノイズ） */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Buttons & Links === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-paper {
  background: var(--card);
  color: var(--ink);
}

.btn-large {
  padding: 15px 30px;
  font-size: 1.02rem;
}

.text-link {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.15s ease;
}

.text-link::after {
  content: " →";
}

.text-link:hover {
  text-decoration-color: var(--terra);
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.logo img {
  width: 40px;
  height: 40px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.logo-text small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a:not(.btn) {
  display: block;
  padding: 6px 10px;
  font-size: 0.9rem;
  text-decoration: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}

.nav-links a:not(.btn):hover,
.nav-links a.active {
  text-decoration-line: underline;
  text-decoration-color: var(--terra);
}

.nav-links .nav-contact {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 17px;
}

.menu-toggle span:nth-child(2) {
  top: 25px;
}

.menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* === Hero === */
.hero {
  padding: 64px 0 104px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--terra);
}

.hero h1 {
  margin-top: 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.38;
  letter-spacing: 0.02em;
}

.hand-underline {
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}

.hand-underline::after {
  content: "";
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: -0.06em;
  height: 0.3em;
  background: var(--terra);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13c30-6 62-8 96-6 30 2 62 1 98-5M10 17c40-4 90-5 150-3' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13c30-6 62-8 96-6 30 2 62 1 98-5M10 17c40-4 90-5 150-3' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  z-index: -1;
}

.hero-lead {
  margin-top: 28px;
  max-width: 34em;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  margin-top: 40px;
}

/* ピン留めした写真の束 */
.hero-board {
  position: relative;
  min-height: 460px;
}

.pin {
  position: absolute;
  padding: 10px 10px 30px;
  background: var(--card);
  box-shadow: var(--shadow-pin);
}

/* 写真を重ねておき、is-active の1枚だけを見せる（hero-board.js が切り替える） */
.pin-photos {
  position: relative;
  aspect-ratio: 4 / 3;
  /* 透過のロゴが下の写真と重なって見えないよう、枠の地色で塗る */
  background: inherit;
}

.pin-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.pin-photos img.is-active {
  opacity: 1;
}

/* ロゴは切り抜かず、余白を付けて全体を見せる */
.pin-photos img.fit-contain {
  object-fit: contain;
  padding: 6%;
}

/* マスキングテープ */
.pin::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 84px;
  height: 24px;
  margin-left: -42px;
  background: rgba(214, 196, 160, 0.72);
  transform: rotate(-3deg);
}

.pin-1 {
  top: 0;
  left: 0;
  width: 60%;
  transform: rotate(-4deg);
}

.pin-2 {
  top: 20%;
  right: 0;
  width: 54%;
  transform: rotate(3deg);
}

.pin-2::before {
  transform: rotate(4deg);
}

.pin-3 {
  bottom: 0;
  left: 12%;
  width: 40%;
  transform: rotate(-1.5deg);
}

.pin-3 .pin-photos {
  aspect-ratio: 1 / 1;
}

.hand-note {
  position: absolute;
  right: 4%;
  bottom: 6%;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--terra);
  transform: rotate(-4deg);
}

.hand-arrow {
  position: absolute;
  top: -50px;
  left: -60px;
  width: 70px;
  transform: rotate(180deg);
}

/* === Sections === */
.section {
  padding: 104px 0;
}

.section-tint {
  background-color: var(--paper-deep);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

/* 見出しの下の短い手描き線 */
.section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 10px;
  margin-top: 14px;
  background: var(--terra);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 10'%3E%3Cpath d='M2 6c9-4 15 3 26-1s15-3 26 0' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 10'%3E%3Cpath d='M2 6c9-4 15 3 26-1s15-3 26 0' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

.section-head {
  max-width: 40em;
  margin-bottom: 56px;
}

.section-head p,
.split-head p {
  margin-top: 16px;
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 72px;
  align-items: start;
}

.split-head {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.split-head .text-link {
  display: inline-block;
  margin-top: 24px;
}

/* === Strengths === */
.strengths {
  counter-reset: strength;
}

.strengths li {
  counter-increment: strength;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 8px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.strengths li:first-child {
  padding-top: 0;
  border-top: none;
}

.strengths li::before {
  content: counter(strength);
  grid-row: 1 / span 3;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--terra);
}

.strengths h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.5;
  margin-bottom: 10px;
}

.strengths p {
  color: var(--ink-soft);
}

.strengths .inline-list {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink);
}

/* === Menu (price list) === */
.menu-board {
  margin-top: 40px;
  padding: 36px 36px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.menu-board-title {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--terra);
  margin-bottom: 8px;
}

.menu-board .text-link {
  display: inline-block;
  margin-top: 24px;
}

.menu-row {
  display: grid;
  grid-template-columns: auto minmax(24px, 1fr) auto;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.menu-row:last-child {
  border-bottom: none;
}

/* 点線のリーダー */
.menu-row::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  margin: 0 14px;
  border-bottom: 2px dotted var(--line);
  align-self: center;
}

.menu-row dt {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
}

.menu-price {
  grid-column: 3;
  grid-row: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--brand);
  text-align: right;
  white-space: nowrap;
}

.menu-price span {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.menu-desc {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 6px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.notes {
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.notes li {
  padding-left: 1.2em;
  text-indent: -1.2em;
}

.notes li::before {
  content: "※";
  display: inline-block;
  width: 1.2em;
  text-indent: 0;
}

/* === Voices (use cases) === */
.voices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

.voices li {
  padding: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.voice-q {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.6;
}

.voice-q::before {
  content: "「";
  color: var(--terra);
}

.voice-q::after {
  content: "」";
  color: var(--terra);
}

.voice-a {
  position: relative;
  margin-top: 12px;
  padding-left: 1.6em;
  color: var(--ink-soft);
}

.voice-a::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* === Works (portfolio) === */
.works-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--terra);
}

.works-label::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

.works {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
  margin-bottom: 80px;
}

.works:last-child {
  margin-bottom: 0;
}

.work {
  display: block;
  text-decoration: none;
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.25s ease;
}

.work:hover img {
  transform: translateY(-4px) rotate(-0.6deg);
}

.work-name {
  display: block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
}

.work-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.work-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
}

.work-link::after {
  content: " ↗";
}

.work:hover .work-link {
  text-decoration-color: var(--terra);
}

/* === Simulator band === */
.section-ink {
  background-color: var(--brand-deep);
  color: #F4EEE3;
  padding: 80px 0;
}

.section-ink h2::after {
  background: #E3906E;
}

.simulator-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
}

.simulator-band p {
  max-width: 38em;
  margin-top: 16px;
  opacity: 0.85;
}

.simulator-band .btn {
  flex-shrink: 0;
  background: #FBF8F2;
  color: #2A2621;
  border-color: #FBF8F2;
  box-shadow: 3px 3px 0 #E3906E;
}

.simulator-band .btn:hover {
  box-shadow: 4px 4px 0 #E3906E;
}

/* === Flow === */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.flow li {
  position: relative;
  padding-top: 72px;
}

/* 次のステップへの破線 */
.flow li::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 52px;
  right: -20px;
  border-top: 2px dashed var(--line);
}

.flow li:last-child::before {
  display: none;
}

.flow-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--terra);
  border: 1.5px solid var(--terra);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
}

.flow h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 8px;
}

.flow p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* === FAQ === */
.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--terra), var(--terra)) center / 100% 2px no-repeat,
    linear-gradient(var(--terra), var(--terra)) center / 2px 100% no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--brand);
}

.faq details p {
  padding: 0 0 26px;
  color: var(--ink-soft);
}

/* === Contact === */
.contact-form {
  max-width: 780px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.contact-form iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* === Footer === */
.site-footer {
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-brand img {
  width: 220px;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-title {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.footer-col a {
  display: inline-block;
  padding: 3px 0;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.copyright {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* ==================================================
   下層ページ
   ================================================== */

/* === Page hero === */
.page-hero {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
  text-underline-offset: 4px;
}

.breadcrumb a::after {
  content: "／";
  display: inline-block;
  margin-left: 8px;
  text-decoration: none;
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.page-kicker::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--terra);
}

.page-hero h1 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* 見出しの最後の1〜2文字だけが次の行に落ちないよう、行の長さを揃える */
.page-hero h1,
.section h2,
.terms-section h2 {
  text-wrap: balance;
}

.breadcrumb + h1 {
  margin-top: 32px;
}

.page-hero h1 + p {
  max-width: 40em;
  margin-top: 16px;
  color: var(--ink-soft);
}

.section-first {
  padding-top: 72px;
}

/* === Columns / plans === */
.columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}

.columns-tight {
  margin-top: 40px;
  gap: 24px;
}

.plan {
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}

.plan h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.5;
}

.plan > p {
  color: var(--ink-soft);
}

.dash-list {
  margin-top: 16px;
}

.dash-list li {
  position: relative;
  padding: 4px 0 4px 1.4em;
}

.dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--terra);
}

.dash-list strong {
  color: var(--brand);
}

.small-note {
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.mini {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.mini h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.mini-sub {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.mini .dash-list {
  margin-top: 8px;
  font-size: 0.92rem;
}

.note-box {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--card);
  border-left: 3px solid var(--terra);
}

.note-box h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.note-box p,
.note-box li {
  font-size: 0.92rem;
}

/* === Price table === */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.price-table thead th {
  padding: 10px 12px;
  font-weight: 400;
  font-size: 0.8rem;
  text-align: left;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--ink);
}

.price-table tbody th,
.price-table tbody td {
  padding: 18px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.price-table tbody th {
  width: 24%;
  font-family: var(--font-display);
  font-weight: 700;
}

.price-table td[data-label] {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
}

.price-table small {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.price-table small.em {
  color: var(--terra);
}

/* === Tools / definitions === */
.tool {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.tool:first-child {
  padding-top: 0;
  border-top: none;
}

.tool h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.tool h3 span {
  margin-left: 10px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.tool p {
  margin-top: 8px;
  color: var(--ink-soft);
}

.tool strong {
  color: var(--ink);
}

.def-list li {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.def-list li:first-child {
  padding-top: 0;
}

.def-list strong {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
}

.prose h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.prose p {
  margin-bottom: 32px;
  color: var(--ink-soft);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* === Price simulator === */
.simulator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}

.simulator-form {
  display: grid;
  gap: 56px;
}

.simulator-group h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  border-bottom: 1.5px solid var(--ink);
}

.group-note {
  margin-left: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--terra);
}

.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.option-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 12px;
  padding: 18px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-item:hover {
  border-color: var(--ink-soft);
}

.option-item.selected,
.option-item.active {
  border-color: var(--brand);
  box-shadow: 3px 3px 0 var(--brand);
}

.option-item.highlight-campaign {
  border-style: dashed;
  border-color: var(--terra);
}

.option-item.highlight-campaign.selected {
  border-style: solid;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--brand);
}

.option-details {
  flex: 1;
  min-width: 150px;
}

.option-details strong {
  font-family: var(--font-display);
  font-weight: 700;
}

.option-details > span {
  display: block;
  margin-top: 2px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.option-note {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.option-warn {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--terra);
}

.label-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-btn {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.help-btn:hover {
  color: var(--brand);
  border-color: var(--brand);
}

.option-description {
  display: none;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--paper);
  border-left: 2px solid var(--terra);
}

.option-description.active {
  display: block;
}

/* 数量: [－] 0 [＋] 枚 の順に並べる */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-selector .qty-controls {
  display: contents;
}

.qty-btn {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--paper-deep);
}

.qty-btn.minus {
  order: 1;
}

.quantity-selector input {
  order: 2;
  width: 40px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  color: var(--ink);
  background: transparent;
  border: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-btn.plus {
  order: 3;
}

.quantity-selector .unit {
  order: 4;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* 見積もり：レシートの見立て */
.price-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px 24px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--ink);
}

.summary-header,
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-header h3,
.drawer-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.reset-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: none;
  border: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.selected-details {
  margin-top: 16px;
  padding: 16px 0;
  border-top: 2px dashed var(--line);
  border-bottom: 2px dashed var(--line);
}

.empty-msg {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  font-size: 0.85rem;
}

.detail-item.base .detail-name {
  font-weight: 700;
}

.detail-price {
  text-align: right;
  white-space: nowrap;
}

.detail-price small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.detail-item.discount .detail-price {
  color: var(--terra);
}

.price-results {
  padding: 16px 0 8px;
}

.price-result-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.result-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.result-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  text-align: right;
}

.result-value small {
  font-size: 0.8rem;
}

.free-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: #FBF8F2;
  background: var(--terra);
  border-radius: 3px;
  vertical-align: middle;
  white-space: nowrap;
}

.monthly-note,
.confirmation-note {
  margin-top: 6px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.btn.full-width {
  width: 100%;
  margin-top: 20px;
}

/* スマホ：画面下の見積もりバー */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 0;
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
}

.mobile-details-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-sticky-bar.drawer-open .mobile-details-drawer {
  max-height: 70vh;
  overflow-y: auto;
  margin-bottom: 10px;
}

.drawer-header {
  padding: 8px 0;
}

.drawer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-drawer {
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink);
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.mobile-sticky-bar .selected-details {
  margin-top: 0;
  border-top: none;
}

.mobile-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-bar-prices {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.details-badge {
  padding: 2px 8px;
  font-size: 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 3px;
  white-space: nowrap;
}

.details-badge::after {
  content: " ▲";
  font-size: 0.6rem;
}

.mobile-sticky-bar.drawer-open .details-badge::after {
  content: " ▼";
}

.price-mini {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.price-mini .label {
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.price-mini .value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

/* === Legal pages === */
.terms-container {
  max-width: 820px;
  margin-top: 56px;
  margin-bottom: 104px;
}

.terms-section {
  margin-bottom: 44px;
}

.terms-section h2 {
  margin-bottom: 16px;
  padding-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--line);
}

.terms-section h3 {
  margin: 20px 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}

.terms-section p,
.terms-section li {
  font-size: 0.95rem;
  line-height: 1.95;
}

.terms-section ul {
  margin-top: 8px;
  padding-left: 1.4em;
  list-style: disc;
}

.terms-meta {
  margin-top: 56px;
  padding-top: 24px;
  font-size: 0.85rem;
  text-align: right;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1.5px solid var(--ink);
}

.legal-table th,
.legal-table td {
  padding: 18px 12px;
  font-size: 0.95rem;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-table th {
  width: 30%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
}

.legal-table a {
  color: var(--brand);
  text-underline-offset: 4px;
}

/* === 404 === */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
  text-align: center;
}

.not-found .logo {
  margin: 0 0 40px;
}

.not-found-code {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 5rem;
  line-height: 1;
  color: var(--terra);
}

.not-found h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.not-found h1 + p {
  margin: 16px 0 32px;
  color: var(--ink-soft);
}

/* === Dark mode: ロゴ（紺）を紙色に === */
@media (prefers-color-scheme: dark) {

  .logo img,
  .footer-brand img {
    filter: brightness(0) invert(0.9) sepia(0.15);
  }

  /* 写真の枠は暗い面でも紙のまま */
  .pin {
    background: #E9E1D2;
  }
}

/* === Responsive === */
@media (max-width: 1023px) {
  .simulator-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-summary {
    position: static;
  }

  .mobile-sticky-bar {
    display: block;
  }

  /* 見積もりバーに隠れないよう、フッターの下に余白を取る */
  body:has(.mobile-sticky-bar) .site-footer {
    padding-bottom: 120px;
  }
}

@media (max-width: 960px) {
  .pc-only {
    display: none;
  }

  .columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .header-inner {
    gap: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 24px 40px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:not(.btn) {
    padding: 18px 4px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
  }

  .nav-links .nav-contact {
    display: block;
    border-bottom: none;
    padding-top: 28px;
  }

  .nav-contact .btn {
    width: 100%;
    padding: 15px 22px;
  }

  .hero {
    padding: 40px 0 80px;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .hero-board {
    min-height: 0;
    height: 92vw;
    max-height: 480px;
    max-width: 560px;
  }

  .split-head {
    position: static;
  }

  .section {
    padding: 80px 0;
  }

  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .flow li:nth-child(2)::before {
    display: none;
  }

  .simulator-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  .header-cta {
    display: none;
  }

  .logo-text {
    font-size: 0.98rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hand-note {
    font-size: 1.1rem;
    right: 0;
    bottom: 2%;
  }

  .hand-arrow {
    width: 52px;
    top: -40px;
    left: -44px;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .strengths li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .menu-board {
    padding: 24px 20px;
  }

  .menu-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-row::before {
    display: none;
  }

  .menu-row dt {
    padding-right: 12px;
  }

  .menu-price {
    grid-column: 2;
  }

  .voices {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice-q {
    font-size: 1.15rem;
  }

  .works {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .flow li {
    padding: 0 0 36px 72px;
    min-height: 88px;
  }

  .flow li::before,
  .flow li:nth-child(2)::before {
    display: block;
    top: 60px;
    bottom: 6px;
    left: 25px;
    right: auto;
    border-top: none;
    border-left: 2px dashed var(--line);
  }

  .flow li:last-child::before {
    display: none;
  }

  .flow-num {
    top: 0;
  }

  .section-ink {
    padding: 64px 0;
  }

  .simulator-band .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-hero {
    padding: 32px 0 40px;
  }

  .section-first {
    padding-top: 48px;
  }

  /* 表は1行ずつ縦積みに */
  .price-table thead {
    display: none;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table tbody th,
  .price-table tbody td {
    display: block;
    width: auto;
  }

  .price-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .price-table tbody tr:first-child {
    border-top: 1.5px solid var(--ink);
  }

  .price-table tbody th,
  .price-table tbody td {
    padding: 2px 0;
    border-bottom: none;
  }

  .price-table tbody th {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .price-table td[data-label] {
    display: inline-block;
    margin-right: 16px;
  }

  .price-table td[data-label]::before {
    content: attr(data-label) " ";
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--ink-soft);
  }

  .def-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .tool h3 span {
    display: block;
    margin-left: 0;
  }

  .note-box {
    padding: 20px;
  }

  .option-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .group-note {
    display: block;
    margin: 4px 0 0;
  }

  .price-summary {
    padding: 24px 18px;
  }

  .terms-container {
    margin-top: 40px;
    margin-bottom: 72px;
  }

  .legal-table th,
  .legal-table td {
    display: block;
    width: auto;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
  }

  .legal-table th {
    padding: 14px 0 2px;
    border-bottom: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* 見出しを語句の途中で折り返さない */
.phrase {
  display: inline-block;
}

/* 実績の2段目：そのサイトに付けた仕組み */
.work-tag {
  display: table;
  margin-top: 8px;
  padding: 2px 10px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--brand);
  border: 1px solid currentColor;
  border-radius: 3px;
}

/* 公開前の仕組みは控えめに */
.work-tag.is-soon {
  color: var(--ink-soft);
  border-style: dashed;
}
