:root {
  --navy: #2e2d2f;        /* 見出し・濃色（チャコール） */
  --navy-dark: #ffffff;   /* 白：ナビ・ファーストビュー・申し込みボックスの地色 */
  --accent: #e8710a;
  --accent-dark: #c25d05;
  --bg: #ffffff;
  --bg-soft: #f4f3f1;
  --text: #2a292b;
  --muted: #6b6968;
  --line: #e0ddd9;
  --radius: 12px;
  /* 本文：游明朝（未搭載の端末ではヒラギノ明朝→Noto Serif JP） */
  --font-body: "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  /* タイトル・見出し：Garamond（日本語の文字は游明朝で表示） */
  --font-head: "EB Garamond", "Garamond", "游明朝", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --side-w: 330px;
  --head-h: 124px;  /* スマホ：上部ナビの高さ */
  --bar-h: 68px;     /* スマホ：下部の申し込みバーの高さ */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-soft);
  line-height: 1.8;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
h2 {
  font-size: 1.5rem;
  line-height: 1.4;
  text-align: center;
  color: var(--navy);
  margin-bottom: 28px;
}
h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px auto 0;
}
.h2-sub {
  display: block;
  font-size: .6em;
  font-weight: 400;
  color: var(--muted);
}
h3 { font-size: 1.1rem; line-height: 1.5; color: var(--navy); }
h1, h2, h3, .brand strong { font-family: var(--font-head); }

/* マーカー：読み込みの1秒後に、左から右へ引かれる */
.mark {
  background-image: linear-gradient(transparent 58%, rgba(232,113,10,.45) 58%, rgba(232,113,10,.45) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 0% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 .08em;
  animation: marker-draw .9s cubic-bezier(.4,0,.2,1) 1s forwards;
}
@keyframes marker-draw { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; background-size: 100% 100%; }
}

