.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(60px, 8vw, 110px) 7vw;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.26) 42%, rgba(255,255,255,0.72) 68%, rgba(255,255,255,0.9) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,240,244,0.25));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin-left: auto;
  color: #5a4e51;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--pink-deep);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
}

.hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.08em;
}

.hero-copy {
  max-width: 430px;
  margin: 1.4rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-actions .button {
  min-width: 210px;
  padding: 0 28px;
}

.micro-note {
  margin: 18px 0 0;
  color: #96868b;
  font-size: 0.82rem;
}

.floating-hearts span {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 58% 42% 62% 38%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 24px rgba(241, 154, 170, 0.45);
  animation: float-heart 7s ease-in-out infinite;
}

.floating-hearts span::before,
.floating-hearts span::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: inherit;
}

.floating-hearts span::before {
  left: -6px;
  top: 0;
}

.floating-hearts span::after {
  right: 0;
  top: -6px;
}

.floating-hearts span:nth-child(1) {
  right: 10%;
  bottom: 12%;
}

.floating-hearts span:nth-child(2) {
  right: 26%;
  bottom: 22%;
  animation-delay: 1.8s;
  transform: scale(0.75);
}

.floating-hearts span:nth-child(3) {
  right: 18%;
  bottom: 6%;
  animation-delay: 3.2s;
  transform: scale(0.55);
}

.ranking-section {
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -80%;
  width: 42%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.65), transparent);
  pointer-events: none;
}

.product-card:hover::after {
  animation: shimmer 900ms ease;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.76;
  object-fit: cover;
}

.product-card-body {
  padding: 22px 26px 26px;
}

.product-card h3 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.product-card p {
  margin: 0.1rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-button,
.outline-button {
  width: 100%;
  margin-top: 12px;
  padding: 0 18px;
}

.outline-button {
  color: var(--pink-deep);
}

.rank-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(121, 95, 102, 0.16);
}

.rank-1 {
  background: #f4c548;
}

.rank-2 {
  background: #bfc5d1;
}

.rank-3 {
  background: #d5a083;
}

.wide-link {
  width: min(360px, 100%);
  margin: 34px auto 0;
  padding: 0 24px;
}

.diagnosis-strip {
  padding: 70px 28px;
  background: linear-gradient(100deg, #fff7fb, #fff0f5 52%, #f5fbff);
}

.steps {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.step-card {
  position: relative;
  min-height: 230px;
  padding: 34px 24px 28px;
  text-align: center;
}

.step-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 0.88rem;
}

.step-icon {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--pink);
  background: rgba(255,255,255,0.68);
  font-size: 3rem;
}

.step-card h3 {
  margin: 0;
  font-size: 1rem;
}

.step-card p {
  margin: 0.75rem auto 0;
  max-width: 230px;
  color: var(--muted);
  font-size: 0.9rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.review-card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid rgba(244, 215, 221, 0.8);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.stars {
  color: var(--pink);
  letter-spacing: 0.08em;
}

.review-card p {
  margin: 1rem 0;
}

.review-card span,
.review-card small {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.review-card small {
  width: fit-content;
  margin-top: 0.6rem;
  padding: 0.16rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a77984;
}

.review-hero {
  background:
    radial-gradient(circle at 72% 22%, rgba(241, 154, 170, 0.2), transparent 28%),
    radial-gradient(circle at 22% 72%, rgba(233, 248, 255, 0.86), transparent 30%),
    linear-gradient(135deg, #fff8fb, #fff0f4);
}

.review-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 24px;
}

.summary-card {
  padding: 26px 18px;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
  text-align: center;
}

.summary-card span {
  display: block;
  color: var(--pink-deep);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}

.summary-card p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.photo-review-section {
  padding-top: 36px;
}

.photo-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.photo-review-card {
  overflow: hidden;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.photo-review-card img {
  width: 100%;
  aspect-ratio: 1 / 0.82;
  object-fit: cover;
}

.photo-review-body {
  padding: 24px 24px 26px;
}

.photo-review-body h3 {
  margin: 0.7rem 0 0;
  font-size: 1.08rem;
}

.photo-review-body p {
  margin: 0.8rem 0 1rem;
  color: #62575b;
  font-size: 0.94rem;
}

.photo-review-body small,
.review-row small {
  display: inline-flex;
  padding: 0.18rem 0.76rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a77984;
  font-size: 0.78rem;
}

.review-list-section {
  padding-top: 42px;
}

.review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review-row {
  padding: 24px 26px;
  border: 1px solid rgba(244, 215, 221, 0.76);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #fff9fb);
}

.review-row p {
  margin: 0.75rem 0 1rem;
}

.review-note {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 24px 28px;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff8fb, #f8fcff);
  text-align: center;
}

.review-note h3 {
  margin: 0 0 0.5rem;
  color: var(--pink-deep);
  font-size: 1rem;
}

.review-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-hero {
  background:
    radial-gradient(circle at 18% 26%, rgba(241, 154, 170, 0.2), transparent 28%),
    radial-gradient(circle at 78% 68%, rgba(233, 248, 255, 0.92), transparent 32%),
    linear-gradient(135deg, #fff8fb, #fff4f7);
}

.guide-flow-section {
  padding-bottom: 38px;
}

.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.guide-step-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #fff, #fff8fb);
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.guide-step-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.guide-step-card h3 {
  margin: 0;
  color: #5d5155;
  font-size: 1.08rem;
}

.guide-step-card p {
  margin: 0.8rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-step-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--pink-deep);
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-color: rgba(223, 127, 145, 0.42);
  text-underline-offset: 4px;
}

.guide-info-section {
  padding-top: 38px;
  padding-bottom: 38px;
}

.guide-info-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr;
  gap: clamp(26px, 5vw, 64px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 94% 12%, rgba(241, 154, 170, 0.16), transparent 24%),
    linear-gradient(135deg, #fff8fb, #f8fcff);
  box-shadow: var(--shadow);
}

.guide-info-card h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
}

.guide-info-card p {
  margin: 1rem 0 0;
  color: var(--muted);
}

.guide-info-card ul {
  display: grid;
  gap: 14px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-info-card li {
  position: relative;
  padding-left: 30px;
  color: #675b5f;
}

.guide-info-card li::before {
  content: "♡";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--pink);
}

.guide-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-top: 38px;
}

.guide-soft-card {
  padding: 32px;
  border: 1px solid rgba(244, 215, 221, 0.82);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.1);
}

.guide-soft-card h2 {
  margin: 0;
  color: var(--pink-deep);
  font-size: 1.2rem;
}

.guide-soft-card p {
  margin: 0.8rem 0 1.4rem;
  color: var(--muted);
}

.guide-soft-card .wide-link {
  width: min(240px, 100%);
  margin: 0;
}

.guide-cta {
  max-width: 1120px;
  margin: 20px auto 80px;
  padding: 32px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff0f4, #fff8fb 62%, #f5fbff);
}

.guide-cta h2 {
  margin: 0;
  color: #5d5155;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 500;
}

.guide-cta .button {
  min-width: 230px;
  padding: 0 28px;
}

.diagnosis-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 100px 7vw 70px;
}

.diagnosis-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diagnosis-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.58) 48%, rgba(255, 255, 255, 0.92)),
    linear-gradient(180deg, rgba(255, 240, 244, 0.16), rgba(255, 255, 255, 0.28));
}

.diagnosis-hero-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin-left: auto;
}

.diagnosis-hero-panel h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.45;
}

.diagnosis-hero-panel p:last-child {
  color: var(--muted);
}

.diagnosis-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: start;
}

.diagnosis-form,
.diagnosis-preview {
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.diagnosis-form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
}

.diagnosis-name {
  display: grid;
  gap: 8px;
  color: #675b5f;
  font-weight: 700;
}

.diagnosis-name input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff9fb;
  outline: none;
}

.diagnosis-name input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(241, 154, 170, 0.14);
}

.diagnosis-form fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
}

.diagnosis-form legend {
  padding: 0 8px;
  color: var(--pink-deep);
  font-weight: 700;
}

.diagnosis-form label:not(.diagnosis-name) {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff8fb;
  color: #62575b;
  cursor: pointer;
}

.diagnosis-form input[type="radio"] {
  accent-color: var(--pink);
}

.diagnosis-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.diagnosis-preview {
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.diagnosis-preview img {
  width: 100%;
  aspect-ratio: 1 / 0.74;
  object-fit: cover;
}

.diagnosis-preview p {
  margin: 0;
  padding: 22px;
  color: var(--muted);
}

.scan-stage {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(78, 56, 64, 0.42);
  backdrop-filter: blur(10px);
}

.scan-stage[hidden] {
  display: none;
}

.scan-modal {
  width: min(620px, 100%);
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(244, 215, 221, 0.9);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 248, 251, 0.96), rgba(255, 255, 255, 0.94));
  box-shadow: 0 24px 74px rgba(80, 45, 55, 0.28);
}

