:root {
  --g: #FFE9D6;
  --a: #E6402E;
  --a2: #2A1F5C;
  --ink: var(--a2);
  --on: #160e2c;
  --paper: #FFF8EE;
  --frame: #171320;
  --at: #A82920;
  --line: 2px solid var(--ink);
  --gutter: clamp(16px, 5vw, 80px);
  font-family: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--g);
  font-synthesis: weight;
}

* { box-sizing: border-box; }
body { margin: 0; line-height: 1.75; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 900; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.5rem, 3vw, 2.7rem); }
p + p { margin-top: .85em; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
ul, ol { padding-inline-start: 1.5em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.nw { white-space: nowrap; }
.skip-link { position: absolute; z-index: 10; left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--paper); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: var(--line); }
.site-header-inner, .site-footer-inner {
  max-width: 1600px;
  margin: auto;
  padding: 12px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.site-logo { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 1.2rem; white-space: nowrap; font-weight: 900; }
.brand-icon { display: grid; place-items: center; width: 25px; height: 33px; border-radius: 7px; background: var(--ink); }
.brand-icon::after { content: ""; border: 6px solid transparent; border-left: 8px solid var(--paper); transform: translateX(3px); }
.site-nav ul, .site-footer ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 0; margin: 0; list-style: none; }
.site-nav a { display: block; padding: .25em 0; text-decoration: none; font-weight: 800; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
.site-nav a[href="/contact/"] { padding: .35em 1em; border-radius: 2em; background: var(--ink); color: var(--paper); }
.site-footer { border-top: var(--line); background: var(--paper); font-size: .875rem; }
.site-footer-inner { padding-block: 28px; flex-wrap: wrap; }
.site-footer p { white-space: nowrap; }

.hero { overflow: hidden; padding: 23px 0 36px; }
.wall-stage { position: relative; max-width: 1510px; margin-inline: auto; isolation: isolate; }
.wall-display { position: relative; width: min(84%, 960px); margin-inline: auto; }
.phone-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  --pair-gap: clamp(15px, 4vw, 68px);
  gap: var(--pair-gap);
  align-items: start;
  padding-bottom: 15px;
  pointer-events: none;
}
.phone {
  --speed: 14s;
  position: relative;
  min-width: 0;
  border: clamp(4px, .8vw, 11px) solid var(--frame);
  border-radius: 36px;
  background: var(--frame);
  box-shadow: 5px 7px 0 var(--ink);
}
.screen { position: relative; overflow: hidden; aspect-ratio: 9 / 16; border-radius: 25px; background: var(--paper); }
.screen::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 24%;
  height: 6px;
  border-radius: 20px;
  background: var(--ink);
  translate: -50% 0;
  z-index: 1;
}
.feed { animation: feed-up var(--speed) linear infinite; }
.still { position: relative; display: block; overflow: hidden; aspect-ratio: 9 / 16; }
.still img { position: absolute; width: 400%; height: 200%; max-width: none; left: var(--x, 0%); top: var(--y, 0%); }
.sticker {
  display: inline-block;
  padding: .35em 1.05em;
  border: 3px solid var(--paper);
  border-radius: 2em;
  background: var(--ink);
  color: var(--paper);
  font-size: .85rem;
  font-weight: 800;
}
.wall-display figcaption { position: absolute; right: 2%; bottom: 0; transform: rotate(5deg); }
.title-ribbon {
  position: absolute;
  z-index: 2;
  top: 41%;
  left: 50%;
  width: max-content;
  max-width: 98%;
  padding: .08em .32em .13em;
  border: var(--line);
  background: var(--a);
  color: var(--paper);
  box-shadow: 6px 7px 0 var(--ink);
  font-size: clamp(2.5rem, 7.7vw, 8rem);
  transform: translateX(-50%) rotate(-4deg);
  animation: ribbon-in .82s cubic-bezier(.2,.85,.35,1) both;
  pointer-events: none;
}
.title-ribbon h1 { font-size: inherit; letter-spacing: -.065em; }
.hero-info {
  width: min(84%, 960px);
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr);
  align-items: center;
  gap: 18px;
}
.hero-copy { max-width: 52ch; font-weight: 700; }
.cta-button, button[type="submit"] {
  display: inline-block;
  padding: .65em 1.35em;
  border: var(--line);
  border-radius: 2em;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.cta-button:hover, button[type="submit"]:hover { background: var(--paper); color: var(--on); }
.cta { margin-top: 1.05em; }

.mascot { --pose: 156px; display: flex; align-items: center; gap: 10px; margin-block: 0 1.5rem; }
.mascot img { width: var(--pose); height: auto; flex: 0 0 auto; }
.mascot p, .page--contact .notice, #audience-heading ~ p {
  width: fit-content;
  padding: .7em 1em;
  border: var(--line);
  border-radius: 20px 20px 20px 4px;
  background: var(--paper);
  color: var(--on);
  font-weight: 700;
}
.mascot--01-greet { --pose: 160px; }
.hero-info .mascot { margin: 0; }
.hero-info .mascot p { font-size: .875rem; }
.mascot--02-guide { --pose: 96px; }
.mascot--03-think, .mascot--07-write { --pose: 120px; }
.mascot--04-thanks, .mascot--08-show, .mascot--05-search { --pose: 160px; }

