/* ==========================================
   あかトマトWeb - スマホファースト
   ========================================== */
:root {
  --tomato: #e8432e;
  --tomato-dark: #c2321f;
  --tomato-light: #fdeae6;
  --lemon: #ffd23f;
  --lemon-dark: #e0a800;
  --lemon-light: #fff7d6;
  --berry: #4a3fc9;
  --berry-light: #ecebfb;
  --leaf: #3fa34d;
  --text: #3b2a24;
  --text-sub: #77665f;
  --line: #f0e4d8;
  --bg: #fffdf8;
  --bg-tint: #fff6e3;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(194, 50, 31, .08);
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif; font-weight: 800; line-height: 1.5; margin: 0; }
p { margin: 0; }
a { color: var(--tomato-dark); }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 760px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-family: "M PLUS Rounded 1c", sans-serif;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn--primary {
  background: var(--tomato);
  color: #fff;
  box-shadow: 0 6px 0 var(--tomato-dark);
}
.btn--primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--tomato-dark); }
.btn--large { padding: 16px 32px; font-size: 1.05rem; }
.btn--block { display: block; width: 100%; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto 0;
  height: var(--header-h);
  background: rgba(255, 253, 248, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header__inner {
  height: 100%;
  max-width: 1080px; margin: 0 auto;
  padding: 0 12px 0 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 6px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--text); text-decoration: none;
}
.logo img { width: 40px; }
.logo em, .footer__logo em { font-style: normal; color: var(--tomato); }
.header__right { display: flex; align-items: center; gap: 4px; }

.sns { display: flex; gap: 2px; }
.sns a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  color: var(--text);
  transition: background .2s, color .2s;
}
.sns a:hover { background: var(--tomato-light); color: var(--tomato); }
.sns svg { width: 20px; height: 20px; fill: currentColor; }

.menu-btn {
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 8px 20px 20px;
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform .3s, visibility .3s;
  z-index: -1;
}
.nav.is-open { transform: translateY(0); visibility: visible; }
.nav a {
  padding: 14px 4px;
  color: var(--text); text-decoration: none; font-weight: 700;
  border-bottom: 1px dashed var(--line);
}
.nav a.nav__cta {
  margin-top: 16px; border: none; text-align: center;
  background: var(--tomato); color: #fff; border-radius: 999px;
}

/* ---------- ファーストビュー ---------- */
.hero {
  padding: calc(var(--header-h) + 32px) 20px 56px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 210, 63, .45) 0 110px, transparent 111px),
    radial-gradient(circle at 4% 70%, rgba(232, 67, 46, .10) 0 140px, transparent 141px),
    linear-gradient(180deg, #fff3cf, var(--bg));
  text-align: center;
}
.hero__inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 32px; }
.hero__area {
  display: inline-block;
  font-size: .85rem; font-weight: 700;
  color: var(--tomato-dark);
  background: #fff;
  border: 2px solid var(--tomato);
  padding: 0 14px; border-radius: 999px;
  margin-bottom: 14px;
}
.hero__title { font-size: 1.65rem; letter-spacing: .02em; }
.marker { background: linear-gradient(transparent 60%, rgba(255, 210, 63, .8) 60%); }
.hero__lead { margin-top: 12px; color: var(--text-sub); font-size: .95rem; }
.hero__badges {
  display: flex; justify-content: center; gap: 12px;
  margin: 24px 0 30px;
}
.badge {
  flex: 1; max-width: 170px;
  background: #fff;
  border: 3px solid var(--lemon);
  border-radius: var(--radius);
  padding: 10px 8px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.badge--main { border-color: var(--tomato); }
.badge__label { font-size: .78rem; font-weight: 700; color: var(--text-sub); }
.badge__value { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; font-size: 1.1rem; }
.badge__value strong { font-size: 2.4rem; line-height: 1.1; color: var(--tomato); margin: 0 2px; }
.hero__note { margin-top: 18px; font-size: .75rem; color: var(--text-sub); }
.hero__movie {
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 12px 32px rgba(194, 50, 31, .18);
  aspect-ratio: 16 / 9;
  background: var(--lemon-light);
}
.hero__movie video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- セクション共通 ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-tint); }
.section__title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 32px;
}
.section__title span {
  display: block;
  font-size: .85rem;
  letter-spacing: .15em;
  color: var(--tomato);
}
.section__lead { text-align: center; margin: -16px 0 32px; color: var(--text-sub); }
.sub-title {
  font-size: 1.2rem;
  text-align: center;
  margin: 48px 0 20px;
}

