:root {
  --navy: #0a2b54;
  --navy-2: #123e6f;
  --pink: #ff527c;
  --pink-soft: #fff0f4;
  --pink-pale: #fff8fa;
  --white: #ffffff;
  --ice: #f2f7fb;
  --line: #d9e1eb;
  --shadow: 0 24px 60px rgba(10, 43, 84, 0.14);
  --header-height: 104px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--navy);
  background: var(--white);
  font-family: "M PLUS Rounded 1c", "Yu Gothic", "YuGothic", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1592d0; outline-offset: 4px; }
/* メニューをタップした移動先だけ、セクション全体のフォーカス枠を抑える。 */
[data-navigation-pointer-focus]:focus { outline: none; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(10, 43, 84, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1320px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link { flex: 0 1 250px; min-width: 190px; }
.brand-link img { width: 100%; height: auto; }

.site-navigation {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 36px);
  font-weight: 700;
}

.site-navigation a {
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}
.navigation-character { display: none; }

.site-navigation > a:not(.navigation-cta)::after {
  content: "";
  position: absolute;
  inset: auto 0 -6px;
  height: 3px;
  background: var(--pink);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-navigation > a:not(.navigation-cta):hover::after,
.site-navigation > a:not(.navigation-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navigation-cta {
  min-height: 48px;
  padding: 9px 24px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(10, 43, 84, 0.2);
}

.menu-button { display: none; }

.hero {
  position: relative;
  min-height: min(900px, 100svh);
  padding: calc(var(--header-height) + 54px) 0 58px;
  display: grid;
  align-items: center;
  background: linear-gradient(115deg, var(--white) 0 55%, var(--pink-pale) 55% 100%);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: clamp(340px, 34vw, 570px);
  aspect-ratio: 1;
  right: -8%;
  top: 2%;
  z-index: -1;
  border: 2px solid rgba(255, 82, 124, 0.19);
  border-radius: 48% 52% 32% 68% / 43% 36% 64% 57%;
  transform: rotate(14deg);
}

.hero-decoration { position: absolute; z-index: -1; pointer-events: none; }
.hero-patterns { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-pattern { position: absolute; display: block; }
.pattern-ring { width: clamp(36px, 5vw, 76px); aspect-ratio: 1; left: 5%; bottom: 13%; border: 8px solid rgba(10,43,84,.09); border-radius: 50%; }
.pattern-triangle { width: clamp(28px, 3.5vw, 54px); aspect-ratio: 1; left: 47%; top: 18%; background: rgba(255,82,124,.19); clip-path: polygon(0 0,100% 12%,40% 100%); transform: rotate(15deg); }
.pattern-square { width: clamp(24px, 3vw, 46px); aspect-ratio: 1; right: 5%; top: 48%; border: 4px solid rgba(10,43,84,.14); border-radius: 5px; transform: rotate(19deg); }
.pattern-dot { width: 18px; aspect-ratio: 1; left: 26%; bottom: 6%; background: rgba(255,82,124,.24); border-radius: 50%; }
.pattern-blob { width: clamp(55px, 8vw, 120px); aspect-ratio: 1.2; right: 12%; bottom: 5%; background: rgba(255,82,124,.09); border-radius: 28% 72% 58% 42% / 60% 35% 65% 40%; transform: rotate(-18deg); }
.pattern-dashes { width: 54px; height: 28px; left: 17%; top: 14%; background: repeating-linear-gradient(115deg, transparent 0 10px, rgba(10,43,84,.12) 10px 13px, transparent 13px 20px); transform: rotate(-12deg); }
@media (max-width: 980px) {
  .pattern-ring { left: -18px; bottom: 8%; width: 60px; }
  .pattern-triangle { left: auto; right: 7%; top: 12%; width: 26px; }
  .pattern-square { right: -12px; top: 43%; width: 38px; }
  .pattern-dot { left: 8%; bottom: 34%; width: 12px; }
  .pattern-blob { right: -16px; bottom: 4%; width: 72px; }
  .pattern-dashes { left: 8%; top: 7%; width: 40px; height: 18px; }
}
.hero-decoration-top {
  width: 22vw;
  min-width: 230px;
  aspect-ratio: 1;
  left: -12vw;
  top: 24%;
  background: var(--pink-soft);
  clip-path: polygon(4% 18%, 96% 0, 68% 100%);
  transform: rotate(-10deg);
}

.hero-inner {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 82px);
}

.hero-inner { grid-template-areas: "heading visual" "details visual"; row-gap: 0; }
.hero-copy { grid-area: heading; align-self: end; position: relative; z-index: 2; min-width: 0; }
.hero-details { grid-area: details; align-self: start; position: relative; z-index: 2; min-width: 0; }
.hero-visual { grid-area: visual; }
.hero-brand {
  margin: 0 0 18px;
  display: flex;
  gap: 0.04em;
  color: var(--pink);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}
.hero-brand span { display: inline-block; }

.hero-kicker {
  width: fit-content;
  margin: 0 0 20px;
  padding: 7px 18px;
  color: var(--navy);
  background: var(--pink-soft);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
}

.hero h1 { margin: 0; font-weight: 900; letter-spacing: -0.045em; }
.headline-lead {
  position: relative;
  width: fit-content;
  display: block;
  font-size: clamp(2rem, 3.45vw, 3.55rem);
  line-height: 1.28;
  white-space: nowrap;
}
.headline-main {
  margin-top: 0.08em;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.14em;
  font-size: clamp(2.7rem, 4.7vw, 4.85rem);
  line-height: 1.22;
}
.headline-main em {
  position: relative;
  display: inline-block;
  color: var(--pink);
  font-style: normal;
  white-space: nowrap;
}
.headline-main em::after {
  content: "";
  position: absolute;
  inset: auto 0 0.04em;
  z-index: -1;
  height: 0.18em;
  background: #ffe1e9;
  border-radius: 99px;
}
.headline-exclamation { display: inline-block; width: .55em; font-family: "M PLUS Rounded 1c", sans-serif; font-size: .88em; font-weight: 900; letter-spacing: -.2em; transform: rotate(8deg); transform-origin: 50% 75%; }
.headline-main em:first-child::after { left: 5%; right: 14%; height: .12em; border-radius: 65% 35% 55% 45%; }
.headline-main em:last-child::after { display: none; }
.headline-doodle { position: absolute; display: block; overflow: visible; fill: none; stroke: #edabc0; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.headline-doodle .doodle-blue { stroke: #b9cddd; stroke-width: 2; }
.headline-doodle .doodle-dot { fill: #edabc0; stroke: none; }
.headline-doodle-top { width: 2.1em; height: .53em; top: -.68em; left: 12%; transform: rotate(-7deg); }
.headline-doodle-rays { width: .65em; height: .78em; right: -.85em; top: .08em; transform: rotate(5deg); }
.headline-doodle-tail { width: 3.1em; height: .4em; right: 2%; bottom: -.22em; transform: rotate(-2deg); }

@keyframes headlineArrival {
  from { opacity: 0; transform: translateY(18px) rotate(-1deg); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0) rotate(0); filter: blur(0); }
}
@keyframes headlineUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-playing .headline-lead, .intro-playing .headline-main em,
  .intro-playing .hero-visual, .intro-playing .hero-details { opacity: 0; }
  .hero-title-enter .headline-lead,
  .hero-title-enter .headline-main em { animation: headlineArrival 550ms cubic-bezier(.22,1,.36,1) both; }
  .hero-title-enter .headline-lead { animation-delay: 0ms; }
  .hero-title-enter .headline-main em:first-child { animation-delay: 230ms; }
  .hero-title-enter .headline-main em:last-child { animation-delay: 460ms; }
  .hero-title-enter .hero-visual,
  .hero-title-enter .hero-details { animation: headlineArrival 620ms cubic-bezier(.22,1,.36,1) 780ms both; }
  .hero-title-enter .headline-main em::after { transform-origin: left center; animation: headlineUnderline 390ms cubic-bezier(.22,1,.36,1) 460ms both; }
  .hero-title-enter .headline-main em:last-child::after { animation-delay: 700ms; }
}

.hero-description {
  white-space: nowrap;
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 500;
  line-height: 2;
}

.hero-description-mobile { display: none; }
@media (max-width: 680px) {
  .hero-copy > .hero-description-mobile { display: block; margin-top: 24px; font-size: clamp(14px, 3.8vw, 16px); }
  .hero-details > .hero-description { display: none; }
}
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  min-width: 174px;
  min-height: 58px;
  padding: 13px 26px;
  display: inline-grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy); box-shadow: 0 5px 12px rgba(10, 43, 84, 0.12); }
.button-secondary { color: var(--navy); background: var(--white); }
button, .button, .navigation-cta, .text-link { font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; }
.button, .navigation-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 28px;
  border: 1px solid #f0bdcc;
  border-radius: 20px;
  color: var(--navy);
  background: linear-gradient(180deg, rgba(255,255,255,.2), transparent), #f9cfdd;
  box-shadow: 0 3px 0 #dfa1b5, 0 7px 14px rgba(151, 65, 94, .08), inset 0 1px 0 rgba(255,255,255,.5);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  transition: transform 250ms cubic-bezier(.22,1,.36,1), box-shadow 250ms ease, background 350ms ease;
}
.button { min-width: 184px; min-height: 58px; }
.button:hover, .navigation-cta:hover,
.button:focus-visible, .navigation-cta:focus-visible { background-color: #eea2bb; }
.navigation-cta { min-height: 48px; padding: 10px 26px; font-size: .95rem; }
.button::before, .button::after, .navigation-cta::before, .navigation-cta::after { content: none; }
.button:focus-visible, .navigation-cta:focus-visible { outline: 3px solid var(--navy); outline-offset: 5px; }
.button:active, .navigation-cta:active { transform: translateY(3px) scale(.97); }
@keyframes ctaPress {
  0% { transform: translateY(3px) scale(.97); }
  65% { transform: translateY(-1px) scale(1.005); }
  100% { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .button.is-bouncing, .navigation-cta.is-bouncing { animation: ctaPress 420ms cubic-bezier(.22,1,.36,1); }
}

/* 主なアクションに、ゼリーの質感と弾みを付ける。 */
:is(.hero-actions .button, .navigation-cta, .form-submit) {
  --jelly-wide: 1.09;
  --jelly-flat: .88;
  --jelly-narrow: .95;
  --jelly-tall: 1.07;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffdce7 0%, #f5b4ca 62%, #eea2bb 100%);
  box-shadow: inset 0 2px 3px #ffffffb3, inset 0 -3px 5px #d77c9a40, 0 3px 0 #d995ac, 0 7px 14px #97415e14;
  transform: none;
}
:is(.hero-actions .button, .navigation-cta, .form-submit)::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 18%;
  width: 64%;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff80, #ffffff00);
  pointer-events: none;
}
.hero-actions .button-secondary {
  --jelly-wide: 1.045;
  --jelly-flat: .94;
  --jelly-narrow: .975;
  --jelly-tall: 1.035;
  background: linear-gradient(180deg, #fff9fb 0%, #fce7ee 65%, #f6d3df 100%);
  border-color: #edc2d1;
  box-shadow: inset 0 2px 3px #ffffffcc, inset 0 -2px 4px #d99bb426, 0 3px 0 #dfb2c2, 0 7px 14px #97415e0d;
}
@keyframes heroJelly {
  0%, 100% { transform: scale(1, 1); }
  20% { transform: scale(var(--jelly-wide), var(--jelly-flat)); }
  42% { transform: scale(var(--jelly-narrow), var(--jelly-tall)); }
  64% { transform: scale(1.025, .975); }
  82% { transform: scale(.99, 1.01); }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.hero-actions .button, .navigation-cta, .form-submit, .slider-controls button).is-jelly { animation: heroJelly 600ms ease-in-out; }
}
@media (max-width: 980px) and (prefers-reduced-motion: no-preference) {
  .menu-button, .site-navigation > a { --jelly-wide: 1.09; --jelly-flat: .88; --jelly-narrow: .95; --jelly-tall: 1.07; }
  .menu-button.is-jelly, .site-navigation > a.is-jelly { animation: heroJelly 600ms ease-in-out; }
}

.replay-button {
  margin: 18px 0 0;
  padding: 4px 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-visual { position: relative; min-width: 0; aspect-ratio: 1.08; display: grid; align-items: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 0 5% 9%;
  background: #ffe9ef;
  border: 1px solid rgba(255, 82, 124, 0.14);
  border-radius: 42% 58% 53% 47% / 58% 43% 57% 42%;
  clip-path: polygon(7% 24%, 100% 0, 80% 100%, 0 78%);
  box-shadow: 0 24px 60px rgba(10, 43, 84, 0.09);
  transform: rotate(-4deg);
}
.hero-visual { aspect-ratio: 1; margin-bottom: 112px; }
.hero-visual::before { content: none; }
.hero-surroundings { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.hero-dial { position: absolute; inset: 0; z-index: 2; pointer-events: none; user-select: none; -webkit-user-select: none; contain: layout paint; overflow: clip; }
.hero-dial .hero-surroundings { transform: rotate(var(--dial-angle, 0deg)); -webkit-user-drag: none; will-change: transform; }
.hero-dial-hit { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; cursor: grab; touch-action: pan-y; border-radius: 50%; clip-path: polygon(evenodd, 0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 75% 50%, 67.7% 67.7%, 50% 75%, 32.3% 67.7%, 25% 50%, 32.3% 32.3%, 50% 25%, 67.7% 32.3%, 75% 50%); }
/* SVGの線ではなく、面を持つ要素とその親でタッチ操作を受ける。 */
.hero-visual.toys-touch-enabled,
.toys-touch-enabled .hero-dial,
.toys-touch-enabled .hero-dial-hit { touch-action: none; }
.hero-dial.is-dragging .hero-dial-hit { cursor: grabbing; }
.hero-dial:focus-visible { outline: 2px dashed var(--navy); outline-offset: 5px; border-radius: 50%; }
.hero-character-stage { position: absolute; left: 16%; top: 32%; z-index: 1; width: 68%; aspect-ratio: 1522 / 1033; margin: 0; display: grid; place-items: center; perspective: 900px; cursor: grab; touch-action: pan-y; }
.hero-character-stage.is-dragging { cursor: grabbing; }
.hero-character-stage.touch-enabled { touch-action: none; }
.hero-image-wrap { position: relative; width: 100%; transform: rotate(0deg); transform-origin: 50% 50%; transform-style: flat; transition: transform 180ms ease-out; }
.hero-character-stage.is-dragging .hero-image-wrap { transition: none; }
.hero-image-wrap img { width: 100%; height: auto; pointer-events: none; user-select: none; }
.hero-controls-panel { position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 4; min-height: 94px; display: flex; flex-direction: column; align-items: center; gap: 12px; isolation: isolate; transform: translateZ(0); }
.hero-character-tools { display: flex; justify-content: center; gap: 7px; }
.hero-character-tools button { min-height: 44px; padding: 8px 16px; color: var(--navy); background: rgba(255, 255, 255, 0.96); border: 1px solid #bac8d8; border-radius: 12px; box-shadow: 0 3px 8px rgba(10, 43, 84, 0.05); font-size: 0.875rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hero-character-tools button[aria-pressed="true"] { color: var(--white); background: var(--navy); }
.hero-character-help { width: 100%; min-height: 3em; margin: 0; text-align: center; color: var(--navy); font-size: 0.7rem; font-weight: 700; line-height: 1.5; overflow-anchor: none; }
.hero-note {
  position: absolute;
  right: -20px;
  bottom: 2%;
  z-index: 2;
  width: min(300px, 62%);
  margin: 0;
  padding: 15px 20px;
  background: var(--white);
  border: 1px solid rgba(10, 43, 84, 0.12);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(10, 43, 84, 0.14);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}
.hero-note span { display: block; margin-bottom: 3px; color: var(--pink); font-size: 0.76rem; letter-spacing: 0.14em; }
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  color: var(--navy);
  background:
    radial-gradient(circle at 14% 70%, rgba(255, 82, 124, 0.12) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 24%, rgba(10, 43, 84, 0.1) 0 4px, transparent 5px),
    var(--white);
  overflow: hidden;
}
.intro-overlay[hidden] { display: none; }
body.intro-playing { overflow: hidden; }
.intro-overlay-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.intro-lockup { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; max-width: calc(100% - 24px); user-select: none; }
.intro-overlay-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 16px 4px;
  display: flex;
  justify-content: center;
  gap: 0.03em;
  font-size: clamp(1.4rem, 5.2vw, 5rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.intro-title-flourish { position: absolute; z-index: -1; width: 110%; height: 180%; left: -5%; top: -40%; overflow: visible; pointer-events: none; }
.intro-title-flourish .flourish-line { fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; opacity: .5; }
.intro-title-flourish .flourish-pink { fill: var(--pink); opacity: .6; }
.intro-title-flourish .flourish-navy { fill: var(--navy); opacity: .4; }
.intro-overlay.is-playing .intro-title-flourish { animation: introFlourishIn 900ms 400ms both; }
@keyframes introFlourishIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.intro-overlay-title span { display: inline-block; opacity: 0; transform: translateY(24px) rotate(5deg) scale(0.9); }
.intro-overlay-plane {
  position: relative;
  flex-shrink: 0;
  z-index: 3;
  width: clamp(90px, 20vw, 280px);
  opacity: 0;
  filter: drop-shadow(0 28px 24px rgba(10, 43, 84, 0.22));
  will-change: transform;
}
.intro-overlay-plane img { width: 100%; height: auto; }
.intro-overlay-skip {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 5;
  min-height: 44px;
  padding: 7px 17px;
  color: var(--white);
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}
.intro-overlay.is-playing { animation: introOverlayFade 4.8s linear both; }
.intro-overlay.is-playing .intro-overlay-title span { animation: introTitleIn 380ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(1) { animation-delay: 120ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(2) { animation-delay: 190ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(3) { animation-delay: 260ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(4) { animation-delay: 330ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(5) { animation-delay: 400ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(6) { animation-delay: 470ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(7) { animation-delay: 540ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(8) { animation-delay: 610ms; }
.intro-overlay.is-playing .intro-overlay-title span:nth-child(9) { animation-delay: 680ms; }
.intro-overlay.is-playing .intro-overlay-plane { animation: introPlanePass 2s 1s cubic-bezier(.22,.61,.36,1) both; }
.intro-decorations { position: absolute; inset: 0; pointer-events: none; }
.intro-piece, .intro-spark { position: absolute; left: 50%; top: 50%; opacity: 0; --turn: 0deg; }
.intro-piece { width: clamp(78px, 12vw, 175px); height: clamp(100px, 16vw, 215px); border: 4px solid var(--navy); border-radius: 10px; box-shadow: 8px 10px 0 #ffd2df; background-color: var(--white); }
.intro-card { background-image: linear-gradient(var(--accent), var(--accent)), repeating-linear-gradient(to bottom, var(--navy) 0 4px, transparent 4px 13px); background-size: 72% 35%, 65% 25%; background-position: center 19%, center 80%; background-repeat: no-repeat; }
.intro-piece-one { --x: -28vw; --y: -25vh; --turn: -16deg; --accent: var(--pink); }
.intro-piece-two { --x: 4vw; --y: -29vh; --turn: 10deg; --accent: var(--navy); }
.intro-piece-three { --x: 31vw; --y: -22vh; --turn: 32deg; background-color: var(--navy); }
.intro-piece-four { --x: 27vw; --y: 24vh; --turn: 14deg; --accent: var(--navy); width: clamp(100px, 16vw, 210px); height: clamp(68px, 10vw, 135px); }
.intro-piece-five { --x: -31vw; --y: 23vh; --turn: 38deg; background-color: var(--pink); }
.intro-piece-six { --x: -4vw; --y: 28vh; --turn: -18deg; }
.intro-pencil { width: clamp(20px, 3vw, 38px); height: clamp(110px, 18vw, 230px); border-radius: 7px 7px 2px 2px; background-image: linear-gradient(90deg, transparent 55%, #ffffff88 55% 68%, transparent 68%); }
.intro-pencil::after { content: ""; position: absolute; top: 100%; left: -4px; width: calc(100% + 8px); height: 30px; background: linear-gradient(var(--pink-soft) 0 60%, var(--navy) 60%); clip-path: polygon(0 0,100% 0,50% 100%); }
.intro-ruler { width: clamp(120px, 22vw, 270px); height: clamp(30px, 4vw, 50px); background-color: var(--pink-soft); background-image: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 12px); background-size: 100% 45%; background-repeat: no-repeat; }
.intro-spark { width: clamp(16px,3vw,36px); aspect-ratio: 1; background: var(--pink); clip-path: polygon(50% 0,62% 36%,100% 50%,62% 64%,50% 100%,38% 64%,0 50%,38% 36%); }
.intro-spark-one { --x: -13vw; --y: -19vh; }.intro-spark-two { --x: 20vw; --y: -30vh; background: var(--navy); }
.intro-spark-three { --x: 12vw; --y: 20vh; }.intro-spark-four { --x: -20vw; --y: 30vh; background: var(--navy); }
.intro-overlay.is-playing .intro-piece { animation: introDecorBurst 650ms 3s cubic-bezier(.16,1,.3,1) both; }
.intro-overlay.is-playing .intro-spark { animation: introDecorBurst 550ms 3.12s cubic-bezier(.16,1,.3,1) both; }
@keyframes introDecorBurst {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(.15); }
  65% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--turn)) scale(1.12); }
  100% { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--turn)) scale(1); }
}

@keyframes introTitleIn {
  to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
@keyframes introPlanePass {
  0% { opacity: 0; transform: translate(calc(-65vw - 100%), 50vh) rotate(-12deg) scale(.85); }
  5% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes introOverlayFade {
  0%, 88% { opacity: 1; }
  100% { opacity: 0; }
}

.section { position: relative; padding: clamp(96px, 11vw, 160px) 0; }
.section-inner { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.section { isolation: isolate; }
.section-decor { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; color: #dce6f0; }
.section-decor span { position: absolute; display: block; }
.decor-blob { width: clamp(100px, 15vw, 230px); aspect-ratio: 1; left: -6%; bottom: 9%; border-radius: 31% 69% 67% 33% / 48% 32% 68% 52%; background: #fce5ed; transform: rotate(-24deg); }
.decor-outline { width: clamp(65px, 9vw, 130px); aspect-ratio: 1; right: 3%; top: 7%; border: 3px solid currentColor; border-radius: 28% 12% 35% 16%; transform: rotate(22deg); }
.decor-marks { width: 52px; height: 34px; right: 8%; bottom: 6%; background: repeating-linear-gradient(105deg, transparent 0 13px, currentColor 13px 16px, transparent 16px 20px); transform: rotate(-12deg); }
.services-section .decor-blob, .about-values .decor-blob { background: #eaf0f6; left: auto; right: -5%; bottom: 2%; transform: rotate(35deg); }
.services-section .decor-outline, .about-values .decor-outline { color: #f8dbe5; right: auto; left: 3%; top: 7%; border-radius: 50%; }
.works-section .decor-blob { left: -5%; top: 5%; bottom: auto; width: clamp(90px, 12vw, 180px); clip-path: polygon(8% 12%, 100% 0, 73% 100%); border-radius: 0; }
.works-section .decor-outline { top: 12%; right: 5%; border-radius: 50%; border-width: 8px; }
.flow-section .decor-blob { background: #eaf0f6; bottom: 14%; left: -7%; }
.flow-section .decor-outline { color: #f6d5e0; border-radius: 50% 50% 15% 50%; top: 8%; }
.faq-section .decor-blob { left: auto; right: -5%; bottom: 0; background: #f8e3ec; }
.faq-section .decor-outline { left: 2%; right: auto; top: 5%; width: 70px; border-radius: 4px; transform: rotate(-17deg); }
.contact-section .section-decor, .about-cta .section-decor { color: #edc8d7; }
.contact-section .decor-blob, .about-cta .decor-blob { background: #ffe0ea; left: -6%; bottom: 12%; }
.contact-section .decor-outline { border-radius: 50%; right: -3%; top: 4%; width: 190px; }
.play-section .section-decor { color: rgba(10,43,84,.12); }
.play-section .decor-blob { display: none; }
.play-section .decor-outline { width: 54px; top: auto; bottom: 10%; right: 5%; }
.play-section .decor-marks { right: 5%; top: 10%; bottom: auto; }
@media (max-width: 680px) {
  .empathy-section .section-heading { container-type: inline-size; }
  .empathy-section .section-heading > .eyebrow { margin: 0 0 12px; }
  .empathy-section .section-title-row { display: flex; gap: 4px; }
  .empathy-section .section-title-row > .section-mascot-worried { width: 64px; margin: 0; }
  #main-content .empathy-section .section-heading #empathy-title {
    flex: 0 0 auto;
    font-size: min(clamp(20px, 6.7vw, 30px), calc((100cqi - 70px) / 13.02));
    letter-spacing: -0.07em;
    white-space: nowrap;
  }
  .section-decor { opacity: .65; }
  .decor-blob { width: 110px; left: -65px; }
  .decor-outline { width: 54px; right: -15px; top: 22px; border-width: 2px; }
  .decor-marks { width: 38px; height: 24px; right: 12px; bottom: 18px; }
  .faq-section .decor-outline { left: -36px; }
  .contact-section .decor-outline { width: 110px; right: -65px; }
}
.section-heading { max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-heading h2 { margin: 0; font-size: clamp(2.35rem, 5vw, 4.5rem); line-height: 1.25; letter-spacing: -0.04em; }
.section-heading > p:last-child { margin: 22px 0 0; font-size: 1.05rem; }
.section-heading-split { max-width: none; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 80px; }
.section-heading-split > p:last-child { margin: 0 0 8px; }
.eyebrow { margin: 0 0 12px; color: var(--pink); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.17em; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.empathy-section { background: var(--ice); color: var(--navy); overflow: hidden; }
.empathy-section::before { content: ""; position: absolute; width: 34vw; aspect-ratio: 1; right: -12vw; top: 12%; border: 1px solid var(--line); border-radius: 50%; }
.worry-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(50px, 9vw, 130px); align-items: center; }
.empathy-support { min-width: 0; width: 100%; max-width: 620px; margin-inline: auto; display: grid; justify-items: center; gap: 12px; }
.empathy-mascot { display: block; width: clamp(144px, 17vw, 220px); max-width: 100%; height: auto; }
.worry-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.worry-list li { min-height: 128px; padding: 26px 0; display: flex; align-items: center; gap: 32px; border-top: 1px solid var(--line); font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; line-height: 1.65; }
.worry-list li:last-child { border-bottom: 1px solid var(--line); }
.worry-list > li > span { color: #ffc3d3; font-family: "Cormorant Garamond", "Bodoni MT", "Times New Roman", serif; font-size: clamp(1.875rem, 3.4vw, 2.5rem); font-weight: 400; font-style: italic; font-variant-numeric: lining-nums; line-height: 1; letter-spacing: 0.02em; flex-shrink: 0; }
/* 言葉の折り返しを保ち、悩みの要点だけを淡く飾る。 */
.worry-keyword { position: relative; display: inline-block; isolation: isolate; }
.worry-keyword::before { content: ""; position: absolute; z-index: -1; left: -.03em; right: -.03em; bottom: .12em; height: .3em; background: #f6bfd0; border-radius: 45% 12% 32% 18%; transform: rotate(-2deg); pointer-events: none; }
.worry-list li:nth-child(2) .worry-keyword::before { bottom: .03em; height: .19em; background: transparent; border-bottom: 2px solid #e9a1b8; border-radius: 0 0 50% 40%; transform: rotate(-1deg); }
.worry-list li:nth-child(3) .worry-keyword::before { bottom: .1em; height: .22em; background: #f4c8d6; border-radius: 12% 35% 16% 30%; transform: rotate(1deg); }
.empathy-message { position: relative; padding: 60px 34px; background: #ffc3d3; clip-path: polygon(4% 8%, 100% 0, 90% 100%, 0 87%); color: var(--navy); transform: rotate(2deg); }
.empathy-message p { margin: 0; font-size: clamp(1.65rem, 3vw, 2.65rem); font-weight: 500; line-height: 1.55; transform: rotate(-2deg); }
.empathy-message strong { font-weight: 900; }
.phrase { display: inline-block; }
.empathy-section .section-heading { max-width: none; }
.empathy-section #empathy-title { font-size: clamp(1.65rem, 4.3vw, 4rem); }
.empathy-message { container-type: inline-size; width: 100%; }
.empathy-message p { font-size: clamp(1.2rem, 7.5cqi, 2.15rem); }
.empathy-message strong { display: block; }
.worry-list li > div { min-width: 0; }
.strengths-grid { margin-top: clamp(80px, 11vw, 145px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; color: var(--navy); }
.strength-card { position: relative; isolation: isolate; overflow: hidden; min-height: 350px; padding: clamp(28px, 3vw, 38px); display: flex; flex-direction: column; background: #fffafc; border: 1px solid rgba(10,43,84,.13); border-radius: 44px 12px 44px 12px; box-shadow: 7px 9px 0 #e4ebf3; }
.strength-card-main { background: #ffe5ed; }
.strength-card:nth-child(2) { border-radius: 12px 44px 12px 44px; background: #fff; box-shadow: 7px 9px 0 #f6d7e1; }
.strength-card:nth-child(3) { background: #eef3fa; }
.strength-card::before, .strength-card::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.strength-card::before { width: 108px; height: 108px; right: -18px; top: -18px; border: 22px solid #f48ca9; border-radius: 50%; }
.strength-card::after { width: 66px; height: 66px; right: 44px; top: 46px; background: repeating-linear-gradient(135deg, transparent 0 8px, #0a2b54 8px 10px); border-radius: 50%; opacity: .8; }
.strength-card:nth-child(2)::before { width: 88px; height: 100px; right: 16px; top: 22px; border: 1px solid var(--navy); border-radius: 6px; background: #ffe1e9; transform: rotate(18deg); }
.strength-card:nth-child(2)::after { width: 74px; height: 90px; right: -14px; top: 1px; border: 1px solid var(--navy); border-radius: 6px; background: repeating-linear-gradient(0deg, #fff 0 12px, #b7c6d8 12px 13px); transform: rotate(-12deg); opacity: 1; }
.strength-card:nth-child(3)::before { width: 96px; height: 96px; top: 12px; right: -18px; border: 0; border-radius: 50% 50% 50% 8px; background: #f5a2ba; transform: rotate(-18deg); }
.strength-card:nth-child(3)::after { width: 60px; height: 60px; right: 48px; top: 53px; border: 2px solid var(--navy); border-radius: 50% 50% 8px 50%; background: transparent; opacity: 1; }
.strength-card .card-number { margin: 0 0 34px; color: var(--navy); font-size: clamp(3.25rem, 5vw, 4.5rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; }
.strength-card .card-number::after { content: ""; display: block; width: 36px; height: 5px; margin-top: 16px; border-radius: 3px; background: #e97699; }
.strength-card h3 { margin: 0 0 16px; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.5; text-wrap: balance; }
.strength-card p:not(.card-number) { margin: 0; }
.strength-card small { margin-top: 14px; font-size: 0.84rem; line-height: 1.6; }
.strength-motion-button { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.strength-motion-button:focus-visible { outline: 3px solid var(--navy); outline-offset: -7px; }
@keyframes strengthDecorationWobble {
  0%, 100% { rotate: 0deg; translate: 0 0; }
  22% { rotate: -7deg; translate: 0 -3px; }
  45% { rotate: 5deg; translate: 0 0; }
  67% { rotate: -3deg; }
  84% { rotate: 1.5deg; }
}
@media (prefers-reduced-motion: no-preference) {
  .strength-card.is-wobbling::before,
  .strength-card.is-wobbling::after { animation: strengthDecorationWobble 650ms ease-in-out; }
  .strength-card.is-wobbling::after { animation-delay: 60ms; animation-direction: reverse; }
}

.services-section { background: var(--white); }
.web-service-feature { min-height: 520px; display: grid; grid-template-columns: 0.88fr 1.12fr; background: var(--pink-soft); border-radius: 50px 12px 50px 12px; overflow: hidden; box-shadow: var(--shadow); }
.web-service-heading { grid-column: 1 / -1; padding: clamp(40px, 6vw, 78px) clamp(40px, 6vw, 78px) 0; }
.web-service-copy { padding: 26px clamp(40px, 6vw, 78px) clamp(40px, 6vw, 78px); align-self: start; }
.service-label { margin: 0 0 10px; color: var(--pink); font-weight: 900; }
.web-service-heading h3 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 3rem); line-height: 1.35; white-space: nowrap; }
.web-service-feature > .browser-art { align-self: start; margin-top: 38px; }
.web-service-copy > p:not(.service-label) { margin: 0; font-size: 1.05rem; }
.web-service-copy ul { margin: 26px 0; padding: 0; list-style: none; }
.web-service-copy li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid rgba(10, 43, 84, 0.12); font-size: clamp(1rem, 1.3vw, 1.125rem); font-weight: 700; }
.web-service-copy li::before { content: "✓"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--pink); font-size: 1.3em; line-height: 1; font-weight: 900; }
.text-link { display: inline-block; color: var(--navy); font-weight: 900; text-underline-offset: 6px; }
.browser-art { align-self: center; justify-self: center; width: 82%; min-width: 0; margin: 30px 0 50px; background: var(--white); border: 9px solid var(--navy); border-radius: 24px; box-shadow: -16px 22px 0 rgba(255, 82, 124, 0.2); transform: rotate(-3deg); overflow: hidden; }
.browser-art { padding: 0; appearance: none; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transform-origin: 50% 75%; }
.browser-art:focus-visible { outline: 3px solid var(--pink); outline-offset: 8px; }
.browser-bar { height: 50px; padding: 18px; display: flex; gap: 9px; background: var(--navy); }
.browser-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--pink); }
.browser-page { min-height: 330px; padding: 50px; display: grid; grid-template-columns: 1fr 0.8fr; align-items: center; gap: 32px; background: linear-gradient(140deg, var(--white), var(--pink-pale)); }
.browser-copy { display: grid; gap: 16px; }
.browser-copy b { height: 17px; background: var(--navy); border-radius: 99px; }
.browser-copy b:nth-child(2) { width: 82%; }.browser-copy b:nth-child(3) { width: 60%; background: var(--pink); }
.browser-copy span { width: 120px; height: 42px; margin-top: 12px; background: var(--navy); border-radius: 99px; }
.browser-shape { aspect-ratio: 1; background: var(--pink); clip-path: polygon(0 18%, 100% 0, 83% 100%, 18% 78%); }

.service-strip { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 18px; }
.service-tile { padding: 28px; background: var(--ice); border: 1px solid rgba(10, 43, 84, 0.08); border-radius: 10px 34px 10px 34px; }
.service-tile:nth-child(2), .service-tile:nth-child(5) { background: var(--pink-soft); color: var(--navy); }
.service-tile:nth-child(3) { background: var(--pink); }
.service-tile-tall { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; background: var(--pink-soft); }
.service-tile-wide { grid-column: span 2; }
.service-tile span { color: var(--pink); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.16em; }
.service-tile:nth-child(3) span { color: var(--navy); }
.service-tile h3 { margin: 18px 0 10px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.35; }
.service-tile p { margin: 0; font-size: 0.95rem; }

.works-section { background: var(--ice); overflow: hidden; }
.work-group + .work-group { margin-top: 130px; }
.works-section .section-heading { margin-bottom: clamp(24px, 4vw, 52px); }
.work-group-heading { margin-bottom: 30px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.work-group-heading p { margin: 0; }.work-group-heading > p { max-width: 430px; }
.work-group-heading div > p { color: var(--pink); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.16em; }
.work-group-heading h3 { margin: 4px 0 0; font-size: clamp(2rem, 3.8vw, 3.2rem); }
.coverflow { user-select: none; touch-action: pan-y; }
.coverflow-stage { position: relative; height: 540px; perspective: 1300px; touch-action: pan-y; cursor: grab; }
.coverflow-stage:active { cursor: grabbing; }
.coverflow .work-card { transition: none; }
.coverflow-web .coverflow-stage { height: 480px; }
.work-card { position: absolute; left: 50%; top: 50%; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; background: var(--white); border: 1px solid rgba(10, 43, 84, 0.13); box-shadow: 0 26px 70px rgba(10, 43, 84, 0.16); transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), opacity 450ms ease; will-change: transform; }
.work-card-flyer { width: min(370px, 50vw); aspect-ratio: 210 / 297; border-radius: 8px 32px 8px 8px; }
.work-card-web { width: min(680px, 64vw); aspect-ratio: 16 / 9; padding: 16px; border-radius: 20px; overflow: hidden; }
.work-card-web .work-card-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.work-card[data-slide] { cursor: pointer; }
.work-card[data-position="0"]:not(:has(.work-site-link)) { cursor: default; }
.work-site-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.work-site-link:focus-visible { outline: 3px solid var(--navy); outline-offset: -5px; }
.work-card-web::before { display: none; }
.work-card.work-card-web > span { align-self: flex-end; background: rgba(255,255,255,.92); font-size: .7rem; padding: 4px 10px; }
.work-card-web > div { margin: 0 -16px -16px; padding: 12px 16px; background: rgba(255,255,255,.55); }
.work-card-web > div b { font-size: .85rem; }
.work-card-web > div small { font-size: .65rem; }
.work-card::before { content: ""; position: absolute; inset: 72px 22px 74px; background: repeating-linear-gradient(-45deg, var(--pink-pale) 0 15px, var(--white) 15px 30px); border: 2px dashed rgba(10, 43, 84, 0.18); }
.work-card span, .work-card div { position: relative; z-index: 1; }
.work-card span { align-self: flex-start; padding: 5px 13px; color: var(--navy); background: var(--pink); border-radius: 999px; font-size: 0.8rem; font-weight: 900; }
.work-card div { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.work-card b { font-size: 1.2rem; }.work-card small { font-weight: 800; letter-spacing: 0.12em; }
.work-card[data-position="0"] { z-index: 5; transform: translate(-50%, -50%) rotateY(0) scale(1); opacity: 1; }
.work-card[data-position="-1"] { z-index: 4; transform: translate(-122%, -50%) rotateY(24deg) scale(0.78); opacity: 0.72; }
.work-card[data-position="1"] { z-index: 4; transform: translate(22%, -50%) rotateY(-24deg) scale(0.78); opacity: 0.72; }
.work-card[data-position="-2"] { z-index: 3; transform: translate(-160%, -50%) rotateY(34deg) scale(0.62); opacity: 0.3; }
.work-card[data-position="2"] { z-index: 3; transform: translate(60%, -50%) rotateY(-34deg) scale(0.62); opacity: 0.3; }
.work-card[data-hidden="true"] { opacity: 0; pointer-events: none; }
.slider-controls { margin-top: 26px; display: flex; justify-content: center; align-items: center; gap: 26px; }
.slider-controls button { --jelly-wide: 1.1; --jelly-flat: .88; --jelly-narrow: .94; --jelly-tall: 1.08; position: relative; isolation: isolate; width: 52px; min-width: 52px; height: 52px; min-height: 52px; padding: 12px; display: grid; place-items: center; color: var(--navy); background: linear-gradient(145deg, rgba(255,255,255,.75), rgba(255,250,253,.25) 55%, rgba(248,217,228,.4)); border: 1px solid rgba(237,199,211,.85); border-radius: 50%; box-shadow: inset 0 1px 2px #ffffffdd, inset 0 -2px 4px #ecd1db55, 0 3px 0 #ecd1db88, 0 7px 16px rgba(10,43,84,.06); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; transition: background-color 220ms ease, box-shadow 220ms ease; }
.slider-controls button::before { content: ""; position: absolute; top: 5px; left: 24%; width: 52%; height: 9px; border-radius: 50%; background: linear-gradient(#ffffffbb, #ffffff00); pointer-events: none; }
.slider-controls button:hover { background-color: rgba(248,217,228,.25); }
.slider-controls button:active { box-shadow: inset 0 1px 3px #ecd1db77, 0 1px 0 #ecd1db88; }
.slider-controls button:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.slider-controls svg { position: relative; width: 28px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 220ms ease; }
.slider-controls [data-slider-prev]:hover svg { transform: translateX(-3px); }
.slider-controls [data-slider-next]:hover svg { transform: translateX(3px); }
.slider-controls p { min-width: 66px; margin: 0; text-align: center; }.slider-controls strong { color: var(--pink); font-size: 1.45rem; }

.play-section { background: #ff8fab; overflow: hidden; }
.play-section::before { content: ""; position: absolute; width: 46vw; aspect-ratio: 1; left: -18vw; bottom: -20%; background: rgba(255,255,255,.3); border-radius: 50%; pointer-events: none; }
.play-section::after { content: ""; position: absolute; width: clamp(180px, 28vw, 430px); aspect-ratio: 1; right: -8vw; top: -12%; border: 36px solid rgba(10,43,84,.1); border-radius: 50%; pointer-events: none; }
.play-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.play-grid::before { content: ""; position: absolute; width: 100px; height: 50px; left: 44%; bottom: -70px; background: rgba(255,255,255,.5); border-radius: 100px 100px 0 0; transform: rotate(-20deg); pointer-events: none; }
.play-copy h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.35; letter-spacing: -0.04em; }
.play-copy > p:not(.eyebrow):not(.touch-mode-help) { margin: 24px 0; font-weight: 600; }
.play-section .eyebrow { color: var(--navy); }
.touch-mode-button { min-height: 52px; padding: 10px 22px; color: var(--white); background: var(--navy); border: 2px solid var(--navy); border-radius: 999px; font-weight: 900; cursor: pointer; }
.touch-mode-button[aria-pressed="true"] { color: var(--navy); background: var(--white); }
.touch-mode-help { margin: 12px 0 0; font-size: 0.84rem; line-height: 1.6; }
.character-controller { position: relative; min-width: 0; }
.character-stage { position: relative; width: 100%; min-height: 460px; display: grid; place-items: center; perspective: 900px; cursor: grab; touch-action: pan-y; }
[data-character-stage], [data-character-card], [data-character-card] img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
[data-character-card] { pointer-events: none; }
[data-character-card] img { -webkit-touch-callout: none; }
.character-stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1.45; background: rgba(255,255,255,.5); clip-path: polygon(8% 12%, 100% 0, 88% 100%, 0 84%); }
.character-stage.is-dragging { cursor: grabbing; }
.character-stage.touch-enabled { touch-action: none; }
.character-card { position: relative; z-index: 1; width: min(78%, 540px); transform-style: flat; transition: transform 180ms ease-out; }
.character-stage.is-dragging .character-card { transition: none; }
.character-card img { width: 100%; height: auto; pointer-events: none; }
.character-controls { margin-top: 14px; display: flex; justify-content: center; gap: 9px; }
.character-controls button { min-height: 44px; padding: 8px 15px; color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 999px; font-weight: 800; cursor: pointer; }
.character-controls .touch-mode-button { color: var(--white); background: var(--navy); }
.character-controls .touch-mode-button[aria-pressed="true"] { color: var(--navy); background: var(--white); }
.hero-character-tools .lock-toggle,
.character-controls .lock-toggle { width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0; display: inline-grid; place-items: center; color: #fff; background: var(--navy); border: 0; border-radius: 15px; cursor: pointer; transition: background-color 300ms ease, box-shadow 300ms ease; }
.hero-character-tools .lock-toggle[aria-pressed="true"],
.character-controls .lock-toggle[aria-pressed="true"] { color: #fff; background: #ed7599; box-shadow: 0 4px 12px rgba(237, 117, 153, 0.22); }
.lock-toggle:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.lock-icon { position: relative; display: block; width: 22px; height: 27px; transform: rotate(-10deg); transition: transform 320ms ease; pointer-events: none; }
.lock-shackle { position: absolute; left: 4px; top: 1px; width: 14px; height: 15px; border: 3px solid currentColor; border-bottom: 0; border-radius: 9px 9px 0 0; transform-origin: 12px 13px; transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
.lock-body { position: absolute; left: 1px; bottom: 0; width: 20px; height: 16px; border-radius: 4px; background: currentColor; }
.lock-body::after { content: ""; position: absolute; left: 9px; top: 5px; width: 3px; height: 6px; border-radius: 2px; background: var(--navy); transition: background-color 300ms ease; }
.lock-toggle[aria-pressed="true"] .lock-icon { transform: rotate(0deg); }
.lock-toggle[aria-pressed="true"] .lock-shackle { transform: translateY(-3px) rotate(35deg); }
.lock-toggle[aria-pressed="true"] .lock-body::after { background: #ed7599; }
@media (prefers-reduced-motion: reduce) {
  .lock-toggle, .lock-icon, .lock-shackle, .lock-body::after { transition: none !important; }
}
.character-controller > .touch-mode-help { max-width: 440px; margin: 12px auto 0; text-align: center; }
.play-toy-board { position: absolute; top: 0; left: 0; width: 100%; height: 460px; pointer-events: none; }
.play-toy { position: absolute; z-index: 3; width: 70px; height: 70px; padding: 6px; display: grid; place-items: center; border: 0; background: transparent; cursor: grab; pointer-events: auto; touch-action: pan-y; user-select: none; -webkit-user-select: none; transform: translate(var(--toy-x, 0px), var(--toy-y, 0px)); }
/* 動く道具の影はfilterを使わず描き、Safariの影の残像を避ける。 */
.play-toy span { display: block; width: 100%; height: 100%; pointer-events: none; transform: rotate(var(--toy-angle, 0deg)); box-shadow: 4px 6px 0 rgba(10,43,84,.12); }
.play-toy.is-dragging { cursor: grabbing; z-index: 5; }
.play-grid.toys-touch-enabled .play-toy { touch-action: none; }
.toy-pencil { left: 5%; top: 5%; width: 52px; height: 122px; --toy-angle: 25deg; }
.toy-pencil span { position: relative; width: 24px; box-shadow: none; }
.toy-pencil span::before, .toy-pencil span::after { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0,100% 0,100% 78%,50% 100%,0 78%); }
.toy-pencil span::before { background: rgba(10,43,84,.12); transform: translate(4px, 6px); }
.toy-pencil span::after { background: linear-gradient(to bottom, var(--navy) 0 12%, white 12% 16%, var(--navy) 16% 78%, #fff0f4 78% 92%, var(--navy) 92%); }
.toy-card { left: 73%; top: 5%; width: 108px; height: 76px; --toy-angle: 12deg; }
.toy-card span { background: linear-gradient(var(--pink),var(--pink)) 15% 30% / 22% 38% no-repeat, repeating-linear-gradient(to bottom,var(--navy) 0 3px,transparent 3px 10px) 83% 50% / 45% 52% no-repeat, white; border: 3px solid var(--navy); border-radius: 5px; }
.toy-ruler { left: 10%; top: 77%; width: 130px; height: 48px; --toy-angle: -14deg; }
.toy-ruler span { background: repeating-linear-gradient(90deg,var(--navy) 0 2px,transparent 2px 11px) left top / 100% 50% no-repeat, #fff0f4; border: 3px solid var(--navy); border-radius: 4px; }
.toy-circle { left: 79%; top: 69%; width: 65px; height: 65px; }
.toy-circle span { border: 10px solid var(--navy); border-radius: 50%; background: #ffffff55; }
.toy-square { left: 42%; top: 1%; width: 48px; height: 48px; --toy-angle: -18deg; }
.toy-square span { background: var(--pink-soft); border: 3px solid var(--navy); border-radius: 7px; }
.toy-reset { display: block; margin: 18px auto 0; padding: 8px 14px; min-height: 44px; border: 0; border-bottom: 1px solid currentColor; color: var(--navy); background: transparent; font-size: .8rem; font-weight: 700; cursor: pointer; }
@media (max-width: 980px) { .play-toy-board { height: 420px; } }
@media (max-width: 680px) {
  .web-service-heading { padding-inline: 24px; }
  .web-service-copy { padding-inline: 24px; container-type: inline-size; }
  .web-service-heading h3 { white-space: normal; }
  .web-service-heading h3 > span, .service-description > span { display: block; white-space: nowrap; }
  .web-service-heading h3 > span:last-child { padding-left: clamp(12px, 4vw, 24px); }
  .web-service-copy > p.service-description { font-size: min(clamp(14px, 3.9vw, 16px), calc((100cqi - 2px) / 18)); line-height: 1.9; text-align: left; }
  .service-description .service-desktop-break { display: none; }
  .play-toy-board { height: 320px; }
  .toy-card { left: 67%; width: 86px; height: 66px; }
  .toy-pencil { height: 100px; }
  .toy-ruler { width: 106px; }
  .toy-circle { left: 77%; width: 56px; height: 56px; }
}

.flow-section { background: var(--white); }
.heading-with-mascot { max-width: none; }
.section-title-row { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); width: fit-content; max-width: 100%; }
.section-title-row h2 { min-width: 0; }
.services-section .section-heading { max-width: none; container-type: inline-size; }
.services-title-row > .services-title-art { display: block; flex: 0 0 auto; width: clamp(88px, 10vw, 132px); height: auto; }
@media (max-width: 680px) {
  .services-title-row { gap: 8px; }
  .services-title-row > .services-title-art { width: 64px; }
  #main-content .services-section #services-title { flex: 0 0 auto; font-size: min(clamp(20px, 6.7vw, 30px), calc((100cqi - 74px) / 9.6)); }
}
.section-title-row > .section-title-art { display: block; flex: 0 0 auto; width: clamp(140px, 14vw, 210px); height: auto; }
.section-mascot { display: block; width: 180px; max-width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; touch-action: manipulation; border-radius: 24px; }
.section-mascot img { display: block; width: 100%; height: auto; transform-origin: 50% 85%; }
.section-mascot:focus-visible { outline: 2px solid var(--pink); outline-offset: 6px; }
.section-mascot:disabled { cursor: default; }
.section-title-row > .section-mascot,
.section-title-row > .empathy-mascot { flex: 0 0 auto; width: clamp(88px, 10vw, 132px); margin: 0; }
@keyframes mascotOrder {
  0%, 100% { transform: translateY(0) rotate(0); }
  20%, 60% { transform: translateY(-5px) rotate(-3deg); }
  40%, 80% { transform: translateY(0) rotate(2deg); }
}
@keyframes mascotWorried {
  0%, 100% { transform: rotate(0) translateY(0); }
  28%, 42% { transform: rotate(-7deg) translateY(-3px); }
  68% { transform: rotate(4deg) translateY(-1px); }
  86% { transform: rotate(-2deg) translateY(0); }
}
@keyframes mascotQuestion {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-9deg); }
  60% { transform: rotate(6deg); }
  80% { transform: rotate(-3deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .section-mascot-order.is-animating img { animation: mascotOrder 1600ms ease-in-out; }
  .section-mascot-question.is-animating img { animation: mascotQuestion 1800ms ease-in-out; }
  .section-mascot-worried.is-animating img { animation: mascotWorried 1900ms ease-in-out; }
}
@media (max-width: 600px) {
  .section-title-row > .section-mascot,
  .section-title-row > .empathy-mascot,
  .section-title-row > .section-title-art { width: 64px; }
  .works-section .section-title-row > .section-title-art { width: 100px; }
  .section-heading .section-title-row h2 { font-size: clamp(1.65rem, 6.5vw, 2.35rem); }
}
.flow-list { margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.flow-list li { min-height: 145px; padding: 28px 0; display: grid; grid-template-columns: 90px 0.55fr 1fr; align-items: center; gap: 30px; border-top: 1px solid var(--line); }
.flow-list li:last-child { border-bottom: 1px solid var(--line); }
.flow-list span { width: 62px; aspect-ratio: 1; display: grid; place-items: center; color: #c65b81; background: #ffe1e9; border-radius: 50%; font-family: "Cormorant Garamond", "Bodoni MT", "Times New Roman", serif; font-size: 1.375rem; font-weight: 400; font-style: italic; font-variant-numeric: lining-nums; line-height: 1; }
.flow-list h3 { position: relative; isolation: isolate; width: fit-content; max-width: 100%; margin: 0; padding: 4px 20px 8px 0; font-size: clamp(1.35rem, 2.3vw, 1.85rem); }
/* 見出しごとに形と置き場所を変え、余白に小さく散らす */
.flow-list h3::before, .flow-list h3::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.flow-list li:nth-child(1) h3::before { left: 4px; bottom: 6px; width: 58%; height: 7px; background: #ffe1e9; border-radius: 70% 30% 55% 45%; transform: rotate(-4deg); }
.flow-list li:nth-child(1) h3::after { right: 3px; top: -3px; width: 7px; height: 7px; background: #edb1c4; border-radius: 50%; box-shadow: -10px -5px 0 -2px #c8d8e7; }
.flow-list li:nth-child(2) h3::before { left: 0; top: 0; width: 32px; height: 23px; background: #eaf1f7; border-radius: 3px; transform: rotate(-13deg); }
.flow-list li:nth-child(2) h3::after { right: 4px; bottom: 3px; width: 15px; height: 12px; border-right: 2px solid #edb1c4; border-bottom: 2px solid #edb1c4; border-radius: 0 0 7px 0; transform: rotate(12deg); }
.flow-list li:nth-child(3) h3::before { right: 22px; bottom: 1px; width: 38px; height: 9px; border-bottom: 2px solid #c8d8e7; border-radius: 50%; transform: rotate(-8deg); }
.flow-list li:nth-child(3) h3::after { left: 12px; top: -9px; width: 8px; height: 8px; background: #f3c4d3; transform: rotate(32deg); border-radius: 1px; }
.flow-list li:nth-child(4) h3::before { right: 9px; top: 8px; width: 27px; height: 30px; background: #ffe8ef; border-radius: 65% 35% 48% 52%; transform: rotate(22deg); }
.flow-list li:nth-child(4) h3::after { left: 3px; top: -8px; width: 13px; height: 9px; border-left: 2px solid #bfd0e1; border-right: 2px solid #bfd0e1; transform: rotate(-24deg); }
.flow-list li:nth-child(5) h3::before { left: 8px; bottom: 2px; width: 30px; height: 6px; border-top: 2px solid #edc1d0; border-bottom: 1px solid #edc1d0; transform: rotate(5deg); }
.flow-list li:nth-child(5) h3::after { right: 8px; top: -5px; width: 14px; height: 14px; border: 1.5px solid #c5d5e5; border-radius: 50%; }
.flow-list p { margin: 0; font-size: 1.125rem; line-height: 1.85; }
.flow-list div { display: contents; }
@keyframes flowNumberArrival {
  from { opacity: 0; transform: translateY(14px) scale(.78); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .flow-list > li.is-visible > span { animation: flowNumberArrival 950ms cubic-bezier(.22,1,.36,1) both; }
  .flow-list > li:nth-child(2) > span { animation-delay: 120ms; }
  .flow-list > li:nth-child(3) > span { animation-delay: 240ms; }
  .flow-list > li:nth-child(4) > span { animation-delay: 360ms; }
  .flow-list > li:nth-child(5) > span { animation-delay: 480ms; }
}

.faq-section { background: var(--ice); color: var(--navy); }
.faq-layout { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.faq-layout .section-heading { position: static; max-width: none; margin-bottom: 0; }
.faq-layout .section-heading h2 { font-size: clamp(1.8rem, 3.2vw, 3rem); }
.faq-list { display: grid; gap: 12px; }
.faq-disclosure { min-width: 0; }
html.has-faq-disclosure, html.has-faq-disclosure body { overflow-anchor: none; }
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq-list summary { position: relative; min-height: 76px; padding: 23px 72px 23px 70px; font-size: 1rem; font-weight: 800; cursor: pointer; list-style: none; }
/* 質問の余白に、小さな飾りを少しずつ違う位置で添える。 */
.faq-list details { position: relative; }
.faq-list details::before,
.faq-list details::after { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.faq-list details:nth-child(1)::before { top: 7px; right: 74px; width: 19px; height: 9px; border-top: 2px solid #f3bfd1; border-radius: 50%; transform: rotate(-14deg); }
.faq-list details:nth-child(1)::after { bottom: 8px; left: 27%; width: 5px; height: 5px; border-radius: 50%; background: #cadde9; }
.faq-list details:nth-child(2)::before { top: 7px; left: 39%; width: 10px; height: 10px; border: 1px solid #c8dce8; border-radius: 2px; transform: rotate(23deg); }
.faq-list details:nth-child(2)::after { bottom: 8px; right: 70px; width: 18px; height: 5px; border-block: 1px solid #efbfd0; transform: rotate(-12deg); }
.faq-list details:nth-child(3)::before { top: 7px; right: 29%; width: 7px; height: 7px; background: #f7d3df; border-radius: 60% 40% 65% 35%; transform: rotate(-20deg); }
.faq-list details:nth-child(3)::after { bottom: 7px; left: 77px; width: 20px; height: 7px; border-bottom: 1px solid #c8dce8; border-radius: 50%; transform: rotate(8deg); }
.faq-extra details:nth-child(1)::before { top: 6px; right: 82px; width: 10px; height: 10px; border: 1px solid #f0c0d1; border-radius: 50%; transform: rotate(0); }
.faq-extra details:nth-child(1)::after { bottom: 7px; left: 35%; width: 15px; height: 6px; border-radius: 0; background: none; border-bottom: 2px solid #c8dce8; transform: rotate(-16deg); }
.faq-extra details:nth-child(2)::before { top: 8px; left: 31%; width: 17px; height: 7px; border: 0; border-radius: 50%; border-top: 1px solid #f0bfd0; transform: rotate(12deg); }
.faq-extra details:nth-child(2)::after { bottom: 8px; right: 85px; width: 5px; height: 5px; border: 0; border-radius: 50%; background: #c8dce8; box-shadow: 9px -3px 0 -1px #f3c9d8; }
.faq-extra details:nth-child(3)::before { top: 7px; right: 32%; width: 8px; height: 8px; border-radius: 1px; background: #d5e3ed; transform: rotate(32deg); }
.faq-extra details:nth-child(3)::after { bottom: 8px; left: 82px; width: 19px; height: 6px; border-color: #efbfd0; transform: rotate(-8deg); }
.faq-list summary::before { content: "Q"; position: absolute; left: 18px; top: 18px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--navy); background: #ffe1e9; border-radius: 48% 52% 42% 58%; font-family: "Cormorant Garamond", "Bodoni MT", Georgia, serif; font-size: 1.625rem; font-weight: 500; font-style: italic; line-height: 1; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 36px; height: 36px; border: 1px solid #edc7d3; border-radius: 50%; background: linear-gradient(var(--navy),var(--navy)) center / 14px 2px no-repeat, linear-gradient(var(--navy),var(--navy)) center / 2px 14px no-repeat, #fff5f9; box-shadow: inset 0 1px 2px #fff, 0 2px 0 #f4dce5; transform: translateY(-50%); }
.faq-list details[open] summary::after { background: linear-gradient(var(--navy),var(--navy)) center / 14px 2px no-repeat, #ffe1e9; }
@keyframes faqJelly {
  0%, 100% { transform: translateY(-50%) scale(1, 1); }
  20% { transform: translateY(-50%) scale(1.09, .88); }
  42% { transform: translateY(-50%) scale(.95, 1.07); }
  64% { transform: translateY(-50%) scale(1.025, .975); }
  82% { transform: translateY(-50%) scale(.99, 1.01); }
}
@media (prefers-reduced-motion: no-preference) {
  .faq-list summary.is-faq-jelly::after { animation: faqJelly 600ms ease-in-out; }
}
.faq-list summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 14px; }
.faq-list details p { margin: 0; padding: 0 70px 24px; color: var(--navy-2); font-size: .95rem; line-height: 1.9; }
.faq-list details[hidden], .faq-more[hidden], .faq-extra[hidden] { display: none; }
.faq-extra { display: flex; flex-direction: column; gap: 12px; overflow: hidden; overflow-anchor: none; box-sizing: border-box; }
.faq-extra::before { content: ""; flex: 0 0 0; }
.faq-extra > details { flex-shrink: 0; }
.faq-more { display: flex; align-items: center; justify-content: center; gap: 16px; min-width: 180px; min-height: 48px; margin: 14px auto 0; padding: 12px 26px; border: 1px solid rgba(224,163,187,.52); border-radius: 999px; background: linear-gradient(180deg,rgba(255,255,255,.65),rgba(255,224,235,.28)); color: var(--navy); font: inherit; font-weight: 700; box-shadow: inset 0 1px 2px rgba(255,255,255,.9), 0 3px 0 rgba(231,190,207,.24), 0 6px 16px rgba(10,43,84,.05); backdrop-filter: blur(8px); cursor: pointer; }
.faq-more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.faq-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.faq-more:hover { background: linear-gradient(180deg,rgba(255,255,255,.8),rgba(255,224,235,.45)); }
.faq-more:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }

/* セクションごとに異なる、静止したタイトル装飾 */
:is(#empathy-title, #services-title, #works-title, #play-title, #flow-title, #faq-title, #contact-title) { position: relative; isolation: isolate; width: fit-content; max-width: 100%; }
:is(#empathy-title, #services-title, #works-title, #play-title, #flow-title, #faq-title, #contact-title)::before,
:is(#empathy-title, #services-title, #works-title, #play-title, #flow-title, #faq-title, #contact-title)::after { content: ""; position: absolute; pointer-events: none; z-index: -1; }
/* お悩み：片側に寄せたやわらかい丸と、小さな二粒 */
#empathy-title::before { left: -9px; bottom: -7px; width: 1.15em; height: .7em; border: 2px solid #efc0d0; border-radius: 50%; transform: rotate(-16deg); }
#empathy-title::after { right: 9%; top: -10px; width: 7px; height: 7px; background: #c9dbe9; border-radius: 50%; box-shadow: 13px -5px 0 -1px #f3c9d7; }
@media (min-width: 681px) {
  #empathy-title::before {
    left: 10px;
    bottom: -14px;
    width: 1.4em;
    height: 7px;
    border: 0;
    border-bottom: 3px solid #efc0d0;
    border-radius: 0 0 55% 40%;
    transform: rotate(-4deg);
  }
}
/* デザイン：ずらして置いた淡い紙片と、短い鉛筆線 */
#services-title::before { left: 18%; bottom: -5px; width: 1.65em; height: .5em; background: #ffe1eb; clip-path: polygon(6% 10%,100% 0,92% 100%,0 85%); transform: rotate(-7deg); }
#services-title::after { right: 5px; top: -12px; width: 26px; height: 12px; border-left: 2px solid #bed0df; border-right: 2px solid #bed0df; transform: rotate(24deg); }
/* 制作物：下に流れる弧と、左上の小さな紙吹雪 */
#works-title::before { left: 8%; bottom: -13px; width: 85%; height: 14px; border-bottom: 3px solid #efb8cb; border-radius: 50%; transform: rotate(-5deg); }
#works-title::after { left: -10px; top: -5px; width: 12px; height: 17px; background: #dbe7f0; clip-path: polygon(0 0,100% 18%,76% 100%,12% 80%); transform: rotate(-25deg); }
/* 遊び：ピンク背景に透ける斜めの輪と、三本の短い線 */
#play-title::before { right: 2%; top: -13px; width: .8em; height: .65em; border: 3px solid rgba(255,255,255,.62); border-radius: 50%; transform: rotate(-24deg); }
#play-title::after { left: 4px; bottom: -16px; width: 39px; height: 15px; background: repeating-linear-gradient(90deg,rgba(255,255,255,.7) 0 3px,transparent 3px 15px); transform: rotate(17deg); }
/* 流れ：左下の二重線と、右上の傾いた四角 */
#flow-title::before { left: 5%; bottom: -9px; width: 1.3em; height: 8px; border-top: 2px solid #e9b9c9; border-bottom: 1px solid #e9b9c9; transform: rotate(-4deg); }
#flow-title::after { right: 12%; top: -13px; width: 16px; height: 16px; border: 2px solid #c9dbe9; border-radius: 3px; transform: rotate(23deg); }
/* 質問：言葉の後ろの小さな吹き出しと、離れた一粒 */
#faq-title::before { left: -8px; top: -8px; width: 1.05em; height: .72em; background: #ffe0eb; border-radius: 50% 45% 50% 8%; transform: rotate(-15deg); }
#faq-title::after { right: 20%; bottom: -9px; width: 7px; height: 7px; background: #bfd2e3; border-radius: 50%; }
/* 問い合わせ：末尾をそっと囲む曲線と、中央寄りの星 */
#contact-title::before { right: 0; bottom: -10px; width: 2.5em; height: .4em; border-bottom: 2px solid #e9aec4; border-right: 2px solid #e9aec4; border-radius: 0 0 80% 40%; transform: rotate(-3deg); }
#contact-title::after { left: 40%; top: -16px; width: 15px; height: 20px; background: #bed1e2; clip-path: polygon(50% 0,65% 35%,100% 50%,65% 65%,50% 100%,35% 65%,0 50%,35% 35%); transform: rotate(12deg); }
.contact-section { background: var(--pink-soft); }
.contact-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; column-gap: clamp(50px, 8vw, 110px); row-gap: clamp(32px, 4vw, 56px); align-items: start; }
.contact-heading { grid-column: 1 / -1; min-width: 0; }
.contact-heading #contact-title { margin: 0; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.35; letter-spacing: -0.035em; white-space: nowrap; }
.contact-title-row > .contact-title-art { display: block; flex: 0 0 auto; width: clamp(88px, 10vw, 132px); height: auto; }
@media (max-width: 680px) {
  .contact-heading { container-type: inline-size; }
  .contact-title-row { gap: 8px; }
  .contact-title-row > .contact-title-art { width: clamp(44px, 14vw, 64px); }
  #main-content .contact-heading #contact-title { flex: 0 0 auto; font-size: min(clamp(20px, 6.7vw, 30px), calc((100cqi - clamp(44px, 14vw, 64px) - 10px) / 10.65)); }
}
.contact-copy { position: sticky; top: calc(var(--header-height) + 32px); min-width: 0; }
.contact-description { margin: 22px 0 0; white-space: nowrap; }
.contact-direct { margin-top: 0; display: grid; gap: 12px; }
.contact-direct a { padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--white); border-radius: 14px; font-weight: 800; text-decoration: none; box-shadow: 0 12px 30px rgba(10,43,84,.08); }
.contact-direct span { color: var(--pink); font-size: 0.82rem; letter-spacing: 0.1em; }
.contact-section { overflow: clip; }
.contact-form { position: relative; padding: clamp(30px, 5vw, 58px); background: var(--white); border-radius: 34px 8px 34px 34px; box-shadow: var(--shadow); }
.contact-form:has(.contact-peek) { margin-top: 56px; }
@media (min-width: 981px) {
  .contact-grid:has(.contact-peek) > .contact-copy { margin-top: 56px; }
}
.contact-peek { position: absolute; top: 0; right: 0; width: 180px; height: auto; transform: translateY(-81.5%); pointer-events: none; user-select: none; }
@media (max-width: 680px) {
  .contact-form:has(.contact-peek) { margin-top: 48px; }
  .contact-peek { width: 140px; }
}
.form-field + .form-field { margin-top: 24px; }
.form-field label { display: block; margin-bottom: 8px; font-weight: 800; }
.contact-form .form-field label { position: relative; width: fit-content; isolation: isolate; }
.contact-form .form-field label::before,
.contact-form .form-field label::after { content: ""; position: absolute; pointer-events: none; }
.contact-form .form-field label::before { z-index: -1; left: 0; bottom: 2px; width: 100%; height: 5px; background: #ffe1e9; border-radius: 65% 35% 55% 45%; transform: rotate(-3deg); }
.contact-form .form-field label::after { top: 3px; right: -15px; width: 5px; height: 5px; background: #c8dce8; border-radius: 50%; }
.contact-form label[for="contact-email"]::before { width: 48%; height: 4px; background: #dfebf2; transform: rotate(2deg); }
.contact-form label[for="contact-email"]::after { top: 5px; right: -19px; width: 10px; height: 6px; background: none; border-top: 1px solid #efb8ca; border-radius: 50%; transform: rotate(-22deg); }
.contact-form label[for="contact-subject"]::before { left: -3px; width: 22px; height: 7px; background: #ffe1e9; transform: rotate(-7deg); }
.contact-form label[for="contact-subject"]::after { top: 4px; right: -17px; width: 7px; height: 7px; background: none; border: 1px solid #c8dce8; border-radius: 1px; transform: rotate(20deg); }
.contact-form label[for="contact-message"]::before { height: 5px; background: #dfebf2; transform: rotate(3deg); }
.contact-form label[for="contact-message"]::after { top: 5px; right: -15px; width: 4px; height: 4px; background: #efbfd0; box-shadow: 6px -4px 0 -1px #c8dce8; }
.form-field input, .form-field textarea { width: 100%; padding: 14px 16px; color: var(--navy); background: var(--ice); border: 2px solid transparent; border-radius: 10px; font-size: 1rem; }
.form-field input:focus, .form-field textarea:focus { background: var(--white); border-color: var(--navy); outline: 0; }
.form-field textarea { resize: vertical; min-height: 160px; }
.form-note { margin: 18px 0; font-size: 0.85rem; white-space: nowrap; letter-spacing: -0.025em; }
.contact-form .form-submit { display: flex; width: min(180px, 100%); min-width: 0; min-height: 48px; padding: 10px 24px; margin-inline: auto; font-size: .95rem; }
.contact-form .form-submit { background: rgba(245,203,217,.38); border-color: rgba(229,163,186,.55); box-shadow: 0 2px 0 rgba(217,149,172,.18), 0 7px 16px rgba(151,65,94,.04); }
.contact-form .form-submit::before { display: none; }
.contact-form .form-submit:hover, .contact-form .form-submit:focus-visible { background: rgba(245,203,217,.5); }
.form-submit[disabled] { opacity: .65; cursor: wait; }
.form-status { min-height: 30px; margin-top: 16px; font-weight: 700; }
.form-status.is-success { color: #176b47; }.form-status.is-error { color: #a52842; }
.form-status a { text-underline-offset: 4px; }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; }

.site-footer { padding: 64px 0 28px; color: var(--white); background: #172b47; }
.footer-inner { width: min(1180px, calc(100% - 64px)); margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 20px; }
.footer-logo { display: block; padding: 16px 20px; border-radius: 14px; background: linear-gradient(120deg, #ffffff, #e9eef5); }
.footer-brand img { display: block; width: min(340px, 100%); height: auto; }
.footer-brand p { margin: 12px 0 0; color: #ffb6c9; font-size: .85rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav div { display: contents; }
.footer-nav p { display: none; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: rgba(255,255,255,.94); font-size: .85rem; font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 5px; }
.footer-copy { width: min(1180px, calc(100% - 64px)); margin: 16px auto 0; color: rgba(255,255,255,.65); font-size: .75rem; }

/* 紹介ページ */
.about-hero { position: relative; padding: calc(var(--header-height) + 110px) 0 120px; background: var(--pink-soft); overflow: hidden; }
.about-hero::after { content: ""; position: absolute; width: 45vw; aspect-ratio: 1; right: -12vw; top: 10%; background: var(--pink); clip-path: polygon(8% 18%,100% 0,82% 100%,0 80%); opacity: .14; transform: rotate(8deg); }
.about-hero-inner { position: relative; z-index: 1; width: min(1000px, calc(100% - 64px)); margin-inline: auto; }
.about-hero h1 { max-width: 1000px; margin: 0; font-size: clamp(2.8rem, 5.3vw, 4.8rem); line-height: 1.25; letter-spacing: -.05em; }
.about-headline-line { display: block; white-space: nowrap; }
.about-headline-first > span { display: inline; }
.about-headline-em { color: var(--pink); }
.about-hero p:last-child { max-width: 680px; margin: 34px 0 0; font-size: 1.12rem; }
.about-story { background: var(--white); }
.story-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px,9vw,130px); }
.story-label { position: sticky; top: calc(var(--header-height) + 40px); align-self: start; }
.story-label h2 { margin: 0; font-size: clamp(2.1rem,4vw,3.7rem); line-height: 1.3; }
.story-block { padding: 0 0 70px; border-bottom: 1px solid var(--line); }
.story-block + .story-block { padding-top: 70px; }
.story-block h3 { margin: 0 0 20px; font-size: clamp(1.55rem,2.6vw,2.2rem); }
.story-block p { margin: 0; font-size: 1.08rem; line-height: 2; }
.about-values { background: var(--ice); color: var(--navy); }
.value-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.value-item { padding: 38px; background: var(--white); border: 1px solid var(--line); border-radius: 28px 8px 28px 28px; }
.value-item span { color: var(--pink); font-size: .78rem; font-weight: 900; letter-spacing: .16em; }
.value-item h3 { margin: 34px 0 14px; font-size: 1.45rem; }
.value-item p { margin: 0; color: var(--navy-2); }
.about-cta { text-align: center; background: var(--pink); }
.about-cta h2 { margin: 0; font-size: clamp(2.2rem,4.6vw,4rem); line-height: 1.35; }
.about-cta-line { display: block; white-space: nowrap; }
.about-cta p { max-width: 640px; margin: 24px auto 34px; }
.about-cta .button { margin-inline: 6px; }

@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: minmax(0,1fr) minmax(380px,.82fr); gap: 22px; }
  .headline-lead { font-size: clamp(1.9rem,3.4vw,2.8rem); }
  .headline-main { font-size: clamp(2.5rem,4.5vw,3.7rem); }
  .strengths-grid { grid-template-columns: 1.2fr 1fr; }.strength-card:last-child { grid-column: 2; }.strength-card-main { grid-row: span 2; }
}

@media (max-width: 980px) {
  :root { --header-height: 88px; }
  .header-inner { width: min(100% - 32px, 760px); }
  .brand-link { flex-basis: 188px; min-width: 160px; }
  .menu-button { position: relative; z-index: 102; flex-shrink: 0; min-height: 46px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 999px; font-weight: 800; cursor: pointer; }
  .menu-button { width: 46px; height: 46px; padding: 0; justify-content: center; }
  .menu-button-lines { width: 20px; height: 16px; display: grid; align-content: space-between; }
  .menu-button-lines i { display: block; height: 2px; background: currentColor; border-radius: 99px; transition: transform 180ms ease, opacity 180ms ease; }
  .menu-button[aria-expanded="true"] .menu-button-lines i:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-button-lines i:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] .menu-button-lines i:last-child { transform: translateY(-7px) rotate(-45deg); }
  .site-navigation { position: fixed; inset: 0; z-index: 101; height: 100svh; min-height: 100svh; padding: 112px clamp(20px, 7vw, 32px) 40px; display: grid; align-content: start; gap: 4px; overflow-y: auto; overscroll-behavior-y: contain; background: var(--white); transform: translateX(100%); visibility: hidden; transition: transform 240ms ease, visibility 240ms; }
  .site-navigation.is-open { transform: translateX(0); visibility: visible; }
  .site-navigation a { --navigation-art-size: clamp(44px, 13vw, 56px); position: relative; display: grid; place-items: center; min-width: 0; min-height: 76px; padding: 12px calc(var(--navigation-art-size) + 16px); text-align: center; border-bottom: 1px solid var(--line); font-family: "M PLUS Rounded 1c", "Yu Gothic", sans-serif; font-size: clamp(1rem, 4.4vw, 1.16rem); font-weight: 800; line-height: 1.6; letter-spacing: .025em; white-space: normal; }
  .site-navigation .navigation-label { position: relative; min-width: 0; width: 100%; padding: 0; text-align: center; text-wrap: balance; }
  .site-navigation .navigation-label::before, .site-navigation .navigation-label::after { content: ""; position: absolute; pointer-events: none; }
  .site-navigation > a:nth-child(1) .navigation-label::before { left: 50%; bottom: -5px; width: 76px; height: 5px; border-radius: 42% 30% 48% 24%; background: #f8dbe5; transform: translateX(-50%) rotate(-2deg); }
  .site-navigation > a:nth-child(2) .navigation-label::before { left: calc(50% - 27px); bottom: -3px; width: 47px; height: 2px; border-radius: 50%; background: #efbed0; transform: rotate(-4deg); }
  .site-navigation > a:nth-child(2) .navigation-label::after { left: calc(50% - 13px); bottom: -7px; width: 31px; height: 2px; border-radius: 50%; background: #cfdfeb; transform: rotate(3deg); }
  .site-navigation > a:nth-child(3) .navigation-label::before { left: calc(50% - 24px); bottom: -4px; width: 3px; height: 3px; border-radius: 50%; background: #edb5c9; box-shadow: 7px 2px 0 #f1d6e1, 14px 0 0 #cfdfeb; }
  .site-navigation > a:nth-child(3) .navigation-label::after { left: calc(50% + 1px); bottom: -5px; width: 24px; height: 2px; border-radius: 50%; background: #f1d6e1; transform: rotate(-2deg); }
  .site-navigation > a:nth-child(4) .navigation-label::before { left: calc(50% - 23px); bottom: -6px; width: 6px; height: 6px; border: 1px solid #c8dce9; border-radius: 1px; transform: rotate(13deg); }
  .site-navigation > a:nth-child(4) .navigation-label::after { left: calc(50% - 7px); bottom: -4px; width: 33px; height: 2px; border-radius: 50%; background: #f0cad8; transform: rotate(1deg); }
  .site-navigation > a:nth-child(5) .navigation-label::before { left: calc(50% - 29px); bottom: -5px; width: 53px; height: 4px; border-radius: 45% 30% 50% 25%; background: #f8dbe5; transform: rotate(2deg); }
  .site-navigation > a:nth-child(5) .navigation-label::after { left: calc(50% + 31px); bottom: -3px; width: 3px; height: 3px; border-radius: 50%; background: #c8dce9; }
  .site-navigation > a:nth-child(6) .navigation-label::before { left: calc(50% - 15px); bottom: -5px; width: 13px; height: 2px; border-radius: 50%; background: #e9b9ca; transform: rotate(-20deg); }
  .site-navigation > a:nth-child(6) .navigation-label::after { left: calc(50% + 6px); bottom: -4px; width: 12px; height: 2px; border-radius: 50%; background: #c8dce9; transform: rotate(-20deg); }
  .site-navigation .navigation-character { display: block; position: absolute; left: 4px; right: auto; top: 50%; width: var(--navigation-art-size); height: var(--navigation-art-size); object-fit: contain; transform: translateY(-50%); }
  .site-navigation .navigation-cta { margin-top: 20px; padding: 12px calc(var(--navigation-art-size) + 30px); border-bottom: 0; }
  .site-navigation .navigation-cta .navigation-character { left: 18px; right: auto; }
  body.menu-open { overflow: hidden; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 24px); background: linear-gradient(165deg,var(--white) 0 53%,var(--pink-pale) 53% 100%); }
  .hero-inner { width: min(100% - 40px,720px); grid-template-columns: 1fr; grid-template-areas: "heading" "visual" "details"; gap: 24px; }
  .hero-copy { max-width: 680px; }
  .headline-lead { font-size: clamp(2rem,7vw,3rem); }
  .headline-main { font-size: clamp(2.7rem,8.5vw,4.4rem); }
  .hero-visual { width: min(100%,610px); margin-inline: auto; }
  .section-heading-split, .worry-layout, .play-grid, .faq-layout, .contact-grid, .story-grid { grid-template-columns: 1fr; }
  .empathy-message { max-width: 620px; margin-inline: auto; }
  .strengths-grid { grid-template-columns: repeat(2,1fr); }.strength-card-main { grid-column: 1/-1; grid-row: auto; transform: none; }.strength-card:last-child { grid-column: auto; }
  .web-service-feature { grid-template-columns: 1fr; padding-bottom: 24px; }.browser-art { width: 82%; }
  .service-strip { grid-template-columns: repeat(2,1fr); }.service-tile-tall { grid-row: span 1; }.service-tile-wide { grid-column: span 1; }
  .play-copy { max-width: 650px; }.character-stage { min-height: 420px; }
  .flow-list li { grid-template-columns: 70px 1fr; }.flow-list div { display: block; }.flow-list p { margin-top: 8px; }
  .faq-layout .section-heading, .contact-copy, .story-label { position: static; }
  .contact-copy { max-width: 720px; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .value-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .contact-title-intro { display: none; }
  .contact-heading #contact-title { font-size: clamp(22px, 6.4vw, 28px); white-space: nowrap; }
  .contact-description { white-space: normal; }
  .section { padding: 82px 0; }
  .section-inner, .footer-inner, .footer-copy { width: calc(100% - 32px); }
  .section-heading { margin-bottom: 46px; }
  .section-heading-split { gap: 20px; }
  /* スマホの見出しは同じ基準で揃え、長いタイトルも一行に収める。 */
  #main-content .section h2[id] {
    font-size: clamp(20px, 6.7vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.04em;
    white-space: nowrap;
  }
  #main-content .section #works-title { font-size: clamp(26px, 8vw, 34px); }
  .worry-list li { gap: 18px; font-size: 1.05rem; }
  .strengths-grid { grid-template-columns: 1fr; }.strength-card:last-child { grid-column: auto; }
  .strength-card { min-height: 270px; }
  .web-service-feature { border-radius: 28px 8px 28px 8px; }.browser-art { width: 82%; border-width: 6px; box-shadow: -12px 18px 0 rgba(255, 82, 124, 0.2); }.browser-page { min-height: 230px; padding: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 20px; }.browser-copy span { width: min(120px, 100%); }.browser-bar { height: 40px; padding: 14px; }
  .web-service-feature > .browser-art { width: 72%; margin-top: 22px; margin-bottom: 30px; }
  .web-service-feature .browser-page { min-height: 190px; padding: 20px; gap: 16px; }
  .web-service-feature .browser-bar { height: 34px; padding: 11px; }
  .web-service-feature .browser-copy { gap: 13px; }
  .web-service-feature .browser-copy b { height: 14px; }
  .web-service-feature .browser-copy span { height: 35px; margin-top: 10px; }
  .service-strip { grid-template-columns: 1fr; }.service-tile { min-height: 170px; }
  .work-group-heading { display: block; }.work-group-heading > p { margin-top: 12px; }
  .works-section .work-group-heading { container-type: inline-size; }
  .works-section .work-group-heading > p {
    max-width: none;
    white-space: nowrap;
    letter-spacing: 0;
    font-size: min(1rem, calc((100cqi - 2px) / 26));
  }
  .coverflow-stage { height: 450px; }.coverflow-web .coverflow-stage { height: 290px; }
  .work-card-flyer { width: min(280px,72vw); }.work-card-web { width: min(460px,90vw); }
  .work-card[data-position="-1"] { transform: translate(-96%,-50%) rotateY(16deg) scale(.72); }.work-card[data-position="1"] { transform: translate(-4%,-50%) rotateY(-16deg) scale(.72); }
  .work-card[data-position="-2"], .work-card[data-position="2"] { opacity: 0; }
  /* 試用レイアウト。mobile-works-trial を外すと元の表示へ戻る。 */
  .mobile-works-trial .coverflow-stage { height: calc(min(450px, 97.5vw) + 40px); }
  .mobile-works-trial .work-card-web { width: min(360px, 78vw); aspect-ratio: 4 / 5; background: #fff4f7; box-shadow: 0 16px 36px rgba(10,43,84,.12); }
  .mobile-works-trial .work-card-image { height: calc(100% - 44px); object-fit: contain; }
  .mobile-works-trial .slider-controls { margin-top: 16px; }
  .character-stage { min-height: 320px; }.character-controls { grid-template-columns: repeat(3,auto); }.character-controls button[data-tilt="up"] { grid-column: 2; }.character-controls button[data-tilt="left"] { grid-column: 1; }.character-controls button[data-tilt="reset"] { grid-column: 2; }.character-controls button[data-tilt="right"] { grid-column: 3; }.character-controls button[data-tilt="down"] { grid-column: 2; }
  .flow-list li { gap: 12px; }.flow-list span { width: 52px; }
  .faq-list summary { padding-left: 62px; padding-right: 62px; }.faq-list details p { margin-right: 0; padding-inline: 24px; }
  .faq-list summary::before { left: 12px; }
  .faq-list summary::after { right: 12px; }
  .footer-nav { gap: 4px 18px; }
  .site-footer { padding-top: 40px; }
  .footer-logo { padding: 16px; }
  .about-hero { padding: calc(var(--header-height) + 76px) 0 84px; }.about-hero-inner { width: calc(100% - 32px); }
  .about-hero h1 { font-size: clamp(2.35rem,11vw,3.4rem); }
  .about-headline-first > span { display: block; }
  .story-block { padding-bottom: 48px; }.story-block + .story-block { padding-top: 48px; }
}

@media (max-width: 560px) {
  .header-inner { width: calc(100% - 24px); gap: 12px; }
  .brand-link { flex-basis: 158px; min-width: 0; }
  .menu-button { padding: 7px 11px; gap: 7px; }
  .menu-button-label { font-size: .82rem; }
  .hero { padding-bottom: 40px; }
  .hero-inner { width: calc(100% - 32px); }
  .hero-brand { margin-bottom: 14px; }
  .hero-kicker { font-size: .85rem; }
  .headline-lead { font-size: clamp(1.75rem,8vw,2.25rem); letter-spacing: -.05em; }
  .headline-main { margin-top: .16em; display: grid; justify-items: start; font-size: clamp(2.55rem,11.6vw,3.5rem); line-height: 1.2; }
  .hero-description { margin-top: 22px; line-height: 1.85; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }.button { width: 100%; }
  .hero-visual { margin-top: 0; aspect-ratio: 1; }
  .hero-details .hero-actions { margin-top: 4px; }
  .hero-note { right: -2px; bottom: 0; width: 64%; padding: 11px 14px; font-size: .74rem; }
  .intro-lockup { gap: 2px; max-width: calc(100% - 16px); }
  .intro-overlay-title { padding-inline: 0; font-size: clamp(1.25rem, 6.9vw, 2.3rem); letter-spacing: 0; gap: .01em; }
  .intro-overlay-plane { width: clamp(84px, 28vw, 156px); }
  .intro-overlay-skip { right: 12px; bottom: 10px; }
  .empathy-message { padding: 50px 24px; }
  .slider-controls { gap: 18px; }
  .contact-form { padding: 28px 20px; }
  .form-note { font-size: clamp(10px, 3vw, 13.6px); }
  .about-cta .button { margin: 5px 0; }
}

@media (max-width: 350px) {
  .brand-link { flex-basis: 138px; }
  .menu-button { padding-inline: 9px; }
  .menu-button-lines { width: 17px; }
  .headline-lead { font-size: 1.62rem; }
  .headline-main { font-size: 2.35rem; }
  .contact-copy h2, .about-cta h2 { font-size: 1.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* コンパクトな問い合わせ・制作物ボタン */
.button, .navigation-cta {
  border-radius: 16px;
  background: #edabc0;
  border-color: #e69bb3;
  box-shadow: 0 3px 0 #d993aa, 0 5px 12px rgba(151,65,94,.07), inset 0 1px 0 rgba(255,255,255,.65);
}
.button { min-width: 0; min-height: 48px; padding: 11px 22px; }
.button-secondary { background: #fff2f6; border-color: #edc7d3; box-shadow: 0 3px 0 #ecd1db, 0 5px 12px rgba(151,65,94,.04); }
.button:hover, .navigation-cta:hover { background-color: #e793af; }
.button-secondary:hover, .button-secondary:focus-visible { background-color: #f8d9e4; }
.hero-actions .button-primary, .site-header .navigation-cta {
  background: rgba(255,255,255,.92);
  border-color: rgba(237,199,211,.85);
  box-shadow: inset 0 1px 2px #ffffffdd, inset 0 -2px 4px #ecd1db55, 0 3px 0 #ecd1db88, 0 7px 16px rgba(10,43,84,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-actions .button-primary::before, .site-header .navigation-cta::before { content: none; }
.hero-actions .button-primary:hover, .site-header .navigation-cta:hover,
.hero-actions .button-primary:focus-visible, .site-header .navigation-cta:focus-visible { background: #fff; }
.hero-actions { display: flex; gap: 14px; }
@media (max-width: 980px) {
  .hero-actions { justify-content: center; }
}
.hero-actions .button { width: 144px; flex: 0 0 144px; font-size: .95rem; }
@media (max-width: 350px) {
  .hero-actions { gap: 10px; }
  .hero-actions .button { width: calc((100% - 10px) / 2); flex-basis: calc((100% - 10px) / 2); padding-inline: 12px; }
}
.hero-character-tools .reset-button, .character-controls .reset-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  width: 48px; min-width: 48px; height: 48px; min-height: 48px; padding: 0; border: 1px solid #edc7d3;
  border-radius: 15px; color: var(--navy); background: #fffafd;
  box-shadow: 0 3px 8px rgba(151,65,94,.08); font-size: .875rem; font-weight: 600;
  transition: background-color 200ms ease, transform 200ms ease;
}
.reset-button:hover { background-color: #fff0f5; }
.reset-icon { display: inline-block; font-family: Arial, sans-serif; font-size: 24px; line-height: 1; }
@keyframes resetSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .is-resetting .reset-icon { animation: resetSpin 650ms cubic-bezier(.22,1,.36,1); }
  .is-resetting .reset-button { animation: ctaPress 420ms cubic-bezier(.22,1,.36,1); }
  .is-resetting [data-character-card], .is-resetting .hero-surroundings, .is-resetting .play-toy {
    transition: transform 700ms cubic-bezier(.22,1,.36,1);
  }
}

/* 淡い額縁の角と辺に、作品に合わせた飾りを留める。 */
.work-card.work-card-web[data-work-decor] { overflow: visible; }
.work-card.work-card-web[data-work-decor]::before, .work-card.work-card-web[data-work-decor]::after { display: none; content: none; border: 0; }
.work-card[data-work-theme] { --decor-ink: #547087; --decor-fill: #f3bdd0; --decor-alt: #bfdbe8; --frame-color: #fbeaf0; --frame-inset: 8px; }
.work-card[data-work-theme="bakery"] { --decor-ink: #947653; --decor-fill: #e5c28e; --decor-alt: #eddbaf; --frame-color: #f8eddc; }
.work-card[data-work-theme="ev"] { --decor-ink: #68867b; --decor-fill: #b9d8c4; --decor-alt: #cbdfe1; --frame-color: #eaf2ee; }
.work-card[data-work-theme="credit"] { --decor-ink: #93805a; --decor-fill: #dcc798; --decor-alt: #cfd5df; --frame-color: #f1ecdf; }
.work-card[data-work-theme="soda"] { --decor-ink: #987f42; --decor-fill: #f5d877; --decor-alt: #d5b496; --frame-color: #fff2cc; }
.work-card[data-work-theme="wedding"] { --decor-ink: #8b929f; --decor-fill: #efcbd9; --decor-alt: #cbdfe6; --frame-color: #f7edf2; }
.work-card[data-work-theme="construction"] { --decor-ink: #587365; --decor-fill: #dce3ce; --decor-alt: #e1d8c5; --frame-color: #edf0e5; }
.work-card[data-work-theme="salon"] { --decor-ink: #74858b; --decor-fill: #d9d1be; --decor-alt: #d4e0d9; --frame-color: #e8eef0; }
.work-card[data-work-frame] { background: linear-gradient(135deg, #ffffffb3, transparent 35%, #ffffff66), var(--frame-color); }
.work-card[data-work-frame] .work-card-image { inset: var(--frame-inset); width: calc(100% - var(--frame-inset) * 2); height: calc(100% - var(--frame-inset) * 2); object-fit: contain; border-radius: 8px; }
.work-card[data-work-decor] > div { border-radius: 0 0 20px 20px; }
.work-card-decoration { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.work-card-decoration svg { position: absolute; overflow: visible; fill: none; stroke: var(--decor-ink); stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; }
.work-card-decoration .decor-fill, .work-card-decoration .decor-pink { fill: var(--decor-fill); }
.work-card-decoration .decor-alt, .work-card-decoration .decor-blue { fill: var(--decor-alt); }
.work-card-decoration .decor-chocolate { fill: #bc9276; stroke: #896b55; }
.work-card-decoration .decor-cloud { fill: #fff; }
.work-card-decoration .work-frame-chain { inset: 0; width: 100%; height: 100%; opacity: .35; stroke-width: 1.5; }
.work-card-decoration .work-decor-top { left: 5px; top: 3px; width: 100px; height: 65px; }
.work-card-decoration .work-decor-side { left: 3px; top: 43%; width: 32px; height: 80px; }
.work-card-decoration .work-decor-sparkles { right: 3px; top: 35%; width: 32px; height: 80px; }
.work-card-decoration .work-decor-bottom { left: 56%; bottom: 0; width: 108px; height: 38px; }
.work-card[data-work-theme="bakery"] .work-decor-side { top: 51%; }
.work-card[data-work-theme="ev"] .work-decor-sparkles { top: 46%; }
.work-card[data-work-theme="ev"] .work-decor-top { left: 60%; }
.work-card[data-work-theme="credit"] .work-decor-bottom { left: 43%; }
.work-card[data-work-theme="soda"] .work-decor-bottom { left: 48%; }
.work-card[data-work-theme="wedding"] .work-decor-side { top: 49%; }
.work-card[data-work-theme="construction"] .work-decor-top { left: 36%; }
.work-card[data-work-theme="construction"] .work-decor-side { display: none; }
.work-card[data-work-theme="construction"] .work-decor-sparkles { top: 38%; }
.work-card[data-work-theme="construction"] .work-decor-bottom { left: 58%; }
.work-card[data-work-theme="salon"] .work-decor-top { left: 34%; }
.work-card[data-work-theme="salon"] .work-decor-side { display: none; }
.work-card[data-work-theme="salon"] .work-decor-bottom { left: 56%; }
.work-card[data-work-theme="neutral"]:nth-child(2n) .work-decor-bottom { left: 45%; }
.work-card-site-hint { height: 22px; margin: 16px 0 0; text-align: center; font-size: .75rem; line-height: 22px; color: var(--navy); visibility: hidden; }
.coverflow:has(.work-card[data-position="0"][aria-hidden="false"] .work-site-link) .work-card-site-hint { visibility: visible; }
@media (max-width: 680px) {
  .work-card[data-work-theme] { --frame-inset: 4px; }
  .work-card-decoration .work-decor-top { left: 3px; top: 2px; width: 62px; height: 40.3px; }
  .work-card-decoration .work-decor-side, .work-card-decoration .work-decor-sparkles { width: 20px; height: 50px; }
  .work-card-decoration .work-decor-side { left: 1px; }
  .work-card-decoration .work-decor-sparkles { right: 1px; }
  .work-card-decoration .work-decor-bottom { width: 67px; height: 23.6px; }
}

/* スライダーの配置を保ち、中央作品の上下動と床の投影を別に制御する。 */
@property --float-progress { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --float-weight { syntax: "<number>"; inherits: true; initial-value: 0; }
@keyframes workCardFloat { 0%, 100% { --float-progress: 0; } 50% { --float-progress: 1; } }
.coverflow-web .work-card {
  --float-weight: 0;
  box-shadow: 0 2px 5px rgba(10,43,84,.06);
  animation: workCardFloat 3.6s ease-in-out infinite;
  translate: 0 calc(-14px * var(--float-progress) * var(--float-weight));
  transition: --float-weight 450ms ease;
}
.coverflow-web .work-card[data-position="0"] { --float-weight: 1; }
.work-card.work-card-web[data-work-decor]::after {
  display: block; content: ""; position: absolute; inset: auto;
  top: calc(100% + 27px); left: 12%; width: 76%; height: 14px;
  border: 0; border-radius: 50%; background: rgba(10,43,84,.26);
  filter: blur(10px); opacity: .3; pointer-events: none; z-index: -1;
  transform: translateY(calc(14px * var(--float-progress) * var(--float-weight))) scaleX(calc(1 + .12 * var(--float-progress) * var(--float-weight)));
  transform-origin: center;
}
.work-card.work-card-web[data-work-decor][data-position="0"]::after {
  left: 9%; width: 82%; background: rgba(10,43,84,.4);
  opacity: calc(.85 - .2 * var(--float-progress) * var(--float-weight));
}
@media (max-width: 680px) {
  .work-card.work-card-web[data-work-decor]::after { top: calc(100% + 22px); height: 10px; filter: blur(8px); }
}
@media (prefers-reduced-motion: reduce) {
  .coverflow-web .work-card { animation: none; --float-progress: 0; translate: none; transition: none; }
  .work-card.work-card-web[data-work-decor]::after { transform: none; }
}

/* こもれびの緑と葉に合わせた額縁 */
.work-card[data-site-url="https://sokudezademopet.pages.dev/"] { --decor-ink: #65816b; --decor-fill: #dbcdb9; --decor-alt: #cfdcc8; --frame-color: #e9eee4; }

/* 塗装店サンプルの青と桃色に合わせた額縁。 */
.work-card[data-site-url="https://sokudezahouse2.pages.dev/"] { --decor-ink: #57728b; --decor-fill: #c6dfec; --decor-alt: #efd5cb; --frame-color: #eaf1f6; }
.work-card[data-site-url="https://sokudezahouse2.pages.dev/"] .work-decor-top { left: 23%; }

/* ネイルサロンのモーブ色と花・ポリッシュの額縁。 */
.work-card[data-work-theme="nail"] { --decor-ink: #937d87; --decor-fill: #dfc9d6; --decor-alt: #e4dcd1; --frame-color: #f4edf1; }
.work-card[data-work-theme="nail"] .work-decor-top { left: 27%; }
.work-card[data-work-theme="nail"] .work-decor-side { display: none; }
.work-card[data-work-theme="nail"] .work-decor-bottom { left: 58%; }

/* 居酒屋の黄土色と深い赤に合わせた提灯・酒器の額縁。 */
.work-card[data-work-theme="izakaya"] { --decor-ink: #9c6651; --decor-fill: #d9a08c; --decor-alt: #e4cd9d; --frame-color: #f5e9cc; }
.work-card[data-work-theme="izakaya"] .work-decor-top { left: 23%; }
.work-card[data-work-theme="izakaya"] .work-decor-side { display: none; }
.work-card[data-work-theme="izakaya"] .work-decor-sparkles { top: 38%; }
.work-card[data-work-theme="izakaya"] .work-decor-bottom { left: 58%; }

/* コモルネソーダの柑橘・泡・葉を淡いピンクの額縁へ配置 */
.work-card[data-work-theme="citrus"] { --decor-ink: #668d86; --decor-fill: #efd5a0; --decor-alt: #c1d9cb; --frame-color: #f6e6e9; }
.work-card[data-work-theme="citrus"] .work-decor-top { left: 31%; }
.work-card[data-work-theme="citrus"] .work-decor-side { display: none; }
.work-card[data-work-theme="citrus"] .work-decor-sparkles { top: 38%; }
.work-card[data-work-theme="citrus"] .work-decor-bottom { left: 58%; }


/* カフェの青い陶器と焼き菓子に合わせ、余白の3か所にカップ・葉・小麦・パンを配置。 */
.work-card[data-work-theme="cafe"] { --decor-ink: #73869a; --decor-fill: #c1d0db; --decor-alt: #ded8bf; --frame-color: #eaf0f3; }
.work-card[data-work-theme="cafe"] .work-decor-top { left: 23%; }
.work-card[data-work-theme="cafe"] .work-decor-side { display: none; }
.work-card[data-work-theme="cafe"] .work-decor-sparkles { top: 38%; }
.work-card[data-work-theme="cafe"] .work-decor-bottom { left: 58%; }


/* 飲食の赤茶・生成りの額縁と、写真の小さなローズマリー。 */
.work-card[data-work-theme="restaurant"] { --frame-color:#f2e5d5; --decor-ink:#794333; --decor-fill:#ba9476; --decor-alt:#d6c6a9; }
.work-card[data-work-theme="restaurant"] .work-restaurant-props { position:absolute; width:100px; height:67px; left:8px; top:6px; object-fit:contain; opacity:.87; pointer-events:none; }
@media(max-width:700px) { .work-card[data-work-theme="restaurant"] .work-restaurant-props { width:61px; height:41px; left:5px; top:3px; } }

/* 焼肉店のロゴを避け、写真小道具を額縁の下辺へ配置する。 */
.work-card[data-site-url="https://sokudezademoniku.pages.dev/"] .work-restaurant-props { left:48%; top:auto; bottom:6px; }
@media(max-width:700px) { .work-card[data-site-url="https://sokudezademoniku.pages.dev/"] .work-restaurant-props { bottom:3px; } }

/* 住宅会社の大きなロゴを避け、右辺のローラーを上の余白へ配置する。 */
.work-card[data-site-url="https://sokudezademo4.pages.dev/"] .work-decor-sparkles { top:13%; width:16px; height:40px; }
@media(max-width:700px) { .work-card[data-site-url="https://sokudezademo4.pages.dev/"] .work-decor-sparkles { top:14%; width:10px; height:24px; } }

/* ケーキ屋さんのロゴ・大きなコピーを避けて装飾を配置する。 */
.work-card[data-site-url="https://sokudezademo5.pages.dev/"] .work-decor-top { left:39%; }
.work-card[data-site-url="https://sokudezademo5.pages.dev/"] .work-decor-side { display:none; }
.work-card[data-site-url="https://sokudezademo5.pages.dev/"] .work-decor-sparkles { top:16%; }

/* 黒白のジム写真へ、淡いグレーと器具の装飾を合わせる。 */
.work-card[data-work-theme="gym"] { --frame-color:#e9e9e6; --decor-ink:#68706f; --decor-fill:#c6cdca; --decor-alt:#dfe2dc; }
.work-card[data-work-theme="gym"] .work-decor-top { left:22%; }
.work-card[data-work-theme="gym"] .work-decor-side { display:none; }
.work-card[data-work-theme="gym"] .work-decor-sparkles { top:30%; }
.work-card[data-work-theme="gym"] .work-decor-bottom { left:58%; }