.home-content { max-width: 1360px; margin: auto; padding-inline: var(--gutter); }
.home-content > section { border-top: var(--line); padding-block: clamp(32px, 6vw, 84px); }
.home-content h2 { margin-bottom: .65em; }
.offers {
  display: flex;
  gap: clamp(14px, 4vw, 50px);
  overflow-x: auto;
  padding: 12px 10px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--ink) var(--paper);
}
.offer-phone {
  display: flex;
  align-items: center;
  position: relative;
  flex: 0 0 clamp(230px, 27vw, 325px);
  min-height: 325px;
  padding: 24px;
  border: 10px solid var(--ink);
  border-radius: 36px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  scroll-snap-align: center;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 800;
}
.offer-phone:nth-child(even) { margin-top: 24px; background: var(--ink); color: var(--paper); border-color: var(--paper); }
.offer-phone::before { content: ""; position: absolute; inset: 12px 38% auto; height: 5px; background: currentColor; border-radius: 20px; }
.offer-phone.is-swiped { animation: swipe-in .65s cubic-bezier(.2,.8,.35,1) both; }
#audience-heading .sticker { display: table; margin-bottom: .65em; }
#audience-heading ~ p:nth-of-type(2) { margin-left: clamp(12px, 12vw, 220px); border-radius: 20px 20px 4px 20px; }
.price-list, .blog-list { padding: 0; list-style: none; }
.price-card {
  overflow: hidden;
  max-width: 760px;
  padding: 24px clamp(16px, 4vw, 44px) 30px;
  border: var(--line);
  border-top: 20px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  color: var(--on);
  box-shadow: 6px 6px 0 var(--ink);
}
.price-card h2, .price-card h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: var(--line); font-size: 1.25rem; }
.price { font-size: clamp(1.22rem, 4vw, 3rem); font-weight: 900; overflow-wrap: anywhere; }
.price-card .price + p { margin-top: .15rem; }
.price-card a[href^="https://buy.stripe.com/"] { display: inline-block; padding: .45em 1em; border-radius: 2em; background: var(--ink); color: var(--paper); }
.story-meter { display: flex; gap: 6px; padding: 14px 16px 0; border-radius: 16px 16px 0 0; background: var(--ink); }
.story-meter i { position: relative; height: 4px; flex: 1; overflow: hidden; border-radius: 9px; background: color-mix(in srgb, var(--paper) 40%, var(--ink)); }
.story-meter i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform-origin: left; }
.is-playing .story-meter i::after { animation: story-fill 1s linear both; }
.is-playing .story-meter i:nth-child(2)::after { animation-delay: 1s; }
.is-playing .story-meter i:nth-child(3)::after { animation-delay: 2s; }
.story-steps { margin: 0; padding: 17px 20px 20px 42px; background: var(--ink); color: var(--paper); border-radius: 0 0 16px 16px; }
.story-steps li + li { margin-top: .5em; }