/* ---------- サービス（キャラクター） ---------- */
.cards { display: grid; gap: 24px; }
.card {
  --c: var(--tomato); --c-light: var(--tomato-light);
  background: #fff;
  border: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 0 22px 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.card--lemon { --c: var(--lemon); --c-light: var(--lemon-light); }
.card--berry { --c: var(--berry); --c-light: var(--berry-light); }
.card__chara {
  margin: 0 -22px 14px;
  height: 210px;
  background: var(--c-light);
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: 14px;
}
.card__chara img { height: 100%; width: auto; object-fit: contain; transition: transform .3s; }
.card:hover .card__chara img { transform: translateY(-6px) rotate(-3deg); }
.card__staff { font-size: .8rem; color: var(--text-sub); }
.card__staff strong {
  display: block;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.05rem; color: var(--text);
}
.card__title {
  display: inline-block;
  margin-top: 12px;
  font-size: 1.05rem;
  background: var(--c); color: #fff;
  padding: 2px 18px; border-radius: 999px;
}
.card--lemon .card__title { color: var(--text); }
.card__price { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; font-size: 1.6rem; margin: 8px 0 8px; }
.card__price small { font-size: .8rem; color: var(--text-sub); margin-left: 2px; }
.card__text { font-size: .93rem; color: var(--text-sub); text-align: left; }

/* ---------- 料金表 ---------- */
.plans { display: grid; gap: 28px; }
.plan {
  --c: var(--line);
  position: relative;
  background: #fff;
  border: 3px solid var(--c);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.plan--tomato { --c: var(--tomato); }
.plan--lemon { --c: var(--lemon); }
.plan--berry { --c: var(--berry); }
.plan--small { border-width: 2px; }
.plan--featured { box-shadow: var(--shadow); }
.plan__tag {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--tomato); color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: 2px 16px; border-radius: 999px;
}
.plan__icon { display: block; height: 72px; width: auto; margin: 0 auto 4px; }
.plan__name { font-size: 1.15rem; text-align: center; }
.plan__price {
  text-align: center;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--tomato-dark);
  padding-bottom: 14px; margin: 4px 0 16px;
  border-bottom: 2px dashed var(--line);
}
.plan__price span { font-size: .85rem; color: var(--text-sub); margin-left: 2px; font-weight: 700; }
.plan--small .plan__price { font-size: 1.7rem; }
.plan__list { list-style: none; padding: 0; margin: 0; }
.plan__list li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: .95rem;
}
.plan__list li::before {
  content: "";
  position: absolute; left: 2px; top: 13px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--tomato-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23e8432e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.plan__option {
  margin-top: 14px;
  background: var(--lemon-light);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .9rem; font-weight: 700;
  text-align: center;
}
.notes {
  margin: 32px 0 0; padding: 0;
  list-style: none;
  font-size: .8rem; color: var(--text-sub);
}
.notes li { padding-left: 1.2em; text-indent: -1.2em; }
.notes li::before { content: "※"; margin-right: .2em; }

/* ---------- 選ばれる理由 ---------- */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.reason {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.reason__num {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--tomato); color: #fff;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800; font-size: 1.1rem;
}
.reason h3 { font-size: 1.1rem; margin-bottom: 6px; }
.reason p { font-size: .93rem; color: var(--text-sub); }

/* ---------- キャラのふきだし ---------- */
.talk {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px; margin: 36px auto 0;
}
.talk img { flex-shrink: 0; width: 104px; }
.talk--reverse { flex-direction: row-reverse; margin: 0 auto 28px; }
.talk__bubble {
  position: relative;
  background: #fff;
  border: 2px solid var(--c, var(--line));
  border-radius: 18px;
  padding: 14px 16px;
  font-size: .93rem;
  font-weight: 700;
}
.talk__bubble::before {
  content: "";
  position: absolute; top: 50%; left: -11px;
  width: 18px; height: 18px;
  background: #fff;
  border-left: 2px solid var(--c, var(--line));
  border-bottom: 2px solid var(--c, var(--line));
  transform: translateY(-50%) rotate(45deg);
}
.talk--reverse .talk__bubble::before { left: auto; right: -11px; transform: translateY(-50%) rotate(-135deg); }
.talk__bubble--berry { --c: var(--berry); }
.talk__bubble--lemon { --c: var(--lemon-dark); }
.talk__name { display: block; font-size: .75rem; color: var(--c); margin-bottom: 2px; }

/* ---------- ごあいさつ ---------- */
#reason { padding-bottom: 0; }
.greeting {
  background: var(--bg-tint);
  border: 3px solid var(--tomato);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  text-align: center;
}
.greeting img { width: 160px; margin-bottom: 8px; }
.greeting__name {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800; font-size: 1.3rem;
  margin-bottom: 12px;
}
.greeting__name small { display: block; font-size: .78rem; color: var(--tomato); }
.greeting__body p:not(.greeting__name) { text-align: left; font-size: .95rem; margin-bottom: .8em; }
.greeting__body p:last-child { margin-bottom: 0; }

/* ---------- 特定商取引法に基づく表記 ---------- */
.legal-page { padding: calc(var(--header-h) + 40px) 0 64px; }
.legal-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .93rem; }
.legal-table th, .legal-table td { display: block; text-align: left; padding: 12px 18px; }
.legal-table th { background: var(--tomato-light); font-weight: 700; }
.legal-table td { border-bottom: 1px solid var(--line); }
.legal-table tr:last-child td { border-bottom: none; }
.legal-back { text-align: center; margin-top: 32px; }
.footer__links { font-size: .8rem; margin-bottom: 8px; }
.footer__links a { color: #fff; }

/* ---------- 制作の流れ ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.flow__item {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.flow__item:not(:last-child)::after {
  content: "";
  position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%);
  border: 10px solid transparent;
  border-top: 12px solid var(--tomato);
  border-bottom: none;
}
.flow__step {
  display: inline-block;
  background: var(--tomato); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  padding: 2px 12px; border-radius: 999px;
}
.flow__item h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.flow__item p { font-size: .9rem; color: var(--text-sub); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 16px 48px 16px 52px;
  font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before,
.faq__item p::before {
  position: absolute; left: 16px;
  font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; font-size: 1.2rem;
}
.faq__item summary::before { content: "Q"; color: var(--tomato); top: 13px; }
.faq__item summary::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-sub); border-bottom: 2px solid var(--text-sub);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__item p {
  position: relative;
  padding: 0 20px 18px 52px;
  font-size: .95rem; color: var(--text-sub);
}
.faq__item p::before { content: "A"; color: var(--leaf); top: -3px; }

/* ---------- お問い合わせ ---------- */
.contact__lead { text-align: center; margin-bottom: 20px; font-size: .95rem; }
.form {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow);
}
.form__row { margin-bottom: 20px; }
.form__row label { display: block; font-weight: 700; margin-bottom: 6px; }
.req {
  display: inline-block;
  font-size: .7rem; color: #fff; background: var(--tomato);
  border-radius: 4px; padding: 0 6px; margin-left: 8px;
  vertical-align: 2px;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* iOSのズーム防止 */
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}
.form select {
  appearance: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2377665f' stroke-width='2'/%3E%3C/svg%3E") right 14px center/12px no-repeat;
  padding-right: 40px;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--tomato); box-shadow: 0 0 0 3px rgba(232, 67, 46, .18); }
