

:root {
  --ink: #5a4a3f;          
  --text: #6b5d54;
  --weak: #9a8c82;
  --gold: #c9a961;         
  --gold-deep: #b08d4a;
  --gold-soft: #eadfc3;
  --pink: #e8a6b8;         
  --pink-deep: #c9788f;    
  --pink-line: #edc3cf;    
  --pink-dash: #f0cdd7;    
  --pink-tint: #fbe8ec;    
  --pink-inner: #f6dde4;   
  --cream: #fbf6ea;        
  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-en: "Quicksand", "Zen Maru Gothic", sans-serif;
  --page-max: 430px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-round);
  color: var(--text);
  background: #fbf5e7;
  -webkit-text-size-adjust: 100%;
  min-height: 100dvh;
  font-weight: 500;
  
  word-break: auto-phrase;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }   

.bg-layer {
  position: fixed;
  top: 0; left: 50%;
  width: min(100vw, var(--page-max));
  height: 130vh;
  height: 130lvh;
  z-index: -1;
  transform: translate(-50%, var(--bg-shift, 0px));
  will-change: transform;
  
  background:
    repeating-linear-gradient(45deg, rgba(201,169,97,0) 0 27px, rgba(201,169,97,.16) 27px 28px),
    repeating-linear-gradient(-45deg, rgba(201,169,97,0) 0 27px, rgba(201,169,97,.16) 27px 28px),
    #fbf5e7;   
  pointer-events: none;
}
@media (min-width: 431px) {
  body { background: #efe6d6; }
}
.page {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px 20px 64px;
}
@media (min-width: 431px) {
  .page { min-height: 100dvh; box-shadow: 0 0 40px rgba(150,120,70,.12); }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--gold-soft);
  border-radius: 18px;
  padding: 30px 20px 32px;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px var(--pink-inner), 0 4px 18px rgba(150, 120, 70, .08);
}
.card + .card { margin-top: 30px; }

.card--plain { box-shadow: 0 4px 18px rgba(150, 120, 70, .08); }

.kicker {
  display: block;
  font-family: var(--font-en); font-weight: 600; font-style: normal;
  font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--pink-deep);
}

.sec-head { text-align: center; margin: 0 0 26px; }
.sec-head .kicker { margin: 0 0 8px; }
.sec-head .title {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 20px; line-height: 1.4; letter-spacing: 3px; color: var(--ink);
}

.sec-head .title .orn { display: inline-block; width: 18px; height: auto; margin: 0; flex: none; }

.sec-head .title .orn--bow { width: 22px; }
.sec-head .title .orn--bow.flip { transform: scaleX(-1); margin-left: -3px; }   
.sec-head .title .orn--boat { width: 30px; }
.sec-head .title small { display: block; font-size: 13px; letter-spacing: 1px; color: var(--weak); font-weight: 500; margin-top: 4px; }
.sec-head--page .title { font-size: 23px; }
.sec-head--page .title .orn { width: 22px; }