.scan-title {
  margin: 0 0 16px;
  color: #e9859a;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-align: center;
  text-shadow: 0 8px 24px rgba(241, 154, 170, 0.28);
}

.scan-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 1px solid rgba(174, 218, 230, 0.55);
  background: #05070a;
  box-shadow: 0 22px 60px rgba(92, 126, 138, 0.2);
}

.scan-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  opacity: 0;
  transition: opacity 360ms ease;
}

.scan-stage.is-playing .scan-card video {
  opacity: 1;
}

.scan-intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #fff;
  background: #05070a;
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  letter-spacing: 0.14em;
  opacity: 0;
  animation: scan-intro-rise 1200ms ease 400ms forwards;
  transition: opacity 260ms ease;
}

.scan-intro[hidden] {
  display: none;
}

.camera-permission-stage {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(78, 56, 64, 0.34);
  backdrop-filter: blur(10px);
}

.camera-permission-stage[hidden] {
  display: none;
}

.camera-permission-card {
  position: relative;
  width: min(460px, 100%);
  padding: clamp(28px, 5vw, 42px);
  border: 1px solid rgba(244, 215, 221, 0.92);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 218, 228, 0.72), transparent 30%),
    linear-gradient(180deg, rgba(255, 248, 251, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 28px 78px rgba(80, 45, 55, 0.25);
  text-align: center;
}

.camera-permission-label {
  margin: 0 0 12px;
  color: var(--pink-deep);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.camera-permission-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 500;
}

.camera-permission-card h2 + p {
  margin: 18px 0 0;
  color: #6b5f64;
  line-height: 1.9;
}

.camera-permission-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.camera-permission-actions .button {
  min-width: 128px;
}

.camera-permission-note {
  margin: 22px 0 0;
  color: rgba(123, 102, 110, 0.55);
  font-size: 0.68rem;
  line-height: 1.5;
  text-align: right;
}

.result-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 100px 7vw 70px;
}

.result-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
}

.result-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.56) 44%, rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 70% 22%, rgba(241, 154, 170, 0.16), transparent 24%);
}

.result-hero-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  margin-left: auto;
}

.result-hero-panel h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

.result-hero-panel p:last-child {
  color: var(--muted);
}

.result-section {
  padding-top: 54px;
}

.result-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 12%, rgba(241, 154, 170, 0.16), transparent 24%),
    linear-gradient(135deg, #fff, #fff8fb);
  box-shadow: var(--shadow);
}

.result-image-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(244, 215, 221, 0.86);
  background: #fff;
}

.result-image-wrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.result-content h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.28;
}

.result-content h2 span:last-child {
  color: var(--pink-deep);
  font-size: 0.72em;
}

.result-content > p:not(.eyebrow, .diagnosis-note) {
  margin: 1rem 0 0;
  color: #62575b;
}

.result-meta {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.result-meta div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.result-meta dt {
  color: var(--muted);
}

.result-meta dd {
  margin: 0;
  text-align: right;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.result-actions .button {
  min-width: min(220px, 100%);
  padding: 0 24px;
}

.result-next {
  max-width: 1120px;
  margin: 18px auto 80px;
  padding: 32px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff0f4, #fff8fb 62%, #f5fbff);
}

.result-next h2 {
  margin: 0;
  color: #5d5155;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 500;
}

.result-next p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.result-next .button {
  min-width: 200px;
  padding: 0 28px;
}

.cart-hero {
  background:
    radial-gradient(circle at 18% 22%, rgba(241, 154, 170, 0.2), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(233, 248, 255, 0.86), transparent 30%),
    linear-gradient(135deg, #fff8fb, #fff4f7);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 360px);
  gap: 28px;
  align-items: start;
}

.cart-main,
.cart-summary {
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.cart-main {
  padding: clamp(24px, 4vw, 36px);
}

.cart-heading {
  justify-content: space-between;
  margin-bottom: 22px;
}

.cart-heading > div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cart-clear-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(242, 184, 195, 0.9);
  border-radius: 999px;
  color: var(--pink-deep);
  background: #fff;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 116px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(244, 215, 221, 0.76);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff, #fff9fb);
}

.cart-item img {
  width: 116px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item h3 {
  margin: 0;
  font-size: 1.15rem;
}

.cart-item p:not(.eyebrow) {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.cart-quantity {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-quantity select {
  min-width: 72px;
  min-height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pink-deep);
  background: #fff;
}

.cart-item-side {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.cart-item-side strong {
  color: #5d5155;
  white-space: nowrap;
}

.cart-item-side button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(242, 184, 195, 0.9);
  border-radius: 999px;
  color: var(--pink-deep);
  background: #fff;
  cursor: pointer;
}

.cart-empty {
  padding: 48px 22px;
  text-align: center;
  border: 1px dashed rgba(242, 184, 195, 0.9);
  border-radius: var(--radius);
  background: #fff9fb;
}

.cart-empty h3 {
  margin: 0;
  color: var(--pink-deep);
  font-size: 1.25rem;
}

.cart-empty p {
  color: var(--muted);
}

.cart-empty .button {
  padding: 0 28px;
}

.cart-summary {
  position: sticky;
  top: 96px;
  padding: 28px;
}

.cart-summary h2 {
  margin: 0 0 18px;
  color: var(--pink-deep);
  font-size: 1.15rem;
}

.cart-summary dl {
  display: grid;
  gap: 12px;
  margin: 0 0 22px;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-summary dt {
  color: var(--muted);
}

.cart-summary dd {
  margin: 0;
  text-align: right;
}

.cart-diagnosis-status {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff8fb;
}

.cart-diagnosis-status span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-diagnosis-status strong {
  color: var(--pink-deep);
  font-size: 1.25rem;
}

.cart-diagnosis-status p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.cart-checkout {
  width: 100%;
  margin-top: 18px;
  padding: 0 22px;
}

.cart-hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cart-alert {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 184, 195, 0.9);
  border-radius: var(--radius);
  color: var(--pink-deep);
  background: #fff8fb;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cart-alert[data-type="busy"] {
  color: #6c7582;
  border-color: rgba(174, 218, 230, 0.8);
  background: #f6fbff;
}

.cart-alert.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-hero {
  background:
    radial-gradient(circle at 22% 20%, rgba(241, 154, 170, 0.18), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(233, 248, 255, 0.9), transparent 30%),
    linear-gradient(135deg, #fff8fb, #fff4f7);
}

.faq-guide-section {
  padding-bottom: 42px;
}

.faq-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.faq-guide-card {
  min-height: 230px;
  padding: 26px 22px;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #fff, #fff8fb);
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.faq-guide-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--pink-deep);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.faq-guide-card h3 {
  margin: 0;
  color: #5d5155;
  font-size: 1.05rem;
}

.faq-guide-card p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-hero,
.privacy-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 205, 216, 0.48), transparent 28%),
    linear-gradient(135deg, #fff8fb, #fff);
}

.legal-section {
  padding-top: 54px;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.legal-side {
  position: sticky;
  top: 112px;
  padding: 28px;
  border: 1px solid rgba(244, 215, 221, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(214, 150, 164, 0.12);
}

.legal-side h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.25;
}

.legal-side p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.9;
}

.legal-document {
  display: grid;
  gap: 18px;
}

.legal-document article {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(244, 215, 221, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(158, 107, 118, 0.08);
}

.legal-document span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--pink-deep);
  font-family: "Courier New", monospace;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
}

.legal-document h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
}

.legal-document p {
  margin: 0;
  color: #6d6267;
  line-height: 2;
}

.legal-document p + p {
  margin-top: 12px;
}

.privacy-document article:nth-child(4),
.privacy-document article:nth-child(6),
.legal-document article:nth-child(5) {
  border-color: rgba(235, 166, 181, 0.95);
  background: linear-gradient(180deg, rgba(255, 248, 251, 0.95), rgba(255, 255, 255, 0.92));
}

.faq-section {
  padding-top: 42px;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 24px 28px;
  border: 1px solid rgba(244, 215, 221, 0.8);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.1);
}

.faq-item h3 {
  margin: 0;
  color: var(--pink-deep);
  font-size: 1rem;
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: #62575b;
}

.contact-section {
  padding-top: 30px;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 32px 38px;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff0f4, #fff8fb 62%, #f5fbff);
}

.contact-card h2 {
  margin: 0;
  color: #5d5155;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 500;
}

.contact-card p:not(.eyebrow) {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.contact-card .button {
  min-width: 190px;
  padding: 0 28px;
}

.message-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 110px) 28px 64px;
  display: grid;
  grid-template-columns: 1fr minmax(190px, 260px);
  gap: clamp(28px, 6vw, 66px);
  align-items: center;
}