/* ===== ボタン ===== */
.btn-group { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.btn-group.center { align-items: center; justify-content: center; }
.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  min-height: 52px;
  transition: background .2s, color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-secondary { background: #fff; color: var(--accent-dark); }
.btn-secondary:hover { background: #fff3e6; }

/* ===== 画像プレースホルダー ===== */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #e9e7e4;
  border: 2px dashed #b3afaa;
  color: var(--muted);
  font-size: .85rem;
  padding: 24px 16px;
  border-radius: var(--radius);
  min-height: 160px;
}
.features-img, .funcs-img, .day-img, .clip-img { margin-top: 24px; }

/* ===== 画面全体（スマホ・タブレット基準） ===== */
.app { display: block; }

/* 上部ナビ（スマホ） */
.side {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy-dark);
  color: var(--navy);
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: inherit;
  color: var(--navy);
  background: none;
  border: 0;
  padding: 2px 0 8px;
  cursor: pointer;
  text-align: left;
}
.brand strong { font-size: 1.2rem; letter-spacing: .04em; }
.brand small { font-size: .7rem; opacity: .8; }
.brand.is-current strong { color: var(--accent-dark); }

.tabnav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 4px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabnav::-webkit-scrollbar { display: none; }
.tabnav button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  min-height: 48px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.tabnav button span {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(46,45,47,.1);
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tabnav button:hover { background: #eae8e5; }
.tabnav button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tabnav button[aria-selected="true"] span { background: rgba(255,255,255,.3); }
.tabnav button:focus-visible,
.brand:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.side-cta { display: none; }

/* ===== 切り替わるページ ===== */
.stage { display: block; min-width: 0; }
.panel[hidden] { display: none !important; }

/* ページ切り替え：いまのページがふわっと消え、次のページが下からふわっと現れる */
.panel { transition: opacity .3s ease, transform .3s ease; }
.panel.is-leaving { opacity: 0; transform: translateY(-8px); }
.panel.is-entering { animation: panel-in .7s cubic-bezier(.22,.61,.36,1) both; }
@keyframes panel-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
.panel { padding: 32px 16px calc(var(--bar-h) + 32px); }
.inner { max-width: 920px; margin: 0 auto; }

/* トップ（ファーストビュー） */
.panel-top {
  background: var(--navy-dark);
  color: var(--navy);
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--head-h));
  min-height: calc(100dvh - var(--head-h));
}
.panel-top { position: relative; overflow: hidden; }
.top-inner { position: relative; z-index: 1; width: 100%; max-width: 920px; margin: 0; padding: 14vh 0 0 clamp(0px, 4vw, 56px); display: grid; gap: 28px; }
.top-text { max-width: 640px; text-shadow: 0 0 12px rgba(255,255,255,.7); }

/* 背景スライド（4秒ごとにフェードで切り替え） */
.top-bg { position: absolute; inset: 0; z-index: 0; background: var(--navy-dark); }
.top-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.6) 55%, rgba(255,255,255,.1) 100%);
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform-origin: center;
  animation: fv-fade 12s infinite, fv-zoom 12s linear infinite;
}
/* ゆっくりズーム：表示されている間（約6秒）に1.0倍→1.08倍 */
@keyframes fv-zoom {
  0%      { transform: scale(1); }
  50.33%  { transform: scale(1.08); }
  100%    { transform: scale(1.08); }
}
.slide1 { background-image: url("img/KC-FV1.webp"); animation-delay: 0s; }
.slide2 { background-image: url("img/KC-FV2.webp"); animation-delay: 4s; }
.slide3 { background-image: url("img/KC-FV3.webp"); animation-delay: 8s; }
@keyframes fv-fade {
  0%      { opacity: 0; }
  17%     { opacity: 1; }
  33.33%  { opacity: 1; }
  50.33%  { opacity: 0; }
  100%    { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { animation: none; }
  .slide1 { opacity: 1; }
}
.panel-top .label {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  text-shadow: none;
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.panel-top h1 {
  font-weight: 700;
  letter-spacing: .04em;
  font-size: clamp(2.5rem, 11vw, 3.3rem);
  line-height: 1.45;
  margin-bottom: 16px;
}
.panel-top .sub { font-size: 1.05rem; color: var(--text); }
.panel-top .label { font-size: .95rem; padding: 3px 14px; }
.panel-top .btn { font-size: 1.05rem; padding: 18px 28px; min-height: 60px; }
.top-visual {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.45);
  color: #dbe5f0;
}

/* ===== 料金 ===== */
.plans { display: grid; gap: 20px; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.plan h3 { margin-bottom: 8px; }
.plan .price { font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1.4; }
.plan .price small { font-size: .9rem; font-weight: 700; margin-right: 4px; }
.plan .price span { font-size: .9rem; margin-left: 4px; }
.plan .plan-note { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.plan-featured { border: 2px solid var(--accent); background: #fff7ee; }
.plan-featured .price { color: var(--accent-dark); }
.badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 14px;
  border-radius: 999px;
}
.note { margin-top: 20px; font-size: .9rem; color: var(--muted); text-align: center; }

/* ===== 特長 ===== */
.features { display: grid; gap: 16px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.feature .num {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.feature p { margin-top: 8px; font-size: .95rem; }

/* ===== 機能 ===== */
.func-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.func-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: .95rem;
}
.func-grid strong { display: block; color: var(--navy); font-size: 1.05rem; }

.sub-block { margin-top: 56px; }

/* 切り抜き */
.clip .lead, .sub-block .lead { text-align: center; margin-bottom: 24px; }
.clip-steps { list-style: none; padding: 0; counter-reset: clip; display: grid; gap: 12px; }
.clip-steps li {
  counter-increment: clip;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 16px 60px;
  position: relative;
}
.clip-steps li::before {
  content: counter(clip);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clip-steps p { font-size: .95rem; margin-top: 2px; }
.merit-title { text-align: center; font-size: 1.25rem; margin: 40px 0 16px; }
.merits { display: grid; gap: 12px; }
.merit {
  background: #fbf3ea;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--navy);
}

/* ===== 1日 ===== */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 4px 16px;
  padding: 0 0 24px 0;
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline .time {
  align-self: start;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 0;
  font-size: .9rem;
}
.timeline h3 { margin-bottom: 2px; }
.timeline p { font-size: .95rem; }

/* ===== 業種別 ===== */
.industry { display: grid; gap: 12px; }
.industry article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.industry p { margin-top: 6px; font-size: .95rem; }

/* ===== 流れ ===== */
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px 18px 68px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps p { font-size: .95rem; margin-top: 4px; }

/* 申し込み案内ボックス */
.cta-box {
  margin-top: 48px;
  background: var(--navy-dark);
  color: var(--text);
  text-align: center;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 36px 20px;
}
.cta-box h2 { color: var(--navy); font-size: 1.35rem; }
.tel-line { margin-top: 24px; }
.tel-line small { display: block; font-size: .85rem; color: var(--muted); }
.tel-line a {
  color: var(--navy);
  font-size: 1.9rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
}

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 16px 28px 16px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 14px;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 16px; font-size: .95rem; }

/* ===== スマホ・タブレット：画面下の申し込みバー ===== */
.bottombar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}
.bottombar .btn { padding: 10px 12px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
.bottombar .btn-primary { flex: 1 1 auto; }
.bottombar .btn-secondary { flex: 0 0 84px; }

/* ===== タブレット（720px〜）：2列表示・ボタン横並び ===== */
@media (min-width: 720px) {
  :root { --head-h: 128px; }
  h2 { font-size: 1.8rem; }
  .panel { padding: 40px 48px calc(var(--bar-h) + 40px); }
  .btn-group { flex-direction: row; }
  .btn { min-width: 220px; }
  .top-visual { min-height: 300px; }
  .panel-top h1 { font-size: clamp(3.3rem, 7.5vw, 4.2rem); }
  .panel-top .sub { font-size: 1.15rem; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-featured { grid-column: 1 / -1; }
  .features { grid-template-columns: 1fr 1fr 1fr; }
  .func-grid { grid-template-columns: 1fr 1fr; }
  .clip-steps { grid-template-columns: 1fr 1fr; }
  .merits { grid-template-columns: 1fr 1fr; }
  .industry { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 68px 20px 20px; }
  .steps li::before { left: 20px; top: 20px; }
  .bottombar { justify-content: center; }
  .bottombar .btn-primary { flex: 0 1 420px; }
}

/* ===== パソコン（1024px〜）：画面1枚＋左ナビ。横幅いっぱい使う ===== */
@media (min-width: 1024px) {
  html { scroll-behavior: auto; }
  body { overflow: hidden; }

  .app {
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    height: 100vh;
    height: 100dvh;
  }

  .side {
    position: static;
    display: flex;
    flex-direction: column;
    padding: 28px 20px 20px;
    overflow-y: auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0 8px 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }
  .brand strong { font-size: 1.9rem; }
  .brand small { font-size: .75rem; }

  .tabnav {
    flex-direction: column;
    overflow: visible;
    padding: 0;
    gap: 6px;
  }
  .tabnav button {
    width: 100%;
    white-space: normal;
    text-align: left;
    border-radius: var(--radius);
    padding: 18px 20px;
    font-size: 1.1rem;
    gap: 12px;
  }
  .tabnav button span { width: 30px; height: 30px; font-size: .9rem; }

  .side-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
  }
  .side-cta .btn { min-width: 0; padding: 12px 10px; font-size: .9rem; }
  .side-tel {
    display: block;
    color: var(--navy);
    text-decoration: none;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.4;
  }
  .side-tel small { display: block; font-size: .75rem; font-weight: 400; opacity: .85; }
  .copy { text-align: center; font-size: .7rem; color: var(--muted); }

  .stage { height: 100%; overflow-y: auto; }
  .panel { padding: 56px 88px 64px; min-height: 100%; }
  .panel-top { min-height: 100%; padding: 56px 88px; }
  .panel-top h1 { font-size: clamp(3.8rem, 6vw, 5.8rem); line-height: 1.3; }
  .top-text { max-width: 860px; }
  .panel-top .sub { font-size: 1.3rem; max-width: 34em; }
  .panel-top .btn { font-size: 1.15rem; padding: 20px 32px; min-height: 66px; }
  .top-visual { min-height: 420px; }

  .plans { grid-template-columns: 1fr 1fr; gap: 28px; }
  .plan-featured { grid-column: 1 / -1; }
  .plan { padding: 40px 24px; }
  .plan .price { font-size: 2.2rem; }
  .features { gap: 28px; }
  .feature { padding: 32px 28px; }
  .func-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .clip-steps { grid-template-columns: repeat(4, 1fr); }
  .clip-steps li { padding: 60px 20px 20px; }
  .clip-steps li::before { left: 20px; top: 20px; }
  .industry { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .timeline li { grid-template-columns: 1fr; padding: 0; }
  .timeline li::before { display: none; }
  .timeline .time { justify-self: start; padding: 4px 16px; }
  .timeline li > div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    height: 100%;
  }
  .steps { gap: 24px; }
  .cta-box { padding: 48px 32px; }

  .bottombar { display: none; }
}

/* 背の低いPC画面 */
@media (min-width: 1024px) and (max-height: 700px) {
  .side { padding-top: 16px; }
  .brand { padding-bottom: 14px; }
  .tabnav button { padding: 12px 16px; }
  .top-visual { min-height: 300px; }
}

/* ===== KCデジタルとは？ ===== */
.about-lead { text-align: left; max-width: 760px; margin: 0 auto 32px; font-size: 1.05rem; }
.spec { display: grid; gap: 0; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 0; }
.spec dt { font-weight: 700; color: var(--navy); }
.spec dd { margin: 0; }
.about-img { max-width: 760px; margin: 24px auto 0; }
.about-visual { max-width: 520px; margin: 0 auto 28px; }
.about-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  background: #fff;
}
.about-sample { margin: 0 0 32px; }

/* ナビ内の「サンプルを読む」ボタン */
.sample-mobile {
  position: absolute;
  top: 10px;
  right: 16px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 14px;
  font-size: .85rem;
}
@media (min-width: 1024px) {
  .sample-mobile { display: none; }
}

/* サンプルを読む（緑系） */
.btn-sample { background: #2f7d52; border-color: #2f7d52; color: #fff; }
.btn-sample:hover { background: #256642; border-color: #256642; }

/* 特長カードの画像 */
.feature-img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin: 0 0 16px;
}

/* 特長カードのマーカー：ページが表示されてから順に引かれる */
.feature .mark { animation-delay: .9s; }
.feature:nth-child(2) .mark { animation-delay: 1.3s; }
.feature:nth-child(3) .mark { animation-delay: 1.7s; }

/* 3つの特長カードを一回り大きく */
#features .inner { max-width: 1040px; }
.feature { padding: 30px 24px; }
.feature .num { font-size: .95rem; }
.feature h3 { font-size: 1.3rem; line-height: 1.5; }
.feature p { font-size: 1.05rem; margin-top: 10px; }
.feature-img { height: 150px; margin-bottom: 20px; }
@media (min-width: 1024px) {
  .feature { padding: 44px 34px; }
  .feature-img { height: 170px; }
  .features { gap: 32px; }
}

/* 料金ページの案内文 */
.price-lead { max-width: 760px; margin: 0 auto 32px; text-align: center; font-size: 1.05rem; }
.tax-note { margin-top: 20px; text-align: right; font-size: .9rem; color: var(--muted); }

/* 料金カード：補足文字を大きく */
.plan .price small { font-size: 1.3rem; }
.plan .price span { font-size: 1.15rem; }
.plan-featured .price span { font-size: 1em; margin-left: 8px; }   /* 「無料」は金額と同じ大きさ */

/* 合計金額 */
.plan .total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.plan .total small { font-size: 1rem; margin-right: 10px; color: var(--muted); }
.plan .total span { font-size: 1rem; margin-left: 4px; }
.plan-featured .total { color: var(--accent-dark); border-top-color: rgba(194,93,5,.35); }

/* 料金カード：中身を縦方向の中央に */
.plan { display: flex; flex-direction: column; justify-content: center; }

/* 機能カードの画像 */
.func-img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin: 0 0 12px;
}

/* 便利な機能カード：一回り大きく（PCは2×2で配置） */
#functions .inner { max-width: 1040px; }
.func-grid li { padding: 24px 22px; text-align: center; }
.func-grid strong { font-size: 1.35rem; margin-bottom: 6px; }
.func-grid li { font-size: 1.05rem; }
.func-img { height: 150px; margin-bottom: 16px; }
@media (min-width: 1024px) {
  .func-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .func-grid li { padding: 36px 32px; }
  .func-img { height: 180px; }
}

/* kinou2.gif は少し小さめに */
.func-img-sm { height: 120px; }
@media (min-width: 1024px) {
  .func-img-sm { height: 145px; }
}
.func-img-sm { margin-top: 15px; margin-bottom: 31px; }   /* 他の画像の枠（150px）の中央に */
@media (min-width: 1024px) {
  .func-img-sm { margin-top: 17px; margin-bottom: 33px; }  /* 他の画像の枠（180px）の中央に */
}

/* 切り抜き手順の画像 */
.step-img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

/* セクション間の区切り：余白の中に点線 */
.sub-block {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 2px dashed #bdb9b4;
}

/* 手順の下：下矢印と保存結果 */
.clip-arrow { display: flex; justify-content: center; margin: 28px 0 20px; color: var(--accent); }
.clip-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.clip-result-img {
  display: block;
  width: 200px;
  max-width: 60%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  background: #fff;
}
.clip-result-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
}
@media (min-width: 720px) {
  .clip-result { flex-direction: row; justify-content: center; gap: 36px; text-align: left; }
  .clip-result-text { font-size: 1.6rem; }
}

/* 切り抜きのメリットの上にも区切りの点線 */
.merit-title {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 2px dashed #bdb9b4;
}

/* 切り抜きのメリット：見出し付きカード */
.merit { font-weight: 400; color: var(--text); padding: 22px 24px; }
.merit h4 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--navy);
}
.merit p { font-weight: 400; font-size: 1rem; }
.merit .merit-note { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.merit-title { font-size: 1.8rem; }

/* 切り抜きのメリットのカード画像（縦長の写真を横長にトリミング） */
.merit-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 8px;
  margin: 0 0 16px;
}