.lead { text-align: center; font-size: 14.5px; line-height: 1.95; color: var(--text); word-break: auto-phrase; text-wrap: pretty; }   
.lead + .lead { margin-top: 10px; }
.em { color: var(--pink-deep); font-weight: 700; }
.em--orange { color: #e07f3f; }   
.strong { color: var(--ink); font-weight: 700; }
.mark { background: var(--cream); padding: 1px 4px; border-radius: 4px; color: var(--ink); font-weight: 700; }
a.em { text-decoration: underline; text-underline-offset: 3px; }

.btn {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  width: 100%; min-height: 50px;
  padding: 12px 40px 12px 20px;
  border: 1px solid var(--pink-line); border-radius: 12px;
  background: var(--pink-tint); color: var(--ink);   
  font-weight: 700; font-size: 15px; letter-spacing: 2px;
  transition: background .12s ease;
}
.btn::after {
  content: ""; position: absolute; right: 18px; top: 50%;
  width: 7px; height: 7px; border-right: 1.5px solid var(--pink-deep); border-bottom: 1.5px solid var(--pink-deep);
  transform: translateY(-50%) rotate(-45deg);
}
.btn:active, .btn--primary:active { background: #f6d6de; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px 0 10px;
  border: 1px solid var(--pink-line); border-radius: 10px; background: var(--pink-tint);
  font-weight: 700; font-size: 12.5px; letter-spacing: 1.5px; color: var(--ink);
}
.back-btn::before {
  content: ""; width: 6px; height: 6px; border-left: 1.5px solid var(--pink-deep); border-bottom: 1.5px solid var(--pink-deep);
  transform: rotate(45deg); margin-right: 2px;
}
.foot-nav { margin-top: 44px; }
.foot-nav .back-btn { display: flex; width: 100%; height: 50px; justify-content: center; font-size: 14.5px; border-radius: 12px; }

.deco { position: absolute; pointer-events: none; z-index: 1; }

.num {
  font-family: var(--font-en); font-weight: 700; font-style: normal;
  font-size: 22px; line-height: 1; color: var(--pink-deep); letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.hero { text-align: center; padding: 4px 0 30px; position: relative; }
.hero .kicker { font-size: 13px; margin-bottom: 10px; }
.hero .kicker .h { letter-spacing: 0; margin: 0 4px; }

.hero .title {
  font-weight: 900; font-size: 25px; letter-spacing: 1.5px; line-height: 1.4; color: var(--pink-deep);   
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1.5px 1.5px #fff, -1.5px -1.5px #fff, 1.5px -1.5px #fff, -1.5px 1.5px #fff, 0 4px 12px rgba(150, 120, 70, .18);
}
.hero .title .orn { width: 22px; height: auto; flex: none; filter: drop-shadow(0 0 1.5px #fff); }

.profile { display: grid; grid-template-columns: 100px auto; justify-content: center; gap: 20px; align-items: center; padding: 26px 16px; }   
.avatar {
  width: 100px; height: 100px; border-radius: 50%;
  padding: 3px; background: #fff;
  border: 1px solid var(--gold);   
}
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

@media (max-width: 400px) {
  .profile { grid-template-columns: 80px auto; gap: 20px; padding: 24px 12px; }
  .avatar { width: 80px; height: 80px; }
}
.profile-name { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: 1.5px; color: var(--ink); margin: 0 0 8px; }
.profile-intro { font-size: 12.4px; line-height: 1.85; color: var(--text); letter-spacing: 0; }
.profile .deco-postcard { flex: none; width: 22px; height: auto; transform: rotate(10deg); opacity: .85; }   

.menu-item { padding: 24px 0 26px; border-top: 1px dashed var(--pink-dash); }
.menu-item:first-child { border-top: 0; padding-top: 4px; }
.sec-head + .menu { margin-top: -10px; }   
.menu-item:last-child { padding-bottom: 2px; }
.menu-row { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin-bottom: 14px; }
.menu-row .num { padding-top: 3px; }
.menu-title { font-weight: 700; font-size: 17px; line-height: 1.5; letter-spacing: 1.5px; color: var(--ink); }
.menu-desc { font-size: 13px; line-height: 1.8; color: var(--text); margin-top: 4px; word-break: auto-phrase; text-wrap: pretty; }   
.menu-item .btn { margin-top: 2px; }

.menu-desc--center { text-align: center; margin: -12px 0 14px; font-size: 13.5px; }   
.menu-desc--center .h { color: var(--pink-deep); margin-left: 2px; }
.guide-foot { text-align: center; font-size: 13px; line-height: 1.8; color: var(--weak); margin-top: 22px; }
.guide-foot .h { color: var(--pink-deep); }

.sub-top { position: absolute; top: 24px; left: 20px; z-index: 2; }
.page-head { margin: 0 0 24px; padding-top: 12px; }   
.page-lead { margin: 0 0 30px; }

.site-list { padding: 26px 20px; }
.site { padding: 26px 0; }
.site:first-child { padding-top: 0; }
.site:last-child { padding-bottom: 0; }
.site + .site { border-top: 1px dashed var(--pink-dash); }
.site .site-head { padding: 0 6px; }   
.site-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }

.site-icon {
  flex: none; width: 60px; height: 60px; border-radius: 50%;
  background: #fff; border: 1px solid #e3d3a6;   
  display: inline-flex; align-items: center; justify-content: center;
}
.site-icon img { width: 42px; height: 42px; }
.site-name { font-weight: 700; font-size: 19px; letter-spacing: 2px; color: var(--ink); }

.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 18px 0; border-top: 1px dashed var(--pink-dash); }
.steps li:first-child { border-top: 0; padding-top: 10px; }   
.steps li:last-child { padding-bottom: 4px; }
.steps .num { padding-top: 4px; }
.steps .t { display: block; font-weight: 700; font-size: 16px; line-height: 1.55; letter-spacing: 1px; color: var(--ink); }
.steps .d { display: block; font-size: 13px; line-height: 1.8; color: var(--text); margin-top: 4px; }
.howto-card .deco-sparkle { right: 18px; bottom: 22px; width: 16px; }

.video-block + .video-block { margin-top: 34px; padding-top: 34px; border-top: 1px dashed var(--pink-dash); }
.video-head { text-align: center; margin-bottom: 18px; }
.video-head .kicker { margin-bottom: 6px; }
.video-head .t { font-weight: 700; font-size: 16.5px; letter-spacing: 1.5px; color: var(--ink); }
.video-frame--portrait {
  width: min(100%, 240px); margin: 0 auto;
  aspect-ratio: 720 / 1562;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 6px 18px rgba(150, 120, 70, .14);
  background: #000;
}
.video-frame--portrait video { display: block; width: 100%; height: 100%; object-fit: cover; }

.page-bet .card + .card { margin-top: 48px; }

.step { padding: 32px 0; border-top: 1px dashed var(--pink-dash); text-align: center; }
.step:first-of-type { border-top: 0; padding-top: 4px; }
.step:last-of-type { padding-bottom: 2px; }
.step-kicker {
  display: block; font-family: var(--font-en); font-weight: 700;
  font-size: 13px; letter-spacing: 4px; color: var(--pink-deep); margin: 0 0 16px;
}
.step-shot {
  width: min(100%, 250px); margin: 0 auto;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 6px 18px rgba(150, 120, 70, .12);
  background: #fff;
}
.step-shot img { width: 100%; height: auto; }
.step-cap { margin: 18px 0 0; font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.step-cap + .step-cap { margin-top: 10px; }

.note {
  margin: 22px auto 0; max-width: 320px;
  background: #fdfaf3; border: 1px solid var(--gold-soft); border-radius: 12px;   
  padding: 18px 18px 18px; text-align: center;
  font-size: 13.5px; line-height: 1.9; color: var(--text);
}
.note-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14.5px; letter-spacing: 2px; color: var(--pink-deep); margin-bottom: 8px; }
.note-title svg { width: 18px; height: 18px; flex: none; }
.note ul { color: var(--ink); font-weight: 700; }
.note-foot { margin-top: 8px; }

.intro-card { padding: 26px 18px 26px; }
.intro-card .page-lead { margin: 0 0 18px; }
.intro-card .page-lead:last-child { margin-bottom: 0; }   
.intro-card .warn { margin: 0; padding-top: 18px; border-top: 1px dashed var(--pink-dash); }
.warn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 30px; font-size: 13.5px; line-height: 1.7; color: var(--ink); font-weight: 700; }
.warn svg { width: 30px; height: 30px; flex: none; }
.race-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px dashed var(--pink-dash); }
.race-title { font-weight: 700; font-size: 19px; letter-spacing: 2px; color: var(--ink); }
.race-text { text-align: center; font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.race-text + .race-text { margin-top: 12px; }
.label {
  display: block; text-align: center;
  font-weight: 700; font-size: 13.5px; letter-spacing: 2px; color: var(--pink-deep);
  margin: 26px 0 12px;
}
.alloc {
  width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed;
  border: 1px solid var(--pink-line); border-radius: 12px; overflow: hidden; background: #fff;
  font-weight: 700; font-size: 17px; letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}
.alloc td { padding: 14px 6px; text-align: center; border-top: 1px solid var(--pink-dash); line-height: 1.3; }
.alloc tr:first-child td { border-top: 0; }
.alloc td.arr { color: var(--pink); font-weight: 500; font-size: 14px; }
.alloc col.w-combo, .alloc col.w-val { width: 40%; }
.alloc col.w-arr { width: 20%; }

.alloc .c1 { color: #4c7db3; }
.alloc .c2 { color: #8f6cab; }
.alloc .c3 { color: #4f8f6c; }
.alloc .c4 { color: #c9834e; }
.race-note { margin: 22px auto 0; max-width: 320px; }

.summary { border: 1px solid var(--pink-line); border-radius: 12px; padding: 4px 8px; }
.summary-item { padding: 18px 0; text-align: center; font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.summary-item + .summary-item { border-top: 1px dashed var(--pink-dash); }
.summary-item .em { font-size: 17px; }
.summary-item .sub { display: block; font-size: 13px; color: var(--weak); margin-top: 2px; }
.summary-foot { text-align: center; font-size: 13.5px; line-height: 1.8; color: var(--weak); margin-top: 22px; }

.rep-card { padding: 26px 0 28px; display: flex; flex-direction: column; }   
.rep-swipe {
  margin: 0 20px 16px; text-align: center;
  font-size: 13px; letter-spacing: 1px; line-height: 16px; color: var(--pink-deep);
}
.rep-carousel {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: stretch; gap: 14px;
  margin: 0 6px;                 
  padding: 0 0 0 14px;           
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 14px;     
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rep-carousel::-webkit-scrollbar { display: none; }
.rep-carousel.is-dragging, .rep-carousel.is-wheeling { scroll-snap-type: none; }
@media (hover: hover) and (pointer: fine) {
  .rep-carousel { cursor: grab; }
  .rep-carousel.is-dragging { cursor: grabbing; user-select: none; }
}
.rep-carousel::after { content: ""; flex: 0 0 0.1px; align-self: flex-start; }   
.rep-carousel .report {
  margin: 0;   
  flex: 0 0 clamp(150px, 40vw, 172px);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  scroll-snap-align: start;
}
.rep-carousel .shot {
  width: 100%; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 6px 18px rgba(150, 120, 70, .12);   
}
.rep-carousel .shot img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }

.rep-carousel .shot-report { flex: 0 0 280px; display: flex; align-items: center; justify-content: center; background: #fff; }
.rep-carousel .shot-report img { max-height: 100%; max-width: 100%; width: auto; }
.rep-carousel .shot-report.is-empty { background: var(--cream); }

.rep-carousel .date-badge {
  display: inline-block; margin-left: 2px;
  border-radius: 20px; padding: 2px 10px;
  background: var(--cream); border: 1px solid var(--gold-soft);
  font-size: 11px; font-weight: 700; letter-spacing: .8px; line-height: 16.5px; color: var(--ink);
}
.rep-carousel .date-badge.rep-placeholder { background: none; color: var(--weak); font-weight: 500; }