.message-hero-text h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.42;
}

.message-hero-text p:last-child {
  max-width: 560px;
  color: var(--muted);
}

.message-portrait {
  width: min(260px, 100%);
  margin: 0 0 0 auto;
}

.message-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.message-portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}

.message-section {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  gap: 28px;
  align-items: start;
  padding-top: 40px;
}

.message-letter,
.message-side-card,
.message-value-grid article {
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.message-letter {
  padding: clamp(28px, 5vw, 52px);
}

.message-letter h2 {
  margin: 0 0 1.2rem;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 500;
}

.message-letter p:not(.eyebrow) {
  color: #62575b;
}

.message-signature {
  margin-top: 34px;
  text-align: right;
}

.message-signature span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.message-signature strong {
  color: #5d5155;
  font-size: 1.35rem;
  font-weight: 500;
}

.message-side-card {
  position: sticky;
  top: 96px;
  padding: 28px;
  background: linear-gradient(150deg, #fff, #fff8fb);
}

.message-side-card h2 {
  margin: 0 0 18px;
  color: var(--pink-deep);
  font-size: 1.15rem;
}

.message-side-card dl {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.message-side-card dl div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.message-side-card dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.message-side-card dd {
  margin: 0;
}

.message-side-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.message-values {
  padding-top: 34px;
}

.message-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.message-value-grid article {
  padding: 26px 24px;
  background: linear-gradient(150deg, #fff, #fff9fb);
}

.message-value-grid h3 {
  margin: 0;
  color: var(--pink-deep);
  font-size: 1.05rem;
}

.message-value-grid p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.company-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 100px 7vw 70px;
}

.company-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.62) 46%, rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, rgba(255, 240, 244, 0.18), rgba(255, 255, 255, 0.22));
}

.company-hero-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
}

.company-hero-panel h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
}

.company-hero-panel p:last-child {
  color: var(--muted);
}

.company-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) 1fr;
  gap: 28px;
  align-items: stretch;
}

.company-profile-card,
.company-text-card,
.company-value-grid article,
.company-link-card {
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.company-profile-card,
.company-text-card {
  padding: clamp(26px, 4vw, 38px);
}

.company-profile-card h3,
.company-text-card h3 {
  margin: 0 0 18px;
  color: var(--pink-deep);
  font-size: 1.18rem;
}

.company-profile-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.company-profile-card dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.company-profile-card dt {
  color: var(--muted);
}

.company-profile-card dd {
  margin: 0;
}

.company-text-card {
  background:
    radial-gradient(circle at 94% 10%, rgba(241, 154, 170, 0.14), transparent 24%),
    linear-gradient(150deg, #fff, #fff8fb);
}

.company-text-card h3 {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
}

.company-text-card p:not(.eyebrow) {
  color: #62575b;
}

.company-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.company-value-grid article {
  padding: 26px 24px;
  background: linear-gradient(150deg, #fff, #fff9fb);
}

.company-value-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 0.82rem;
}

.company-value-grid h3 {
  margin: 0;
  color: #5d5155;
  font-size: 1.05rem;
}

.company-value-grid p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.company-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 34px;
}

.company-link-card {
  display: block;
  padding: 28px;
  background: linear-gradient(135deg, #fff, #fff8fb);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.company-link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.company-link-card span {
  color: var(--pink-deep);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.company-link-card strong {
  display: block;
  margin-top: 8px;
  color: #5d5155;
  font-size: 1.15rem;
}

.company-link-card p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.partner-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 100px 7vw 70px;
}

.partner-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7) 46%, rgba(255, 255, 255, 0.24)),
    linear-gradient(180deg, rgba(245, 251, 255, 0.18), rgba(255, 255, 255, 0.22));
}

.partner-hero-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
}

.partner-hero-panel h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
}

.partner-hero-panel p:last-child {
  color: var(--muted);
}

.partner-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.partner-card-grid article,
.partner-process-list li,
.partner-code-card {
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
}

.partner-card-grid article {
  padding: 28px 24px;
  background: linear-gradient(150deg, #fff, #fff8fb);
}

.partner-card-grid span {
  color: var(--pink-deep);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.partner-card-grid h3 {
  margin: 0.7rem 0 0;
  color: #5d5155;
  font-size: 1.08rem;
}

.partner-card-grid p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.partner-process {
  padding-top: 40px;
}

.partner-process-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-process-list li {
  padding: 28px 24px;
}

.partner-process-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 0.82rem;
}

.partner-process-list h3 {
  margin: 0;
  color: #5d5155;
  font-size: 1.05rem;
}

.partner-process-list p {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.partner-code-section {
  padding-top: 40px;
}

.partner-code-card {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 90% 14%, rgba(233, 248, 255, 0.7), transparent 24%),
    linear-gradient(135deg, #fff, #fff8fb);
}

.partner-code-card h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
}

.partner-code-card p:not(.eyebrow) {
  color: var(--muted);
}

.partner-code-form {
  display: grid;
  gap: 14px;
}

.partner-code-form label {
  display: grid;
  gap: 8px;
  color: #675b5f;
  font-size: 0.9rem;
}

.partner-code-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  outline: none;
  letter-spacing: 0.08em;
}

.partner-code-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(241, 154, 170, 0.14);
}

.partner-code-form .button {
  width: 100%;
}

.partner-code-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(242, 184, 195, 0.9);
  border-radius: var(--radius);
  color: var(--pink-deep);
  background: #fff8fb;
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.partner-code-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.secure-page {
  color: #dce8f1;
  background:
    radial-gradient(circle at 14% 6%, rgba(78, 130, 163, 0.22), transparent 28%),
    linear-gradient(180deg, #f6fbff 0, #edf4f8 34%, #dbe6ed 100%);
}

.partner-shell-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr minmax(240px, 340px);
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(136, 160, 176, 0.32);
  background: rgba(248, 252, 255, 0.9);
  backdrop-filter: blur(18px);
}

.secure-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #334b5c;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.secure-brand img {
  width: 170px;
  height: auto;
}

.secure-nav {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  color: #5e7280;
  font-size: 0.82rem;
}

.secure-nav a {
  color: inherit;
  text-decoration: none;
}

.secure-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}

.secure-search label {
  display: grid;
  gap: 5px;
  color: #607888;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.secure-search input {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(113, 142, 159, 0.42);
  border-radius: 4px;
  color: #243f51;
  background: rgba(255, 255, 255, 0.72);
  outline: none;
}

.secure-search button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(84, 121, 145, 0.38);
  border-radius: 4px;
  color: #fff;
  background: #536f80;
  cursor: pointer;
}

.secure-search-error {
  position: absolute;
  right: 70px;
  top: -16px;
  color: #a85a66;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.secure-search-error.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.secure-hero,
.secure-panel-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.secure-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 6vw, 78px);
  align-items: end;
  padding: clamp(70px, 10vw, 120px) 0 54px;
}

.secure-kicker,
.secure-section-heading p {
  margin: 0 0 12px;
  color: #71889a;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
}

.secure-hero h1 {
  margin: 0;
  color: #263f52;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.65rem, 3.3vw, 3.1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.secure-hero p:not(.secure-kicker) {
  width: min(660px, 100%);
  color: #566d7d;
  font-size: 1rem;
  line-height: 2.1;
}

.secure-session {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(101, 134, 154, 0.28);
  background: rgba(101, 134, 154, 0.28);
}

.secure-session div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.68);
}

.secure-session dt {
  color: #6a8293;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.secure-session dd {
  margin: 0;
  color: #2f4b5f;
}

.secure-panel-section {
  padding: 42px 0;
}

.secure-section-heading h2 {
  margin: 0;
  color: #2d4658;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 500;
}

.secure-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.secure-card,
.secure-log-list article {
  border: 1px solid rgba(104, 135, 154, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 20px 48px rgba(55, 86, 108, 0.08);
}

.secure-card {
  min-height: 250px;
  padding: 24px;
}

.secure-card.is-current {
  border-color: rgba(84, 118, 140, 0.48);
  background: rgba(255, 255, 255, 0.82);
}

.secure-card span,
.secure-card small {
  color: #78909f;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.secure-card h3 {
  margin: 28px 0 0;
  color: #2f4657;
  font-size: 1.25rem;
}

.secure-card p {
  color: #627785;
  line-height: 1.85;
}

.secure-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 18px;
  border: 1px solid rgba(83, 111, 128, 0.4);
  border-radius: 4px;
  color: #fff;
  background: #536f80;
  text-decoration: none;
  cursor: pointer;
}

.secure-log-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.secure-log-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 18px 20px;
  color: #627785;
}

