/* ==========================================================
   Arai Web Studio — site styles
   ========================================================== */
:root {
  --c-bg: #ffffff;
  --c-bg-alt: #f5f7fa;
  --c-bg-dark: #0f1b2d;
  --c-text: #1a2230;
  --c-text-muted: #5b6676;
  --c-text-on-dark: #e8edf5;
  --c-primary: #0b5ed7;
  --c-primary-dark: #0948a8;
  --c-primary-soft: #e7f0ff;
  --c-accent: #ff8a1f;
  --c-accent-dark: #e4740d;
  --c-line: #dfe4ec;
  --c-success: #1c8a4e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 18px 50px rgba(15, 27, 45, 0.14);
  --max: 1120px;
  --gutter: 16px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.8;
  font-size: 16px;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  /* 文節単位で改行（tools/add_wbr.py が <wbr> を挿入） */
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
h1, h2, h3, summary, .section__lead, .plan__for { text-wrap: balance; }
p, li, td, small { text-wrap: pretty; }

img, svg { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.2em; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding: 72px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-bg-dark); color: var(--c-text-on-dark); }
.section--dark .section__title { color: #fff; }
.section--dark .section__lead { color: #b9c4d6; }

.section__head { text-align: center; margin-bottom: 44px; }
.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section--dark .section__eyebrow { color: var(--c-accent); }
.section__title { font-size: clamp(24px, 4vw, 34px); }
.section__lead { color: var(--c-text-muted); max-width: 680px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); }
.btn--outline { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary-soft); }
.btn--white { background: #fff; color: var(--c-primary); }
.btn--lg { padding: 18px 36px; font-size: 18px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--c-primary), #3b8bff);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.brand__sub { display: block; font-size: 11px; font-weight: 500; color: var(--c-text-muted); line-height: 1.2; letter-spacing: 0; }

.nav { display: none; align-items: center; gap: 28px; }
.nav a { color: var(--c-text); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--c-primary); text-decoration: none; }
.nav .btn { padding: 10px 20px; font-size: 14px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--c-text); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--c-line);
  background: #fff;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-text);
  font-weight: 500;
}
.mobile-nav a:hover { text-decoration: none; background: var(--c-bg-alt); }
.mobile-nav .btn { margin: 16px var(--gutter); display: flex; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, #dbe8ff 0%, transparent 60%),
              linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-success); }