.form textarea { resize: vertical; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- フッター ---------- */
.footer {
  background: var(--tomato);
  color: #fff;
  text-align: center;
  padding: 0 0 100px;
  margin-top: 70px;
}
.footer__charas {
  display: flex; justify-content: center; align-items: flex-end; gap: 4px;
  transform: translateY(-56px);
  margin-bottom: -40px;
}
.footer__charas img { width: 76px; }
.footer__charas .footer__main { width: 120px; }
.footer__logo { font-family: "M PLUS Rounded 1c", sans-serif; font-weight: 800; font-size: 1.4rem; }
.footer__logo em { color: var(--lemon); }
.footer__info { font-size: .85rem; opacity: .9; margin-top: 4px; }
.sns--footer { justify-content: center; gap: 12px; margin: 20px 0; }
.sns--footer a { color: #fff; background: rgba(255, 255, 255, .18); width: 46px; height: 46px; }
.sns--footer a:hover { background: #fff; color: var(--tomato); }
.footer__copy { font-size: .75rem; opacity: .85; }

/* ---------- 追従ボタン（スマホ） ---------- */
.fixed-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 90;
  text-align: center; text-decoration: none;
  font-family: "M PLUS Rounded 1c", sans-serif;
  background: var(--tomato); color: #fff; font-weight: 800;
  padding: 14px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(194, 50, 31, .4);
  transition: opacity .3s, transform .3s;
}
.fixed-cta.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* ==========================================
   タブレット・PC
   ========================================== */
@media (min-width: 768px) {
  :root { --header-h: 68px; }
  .hero { padding: calc(var(--header-h) + 56px) 20px 80px; }
  .hero__title { font-size: 2.2rem; }
  .hero__lead { font-size: 1.05rem; }
  .badge { max-width: 210px; padding: 14px; }
  .section { padding: 88px 0; }
  .section__title { font-size: 1.9rem; margin-bottom: 44px; }
  .cards, .plans { grid-template-columns: repeat(3, 1fr); }
  .plans--two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
  .reasons { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .talk img { width: 140px; }
  .greeting { display: flex; gap: 28px; align-items: center; text-align: left; padding: 32px 36px; }
  .greeting img { flex-shrink: 0; width: 200px; margin: 0; }
  .legal-table th, .legal-table td { display: table-cell; border-bottom: 1px solid var(--line); vertical-align: top; }
  .legal-table th { width: 32%; }
  .legal-table tr:last-child th { border-bottom: none; }
  .talk__bubble { font-size: 1rem; padding: 18px 22px; }
  .form { padding: 40px; }
  .footer { padding-bottom: 44px; }
  .footer__charas img { width: 96px; }
  .footer__charas .footer__main { width: 150px; }
  .fixed-cta { display: none; }
}

@media (min-width: 960px) {
  .hero { text-align: left; }
  .hero__inner { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 48px; }
  .hero__badges { justify-content: flex-start; }
  .menu-btn { display: none; }
  .header__inner { gap: 24px; }
  .header__right { order: 3; }
  .nav {
    position: static;
    transform: none; visibility: visible;
    flex-direction: row; align-items: center; gap: 4px;
    padding: 0; border: none; background: none;
    margin-left: auto;
    z-index: auto;
  }
  .nav a { border: none; padding: 8px 10px; font-size: .92rem; }
  .nav a:hover { color: var(--tomato); }
  .nav a.nav__cta { margin: 0 0 0 8px; padding: 8px 20px; }
  .nav a.nav__cta:hover { color: #fff; opacity: .9; }
  .flow { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .flow__item:not(:last-child)::after {
    left: auto; right: -19px; top: 50%; bottom: auto;
    transform: translateY(-50%);
    border: 9px solid transparent;
    border-left: 11px solid var(--tomato);
    border-right: none;
  }
}
