/* =========================================================================
   INVISIBLE NETWORK
   Data → AI → Cloud → Human → Connected.
   Palette: starlight on a deep indigo void. A network of stars is a
   constellation; the figure is a human drawn in the sky.
   ========================================================================= */

:root {
  /* deep night sky that drifts cool→warm via JS (--paper set at runtime) */
  --paper: #0c0d1a;
  --ink:   oklch(0.95 0.018 90);   /* warm starlight white */
  --ink-2: oklch(0.95 0.018 90 / 0.62);
  --ink-3: oklch(0.95 0.018 90 / 0.34);
  --line:  oklch(0.95 0.018 90 / 0.18);

  --font-display: "Hanken Grotesk", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Hanken Grotesk", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.6s linear;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }

/* ---- deep-space photo, the far layer behind the live particles -------- */
.cosmos-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #0c0d1a url("https://images.unsplash.com/photo-1502134249126-9f3755a50d78?auto=format&fit=crop&w=1920&q=72") center/cover no-repeat;
  filter: brightness(0.5) saturate(0.66) blur(1.4px);
  transform: scale(1.08);
  opacity: 0;                 /* JS fades it in with the night */
  pointer-events: none;
}

/* ---- the canvas network, fixed over the photo, behind the content ----- */
#net {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---- centred closing line (pinned; JS drives opacity) ----------------- */
.connected-word {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(1.4rem, 4.4vw, 3.2rem);
  letter-spacing: 0.08em;
  color: oklch(0.96 0.02 90);
  text-shadow: 0 0 2.4rem oklch(0.9 0.06 250 / 0.5);
}
/* on phones the centred line sits over the figure — lift it into the upper area */
@media (max-width: 640px) {
  .connected-word { align-items: flex-start; padding-top: 23vh; }
}

/* ---- the monitor's screen → grows to become the white home page ------- */
.webscreen {
  position: fixed;
  background: #ffffff;
  border-radius: 0.4vw;
  overflow: hidden;
  box-shadow: 0 0 2rem rgba(210, 225, 255, 0.5), 0 0 0.4rem rgba(255, 255, 255, 0.9);
  transform-origin: center center;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity, width, height, left, top;
}
/* the lit-up desktop shown inside the laptop just before it goes white */
.webscreen__desktop {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(120% 90% at 70% 15%, #3a6ea5 0%, #244a78 45%, #16263f 100%);
}
.webscreen__icons {
  position: absolute; top: 6%; left: 4%;
  display: grid; grid-template-columns: repeat(2, auto); gap: 8% 10%;
}
.dt-ico { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 58px; color: #fff; }
.dt-ico i {
  font-style: normal; font-size: 26px; line-height: 1;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}
.dt-ico b { font-weight: 500; font-size: 10px; letter-spacing: 0.01em; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.webscreen__taskbar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
  background: rgba(8, 16, 30, 0.5); color: #fff; font-size: 11px; letter-spacing: 0.02em;
}
.dt-start { display: inline-flex; align-items: center; gap: 6px; }
.dt-start i { font-style: normal; font-size: 13px; }
/* smartphone: show only the wallpaper inside the laptop (no shortcut icons / taskbar) */
@media (max-width: 640px) {
  .webscreen__icons, .webscreen__taskbar { display: none; }
}

/* ---- header ----------------------------------------------------------- */
.site-head {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.4vw, 1.9rem) var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__mark {
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0.5rem 0 oklch(0.95 0.05 90 / 0.6);
  animation: pulse 3.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0.4rem 0 oklch(0.92 0.06 90 / 0.5); }
  50%      { box-shadow: 0 0 0.4rem 0.5rem oklch(0.92 0.06 90 / 0); }
}
.head-cta {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.55em 1.15em;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.head-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- scenes ----------------------------------------------------------- */
main { position: relative; z-index: 1; }

.scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 14vh var(--gutter);
  text-align: center;
}
.scene[data-scene="human"]     { min-height: 130vh; }
.scene[data-scene="connected"] { min-height: 120vh; }

/* the fly-in completes here; a short white hold before the home page arrives */
.scene--contact { min-height: 8vh; display: block; padding: 0; }
.scene--contact .scene__inner {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center; gap: clamp(1rem, 2.4vw, 1.8rem);
  padding: 14vh var(--gutter);
  opacity: 1; transform: none;
}

.scene__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 1.8rem);
  /* fades + lifts as the scene reaches the centre of the viewport (JS sets --vis) */
  --vis: 0;
  opacity: var(--vis);
  transform: translateY(calc((1 - var(--vis)) * 2.4rem));
  will-change: opacity, transform;
}

.chapter {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  text-indent: 0.42em;
}