.secure-log-list time {
  color: #456174;
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
}

.secure-log-list p {
  margin: 0;
}

.secure-document {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 104px) 0 30px;
}

.secure-document-header {
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(104, 135, 154, 0.28);
}

.secure-document-header h1 {
  margin: 0;
  color: #263f52;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.secure-document-header > p:not(.secure-kicker) {
  width: min(720px, 100%);
  color: #5d7382;
  line-height: 2;
}

.secure-document-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  border: 1px solid rgba(101, 134, 154, 0.28);
  background: rgba(101, 134, 154, 0.28);
}

.secure-document-meta div {
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.68);
}

.secure-document-meta dt,
.secure-doc-index,
.secure-metric-grid span {
  color: #71889a;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.secure-document-meta dd {
  margin: 8px 0 0;
  color: #2f4b5f;
}

.secure-doc-section {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: 46px 0;
  border-bottom: 1px solid rgba(104, 135, 154, 0.2);
}

.secure-doc-section h2 {
  grid-column: 2;
  margin: 0;
  color: #2d4658;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
}

.secure-doc-section > p:not(.secure-doc-index),
.secure-doc-section > table,
.secure-doc-section > div:not(.secure-doc-index) {
  grid-column: 2;
}

.secure-doc-section > p:not(.secure-doc-index) {
  color: #5d7382;
  line-height: 2;
}

.secure-doc-reference {
  margin-top: 8px;
  color: #71889a;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.secure-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.secure-metric-grid div,
.secure-note-box {
  border: 1px solid rgba(104, 135, 154, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
}

.secure-metric-grid div {
  padding: 22px;
}

.secure-metric-grid strong {
  display: block;
  margin-top: 16px;
  color: #2f4b5f;
  font-size: 1.05rem;
  font-weight: 500;
}

.secure-metric-grid p,
.secure-note-box p {
  color: #627785;
  line-height: 1.85;
}

.secure-table {
  width: 100%;
  border-collapse: collapse;
  color: #536b7c;
  background: rgba(255, 255, 255, 0.62);
}

.secure-table th,
.secure-table td {
  padding: 18px 20px;
  border: 1px solid rgba(104, 135, 154, 0.24);
  text-align: left;
  vertical-align: top;
}

.secure-table th {
  width: 180px;
  color: #2f4b5f;
  font-weight: 500;
  background: rgba(234, 243, 248, 0.68);
}

.secure-field-table {
  width: 100%;
  border-collapse: collapse;
  color: #536b7c;
  background: rgba(255, 255, 255, 0.64);
}

.secure-field-table th,
.secure-field-table td {
  padding: 15px 16px;
  border: 1px solid rgba(104, 135, 154, 0.24);
  text-align: left;
  vertical-align: top;
}

.secure-field-table th {
  color: #2f4b5f;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  background: rgba(234, 243, 248, 0.72);
}

.secure-field-table td:first-child,
.secure-field-table td:nth-child(2) {
  color: #2f4b5f;
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
}

.secure-note-box {
  padding: 2px 22px;
}

.secure-case-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.secure-case-list article {
  padding: 24px;
  border: 1px solid rgba(104, 135, 154, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
}

.secure-case-list span {
  color: #71889a;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.secure-case-list h3 {
  margin: 18px 0 0;
  color: #2f4b5f;
  font-size: 1.15rem;
}

.secure-case-list p {
  color: #627785;
  line-height: 1.85;
}

.secure-case-list dl {
  display: grid;
  gap: 1px;
  margin: 20px 0 0;
  border: 1px solid rgba(101, 134, 154, 0.22);
  background: rgba(101, 134, 154, 0.22);
}

.secure-case-list dl div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(247, 251, 254, 0.74);
}

.secure-case-list dt {
  color: #71889a;
  font-size: 0.76rem;
}

.secure-case-list dd {
  margin: 0;
  color: #2f4b5f;
}

.secure-faq-list {
  display: grid;
  gap: 14px;
}

.secure-faq-list article {
  padding: 24px;
  border: 1px solid rgba(104, 135, 154, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
}

.secure-faq-list h3 {
  margin: 0;
  color: #2f4b5f;
  font-size: 1rem;
  font-weight: 500;
}

.secure-faq-list p {
  margin: 14px 0 0;
  color: #627785;
  line-height: 1.9;
}

.faq-page .secure-document {
  width: min(960px, calc(100% - 40px));
}

.faq-page .secure-document-header {
  padding: 44px;
  border: 1px solid rgba(104, 135, 154, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.faq-page .secure-doc-section {
  display: block;
  padding: 34px 0;
}

.faq-page .secure-doc-index {
  display: inline-block;
  margin-bottom: 12px;
}

.faq-page .secure-faq-list article {
  position: relative;
  padding-left: 72px;
}

.faq-page .secure-faq-list article::before {
  content: "Q";
  position: absolute;
  left: 22px;
  top: 24px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(104, 135, 154, 0.28);
  border-radius: 50%;
  color: #4d6a7d;
  font-family: "Courier New", monospace;
  background: rgba(234, 243, 248, 0.74);
}

.spec-page .secure-document {
  width: min(1180px, calc(100% - 40px));
}

.spec-page .secure-document-header {
  border-bottom: 0;
}

.spec-page .secure-doc-section {
  grid-template-columns: 120px minmax(0, 1fr);
  margin: 28px 0;
  padding: 34px;
  border: 1px solid rgba(82, 112, 132, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(233, 242, 248, 0.5));
}

.spec-page .secure-field-table {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 18px 44px rgba(50, 78, 96, 0.08);
}

.spec-page .secure-field-table td:first-child,
.spec-page .secure-field-table td:nth-child(2) {
  color: #12384d;
  background: rgba(233, 241, 247, 0.5);
}

.research-page .secure-document {
  width: min(1160px, calc(100% - 40px));
}

.research-page .secure-document-header {
  border-bottom-style: dashed;
}

.research-page .secure-doc-section {
  display: block;
}

.research-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.research-board article {
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(104, 135, 154, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 36px rgba(50, 78, 96, 0.08);
}

.research-board article.is-restricted {
  border-color: rgba(139, 89, 96, 0.34);
  background: linear-gradient(180deg, rgba(255,255,255,0.66), rgba(245, 235, 238, 0.72));
}

.research-board span,
.research-board small {
  color: #71889a;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.research-board h3 {
  margin: 32px 0 0;
  color: #2f4b5f;
  font-size: 1rem;
  line-height: 1.6;
}

.research-board p {
  color: #627785;
  font-size: 0.86rem;
}

.memo-page.secure-page {
  color: #d7e1e7;
  background:
    radial-gradient(circle at 12% 2%, rgba(74, 111, 130, 0.28), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(127, 68, 82, 0.16), transparent 24%),
    linear-gradient(180deg, #182630 0, #101820 48%, #0b1016 100%);
}

.memo-page .partner-shell-header {
  border-bottom-color: rgba(105, 130, 142, 0.24);
  background: rgba(14, 22, 29, 0.86);
}

.memo-page .secure-brand,
.memo-page .secure-nav {
  color: #c7d5dd;
}

.memo-page .secure-search label {
  color: #9eb2bd;
}

.memo-page .secure-search input {
  color: #e4eef4;
  border-color: rgba(117, 149, 164, 0.34);
  background: rgba(10, 18, 24, 0.78);
}

.memo-page .secure-search button {
  border-color: rgba(117, 149, 164, 0.36);
  background: #2d4958;
}

.memo-document {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0 34px;
}

.memo-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(120, 151, 166, 0.24);
}

.memo-kicker,
.memo-label {
  margin: 0 0 12px;
  color: #8ea7b4;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}

.memo-header h1 {
  grid-column: 1;
  margin: 0;
  color: #e9f2f6;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 500;
}

.memo-header > p:not(.memo-kicker) {
  grid-column: 1;
  margin: 18px 0 0;
  color: #a9bac4;
  line-height: 2;
}

.memo-header dl {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(120, 151, 166, 0.26);
  background: rgba(120, 151, 166, 0.2);
}

.memo-header dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(14, 24, 32, 0.82);
}

.memo-header dt {
  color: #8ea7b4;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.memo-header dd {
  margin: 0;
  color: #d7e1e7;
}

.memo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 28px;
}

.memo-panel {
  border: 1px solid rgba(120, 151, 166, 0.22);
  border-radius: 8px;
  background: rgba(15, 25, 32, 0.74);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.memo-panel-main,
.memo-log,
.memo-panel-note,
.memo-warning {
  padding: 24px;
}

.memo-panel-main {
  grid-row: span 2;
}

.memo-panel h2 {
  margin: 0 0 20px;
  color: #edf6fa;
  font-size: 1.25rem;
  font-weight: 500;
}

.memo-image-panel {
  margin: 28px 0 0;
  padding: 12px;
  border: 1px solid rgba(120, 151, 166, 0.22);
  border-radius: 8px;
  background: rgba(15, 25, 32, 0.62);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.memo-image-panel img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  border-radius: 5px;
  filter: saturate(0.9) contrast(1.02);
}

.memo-image-panel figcaption {
  margin: 10px 4px 2px;
  color: #8da8b7;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.memo-image-panel-legacy img {
  max-height: 520px;
  object-fit: contain;
  background: #f5f7f8;
}

.memo-table {
  width: 100%;
  border-collapse: collapse;
  color: #c5d4dc;
}

.memo-table th,
.memo-table td {
  padding: 16px 14px;
  border: 1px solid rgba(120, 151, 166, 0.18);
  text-align: left;
  vertical-align: top;
}

.memo-table th {
  width: 170px;
  color: #e1edf3;
  font-family: "Courier New", monospace;
  font-size: 0.84rem;
  background: rgba(44, 70, 84, 0.36);
}

.memo-warning {
  border-color: rgba(186, 92, 104, 0.38);
  color: #e8c8cf;
  background: rgba(59, 28, 37, 0.58);
}

.memo-warning p:last-child {
  margin-bottom: 0;
  line-height: 1.9;
}

.memo-log ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.memo-log li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  color: #b6c6cf;
  font-size: 0.9rem;
}

.memo-log time {
  color: #8ea7b4;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.memo-panel-note {
  grid-column: 1 / -1;
  color: #adbdc6;
  background: rgba(10, 18, 24, 0.74);
}

.memo-dialog {
  color: #c8d7df;
  border-color: rgba(120, 151, 166, 0.34);
  background: rgba(16, 27, 35, 0.96);
}

.memo-dialog h2 {
  color: #eff8fb;
}

.memo-page .secure-result-card {
  color: #dce8ee;
  border-color: rgba(120, 151, 166, 0.34);
  background: rgba(23, 39, 49, 0.92);
}

.memo-footer {
  border-top-color: rgba(120, 151, 166, 0.2);
  background: rgba(12, 18, 24, 0.82);
}

.export-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 28px;
}

.export-flow-panel,
.export-chart-panel {
  padding: 24px;
}

.export-flow-panel h2,
.export-chart-panel h2 {
  margin: 0 0 20px;
  color: #edf6fa;
  font-size: 1.25rem;
  font-weight: 500;
}

.export-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.export-flow div {
  position: relative;
  min-height: 154px;
  padding: 18px 16px;
  border: 1px solid rgba(120, 151, 166, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(37, 61, 75, 0.74), rgba(15, 25, 32, 0.74));
}

.export-flow div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 10px;
  height: 1px;
  background: rgba(142, 167, 180, 0.8);
}

.export-flow span {
  color: #8ea7b4;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.export-flow strong {
  display: block;
  margin-top: 18px;
  color: #edf6fa;
  font-size: 1rem;
}

.export-flow p {
  margin: 12px 0 0;
  color: #a9bac4;
  font-size: 0.86rem;
  line-height: 1.75;
}

.export-bars {
  display: grid;
  gap: 16px;
}

.export-bars div {
  display: grid;
  grid-template-columns: 130px 1fr 68px;
  gap: 12px;
  align-items: center;
  color: #c5d4dc;
}

.export-bars div::before {
  content: "";
  grid-column: 2;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(194, 92, 111, 0.95) var(--bar), rgba(120, 151, 166, 0.16) var(--bar));
  box-shadow: 0 0 18px rgba(194, 92, 111, 0.18);
}

.export-bars span {
  grid-column: 1;
  grid-row: 1;
  color: #a9bac4;
  font-size: 0.84rem;
}

.export-bars strong {
  grid-column: 3;
  grid-row: 1;
  color: #edf6fa;
  font-family: "Courier New", monospace;
  font-size: 0.86rem;
  text-align: right;
}

.export-log-table td strong,
.export-log-table td span {
  display: block;
}

.export-log-table td span {
  margin-top: 8px;
  color: #98adb8;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.7;
}

.recipient-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.recipient-card {
  min-height: 310px;
  padding: 22px;
  border-color: rgba(120, 151, 166, 0.26);
  background:
    linear-gradient(180deg, rgba(31, 51, 64, 0.82), rgba(12, 20, 28, 0.78));
}

.recipient-card.is-overseas {
  border-color: rgba(194, 92, 111, 0.34);
  box-shadow: 0 24px 60px rgba(72, 24, 36, 0.18);
}

.recipient-card h2 {
  min-height: 68px;
  margin: 0 0 18px;
  color: #edf6fa;
  font-size: 1.22rem;
  font-weight: 500;
  line-height: 1.35;
}

.recipient-card dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.recipient-card dl div {
  padding-top: 12px;
  border-top: 1px solid rgba(120, 151, 166, 0.18);
}

.recipient-card dt {
  color: #8ea7b4;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.recipient-card dd {
  margin: 8px 0 0;
  color: #c7d5dd;
  font-size: 0.9rem;
  line-height: 1.65;
}

.contract-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.contract-status-card {
  min-height: 250px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(31, 51, 64, 0.82), rgba(12, 20, 28, 0.78));
}

.contract-status-card.is-warning {
  border-color: rgba(194, 92, 111, 0.34);
}

.contract-status-card.is-danger {
  border-color: rgba(226, 89, 102, 0.48);
  background:
    linear-gradient(180deg, rgba(73, 30, 42, 0.72), rgba(18, 20, 28, 0.82));
}

.contract-status-card h2 {
  margin: 0 0 18px;
  color: #edf6fa;
  font-size: 1.22rem;
  font-weight: 500;
}

.contract-status-card strong {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #f2d9df;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  background: rgba(194, 92, 111, 0.18);
}

.contract-status-card p:last-child {
  margin: 0;
  color: #aebfc8;
  font-size: 0.9rem;
  line-height: 1.75;
}

.legacy-page.secure-page {
  color: #16344c;
  background:
    linear-gradient(180deg, #ffffff 0, #f5f9fc 54%, #eaf2f7 100%);
}

.legacy-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: center;
  padding: 14px 48px;
  border-bottom: 1px solid rgba(82, 118, 146, 0.22);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.legacy-brand img {
  width: min(300px, 100%);
  height: auto;
  display: block;
}

.legacy-page .secure-nav,
.legacy-page .secure-nav a {
  color: #526f82;
}

.legacy-page .secure-search label {
  color: #526f82;
}

.legacy-page .secure-search input {
  color: #16344c;
  border-color: rgba(82, 118, 146, 0.26);
  background: #f5f9fc;
}

.legacy-page .secure-search button {
  color: #fff;
  border-color: #315c78;
  background: #315c78;
}

.legacy-document {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) 0 34px;
}

.legacy-record-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(28px, 5vw, 64px);
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(82, 118, 146, 0.22);
}

