:root {
  color-scheme: light;
  --kiou-bg: #fff8f3;
  --kiou-paper: #fffdf9;
  --kiou-paper-2: #fff5f8;
  --kiou-ink: #4a2e2b;
  --kiou-muted: #8b6f6b;
  --kiou-pink: #f48fb1;
  --kiou-pink-strong: #e94d84;
  --kiou-gold: #d4af37;
  --kiou-gold-soft: #ead3a2;
  --kiou-line: #ead6c5;
  --kiou-plum: #6f4a7a;
  --kiou-shadow: 0 20px 48px rgba(74, 46, 43, 0.12);
  --kiou-shadow-soft: 0 10px 26px rgba(74, 46, 43, 0.08);
  --kiou-container: 1180px;
  --kiou-radius: 10px;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Hiragino Sans", "Yu Gothic", Meiryo, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--kiou-ink);
  background:
    radial-gradient(circle at 14% 4%, rgba(244, 143, 177, 0.22), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(212, 175, 55, 0.20), transparent 30rem),
    linear-gradient(180deg, #fffdf9 0%, #fff8f3 56%, #fff4f8 100%);
  line-height: 1.75;
  letter-spacing: 0.02em;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background:
    url("./assets/ui/sakura-petals.svg") center 20px / min(920px, 95vw) auto no-repeat,
    linear-gradient(rgba(212, 175, 55, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.045) 1px, transparent 1px);
  background-size: min(920px, 95vw) auto, 42px 42px, 42px 42px;
  opacity: 0.64;
}
body::after {
  position: fixed;
  right: -120px;
  bottom: -140px;
  z-index: -2;
  width: min(520px, 65vw);
  aspect-ratio: 1;
  pointer-events: none;
  content: "";
  background: url("./assets/ui/sakura-corner.svg") center / contain no-repeat;
  opacity: 0.34;
  transform: rotate(180deg);
}

a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--kiou-ink); font-weight: 900; line-height: 1.16; }
:focus-visible { outline: 3px solid rgba(233, 77, 132, 0.36); outline-offset: 3px; }

.ambient-petals { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.ambient-petals i {
  position: absolute;
  top: -8vh;
  width: 18px;
  height: 28px;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, rgba(255, 211, 226, .86), rgba(244, 143, 177, .72));
  opacity: .34;
  filter: blur(.1px);
  animation: petal-fall 16s linear infinite;
}
.ambient-petals i:nth-child(1) { left: 9%; animation-delay: -1s; animation-duration: 17s; }
.ambient-petals i:nth-child(2) { left: 23%; animation-delay: -9s; animation-duration: 21s; transform: scale(.7); }
.ambient-petals i:nth-child(3) { left: 39%; animation-delay: -5s; animation-duration: 18s; }
.ambient-petals i:nth-child(4) { left: 56%; animation-delay: -13s; animation-duration: 24s; transform: scale(.65); }
.ambient-petals i:nth-child(5) { left: 71%; animation-delay: -7s; animation-duration: 20s; }
.ambient-petals i:nth-child(6) { left: 84%; animation-delay: -16s; animation-duration: 22s; transform: scale(.82); }
.ambient-petals i:nth-child(7) { left: 92%; animation-delay: -3s; animation-duration: 19s; }
.ambient-petals i:nth-child(8) { left: 48%; animation-delay: -18s; animation-duration: 26s; transform: scale(.55); }
@keyframes petal-fall { to { transform: translate3d(80px, 112vh, 0) rotate(520deg); } }

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 9px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  background:
    linear-gradient(90deg, rgba(255,253,249,.94), rgba(255,247,250,.88)),
    radial-gradient(circle at 0 0, rgba(244,143,177,.17), transparent 20rem);
  box-shadow: 0 10px 28px rgba(74,46,43,.08);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark { width: 54px; height: 54px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 9px 12px rgba(74,46,43,.14)); }