/* 切り抜きのメリット：縦2段・左右交互（1段目＝文字左／画像右、2段目＝画像左／文字右） */
.merits { grid-template-columns: 1fr; gap: 24px; }
.merit { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
.merit-img { margin: 0; }
.merit-body { min-width: 0; align-self: center; }
@media (min-width: 720px) {
  .merits { grid-template-columns: 1fr; gap: 28px; }
  .merit { flex-direction: row-reverse; align-items: center; gap: 32px; padding: 28px 32px; }   /* 画像が右 */
  .merit:nth-child(even) { flex-direction: row; }                                                /* 画像が左 */
  .merit-img { flex: 0 0 40%; width: 40%; }
  .merit-body { flex: 1 1 auto; }
  .merit h4 { font-size: 1.35rem; }
  .merit p { font-size: 1.05rem; }
}

/* 切り抜きのメリットの画像：横からふわっと表示 */
.js .merit { overflow: hidden; }
.js .merit-img {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22,.61,.36,1);
}
.js .merit:nth-child(even) .merit-img { transform: translateX(-48px); }
.js .merit-img.is-in { opacity: 1; transform: none; transition-delay: .15s; }
@media (min-width: 720px) {
  .js .merit-img { transform: translateX(90px); }
  .js .merit:nth-child(even) .merit-img { transform: translateX(-90px); }
  .js .merit-img.is-in,
  .js .merit:nth-child(even) .merit-img.is-in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .merit-img { opacity: 1; transform: none; transition: none; }
}
.js .merit:nth-child(even) .merit-img.is-in { transform: none; }