.legacy-record-header h1 {
  grid-column: 1;
  margin: 0;
  color: #12304a;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.legacy-record-header > p:not(.memo-kicker) {
  grid-column: 1;
  margin: 18px 0 0;
  color: #526f82;
  line-height: 2;
}

.legacy-record-header dl {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(82, 118, 146, 0.18);
  background: rgba(82, 118, 146, 0.14);
}

.legacy-record-header dl div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
}

.legacy-record-header dt {
  color: #6f8798;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legacy-record-header dd {
  margin: 0;
  color: #16344c;
}

.legacy-timeline {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid rgba(82, 118, 146, 0.18);
  background: rgba(82, 118, 146, 0.14);
}

.legacy-timeline article {
  display: grid;
  grid-template-columns: 130px 260px 1fr;
  gap: 22px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.94);
}

.legacy-timeline time {
  color: #6f8798;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
}

.legacy-timeline h2 {
  margin: 0;
  color: #12304a;
  font-size: 1rem;
  font-weight: 500;
}

.legacy-timeline p {
  margin: 0;
  color: #526f82;
  line-height: 1.8;
}

.legacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
  margin-top: 28px;
}

.api-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid rgba(82, 118, 146, 0.18);
  background: rgba(82, 118, 146, 0.14);
}

.api-flow div {
  min-height: 170px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
}

.api-flow span {
  color: #5e8aa8;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.api-flow strong {
  display: block;
  margin-top: 18px;
  color: #12304a;
  font-size: 1.05rem;
}

.api-flow p {
  margin: 12px 0 0;
  color: #526f82;
  line-height: 1.75;
}

.api-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.api-spec-card {
  padding: 22px;
}

.api-spec-card h2 {
  margin: 0 0 18px;
  color: #12304a;
  font-size: 1.1rem;
  font-weight: 500;
}

.api-spec-card p {
  margin: 0;
  color: #526f82;
  line-height: 1.8;
}