.word {
  font-weight: 200;
  font-size: clamp(3.4rem, 17vw, 16rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.scene[data-scene="ai"] .word { letter-spacing: 0.01em; }

.note {
  max-width: 30ch;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
}
.note__en { color: var(--ink-2); font-weight: 400; letter-spacing: 0.01em; }
.note__jp {
  font-family: var(--font-jp);
  color: var(--ink-3);
  font-weight: 400;
  font-size: 0.86em;
  letter-spacing: 0.06em;
}

/* intro ---------------------------------------------------------------- */
.kicker {
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-indent: 0.34em;
}
.scene--intro .scene__inner { --vis: 1; }

/* the figures (adult + child) occupy the lower-centre of the canvas, so lift
   these scenes' text into the upper band to keep it clear of the drawing */
.scene[data-scene="connected"] .scene__inner {
  transform: translateY(calc(-30vh + (1 - var(--vis)) * 2.4rem));
}
.scene[data-scene="human"] .scene__inner {
  transform: translateY(calc(-38vh + (1 - var(--vis)) * 2.4rem));
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 5vh;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
  pointer-events: none;
}
.scroll-cue__line {
  width: 1px; height: 3.4rem;
  background: linear-gradient(var(--ink-3), transparent);
  transform-origin: top;
  animation: drip 2.6s var(--ease) infinite;
}
@keyframes drip {
  0%       { transform: scaleY(0); opacity: 0; }
  35%      { transform: scaleY(1); opacity: 1; }
  100%     { transform: scaleY(1); opacity: 0; }
}

/* message + contact ---------------------------------------------------- */
.statement {
  font-weight: 200;
  font-size: clamp(2.6rem, 9vw, 8.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.statement em {
  font-style: normal;
  font-weight: 500;
}

.contact-link {
  font-weight: 300;
  font-size: clamp(1.6rem, 6vw, 4.4rem);
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.08em;
  transition: border-color 0.4s var(--ease), letter-spacing 0.5s var(--ease);
}
.contact-link:hover { border-color: var(--ink); letter-spacing: 0em; }

.foot {
  margin-top: clamp(3rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---- reduced motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body, .head-cta, .contact-link, .scene__inner { transition: none; }
  .brand__mark, .scroll-cue__line { animation: none; }
  .scene__inner { --vis: 1 !important; opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .brand__name { display: none; }
  .note { max-width: 26ch; }
}

/* =========================================================================
   WHITE HOME PAGE — revealed once we fly through the monitor's screen
   ========================================================================= */
.home-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(0.85rem, 2vw, 1.4rem) clamp(1.25rem, 4vw, 3rem);
  font-family: "Hanken Grotesk", "Zen Kaku Gothic New", system-ui, sans-serif;
  color: #1a2b4c;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
.home-head.is-on { opacity: 1; pointer-events: auto; }
.home-head.is-stuck {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(26, 43, 76, 0.08);
}

.home-head__brand {
  display: inline-flex; align-items: baseline; gap: 12px;
  text-decoration: none; color: #1a2b4c;
  transition: opacity 0.25s ease;
}
.home-head__brand:hover { opacity: 0.78; }
.home-head__logo { font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.01em; color: #1a2b4c; }
.home-head__sub {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500; font-size: 16px; letter-spacing: 0.01em; color: #1a2b4c;
}

.home-head__nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2.4rem); }
.home-head__nav a {
  position: relative; text-decoration: none; color: #1a2b4c;
  font-weight: 500; font-size: 0.96rem; letter-spacing: 0.02em;
}
.home-head__nav a:not(.home-head__cta) { padding: 0.3em 0; }
.home-head__nav a:not(.home-head__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.home-head__nav a:not(.home-head__cta):hover::after { transform: scaleX(1); transform-origin: left; }

/* Contact — bordered button, fills with the brand colour on hover */
.home-head__cta {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1.5px solid #1a2b4c; border-radius: 100px;
  padding: 0.5em 1.45em; transition: color 0.3s ease;
}
.home-head__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #1a2b4c;
  transform: translateY(101%); transition: transform 0.4s var(--ease);
}
.home-head__cta:hover { color: #ffffff; }
.home-head__cta:hover::before { transform: translateY(0); }

/* hamburger (mobile only) */
.home-head__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px; margin: -9px;
  background: none; border: none; cursor: pointer; border-radius: 10px;
}
.home-head__burger span {
  display: block; height: 2px; width: 100%; background: #1a2b4c; border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.home-head.is-open .home-head__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.home-head.is-open .home-head__burger span:nth-child(2) { opacity: 0; }
.home-head.is-open .home-head__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* responsive show/hide helpers */
.sp-only { display: none; }
@media (max-width: 700px) { .pc-only { display: none; } .sp-only { display: inline; } }

/* the white page itself */
.home-root { position: relative; z-index: 6; background: #ffffff; color: #1a2b4c; }
/* the hero is a FIXED overlay on the white screen we dive into — so the title
   appears in place (no scrolling) 2s after the header, and stays pinned while
   the user scrolls, then fades out as the cards rise up (opacity driven by JS) */
.home-hero {
  position: fixed; inset: 0; z-index: 3;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  gap: 1.4rem; text-align: left;
  padding: 22vh clamp(1.5rem, 7vw, 7rem) 9vh;
  pointer-events: none; opacity: 0;
}
.home-hero__title {
  font-family: "Klee One", "Yomogi", "Zen Kaku Gothic New", sans-serif;
  font-weight: 600; font-size: clamp(2.1rem, 6vw, 5rem);
  line-height: 1.45; letter-spacing: 0.01em; color: #1a2b4c;
}
/* ちぃちゃん running along the bottom of the hero (transparent video) */
.home-hero__dog {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: min(820px, 84vw); z-index: -1; pointer-events: none;
}
.home-hero__dog video { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .home-hero__dog { width: 96vw; bottom: 9vh; } }
/* per-character reveal — each glyph rises into place in sequence */
.home-hero__title .ch {
  display: inline-block; opacity: 0; transform: translateY(0.6em);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.home-hero__title.is-in .ch { opacity: 1; transform: none; }
.home-hero__lead {
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.2rem); color: #5a6b86; letter-spacing: 0.04em;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.7s ease 0.5s, transform 0.7s var(--ease) 0.5s;
}
.home-hero__title.is-in ~ .home-hero__lead { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .home-head__burger { display: flex; }
  .home-head__nav {
    position: absolute; top: calc(100% - 0.2rem); right: clamp(1.25rem, 4vw, 3rem);
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(26, 43, 76, 0.1); border-radius: 14px; padding: 0.5rem; min-width: 184px;
    box-shadow: 0 18px 38px rgba(26, 43, 76, 0.2);
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
  }
  .home-head.is-open .home-head__nav { opacity: 1; visibility: visible; transform: none; }
  .home-head__nav a:not(.home-head__cta) { padding: 0.7em 0.9em; border-radius: 9px; font-size: 1rem; }
  .home-head__nav a:not(.home-head__cta):hover { background: rgba(58, 134, 200, 0.1); }
  .home-head__nav a:not(.home-head__cta)::after { display: none; }
  /* Contact = filled pill button at the foot of the menu
     (selector includes a/.nav so it beats .home-head__nav a colour) */
  .home-head__nav a.home-head__cta {
    margin-top: 0.3rem; border: none; border-radius: 9px;
    background: #1a2b4c; color: #ffffff; text-align: left;
    padding: 0.7em 0.9em; font-size: 1rem; font-weight: 700; letter-spacing: 0.02em;
  }
  .home-head__nav a.home-head__cta::before { display: none; }
  .home-head__nav a.home-head__cta:hover { color: #ffffff; background: #25406f; }
}

/* =========================================================================
   お困りごと — 9 flip cards on white (front: illustration + name;
   hover lifts a description from below; the card slowly flips to reveal
   home-remedy steps + when to call us)
   ========================================================================= */
.troubles {
  position: relative;
  background: #ffffff; color: #1a2b4c;
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 10vh, 8rem);
  font-family: "Zen Kaku Gothic New", "Hanken Grotesk", system-ui, sans-serif;
}
/* content sits above the wandering dog */
.troubles__head, .troubles__grid, .troubles__cta { position: relative; z-index: 2; }
/* ちぃちゃん zig-zags down behind the cards, then sits by the consult button */
.troubles__dog {
  position: absolute; top: 0; left: 50%; z-index: 1;
  width: clamp(86px, 11vw, 132px); pointer-events: none; opacity: 0;
  transform: translate(-50%, 0);
  will-change: top, left, transform, opacity;
}
.troubles__dog img { width: 100%; height: auto; display: block; }
.troubles__dog-run { position: relative; }       /* in flow → gives the container its height */
.troubles__dog-sit { position: absolute; left: 0; top: 0; opacity: 0; }
@media (max-width: 700px) { .troubles__dog { display: none; } }
.troubles__head { max-width: 760px; margin: 0 auto clamp(2.4rem, 5vh, 4rem); text-align: center; }
.troubles__idx {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em;
  color: #3a86c8; margin-bottom: 1rem;
}
.troubles__title {
  font-family: "Klee One", "Yomogi", "Zen Kaku Gothic New", sans-serif;
  font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.2;
  letter-spacing: 0.02em; color: #1a2b4c;
}
.troubles__lede { margin-top: 1.4rem; color: #5a6b86; font-size: clamp(0.95rem, 1.3vw, 1.08rem); line-height: 1.85; }
.troubles__lede b { color: #c2410c; font-weight: 700; }

.troubles__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  /* row gap / wider column gap so the three columns sit further apart */
  gap: clamp(1.6rem, 3vh, 3rem) clamp(2.6rem, 5vw, 5rem);
  max-width: 1120px; margin: 0 auto;
}
/* 千鳥（staggered）— columns sit at different heights so it breathes */
@media (min-width: 901px) {
  .troubles__grid > .tcard:nth-child(3n + 2) { margin-top: clamp(2rem, 6vh, 4rem); }
  .troubles__grid > .tcard:nth-child(3n + 3) { margin-top: clamp(0.8rem, 2.6vh, 1.8rem); }
}
@media (max-width: 900px) { .troubles__grid { grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 4vw, 2.6rem); } }
@media (max-width: 560px) { .troubles__grid { grid-template-columns: 1fr; max-width: 340px; } }

/* consult CTA below the cards */
.troubles__cta { margin-top: clamp(3rem, 7vh, 5.5rem); text-align: center; }
.troubles__cta-lead {
  color: #5a6b86; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.85; margin-bottom: 1.7rem;
}
.troubles__cta-btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: #1a2b4c; color: #ffffff; text-decoration: none;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em;
  padding: 1em 2.5em; border-radius: 100px;
  box-shadow: 0 14px 30px rgba(26, 43, 76, 0.28);
  transition: transform 0.3s var(--ease), background-color 0.3s ease, box-shadow 0.3s ease;
}
.troubles__cta-btn:hover { background: #25406f; transform: translateY(-3px); box-shadow: 0 20px 44px rgba(26, 43, 76, 0.36); }
.troubles__cta-btn svg { transition: transform 0.3s var(--ease); }
.troubles__cta-btn:hover svg { transform: translateX(4px); }

/* =========================================================================
   Before / After — 4 rows, problem card (left) → flip-to-reveal video (right)
   ========================================================================= */
.beforeafter {
  background: #ffffff; color: #1a2b4c;
  padding: clamp(3rem, 7vh, 6rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 10vh, 8rem);
  font-family: "Yomogi", "Zen Kaku Gothic New", system-ui, sans-serif;
}
.ba-head { max-width: 720px; margin: 0 auto clamp(2.2rem, 5vh, 3.6rem); text-align: center; }
.ba-eyebrow { display: inline-block; font-weight: 700; letter-spacing: 0.12em; color: #3a86c8; font-size: 0.9rem; margin-bottom: 0.9rem; }
.ba-title { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.2; }
.ba-sub { margin-top: 1rem; color: #5a6b86; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.85; }

.ba-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(1.6rem, 3.5vh, 3rem); }
.ba-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 220px) minmax(0, 1fr); align-items: center; }
.ba-track { color: #cdd7e5; display: flex; justify-content: center; align-items: center; }

.ba-card { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; }
.ba-tag {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.92); color: #5a6b86; padding: 0.25em 0.8em; border-radius: 100px;
  box-shadow: 0 2px 6px rgba(26, 43, 76, 0.12);
}
.ba-tag--after { background: #1a2b4c; color: #ffffff; }

.ba-before { z-index: 1; overflow: hidden; background: #f4f7fb; box-shadow: 0 12px 28px rgba(26, 43, 76, 0.13), 0 3px 8px rgba(26, 43, 76, 0.08); }
.ba-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before .ba-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2rem 1rem 0.95rem;
  color: #ffffff; font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  background: linear-gradient(to top, rgba(20, 33, 60, 0.92) 10%, rgba(20, 33, 60, 0));
}

/* after card: face-down → (tap) repair → flip to the result video */
.ba-after { z-index: 3; perspective: 1300px; cursor: pointer; }
.ba-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1); transform: rotateY(var(--f, 0deg)); }
.ba-after.is-flipped .ba-flip { --f: 180deg; }
.ba-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 28px rgba(26, 43, 76, 0.16), 0 3px 8px rgba(26, 43, 76, 0.09); }
.ba-video { transform: rotateY(180deg); background: #1a2b4c; }
.ba-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

.ba-cardback {
  background: #1a2b4c;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem; color: #fff;
}
.ba-cardback::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid rgba(255, 255, 255, 0.22); border-radius: 13px; }
.ba-cardback__mark {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-size: 1rem; padding-left: 4px; transition: transform 0.3s var(--ease);
}
.ba-after:hover .ba-cardback__mark { transform: scale(1.12); }
.ba-cardback__hint { font-size: 0.86rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); }

/* repair: the card shakes while ちぃちゃん works inside */
.ba-after.is-repairing .ba-flip { animation: ba-shake 0.34s ease-in-out infinite; }
@keyframes ba-shake {
  0%, 100% { transform: rotate(0deg) translateX(0); }
  20% { transform: rotate(-2.5deg) translateX(-3px); }
  40% { transform: rotate(2deg) translateX(3px); }
  60% { transform: rotate(-1.5deg) translateX(-2px); }
  80% { transform: rotate(1.5deg) translateX(2px); }
}
/* tool + star effects popping around the card */
.ba-fx { position: absolute; inset: -14%; pointer-events: none; z-index: 4; }
.ba-fx span { position: absolute; font-size: clamp(18px, 2.4vw, 26px); opacity: 0; will-change: transform, opacity; }
.ba-fx span:nth-child(1) { left: -2%; top: 34%; }
.ba-fx span:nth-child(2) { right: -2%; top: 26%; }
.ba-fx span:nth-child(3) { left: 12%; top: -2%; }
.ba-fx span:nth-child(4) { right: 14%; bottom: 0%; }
.ba-fx span:nth-child(5) { right: 32%; top: -4%; }
.ba-fx span:nth-child(6) { left: -3%; bottom: 20%; }
.ba-after.is-repairing .ba-fx span { animation: ba-pop 0.85s ease-in-out infinite; }
.ba-after.is-repairing .ba-fx span:nth-child(2) { animation-delay: 0.12s; }
.ba-after.is-repairing .ba-fx span:nth-child(3) { animation-delay: 0.26s; }
.ba-after.is-repairing .ba-fx span:nth-child(4) { animation-delay: 0.4s; }
.ba-after.is-repairing .ba-fx span:nth-child(5) { animation-delay: 0.54s; }
.ba-after.is-repairing .ba-fx span:nth-child(6) { animation-delay: 0.68s; }
@keyframes ba-pop {
  0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  40% { opacity: 1; transform: scale(1.12) rotate(8deg); }
  72% { opacity: 1; transform: scale(0.95) rotate(-6deg); }
  100% { opacity: 0; transform: scale(0.5) rotate(6deg); }
}

/* ちぃちゃん runs from the before card to the after card (JS sets left/top/transform) */
.ba-dog {
  position: absolute; left: 0; top: 0; width: 300px; height: 208px;
  opacity: 0; pointer-events: none; z-index: 5; transform: translateX(0);
  transition: opacity 0.3s ease;
}
.ba-dog.is-on { opacity: 1; }
.ba-dog.is-running { transition: transform 3.6s cubic-bezier(0.42, 0, 0.58, 1), opacity 0.3s ease; }
/* legs cycle through an 8-frame sprite sheet; the body also hops a little */
.ba-dog__run {
  display: block; width: 100%; height: 100%;
  background: url(../assets/chii-runcycle.webp) 0 0 / 2400px 208px no-repeat;
  filter: drop-shadow(0 7px 9px rgba(26, 43, 76, 0.22));
  animation: ba-legs 0.62s steps(8) infinite, ba-hop 0.62s ease-in-out infinite;
}
@keyframes ba-legs { from { background-position-x: 0; } to { background-position-x: -2400px; } }
@keyframes ba-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
@media (prefers-reduced-motion: reduce) { .ba-dog__run { animation: none; } }

/* run video overlay (transparent webm of ちぃちぃ running with her toolbox) */
.ba-runvid { position: absolute; left: 0; top: 0; z-index: 5; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.ba-runvid.is-on { opacity: 1; }

/* a letter flies in to ちぃちゃん before she sets off (JS positions it) */
.ba-mail { position: absolute; z-index: 7; width: 34px; opacity: 0; pointer-events: none;
  transition: left 0.85s cubic-bezier(0.3, 0.7, 0.3, 1), top 0.85s cubic-bezier(0.3, 0.7, 0.3, 1), opacity 0.25s ease; }
.ba-mail svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 4px 6px rgba(26, 43, 76, 0.25)); }
.ba-mail.is-fly { animation: ba-mailwiggle 0.32s ease-in-out infinite; }
@keyframes ba-mailwiggle { 0%, 100% { margin-top: 0; } 50% { margin-top: -4px; } }

/* speech bubble = a paper note with a wavy hand-drawn edge + paw-print stamp */
.ba-bubble {
  position: absolute; z-index: 6; width: min(212px, 46vw); padding: 0.85rem 1.05rem 1.5rem;
  font-family: "Yomogi", "Zen Kaku Gothic New", sans-serif;
  opacity: 0; transform: scale(0.88); transform-origin: right center;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1.3);
  pointer-events: none;
}
.ba-bubble.is-on { opacity: 1; transform: scale(1); pointer-events: auto; cursor: pointer; }
.ba-bubble::after { content: "タップで閉じる"; position: absolute; left: 13px; bottom: 5px; font-size: 0.62rem; color: #9aa6ba; letter-spacing: 0.02em; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.ba-bubble.is-on::after { opacity: 1; }
.ba-bubble__paper {
  position: absolute; inset: 0; z-index: -1;
  background: #fffdf4; border: 2.5px solid #1a2b4c; border-radius: 14px;
  box-shadow: 2px 4px 0 rgba(26, 43, 76, 0.1);
  filter: url(#ba-wobble);
}
.ba-bubble__paper::after { content: ""; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); border: 11px solid transparent; border-left-color: #1a2b4c; }
.ba-bubble__paper::before { content: ""; position: absolute; right: -7px; top: 50%; transform: translateY(-50%); border: 9px solid transparent; border-left-color: #fffdf4; z-index: 1; }
.ba-bubble--below { transform-origin: top center; }
.ba-bubble--below .ba-bubble__paper::after { right: auto; left: 50%; top: -11px; transform: translateX(-50%); border-left-color: transparent; border-bottom-color: #1a2b4c; }
.ba-bubble--below .ba-bubble__paper::before { right: auto; left: 50%; top: -7px; transform: translateX(-50%); border-left-color: transparent; border-bottom-color: #fffdf4; }
.ba-bubble__ttl { display: block; font-weight: 700; color: #d6453f; font-size: 0.86rem; margin-bottom: 0.3rem; }
.ba-bubble ul { margin: 0; padding-left: 1.05em; }
.ba-bubble li { font-size: 0.98rem; line-height: 1.7; color: #1a2b4c; }
.ba-bubble__paw { position: absolute; right: 9px; bottom: 7px; width: 42px; height: 42px; fill: #d6453f; opacity: 0.5; transform: rotate(-15deg); }

/* closing CTA: 相談する button with ちぃちゃん sitting beside it */
.ba-outro { margin-top: clamp(2.8rem, 7vh, 5rem); text-align: center; }
.ba-outro__lead {
  color: #1a2b4c; font-weight: 700; font-family: "Yomogi", "Zen Kaku Gothic New", sans-serif;
  font-size: clamp(1.15rem, 1.9vw, 1.55rem); margin-bottom: 1.5rem;
}
/* button + ちぃちゃん sit on one line, ちぃちゃん right beside the button. The
   row sits BELOW the copy (normal flow) so she can never overlap the text, and a
   phantom spacer (mirrors her width) keeps the button page-centred like お困りごと */
.ba-outro__row { display: inline-flex; align-items: center; gap: clamp(0.3rem, 1.2vw, 0.9rem); }
.ba-outro__row::before { content: ""; flex: none; width: calc(clamp(104px, 14vw, 168px) * 0.854); }
.ba-outro__dog { flex: none; height: clamp(104px, 14vw, 168px); width: auto; transform-origin: bottom center; }
/* hover the 相談する button → ちぃちゃん gives a little hop */
.ba-outro__row .troubles__cta-btn:hover ~ .ba-outro__dog,
.ba-outro__dog:hover { animation: ba-dog-hop 0.7s ease; }
@keyframes ba-dog-hop {
  0%, 100% { transform: translateY(0); }
  28%      { transform: translateY(-13px) rotate(-4deg); }
  55%      { transform: translateY(0) rotate(0deg); }
  76%      { transform: translateY(-5px); }
}
@media (max-width: 700px) { .ba-outro__dog, .ba-outro__row::before { display: none; } }
@media (prefers-reduced-motion: reduce) { .ba-outro__dog { animation: none !important; } }

/* =========================================================================
   サービスメニュー — 7 cards drift in and slowly orbit the centre
   (ちぃちゃん will pose in the middle later)
   ========================================================================= */
.smenu {
  background: #ffffff; color: #1a2b4c; overflow: hidden;
  padding: clamp(3.5rem, 9vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 11vh, 9rem);
  font-family: "Zen Kaku Gothic New", "Hanken Grotesk", system-ui, sans-serif;
}
.smenu__head { max-width: 720px; margin: 0 auto clamp(2.4rem, 6vh, 4rem); text-align: center; }
.smenu__eyebrow { display: inline-block; font-weight: 700; letter-spacing: 0.16em; color: #3a86c8; font-size: 0.85rem; margin-bottom: 1rem; }
.smenu__title { font-family: "Klee One", "Yomogi", "Zen Kaku Gothic New", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.25; letter-spacing: 0.02em; }
.smenu__sub { margin-top: 1.1rem; color: #5a6b86; font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.85; }

.smenu__stage { position: relative; width: min(1020px, 96vw); aspect-ratio: 1 / 1; margin: 0 auto; }
/* centre spot where ちぃちゃん sits */
.smenu__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(200px, 31%, 320px); aspect-ratio: 1 / 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 130, 180, 0.10) 0%, rgba(90, 130, 180, 0.03) 55%, rgba(90, 130, 180, 0) 75%);
  display: grid; place-items: center; overflow: visible;
}
.smenu__sit {
  width: 100%; height: 100%; object-fit: contain; display: block;
  opacity: 0; transform: scale(0.5); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.35);
}
.smenu.is-sit .smenu__sit { opacity: 1; transform: none; }
.smenu__center-note { position: absolute; font-family: "Yomogi", sans-serif; color: rgba(26, 43, 76, 0.26); font-size: 0.95rem; }
.smenu.is-sit .smenu__center-note { display: none; }

/* ちぃちゃん turns and walks in from the left, then sits (hero-clip segment,
   shown at the smaller hero size — the puff then reveals the bigger sit) */
.smenu__walker {
  position: absolute; z-index: 10; left: 50%; top: 50%;
  width: min(920px, 90vw); height: auto;
  transform: translate(-82%, -54%); opacity: 0; pointer-events: none;   /* her final sit (~82% of the clip) lands at centre */
  transition: opacity 0.35s ease;
  filter: drop-shadow(0 9px 12px rgba(26, 43, 76, 0.16));
}
@media (prefers-reduced-motion: reduce) { .smenu__walker { display: none; } }

/* white puff explosion that masks the small→big handoff */
.smenu__puff { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; z-index: 11; pointer-events: none; }
.smenu__puff span {
  position: absolute; left: 0; top: 0; width: 92px; height: 92px; margin: -46px; border-radius: 50%;
  background: #ffffff;
  /* a cluster of circles → a lumpy, scalloped cloud outline (モクモク) */
  box-shadow:
     56px -10px 0 13px #ffffff,
    -52px   4px 0  9px #f1f6ff,
     22px  42px 0 15px #ffffff,
    -40px  34px 0  5px #e9f0fa,
     74px  36px 0 -2px #f6f9ff,
    -72px -12px 0  3px #ffffff,
      6px -46px 0  9px #ffffff,
     42px -42px 0 -2px #f1f6ff,
    -28px -38px 0  3px #ffffff;
  filter: blur(4px);                                   /* keep the bumps; just soften edges */
  opacity: 0;
}
.smenu.is-puff .smenu__puff span { animation: smenu-puff 1s cubic-bezier(0.16, 0.7, 0.3, 1) forwards; }
.smenu__puff span:nth-child(1) { --tx: 6px;    --ty: -150px; --rot: 58deg;  --es: 1.7; }
.smenu__puff span:nth-child(2) { --tx: 146px;  --ty: -66px;  --rot: -46deg; --es: 1.7; }
.smenu__puff span:nth-child(3) { --tx: 142px;  --ty: 86px;   --rot: 52deg;  --es: 1.7; }
.smenu__puff span:nth-child(4) { --tx: -8px;   --ty: 162px;  --rot: -60deg; --es: 1.7; }
.smenu__puff span:nth-child(5) { --tx: -148px; --ty: 84px;   --rot: 44deg;  --es: 1.7; }
.smenu__puff span:nth-child(6) { --tx: -142px; --ty: -68px;  --rot: -52deg; --es: 1.7; }
.smenu__puff span:nth-child(7) { --tx: 0px;    --ty: 8px;    --rot: 20deg;  --es: 2.5; }   /* big central billow */
@keyframes smenu-puff {
  0% { opacity: 0; transform: translate(0, 0) scale(0.1) rotate(0deg); }
  16% { opacity: 1; }
  66% { opacity: 0.95; }
  100% { opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(var(--es, 1.7)) rotate(var(--rot, 30deg)); }
}
@media (prefers-reduced-motion: reduce) { .smenu__puff { display: none; } }

.smenu__orbit { position: absolute; inset: 0; animation: smenu-orbit 95s linear infinite; animation-play-state: paused; }
.smenu.is-in .smenu__orbit { animation-play-state: running; }
@keyframes smenu-orbit { to { transform: rotate(360deg); } }

.smenu__card {
  --r: min(352px, 34vw);
  position: absolute; left: 50%; top: 50%; width: min(298px, 28vw);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r)));
  opacity: 0; filter: blur(8px); transition: opacity 0.7s ease, filter 0.7s ease;
}
.smenu.is-in .smenu__card { opacity: 1; filter: blur(0); transition-delay: calc(var(--i) * 0.1s); }
.smenu__card__face {
  background: #ffffff; border: 1px solid rgba(26, 43, 76, 0.08); border-radius: 18px;
  box-shadow: 0 14px 30px rgba(26, 43, 76, 0.13), 0 3px 9px rgba(26, 43, 76, 0.08);
  padding: clamp(1rem, 1.7vw, 1.4rem);
  animation: smenu-deorbit 95s linear infinite; animation-play-state: paused;
}
.smenu.is-in .smenu__card__face { animation-play-state: running; }
@keyframes smenu-deorbit { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg)); } }
.smenu__stage:hover .smenu__orbit, .smenu__stage:hover .smenu__card__face { animation-play-state: paused; }

.smenu__no { font-weight: 700; font-size: 0.86rem; color: #3a86c8; letter-spacing: 0.06em; }
.smenu__ttl { font-weight: 700; font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.35; margin: 0.3rem 0 0.55rem; color: #1a2b4c; }
.smenu__desc { font-size: clamp(0.85rem, 1.1vw, 0.98rem); line-height: 1.65; color: #5a6b86; }

/* small screens: drop the orbit, lay the cards out as a simple grid */
@media (max-width: 640px) {
  .smenu__stage { width: 100%; aspect-ratio: auto; }
  .smenu__center { display: none; }
  .smenu__orbit { position: static; animation: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .smenu__card { position: static; width: auto; transform: none; opacity: 1; filter: none; }
  .smenu__card__face { animation: none; transform: none; height: 100%; }
  /* 7th (odd) card: span the row and centre it instead of sitting at the left */
  .smenu__card:nth-child(7) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 0.45rem); }
}
@media (prefers-reduced-motion: reduce) { .smenu__orbit, .smenu__card__face { animation: none !important; } }

@media (max-width: 700px) {
  .ba-row { grid-template-columns: 1fr; justify-items: center; }
  .ba-card { width: min(80vw, 320px); }
  .ba-track { transform: rotate(90deg); margin: 0.2rem 0; }
  .ba-dog { display: none; }
  /* drop the 相談する button ~half a button-height so an open 対処したこと
     bubble (shown below the last card) doesn't sit on top of it */
  .ba-outro { margin-top: calc(clamp(2.8rem, 7vh, 5rem) + 1.7rem); }
}

/* each card is its own floating soap-bubble */
.tcard {
  position: relative; cursor: pointer; perspective: 1500px;
  opacity: 0; transition: opacity 0.7s ease;
}
.tcard.is-in { opacity: 1; animation: tcard-float var(--dur, 7s) ease-in-out var(--del, 0s) infinite; }
.tcard:hover, .tcard.is-flipped { animation-play-state: paused; z-index: 5; }
@keyframes tcard-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  30%  { transform: translate3d(2px, -6px, 0) rotate(0.35deg); }
  60%  { transform: translate3d(-3px, -3px, 0) rotate(-0.25deg); }
}
@media (prefers-reduced-motion: reduce) { .tcard { animation: none !important; } }

.tcard__inner {
  position: relative; width: 100%; aspect-ratio: 1 / 1.18; transform-style: preserve-3d;
  /* slow, eased flip — triggered by click, not hover */
  transition: transform 1.25s cubic-bezier(0.22, 0.7, 0.2, 1);
  transform: rotateY(var(--flip, 0deg)) scale(var(--sw, 1));
}
.tcard:hover .tcard__inner { --sw: 1.045; }
.tcard.is-flipped .tcard__inner { --flip: 180deg; }

.tcard__face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  /* arched "window" top, gently rounded base — reads as a floating bubble */
  border-radius: 46% 46% 22px 22px / 30% 30% 22px 22px;
  overflow: hidden; transition: box-shadow 0.4s var(--ease);
  box-shadow: 0 16px 34px rgba(26, 43, 76, 0.15), 0 3px 10px rgba(26, 43, 76, 0.09);
}
.tcard:hover .tcard__face { box-shadow: 0 30px 56px rgba(26, 43, 76, 0.24), 0 8px 18px rgba(26, 43, 76, 0.13); }
/* glossy bubble sheen over the illustration */
.tcard__front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(58% 42% at 27% 12%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 62%);
}
/* urgent cards wear a soft red rim */
.tcard[data-urgent] .tcard__front::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 0 0 3px rgba(224, 83, 31, 0.9);
}