.page:not(.page--home) { width: min(calc(100% - 2 * var(--gutter)), 970px); min-height: 65vh; margin-inline: auto; padding-block: clamp(34px, 7vw, 82px); }
.page:not(.page--home) h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); letter-spacing: -.055em; }
.page-head { margin-bottom: clamp(22px, 4vw, 42px); }
.page-head h1 + p { margin-top: 1em; }
.page:not(.page--home) section + section { margin-top: 1.5rem; }
.page--price section:not([aria-label]), .page--company section, .page--legal section, .page--privacy section {
  padding: clamp(16px, 4vw, 36px);
  border: var(--line);
  background: var(--paper);
  color: var(--on);
}
.page:not(.page--home) section > h2 { margin-bottom: .65em; }
.faq-item { position: relative; padding: 14px 18px 14px 39px; border-top: var(--line); }
.faq-item:last-of-type { border-bottom: var(--line); }
.faq-item::before { content: ""; position: absolute; left: 8px; top: 20px; width: 16px; height: 16px; border: var(--line); border-radius: 50%; background: var(--paper); }
.faq-item h2, .faq-item h3 { margin: 0 0 8px; font-size: 1.12rem; }
.faq-item p { padding: .55em .85em; width: fit-content; background: var(--paper); border-radius: 3px 16px 16px; }
.comments > p { margin-top: 1rem; }
.page--contact section[aria-labelledby] { padding: clamp(16px, 4vw, 40px); border: var(--line); border-radius: 32px; background: var(--paper); box-shadow: 6px 6px var(--ink); }
.form-field { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0 0 1.1rem; }
.form-field label { border-radius: 16px 16px 16px 3px; background: var(--ink); color: var(--paper); padding: .3em .85em; font-weight: 700; }
.required { margin-inline-start: .55em; border-radius: 1em; padding: .1em .45em; background: var(--g); color: var(--ink); font-size: .8em; }
.form-field :is(input, select, textarea) { width: 100%; border: var(--line); border-radius: 18px; background: var(--paper); color: var(--on); font: inherit; padding: .55em .8em; }
.form-field textarea { resize: vertical; min-height: 7em; }
form + p { margin-top: 1em; }

.blog-list { padding-left: 22px; border-left: var(--line); }
.blog-list li { position: relative; padding: clamp(16px, 4vw, 32px); border: var(--line); border-radius: 3px 24px 24px; background: var(--paper); }
.blog-list li::before { content: ""; position: absolute; top: 19px; left: -32px; width: 14px; height: 14px; border-radius: 50%; border: var(--line); background: var(--paper); }
.blog-date { font: 700 .9rem/1.5 ui-monospace, Consolas, monospace; margin-bottom: .6em; }
.blog-list h2 { margin-bottom: .45em; }
.article-copy { max-width: 42em; margin: auto; padding: clamp(16px, 4vw, 48px); border: var(--line); background: var(--paper); line-height: 1.9; }
.page--article .article-copy h1 { font-size: clamp(2rem, 5vw, 3.5rem); animation: article-in .55s both; }
.article-copy h2 { margin-top: 1.15em; font-size: 1.4rem; }
.avatar { display: inline-block; width: 38px; height: 38px; margin-right: .38em; vertical-align: middle; object-fit: contain; border-radius: 50%; background: #F6F1E7; }
.page--thanks, .page--missing { position: relative; text-align: center; }
.page--thanks .mascot, .page--missing .mascot { justify-content: center; text-align: left; }
.error-code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 900; line-height: 1; }
.read-mark { width: fit-content; margin: -.6rem auto 1.2rem; font-weight: 800; }
.heart-burst { position: absolute; top: 40%; left: 50%; pointer-events: none; }
.reaction { position: absolute; z-index: 3; bottom: 7%; right: 5%; color: var(--a); font-size: 25px; line-height: 1; text-shadow: 1px 1px var(--ink); pointer-events: none; animation: reaction-rise 1.55s ease-out both; }
.reaction--bubble { width: 20px; height: 15px; border: var(--line); border-radius: 8px 8px 8px 2px; background: var(--paper); }
.heart-burst .reaction { animation-name: heart-out; }