.legacy-note-wide {
  margin-top: 18px;
  padding: 24px;
}

.value-compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.value-card {
  min-height: 230px;
  padding: 22px;
}

.value-card.is-danger {
  border-color: rgba(194, 92, 111, 0.34);
  background: #fff5f7;
}

.value-card h2 {
  margin: 0 0 16px;
  color: #12304a;
  font-size: 1.1rem;
  font-weight: 500;
}

.value-card strong {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #7b2433;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  background: rgba(194, 92, 111, 0.14);
}

.value-card p {
  margin: 0;
  color: #526f82;
  line-height: 1.8;
}

.value-route-panel {
  margin-top: 28px;
  padding: 24px;
}

.value-route-panel h2 {
  margin: 0 0 20px;
  color: #12304a;
  font-size: 1.15rem;
  font-weight: 500;
}

.value-route {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(82, 118, 146, 0.16);
  background: rgba(82, 118, 146, 0.14);
}

.value-route div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.94);
}

.value-route span {
  color: #5e8aa8;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.value-route strong {
  display: block;
  margin-top: 16px;
  color: #12304a;
  font-size: 0.98rem;
}

.value-route p {
  margin: 10px 0 0;
  color: #526f82;
  font-size: 0.86rem;
  line-height: 1.7;
}

.irreversible-header {
  position: relative;
}

.irreversible-header::after {
  content: "NO RESET";
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: rgba(194, 92, 111, 0.16);
  font-family: "Courier New", monospace;
  font-size: clamp(2.8rem, 9vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  pointer-events: none;
}

.irreversible-contrast {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.irreversible-card {
  min-height: 260px;
  padding: 24px;
}

.irreversible-card.is-soft {
  background: #f7fbfd;
}

.irreversible-card.is-danger {
  border-color: rgba(194, 92, 111, 0.34);
  background: linear-gradient(145deg, #fff5f7, #ffffff);
}

.irreversible-card h2 {
  margin: 0 0 18px;
  color: #12304a;
  font-size: 1.2rem;
  font-weight: 500;
}

.irreversible-card p {
  margin: 0;
  color: #526f82;
  line-height: 1.9;
}

.reset-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.reset-flow span {
  padding: 10px 8px;
  border: 1px solid rgba(82, 118, 146, 0.16);
  border-radius: 999px;
  color: #5e8aa8;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
}

.reset-flow.locked span {
  color: #8c3545;
  border-color: rgba(194, 92, 111, 0.28);
  background: rgba(194, 92, 111, 0.08);
}

.irreversible-warning p {
  font-size: 0.98rem;
}

.leak-timeline {
  margin-top: 28px;
  padding: 24px;
}

.leak-timeline h2 {
  margin: 0 0 20px;
  color: #12304a;
  font-size: 1.15rem;
  font-weight: 500;
}

.leak-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(82, 118, 146, 0.16);
  border-radius: 14px;
  background: rgba(82, 118, 146, 0.14);
}

.leak-steps div {
  min-height: 170px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
}

.leak-steps span {
  color: #8c3545;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.leak-steps strong {
  display: block;
  margin-top: 18px;
  color: #12304a;
  font-size: 1rem;
}

.leak-steps p {
  margin: 10px 0 0;
  color: #526f82;
  font-size: 0.88rem;
  line-height: 1.7;
}

.provision-header {
  position: relative;
}

.provision-header::after {
  content: "EXPORT";
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: rgba(42, 73, 95, 0.11);
  font-family: "Courier New", monospace;
  font-size: clamp(2.8rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.provision-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.provision-metric {
  min-height: 160px;
  padding: 22px;
}

.provision-metric.is-danger {
  border-color: rgba(194, 92, 111, 0.32);
  background: #fff5f7;
}

.provision-metric strong {
  display: block;
  margin-top: 18px;
  color: #12304a;
  font-family: "Courier New", monospace;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.provision-metric span {
  display: block;
  margin-top: 12px;
  color: #526f82;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.provision-note p {
  font-size: 0.98rem;
}

.provision-chart-panel {
  margin-top: 28px;
  padding: 24px;
}

.provision-chart-panel h2 {
  margin: 0 0 20px;
  color: #12304a;
  font-size: 1.15rem;
  font-weight: 500;
}

.provision-bars {
  display: grid;
  gap: 14px;
}

.provision-bars div {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  align-items: center;
}

.provision-bars span {
  color: #526f82;
  font-size: 0.9rem;
}

.provision-bars strong {
  position: relative;
  overflow: hidden;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #12304a;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  background: rgba(82, 118, 146, 0.1);
}

.provision-bars strong::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 138, 168, 0.26), rgba(194, 92, 111, 0.28));
}

.output-header,
.sale-header {
  position: relative;
}

.output-header::after {
  content: "TABLE";
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: rgba(42, 73, 95, 0.1);
  font-family: "Courier New", monospace;
  font-size: clamp(2.8rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.sale-header::after {
  content: "SOLD";
  position: absolute;
  right: 24px;
  bottom: 24px;
  color: rgba(194, 92, 111, 0.16);
  font-family: "Courier New", monospace;
  font-size: clamp(2.8rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.database-panel {
  margin-top: 28px;
  padding: 0;
  overflow: hidden;
}

.database-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(82, 118, 146, 0.16);
}

.database-toolbar span {
  color: #6c8293;
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.database-scroll {
  overflow-x: auto;
}

.database-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #526f82;
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.database-table th,
.database-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(82, 118, 146, 0.14);
  text-align: left;
  white-space: nowrap;
}

.database-table th {
  color: #12304a;
  background: rgba(82, 118, 146, 0.08);
}

.database-table tr:nth-child(even) td {
  background: rgba(82, 118, 146, 0.04);
}

.sale-scroll-note {
  margin-top: 28px;
  padding: 22px;
}

.sale-list-stack {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.sale-row {
  display: grid;
  grid-template-columns: 90px 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
}

.sale-row span,
.sale-row strong {
  font-family: "Courier New", monospace;
}

.sale-row span {
  color: #5e8aa8;
  font-size: 0.78rem;
}

.sale-row strong {
  color: #12304a;
  font-size: 0.9rem;
}

.sale-row p {
  margin: 0;
  color: #526f82;
  font-size: 0.86rem;
}

.sale-row.is-player-row {
  border-color: rgba(82, 118, 146, 0.2);
  background: rgba(255, 255, 255, 0.94);
}

.sale-row.is-player-row span,
.sale-row.is-player-row strong,
.sale-row.is-player-row p,
.sale-row.is-player-row b,
.sale-row.is-player-row em {
  color: inherit;
}

.sale-row.is-player-row b,
.sale-row.is-player-row em {
  font-style: normal;
  font-weight: 700;
}

.player-sale-record {
  margin-top: 42px;
  padding: 28px;
  border-color: rgba(194, 92, 111, 0.42);
  background: linear-gradient(145deg, #fff5f7, #ffffff);
}

.player-sale-record h2 {
  margin: 0 0 22px;
  color: #7b2433;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 500;
}

.player-sale-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(194, 92, 111, 0.2);
  border-radius: 12px;
  background: rgba(194, 92, 111, 0.16);
}

.player-sale-record dl div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
}

.player-sale-record dt {
  color: #8c3545;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.player-sale-record dd {
  margin: 8px 0 0;
  color: #12304a;
  font-size: 0.98rem;
}

.player-sale-record .sale-final-note {
  margin: 22px 0 0;
  color: #7b2433;
  font-weight: 600;
  line-height: 1.8;
}

.sale-final-note {
  margin-top: 18px;
  padding: 18px 22px;
  border-color: rgba(194, 33, 62, 0.28);
  background: rgba(255, 243, 245, 0.96);
}

.sale-final-note p {
  margin: 0;
  color: #9d1430;
  font-weight: 700;
  line-height: 1.8;
}

.legacy-page .sale-final-note {
  border-color: rgba(194, 33, 62, 0.28);
  background: rgba(255, 243, 245, 0.96);
}

.end-page {
  color: #fff;
  background: #000;
}

.end-main {
  min-height: 100vh;
  background: #000;
}

.end-opening {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
  animation: endBackgroundFade 12.5s ease forwards;
}

.end-data-title {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 1;
  display: grid;
  gap: 0.28rem;
  padding: 0 0 0.82rem;
  border-bottom: 1px solid rgba(13, 42, 62, 0.22);
  color: rgba(9, 33, 50, 0.82);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 3.8vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-shadow: 0 18px 45px rgba(13, 42, 62, 0.16);
  animation: endTitleFade 11s ease forwards;
}

.end-data-title::before {
  content: "EXPORT ARCHIVE / SOLD RECORDS";
  color: rgba(33, 65, 88, 0.54);
  font-family: "Courier New", monospace;
  font-size: clamp(0.54rem, 1vw, 0.72rem);
  letter-spacing: 0.34em;
}

.end-data-stream {
  position: absolute;
  inset: auto 0 -38vh;
  display: grid;
  gap: 8px;
  padding: 24px;
  color: rgba(20, 44, 62, 0.72);
  font-family: "Courier New", monospace;
  font-size: clamp(0.66rem, 0.95vw, 0.84rem);
  line-height: 1.55;
  transform: translateZ(0);
  will-change: opacity, transform;
  animation: endDataRise 12.5s linear forwards;
}

.end-data-stream p {
  position: relative;
  margin: 0;
  white-space: nowrap;
  opacity: 0;
  will-change: opacity, clip-path;
  animation: endRowAppend var(--row-duration, 2.4s) cubic-bezier(0.22, 1, 0.36, 1) var(--row-delay, 0s) forwards;
}

.end-data-stream p:nth-child(2n) {
  --row-delay: 0.16s;
}

.end-data-stream p:nth-child(3n) {
  --row-delay: 0.32s;
}

.end-data-stream p:nth-child(5n) {
  --row-delay: 0.48s;
}

.end-data-stream .end-player-stream-row {
  color: rgba(176, 20, 44, 0.9);
  font-weight: 700;
  text-shadow: 0 0 18px rgba(176, 20, 44, 0.18);
}

.end-data-stream p::after {
  content: "";
  display: inline-block;
  width: 0.65em;
  height: 1em;
  margin-left: 0.25em;
  vertical-align: -0.12em;
  background: currentColor;
  opacity: 0;
  animation: endCursorTyping var(--row-duration, 2.4s) ease-in-out var(--row-delay, 0s) forwards;
}

.end-message {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  width: min(620px, calc(100% - 48px));
  opacity: 0;
  color: #fff;
  text-align: center;
  transform: translateZ(0);
  will-change: opacity, transform;
  animation: endMessageIn 4.2s cubic-bezier(0.22, 1, 0.36, 1) 10.6s forwards;
}

.end-message p {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "YuMincho", "MS PMincho", serif;
  font-size: clamp(1.2rem, 2vw, 1.56rem);
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.end-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  opacity: 0;
  transform: translateX(-50%);
  animation: endScrollCueIn 2.2s ease 13.4s forwards, endScrollCuePulse 1.8s ease-in-out 15.6s infinite;
}

.end-scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  margin: 8px auto 0;
  background: currentColor;
}

.end-credit {
  display: grid;
  place-items: center;
  min-height: 300vh;
  padding: 120vh 24px 36vh;
  color: #f4f4f4;
  text-align: center;
  background: #000;
}

.end-mark {
  margin: 0 0 54px;
  font-family: "Courier New", monospace;
  font-size: clamp(1.2rem, 3.8vw, 3rem);
  letter-spacing: 0.18em;
}

.end-notes {
  display: grid;
  gap: 0.82rem;
  max-width: 920px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.78rem, 1.05vw, 0.9rem);
  line-height: 1.9;
  text-align: left;
}

.end-notes p {
  margin: 0;
}

.end-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
}

.end-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 38px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.end-replay:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.06);
}