/* 「簡単に保存」のマーカー：画面に入ったら引かれる */
.js .clip-result-text .mark { animation: none; background-size: 0% 100%; }
.js .clip-result-text.is-in .mark { animation: marker-draw .9s cubic-bezier(.4,0,.2,1) .3s forwards; }
@media (prefers-reduced-motion: reduce) {
  .js .clip-result-text .mark { animation: none; background-size: 100% 100%; }
}

/* KCデジタルは、こんな方におすすめです */
.recommend { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.recommend li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 20px 62px;
}
.recommend li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recommend h3 { font-size: 1.1rem; line-height: 1.5; margin-bottom: 4px; }
.recommend p { font-size: 1rem; }
@media (min-width: 720px) {
  .recommend { grid-template-columns: 1fr 1fr; gap: 18px; }
  .recommend li:last-child { grid-column: 1 / -1; }
  .recommend h3 { font-size: 1.2rem; }
}

/* おすすめ：画像つきカード（画像を上、チェックと文字を下） */
.recommend li { padding: 0; overflow: hidden; }
.recommend li::before { content: none; }
.rec-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.rec-body { position: relative; padding: 20px 20px 20px 62px; }
.rec-body::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== おすすめ：写真を大きく見せるカード（番号・テキスト重ね・ホバー拡大・順に登場） ===== */
.recommend { counter-reset: rec; gap: 16px; }
.recommend li {
  counter-increment: rec;
  position: relative;
  min-height: 300px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #2a292b;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.rec-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22,.61,.36,1);
}
.recommend li:hover .rec-img { transform: scale(1.07); }

/* 番号（01, 02 …） */
.recommend li::before {
  content: counter(rec, decimal-leading-zero);
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  width: auto;
  height: auto;
  padding: 2px 14px 3px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  display: block;
}