/* ---- front ---- */
.tcard__front { background: #f4f7fb; border: 1px solid rgba(26, 43, 76, 0.07); }
.tcard__art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%;
}
.tcard__no {
  position: absolute; bottom: 13px; right: 14px; z-index: 1;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; color: #fff;
  opacity: 0.9; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.tcard__badge {
  position: absolute; top: 7%; left: 50%; transform: translateX(-50%); z-index: 3;
  white-space: nowrap; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.02em; color: #fff;
  background: #e0531f; border-radius: 100px; padding: 0.32em 0.85em;
  box-shadow: 0 4px 12px rgba(224, 83, 31, 0.45);
}
.tcard__name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 2.4rem 1.1rem 1rem; color: #fff; font-weight: 700;
  font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: 0.02em;
  background: linear-gradient(to top, rgba(20, 33, 60, 0.92) 8%, rgba(20, 33, 60, 0.55) 55%, rgba(20, 33, 60, 0));
  transition: opacity 0.35s ease;
}
/* description slides UP from the bottom on hover (ヌヌッ) */
.tcard__desc {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.2rem 1.15rem 1.25rem; color: #fff; font-size: 0.92rem; line-height: 1.7;
  background: linear-gradient(to top, rgba(26, 43, 76, 0.97) 60%, rgba(26, 43, 76, 0.86));
  transform: translateY(101%); transition: transform 0.5s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.tcard__desc::before {
  content: ""; display: block; width: 34px; height: 2px; background: #5aa0e0;
  border-radius: 2px; margin-bottom: 0.7rem;
}
@media (hover: hover) and (pointer: fine) {
  .tcard:hover .tcard__desc { transform: translateY(0); }
  .tcard:hover .tcard__name { opacity: 0; }
}

/* ---- back ---- */
.tcard__back {
  transform: rotateY(180deg);
  /* sit 1px proud of the front so the lighter front face can't peek around the
     rounded corner during the flip (kills the faint white "scar" at the corner) */
  inset: -1px;
  background: linear-gradient(158deg, #1a2b4c 0%, #25406f 100%);
  color: #fff; display: flex; flex-direction: column; gap: 0.55rem;
  padding: clamp(1.3rem, 2vw, 1.7rem);
}
.tcard__bno { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; color: #8fb4dd; }
.tcard__try {
  font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; color: #fff;
  display: flex; align-items: center; gap: 0.5em;
}
.tcard__try::before { content: ""; width: 18px; height: 2px; background: #5aa0e0; border-radius: 2px; }
.tcard__steps { list-style: none; margin: 0.1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.tcard__steps li {
  position: relative; padding-left: 1.5em; font-size: 0.92rem; line-height: 1.5; color: #e6eefb;
}
.tcard__steps li::before {
  content: "✓"; position: absolute; left: 0; top: 0.05em;
  color: #6fd09a; font-weight: 700; font-size: 0.9em;
}
.tcard__cue {
  margin-top: auto; padding-top: 0.85rem; border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.88rem; line-height: 1.55; color: #cfe0f5;
}
.tcard__cue span {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  color: #8fb4dd; margin-bottom: 0.3rem;
}
.tcard__cue--hot { color: #ffd9c2; }
.tcard__cue--hot span { color: #ff9a6b; }

/* tap affordance — the card front tells you it opens a 対処法 on tap */
.tcard__name::after {
  content: "タップで対処法 ›";
  display: block; margin-top: 0.5rem;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.86);
  transition: opacity 0.35s ease;
}
/* back content slides in (ぬるっと) once the card has rotated to the back */
.tcard__back > * { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 0.7, 0.2, 1); }
.tcard.is-flipped .tcard__back > * { opacity: 1; transform: none; }
.tcard.is-flipped .tcard__back > :nth-child(1) { transition-delay: 0.62s; }
.tcard.is-flipped .tcard__back > :nth-child(2) { transition-delay: 0.74s; }
.tcard.is-flipped .tcard__back > :nth-child(3) { transition-delay: 0.86s; }
.tcard.is-flipped .tcard__back > :nth-child(4) { transition-delay: 0.98s; }

/* =========================================================================
   PROFILE — ごあいさつ. Greeting + photo, then an asymmetric credentials band.
   ========================================================================= */
.profile {
  background: #ffffff; color: #1a2b4c;
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(5rem, 11vh, 9rem);
  font-family: "Zen Kaku Gothic New", "Hanken Grotesk", system-ui, sans-serif;
}
.profile__head { max-width: 940px; margin: 0 auto clamp(2.4rem, 5vh, 3.6rem); text-align: center; }
.profile__eyebrow { display: inline-block; font-weight: 700; letter-spacing: 0.16em; color: #3a86c8; font-size: 0.85rem; margin-bottom: 0.9rem; }
.profile__title {
  font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.2; letter-spacing: 0.02em;
}

/* ---- greeting + photo --------------------------------------------------- */
.profile__intro {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.8rem, 4vw, 3.6rem); align-items: start;
}
.profile__photo { margin: 0; position: relative; }
.profile__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px; display: block;
  box-shadow: 0 22px 50px -18px rgba(26, 43, 76, 0.42), 0 2px 0 rgba(26, 43, 76, 0.04);
}
.profile__photo figcaption {
  margin-top: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; align-items: flex-start;
}
.profile__photo figcaption::before { content: ""; width: 34px; height: 2px; background: #3a86c8; margin-bottom: 0.55rem; }
.profile__name { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; }
.profile__role { color: #5a6b86; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; }

.profile__greeting { max-width: 36em; }
.profile__greeting p { color: #46566f; font-size: clamp(0.96rem, 1.18vw, 1.05rem); line-height: 2.0; margin-bottom: 1.05rem; }
.profile__greeting p:last-child { margin-bottom: 0; }
.profile__greeting b { color: #1a2b4c; font-weight: 700; }
.profile__lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem) !important; line-height: 1.7 !important; color: #1a2b4c !important; font-weight: 500; }
.profile__sign {
  margin-top: 1.8rem !important; text-align: right;
  font-family: "Klee One", "Yomogi", sans-serif; color: #1a2b4c !important;
  font-size: 0.95rem !important; line-height: 1.7 !important; letter-spacing: 0.06em;
}
.profile__sign span { font-size: 1.55rem; font-weight: 600; }

/* ---- credentials band --------------------------------------------------- */
.profile__detail {
  max-width: 1000px; margin: clamp(2.6rem, 6vh, 4.5rem) auto 0;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 3.5vw, 3rem);
  background: linear-gradient(180deg, #f5f9fd 0%, #eef4fb 100%);
  border-radius: 22px; padding: clamp(1.8rem, 3.5vw, 3rem);
}
.profile__h3 {
  display: flex; align-items: baseline; gap: 0.7rem; flex-wrap: wrap;
  font-size: 1.18rem; font-weight: 700; color: #1a2b4c; margin-bottom: 1.1rem;
}
.profile__h3 span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: #3a86c8; text-transform: uppercase; }

.profile__years { font-size: 1.02rem; color: #46566f; margin-bottom: 0.9rem; }
.profile__years b { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: 1.7rem; color: #3a86c8; margin-right: 0.15em; }

.profile__list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.profile__list li { position: relative; padding-left: 1.2rem; color: #3a4a66; font-size: 0.96rem; line-height: 1.6; }
.profile__list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: #3a86c8; }
.profile__note { margin-top: 1rem; color: #6b7a94; font-size: 0.86rem; line-height: 1.75; }

.profile__side { display: flex; flex-direction: column; gap: clamp(1.6rem, 3vh, 2.4rem); }
.profile__sublabel { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; color: #1a2b4c; margin: 0.9rem 0 0.5rem; }
.profile__sublabel:first-of-type { margin-top: 0; }
.profile__taglist { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.profile__taglist li { color: #3a4a66; font-size: 0.93rem; line-height: 1.55; }
.profile__taglist li::before { content: "▪ "; color: #3a86c8; }

.profile__vendor { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.profile__vendor li { display: flex; align-items: baseline; gap: 0.6rem; line-height: 1.45; }
.profile__vendor b { flex: none; width: 3.6em; font-weight: 800; color: #1a2b4c; font-size: 0.92rem; letter-spacing: 0.02em; }
.profile__vendor span { color: #6b7a94; font-size: 0.8rem; }

.profile__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.profile__chips li {
  background: #ffffff; color: #25406f; border: 1px solid rgba(58, 134, 200, 0.28);
  border-radius: 100px; padding: 0.5em 1.1em; font-size: 0.9rem; font-weight: 500;
}

/* ---- scroll reveal ------------------------------------------------------ */
.profile__head, .profile__intro, .profile__detail {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.9s var(--ease);
}
.profile.is-in .profile__head { opacity: 1; transform: none; }
.profile.is-in .profile__intro { opacity: 1; transform: none; transition-delay: 0.12s; }
.profile.is-in .profile__detail { opacity: 1; transform: none; transition-delay: 0.22s; }

@media (max-width: 800px) {
  .profile__intro { grid-template-columns: 1fr; gap: 1.6rem; max-width: 540px; }
  .profile__photo { max-width: 420px; }
  .profile__greeting { max-width: none; }
  .profile__detail { grid-template-columns: 1fr; max-width: 540px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile__head, .profile__intro, .profile__detail { opacity: 1; transform: none; transition: none; }
}

/* =========================================================================
   FOOTER — a quiet white close to the page
   ========================================================================= */
.site-footer {
  background: #ffffff; color: #1a2b4c; text-align: center;
  padding: clamp(2.8rem, 6vh, 4.5rem) clamp(1.25rem, 5vw, 4rem) clamp(2.2rem, 5vh, 3.5rem);
  border-top: 1px solid rgba(26, 43, 76, 0.1);
}
.site-footer__logo {
  display: inline-block; font-family: "Klee One", "Yomogi", sans-serif;
  font-weight: 600; font-size: 1.55rem; letter-spacing: 0.02em; color: #1a2b4c;
}
.site-footer__logo i { font-style: normal; font-weight: 400; color: #3a86c8; font-size: 0.74em; margin-left: 0.35em; letter-spacing: 0.06em; }
.site-footer__tag {
  margin-top: 0.75rem; color: #5a6b86; font-size: 0.96rem; line-height: 1.8;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
}
.site-footer__social { display: flex; justify-content: center; gap: 0.9rem; margin-top: 1.6rem; }
.sfs {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  color: #5a6b86; border: 1px solid rgba(26, 43, 76, 0.14); background: #fff;
  transition: color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.sfs:hover { transform: translateY(-3px); color: #fff; border-color: transparent; box-shadow: 0 14px 26px -12px rgba(26, 43, 76, 0.4); }
.sfs--ig:hover { background: linear-gradient(135deg, #f9ce34, #ee2a7b 45%, #6228d7); }
.sfs--x:hover { background: #14171a; }
.sfs--yt:hover { background: #ff0033; }
.site-footer__copy { margin-top: 1.6rem; color: #9aa6ba; font-size: 0.78rem; letter-spacing: 0.05em; }

/* =========================================================================
   料金体系 (Pricing) — self-contained illustrated poster, framed on white
   ========================================================================= */
.pricing {
  background: #ffffff;
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(3.5rem, 9vh, 7rem);
  text-align: center;
}
.pricing__head { max-width: 760px; margin: 0 auto clamp(2.2rem, 5vh, 3.4rem); }
.pricing__eyebrow { display: inline-block; font-weight: 700; letter-spacing: 0.16em; color: #3a86c8; font-size: 0.85rem; margin-bottom: 0.9rem; }
.pricing__title { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.25; letter-spacing: 0.02em; color: #1a2b4c; }
.pricing__sub { margin-top: 1rem; color: #5a6b86; font-size: clamp(0.96rem, 1.3vw, 1.1rem); line-height: 1.9; font-family: "Zen Kaku Gothic New", sans-serif; }
.pricing__art {
  display: block; width: min(960px, 100%); height: auto; margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 54px -20px rgba(26, 43, 76, 0.34), 0 2px 0 rgba(26, 43, 76, 0.04);
}
/* カバンを背負ったちぃちゃんが料金表の下を走ってきて座る（白背景クリップなので白地に馴染む） */
.pricing__walk { width: min(760px, 94vw); margin: clamp(1rem, 3vh, 2.4rem) auto 0; }
.pricing__vid { display: block; width: 100%; height: auto; }

/* anchor jumps (nav → #pricing etc.) must clear the fixed header band */
.troubles, .beforeafter, .smenu, .pricing, .service-area, .profile, .contact, .home-hero {
  scroll-margin-top: clamp(80px, 10vh, 104px);
}

/* =========================================================================
   お問い合わせ (Contact) — LINE (easy path) + mail form
   ========================================================================= */
/* ちぃちゃんの足跡マーク（サービスエリアの吹き出し等） */
.paw-mark { display: inline-block; width: 1.15em; height: 1.15em; fill: #3a86c8; vertical-align: -0.2em; margin-left: 0.15em; }

/* ===================== お知らせ・ブログ・SNS (Updates) ===================== */
.updates {
  background: #f6f8fc; color: #1a2b4c;
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 9vh, 7rem);
  font-family: "Zen Kaku Gothic New", sans-serif;
}
.updates__head { max-width: 720px; margin: 0 auto clamp(2.4rem, 5vh, 3.6rem); text-align: center; }
.updates__eyebrow { display: inline-block; margin-bottom: 0.9rem; }
.updates__title { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.25; letter-spacing: 0.02em; }
.updates__sub { margin-top: 1rem; color: #5a6b86; font-size: clamp(0.96rem, 1.3vw, 1.1rem); line-height: 1.9; }

.ublock { max-width: 1040px; margin: 0 auto clamp(2.6rem, 5vh, 3.8rem); }
.ublock:last-child { margin-bottom: 0; }
.ublock__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(26, 43, 76, 0.1); }
.ublock__ttl { display: flex; align-items: center; gap: 0.6rem; font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.5rem); color: #1a2b4c; }
.ublock__ttl em { font-style: normal; font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 0.68rem; letter-spacing: 0.08em; color: #8a95a8; border: 1px solid rgba(26, 43, 76, 0.18); border-radius: 100px; padding: 0.14em 0.6em; }
.ublock__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; flex-shrink: 0; }
.ublock__icon--x { background: #14171a; }
.ublock__icon--blog { background: #3a86c8; }
.ublock__icon--ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b 45%, #6228d7); }
.ublock__more { font-size: 0.86rem; font-weight: 700; color: #2f6fc4; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.3em; }
.ublock__more span { transition: transform 0.2s ease; }
.ublock__more:hover span { transform: translateX(3px); }
.ublock__note { margin-top: 1rem; color: #97a3b8; font-size: 0.78rem; line-height: 1.65; }
.ublock__note b { color: #5a6b86; font-weight: 700; }

/* お知らせ（X 公式タイムライン埋め込み） */
.x-embed { max-width: 560px; margin: 0 auto; min-height: 80px; }
.x-embed .twitter-timeline { color: #5a6b86; font-size: 0.9rem; }

/* お知らせ（X / 最新3件 — サンプルカード様式・blog.html等で再利用） */
.news-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 1.8vw, 1.4rem); }
.news-card { background: #fff; border: 1px solid rgba(26, 43, 76, 0.1); border-radius: 16px; padding: 1.2rem 1.3rem; box-shadow: 0 14px 30px -20px rgba(26, 43, 76, 0.32); display: flex; flex-direction: column; gap: 0.7rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 22px 42px -20px rgba(26, 43, 76, 0.42); }
.news-card__top { display: flex; align-items: center; gap: 0.7rem; }
.news-card__date { font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 0.82rem; letter-spacing: 0.04em; color: #8a95a8; }
.news-card__badge { font-size: 0.72rem; font-weight: 700; color: #2f6fc4; background: #eaf2fb; border-radius: 100px; padding: 0.16em 0.7em; }
.news-card__text { color: #3a4a66; font-size: 0.92rem; line-height: 1.8; }

/* ブログ・Tips（Notion） */
.blog-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.blog-row--2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.blog-card { background: #fff; border: 1px solid rgba(26, 43, 76, 0.1); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 34px -20px rgba(26, 43, 76, 0.32); display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 46px -20px rgba(26, 43, 76, 0.44); }
.blog-card__thumb { aspect-ratio: 16 / 9; position: relative; background: linear-gradient(135deg, #dce8f6, #eef4fb); }
.blog-card__thumb[data-ph="2"] { background: linear-gradient(135deg, #e3f0e8, #f0f7f2); }
.blog-card__thumb[data-ph="3"] { background: linear-gradient(135deg, #f3e7f0, #f8f0f6); }
.blog-card__thumb::after { content: ""; position: absolute; inset: 0; opacity: 0.4; background: center / 34px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b4c' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5L5 19'/%3E%3C/svg%3E"); }
.blog-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.blog-card__meta { display: flex; align-items: center; gap: 0.7rem; }
.blog-card__meta time { font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 0.8rem; letter-spacing: 0.04em; color: #8a95a8; }
.blog-card__tag { font-size: 0.72rem; font-weight: 700; color: #3a86c8; background: #eaf2fb; border-radius: 100px; padding: 0.16em 0.7em; }
.blog-card__ttl { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: 1.02rem; line-height: 1.5; color: #1a2b4c; }
.blog-card__exc { color: #5a6b86; font-size: 0.86rem; line-height: 1.75; }
/* real photos in card / reader thumbnails */
.blog-card__thumb img, .reader__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__thumb:has(img)::after, .reader__thumb:has(img)::after { display: none; }

/* 記事内ダウンロードボックス */
.dl-box { margin-top: 1.8rem; padding: 1.3rem 1.4rem; background: #f2f7fc; border: 1px solid rgba(58, 134, 200, 0.25); border-radius: 14px; text-align: center; }
.dl-box__lead { font-weight: 700; color: #1a2b4c; margin-bottom: 0.9rem; font-size: 0.98rem; }
.dl-box__btns { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.dl-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 11em; gap: 0.4em; padding: 0.7em 1.3em; border-radius: 100px; font-weight: 700; font-size: 0.9rem; text-decoration: none; border: 1px solid #3a86c8; color: #2f6fc4; background: #fff; transition: background-color 0.2s ease, color 0.2s ease; }
.dl-btn:hover { background: #eaf2fb; }
.dl-btn--main { background: #1a2b4c; color: #fff; border-color: #1a2b4c; }
.dl-btn--main:hover { background: #25406f; color: #fff; }
.dl-box__note { margin-top: 0.8rem; color: #6b7a94; font-size: 0.8rem; line-height: 1.6; }

/* Instagram（SnapWidget 埋め込み） */
.insta-embed { position: relative; max-width: 1040px; margin: 0 auto; }
.insta-embed iframe { display: block; width: 100%; }
/* transparent layer: any photo click opens the real Instagram (not SnapWidget) */
.insta-embed__cover { position: absolute; inset: 0; z-index: 2; cursor: pointer; }

/* Instagram（最新6枚 — サンプルグリッド様式） */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.5rem, 1.2vw, 0.9rem); }
.insta-cell { aspect-ratio: 1 / 1; border-radius: 12px; position: relative; overflow: hidden; background: #e6edf6; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.insta-cell[data-ph="1"] { background: linear-gradient(135deg, #fde6c4, #f7c9d8); }
.insta-cell[data-ph="2"] { background: linear-gradient(135deg, #cfe3f7, #dbeee2); }
.insta-cell[data-ph="3"] { background: linear-gradient(135deg, #f3d9ec, #d8d6f3); }
.insta-cell[data-ph="4"] { background: linear-gradient(135deg, #d8eede, #cfe3f7); }
.insta-cell[data-ph="5"] { background: linear-gradient(135deg, #f7d6c9, #f6e7c4); }
.insta-cell[data-ph="6"] { background: linear-gradient(135deg, #dcd7f4, #f3d9ec); }
.insta-cell:hover { transform: scale(1.04); box-shadow: 0 14px 26px -14px rgba(26, 43, 76, 0.5); }
.insta-cell::after { content: ""; position: absolute; inset: 0; opacity: 0.42; background: center / 26px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.7'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.3' cy='6.7' r='1'/%3E%3C/svg%3E"); }

/* クリックできる見た目 */
.news-card { cursor: pointer; text-decoration: none; color: inherit; }
.news-card__go { margin-top: auto; padding-top: 0.2rem; font-size: 0.8rem; font-weight: 700; color: #14171a; display: inline-flex; align-items: center; gap: 0.25em; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; }
.news-card:hover .news-card__go, .news-card:focus-visible .news-card__go { opacity: 1; transform: none; }
.blog-card { cursor: pointer; }
.blog-card:focus-visible { outline: 2px solid #3a86c8; outline-offset: 3px; }
.insta-cell { border: 0; padding: 0; font: inherit; cursor: pointer; }
.insta-cell:focus-visible { outline: 2px solid #3a86c8; outline-offset: 2px; }

/* オーバーレイ共通 */
.reader, .lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; }
.reader[hidden], .lightbox[hidden] { display: none; }
.reader__backdrop, .lightbox__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
body.modal-open { overflow: hidden; }
@keyframes overlayIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ブログ記事リーダー */
.reader { place-items: center; padding: clamp(1rem, 4vw, 2.5rem); }
.reader__panel { position: relative; z-index: 1; width: min(680px, 100%); max-height: 88vh; overflow: auto; background: #fff; border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(15, 23, 42, 0.6); animation: overlayIn 0.3s ease; }
.reader__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #1a2b4c; font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2); }
.reader__close:hover { background: #fff; }
.reader__thumb { aspect-ratio: 16 / 7; position: relative; background: linear-gradient(135deg, #dce8f6, #eef4fb); border-radius: 20px 20px 0 0; }
.reader__thumb[data-ph="2"] { background: linear-gradient(135deg, #e3f0e8, #f0f7f2); }
.reader__thumb[data-ph="3"] { background: linear-gradient(135deg, #f3e7f0, #f8f0f6); }
.reader__thumb::after { content: ""; position: absolute; inset: 0; opacity: 0.4; background: center / 40px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2b4c' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5L5 19'/%3E%3C/svg%3E"); }
.reader__body { padding: clamp(1.4rem, 3.5vw, 2.4rem); font-family: "Zen Kaku Gothic New", sans-serif; }
.reader__meta { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.reader__meta time { font-family: "Montserrat", sans-serif; font-weight: 500; font-size: 0.82rem; color: #8a95a8; letter-spacing: 0.04em; }
.reader__tag { font-size: 0.72rem; font-weight: 700; color: #3a86c8; background: #eaf2fb; border-radius: 100px; padding: 0.16em 0.7em; }
.reader__ttl { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: clamp(1.3rem, 3.4vw, 1.9rem); line-height: 1.45; color: #1a2b4c; margin-bottom: 1.1rem; }
.reader__content { color: #3a4a66; font-size: 0.98rem; line-height: 1.95; }
.reader__content h3 { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: 1.12rem; color: #1a2b4c; line-height: 1.5; margin: 1.7rem 0 0.6rem; }
.reader__content h3:first-child { margin-top: 0; }
.reader__content p { margin-bottom: 1rem; }
.reader__content p:last-child { margin-bottom: 0; }
.reader__content b { color: #1a2b4c; }
.reader__cta { display: flex; width: fit-content; align-items: center; gap: 0.35em; margin: 1.4rem auto 0; background: #1a2b4c; color: #fff; font-weight: 700; text-decoration: none; padding: 0.75em 1.6em; border-radius: 100px; transition: background-color 0.2s ease; }
.reader__cta:hover { background: #25406f; }

/* Instagram 写真ポップアップ */
.lightbox { place-items: center; padding: clamp(1rem, 5vw, 3rem); }
.lightbox__figure { position: relative; z-index: 1; margin: 0; text-align: center; animation: overlayIn 0.3s ease; }
.lightbox__img { width: min(72vmin, 520px); max-width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6); background: #e6edf6; }
.lightbox__img[data-ph="1"] { background: linear-gradient(135deg, #fde6c4, #f7c9d8); }
.lightbox__img[data-ph="2"] { background: linear-gradient(135deg, #cfe3f7, #dbeee2); }
.lightbox__img[data-ph="3"] { background: linear-gradient(135deg, #f3d9ec, #d8d6f3); }
.lightbox__img[data-ph="4"] { background: linear-gradient(135deg, #d8eede, #cfe3f7); }
.lightbox__img[data-ph="5"] { background: linear-gradient(135deg, #f7d6c9, #f6e7c4); }
.lightbox__img[data-ph="6"] { background: linear-gradient(135deg, #dcd7f4, #f3d9ec); }
.lightbox__cap { margin-top: 1rem; color: rgba(255, 255, 255, 0.85); font-size: 0.86rem; }
.lightbox__close { position: absolute; top: 18px; right: 18px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; transition: background-color 0.2s ease; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.3); }

@media (max-width: 900px) {
  .news-row { grid-template-columns: 1fr 1fr; }
  .blog-row { grid-template-columns: 1fr 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .news-row { grid-template-columns: 1fr; }
  .blog-row { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .ublock__head { flex-wrap: wrap; }
}

.contact {
  background: #ffffff; color: #1a2b4c;
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 9vh, 7rem);
}
.contact__head { max-width: 720px; margin: 0 auto clamp(2.4rem, 5vh, 3.6rem); text-align: center; }
.contact__eyebrow { display: inline-block; font-weight: 700; letter-spacing: 0.16em; color: #3a86c8; font-size: 0.85rem; margin-bottom: 0.9rem; }
.contact__title { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.25; letter-spacing: 0.02em; }
.contact__sub { margin-top: 1rem; color: #5a6b86; font-size: clamp(0.96rem, 1.3vw, 1.1rem); line-height: 1.9; font-family: "Zen Kaku Gothic New", sans-serif; }

.contact__grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: stretch;
  font-family: "Zen Kaku Gothic New", sans-serif;
}
/* both panels: same width, same top-aligned layout, with a soft lifted shadow */
.contact__panel {
  border: 1px solid rgba(26, 43, 76, 0.1); border-radius: 20px; padding: clamp(1.6rem, 2.6vw, 2.4rem);
  box-shadow: 0 20px 44px -18px rgba(26, 43, 76, 0.3), 0 2px 0 rgba(26, 43, 76, 0.03);
}
.contact__panel--line { background: linear-gradient(180deg, #f1faf3, #e8f6ed); border-color: rgba(6, 199, 85, 0.32); }
/* the mail panel's frame reads as an envelope (a flap drawn across the top) */
.contact__panel--form { position: relative; overflow: hidden; background: #fbfcfe; }
.contact__panel--form::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 24px; pointer-events: none;
  background:
    linear-gradient(to top right, transparent calc(50% - 1px), rgba(26, 43, 76, 0.24) calc(50% - 1px), rgba(26, 43, 76, 0.24) calc(50% + 1px), transparent calc(50% + 1px)) left / 50% 100% no-repeat,
    linear-gradient(to top left, transparent calc(50% - 1px), rgba(26, 43, 76, 0.24) calc(50% - 1px), rgba(26, 43, 76, 0.24) calc(50% + 1px), transparent calc(50% + 1px)) right / 50% 100% no-repeat;
}
.contact__tag--mail { background: #1a2b4c; }
.contact__form-toggle {
  margin-top: 0.2rem; background: #1a2b4c; color: #ffffff; font: inherit; font-weight: 700; font-size: 1.02rem;
  padding: 0.8em 1.7em; border: none; border-radius: 100px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(26, 43, 76, 0.26);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.contact__form-toggle:hover { background: #25406f; transform: translateY(-2px); }
.contact__panel--form .cform { margin-top: 1.4rem; }
.contact__privacy { margin-top: 0.7rem; color: #8a95a8; font-size: 0.78rem; line-height: 1.6; }
.contact__privacy a { color: #2f6fc4; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cform__hint { display: block; margin-top: 0.35rem; color: #97a3b8; font-size: 0.76rem; line-height: 1.5; }
.cform__linehint { margin: 0.1rem 0 1rem; font-size: 0.85rem; color: #46566f; line-height: 1.6; }
.cform__linehint b { color: #06a34a; font-weight: 700; }
.cform__file { padding: 0.55em 0.6em; font-size: 0.86rem; background: #eef3fa; cursor: pointer; }
.cform__files input + input { margin-top: 0.5rem; }
.contact__tag { display: inline-block; background: #06c755; color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.3em 0.85em; border-radius: 100px; margin-bottom: 0.95rem; }
.contact__h3 { font-size: 1.25rem; font-weight: 700; color: #1a2b4c; margin-bottom: 0.85rem; }
/* min-height = ~2 lines so the LINE button and the form button line up */
.contact__lead { color: #3a4a66; font-size: 0.96rem; line-height: 1.85; margin-bottom: 1.4rem; min-height: 3.6em; }
.contact__lead b { color: #1a2b4c; font-weight: 700; }
.contact__line-btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  background: #06c755; color: #fff; font-weight: 700; font-size: 1.05rem;
  padding: 0.85em 1.7em; border-radius: 100px;
  box-shadow: 0 10px 24px rgba(6, 199, 85, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.contact__line-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(6, 199, 85, 0.42); }
.contact__hours { margin-top: 1.15rem; color: #6b7a94; font-size: 0.82rem; }
/* LINE friend-add incentive: limited LINE stamp gift */
.contact__gift { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 1rem; padding: 0.75rem 0.9rem; background: linear-gradient(180deg, #fffdf3, #fff6df); border: 1px solid #efd99a; border-radius: 14px; }
.contact__gift-icon { font-size: 1.35rem; line-height: 1.4; flex-shrink: 0; }
.contact__gift-body { font-size: 0.85rem; line-height: 1.6; color: #6b5a2a; }
.contact__gift-body b { display: block; color: #1a2b4c; font-weight: 700; }
.contact__gift-body em { display: inline-block; margin-top: 0.25rem; font-style: normal; font-weight: 700; font-size: 0.8rem; color: #d6453f; }

.cform__field { display: block; margin-bottom: 1rem; }
.cform__label { display: block; font-size: 0.85rem; font-weight: 700; color: #1a2b4c; margin-bottom: 0.4rem; }
.cform__label i { font-style: normal; color: #c2410c; font-size: 0.7rem; font-weight: 700; margin-left: 0.35em; }
.cform__label em { font-style: normal; color: #97a3b8; font-size: 0.7rem; font-weight: 500; margin-left: 0.35em; }
.cform__input {
  width: 100%; font: inherit; color: #1a2b4c; background: #f7f9fc;
  border: 1px solid rgba(26, 43, 76, 0.14); border-radius: 12px; padding: 0.7em 0.9em;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.cform__input::placeholder { color: #aeb8c8; }
.cform__input:focus { outline: none; border-color: #3a86c8; background: #fff; box-shadow: 0 0 0 3px rgba(58, 134, 200, 0.16); }
textarea.cform__input { resize: vertical; min-height: 120px; line-height: 1.7; }
.cform__send {
  width: 100%; margin-top: 0.4rem; background: #1a2b4c; color: #fff;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.04em; font-family: inherit;
  padding: 0.95em; border: none; border-radius: 100px; cursor: pointer;
  box-shadow: 0 12px 28px rgba(26, 43, 76, 0.26);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.cform__send:hover { background: #25406f; transform: translateY(-2px); }
.cform__send:disabled { opacity: 0.6; cursor: default; transform: none; }
.cform__agree {
  display: flex; align-items: flex-start; gap: 0.55em;
  margin: 0.2rem 0 1rem; font-size: 0.86rem; color: #3a4a66; line-height: 1.5; cursor: pointer;
}
.cform__agree input { flex: none; width: 1.15em; height: 1.15em; margin-top: 0.12em; accent-color: #2f6fc4; cursor: pointer; }
.cform__agree a { color: #2f6fc4; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.cform__note { margin-top: 0.9rem; color: #6b7a94; font-size: 0.8rem; line-height: 1.6; }
.cform__note.is-ok { color: #1f8a4c; font-weight: 700; }
.cform__note.is-err { color: #c2410c; font-weight: 700; }

@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; max-width: 540px; } }

/* =========================================================================
   対応エリア (Service area) — coded: priority tiers + ちぃちゃん + footprints
   ========================================================================= */
.service-area {
  background: #ffffff; color: #1a2b4c;
  padding: clamp(3.5rem, 8vh, 7rem) clamp(1.25rem, 5vw, 4rem) clamp(4rem, 9vh, 7rem);
  font-family: "Zen Kaku Gothic New", sans-serif;
}
.service-area__head { max-width: 760px; margin: 0 auto clamp(2.4rem, 5vh, 3.6rem); text-align: center; }
.service-area__eyebrow { display: inline-block; font-weight: 700; letter-spacing: 0.16em; color: #3a86c8; font-size: 0.85rem; margin-bottom: 0.9rem; }
.service-area__title { font-family: "Klee One", "Yomogi", sans-serif; font-weight: 600; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.3; letter-spacing: 0.02em; }
.service-area__sub { margin-top: 1rem; color: #5a6b86; font-size: clamp(0.96rem, 1.3vw, 1.1rem); line-height: 1.9; }

.service-area__body { max-width: 1060px; margin: 0 auto; text-align: center; }

/* real map + patrol route (出雲→雲南→大田→出雲) */
.route-map__panel { max-width: 1060px; margin: 0 auto; background: linear-gradient(180deg, #fbfcfe, #f2f6fc); border: 1px solid rgba(26, 43, 76, 0.06); border-radius: 24px; padding: clamp(1rem, 2.6vw, 2.2rem); box-shadow: 0 34px 64px -34px rgba(26, 43, 76, 0.3); }
.route-map { position: relative; max-width: 100%; margin: 0 auto; line-height: 0; }
.route-map__base { display: block; width: 100%; height: auto; border-radius: 18px; }

/* city labels */
.rm-city {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 3;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15;
  padding: 0.3em 0.7em; border-radius: 12px; white-space: nowrap;
  background: rgba(255, 255, 255, 0.95); box-shadow: 0 4px 12px rgba(26, 43, 76, 0.2);
  font-family: "Zen Kaku Gothic New", sans-serif;
}
.rm-city b { font-size: clamp(0.8rem, 1.5vw, 1.05rem); font-weight: 700; color: #1a2b4c; }
.rm-city i { font-style: normal; font-size: clamp(0.6rem, 1vw, 0.72rem); font-weight: 500; color: #5a7aa6; margin-top: 0.12em; }
.rm-city--izumo { background: #2f6fc4; box-shadow: 0 6px 18px rgba(47, 111, 196, 0.5); }
.rm-city--izumo b { color: #fff; }
.rm-city--izumo i { color: #dceaf7; }
.rm-city--other { background: rgba(243, 245, 248, 0.95); }
.rm-city--other b { color: #6b7a94; }
.rm-city--other i { color: #97a3b8; }
.rm-city--izumo, .rm-city--oda, .rm-city--unnan { animation: sa-reach 15s var(--cd) infinite both; }

/* footprint trail — blue paw + white outline, follows the curved route and
   fades behind (comet trail); starts from ちぃちゃん, goes left and returns */
.rm-step {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  width: clamp(20px, 3.2%, 32px); height: auto; overflow: visible;
  fill: #2f86d8; stroke: #ffffff; stroke-width: 10; paint-order: stroke;
  opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(0.3);
  animation: rm-step 15s var(--d) infinite both;   /* slow walk; loop has a pause before restart */
  filter: drop-shadow(0 1px 1.5px rgba(26, 43, 76, 0.4));
}
@keyframes rm-step {
  0%    { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(0.3); }
  1.5%  { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
  12%   { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
  17%   { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
  100%  { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
}
@keyframes sa-reach {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  2%  { transform: translate(-50%, -50%) scale(1.22); }
  6%  { transform: translate(-50%, -50%) scale(1); }
}

/* カバンを背負ったおすわりちぃちゃん（拠点・右下） */
.rm-chii {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 4;
  width: clamp(96px, 17%, 156px); height: auto; filter: drop-shadow(0 6px 8px rgba(26, 43, 76, 0.2));
}

/* speech, centred below the map */
.service-area__speech {
  position: relative; display: inline-block; margin: clamp(1.6rem, 3.5vh, 2.4rem) auto 0; line-height: 1.6;
  background: #fffdf4; border: 2.5px solid #1a2b4c; border-radius: 16px;
  padding: 0.8rem 1.4rem; font-family: "Yomogi", "Zen Kaku Gothic New", sans-serif;
  font-weight: 700; color: #1a2b4c; font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}
.service-area__speech::after { content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); border: 11px solid transparent; border-bottom-color: #1a2b4c; }
.service-area__speech::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border: 9px solid transparent; border-bottom-color: #fffdf4; z-index: 1; }

@media (max-width: 560px) {
  .rm-city { padding: 0.2em 0.45em; border-radius: 9px; }
  .rm-city i { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-step { animation: none; opacity: 0.85; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); }
  .rm-city--izumo, .rm-city--oda, .rm-city--unnan { animation: none; }
}

/* phones: shrink long section headings so they don't crowd the screen edges */
@media (max-width: 560px) {
  .troubles__title, .ba-title, .smenu__title, .pricing__title,
  .service-area__title, .profile__title, .contact__title, .updates__title {
    font-size: clamp(1.35rem, 5.2vw, 1.7rem); line-height: 1.4;
  }
}

/* =========================================================================
   bilingual section labels (EN + 日本語) — used on every section eyebrow
   ========================================================================= */
.sec-label { display: inline-flex !important; align-items: center; gap: 0.6em; flex-wrap: wrap; justify-content: center; vertical-align: middle; }
.sec-label b {
  font-family: "Montserrat", system-ui, sans-serif; font-weight: 500;
  font-size: 0.94rem; letter-spacing: 0.12em; color: #3a86c8;
}
.sec-label > span {
  position: relative; padding-left: 0.78em;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif; font-weight: 600;
  font-size: 0.76rem; letter-spacing: 0.08em; color: #8a98ad; text-transform: none;
}
.sec-label > span::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 0.95em; background: rgba(58, 134, 200, 0.55);
}