.company { width: 100%; border-collapse: collapse; text-align: left; }
.company th, .company td { padding: 10px; border-bottom: 1px solid var(--ink); vertical-align: top; overflow-wrap: anywhere; }
.company th { width: 34%; }
.page--legal, .page--privacy { overflow-wrap: anywhere; }
.page--legal p, .page--privacy p { margin-bottom: .65em; }
.page--legal h3, .page--privacy h3 { margin-top: 1.25em; }

@keyframes feed-up { to { transform: translateY(-50%); } }
@keyframes ribbon-in {
  0% { transform: translateX(-50%) rotate(-4deg) scaleX(0); }
  68% { transform: translateX(-50%) rotate(-4deg) scaleX(1.04); }
  100% { transform: translateX(-50%) rotate(-4deg) scaleX(1); }
}
@keyframes swipe-in { from { transform: translateX(34px) rotate(8deg); } to { transform: none; } }
@keyframes story-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes article-in { from { transform: translateX(12px) rotate(1deg); } to { transform: none; } }
@keyframes reaction-rise {
  0% { opacity: 0; transform: translate(0, 0) rotate(-12deg); }
  20% { opacity: 1; }
  55% { transform: translate(-10px,-36px) rotate(10deg); }
  100% { opacity: 0; transform: translate(12px,-92px) rotate(-8deg); }
}
@keyframes heart-out { to { opacity: 0; transform: translate(var(--burst-x), var(--burst-y)) rotate(25deg); } }

@media (max-width: 850px) {
  .site-header-inner { flex-wrap: wrap; }
  .site-nav ul { gap: 4px 14px; }
  .hero-info { grid-template-columns: 1fr 1fr; }
  .hero-info .mascot { flex-wrap: wrap; justify-content: end; }
}
@media (max-width: 600px) {
  .site-header-inner { padding-block: 8px; gap: 4px; }
  .site-logo { font-size: 1rem; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: 4px 11px; font-size: .78rem; }
  .brand-icon { width: 19px; height: 25px; border-radius: 5px; }
  .hero { padding-top: 18px; }
  .wall-display, .hero-info { width: calc(100% - 28px); }
  .phone-wall { --pair-gap: 15px; padding-bottom: 12px; }
  .phone { border-radius: 16px; box-shadow: 2px 3px 0 var(--ink); }
  .screen { border-radius: 11px; }
  .screen::before { top: 3px; height: 3px; }
    .title-ribbon { top: 38%; font-size: clamp(2rem, 10.4vw, 3.75rem); box-shadow: 3px 4px 0 var(--ink); }
  .sticker { font-size: .7rem; }
  .hero-info { grid-template-columns: 1fr; gap: 10px; }
  .hero-info .mascot { flex-wrap: nowrap; }
  .mascot { gap: 6px; }
  .mascot--01-greet, .mascot--04-thanks, .mascot--08-show, .mascot--05-search { --pose: 120px; }
  .mascot--02-guide { --pose: 80px; }
  .mascot--03-think, .mascot--07-write { --pose: 96px; }
  .mascot p { font-size: .82rem; }
  .company th, .company td { padding: 8px 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reaction { display: none; }
}

/* Meta広告運用の配信ステージ */
.phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(7px, 1.65vw, 24px);
  --swap: calc(100% + var(--pair-gap));
  --lift: -16px;
  animation: exchange-pair 12s both infinite;
}
.phone-pair:nth-child(2) {
  --swap: calc(-100% - var(--pair-gap));
  --lift: 16px;
}
.phone-pair:first-child .phone:first-child { margin-top: 30px; }
.phone-pair:first-child .phone:nth-child(2) { --speed: 18s; }
.phone-pair:nth-child(2) .phone:first-child { --speed: 11s; margin-top: 10px; }
.phone-pair:nth-child(2) .phone:nth-child(2) { margin-top: 41px; }
@keyframes exchange-pair {
  0%, 15%, 100% { transform: none; }
  20%, 69% { transform: translate(var(--swap), var(--lift)); }
  74%, 98% { transform: none; }
}
.tile--1, .tile--5 { --x: -100%; }
.tile--2, .tile--6 { --x: -200%; }
.tile--3, .tile--7 { --x: -300%; }
.tile--4, .tile--5, .tile--6, .tile--7 { --y: -100%; }
.ad-tag {
  position: absolute;
  z-index: 1;
  top: 10%;
  right: -8px;
  padding: .12em .7em;
  border: 2px solid var(--paper);
  border-radius: 1em;
  background: var(--a);
  color: var(--on);
  font-size: clamp(.68rem, 1.4vw, .95rem);
  font-weight: 900;
  transform: rotate(7deg);
}
.wall-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  text-align: center;
  border-block: var(--line);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: .1em;
}
.wall-steps span:nth-child(2) { color: var(--at); font-size: 1.3em; }
.wall-display figcaption { bottom: auto; top: 0; right: -3%; z-index: 1; }
.hero-info { margin-top: 16px; }
.hero-info .mascot { justify-content: flex-end; }
.site-header { background: var(--g); }
.brand-icon::after {
  width: 10px;
  height: 14px;
  border: 2px solid var(--paper);
  border-radius: 2px;
  transform: none;
  box-shadow: 3px 3px 0 var(--a);
}
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--paper); }
.offer-phone { min-height: 0; aspect-ratio: 9 / 14; background: var(--paper); }
.offer-phone:nth-child(even) { border-color: var(--ink); }
.profile-checkout {
  position: relative;
  border-top: var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}