/* 写真の下側に重ねる文字 */
.rec-body {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 20px 20px;
  background: linear-gradient(to bottom, rgba(24,23,24,0) 0%, rgba(24,23,24,.78) 55%, rgba(24,23,24,.9) 100%);
  color: #fff;
}
.rec-body::before { content: none; }
.recommend h3 { color: #fff; font-size: 1.2rem; line-height: 1.5; margin-bottom: 6px; }
.recommend p { color: rgba(255,255,255,.92); font-size: .98rem; }

/* 順に現れる */
.js .recommend li { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
.js .recommend li.is-in { opacity: 1; transform: none; }
.js .recommend li:nth-child(2n) { transition-delay: .12s; }
.js .recommend li:nth-child(3n) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .js .recommend li { opacity: 1; transform: none; transition: none; }
  .rec-img { transition: none; }
}

/* タブレット：2列 */
@media (min-width: 720px) {
  .recommend { grid-template-columns: 1fr 1fr; gap: 18px; }
  .recommend li { min-height: 300px; }
  .recommend li:last-child { grid-column: 1 / -1; }
}

/* PC：大・小を組み合わせたレイアウト（2枚 → 3枚 → 2枚） */
@media (min-width: 1024px) {
  .recommend { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 340px; gap: 20px; }
  .recommend li { min-height: 0; grid-column: span 2; }
  .recommend li:nth-child(1),
  .recommend li:nth-child(2),
  .recommend li:nth-child(6),
  .recommend li:nth-child(7) { grid-column: span 3; }
  .rec-body { padding: 80px 24px 24px; }
  .recommend h3 { font-size: 1.3rem; }
}

/* ===== おすすめ：横スクロール式（スワイプ／ドラッグ／矢印ボタン） ===== */
.rec-carousel { position: relative; }
.recommend {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 18px;
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: #bdb9b4 transparent;
  cursor: grab;
}
.recommend.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.recommend li,
.js .recommend li,
.js .recommend li.is-in {
  flex: 0 0 auto;
  width: min(78vw, 320px);
  height: 400px;
  min-height: 0;
  grid-column: auto;
  scroll-snap-align: start;
  opacity: 1;
  transform: none;
  transition: none;
}
.recommend li:last-child { grid-column: auto; }
.recommend .rec-img { pointer-events: none; }

/* 前へ・次へ */
.rec-nav {
  position: absolute;
  top: calc(50% - 20px);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  padding: 0 0 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  cursor: pointer;
  display: none;
  transition: opacity .2s, background .2s;
}
.rec-nav:hover { background: var(--accent); color: #fff; }
.rec-nav:disabled { opacity: .35; cursor: default; background: #fff; color: var(--navy); }
.rec-prev { left: -14px; }
.rec-next { right: -14px; }

/* 現在位置 */
.rec-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: .9rem;
  color: var(--muted);
}
.rec-count { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .recommend li,
  .js .recommend li,
  .js .recommend li.is-in { width: 340px; height: 420px; }
  .rec-nav { display: block; }
  .recommend { gap: 20px; }
}
@media (min-width: 1024px) {
  .recommend { grid-auto-rows: auto; }
  .recommend li,
  .js .recommend li,
  .js .recommend li.is-in { width: 360px; height: 440px; grid-column: auto; }
  .recommend li:nth-child(n) { grid-column: auto; }
}

/* ロゴ右のアイコン */
.brand-main { display: inline-flex; align-items: center; gap: 8px; }
.brand-icon { display: block; width: 30px; height: 30px; object-fit: contain; }
@media (min-width: 1024px) {
  .brand-icon { width: 46px; height: 46px; }
  .brand-main { gap: 10px; }
}

/* ===== PC：左ナビを画面の高さに収める（縦スクロールをなくす） ===== */
@media (min-width: 1024px) {
  .side {
    padding: clamp(14px, 2.6vh, 28px) 20px clamp(12px, 2vh, 20px);
    overflow-y: auto;
    scrollbar-width: none;             /* 万一あふれても、スクロールバーは出さない */
  }
  .side::-webkit-scrollbar { display: none; }
  .brand { padding-bottom: clamp(10px, 2vh, 24px); margin-bottom: clamp(4px, 1vh, 8px); }
  .brand-icon { width: clamp(34px, 5.4vh, 46px); height: clamp(34px, 5.4vh, 46px); }
  .tabnav { gap: clamp(3px, .6vh, 6px); }
  .tabnav button {
    padding: clamp(8px, 1.6vh, 16px) 18px;
    font-size: clamp(.95rem, 1.9vh, 1.1rem);
    min-height: 0;
  }
  .tabnav button span { width: clamp(24px, 3.4vh, 30px); height: clamp(24px, 3.4vh, 30px); }
  .side-cta { gap: clamp(8px, 1.2vh, 12px); padding-top: clamp(12px, 2vh, 24px); }
  .side-cta .btn { padding: clamp(8px, 1.3vh, 12px) 10px; min-height: 0; }
  .side-tel { font-size: clamp(1.05rem, 2.2vh, 1.3rem); }
}
/* 背の低い画面ではコピーライトを省略 */
@media (min-width: 1024px) and (max-height: 820px) {
  .side .copy { display: none; }
}

/* 横向きスマホなど、高さの低い画面：上部ナビを固定せず、内容の表示領域を広く */
@media (max-width: 1023px) and (max-height: 520px) {
  .side { position: static; }
  .bottombar { position: static; box-shadow: none; }
  .panel { padding-bottom: 32px; }
  .panel-top { min-height: 0; }
}

/* ===== 料金カード（色分けした4枚・2×2） ===== */
.pcards { display: grid; grid-template-columns: 1fr; gap: 18px; }
.pcard {
  --c: #3a393b;      /* 見出し帯の色 */
  --bg: #f1f0ee;     /* カード下地の色 */
  display: flex;
  flex-direction: column;
  border: 3px solid var(--c);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}
.pcard-1 { --c: #3a393b; --bg: #f1f0ee; }   /* チャコール */
.pcard-2 { --c: #2f7d52; --bg: #e9f3ec; }   /* グリーン（サンプルボタンと同系） */
.pcard-3 { --c: #e8710a; --bg: #fdf0e2; }   /* オレンジ（アクセント色） */
.pcard-4 { --c: #7a5230; --bg: #f4ede4; }   /* ブラウン */

.pcard-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 14px 16px;
  background: var(--c);
  color: #fff;
  font-size: clamp(1.15rem, 4.6vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: .02em;
}
.pcard-head small { flex-basis: 100%; padding-left: 48px; font-size: .8em; font-weight: 600; }
.pcard-no {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--c);
  font-size: 1.3rem;
  line-height: 36px;
  text-align: center;
}
.pcard-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 16px 18px;
  min-height: 150px;
}
.pcard-price {
  align-self: flex-end;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 18px 4px 20px;
  background: linear-gradient(transparent 12%, rgba(232,113,10,.28) 12%, rgba(232,113,10,.28) 92%, transparent 92%);
  border-radius: 6px;
  color: var(--accent-dark);
  font-family: var(--font-head);
  line-height: 1.2;
  white-space: nowrap;
}
.pcard-num { font-size: clamp(2.4rem, 11vw, 3.6rem); font-weight: 800; letter-spacing: -.01em; }
.pcard-unit { font-size: clamp(1rem, 3.6vw, 1.35rem); font-weight: 700; color: var(--navy); }
.pcard-note { margin-top: 10px; text-align: right; font-size: .85rem; color: var(--muted); }

@media (min-width: 720px) {
  .pcards { grid-template-columns: 1fr 1fr; gap: 22px; }
  .pcard-head { font-size: clamp(1.05rem, 2.3vw, 1.35rem); padding: 14px 18px; }
  .pcard-num { font-size: clamp(2.2rem, 5vw, 3.2rem); }
  .pcard-unit { font-size: clamp(.95rem, 1.8vw, 1.2rem); }
  .pcard-body { min-height: 170px; padding: 28px 18px 20px; }
}
@media (min-width: 1024px) {
  .pcards { gap: 28px; }
  .pcard-head { font-size: 1.5rem; padding: 16px 22px; }
  .pcard-no { width: 40px; height: 40px; line-height: 40px; font-size: 1.45rem; }
  .pcard-head small { padding-left: 52px; }
  .pcard-num { font-size: 3.6rem; }
  .pcard-unit { font-size: 1.35rem; }
  .pcard-body { min-height: 200px; padding: 32px 22px 22px; }
}

/* 料金カード：見出しの下の画像（白い枠の中に収める） */
.pcard-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 116px;
  margin: 16px 16px 0;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
}
.pcard-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.pcard-img-sq { height: 100%; width: auto; }
.pcard-body { min-height: 0; padding: 16px 16px 18px; }

@media (min-width: 720px) {
  .pcard-visual { height: 120px; margin: 16px 18px 0; }
  .pcard-body { min-height: 0; padding: 16px 18px 20px; }
}
@media (min-width: 1024px) {
  .pcard-visual { height: 140px; margin: 20px 22px 0; }
  .pcard-body { min-height: 0; padding: 18px 22px 22px; }
}

/* 料金カードの画像：背景透過（白い枠をなくし、カードの色の上に直接置く） */
.pcard-visual { background: transparent; padding: 0; border-radius: 0; }

/* 料金カードの文字：ページ全体の本文フォント（游明朝）に合わせる */
.pcard-head,
.pcard-price,
.pcard-num,
.pcard-unit,
.pcard-no { font-family: var(--font-body); }

/* 料金カード1：説明欄（全幅共通。文字は rem / clamp で追従） */
.pcard-desc { margin-bottom: 14px; text-align: left; }
.pcard-lead { font-weight: 700; font-size: clamp(1rem, 3.8vw, 1.15rem); color: var(--c); line-height: 1.6; }
.pcard-sub { margin-top: 10px; font-weight: 700; font-size: clamp(.85rem, 3.2vw, .95rem); color: var(--c); }
.pcard-list { margin: 6px 0 0; padding: 0; list-style: none; }
.pcard-list li { position: relative; padding-left: 1.2em; font-size: clamp(.85rem, 3.2vw, .95rem); line-height: 1.7; color: var(--navy); }
.pcard-list li::before { content: ""; position: absolute; left: .2em; top: .75em; width: .45em; height: .45em; border-radius: 50%; background: var(--c); }
@media (min-width: 1024px) {
  .pcard-lead { font-size: 1.2rem; }
  .pcard-sub, .pcard-list li { font-size: 1rem; }
}

/* 料金カードの説明文（段落） */
.pcard-text { font-size: clamp(.85rem, 3.2vw, .95rem); line-height: 1.8; color: var(--navy); }
@media (min-width: 1024px) { .pcard-text { font-size: 1rem; } }
.pcard-lead + .pcard-text { margin-top: 8px; }

/* 料金カード：2列のとき、左右のカードで文字の高さ位置を揃える（サブグリッド）
   1列（スマホ）のときは縦に並ぶだけなので従来どおり */
@media (min-width: 720px) {
  @supports (grid-template-rows: subgrid) {
    .pcards { --px: 18px; row-gap: 0; }
    .pcard {
      display: grid;
      grid-row: span 8;
      grid-template-rows: subgrid;
      row-gap: 0;
      margin-bottom: 22px;
      padding-bottom: 20px;
    }
    .pcard:nth-last-child(-n+2) { margin-bottom: 0; }
    .pcard-body, .pcard-desc { display: contents; }

    .pcard-head    { grid-row: 1; }
    .pcard-visual  { grid-row: 2; }
    .pcard-lead    { grid-row: 3; }
    .pcard-text    { grid-row: 4; }
    .pcard-sub     { grid-row: 5; }
    .pcard-list    { grid-row: 6; }
    .pcard-price   { grid-row: 7; justify-self: end; align-self: end; }
    .pcard-note    { grid-row: 8; }

    .pcard-lead, .pcard-text, .pcard-sub, .pcard-list, .pcard-note {
      margin-left: var(--px);
      margin-right: var(--px);
    }
    .pcard-lead { margin-top: 14px; }
    .pcard-text { margin-top: 8px; }
    .pcard-sub  { margin-top: 12px; }
    .pcard-price { margin: 16px var(--px) 0 0; }
    .pcard-note { margin-top: 10px; }
  }
}
@media (min-width: 1024px) {
  @supports (grid-template-rows: subgrid) {
    .pcards { --px: 22px; }
    .pcard { margin-bottom: 28px; padding-bottom: 22px; }
    .pcard:nth-last-child(-n+2) { margin-bottom: 0; }
  }
}

/* ===== 料金カード4：いちばんおすすめ（目立たせる） ===== */
.pcard-4 {
  position: relative;
  border-color: #c8901a;
  box-shadow: 0 0 0 4px rgba(200,144,26,.22), 0 12px 28px rgba(122,82,48,.30);
  background: linear-gradient(180deg, #fbf2dc 0%, #f4ede4 55%);
}
.pcard-badge {
  margin-left: auto;
  padding: 3px 14px 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f6c445, #e8a317);
  color: #3a2a10;
  font-family: var(--font-body);
  font-size: .62em;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}
.pcard-badge::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg);
  animation: badge-shine 3.2s ease-in-out infinite;
}
@keyframes badge-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }

.pcard-4 .pcard-price {
  background: linear-gradient(transparent 12%, rgba(246,196,69,.75) 12%, rgba(246,196,69,.75) 92%, transparent 92%);
  color: #8a2a00;
}
.pcard-save {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #7a5230;
  color: #fff;
  font-size: clamp(.85rem, 3.2vw, .95rem);
  line-height: 1.6;
  text-align: center;
}
.pcard-save b { color: #ffd869; font-weight: 800; }
@media (min-width: 1024px) { .pcard-save { font-size: 1rem; } }

@media (prefers-reduced-motion: reduce) { .pcard-badge::after { animation: none; display: none; } }

/* 説明の行を1つ増やす（おすすめ帯の行）。2列時の行揃え用 */
@media (min-width: 720px) {
  @supports (grid-template-rows: subgrid) {
    .pcard { grid-row: span 9; }
    .pcard-save { grid-row: 8; margin-left: var(--px); margin-right: var(--px); }
    .pcard-note { grid-row: 9; }
  }
}

/* ===== 1日：利用シーン7つ（ラベル＋一言） ===== */
.timeline.scenes { display: grid; grid-template-columns: 1fr; gap: 14px; }
.timeline.scenes li { display: block; padding: 0; }
.timeline.scenes li::before { display: none; }
.timeline.scenes .time {
  display: inline-block;
  padding: 5px 16px;
  margin-bottom: 8px;
  font-size: clamp(.95rem, 3.6vw, 1.05rem);
  white-space: nowrap;
}
.timeline.scenes li > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.timeline.scenes p { font-size: clamp(.95rem, 3.6vw, 1.05rem); line-height: 1.7; }
@media (min-width: 720px) {
  .timeline.scenes { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .timeline.scenes li { display: flex; flex-direction: column; align-items: flex-start; }
  .timeline.scenes li > div { width: 100%; flex: 1 1 auto; }
}
@media (min-width: 1024px) {
  .timeline.scenes { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .timeline.scenes li > div { padding: 16px 18px; }
}

/* ===== お客様の声（利用シーン別） ===== */
.voices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.voice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.voice-scene {
  align-self: flex-start;
  padding: 4px 14px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: clamp(.9rem, 3.4vw, 1rem);
  white-space: nowrap;
}
.voice-text {
  position: relative;
  flex: 1 1 auto;
  margin: 0;
  padding: 26px 0 0;
  font-size: clamp(.95rem, 3.6vw, 1.05rem);
  line-height: 1.85;
}
.voice-text::before {
  content: "“";
  position: absolute; left: -2px; top: -6px;
  font-family: var(--font-head);
  font-size: 3.4rem; line-height: 1;
  color: var(--accent);
}
.voice-who {
  margin: 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  text-align: right;
  font-size: .9rem;
  font-weight: 700;
  color: var(--muted);
}
@media (min-width: 720px) { .voices { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .voices { grid-template-columns: repeat(3, 1fr); } .voice { padding: 20px 22px 18px; } }

/* ===== お客様の声：横に流れるマーキー ===== */
.voices-wrap { position: relative; }
.voices {
  display: flex;
  grid-template-columns: none;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 2px 8px;
  cursor: grab;
  overscroll-behavior-x: contain;
}
.voices::-webkit-scrollbar { display: none; }
.voice { flex: 0 0 82%; user-select: none; }
@media (min-width: 720px) {
  .voices { gap: 20px; }
  .voice { flex-basis: calc((100% - 20px) / 2); }
}
@media (min-width: 1024px) {
  .voice { flex-basis: calc((100% - 40px) / 3); }
}
.vc-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.9rem;
  line-height: 1;
  padding: 0 0 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.vc-nav:hover { background: var(--accent); color: #fff; }
.vc-prev { left: -8px; }
.vc-next { right: -8px; }
@media (min-width: 1024px) { .vc-nav { width: 48px; height: 48px; margin-top: -24px; } .vc-prev { left: -16px; } .vc-next { right: -16px; } }

/* お客様の声：カードを大きく（全幅で表示枚数を減らし、文字・余白も拡大） */
.voice { flex-basis: 90%; padding: 24px 22px 20px; gap: 14px; min-height: 300px; }
.voice-scene { font-size: clamp(1rem, 3.8vw, 1.15rem); padding: 5px 16px; }
.voice-text { font-size: clamp(1.05rem, 4vw, 1.2rem); line-height: 1.9; padding-top: 32px; }
.voice-text::before { font-size: 4rem; top: -4px; }
.voice-who { font-size: 1rem; }
@media (min-width: 720px) {
  .voice { flex-basis: calc((100% - 20px) / 1.7); min-height: 340px; padding: 28px 28px 22px; }
  .voice-text { font-size: 1.15rem; }
}
@media (min-width: 1024px) {
  .voice { flex-basis: calc((100% - 40px) / 2.5); min-height: 380px; padding: 32px 32px 26px; }
  .voice-scene { font-size: 1.2rem; }
  .voice-text { font-size: 1.25rem; }
  .voice-who { font-size: 1.05rem; }
}

/* お客様の声：カードに色と柄（料金カードと同系の4色。7枚周期なのでマーキーの継ぎ目も自然） */
.voice {
  --c: #3a393b; --bg: #f1f0ee; --dot: rgba(58,57,59,.10);
  background-color: var(--bg);
  border: 1px solid var(--c);
  border-top: 6px solid var(--c);
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  background-image: radial-gradient(var(--dot) 1.6px, transparent 1.8px);
  background-size: 18px 18px;
}
.voice:nth-child(7n+1), .voice:nth-child(7n+5) { --c: #2f7d52; --bg: #e9f3ec; --dot: rgba(47,125,82,.16); }   /* グリーン */
.voice:nth-child(7n+2), .voice:nth-child(7n+6) { --c: #e8710a; --bg: #fdf0e2; --dot: rgba(232,113,10,.18); }  /* オレンジ */
.voice:nth-child(7n+3), .voice:nth-child(7n+7) { --c: #7a5230; --bg: #f4ede4; --dot: rgba(122,82,48,.16); }   /* ブラウン */
.voice:nth-child(7n+4) { --c: #3a393b; --bg: #f1f0ee; --dot: rgba(58,57,59,.12); }                           /* チャコール */
.voice-scene { background: var(--c); }
.voice-text::before { color: var(--c); }
.voice-who { border-top-color: var(--c); color: var(--c); }
/* 文字の読みやすさのため、声の部分だけ柄を白でぼかす */
.voice-text { background: linear-gradient(rgba(255,255,255,.78), rgba(255,255,255,.78)) no-repeat; background-position: 0 28px; background-size: 100% calc(100% - 28px); padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.voice-text::before { left: 4px; }

/* お客様の声：1色（落ち着いたチャコール）＋斜めストライプ */
.voice,
.voice:nth-child(n) {
  --c: #3a393b;
  --bg: #f6f5f3;
  background-color: var(--bg);
  background-image: repeating-linear-gradient(135deg, rgba(58,57,59,.06) 0, rgba(58,57,59,.06) 2px, transparent 2px, transparent 12px);
  background-size: auto;
}

/* お客様の声：流れるカードは画面の端から端まで（見出しなどは従来の幅のまま） */
#day .inner { max-width: none; }
#day .inner > h2,
#day .inner > .sub-block { max-width: 920px; margin-left: auto; margin-right: auto; }
.voices-wrap { margin-left: -16px; margin-right: -16px; }
.voices { padding-left: 16px; padding-right: 16px; }
.vc-prev { left: 12px; }
.vc-next { right: 12px; }
@media (min-width: 720px) {
  .voices-wrap { margin-left: -48px; margin-right: -48px; }
  .voices { padding-left: 48px; padding-right: 48px; }
  .voice { flex-basis: 420px; }
  .vc-prev { left: 16px; }
  .vc-next { right: 16px; }
}
@media (min-width: 1024px) {
  .voices-wrap { margin-left: -88px; margin-right: -88px; }
  .voices { padding-left: 88px; padding-right: 88px; }
  .voice { flex-basis: 480px; }
  .vc-prev { left: 24px; }
  .vc-next { right: 24px; }
}

/* お客様の声：右上の人物アイコン（白い丸の中に収める） */
.voice-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 56px;
  height: 56px;
  padding: 6px;
  object-fit: contain;
  background: #fff;
  border: 2px solid var(--c);
  border-radius: 50%;
  pointer-events: none;
}
@media (min-width: 720px) { .voice-icon { top: 18px; right: 18px; width: 68px; height: 68px; } }
@media (min-width: 1024px) { .voice-icon { top: 22px; right: 22px; width: 80px; height: 80px; padding: 8px; } }

/* ===== スマホ・タブレットの上部ナビ：全項目を一度に見せる（横スクロールをやめる） =====
   ナビは固定せず、ページ先頭に置く。項目を選ぶと自動で先頭に戻るので、選び直しも簡単 */
@media (max-width: 1023px) {
  .side { position: static; padding: 12px 16px 14px; }
  .tabnav { overflow: visible; padding: 0; }
  .tabnav button { white-space: normal; text-align: left; line-height: 1.35; }
}
@media (max-width: 719px) {
  :root { --head-h: 290px; }
  .tabnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .tabnav button {
    min-height: 52px;
    padding: 8px 10px 8px 8px;
    border-radius: 14px;
    font-size: .88rem;
    gap: 8px;
  }
  .tabnav button:last-child { grid-column: 1 / -1; }
  .sample-mobile { top: 12px; right: 16px; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  :root { --head-h: 200px; }
  .tabnav { flex-wrap: wrap; gap: 10px; }
  .tabnav button { min-height: 52px; font-size: 1rem; padding: 10px 18px 10px 12px; }
}

/* ===== スマホ・タブレットの上部ナビ：アコーディオン（押すと開き、項目を選ぶとまた閉じる） ===== */
.menu-toggle { display: none; }
@media (max-width: 1023px) {
  :root { --head-h: 128px; }
  .side { position: sticky; top: 0; padding: 10px 16px 10px; max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
  .brand { padding-bottom: 8px; }
  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 8px 14px;
    font: inherit;
    font-weight: 700;
    color: var(--navy);
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
  }
  .menu-toggle:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
  .menu-toggle-icon {
    flex: 0 0 auto;
    width: 20px; height: 14px;
    background:
      linear-gradient(var(--navy), var(--navy)) 0 0 / 100% 2px no-repeat,
      linear-gradient(var(--navy), var(--navy)) 0 6px / 100% 2px no-repeat,
      linear-gradient(var(--navy), var(--navy)) 0 12px / 100% 2px no-repeat;
  }
  .menu-toggle-label { flex: 0 0 auto; font-size: 1rem; }
  .menu-toggle-now {
    flex: 1 1 auto; min-width: 0;
    font-size: .85rem; font-weight: 600; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .menu-toggle-now:not(:empty)::before { content: "／ "; }
  .menu-toggle-arrow {
    flex: 0 0 auto;
    width: 10px; height: 10px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s;
  }
  .side.is-open .menu-toggle { background: var(--accent); border-color: var(--accent); color: #fff; }
  .side.is-open .menu-toggle-now { color: rgba(255,255,255,.9); }
  .side.is-open .menu-toggle-icon {
    background:
      linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) 0 6px / 100% 2px no-repeat,
      linear-gradient(#fff, #fff) 0 12px / 100% 2px no-repeat;
  }
  .side.is-open .menu-toggle-arrow { border-color: #fff; transform: rotate(225deg) translateY(-2px); }

  /* 閉じているときは項目を隠し、開くとなめらかに現れる */
  .tabnav { display: none; margin-top: 10px; }
  .side.is-open .tabnav { display: flex; animation: menu-open .25s ease both; }
  @keyframes menu-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 719px) {
  .side.is-open .tabnav { display: grid; }
  .sample-mobile { top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .side.is-open .tabnav { animation: none; } }

/* ===== 画面下のバー：申し込み＋サンプルを読む（小さめ・2つ横並び） ===== */
@media (max-width: 1023px) {
  :root { --bar-h: 60px; }
  .bottombar { justify-content: center; gap: 8px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); }
  .bottombar .btn {
    flex: 1 1 0;
    min-width: 0;
    max-width: 260px;
    min-height: 42px;
    padding: 6px 8px;
    font-size: clamp(.78rem, 3.3vw, .92rem);
    line-height: 1.25;
    text-align: center;
  }
  .bottombar .btn-primary { flex: 1.35 1 0; max-width: 320px; }
}

/* スマホ・タブレット：ロゴ部分（会社名＋KCデジタル）を1行に */
@media (max-width: 1023px) {
  .brand { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 8px; width: 100%; }
  .brand small { flex: 0 1 auto; min-width: 0; font-size: clamp(.58rem, 2.7vw, .75rem); line-height: 1.3; white-space: nowrap; }
  .brand-main { flex: 0 0 auto; white-space: nowrap; }
  .brand strong { font-size: clamp(1.05rem, 5vw, 1.4rem); white-space: nowrap; }
  .brand-icon { width: 28px; height: 28px; }
}

/* ===== スマホ・タブレット：ナビ周辺をブラウン背景に／メニューを一目で分かるように ===== */
@media (max-width: 1023px) {
  .side { background: #7a5230; color: #fff; border-bottom: 0; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
  .brand, .brand.is-current strong { color: #fff; }
  .brand small { opacity: .9; }
  .brand:focus-visible, .tabnav button:focus-visible, .menu-toggle:focus-visible { outline-color: #fff; }

  /* メニューボタン：白地＋オレンジ枠で目立たせ、「タップ」の案内を添える */
  .menu-toggle {
    min-height: 54px;
    background: #fff;
    border: 2px solid var(--accent);
    box-shadow: 0 3px 0 var(--accent-dark);
    font-size: 1.05rem;
  }
  .menu-toggle-label { font-size: 1.1rem; color: var(--navy); }
  .menu-toggle-arrow { border-color: var(--accent); }
  .menu-toggle:not(:has(.menu-toggle-now:not(:empty)))::after { content: "タップで開く"; font-size: .8rem; color: var(--muted); margin-left: auto; }
  .side.is-open .menu-toggle { box-shadow: 0 3px 0 var(--accent-dark); }

  /* 開いた項目：白いボタンでブラウンの上にくっきり */
  .tabnav button { background: #fff; border-color: #fff; color: var(--navy); }
  .tabnav button:hover { background: #f4ede4; }
  .tabnav button span { background: #7a5230; color: #fff; }
  .tabnav button[aria-selected="true"] { background: var(--accent); border-color: #fff; color: #fff; }
  .tabnav button[aria-selected="true"] span { background: rgba(255,255,255,.3); }
}

/* ===== スマホ・タブレット：FV画像を見切れさせず全体表示（16:9）、文章はその下に ===== */
@media (max-width: 1023px) {
  .panel-top { display: block; min-height: 0; padding: 0 0 calc(var(--bar-h) + 24px); background: #fff; }
  .top-bg { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
  .top-bg::after { display: none; }
  .slide { background-size: cover; background-position: center; }
  .top-inner { padding: 22px 16px 0; max-width: none; }
  .top-text { text-shadow: none; max-width: none; }
}

/* ===== スマホ・タブレット：FVの背景に薄いベージュ＋うっすらドット柄 ===== */
@media (max-width: 1023px) {
  .panel-top {
    background-color: #f6efe6;
    background-image:
      radial-gradient(rgba(122,82,48,.10) 1.5px, transparent 1.7px),
      radial-gradient(rgba(122,82,48,.06) 1.5px, transparent 1.7px);
    background-size: 22px 22px, 22px 22px;
    background-position: 0 0, 11px 11px;
  }
}

/* FV背景の柄をドットから斜めの細いストライプに変更 */
@media (max-width: 1023px) {
  .panel-top {
    background-color: #f6efe6;
    background-image: repeating-linear-gradient(45deg, rgba(122,82,48,.07) 0, rgba(122,82,48,.07) 1px, transparent 1px, transparent 14px);
    background-size: auto;
    background-position: 0 0;
  }
}

/* FV背景の柄を青海波（波模様）に変更 */
@media (max-width: 1023px) {
  .panel-top {
    background-color: #f6efe6;
    background-image:
      radial-gradient(circle at 50% 100%, transparent 0 9px, rgba(122,82,48,.10) 9px 10px, transparent 10px 15px, rgba(122,82,48,.10) 15px 16px, transparent 16px 21px, rgba(122,82,48,.10) 21px 22px, transparent 22px),
      radial-gradient(circle at 50% 100%, transparent 0 9px, rgba(122,82,48,.10) 9px 10px, transparent 10px 15px, rgba(122,82,48,.10) 15px 16px, transparent 16px 21px, rgba(122,82,48,.10) 21px 22px, transparent 22px);
    background-size: 44px 22px, 44px 22px;
    background-position: 0 0, 22px 11px;
  }
}

/* ===== スマホ：全体を一回り小さく、左右の余白を広めに ===== */
@media (max-width: 719px) {
  html { font-size: 14.5px; }
  body { font-size: 1rem; }
  .panel { padding: 28px 22px calc(var(--bar-h) + 28px); }
  .panel-top { padding: 0 0 calc(var(--bar-h) + 24px); }
  .top-inner { padding: 22px 22px 0; }
  h2 { margin-bottom: 22px; }
  .features-img, .funcs-img, .day-img, .clip-img { margin-top: 18px; }
}

/* スマホ・タブレット：下部バーの背景をナビと同じブラウンに */
@media (max-width: 1023px) {
  .bottombar { background: #7a5230; border-top: 0; box-shadow: 0 -2px 8px rgba(0,0,0,.18); }
}

/* スマホ・タブレット：上部ナビと下部バーを濃いグレーに */
@media (max-width: 1023px) {
  .side, .bottombar { background: #3a393b; }
  .tabnav button span { background: #3a393b; }
}
