:root {
  color-scheme: light;
  --navy: #0a3d78;
  --navy-2: #155496;
  --blue: #318df0;
  --blue-light: #72c1ff;
  --sky: #eaf7ff;
  --ivory: #fffdf8;
  --yellow: #ffd96a;
  --muted: #607b99;
  --line: #d7ebfb;
  --shadow: 0 20px 60px rgba(30, 105, 181, .12);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--ivory);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: linear-gradient(180deg, #fffdf8 0, #fff 54%, #effaff 100%); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; width: 100%; height: 82px; align-items: center; padding: 0 clamp(24px, 6vw, 92px); border-bottom: 1px solid rgba(215,235,251,.85); background: rgba(255,253,248,.9); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; }
.brand strong { font-size: 25px; font-weight: 900; letter-spacing: 2px; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: 1px; }
nav { display: flex; gap: clamp(24px, 4vw, 56px); margin-left: auto; }
nav a { position: relative; font-size: 15px; font-weight: 700; }
nav a::after { position: absolute; right: 50%; bottom: -8px; left: 50%; height: 3px; border-radius: 3px; background: var(--yellow); content: ""; transition: .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; left: 0; }
.miniapp-button, .hero-button, .secondary-button { border: 0; border-radius: 999px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.miniapp-button { margin-left: 52px; padding: 15px 25px; background: linear-gradient(135deg, #58acff, #367eea); color: white; box-shadow: 0 10px 25px rgba(49,141,240,.22); }
.miniapp-button:hover, .hero-button:hover, .secondary-button:hover { transform: translateY(-2px); }

.hero { position: relative; min-height: 598px; overflow: hidden; border-bottom: 1px solid #e8f3fb; background: var(--ivory); }
.hero-art { position: absolute; inset: 0 0 0 auto; width: 66%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { position: absolute; inset: 0; background: linear-gradient(90deg, #fffdf8 0%, #fffdf8 31%, rgba(255,253,248,.92) 43%, rgba(255,253,248,0) 69%); content: ""; }
.hero-copy { position: relative; z-index: 2; width: min(650px, 54%); padding: 62px 0 66px clamp(28px, 6vw, 92px); }
.paper-note { display: inline-block; margin: 0 0 24px 18px; padding: 13px 23px; background: rgba(255,255,255,.85); box-shadow: 0 8px 26px rgba(29,100,164,.08); color: var(--navy-2); font-size: 17px; letter-spacing: 4px; transform: rotate(-3deg); }
h1 { max-width: 620px; margin: 0; font-size: clamp(43px, 4.1vw, 70px); font-weight: 950; line-height: 1.18; letter-spacing: -3px; }
h1 span { display: block; margin-top: 7px; color: #1975cf; }
h1 span::after { display: block; width: 72%; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--yellow); opacity: .85; content: ""; }
.hero-description { max-width: 560px; margin: 27px 0 0; color: var(--muted); font-size: 18px; line-height: 1.85; }
.hero-button { margin-top: 30px; padding: 19px 34px; background: linear-gradient(135deg, #55a8ff, #2b7de8); color: #fff; font-size: 18px; box-shadow: 0 16px 34px rgba(48,134,230,.25); }
.hero-button span { margin-left: 12px; font-size: 24px; }
.wechat-search { margin: 17px 0 0 32px; color: #6a85a2; font-size: 15px; }
.hero-handwriting { position: absolute; z-index: 3; top: 64px; left: 47%; margin: 0; color: #0e62b2; font-family: "KaiTi", "STKaiti", serif; font-size: 22px; line-height: 1.6; transform: rotate(-7deg); }

.flow-section, .marketplaces, .faq { padding: 58px clamp(26px, 6vw, 92px) 76px; }
.section-heading { text-align: center; }
.section-heading > p, .section-kicker { margin: 0; color: var(--blue); font-size: 15px; font-weight: 850; letter-spacing: 4px; }
.section-heading h2, .advantages h2 { margin: 10px 0 0; color: var(--navy); font-size: clamp(30px, 3vw, 45px); line-height: 1.25; }
.section-heading h2::after { display: block; width: 210px; height: 7px; margin: -2px auto 0; border-radius: 50%; background: var(--yellow); opacity: .78; content: ""; }
.flow-grid { display: grid; max-width: 1320px; margin: 46px auto 0; padding: 0; list-style: none; grid-template-columns: repeat(4, 1fr); }
.flow-grid li { position: relative; display: flex; gap: 17px; padding: 15px 28px; }
.flow-grid li:not(:last-child)::after { position: absolute; top: 35px; right: -14px; width: 30px; border-top: 2px dashed #9ed1fb; content: ""; }
.flow-grid li > span { display: grid; width: 46px; height: 46px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: linear-gradient(145deg,#78c6ff,#3992eb); color: #fff; font-size: 20px; font-weight: 900; box-shadow: 0 9px 20px rgba(55,148,233,.2); }
.flow-grid li:nth-child(even) > span { background: linear-gradient(145deg,#ffe68b,#f6c84e); color: var(--navy); }
.flow-grid h3 { margin: 4px 0 7px; font-size: 20px; }
.flow-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.advantages { display: grid; padding: 78px clamp(26px, 7vw, 110px); background: linear-gradient(135deg, #eef9ff 0%, #fffdf8 62%, #fff6f4 100%); grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.advantage-copy > p:not(.section-kicker) { max-width: 600px; margin: 25px 0 0; color: var(--muted); font-size: 17px; line-height: 1.9; }
.secondary-button { margin-top: 30px; padding: 16px 27px; border: 1px solid #a9d5f9; background: rgba(255,255,255,.7); color: var(--blue); }
.advantage-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.advantage-cards article { min-height: 184px; padding: 26px; border: 1px solid rgba(205,231,250,.9); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.advantage-cards strong { display: block; color: var(--blue); font-size: 35px; }
.advantage-cards span { display: block; margin-top: 5px; font-size: 18px; font-weight: 850; }
.advantage-cards p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.marketplaces { background: #fff; }
.marketplace-grid { display: grid; max-width: 1120px; margin: 42px auto 0; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.marketplace-grid article { display: flex; min-height: 166px; align-items: center; gap: 20px; padding: 25px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg,#fff,#f5fbff); }
.market-label, .marketplace-grid img { display: grid; width: 68px; height: 68px; flex: 0 0 auto; place-items: center; border-radius: 20px; font-weight: 950; }
.market-label.mercari { background: #ef4444; color: #fff; }
.market-label.snkr { background: #101b2a; color: #fff; }
.market-label.yahoo { background: #b9272c; color: #fff; }
.marketplace-grid img { object-fit: contain; }
.marketplace-grid h3 { margin: 0; font-size: 20px; }
.marketplace-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.faq { background: #f1faff; }
.faq-list { max-width: 900px; margin: 40px auto 0; }
details { padding: 21px 24px; border-bottom: 1px dashed #bcdcf4; }
summary { cursor: pointer; font-size: 18px; font-weight: 800; }
details p { margin: 14px 0 0; color: var(--muted); line-height: 1.8; }
.final-cta { display: flex; min-height: 190px; align-items: center; gap: 28px; padding: 30px clamp(28px, 8vw, 130px); background: linear-gradient(120deg,#dff4ff,#fffdf8); }
.final-cta img { width: 155px; height: 155px; object-fit: contain; }
.final-cta div { flex: 1; }
.final-cta p { margin: 0 0 7px; color: var(--blue); font-weight: 750; }
.final-cta h2 { margin: 0; font-size: 32px; }
.final-cta .hero-button { margin-top: 0; }
footer { display: flex; align-items: center; gap: 28px; padding: 28px clamp(24px,6vw,92px); background: var(--navy); color: rgba(255,255,255,.72); font-size: 13px; }
.footer-brand { color: #fff; }
.footer-brand img { width: 42px; height: 42px; }
footer p:last-child { margin-left: auto; }

dialog { width: min(460px, calc(100% - 32px)); padding: 36px; border: 1px solid var(--line); border-radius: 30px; color: var(--navy); text-align: center; box-shadow: 0 32px 100px rgba(5,51,96,.26); }
dialog::backdrop { background: rgba(5,37,72,.42); backdrop-filter: blur(5px); }
dialog > img { width: 138px; height: 138px; object-fit: contain; }
.dialog-close { position: absolute; top: 15px; right: 18px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef7ff; color: var(--navy); font-size: 25px; }
.dialog-kicker { margin: 3px 0 7px; color: var(--blue); font-weight: 800; letter-spacing: 3px; }
dialog h2 { margin: 0; font-size: 27px; }
dialog > p:not(.dialog-kicker,.copy-feedback) { color: var(--muted); line-height: 1.8; }
dialog .hero-button { width: 100%; }
.copy-feedback { min-height: 20px; margin: 12px 0 0; color: #287fe8; font-size: 14px; }

:focus-visible { outline: 3px solid rgba(49,141,240,.42); outline-offset: 4px; }

@media (max-width: 950px) {
  nav { display: none; }
  .site-header { height: 72px; }
  .miniapp-button { margin-left: auto; padding: 12px 18px; }
  .brand img { width: 48px; height: 48px; }
  .hero { display: flex; min-height: 780px; flex-direction: column-reverse; }
  .hero-art { position: relative; width: 100%; height: 390px; object-position: 58% center; }
  .hero::after { display: none; }
  .hero-copy { width: 100%; padding: 30px 28px 46px; }
  .hero-handwriting { display: none; }
  .flow-grid { grid-template-columns: repeat(2,1fr); gap: 18px; }
  .flow-grid li:not(:last-child)::after { display: none; }
  .advantages { grid-template-columns: 1fr; gap: 38px; }
  .marketplace-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .brand small { display: none; }
  .brand strong { font-size: 20px; }
  .site-header { padding: 0 15px; }
  .miniapp-button { padding: 11px 15px; font-size: 13px; }
  .hero { min-height: 0; }
  .hero-art { height: 300px; }
  .paper-note { margin-left: 4px; font-size: 13px; letter-spacing: 2px; }
  h1 { font-size: 40px; letter-spacing: -2px; }
  .hero-description { font-size: 16px; }
  .hero-button { width: 100%; }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid li { padding: 12px 4px; }
  .advantage-cards { grid-template-columns: 1fr; }
  .advantage-cards article { min-height: 0; }
  .final-cta { flex-direction: column; text-align: center; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
  footer p { margin: 0; }
  footer p:last-child { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