.profile-checkout h3 { border: 0; margin: 0; padding: 0; }
.profile-checkout p { margin-bottom: .55rem; }
.page--contact .notice { border-color: var(--at); }
.page--contact button[type="submit"] { background: var(--a); color: var(--on); }
.page--contact button[type="submit"]:hover { background: var(--g); }
.page--blog .page-head .mascot { justify-content: flex-end; margin: 0; }
@media (max-width: 600px) {
  .phone-pair { --lift: -8px; }
  .phone-pair:nth-child(2) { --lift: 8px; }
  .phone-pair:first-child .phone:first-child { margin-top: 15px; }
  .phone-pair:nth-child(2) .phone:nth-child(2) { margin-top: 20px; }
  .brand-icon::after { width: 7px; height: 10px; }
  .wall-display figcaption { right: 0; }
  .title-ribbon { top: 37%; font-size: clamp(1.8rem, 11vw, 3.5rem); }
  .ad-tag { right: -5px; }
}
.mascot picture { width: var(--pose); flex: 0 0 var(--pose); }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: auto; }
.blog-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.blog-heading + p { margin-top: 1rem; }
.page--blog .blog-heading .mascot { margin: 0; }
@media (max-width: 600px) {
  .blog-heading { display: block; }
  .page--blog .blog-heading .mascot { margin-top: 1rem; }
}

/* iori-companion */
.iori-companion{position:fixed;right:16px;bottom:16px;z-index:80;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.iori-companion.iori-hidden{display:none}
.iori-bubble{background:#fff;color:#1c2420;border:1.5px solid #1c2420;border-radius:12px;padding:8px 12px;font-size:12.5px;line-height:1.6;max-width:210px;box-shadow:0 6px 18px rgba(0,0,0,.18);opacity:1;transition:opacity .45s ease;position:relative}
.iori-bubble:after{content:"";position:absolute;right:26px;bottom:-7px;width:12px;height:12px;background:#fff;border-right:1.5px solid #1c2420;border-bottom:1.5px solid #1c2420;transform:rotate(45deg)}
.iori-bubble.iori-fade{opacity:0}
.iori-body{display:block;animation:ioriFloat 3.4s ease-in-out infinite}
.iori-body img{width:84px;height:auto;display:block;filter:drop-shadow(0 8px 14px rgba(0,0,0,.25))}
.iori-close{position:absolute;top:-8px;right:-4px;width:22px;height:22px;border-radius:50%;border:1.5px solid #1c2420;background:#fff;color:#1c2420;font-size:13px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
@keyframes ioriFloat{0%,100%{transform:translateY(0) rotate(-1.2deg)}50%{transform:translateY(-7px) rotate(1.2deg)}}
@media (max-width:640px){.iori-body img{width:62px}.iori-bubble{max-width:168px;font-size:11.5px}}
@media (prefers-reduced-motion:reduce){.iori-body{animation:none}.iori-bubble{transition:none}}