.end-footer {
  color: rgba(255, 255, 255, 0.7);
  background: #000;
}

.end-footer .fiction-note {
  width: 100%;
  text-align: center;
}

.end-page-count,
.end-archive-toggle {
  color: rgba(255, 255, 255, 0.76);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.45);
}

@keyframes endBackgroundFade {
  0% { background: #fff; }
  48% { background: #f7f8f9; }
  100% { background: #000; }
}

@keyframes endDataRise {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  58% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translate3d(0, -178vh, 0);
  }
}

@keyframes endTitleFade {
  0%, 58% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes endScrollCueIn {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes endScrollCuePulse {
  0%, 100% {
    opacity: 0.48;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, 6px);
  }
}

@keyframes endRowAppend {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes endCursorTyping {
  0%, 100% { opacity: 0; }
  18%, 68% { opacity: 0.68; }
}

@keyframes endMessageIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.985);
  }
  42% {
    opacity: 0.64;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.legacy-page .memo-panel {
  color: #16344c;
  border-color: rgba(82, 118, 146, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(42, 73, 95, 0.12);
}

.legacy-page .memo-label,
.legacy-page .memo-kicker {
  color: #5e8aa8;
}

.legacy-page .memo-panel h2,
.legacy-page .memo-table th,
.legacy-page .export-log-table td strong {
  color: #12304a;
}

.legacy-page .memo-table {
  color: #526f82;
}

.legacy-page .memo-table th,
.legacy-page .memo-table td {
  border-color: rgba(82, 118, 146, 0.16);
}

.legacy-page .memo-table th {
  background: rgba(224, 238, 247, 0.72);
}

.legacy-page .export-log-table td span {
  color: #6f8798;
}

.legacy-page .memo-warning {
  color: #7b2433;
  border-color: rgba(194, 92, 111, 0.28);
  background: #fff5f7;
}

.secure-search-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(30, 48, 62, 0.34);
  backdrop-filter: blur(9px);
}

.secure-search-modal[hidden] {
  display: none;
}

.secure-search-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 36px;
  border: 1px solid rgba(116, 148, 168, 0.38);
  border-radius: 6px;
  color: #536b7c;
  background: rgba(250, 253, 255, 0.94);
  box-shadow: 0 34px 80px rgba(29, 51, 66, 0.22);
}

.secure-search-dialog h2 {
  margin: 0;
  color: #2f485a;
  font-size: 1.7rem;
  font-weight: 500;
}

.secure-result-card {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(116, 148, 168, 0.34);
  border-radius: 6px;
  color: #334c5f;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 244, 249, 0.74));
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.secure-result-card:hover {
  border-color: rgba(83, 111, 128, 0.56);
  box-shadow: 0 14px 30px rgba(47, 72, 90, 0.12);
  transform: translateY(-2px);
}

.secure-result-card span,
.secure-result-card small {
  color: #78909f;
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.secure-result-card strong {
  font-size: 1.1rem;
  font-weight: 500;
}

.secure-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #5c7384;
  background: rgba(92, 115, 132, 0.09);
  cursor: pointer;
}

.secure-footer {
  margin-top: 70px;
  border-top-color: rgba(104, 135, 154, 0.22);
  background: rgba(247, 251, 254, 0.72);
}

.first-guide {
  max-width: 1160px;
  margin: 20px auto 80px;
  padding: 26px 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #fff0f4, #fff8fb);
}

.guide-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  font-size: 2.4rem;
}

.first-guide h2 {
  margin: 0 0 0.2rem;
  color: var(--pink);
  letter-spacing: 0.08em;
}

.first-guide p {
  margin: 0;
}

.first-guide .button {
  min-width: 170px;
  padding: 0 22px;
}

.page-hero {
  min-height: 330px;
  display: grid;
  place-items: center;
  padding: 86px 28px 62px;
  text-align: center;
  background:
    radial-gradient(circle at 24% 18%, rgba(241, 154, 170, 0.18), transparent 28%),
    linear-gradient(135deg, #fff8fb, #f5fbff);
}

.page-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.page-hero p:last-child {
  margin: 1rem auto 0;
  max-width: 620px;
  color: var(--muted);
}

.product-line {
  max-width: 1180px;
  margin: 0 auto;
  padding: 78px 28px;
}

.product-line + .product-line {
  border-top: 1px solid rgba(244, 215, 221, 0.7);
}

.line-intro {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  margin-bottom: 34px;
}

.line-intro.reverse {
  grid-template-columns: 1fr minmax(260px, 420px);
}

.line-intro.reverse img {
  order: 2;
}

.line-intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.line-kana {
  margin: 0 0 0.5rem;
  color: var(--pink-deep);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
}

.line-intro h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.line-intro p:last-child {
  max-width: 560px;
  color: var(--muted);
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.color-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 215, 221, 0.86);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(204, 156, 168, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.color-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.ranked-color-card::before {
  content: "♕ " attr(data-rank);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #fff;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #f3bfd0, #d9c1f0);
  box-shadow: 0 10px 24px rgba(136, 94, 125, 0.22);
}

.ranked-color-card::after {
  content: "売れ筋";
  position: absolute;
  top: 48px;
  left: 16px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 8px rgba(89, 62, 74, 0.36);
}

.color-card > img,
.coded-lens img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.color-card > div:not(.coded-lens) {
  padding: 18px 18px 22px;
}

.color-card h3 {
  min-height: 2.4em;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.color-card p {
  margin: 0.25rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-image-wrap {
  position: relative;
  min-height: 420px;
}

.modal-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.modal-hidden-code {
  position: absolute;
  color: rgba(64, 54, 70, 0.34);
  font-family: "Times New Roman", serif;
  font-size: clamp(13px, 1.7vw, 20px);
  line-height: 1;
  mix-blend-mode: multiply;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.modal-hidden-code[data-code="8"] {
  left: 34%;
  top: 62%;
  transform: rotate(-18deg);
}

.modal-hidden-code[data-code="7"] {
  right: 30%;
  top: 40%;
  transform: rotate(9deg);
}

.modal-hidden-code[data-code="4"] {
  left: 42%;
  top: 30%;
  color: rgba(64, 54, 70, 0.48);
  transform: rotate(-7deg);
}

.modal-hidden-code[data-code="1"] {
  left: 58%;
  top: 44%;
  transform: rotate(14deg);
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(88, 66, 72, 0.34);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  gap: 0;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(70, 46, 54, 0.24);
}

.modal-content {
  padding: 42px;
}

.modal-product {
  margin: 0 0 0.3rem;
  color: var(--pink-deep);
  letter-spacing: 0.14em;
}

.modal-content h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
}

.modal-content dl {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.modal-content dl div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.modal-content dt {
  color: var(--muted);
}

.modal-content dd {
  margin: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--pink-deep);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .hero {
    min-height: 720px;
    align-items: end;
    padding: 120px 22px 54px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.32) 45%, rgba(255,255,255,0.9) 100%);
  }

  .hero-content {
    max-width: 100%;
    margin: 0;
  }

  .product-grid,
  .steps,
  .review-grid,
  .review-summary,
  .photo-review-grid,
  .review-list,
  .guide-flow,
  .guide-info-card,
  .guide-two-column,
  .diagnosis-layout,
  .result-card,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .faq-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .message-hero,
  .message-section,
  .message-value-grid,
  .company-layout,
  .company-value-grid,
  .company-links,
  .legal-layout,
  .partner-card-grid,
  .partner-process-list,
  .partner-code-card,
  .partner-shell-header,
  .secure-hero,
  .secure-card-grid,
  .secure-document-meta,
  .secure-doc-section,
  .secure-metric-grid,
  .secure-case-list,
  .research-board,
  .memo-header,
  .memo-grid,
  .export-visual-grid,
  .recipient-grid,
  .contract-status-grid,
  .legacy-header,
  .legacy-record-header,
  .legacy-grid,
  .legacy-timeline article,
  .api-flow,
  .api-spec-grid,
  .value-compare-grid,
  .value-route,
  .irreversible-contrast,
  .leak-steps,
  .provision-metrics,
  .player-sale-record dl {
    grid-template-columns: 1fr;
  }

  .legacy-header {
    padding: 14px 18px 16px;
  }

  .legal-side {
    position: static;
  }

  .legacy-record-header dl {
    grid-column: 1;
    grid-row: auto;
  }

  .export-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .export-flow div:not(:last-child)::after {
    display: none;
  }

  .partner-shell-header {
    gap: 14px;
    padding: 12px 18px 16px;
  }

  .secure-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px;
  }

  .secure-search {
    width: 100%;
  }

  .secure-hero {
    align-items: start;
    padding-top: 64px;
  }

  .secure-log-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .secure-doc-section h2,
  .secure-doc-section > p:not(.secure-doc-index),
  .secure-doc-section > table,
  .secure-doc-section > div:not(.secure-doc-index) {
    grid-column: 1;
  }

  .spec-page .secure-doc-section {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .memo-header dl {
    grid-column: 1;
    grid-row: auto;
  }

  .memo-panel-main,
  .memo-panel-note {
    grid-column: 1;
  }

  .company-hero {
    min-height: 620px;
    align-items: end;
    padding: 120px 22px 54px;
  }

  .company-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.9));
  }

  .partner-hero {
    min-height: 620px;
    align-items: end;
    padding: 120px 22px 54px;
  }

  .partner-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.9));
  }

  .first-guide {
    grid-template-columns: 1fr;
    text-align: center;
    margin-inline: 18px;
  }

  .guide-icon {
    margin: 0 auto;
  }

  .line-intro,
  .line-intro.reverse {
    grid-template-columns: 1fr;
  }

  .line-intro.reverse img {
    order: 0;
  }

  .color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-card {
    grid-template-columns: 1fr;
  }

  .guide-cta {
    margin-inline: 18px;
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .diagnosis-hero {
    min-height: 680px;
    align-items: end;
    padding: 120px 22px 54px;
  }

  .diagnosis-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.88));
  }

  .diagnosis-hero-panel {
    margin: 0;
  }

  .diagnosis-preview {
    position: static;
  }

  .result-hero {
    min-height: 620px;
    align-items: end;
    padding: 120px 22px 54px;
  }

  .result-hero::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.9));
  }

  .result-hero-panel {
    margin: 0;
  }

  .result-next {
    margin-inline: 18px;
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .cart-summary {
    position: static;
  }

  .contact-card {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }

  .message-side-card {
    position: static;
  }

  .modal-image-wrap,
  .modal-image-wrap img {
    min-height: 0;
    max-height: 45vh;
  }
}

