@import url("/css/footer.css");
:root { --page: #faf7f2; --surface: #fff; --ink: #1c2b44; --muted: #526275; --primary: #a13b64; --line: #dedbd6; --chart: #345079; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--page); font: 1rem/1.65 system-ui, "Noto Sans", sans-serif; }
header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 16px max(16px, calc((100% - 1120px) / 2)); background: var(--surface); }
header img { width: 172px; height: auto; }
nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
nav a { color: var(--primary); padding: 6px 2px; }
nav [aria-current] { font-weight: 700; }
main { width: min(calc(100% - 52px), 1120px); margin: 32px auto; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 32px; }
.intro { padding-block: 20px; }
.brand { color: var(--primary); font-weight: 700; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 29px); margin-top: 0; }
h3 { font-size: 17px; margin-top: 0; }
section { margin-bottom: 24px; padding: clamp(16px, 4vw, 32px); background: var(--surface); border-radius: 18px; }
form { display: grid; gap: 12px; }
input:not([type=checkbox]), select, button { display: block; width: 100%; min-height: 44px; font: inherit; padding: 6px 12px; border-radius: 8px; }
input:not([type=checkbox]), select { border: 1px solid var(--muted); background: var(--surface); color: var(--ink); }
button { background: var(--primary); color: #fff; border: 0; cursor: pointer; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.advice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
details, article { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
details label { display: block; margin-top: 12px; }
summary { cursor: pointer; font-weight: 650; }
.summary { background: #fae8ef; color: #862e53; padding: 12px; border-radius: 12px; margin-bottom: 12px; }
.chart, .calendar { list-style: none; padding: 0; display: grid; font-variant-numeric: tabular-nums; }
.chart { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; text-align: center; }
.chart meter { display: block; width: 100%; accent-color: var(--chart); }
.calendar { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendar li { border-radius: 8px; padding-block: 8px; }
.good { color: #862e53; background: #fae8ef; }
.caution { color: #15595b; background: #d3eeef; }
.notice { font-size: .875rem; color: var(--muted); }
.tagline { font-size: 1.25rem; font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
:lang(ko) { word-break: keep-all; }
@media (max-width: 760px) {
  main { width: calc(100% - 32px); margin-top: 16px; }
  .hero, .cards, .advice { grid-template-columns: 1fr; gap: 12px; }
  nav { display: grid; grid-template-columns: repeat(3, max-content); }
}

/* 2026-11-27 supplied desktop/mobile artwork and layout.
   All multilingual copy and functional controls remain HTML, not rasterized. */
:root {
  --page:#fff8f3; --ink:#282526; --muted:#6e6064;
  --primary:#b50860; --line:#ead5dc; --surface:#fff;
}
body {
  background: radial-gradient(ellipse at 0 0,#ffe7ef 0,transparent 48%),
              radial-gradient(ellipse at 100% 0,#fff0df 0,transparent 49%),
              linear-gradient(130deg,#fff5f4 0,#fffaf4 60%,#fff1f4 100%);
  font-family:system-ui,-apple-system,"Segoe UI","Noto Sans","Malgun Gothic","Meiryo",sans-serif;
}
#page-top {
  background:transparent;
  padding:14px max(20px,calc((100% - 1120px)/2));
  gap:12px 20px;
}
#page-top img {width:158px}
#page-top nav {display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:4px 9px}
#page-top nav a {border-radius:999px; padding:5px 10px; text-decoration:none; font-size:.875rem; color:#59494f}
#page-top nav a[aria-current] {color:var(--primary); background:#fff; box-shadow:0 2px 9px #6d354012; border:1px solid var(--line)}
main {width:min(calc(100% - 64px),1120px); margin:24px auto 32px; overflow-wrap:anywhere}
.hero {grid-template-columns:minmax(0,1.04fr) minmax(0,1fr); gap:clamp(32px,5.5vw,72px); align-items:start; margin-bottom:0}
.hero > * {min-width:0}
.intro {padding:0 0 0 12px; display:flex; flex-direction:column; align-items:flex-start}
.intro .brand {display:inline-flex; align-items:center; max-width:100%; margin:0 0 20px; border:1px solid #e7cdd7; border-radius:999px; color:var(--primary); background:#fff; padding:9px 30px; font-weight:750; box-shadow:0 5px 18px #824b3410}
.hero-heading {margin:0 0 17px; font-size:clamp(35px,4.6vw,60px); letter-spacing:-.065em; font-weight:750; line-height:1.13; color:#282526}
.hero-heading-first,.hero-heading-second {display:block}
.hero-heading-second strong {font-size:1.16em; color:#ad0061; font-weight:850}
html[lang="en"] .hero-heading {font-size:clamp(35px,4.3vw,56px); letter-spacing:-.045em}
html[lang="ja"] .hero-heading,html[lang^="zh"] .hero-heading {letter-spacing:-.045em}
.hero-description {margin:0 0 13px; font-size:clamp(16px,1.7vw,19px); line-height:1.55; color:#625c5e}
.hero-topics,.hero-benefits {list-style:none; padding:0; display:flex; flex-wrap:wrap; align-items:center}
.hero-topics {gap:7px; margin:0 0 12px}
.hero-topics li {padding:8px 23px; border-radius:999px; border:1px solid #e7cdd7; background:#fff; color:var(--primary); font-weight:750; box-shadow:0 4px 14px #824b340d; text-align:center}
.hero-benefits {gap:5px 17px; margin:0; font-size:clamp(13px,1.5vw,16px); color:#686064; line-height:1.5}
.hero-benefits li {display:flex; align-items:baseline; gap:7px}
.hero-benefits li::before {content:""; width:6px; height:6px; border-radius:50%; background:var(--primary); flex:none}
.hero-art {position:relative; width:100%; aspect-ratio:464/341; margin:clamp(12px,3vw,34px) 0 0; background-color:transparent; background-image:url("hero-couple.png"); background-position:center bottom; background-repeat:no-repeat; background-size:contain}
.hero-art-label {position:absolute; left:0; bottom:8%; display:inline-flex; align-items:center; gap:6px; max-width:94%; padding:8px 16px; border:1px solid #e7cdd7; border-radius:999px; background:#fff; color:var(--primary); font-size:clamp(13px,1.7vw,17px); font-weight:750; text-decoration:none; box-shadow:0 4px 16px #824b3410}
.input-card {border:1px solid #e5cbd6; border-radius:clamp(24px,4vw,48px); padding:clamp(24px,4vw,43px); box-shadow:0 7px 28px #784a4010; margin:0; background:#fff}
.input-card h2 {font-size:clamp(23px,2.6vw,29px); color:#282526; letter-spacing:-.05em; margin:0 0 17px; line-height:1.3}
#personal-form {gap:15px}
#personal-form > label,#personal-form .date-pair label,#personal-form legend {font-weight:650; color:#3c3337; font-size:.96rem}
#personal-form input:not([type="radio"]):not([type="checkbox"]),#personal-form select {border:1px solid #edd6de; border-radius:15px; min-height:54px; padding:10px 15px; margin-top:6px; background-color:#fff; font-weight:400; color:#3d3438}
#personal-form input::placeholder {color:#9f8b94; opacity:1}
#personal-form select {appearance:none; padding-inline-end:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23b50860' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-position:right 13px center; background-repeat:no-repeat}
.segmented-field {padding:0; margin:0; border:0; min-inline-size:0}
.segmented-field legend {padding:0; margin-bottom:6px}
.segmented {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3px; padding:4px; border-radius:16px; background:#f7ecef}
.segmented-gender {grid-template-columns:repeat(3,minmax(0,1fr))}
.segmented label {position:relative; display:block; min-width:0; cursor:pointer}
.segmented input[type="radio"] {position:absolute; width:1px; height:1px; min-height:0; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); white-space:nowrap; border:0}
.segmented label span {display:flex; min-height:46px; align-items:center; justify-content:center; border-radius:12px; padding:8px 5px; text-align:center; color:#76656c; line-height:1.25; font-size:.88rem; font-weight:650; overflow-wrap:anywhere}
.segmented input:checked + span {background:#fff; color:var(--primary); box-shadow:0 3px 10px #a8185720}
.segmented input:focus-visible + span {outline:2px solid var(--primary); outline-offset:2px}
#birth-date-help {margin:-5px 0 0; font-size:.83rem; line-height:1.45; color:#76636d}
.leap-option {font-size:.9rem; display:flex; align-items:center; gap:8px}
.leap-option input {accent-color:var(--primary); width:18px; height:18px}
.date-pair {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; min-width:0}
.date-pair label {min-width:0}
#personal-form details {border:1px solid #ead4dd; border-radius:15px; padding:15px 17px; margin:0; background:#fff}
#personal-form details summary {list-style:none; display:flex; justify-content:space-between; gap:12px; align-items:center}
#personal-form details summary::-webkit-details-marker {display:none}
#personal-form details summary::after {content:""; width:9px; height:9px; border-right:2px solid var(--primary); border-bottom:2px solid var(--primary); transform:rotate(45deg); flex:none; margin:0 2px 4px}
#personal-form details[open] summary::after {transform:rotate(225deg); margin-bottom:-4px}
.personal-submit {min-height:58px; margin-top:5px; border-radius:16px; background:linear-gradient(105deg,#b20c56,#d74479); color:white; font-weight:800; font-size:clamp(16px,2vw,20px); line-height:1.3; box-shadow:0 3px 8px #b5086012; padding:12px}
.personal-submit:hover {background:linear-gradient(105deg,#9e064b,#c33468)}
.form-free-note {margin:-7px 0 0; text-align:center; font-size:.87rem; color:#79666d}
.service-note {border:1px solid #e5cbd6; border-radius:clamp(19px,3vw,32px); background:#fff; padding:clamp(20px,3vw,28px) clamp(22px,4vw,36px); margin:0; box-shadow:0 5px 18px #784a400c}
.service-note p {margin:0; font-size:clamp(14px,1.45vw,17px); color:#5d5559; line-height:1.55; padding-left:10px; position:relative}
.service-note p::before {content:"-"; position:absolute; left:0}
.service-note p+p {margin-top:4px}
main > section {border:1px solid #ead5dc; box-shadow:0 5px 18px #784a400c}
@media (max-width: 760px) {
  #page-top {padding:12px 16px; justify-content:center}
  #page-top img {width:140px}
  #page-top nav {justify-content:center; gap:2px}
  #page-top nav a {padding:5px 7px; font-size:.78rem}
  main {width:calc(100% - 24px); margin:16px auto 24px}
  .hero {grid-template-columns:minmax(0,1fr); gap:0}
  .intro {padding:0 12px; align-items:flex-start}
  .intro .brand {margin:0 0 18px; padding:8px 23px}
  .hero-heading {font-size:clamp(32px,9.9vw,49px); letter-spacing:-.06em; margin-bottom:20px}
  html[lang="en"] .hero-heading {font-size:clamp(32px,9vw,44px)}
  .hero-description {font-size:clamp(15px,4.1vw,18px); margin-bottom:20px}
  .hero-topics {gap:5px; margin-bottom:9px}
  .hero-topics li {padding:7px 17px; font-size:clamp(12px,3.4vw,16px)}
  .hero-benefits {gap:3px 12px; font-size:clamp(12px,3.1vw,15px)}
  .hero-art {margin:10px auto -8px; width:min(100%,500px)}
  .hero-art-label {bottom:9%; left:0; font-size:clamp(13px,3.7vw,16px)}
  .input-card {position:relative; padding:28px clamp(16px,5vw,28px); border-radius:30px; margin:0}
  .input-card h2 {margin-bottom:16px}
  #personal-form {gap:13px}
  #personal-form input:not([type="radio"]):not([type="checkbox"]),#personal-form select {min-height:51px}
  .segmented label span {min-height:44px; font-size:.84rem}
  .service-note {margin:0; padding:22px 19px; border-radius:25px}
}
@media (max-width: 360px) {
  #page-top {padding-inline:10px}
  .intro {padding-inline:6px}
  .hero-topics li {padding-inline:12px}
  .hero-heading {font-size:31px}
  .date-pair {gap:8px}
  .input-card {padding-inline:16px}
  .segmented label span {font-size:.78rem}
}

/* Keep the live localized label independent of the transparent artwork. */
.hero-art-label { top:73.4%; bottom:auto; min-width:40%; min-height:16%; justify-content:center; padding:6px 12px; }


/* Result screen: supplied 2026-11-27 reference; all values come from the existing engine. */
#personal-results { margin-top:18px; }
.result-card { min-width:0; margin:0 0 18px; border-radius:clamp(20px,3vw,30px); padding:clamp(22px,3.4vw,38px); }
.result-card h2 { font-size:clamp(22px,2.6vw,30px); line-height:1.28; margin:0 0 16px; letter-spacing:-.045em; color:#282526; font-weight:800; }
.result-description { margin:0 0 16px; color:#51494d; line-height:1.65; font-size:clamp(14px,1.45vw,17px); }
.current-fortune { display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,2fr); align-items:center; gap:18px 26px; padding:18px 22px; margin-bottom:18px; background:linear-gradient(110deg,#fcebf1,#fff2e2); border-radius:18px; }
.current-rating { min-width:0; color:#b50860; }
.current-rating h3 { margin:0 0 7px; font-size:1rem; font-weight:750; }
.rating-line { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; }
.rating-hearts { display:inline-flex; gap:8px; font-size:clamp(20px,2.1vw,27px); line-height:1; }
.heart-filled { color:#bf145c; }
.heart-empty { color:#e9a6bd; }
.rating-badge { display:inline-flex; padding:4px 12px; border-radius:999px; color:#fff; background:linear-gradient(105deg,#b20c56,#d74479); font-size:.79rem; font-weight:700; line-height:1.3; max-width:100%; }
.current-description { margin:0; color:#53494e; font-size:clamp(14px,1.4vw,16px); line-height:1.6; }
.basic-details { gap:10px 12px; }
.basic-details details { border:1px solid #efd9e1; border-radius:12px; padding:0; background:#fff; }
.basic-details summary { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; padding:12px 16px; list-style:none; font-size:.96rem; color:#332c30; }
.basic-details summary::-webkit-details-marker { display:none; }
.basic-details summary::after { content:""; width:8px; height:8px; border-right:2px solid #b50860; border-bottom:2px solid #b50860; transform:rotate(45deg); flex:none; margin:0 2px 4px; }
.basic-details details[open] summary::after { transform:rotate(225deg); margin-bottom:-4px; }
.basic-details details p { margin:0; padding:0 16px 15px; color:#51494d; line-height:1.65; }
.annual-chart { --bar-height:clamp(110px,15vw,166px); gap:7px; align-items:end; margin:32px 0 0; }
.annual-chart li { min-width:0; display:flex; flex-direction:column; align-items:center; gap:9px; position:relative; }
.bar-track { width:100%; height:calc(var(--bar-height) + 21px); display:flex; align-items:flex-end; justify-content:center; }
.bar-column { position:relative; height:calc(var(--bar-height) * var(--level) / 5); width:clamp(12px,4vw,45px); max-width:82%; }
.bar-fill { display:block; width:100%; height:100%; border-radius:9px 9px 5px 5px; background:#f8dce4; }
.level-2 .bar-fill { background:#f5c5d4; }
.level-3 .bar-fill { background:#f1abc1; }
.level-4 .bar-fill { background:#eb89a8; }
.level-5 .bar-fill { background:linear-gradient(180deg,#e64c80,#b30c58); }
.bar-value { position:absolute; top:-22px; inset-inline:0; text-align:center; font-size:.79rem; color:#78666e; font-weight:700; line-height:20px; }
.chart-meter { position:absolute; width:1px!important; height:1px; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); clip-path:inset(50%); }
.month-number { text-decoration:none; font-size:.8rem; font-weight:700; color:#75656c; display:block; width:100%; max-width:70px; min-height:26px; padding:3px 0; text-align:center; border-radius:999px; line-height:20px; }
.selected-month .month-number { background:#b51059; color:#fff; }
.calendar-weekdays,.result-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; text-align:center; }
.calendar-weekdays { font-size:.79rem; font-weight:650; color:#79656c; margin:22px 0 8px; }
.result-calendar { margin:0; }
.result-calendar li { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:2px; border:1px solid #f0dce3; border-radius:12px; padding:5px 2px; min-height:clamp(45px,6.1vw,64px); color:#59494f; font-size:.9rem; line-height:1.25; background:#fff; }
.result-calendar .calendar-blank { background:transparent; border-color:transparent; }
.result-calendar .good,.calendar-legend .good { color:#ad125b; background:linear-gradient(130deg,#ffe2eb,#facddd); border-color:transparent; }
.result-calendar .caution,.calendar-legend .caution { color:#9b5c16; background:#fff0d9; border-color:transparent; }
.result-calendar .good .calendar-date,.result-calendar .caution .calendar-date { font-weight:750; }
.calendar-icon { font-size:.76rem; line-height:1; }
.calendar-legend { margin-top:17px; display:grid; gap:7px; }
.calendar-legend p { display:flex; gap:8px; align-items:center; margin:0; color:#6e6064; font-size:.87rem; }
.legend-icon { width:24px; height:24px; flex:0 0 24px; display:inline-flex; align-items:center; justify-content:center; border-radius:7px; font-size:.95rem; }
.partner-card { display:grid; grid-template-columns:minmax(0,1.04fr) minmax(0,1fr); gap:clamp(20px,4vw,48px); align-items:start; }
.partner-card > * { min-width:0; }
.partner-intro h2 { margin-bottom:14px; }
.partner-intro .notice { font-size:.9rem; line-height:1.6; color:#51494d; margin:0 0 20px; }
.partner-art { width:min(100%,340px); margin-top:32px; padding:0 12px 10px 0; }
.partner-art img { display:block; width:100%; height:auto; aspect-ratio:207/127; object-fit:cover; border-radius:20px; box-shadow:12px 10px 0 #fbd9ce; }
#partner-form { gap:14px; }
#partner-form > label,#partner-form legend { font-weight:650; color:#3c3337; font-size:.96rem; }
#partner-form input[type="text"] { border:1px solid #edd6de; border-radius:15px; min-height:54px; padding:10px 15px; margin-top:6px; background:#fff; font-weight:400; color:#3d3438; }
#partner-form input::placeholder { color:#9f8b94; opacity:1; }
.partner-submit { min-height:54px; font-size:clamp(15px,1.75vw,19px); margin-top:0; }
.clear-results { display:block; margin:18px 0 0; text-align:center; color:#b50860; text-decoration:none; font-size:.9rem; }
.clear-results:hover { text-decoration:underline; }
.result-footnote { padding:0 clamp(12px,3vw,36px); margin:10px 0 0; }
.result-footnote p { margin:2px 0; font-size:.85rem; line-height:1.5; color:#79686e; }
@media (max-width:760px) {
  .result-card { padding:22px 18px; margin-bottom:14px; border-radius:24px; }
  .result-card h2 { margin-bottom:14px; }
  #personal-results { margin-top:14px; }
  .current-fortune { grid-template-columns:minmax(0,1fr); gap:10px; padding:16px; }
  .rating-hearts { gap:6px; }
  .basic-details { gap:8px; }
  .basic-details summary { padding:11px 13px; }
  .annual-chart { gap:3px; --bar-height:110px; margin-top:22px; }
  .bar-column { width:min(100%,28px); max-width:78%; }
  .bar-fill { border-radius:6px 6px 3px 3px; }
  .bar-value,.month-number { font-size:.72rem; }
  .month-number { min-height:24px; padding:2px 0; }
  .calendar-weekdays,.result-calendar { gap:4px; }
  .result-calendar li { min-height:45px; border-radius:9px; font-size:.82rem; }
  .calendar-legend p { font-size:.81rem; }
  .partner-card { grid-template-columns:minmax(0,1fr); gap:20px; }
  .partner-art { margin:16px 0 3px; max-width:280px; }
  #partner-form input[type="text"] { min-height:51px; }
  .partner-submit { min-height:54px; }
}
@media (max-width:360px) {
  .result-card { padding-inline:14px; }
  .calendar-weekdays,.result-calendar { gap:3px; }
  .result-calendar li { min-height:43px; }
  .bar-value,.month-number { font-size:.67rem; }
}

/* English headline: allow the emphasized word to follow the sentence. */
html[lang="en"] .hero-heading {text-wrap:balance}
html[lang="en"] .hero-heading-first,html[lang="en"] .hero-heading-second {display:inline}
html[lang="en"] .hero-heading-first::after {content:" "}