span.brand-mark { display: grid; place-items: center; border: 1px solid rgba(212,175,55,.58); border-radius: 50%; color: var(--kiou-pink-strong); background: #fffdf9; font-weight: 900; }
.brand-copy, .brand > span:not(.brand-mark) { display: grid; gap: 1px; line-height: 1.08; }
.brand-eyebrow, .brand-subtitle, .brand > span:not(.brand-mark) .brand-subtitle { color: var(--kiou-muted); font-size: .68rem; font-weight: 900; letter-spacing: .12em; }
.brand-title { color: var(--kiou-ink); font-size: 1.55rem; font-weight: 900; letter-spacing: .08em; }
.top-nav { display: flex; align-items: stretch; justify-content: center; gap: 0; min-width: 0; border: 1px solid rgba(234,211,162,.48); border-radius: 12px; background: rgba(255,253,249,.76); box-shadow: 0 10px 20px rgba(74,46,43,.05); overflow: hidden; }
.top-nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; padding: 0 18px; border-right: 1px solid rgba(212,175,55,.26); color: var(--kiou-ink); font-size: .92rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.top-nav a:last-child { border-right: 0; }
.top-nav a::after { position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 999px 999px 0 0; content: ""; background: transparent; }
.top-nav a:hover, .top-nav a:focus-visible, .top-nav a.is-active { color: var(--kiou-pink-strong); background: rgba(255,240,246,.9); }
.top-nav a.is-active::after, .top-nav a:hover::after { background: linear-gradient(90deg, var(--kiou-pink-strong), var(--kiou-gold)); }
.header-social { display: flex; align-items: center; gap: 10px; }
.header-social a, .header-social span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(212,175,55,.3); border-radius: 50%; color: #8b514d; background: rgba(255,253,249,.7); font-size: .82rem; font-weight: 900; text-decoration: none; }

main { display: grid; gap: 30px; padding: 0 clamp(14px, 3.2vw, 42px) 34px; }
.hero-section, .status-section, .profile-section, .contact-section, .site-footer { width: min(var(--kiou-container), 100%); margin-inline: auto; }

/* Hero */
.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(470px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
  min-height: 560px;
  margin-top: 0;
  padding: clamp(44px, 5vw, 70px) clamp(42px, 6vw, 74px) 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(212,175,55,.34);
  background:
    linear-gradient(90deg, rgba(255,253,249,.97) 0%, rgba(255,249,251,.88) 44%, rgba(255,246,250,.65) 100%),
    radial-gradient(circle at 74% 22%, rgba(244,143,177,.24), transparent 24rem),
    url("./assets/ui/sakura-petals.svg") center top / min(850px, 95vw) auto no-repeat;
}
.hero-section::before { position: absolute; inset: 0; pointer-events: none; content: ""; background: url("./assets/ui/gold-swirl.svg") 52% 14% / 580px auto no-repeat; opacity: .24; }
.hero-section::after { position: absolute; left: 0; top: 0; width: min(520px, 48vw); height: 180px; pointer-events: none; content: ""; background: url("./assets/ui/sakura-corner.svg") left -120px top -160px / 520px auto no-repeat; opacity: .52; }
.hero-copy { position: relative; z-index: 4; display: grid; gap: 22px; min-width: 0; }
.hero-logo-lockup { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 20px; }
.hero-logo-mark { width: 104px; height: 104px; filter: drop-shadow(0 12px 18px rgba(74,46,43,.16)); }
.hero-logo-kicker { margin: 0 0 4px; color: var(--kiou-ink); font-size: clamp(1rem, 1.5vw, 1.45rem); font-weight: 900; letter-spacing: .34em; }
.hero-logo-text h1 { margin: 0; color: var(--kiou-ink); font-size: clamp(4.8rem, 7.5vw, 7.8rem); letter-spacing: .12em; text-shadow: 0 3px 0 #fff, 0 10px 24px rgba(74,46,43,.10); }
.hero-logo-subtitle { margin: 5px 0 0; color: var(--kiou-ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.76rem, 1.1vw, 1rem); font-weight: 900; letter-spacing: .34em; }
.hero-catch { position: relative; margin: 0; display: inline-flex; align-items: center; gap: 12px; color: var(--kiou-pink-strong); font-size: clamp(1.25rem, 2.1vw, 1.75rem); font-weight: 900; letter-spacing: .13em; text-shadow: 0 2px 0 rgba(255,255,255,.82); }
.hero-catch::before, .hero-catch::after { content: "✧"; color: var(--kiou-gold); font-size: .85em; }
.hero-search { display: grid; grid-template-columns: 58px minmax(0, 1fr) 134px; align-items: center; min-height: 66px; max-width: 650px; overflow: hidden; border: 1px solid rgba(212,175,55,.62); border-radius: 8px; background: rgba(255,253,249,.94); box-shadow: 0 16px 34px rgba(74,46,43,.13), inset 0 0 0 4px rgba(255,242,247,.72); }
.search-symbol { display: grid; place-items: center; color: #9b6334; font-size: 2rem; font-weight: 400; }
.hero-search input { width: 100%; min-width: 0; height: 64px; border: 0; outline: 0; color: var(--kiou-ink); background: transparent; font-weight: 800; }
.hero-search input::placeholder { color: #a98782; }
.primary-button { align-self: stretch; border: 0; color: #fff; background: linear-gradient(135deg, #ff8cb3, var(--kiou-pink-strong)); font-size: 1.08rem; font-weight: 900; letter-spacing: .1em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.38); }
.primary-button::after { margin-left: 8px; content: "✦"; font-size: .82em; }
.popular-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--kiou-ink); font-size: .88rem; font-weight: 900; }
.popular-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.popular-chip { min-height: 32px; padding: 4px 13px; border: 1px solid rgba(212,175,55,.46); border-radius: 8px; color: var(--kiou-ink); background: rgba(255,253,249,.86); font-size: .82rem; font-weight: 900; box-shadow: 0 4px 10px rgba(74,46,43,.04); }
.popular-chip:hover, .popular-chip:focus-visible { color: var(--kiou-pink-strong); border-color: rgba(233,77,132,.42); background: #fff; }
.hero-visual { position: relative; z-index: 2; min-height: 500px; align-self: stretch; }
.hero-visual::before { position: absolute; inset: 8% -4% 2% 0; content: ""; border-radius: 56% 44% 50% 38%; background: radial-gradient(circle at 44% 36%, rgba(255,255,255,.72), rgba(255,231,240,.34) 34%, rgba(245,222,248,.20) 58%, transparent 70%); box-shadow: inset 0 0 0 1px rgba(212,175,55,.22); }
.hero-art-card { position: absolute; right: -28px; top: 0; width: min(620px, 112%); height: 500px; overflow: hidden; border-radius: 38% 0 0 38%; filter: drop-shadow(0 28px 26px rgba(74,46,43,.14)); mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 95%, transparent 100%); }
.hero-art-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transform: scale(1.08); }
.hero-sakura-branch { position: absolute; pointer-events: none; background: url("./assets/ui/sakura-branch.svg") center / contain no-repeat; opacity: .68; filter: drop-shadow(0 8px 8px rgba(74,46,43,.08)); }
.branch-a { right: -92px; top: -38px; width: 470px; height: 190px; transform: rotate(-5deg); }
.branch-b { left: -28px; bottom: 16px; width: 320px; height: 130px; opacity: .28; transform: rotate(160deg); }
.hero-gold-flow { position: absolute; left: -64px; bottom: 38px; width: 560px; height: 160px; background: url("./assets/ui/gold-swirl.svg") center / contain no-repeat; opacity: .42; transform: rotate(-10deg); }
.hero-piece { position: absolute; z-index: 5; display: grid; place-items: center; width: 82px; height: 104px; padding-top: 12px; clip-path: polygon(50% 0, 92% 18%, 84% 100%, 16% 100%, 8% 18%); color: #4b2b1b; background: linear-gradient(145deg, #fff1c7 0%, #e8bd77 58%, #c98d4b 100%); border: 0; font-size: 1.25rem; font-weight: 900; line-height: 1.05; writing-mode: vertical-rl; text-orientation: upright; box-shadow: 0 12px 16px rgba(74,46,43,.22), inset 0 0 0 5px rgba(255,255,255,.24); text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.hero-piece::after { position: absolute; inset: 8px; clip-path: inherit; content: ""; border: 1px solid rgba(126,75,36,.34); }
.piece-ou { right: 22px; top: 88px; transform: rotate(10deg); }
.piece-hi { right: -2px; top: 220px; transform: rotate(14deg); }
.piece-ka { right: 28px; bottom: 54px; transform: rotate(-10deg); }
.piece-fu { left: 38px; bottom: 42px; width: 62px; height: 80px; font-size: 1.65rem; transform: rotate(15deg); opacity: .92; }

/* Summary cards */
.status-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 1.25fr 1.05fr; gap: 16px; margin-top: -22px; position: relative; z-index: 8; }
.status-card { position: relative; min-width: 0; min-height: 192px; padding: 24px 20px; overflow: hidden; border: 1px solid rgba(212,175,55,.48); border-radius: 8px; color: inherit; background: rgba(255,253,249,.92); text-decoration: none; box-shadow: var(--kiou-shadow-soft); backdrop-filter: blur(10px); }
.status-card::before { position: absolute; inset: 8px; pointer-events: none; content: ""; border: 1px solid rgba(234,211,162,.38); border-radius: 5px; }
.status-card::after { position: absolute; right: -45px; bottom: -70px; width: 170px; height: 170px; content: ""; background: url("./assets/ui/sakura-corner.svg") center / contain no-repeat; opacity: .16; transform: rotate(180deg); }
.status-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(74,46,43,.16); }
.stat-card { display: grid; justify-items: center; align-content: center; gap: 7px; text-align: center; }
.status-icon { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; color: #fff; font-size: 1.65rem; font-weight: 900; box-shadow: 0 12px 18px rgba(233,77,132,.20); }
.icon-pink { background: linear-gradient(135deg, #ff9cbd, var(--kiou-pink-strong)); }
.icon-purple { background: linear-gradient(135deg, #baa2e8, #6f4a7a); }
.status-label { color: var(--kiou-ink); font-size: .92rem; font-weight: 900; }
.status-card strong { display: block; color: var(--kiou-ink); font-size: 2.7rem; line-height: 1.05; letter-spacing: .04em; }
.status-card strong small { margin-left: 3px; font-size: 1rem; }
.status-card em, .status-card .text-link { color: var(--kiou-pink-strong); font-size: .84rem; font-style: normal; font-weight: 900; text-decoration: none; }
.birthday-card, .memo-card { display: grid; gap: 14px; align-content: start; }
.card-topline, .memo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid rgba(234,211,162,.46); padding-bottom: 10px; }
.card-topline span, .memo-card-head span { font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 900; }
.card-topline a { color: var(--kiou-pink-strong); font-size: .78rem; font-weight: 900; text-decoration: none; }
.birthday-body { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 14px; align-items: center; }
.birthday-body img { width: 86px; height: 86px; object-fit: cover; object-position: center top; border: 3px solid #fff; border-radius: 50%; background: #fff7fa; box-shadow: 0 8px 18px rgba(74,46,43,.12); }
.birthday-body small, .birthday-body em { display: block; color: var(--kiou-muted); font-size: .75rem; font-weight: 900; font-style: normal; }
.birthday-body strong { margin: 2px 0; color: #db375f; font-size: .86rem; }
.birthday-body span { display: block; color: var(--kiou-ink); font-size: 1.42rem; font-weight: 900; }
.memo-card p { margin: 0; color: #5f4642; font-size: .86rem; font-weight: 800; }
.memo-edit { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(233,77,132,.36); border-radius: 6px; color: var(--kiou-pink-strong); background: #fff7fa; font-weight: 900; }
.memo-button { min-height: 42px; border: 1px solid rgba(233,77,132,.34); border-radius: 8px; color: var(--kiou-pink-strong); background: rgba(255,246,249,.86); font-weight: 900; }
.favorite-list { display: grid; gap: 7px; }
.favorite-pill, .saved-memo-link { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 30px; border-radius: 999px; color: var(--kiou-pink-strong); font-size: .78rem; font-weight: 900; text-decoration: none; }
.favorite-pill { border: 1px solid rgba(234,211,162,.48); color: var(--kiou-ink); background: #fffafc; }
.favorite-pill small { color: var(--kiou-muted); }

/* Sections */
.profile-section, .contact-section { position: relative; overflow: hidden; padding: clamp(30px, 4vw, 48px); border: 1px solid rgba(212,175,55,.48); border-radius: 8px; background: linear-gradient(180deg, rgba(255,253,249,.95), rgba(255,248,243,.90)); box-shadow: var(--kiou-shadow); }
.profile-section { background: url("./assets/ui/sakura-corner.svg") left -120px top -130px / 360px auto no-repeat, url("./assets/ui/sakura-corner.svg") right -120px bottom -130px / 380px auto no-repeat, linear-gradient(180deg, rgba(255,253,249,.96), rgba(255,246,250,.90)); }
.profile-section::before, .contact-section::before { position: absolute; inset: 10px; pointer-events: none; content: ""; border: 1px solid rgba(234,211,162,.42); border-radius: 5px; }
.section-heading { position: relative; z-index: 2; display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.centered-heading { justify-content: center; text-align: center; }
.section-kicker { margin: 0 0 4px; color: var(--kiou-pink-strong); font-family: Georgia, "Times New Roman", serif; font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.ornate-heading h1, .ornate-heading h2 { position: relative; display: inline-flex; align-items: center; gap: 14px; margin: 0; font-size: clamp(2rem, 3.4vw, 3.1rem); letter-spacing: .12em; }
.ornate-heading h1::before, .ornate-heading h1::after, .ornate-heading h2::before, .ornate-heading h2::after { width: 58px; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--kiou-gold)); }
.ornate-heading h1::after, .ornate-heading h2::after { background: linear-gradient(90deg, var(--kiou-gold), transparent); }
.section-lead { margin: 9px 0 0; color: var(--kiou-muted); font-size: .94rem; font-weight: 900; }
.secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; min-width: 150px; padding: 0 22px; border: 1px solid rgba(233,77,132,.36); border-radius: 8px; color: var(--kiou-pink-strong); background: rgba(255,253,249,.8); font-weight: 900; text-decoration: none; box-shadow: 0 8px 16px rgba(74,46,43,.06); }
.secondary-button:hover { color: #fff; background: var(--kiou-pink-strong); border-color: var(--kiou-pink-strong); }
.catalog-controls { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: -6px 0 18px; padding: 12px 14px; border: 1px solid rgba(234,211,162,.42); border-radius: 8px; background: rgba(255,253,249,.74); box-shadow: 0 8px 18px rgba(74,46,43,.05); }
.filter-strip, .filter-chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-strip > span, .sort-control span { color: var(--kiou-muted); font-size: .78rem; font-weight: 900; }
.filter-chip { min-height: 30px; padding: 3px 12px; border: 1px solid rgba(212,175,55,.46); border-radius: 999px; color: var(--kiou-ink); background: rgba(255,253,249,.88); font-size: .8rem; font-weight: 900; }
.filter-chip:hover, .filter-chip:focus-visible, .filter-chip[aria-pressed="true"] { color: #fff; border-color: var(--kiou-pink-strong); background: linear-gradient(135deg, #ff8cb3, var(--kiou-pink-strong)); }
.sort-control { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sort-control select { min-height: 34px; padding: 4px 30px 4px 10px; border: 1px solid rgba(212,175,55,.48); border-radius: 8px; color: var(--kiou-ink); background: #fffdf9; font-weight: 900; }
.search-result-note { position: relative; z-index: 2; min-height: 1.4em; margin: -8px 0 16px; color: var(--kiou-pink-strong); font-weight: 900; text-align: center; }
.profile-page-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.profile-card-shell { position: relative; min-width: 0; }
.profile-card { position: relative; display: block; min-height: 296px; overflow: hidden; border: 1px solid rgba(212,175,55,.56); border-radius: 8px; color: #fff; background: #2b1b19; text-decoration: none; box-shadow: 0 18px 34px rgba(74,46,43,.16); transition: transform .18s ease, box-shadow .18s ease; }
.profile-card::before { position: absolute; inset: 7px; z-index: 3; pointer-events: none; content: ""; border: 1px solid rgba(234,211,162,.60); border-radius: 5px; }
.profile-card:hover, .profile-card:focus-visible { outline: none; transform: translateY(-6px) scale(1.012); box-shadow: 0 30px 60px rgba(74,46,43,.25); }
.profile-card-image { position: absolute; inset: 0; display: grid; place-items: end center; overflow: hidden; background: radial-gradient(circle at 50% 28%, rgba(255,255,255,.82), transparent 32%), linear-gradient(145deg, rgba(255,230,238,.94), rgba(235,220,250,.82)); }
.profile-card-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 20%, rgba(35,18,16,.22) 54%, rgba(26,13,12,.94) 78%, #170b0a 100%); }
.profile-card-image img { position: relative; z-index: 1; width: 120%; height: 310px; object-fit: contain; object-position: center top; transform: translateY(19%) scale(1.38); clip-path: inset(0 0 43% 0); filter: drop-shadow(0 16px 14px rgba(74,46,43,.25)); }
.placeholder-glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(233,77,132,.14); font-size: 5rem; font-weight: 900; }
.profile-card-overlay { position: relative; z-index: 4; display: grid; align-content: end; min-height: 296px; padding: 150px 14px 16px; }
.profile-card-kicker { color: #ffe7b7; font-size: .72rem; font-weight: 900; }
.profile-card h3 { margin: 4px 0 2px; color: #fff; font-size: 1.22rem; letter-spacing: .08em; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.profile-card p { margin: 0 0 8px; color: rgba(255,255,255,.82); font-size: .78rem; font-weight: 900; }
.profile-card-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.profile-card-meta span { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 7px; border: 1px solid rgba(234,211,162,.38); border-radius: 999px; color: #fffaf2; background: rgba(255,255,255,.11); font-size: .66rem; font-weight: 900; }
.profile-favorite { position: absolute; top: 10px; right: 10px; z-index: 8; display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(234,211,162,.62); border-radius: 50%; color: var(--kiou-pink-strong); background: rgba(255,253,249,.86); font-weight: 900; box-shadow: 0 8px 16px rgba(74,46,43,.10); }
.profile-favorite[aria-pressed="true"] { color: #fff; border-color: var(--kiou-pink-strong); background: var(--kiou-pink-strong); }
.empty-results { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px solid rgba(234,211,162,.52); border-radius: 8px; color: var(--kiou-muted); background: rgba(255,253,249,.86); font-weight: 900; text-align: center; }

/* Contact */
.contact-section { background: url("./assets/ui/gold-swirl.svg") center top 12px / 560px auto no-repeat, linear-gradient(180deg, rgba(255,253,249,.96), rgba(255,247,242,.9)); }
.contact-action-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-action { position: relative; display: grid; justify-items: center; align-content: center; min-height: 218px; padding: 28px 22px; overflow: hidden; border: 1px solid rgba(212,175,55,.48); border-radius: 8px; color: inherit; background: rgba(255,253,249,.9); text-align: center; text-decoration: none; box-shadow: 0 16px 34px rgba(74,46,43,.10); transition: transform .18s ease, box-shadow .18s ease; }
.contact-action::before { position: absolute; inset: 9px; pointer-events: none; content: ""; border: 1px solid rgba(234,211,162,.40); border-radius: 5px; }
.contact-action:hover { transform: translateY(-4px); box-shadow: 0 26px 52px rgba(74,46,43,.16); }
.contact-icon { display: grid; width: 72px; height: 72px; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg, #ff9abb, var(--kiou-pink-strong)); box-shadow: 0 16px 26px rgba(233,77,132,.28); font-size: 2.05rem; font-weight: 900; }
.contact-action strong { margin-top: 14px; color: var(--kiou-pink-strong); font-size: 1.16rem; }
.contact-action small { margin-top: 4px; color: var(--kiou-ink); font-size: .88rem; font-weight: 800; }
.contact-action em { display: inline-flex; align-items: center; justify-content: center; width: min(240px, 100%); min-height: 42px; margin-top: 16px; border: 1px solid rgba(233,77,132,.36); border-radius: 8px; color: var(--kiou-pink-strong); background: rgba(255,245,249,.82); font-style: normal; font-weight: 900; }

/* Footer */
.site-footer { position: relative; display: grid; grid-template-columns: minmax(250px, .85fr) minmax(320px, 1.4fr) auto; gap: 24px; align-items: center; margin-bottom: 0; padding: 30px clamp(18px, 4vw, 54px); overflow: hidden; border-top: 1px solid rgba(212,175,55,.42); background: linear-gradient(90deg, rgba(255,253,249,.96), rgba(255,246,250,.88)); }
.site-footer::before { position: absolute; left: -70px; bottom: -120px; width: 260px; height: 190px; content: ""; background: url("./assets/ui/sakura-corner.svg") left bottom / contain no-repeat; opacity: .44; }
.footer-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 54px; height: 54px; }
.footer-brand div { display: grid; gap: 1px; line-height: 1.08; }
.footer-brand span, .footer-brand small { color: var(--kiou-muted); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.footer-brand strong { color: var(--kiou-ink); font-size: 1.52rem; letter-spacing: .08em; }
.footer-nav { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
.footer-nav a { color: var(--kiou-ink); font-size: .82rem; font-weight: 900; text-decoration: none; }
.footer-nav a:hover { color: var(--kiou-pink-strong); }
.footer-social { position: relative; z-index: 1; display: flex; justify-content: flex-end; gap: 10px; }
.footer-social a, .footer-social span { display: grid; min-width: 38px; min-height: 38px; place-items: center; padding: 0 9px; border: 1px solid rgba(212,175,55,.34); border-radius: 999px; color: var(--kiou-ink); background: rgba(255,253,249,.78); font-size: .84rem; font-weight: 900; text-decoration: none; }
.footer-copy { position: relative; z-index: 1; grid-column: 1 / -1; margin: 0; color: var(--kiou-muted); font-size: .76rem; font-weight: 800; text-align: center; }

/* Legacy / lower pages */
.legal-main, .character-page-main { width: min(var(--kiou-container), calc(100% - 32px)); margin: 36px auto; display: block; }
.legal-page, .character-profile-shell, .profile-block { border: 1px solid rgba(212,175,55,.42); border-radius: 10px; background: rgba(255,253,249,.92); box-shadow: var(--kiou-shadow-soft); }
.legal-page { padding: clamp(24px,4vw,48px); }
.legal-page h1, .character-profile-hero h1 { font-size: clamp(2.2rem, 4vw, 4rem); }
.legal-page h2 { margin-top: 30px; font-size: 1.45rem; }
.legal-list { display: grid; gap: 12px; }
.legal-list div { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(234,211,162,.44); }
.legal-list dt { color: var(--kiou-muted); font-weight: 900; }
.legal-list dd { margin: 0; }
.legal-bullets { padding-left: 1.2em; }
.sitemap-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.sitemap-link-grid a { padding: 12px 14px; border: 1px solid rgba(212,175,55,.38); border-radius: 8px; background: #fffafc; color: var(--kiou-ink); font-weight: 900; text-decoration: none; }
.character-profile-shell { display: grid; gap: 22px; padding: clamp(18px,3vw,28px); }
.character-profile-hero { display: grid; grid-template-columns: minmax(300px,420px) minmax(0,1fr); gap: 26px; align-items: stretch; }
.profile-visual-large { position: relative; display: grid; min-height: 520px; place-items: end center; overflow: hidden; border: 1px solid rgba(212,175,55,.32); border-radius: 10px; background: radial-gradient(circle at 50% 30%, #fff, transparent 36%), linear-gradient(145deg,#ffeaf1,#f3e8ff); }
.profile-visual-large img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; object-position: center top; transform: translateY(0); filter: drop-shadow(0 18px 18px rgba(74,46,43,.18)); }
.profile-hero-copy { display: grid; align-content: center; gap: 12px; }
.profile-ruby, .profile-catchline { color: var(--kiou-muted); font-weight: 900; }
.profile-lead { font-weight: 800; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.data-tag { display: inline-flex; min-height: 26px; align-items: center; padding: 3px 10px; border: 1px solid rgba(212,175,55,.34); border-radius: 999px; color: var(--kiou-plum); background: #fff5f9; font-size: .76rem; font-weight: 900; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.select-character, .page-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid rgba(233,77,132,.36); border-radius: 8px; color: var(--kiou-pink-strong); background: #fff6fa; font-weight: 900; text-decoration: none; }
.character-page-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.profile-block { padding: 22px; }
.profile-block-main { grid-column: span 1; }
.compact-heading h2 { font-size: 1.55rem; }
.skin-switcher, .voice-list, .profile-fact-grid, .related-grid { display: grid; gap: 10px; }
.skin-button, .voice-item, .profile-fact-grid div, .related-card { padding: 10px 12px; border: 1px solid rgba(234,211,162,.42); border-radius: 8px; background: #fffafc; color: var(--kiou-ink); font-weight: 900; }
.skin-button[aria-pressed="true"] { color: var(--kiou-pink-strong); border-color: rgba(233,77,132,.48); background: #fff1f6; }
.voice-item, .related-card { display: flex; justify-content: space-between; gap: 10px; }
.mini-board-wrap { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 14px; align-items: center; }
.mini-board { display: grid; grid-template-columns: repeat(9,1fr); width: 100px; height: 100px; border: 1px solid rgba(120,72,40,.45); background: #efc985; }
.mini-board span { border-right: 1px solid rgba(74,46,43,.18); border-bottom: 1px solid rgba(74,46,43,.18); }
.mini-board .hot { background: rgba(233,77,132,.42); }
.ad-unit { margin-top: 20px; min-height: 90px; border: 1px solid rgba(234,211,162,.42); border-radius: 8px; background: rgba(255,253,249,.70); }
.ad-label { display: block; padding: 8px; color: rgba(139,111,107,.66); font-size: .72rem; text-align: center; }

@media (max-width: 1180px) {
  .app-header { grid-template-columns: 1fr; gap: 12px; justify-items: center; }
  .header-social { position: absolute; right: 18px; top: 18px; }
  .hero-section { grid-template-columns: 1fr; padding-top: 38px; }
  .hero-visual { min-height: 460px; }
  .hero-art-card { left: 34%; right: auto; width: 620px; }
  .status-section { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .birthday-card, .memo-card { grid-column: span 1; }
  .profile-page-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  main { padding-inline: 14px; }
  .top-nav { width: 100%; overflow-x: auto; justify-content: flex-start; }
  .top-nav a { padding-inline: 14px; }
  .header-social { display: none; }
  .hero-section { padding-inline: 20px; min-height: 0; }
  .hero-logo-lockup { grid-template-columns: 86px minmax(0,1fr); }
  .hero-logo-mark { width: 82px; height: 82px; }
  .hero-logo-text h1 { font-size: clamp(3.6rem, 15vw, 5.5rem); }
  .hero-search { grid-template-columns: 52px minmax(0,1fr); }
  .primary-button { grid-column: 1 / -1; min-height: 54px; }
  .hero-visual { min-height: 390px; }
  .hero-art-card { left: 8%; width: 560px; height: 410px; }
  .hero-piece { width: 68px; height: 88px; font-size: 1rem; }
  .piece-ou { right: 8px; top: 70px; }
  .piece-hi { right: 0; top: 188px; }
  .piece-ka { right: 14px; bottom: 44px; }
  .piece-fu { left: 10px; bottom: 38px; }
  .status-section { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 0; }
  .profile-page-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .catalog-controls { grid-template-columns: 1fr; }
  .contact-action-grid, .site-footer, .character-profile-hero, .character-page-grid { grid-template-columns: 1fr; }
  .footer-social { justify-content: center; }
}
@media (max-width: 540px) {
  .app-header { padding: 12px; }
  .brand-title { font-size: 1.32rem; }
  .brand-mark { width: 48px; height: 48px; }
  .hero-section { padding: 28px 14px 26px; }
  .hero-logo-lockup { grid-template-columns: 70px minmax(0,1fr); gap: 12px; }
  .hero-logo-mark { width: 68px; height: 68px; }
  .hero-logo-kicker { font-size: .86rem; letter-spacing: .18em; }
  .hero-logo-text h1 { font-size: 3.4rem; }
  .hero-logo-subtitle { font-size: .62rem; letter-spacing: .14em; }
  .hero-catch { font-size: 1.06rem; letter-spacing: .05em; }
  .hero-visual { min-height: 340px; }
  .hero-art-card { left: -5%; width: 470px; height: 360px; }
  .status-section, .profile-page-grid, .contact-action-grid { grid-template-columns: 1fr; }
  .status-card { min-height: 172px; }
  .profile-section, .contact-section { padding: 24px 14px; }
  .profile-card, .profile-card-overlay { min-height: 310px; }
  .legal-list div, .mini-board-wrap { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Polishing for generated character pages and legacy logo span */
span.brand-mark {
  font-size: 0;
  background: #fffdf9 url("./assets/brand/sakurabanroku-mark.svg") center / 92% 92% no-repeat;
}
.skin-stage-caption {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-grid;
  gap: 2px;
  min-width: 130px;
  padding: 10px 14px;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 8px;
  color: var(--kiou-ink);
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 12px 24px rgba(74, 46, 43, 0.12);
  backdrop-filter: blur(10px);
}
.skin-stage-caption strong { font-size: .92rem; }
.skin-stage-caption span { color: var(--kiou-muted); font-size: .74rem; font-weight: 900; }
.related-card { align-items: center; color: inherit; text-decoration: none; }
.related-card img { width: 48px; height: 48px; object-fit: cover; object-position: center top; border-radius: 50%; background: #fff1f6; border: 2px solid #fff; box-shadow: 0 6px 12px rgba(74,46,43,.12); }
.related-card span { color: var(--kiou-muted); font-size: .72rem; font-weight: 900; }
.related-card strong { margin-left: auto; }
.anchor-target { position: absolute; top: -96px; width: 1px; height: 1px; overflow: hidden; }