@media (max-width: 560px) {
  .hero,
  .company-hero,
  .partner-hero,
  .diagnosis-hero,
  .result-hero {
    min-height: min(720px, 92vh);
  }

  .hero-copy h1,
  .company-hero h1,
  .partner-hero h1,
  .diagnosis-hero h1,
  .result-hero h1,
  .memo-header h1,
  .legacy-record-header h1,
  .secure-document-header h1 {
    font-size: clamp(1.7rem, 10vw, 2.8rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .memo-document,
  .legacy-document,
  .secure-document {
    width: min(100%, calc(100vw - 20px));
    padding-inline: 12px;
  }

  .memo-header,
  .legacy-record-header,
  .secure-document-header,
  .memo-panel,
  .secure-doc-section,
  .legacy-timeline article,
  .recipient-card,
  .contract-status-card,
  .value-card {
    border-radius: 6px;
  }

  .memo-image-panel {
    margin-top: 18px;
    padding: 8px;
  }

  .memo-image-panel img {
    max-height: 250px;
  }

  .memo-image-panel figcaption {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    overflow-wrap: anywhere;
  }

  .memo-table,
  .secure-table,
  .secure-field-table,
  .export-log-table {
    table-layout: fixed;
  }

  .memo-table strong,
  .memo-table span,
  .sale-row p,
  .database-row,
  .secure-result-card,
  .export-log-table td,
  .player-sale-record dd {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .secure-search-dialog {
    width: min(100%, calc(100vw - 28px));
    padding: 28px 20px;
  }

  .secure-result-card {
    padding: 16px;
  }

  .secure-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .secure-search {
    min-width: 0;
  }

  .secure-search form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .color-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 28px 22px;
  }

  .diagnosis-form fieldset {
    grid-template-columns: 1fr;
    padding: 18px 14px;
  }

  .camera-permission-actions {
    flex-direction: column;
  }

  .camera-permission-actions .button {
    width: 100%;
  }

  .camera-permission-note {
    text-align: center;
  }

  .scan-stage {
    padding: 14px;
  }

  .scan-modal {
    border-radius: 20px;
    padding: 14px;
  }

  .scan-card {
    border-radius: 16px;
  }

  .cart-item {
    grid-template-columns: 82px 1fr;
  }

  .cart-item img {
    width: 82px;
  }

  .cart-item-side {
    grid-column: 2;
    justify-items: start;
  }

  .faq-guide-grid {
    grid-template-columns: 1fr;
  }

  .company-profile-card dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .faq-page .secure-document-header {
    padding: 26px;
  }

  .faq-page .secure-faq-list article {
    padding-left: 56px;
  }

  .faq-page .secure-faq-list article::before {
    left: 14px;
  }

  .secure-table th,
  .secure-table td,
  .secure-field-table th,
  .secure-field-table td,
  .memo-table th,
  .memo-table td {
    display: block;
    width: 100%;
  }

  .memo-log li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .database-toolbar,
  .sale-row {
    grid-template-columns: 1fr;
  }

  .database-toolbar {
    display: grid;
  }

  .sale-list-stack {
    gap: 10px;
  }

  .sale-row {
    gap: 8px;
    padding: 16px;
  }

  .end-message {
    width: min(100%, calc(100vw - 36px));
  }

  .end-message p {
    font-size: clamp(1rem, 5.2vw, 1.34rem);
  }

  .end-data-title {
    top: 22px;
    left: 18px;
    font-size: clamp(1.28rem, 8vw, 2.1rem);
  }

  .end-data-stream {
    padding-inline: 14px;
    font-size: 0.62rem;
  }

  .end-notes {
    max-width: calc(100vw - 36px);
  }

  .provision-bars div {
    grid-template-columns: 1fr;
  }
}