.hero__title {
  font-size: clamp(28px, 5.4vw, 46px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
.hero__title em { font-style: normal; color: var(--c-primary); }
.hero__lead { font-size: clamp(15px, 2vw, 18px); color: var(--c-text-muted); margin-bottom: 28px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 14px; color: var(--c-text-muted); }
.hero__points li { position: relative; padding-left: 1.2em; }
.hero__points li::before { content: "✓"; color: var(--c-success); font-weight: 800; position: absolute; left: 0; }

.hero__visual { position: relative; }
.mock {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--c-line);
}
.mock__bar { display: flex; gap: 6px; padding: 10px 14px; background: #eef2f7; border-bottom: 1px solid var(--c-line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e0; display: block; }
.mock__body { padding: 20px; display: grid; gap: 12px; }
.mock__hero { height: 110px; border-radius: 10px; background: linear-gradient(120deg, #0b5ed7, #3b8bff 60%, #8ec0ff); position: relative; }
.mock__hero::after { content: ""; position: absolute; left: 16px; top: 20px; width: 55%; height: 12px; background: rgba(255,255,255,0.85); border-radius: 6px; box-shadow: 0 24px 0 -2px rgba(255,255,255,0.6), 0 44px 0 -4px rgba(255,255,255,0.45); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__card { height: 64px; border-radius: 8px; background: var(--c-bg-alt); border: 1px solid var(--c-line); position: relative; }
.mock__card::before { content: ""; position: absolute; left: 10px; top: 10px; width: 50%; height: 8px; border-radius: 4px; background: #cfd6e0; box-shadow: 0 16px 0 0 #e3e8ef; }
.mock__line { height: 10px; border-radius: 5px; background: #e3e8ef; }
.mock__line--short { width: 60%; }
.float {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--c-line);
}
.float--1 { left: -8px; bottom: 36px; }
.float--2 { right: -8px; top: 24px; }
.float__icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 16px; }
.float__icon--map { background: #1c8a4e; }
.float__icon--ai { background: var(--c-accent); }
.float small { display: block; font-weight: 500; color: var(--c-text-muted); }

@media (min-width: 900px) {
  .hero { padding: 96px 0 88px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* ---------- Problems ---------- */
.problems { display: grid; gap: 14px; }
.problem {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.problem__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.problem p { margin: 0; font-weight: 600; }
.problem small { display: block; font-weight: 400; color: var(--c-text-muted); font-size: 14px; margin-top: 4px; }
@media (min-width: 720px) { .problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .problems { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Services ---------- */
.services { display: grid; gap: 20px; }
.service {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: grid;
  place-items: center;
}
.service__icon svg { width: 26px; height: 26px; }
.service h3 { font-size: 20px; margin: 0; }
.service__tag { font-size: 12px; color: var(--c-text-muted); letter-spacing: 0.08em; }
.service p { margin: 0; color: var(--c-text-muted); font-size: 15px; flex: 1; }
.service__price { font-weight: 700; color: var(--c-primary); font-size: 15px; padding-top: 10px; border-top: 1px dashed var(--c-line); }
.service__price small { color: var(--c-text-muted); font-weight: 500; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 22px; align-items: stretch; }
.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: visible;
}
.plan__head { padding: 26px 24px 18px; border-bottom: 1px solid var(--c-line); }
.plan__name { display: inline-block; font-size: 12px; letter-spacing: 0.16em; font-weight: 800; color: var(--c-primary); background: var(--c-primary-soft); border-radius: 999px; padding: 3px 12px; }
.plan__title { font-size: 21px; margin: 12px 0 6px; line-height: 1.45; }
.plan__for { font-size: 13px; color: var(--c-text-muted); margin: 0; }
.plan__pricebox { padding: 18px 24px; background: var(--c-bg-alt); }
.plan__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan__row + .plan__row { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--c-line); }
.plan__label { font-size: 13px; font-weight: 700; color: var(--c-text-muted); white-space: nowrap; }
.plan__amount { font-size: 14px; font-weight: 700; color: var(--c-text); white-space: nowrap; }
.plan__amount strong { font-size: 32px; line-height: 1.1; color: var(--c-primary); margin-right: 2px; letter-spacing: 0; }
.plan__row--monthly .plan__amount strong { font-size: 26px; color: var(--c-accent-dark); }
.plan__note { font-size: 12px; color: var(--c-text-muted); margin: 10px 0 0; }
.plan__body { padding: 20px 24px 8px; flex: 1; }
.plan__inherit { display: inline-block; font-size: 13px; font-weight: 700; color: var(--c-primary); background: var(--c-primary-soft); border-radius: 6px; padding: 4px 10px; margin: 0 0 12px; }
.plan__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan__list li { position: relative; padding-left: 1.6em; font-size: 14px; line-height: 1.7; }
.plan__list li::before { content: "✓"; color: var(--c-success); font-weight: 800; position: absolute; left: 0; }
.plan > .btn { margin: 16px 24px 24px; width: auto; }

.plan--featured { border: 2px solid var(--c-accent); box-shadow: var(--shadow-lg); }
.plan--featured .plan__head { background: linear-gradient(135deg, #ff9a3c, var(--c-accent-dark)); border-radius: 18px 18px 0 0; border-bottom: 0; padding-top: 30px; }
.plan--featured .plan__name { background: rgba(255,255,255,0.25); color: #fff; }
.plan--featured .plan__title, .plan--featured .plan__for { color: #fff; }
.plan--featured .plan__pricebox { background: #fff6ec; }
.plan--featured .plan__amount strong { color: var(--c-accent-dark); }
.plan--featured .plan__inherit { color: var(--c-accent-dark); background: #fff1e2; }
.plan__ribbon {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: #1a2230;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 27, 45, 0.25);
}

.plans-terms { list-style: none; padding: 0; margin: -16px auto 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.plans-terms li { font-size: 13px; font-weight: 700; color: var(--c-success); background: #e8f6ee; border-radius: 999px; padding: 5px 14px; }
.plans-terms li::before { content: "✓ "; }

@media (min-width: 1000px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; padding-top: 16px; }
  .plans {
    grid-template-rows: auto auto 1fr auto;
  }
  .plan { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .plan--featured { transform: scale(1.03); z-index: 1; }
  .plan--featured.reveal.is-in { transform: scale(1.03); }
}

.price-note { font-size: 13px; color: var(--c-text-muted); margin-top: 14px; }

/* ---------- Flow ---------- */
.flow { display: grid; gap: 18px; counter-reset: step; }
.step {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 20px 22px 70px;
  position: relative;
  box-shadow: var(--shadow);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { margin: 0; font-size: 14px; color: var(--c-text-muted); }
.step__time { display: inline-block; font-size: 12px; color: var(--c-primary); background: var(--c-primary-soft); border-radius: 999px; padding: 2px 10px; margin-top: 8px; font-weight: 700; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(5, 1fr); } .step { padding: 70px 18px 22px; } .step::before { left: 18px; top: 18px; } }

/* ---------- Reasons ---------- */
.reasons { display: grid; gap: 18px; }
.reason {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.reason__num { font-size: 13px; letter-spacing: 0.2em; color: var(--c-accent); font-weight: 700; }
.reason h3 { color: #fff; font-size: 19px; margin: 6px 0 10px; }
.reason p { margin: 0; color: #b9c4d6; font-size: 15px; }
@media (min-width: 720px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .reasons { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q."; color: var(--c-primary); margin-right: 8px; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--c-text-muted);
}
.faq details[open] summary::after { content: "−"; }
.faq .faq__a { padding: 0 0 18px; color: var(--c-text-muted); font-size: 15px; border-top: 1px dashed var(--c-line); padding-top: 14px; }
.faq .faq__a::before { content: "A."; color: var(--c-accent-dark); font-weight: 700; margin-right: 8px; }

/* ---------- Company ---------- */
.company { display: grid; gap: 28px; }
.company__table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.company__table th, .company__table td { padding: 14px 16px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.company__table th { width: 30%; background: var(--c-bg-alt); font-weight: 700; }
.company__table tr:last-child th, .company__table tr:last-child td { border-bottom: 0; }
.company__msg { background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); border-left: 4px solid var(--c-primary); }
.company__msg h3 { font-size: 18px; }
.company__msg p { font-size: 15px; color: var(--c-text-muted); }
.company { max-width: 720px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 28px; }
.contact__info h3 { font-size: 20px; }
.contact__info p { color: var(--c-text-muted); }
.contact__channels { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact__channels li {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
}
.contact__channels svg { width: 22px; height: 22px; color: var(--c-primary); flex: 0 0 auto; }
.form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}
.form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form label .req { color: #d23a3a; font-size: 12px; margin-left: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #c9d1dc;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(11, 94, 215, 0.15); }
.form textarea { min-height: 140px; resize: vertical; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.form__check input { margin-top: 4px; }
.form__note { font-size: 13px; color: var(--c-text-muted); margin: 0; }
.form__status { font-size: 14px; font-weight: 700; margin: 0; min-height: 1.5em; }
.form__status.is-ok { color: var(--c-success); }
.form__status.is-ng { color: #d23a3a; }
@media (min-width: 900px) { .contact { grid-template-columns: 0.8fr 1.2fr; gap: 44px; } }

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary) 60%, #3b8bff);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}
.cta h2 { color: #fff; font-size: clamp(22px, 4vw, 30px); }
.cta p { color: #dbe8ff; margin-bottom: 24px; }
.cta .btn--white:hover { background: #f0f5ff; }

/* ---------- Footer ---------- */
.footer { background: #0a1322; color: #9fb0c8; padding: 40px 0 28px; font-size: 14px; }
.footer__inner { display: grid; gap: 20px; }
.footer__brand { color: #fff; font-weight: 800; font-size: 17px; }
.footer__brand small { display: block; font-weight: 400; color: #9fb0c8; font-size: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 0; }
.footer__links a { color: #c9d4e4; }
.footer__copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 18px; font-size: 12px; }
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1fr auto; align-items: start; } .footer__copy { grid-column: 1 / -1; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  padding: 10px var(--gutter);
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.95);
  border-top: 1px solid var(--c-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { padding: 12px 10px; font-size: 14px; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: 28px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; margin-top: 32px; border-left: 4px solid var(--c-primary); padding-left: 12px; }
.legal p, .legal li { font-size: 15px; color: var(--c-text); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Plans: swipe carousel on small screens ---------- */
.plans-hint { display: none; text-align: center; font-size: 13px; color: var(--c-text-muted); margin: 0 0 4px; }
.plans-dots { display: none; justify-content: center; gap: 8px; margin-top: 4px; }
.plans-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c9d1dc; cursor: pointer; }
.plans-dots button.is-active { background: var(--c-accent); width: 24px; border-radius: 5px; }
@media (max-width: 999px) {
  .plans-hint { display: block; }
  .plans-dots { display: flex; }
  .plans {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gutter) * -1);
    padding: 20px var(--gutter) 16px;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { flex: 0 0 min(86%, 360px); scroll-snap-align: center; }
  .plans { padding-top: 24px; }
}

@media (max-width: 599px) {
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero__actions .btn { padding: 16px 10px; font-size: 16px; }
}

/* ---------- Works (demo samples) ---------- */
.works { display: grid; gap: 22px; }
@media (min-width: 720px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.work__thumb { padding: 22px 22px 0; }
.work__bar { display: flex; gap: 5px; background: rgba(255,255,255,0.7); border-radius: 8px 8px 0 0; padding: 7px 10px; }
.work__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.18); display: block; }
.work__screen { position: relative; height: 150px; border-radius: 0 0 0 0; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; justify-content: center; color: #fff; overflow: hidden; }
.work__shop { font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-shadow: 0 2px 10px rgba(0,0,0,0.25); position: relative; }
.work__line { display: block; height: 8px; width: 60%; border-radius: 4px; background: rgba(255,255,255,0.75); position: relative; }
.work__line--s { width: 40%; opacity: 0.7; }
.work__cta { display: block; width: 96px; height: 24px; border-radius: 999px; margin-top: 6px; position: relative; }
.work__screen::after { content: ""; position: absolute; right: -30px; bottom: -40px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.work__thumb--cafe { background: #efe4d6; }
.work__thumb--cafe .work__screen { background: linear-gradient(135deg, #8a5a3b, #c28b5e); }
.work__thumb--cafe .work__cta { background: #f6e7c8; }
.work__thumb--estate { background: #e2eef0; }
.work__thumb--estate .work__screen { background: linear-gradient(135deg, #1f5f5b, #3e9a8f); }
.work__thumb--estate .work__cta { background: #ffd166; }
.work__thumb--juku { background: #e7ecfb; }
.work__thumb--juku .work__screen { background: linear-gradient(135deg, #2c4bb8, #5c84f0); }
.work__thumb--juku .work__cta { background: #ffb347; }
.work__thumb--rest { background: #f3e1df; }
.work__thumb--rest .work__screen { background: linear-gradient(135deg, #2b1d1a, #7a2e26); }
.work__thumb--rest .work__cta { background: #d9b26f; }
.work__body { padding: 20px 22px 22px; }
.work__cat { font-size: 12px; letter-spacing: 0.14em; font-weight: 700; color: var(--c-primary); }
.work__cat em { font-style: normal; letter-spacing: 0.04em; color: var(--c-text-muted); margin-left: 8px; font-weight: 500; }
.work h3 { font-size: 19px; margin: 6px 0 8px; }
.work p { font-size: 14px; color: var(--c-text-muted); margin: 0 0 12px; }
.work__tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.work__tags li { font-size: 12px; background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: 999px; padding: 2px 10px; color: var(--c-text); }
.works__note { text-align: center; font-size: 13px; color: var(--c-text-muted); margin-top: 22px; }
.work__thumb { position: relative; }
.work__badge { position: absolute; top: 12px; right: 14px; z-index: 1; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: #fff; background: rgba(26, 34, 48, 0.75); border-radius: 999px; padding: 3px 10px; }

/* 料金プラン：幅と余白にゆとり */
@media (min-width: 1000px) {
  #pricing .container { max-width: 1280px; }
  .plan__head { padding: 30px 30px 20px; }
  .plan__pricebox { padding: 20px 30px; }
  .plan__body { padding: 24px 30px 10px; }
  .plan > .btn { margin: 18px 30px 30px; }
  .plan__list { gap: 12px; }
  .plan__list li { font-size: 15px; }
}
@media (max-width: 999px) {
  .plan { flex-basis: min(90%, 400px); }
}
.form select.is-prefilled { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(255, 138, 31, 0.25); transition: box-shadow 0.3s; }

/* ---------- Why us (reasons) ---------- */
.why { background: linear-gradient(180deg, #eef4ff 0%, #ffffff 100%); position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(11, 94, 215, 0.12), transparent 70%); }
.why__grid { display: grid; gap: 32px; position: relative; }
.why__head { text-align: center; }
.why__head .section__title { font-size: clamp(26px, 4.4vw, 38px); }
.why__head .section__title em { font-style: normal; color: var(--c-primary); }
.why__lead { color: var(--c-text-muted); margin: 0 auto 18px; max-width: 520px; }
.why__vs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.why__vs li { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--c-line); border-radius: 999px; padding: 6px 14px; font-size: 13px; box-shadow: var(--shadow); }
.why__vs s { color: #9aa5b4; text-decoration-color: #d23a3a; text-decoration-thickness: 2px; }
.why__vs li::after { content: none; }
.why__vs span { font-weight: 700; color: var(--c-primary); }
.why__vs span::before { content: "✓ "; color: var(--c-success); }
.pc-only { display: none; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.why__item { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px 22px 24px 22px; box-shadow: var(--shadow); overflow: hidden; }
.why__num { position: absolute; right: 14px; top: -10px; font-size: 86px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(11, 94, 215, 0.18); letter-spacing: -0.04em; pointer-events: none; }
.why__icon { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--c-primary), #3b8bff); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(11, 94, 215, 0.28); }
.why__icon svg { width: 26px; height: 26px; }
.why__text h3 { font-size: 19px; margin: 2px 0 6px; position: relative; }
.why__text p { margin: 0; color: var(--c-text-muted); font-size: 15px; position: relative; }
@media (min-width: 960px) {
  .why__grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
  .why__head { text-align: left; }
  .why__lead { margin-left: 0; }
  .why__vs { justify-content: flex-start; flex-direction: column; align-items: flex-start; }
  .pc-only { display: inline; }
  .why__item { padding: 28px 30px; }
}
@media (max-width: 599px) {
  .why__item { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .why__icon { width: 46px; height: 46px; }
  .why__num { font-size: 72px; }
}
