/* ==========================================================================
   AKI TRAVEL - Style japonais "portail dense" (Rakuten / Janakara / 7-Eleven)
   Bandeaux empilés, couleurs vives mélangées, badges, onglets, livre d'itinéraires
   ========================================================================== */

:root {
    --red: #bf0000;
    --red-hot: #e60012;
    --red-dark: #8f0000;
    --yellow: #fff100;
    --gold: #ffc400;
    --orange: #f7931e;
    --magenta: #e5007f;
    --green: #00a040;
    --green-lt: #7ed957;
    --blue: #0b6fd6;
    --gray: #666666;
    --gray-lt: #f3f3f3;
    --cream: #fff6e5;
    --ink: #333333;
    --line: #dcdcdc;
    --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --wrap: 1100px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.65;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 12px; }

/* ---------- Bandeau gris du haut (liens soulignés multicolores) ---------- */
.topbar { background: var(--gray); }
.topbar-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 0 12px;
    display: flex; overflow-x: auto; scrollbar-width: none;
}
.topbar-inner::-webkit-scrollbar { display: none; }
.topbar a {
    color: #fff; text-decoration: none; font-size: 12px; font-weight: 500;
    padding: 7px 14px 5px; white-space: nowrap; border-bottom: 3px solid transparent;
}
.topbar a:hover { background: rgba(255,255,255,.15); }
.topbar a:nth-child(1) { border-color: var(--red-hot); }
.topbar a:nth-child(2) { border-color: var(--blue); }
.topbar a:nth-child(3) { border-color: var(--green); }
.topbar a:nth-child(4) { border-color: var(--orange); }
.topbar a:nth-child(5) { border-color: var(--gold); }
.topbar a:nth-child(6) { border-color: var(--magenta); }

/* ---------- En-tête ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.site-header-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 8px 12px;
    display: flex; align-items: center; gap: 16px;
}
.logo-link { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.site-logo-img { height: 34px; width: auto; }

.site-search { flex: 1; display: flex; max-width: 560px; }
.site-search input {
    flex: 1; min-width: 0; height: 38px; padding: 0 12px;
    border: 1px solid #bbb; border-right: 0; border-radius: 3px 0 0 3px;
    background: #f4f4f4; font: inherit; font-size: 13px;
}
.site-search input:focus { background: #fff; border-color: var(--red); outline: none; }
.site-search button {
    width: 52px; height: 38px; border: 0; background: var(--red); color: #fff;
    border-radius: 0 3px 3px 0; cursor: pointer; display: grid; place-items: center;
}
.site-search button:hover { background: var(--red-hot); }

.header-icons { margin-left: auto; display: flex; gap: 2px; }
.header-icons a {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    font-size: 10px; color: var(--ink); text-decoration: none; padding: 2px 9px;
}
.header-icons a:hover { color: var(--red); }
.header-icons svg { width: 22px; height: 22px; }

.search-note { font-size: 12px; color: var(--red); font-weight: 700; min-height: 1.4em; margin-bottom: 8px; }

/* ---------- Bandeau rose (promo secondaire) ---------- */
.promo-strip { background: var(--magenta); color: #fff; text-align: center; padding: 8px 12px; font-size: 14px; font-weight: 700; }
.promo-strip b { background: #fff; color: var(--magenta); padding: 1px 10px; border-radius: 3px; margin-right: 8px; font-size: 12px; }
.promo-strip .yl { color: var(--yellow); }

/* ---------- Boutons ---------- */
.btn-primary, .btn-secondary, .btn-yellow {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 22px; border-radius: 4px; font: inherit; font-size: 14px; font-weight: 900;
    text-decoration: none; text-align: center; cursor: pointer; line-height: 1.3;
    transition: transform .12s, filter .12s;
}
.btn-primary { background: var(--red); color: #fff; border: 0; border-bottom: 4px solid var(--red-dark); }
.btn-primary:hover { background: var(--red-hot); }
.btn-primary:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn-secondary, .btn-yellow { background: var(--yellow); color: #222; border: 2px solid #222; }
.btn-secondary:hover, .btn-yellow:hover { filter: brightness(.95); }
.btn-block { width: 100%; padding: 14px; font-size: 16px; }

/* ---------- Titres de section (barre rouge + lien "すべて見る") ---------- */
.panel { background: #fff; padding: 20px 0 24px; }
.panel + .panel { border-top: 8px solid var(--gray-lt); }
.panel.tint { background: var(--cream); }
.sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sec-head h2 { font-size: 20px; font-weight: 900; color: var(--red); border-left: 6px solid var(--red); padding-left: 10px; line-height: 1.3; }
.sec-head .sec-sub { font-size: 12px; color: var(--gray); }
.sec-head .sec-more { margin-left: auto; font-size: 12px; color: var(--ink); text-decoration: none; }
.sec-head .sec-more::before { content: '▸ '; color: var(--red); }
.sec-head .sec-more:hover { text-decoration: underline; }

/* ---------- Slider principal ---------- */
.hero-slider { position: relative; max-width: var(--wrap); margin: 10px auto 0; overflow: hidden; }
.hero-track { display: flex; transition: transform .5s ease; }
.hero-slide { min-width: 100%; height: 330px; position: relative; overflow: hidden; display: flex; align-items: center; }
.hero-slide > * { position: relative; z-index: 2; }
.hero-slide .hero-photo { position: absolute; z-index: 1; top: 0; right: 0; height: 100%; width: 62%; object-fit: cover; }

.slide-gold { background: linear-gradient(180deg, #fff8c9 0%, var(--gold) 55%, var(--orange) 100%); }
.slide-gold .hero-photo { -webkit-mask-image: linear-gradient(to left, #000 60%, transparent); mask-image: linear-gradient(to left, #000 60%, transparent); }
.slide-green { background: linear-gradient(135deg, var(--green) 0%, var(--green-lt) 100%); }
.slide-night { background: #07070d; }
.slide-night .hero-photo { width: 100%; opacity: .9; }
.slide-night::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.75), transparent 70%); }

.slide-copy { padding: 0 8% 0 6%; max-width: 62%; }
.slide-label { display: inline-block; background: var(--red); color: #fff; font-size: 12px; font-weight: 900; padding: 2px 14px; border-radius: 20px; margin-bottom: 8px; }
.slide-title { font-size: 26px; font-weight: 900; line-height: 1.3; color: #222; }
.slide-title .rd { color: var(--red); }
.slide-big { display: flex; align-items: baseline; gap: 8px; line-height: 1; margin: 6px 0 10px; }
.slide-big .num { font-size: 104px; font-weight: 900; color: var(--red); letter-spacing: -4px; -webkit-text-stroke: 7px #fff; paint-order: stroke fill; }
.slide-big .unit { font-size: 40px; font-weight: 900; color: var(--red); -webkit-text-stroke: 5px #fff; paint-order: stroke fill; }
.slide-big .txt { font-size: 32px; font-weight: 900; color: #222; -webkit-text-stroke: 5px #fff; paint-order: stroke fill; }
.slide-note { font-size: 12px; color: #222; margin-bottom: 12px; font-weight: 500; }
.slide-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.slide-green .slide-title, .slide-green .slide-note { color: #fff; }
.slide-green .slide-label { background: #fff; color: var(--green); }
.slide-night .slide-title, .slide-night .slide-note { color: #fff; }
.slide-night .slide-title .rd { color: var(--yellow); }
.slide-night .slide-label { background: var(--yellow); color: #222; }

.slide-duo { position: absolute; z-index: 1; right: 5%; top: 50%; transform: translateY(-50%); display: flex; gap: 12px; height: 84%; }
.slide-duo img { height: 100%; width: auto; aspect-ratio: 4/5; object-fit: cover; border: 5px solid #fff; border-radius: 4px; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.slide-duo img:nth-child(1) { transform: rotate(-3deg); }
.slide-duo img:nth-child(2) { transform: rotate(3deg) translateY(10px); }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.7); color: #666; font-size: 22px; line-height: 1; display: grid; place-items: center;
}
.hero-arrow:hover { background: #fff; color: var(--red); }
.hero-arrow.prev { left: 14px; }
.hero-arrow.next { right: 14px; }
.hero-dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0 2px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #cfcfcf; cursor: pointer; padding: 0; }
.hero-dots button.is-active { background: var(--red); }

/* ---------- Rangée de petites bannières ---------- */
.tile-row { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.tile { position: relative; display: block; text-decoration: none; overflow: hidden; border: 1px solid var(--line); background: #fff; min-height: 168px; }
.tile img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.tile .tile-label {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 8px 8px 7px;
    color: #fff; font-weight: 900; font-size: 14px; line-height: 1.3;
}
.tile .tile-label small { display: block; font-size: 11px; font-weight: 500; opacity: .95; }
.tile .tile-badge {
    position: absolute; z-index: 2; top: 6px; left: 6px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--red-hot); color: var(--yellow); font-size: 12px; font-weight: 900; line-height: 1.1;
    display: grid; place-items: center; text-align: center; border: 2px solid #fff;
}
.tile:hover .tile-label { background: var(--red-hot); }
.tile-feature {
    background: var(--red); color: #fff; border: 0; padding: 10px; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 168px; text-decoration: none;
}
.tile-feature .tf-top { background: #fff; color: var(--red); font-weight: 900; font-size: 13px; padding: 1px 12px; border-radius: 2px; }
.tile-feature .tf-mid { font-size: 13px; font-weight: 700; margin-top: 8px; }
.tile-feature .tf-num { font-size: 58px; font-weight: 900; color: var(--yellow); line-height: 1; letter-spacing: -2px; }
.tile-feature .tf-num small { font-size: 28px; }
.tile-feature .tf-bot { font-size: 15px; font-weight: 900; color: var(--yellow); }

/* ---------- Services (section about) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-card { border: 1px solid var(--line); background: #fff; border-top: 5px solid var(--red); padding: 14px; }
.service-card:nth-child(2) { border-top-color: var(--green); }
.service-card:nth-child(3) { border-top-color: var(--orange); }
.service-card .sv-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.service-card:nth-child(2) .sv-icon { background: var(--green); }
.service-card:nth-child(3) .sv-icon { background: var(--orange); }
.service-card .sv-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 16px; font-weight: 900; margin-bottom: 4px; }
.service-card p { font-size: 13px; color: #555; line-height: 1.75; }

/* ---------- Coupon style Rakuten (injecté par main.js) ---------- */
.coupon-container { margin-top: 14px; }
.rk-coupon { position: relative; display: grid; grid-template-columns: 190px 1fr 200px; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: 0 3px 0 var(--red-dark), 0 10px 20px rgba(191,0,0,.18); }
.rk-left { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 30px 10px 14px; background: linear-gradient(160deg, var(--red-hot), var(--red-dark)); border-right: 3px dashed rgba(255,255,255,.75); }
.rk-ribbon { position: absolute; top: 0; left: 0; background: var(--yellow); color: var(--red); font-size: 11px; font-weight: 900; padding: 3px 14px 3px 10px; border-radius: 0 0 14px 0; }
.rk-discount { display: flex; align-items: baseline; justify-content: center; color: var(--yellow); font-weight: 900; line-height: 1; text-shadow: 0 3px 0 var(--red-dark); }
.discount-num { font-size: 60px; letter-spacing: -2px; }
.discount-char { font-size: 24px; margin-left: 2px; }
.rk-sub { margin-top: 6px; font-size: 10px; letter-spacing: .18em; font-weight: 700; opacity: .9; }

.rk-mid { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 16px 22px; min-width: 0; }
.rk-title { font-size: 18px; font-weight: 900; line-height: 1.4; color: #222; }
.rk-timer { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.rk-timer-label { font-size: 12px; font-weight: 700; color: var(--gray); margin-right: 4px; }
.rk-box { display: inline-flex; align-items: baseline; gap: 2px; background: #222; color: #fff; padding: 4px 7px; border-radius: 4px; }
.rk-box b { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rk-box i { font-style: normal; font-size: 10px; color: var(--yellow); }

.rk-right { display: grid; place-items: center; padding: 14px; background: var(--cream); border-left: 3px dashed var(--line); }
.rk-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: var(--red); color: #fff; text-decoration: none; font-weight: 900; font-size: 15px; padding: 14px 10px; border-radius: 4px; border-bottom: 5px solid var(--red-dark); }
.rk-btn:hover { background: var(--red-hot); }
.rk-btn:active { transform: translateY(2px); border-bottom-width: 3px; }

/* encoches du ticket */
.rk-coupon::before, .rk-coupon::after { content: ''; position: absolute; left: 190px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transform: translateX(-50%); z-index: 2; }
.rk-coupon::before { top: -11px; }
.rk-coupon::after { bottom: -11px; }
.panel.tint .rk-coupon::before, .panel.tint .rk-coupon::after { background: var(--cream); }

/* ---------- Livre d'itinéraires (injecté par main.js) ---------- */
.itinerary-list-container { display: flex; flex-direction: column; gap: 14px; }
.itinerary-card { display: grid; grid-template-columns: 250px 1fr; gap: 22px; background: #fff; border: 1px solid var(--line); padding: 18px; position: relative; }
.book-cover-col { position: relative; }
.itinerary-thumb {
    position: relative; aspect-ratio: 3/4; background: var(--red); overflow: hidden;
    border-radius: 3px 8px 8px 3px;
    box-shadow: 6px 0 0 -1px #fff, 7px 0 0 0 #cfcfcf, 11px 0 0 -1px #fff, 12px 0 0 0 #cfcfcf, 8px 10px 14px rgba(0,0,0,.25);
}
.itinerary-thumb img { width: 100%; height: 100%; object-fit: cover; }
.itinerary-thumb::before { content: ''; position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.15) 60%, transparent); }
.book-title-band { position: absolute; z-index: 2; left: 14px; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(143,0,0,.96) 70%, rgba(143,0,0,0)); padding: 38px 10px 10px; color: #fff; }
.book-title-band strong { display: block; font-size: 16px; font-weight: 900; line-height: 1.35; }
.book-title-band span { font-size: 11px; color: var(--yellow); font-weight: 700; }
.rank-badge {
    position: absolute; z-index: 4; top: -8px; left: -8px; width: 54px; height: 54px; border-radius: 50%;
    background: var(--red-hot); color: var(--yellow); border: 3px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.2);
    display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font-weight: 900;
}
.rank-badge small { font-size: 10px; color: #fff; }
.rank-badge b { font-size: 24px; }
.pick-ribbon { position: absolute; z-index: 4; top: 14px; right: -10px; background: var(--yellow); color: #222; font-size: 12px; font-weight: 900; padding: 2px 12px; border: 2px solid #222; }

.itinerary-content { min-width: 0; display: flex; flex-direction: column; }
.itinerary-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge-duration, .badge-location { font-size: 12px; font-weight: 900; padding: 1px 10px; border-radius: 2px; }
.badge-duration { background: var(--red); color: #fff; }
.badge-location { background: #fff; color: var(--green); border: 1px solid var(--green); }
.itinerary-title { font-size: 22px; font-weight: 900; line-height: 1.35; color: var(--red); margin-bottom: 6px; }
.itinerary-desc { font-size: 13px; color: #555; line-height: 1.8; margin-bottom: 12px; }

.toc { border: 1px solid var(--line); background: var(--cream); margin-bottom: 14px; }
.toc-head { background: var(--orange); color: #fff; font-weight: 900; font-size: 13px; padding: 3px 12px; }
.toc ol { list-style: none; }
.toc li { display: flex; gap: 10px; align-items: baseline; padding: 5px 12px; border-top: 1px dotted #d9b97a; font-size: 13px; }
.toc li:first-child { border-top: 0; }
.toc .toc-ch { color: var(--red); font-weight: 900; white-space: nowrap; font-size: 12px; min-width: 3.2em; }
.toc .toc-t { flex: 1; min-width: 0; }
.toc .toc-more { padding: 5px 12px; font-size: 12px; color: var(--gray); border-top: 1px dotted #d9b97a; text-align: right; }

.itinerary-footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 2px solid var(--red); padding-top: 12px; }
.itinerary-price { line-height: 1.2; }
.price-label { display: block; font-size: 12px; color: var(--gray); font-weight: 700; }
.price-val { font-size: 34px; font-weight: 900; color: var(--red); letter-spacing: -1px; }
.itinerary-btn { background: var(--red); color: #fff; border-bottom: 4px solid var(--red-dark); border-radius: 4px; font-weight: 900; font-size: 15px; padding: 12px 28px; text-decoration: none; }
.itinerary-btn:hover { background: var(--red-hot); }

.empty-note { text-align: center; color: var(--gray); padding: 24px 10px; font-weight: 700; }

/* ---------- Formulaire ---------- */
.lead-box { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green); padding: 10px 14px; margin-bottom: 14px; font-size: 13px; color: #555; }
.custom-form { background: #fff; border: 1px solid var(--line); }
.form-group { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.form-label { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 14px; margin-bottom: 8px; }
.required { background: var(--red-hot); color: #fff; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 2px; line-height: 1.7; }
.form-row-grid { display: grid; grid-template-columns: 1fr 1fr; }
.form-row-grid .form-group:first-child { border-right: 1px solid var(--line); }
.form-input { width: 100%; padding: 9px 10px; border: 1px solid #bbb; border-radius: 3px; background: #fff; font: inherit; font-size: 14px; color: var(--ink); }
.form-input:focus { border-color: var(--red); outline: 2px solid rgba(191,0,0,.2); }
textarea.form-input { resize: vertical; }

.radio-options-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; font-size: 13px; line-height: 1.4; }
.radio-chip input { accent-color: var(--red); width: 17px; height: 17px; flex-shrink: 0; }
.radio-chip:hover { border-color: #aaa; }
.radio-chip:has(input:checked) { border-color: var(--red); background: #fff1f1; font-weight: 700; }

.checkbox-options-grid { display: block; }
.destinations-grid-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.destination-card-label { position: relative; display: block; border: 3px solid var(--line); background: #fff; cursor: pointer; overflow: hidden; }
.destination-card-label input { position: absolute; z-index: 2; top: 6px; left: 6px; width: 22px; height: 22px; accent-color: var(--red); cursor: pointer; }
.destination-img-wrap { aspect-ratio: 4/3; background: var(--gray-lt); }
.destination-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.destination-card-info { padding: 6px 8px; font-weight: 900; font-size: 13px; line-height: 1.35; }
.dest-region { display: block; font-size: 11px; font-weight: 500; color: var(--gray); }
.destination-card-label:has(input:checked) { border-color: var(--red); }
.destination-card-label:has(input:checked) .destination-card-info { background: var(--yellow); }
.destination-card-label.is-match { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,147,30,.45); }

/* ---------- Groupes de destinations (accordéon) ---------- */
.dest-groups { display: flex; flex-direction: column; gap: 8px; }
.dest-group { border: 1px solid var(--line); background: #fff; border-left: 6px solid var(--red); }
.dest-group.tone-1 { border-left-color: var(--green); }
.dest-group.tone-2 { border-left-color: var(--orange); }
.dest-group.tone-3 { border-left-color: var(--magenta); }
.dest-group summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 900; font-size: 15px; }
.dest-group summary::-webkit-details-marker { display: none; }
.dest-group-name { flex: 1; }
.dest-group-count { font-size: 12px; font-weight: 700; color: var(--gray); background: var(--gray-lt); padding: 2px 10px; border-radius: 20px; }
.dest-group-count b { color: var(--red); font-size: 14px; }
.dest-group-arrow { width: 10px; height: 10px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(45deg); transition: transform .2s; margin: 0 4px 4px 0; }
.dest-group[open] .dest-group-arrow { transform: rotate(-135deg); margin: 4px 4px 0 0; }
.dest-group[open] summary { background: var(--cream); border-bottom: 1px solid var(--line); }
.dest-group .destinations-grid-images { padding: 10px; }

.form-error-banner { background: var(--yellow); border: 2px solid var(--red); color: var(--red); font-weight: 900; padding: 10px 14px; margin: 12px 16px 0; }
.expert-alert { display: none; background: #fff0f0; border: 2px solid var(--red-hot); color: var(--red); padding: 12px 14px; margin: 0 0 12px; font-size: 14px; font-weight: 700; line-height: 1.6; text-align: left; }

.price-box { margin: 16px; border: 2px solid var(--red); background: #fff; }
.price-box-head { background: var(--red); color: #fff; font-weight: 900; font-size: 13px; padding: 4px 12px; }
.price-box-body { padding: 14px; text-align: center; background: linear-gradient(180deg, #fffbe0, #fff); }
#realtime-total-price { display: block; font-size: 42px; font-weight: 900; color: var(--red); line-height: 1.2; letter-spacing: -1px; }
.form-submit-wrapper { padding: 0 16px 16px; }

/* ---------- Contact ---------- */
.contact-section { background: linear-gradient(180deg, var(--red) 0%, var(--red-dark) 100%); color: #fff; text-align: center; padding: 34px 12px; }
.contact-inner h2 { font-size: 24px; font-weight: 900; margin: 6px 0 8px; }
.contact-inner p { margin-bottom: 16px; font-size: 14px; }
.contact-pill { display: inline-block; background: #fff; color: var(--red); font-weight: 900; font-size: 12px; padding: 1px 14px; border-radius: 20px; }
.contact-section .btn-yellow { padding: 14px 38px; font-size: 16px; border-bottom-width: 4px; }

/* ---------- Pied de page ---------- */
.site-footer { background: #3a3a3a; color: #ddd; padding: 20px 12px 26px; text-align: center; font-size: 12px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.footer-links a { color: #fff; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-kanji { display: block; margin-top: 6px; color: var(--gold); font-weight: 700; letter-spacing: .15em; }

/* ---------- Page résultat ---------- */
.result-wrap { max-width: 860px; margin: 0 auto; padding: 14px 12px 40px; }
.result-price-box { border: 2px solid var(--red); background: #fff; margin-bottom: 18px; }
.result-price-box .rp-head { background: var(--red); color: #fff; font-weight: 900; padding: 5px 14px; font-size: 13px; }
.result-price-box .rp-body { padding: 16px; text-align: center; background: linear-gradient(180deg, #fffbe0, #fff); }
#result-price-usd { font-size: 52px; font-weight: 900; color: var(--red); line-height: 1.1; letter-spacing: -1px; }
.result-meta { font-size: 13px; color: #555; margin-top: 10px; line-height: 1.8; }
.result-meta strong { color: var(--ink); }
.timeline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.chapter-card { display: grid; grid-template-columns: 74px 1fr; border: 1px solid var(--line); background: #fff; }
.chapter-card .ch-tab { background: var(--red); color: #fff; padding: 10px 4px; text-align: center; font-weight: 900; line-height: 1.2; }
.chapter-card:nth-child(4n+2) .ch-tab { background: var(--green); }
.chapter-card:nth-child(4n+3) .ch-tab { background: var(--orange); }
.chapter-card:nth-child(4n+4) .ch-tab { background: var(--magenta); }
.chapter-card .ch-tab small { display: block; font-size: 10px; font-weight: 500; opacity: .9; }
.chapter-card .ch-tab b { font-size: 24px; }
.chapter-card .ch-body { padding: 10px 14px; }
.chapter-card .ch-note { font-size: 11px; font-weight: 900; color: var(--red); }
.chapter-card h4 { font-size: 15px; font-weight: 900; margin: 1px 0 3px; }
.chapter-card p { font-size: 13px; color: #555; line-height: 1.7; }
.dev-console { background: #1e1e1e; color: #d4d4d4; margin-bottom: 22px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.dev-console summary { cursor: pointer; padding: 10px 14px; color: #4ec9b0; font-weight: 700; }
.dev-console pre { white-space: pre-wrap; word-break: break-all; color: #9cdcfe; line-height: 1.6; padding: 4px 14px 14px; overflow-x: auto; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions > * { flex: 1; min-width: 200px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
    .site-header-inner { flex-wrap: wrap; gap: 8px; }
    .site-search { order: 3; flex-basis: 100%; max-width: none; }
    .header-icons { display: none; }
    .site-logo-img { height: 30px; }
    .hero-slide { height: 290px; }
    .slide-copy { max-width: 70%; padding-left: 5%; }
    .slide-title { font-size: 19px; }
    .slide-big .num { font-size: 76px; }
    .slide-big .unit { font-size: 30px; }
    .slide-big .txt { font-size: 22px; }
    .slide-duo { right: 2%; height: 62%; top: auto; bottom: 8%; transform: none; }
    .hero-arrow { width: 34px; height: 34px; }
    .tile-row { grid-template-columns: repeat(2, 1fr); }
    .tile-feature { grid-column: 1 / -1; min-height: 0; flex-direction: row; gap: 12px; padding: 10px 14px; }
    .tile-feature .tf-num { font-size: 40px; }
    .service-grid { grid-template-columns: 1fr; }
    .itinerary-card { grid-template-columns: 1fr; gap: 16px; }
    .book-cover-col { max-width: 220px; margin: 0 auto 6px 8px; }
    .form-row-grid { grid-template-columns: 1fr; }
    .form-row-grid .form-group:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
    .destinations-grid-images { grid-template-columns: repeat(2, 1fr); }
    .rk-coupon { grid-template-columns: 1fr; }
    .rk-coupon::before, .rk-coupon::after { display: none; }
    .rk-left { flex-direction: row; gap: 12px; padding: 24px 14px 12px; border-right: 0; border-bottom: 3px dashed rgba(255,255,255,.75); }
    .discount-num { font-size: 44px; }
    .rk-sub { display: none; }
    .rk-mid { padding: 12px 14px; }
    .rk-right { border-left: 0; border-top: 3px dashed var(--line); }

}
@media (max-width: 480px) {
    .sec-head h2 { font-size: 17px; }
    .itinerary-title { font-size: 19px; }
    .price-val { font-size: 28px; }
    .radio-chip { width: 100%; }
    .chapter-card { grid-template-columns: 60px 1fr; }
    #result-price-usd { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-track { transition: none; }
}

/* ---------- Correctifs mobile du slider et de la tuile "100%" ---------- */
@media (max-width: 860px) {
    .hero-slide { height: auto; min-height: 330px; padding: 22px 0 26px; flex-direction: column; align-items: flex-start; justify-content: center; }
    .slide-copy { max-width: 100%; width: 100%; padding: 0 16px; }
    .slide-gold .hero-photo { width: 100%; opacity: .32; -webkit-mask-image: none; mask-image: none; }
    .slide-night .hero-photo { opacity: .85; }
    .slide-big { flex-wrap: wrap; gap: 2px 6px; }
    .slide-big .txt { font-size: 22px; white-space: nowrap; }
    .slide-duo { position: relative; right: auto; top: auto; bottom: auto; transform: none; height: 130px; margin: 14px 16px 0; }
    .tile-feature { flex-wrap: wrap; gap: 4px 10px; }
    .tile-feature .tf-top, .tile-feature .tf-bot { white-space: nowrap; font-size: 12px; }
    .tile-feature .tf-mid { margin-top: 0; }
    .tile-feature .tf-num { font-size: 34px; }
}
@media (max-width: 860px) { .hero-arrow { display: none; } }

/* ========================================================================== 
   E-book des itinéraires (section おすすめ旅程プラン)
   ========================================================================== */
.ebook { max-width: 940px; margin: 0 auto; outline: none; }

.eb-book {
    position: relative; display: grid; grid-template-columns: 1fr 1fr; perspective: 2400px;
    border-radius: 4px 10px 10px 4px; background: #fffdf6;
    box-shadow: 0 0 0 5px var(--red-dark), 0 14px 26px rgba(0,0,0,.3);
}
/* Reliure au centre */
.eb-book::after {
    content: ''; position: absolute; z-index: 6; top: 0; bottom: 0; left: calc(50% - 16px); width: 32px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,.22), transparent);
}

.eb-page { min-height: 500px; overflow: hidden; background: #fffdf6; }

/* Page de gauche = couverture */
.eb-left { position: relative; background: var(--red); border-radius: 4px 0 0 4px; }
.eb-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eb-left .rank-badge { top: 14px; left: 14px; }
.eb-left .pick-ribbon { top: 18px; right: 0; }
.eb-left .book-title-band { left: 0; padding: 60px 18px 18px; }
.eb-left .book-title-band strong { font-size: 20px; }

/* Page de droite = contenu */
.eb-right { position: relative; display: flex; flex-direction: column; padding: 24px 26px 44px; border-radius: 0 10px 10px 0; }
.eb-desc { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.eb-right .itinerary-title { font-size: 21px; }
.eb-pageno { position: absolute; right: 18px; bottom: 12px; font-size: 11px; font-weight: 700; color: var(--gray); }

/* Feuille qui se tourne */
.eb-leaf { display: none; position: absolute; z-index: 5; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d; }
.eb-leaf.is-on { display: block; }
.eb-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.eb-face.back { transform: rotateY(180deg); }
.eb-face.front { background: #fffdf6; }

/* Navigation */
.eb-nav { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; }
.eb-btn { background: var(--red); color: #fff; border: 0; border-bottom: 4px solid var(--red-dark); border-radius: 4px; font-weight: 900; font-size: 14px; padding: 8px 18px; cursor: pointer; font-family: inherit; }
.eb-btn:hover:not(:disabled) { background: var(--red-hot); }
.eb-btn:disabled { opacity: .35; cursor: default; }
.eb-dots { display: flex; gap: 8px; }
.eb-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; background: #c9c9c9; cursor: pointer; }
.eb-dots button.is-active { background: var(--red); transform: scale(1.25); }

/* Défilement vertical de la page conservé sur mobile, glissement horizontal = tourner la page */
.eb-book { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.eb-book:active { cursor: grabbing; }
.eb-book a, .eb-book button { cursor: pointer; }
.eb-cover-img { -webkit-user-drag: none; pointer-events: none; }

/* Ombre qui passe sur la feuille pendant qu'elle se tourne */
.eb-leaf.is-on .eb-face::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,0) 70%);
    animation: ebShade 750ms ease-in-out;
}
.eb-leaf.is-on .eb-face.back::after { background: linear-gradient(270deg, rgba(0,0,0,.35), rgba(0,0,0,0) 70%); }
@keyframes ebShade { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 720px) {
    .eb-book { grid-template-columns: 1fr; }
    .eb-book::after, .eb-leaf { display: none !important; }
    .eb-page { min-height: 0; }
    .eb-left { aspect-ratio: 16 / 10; border-radius: 4px 4px 0 0; }
    .eb-right { border-radius: 0 0 10px 10px; padding: 18px 16px 40px; }
    .eb-btn { padding: 8px 12px; font-size: 13px; }
}

/* ========================================================================== 
   Flipbook 3D (StPageFlip)
   ========================================================================== */
.ebook3d { max-width: 940px; margin: 0 auto; outline: none; }
.eb3-book { width: 100%; }

/* Styles requis par la bibliothèque */
.stf__parent { position: relative; display: block; box-sizing: border-box; transform: translateZ(0); touch-action: pan-y; }
.stf__wrapper, .sft__wrapper { position: relative; width: 100%; box-sizing: border-box; }
.stf__parent canvas { position: absolute; width: 100%; height: 100%; left: 0; top: 0; display: block; }
.stf__block { position: absolute; width: 100%; height: 100%; box-sizing: border-box; perspective: 2000px; }
.stf__item { display: none; position: absolute; transform-style: preserve-3d; }
.stf__outerShadow, .stf__innerShadow, .stf__hardShadow, .stf__hardInnerShadow { position: absolute; left: 0; top: 0; }

/* Pages */
.pg-page { box-sizing: border-box; overflow: hidden; background: #fffdf6; }
.pg-inner { position: relative; height: 100%; box-sizing: border-box; }

/* Couverture (page de gauche) */
.pg-cover { background: var(--red); }
.pg-cover .pg-inner { overflow: hidden; background: var(--red); }
.pg-cover .pg-inner::after {
    content: ''; position: absolute; z-index: 3; top: 0; bottom: 0; right: 0; width: 26px; pointer-events: none;
    background: linear-gradient(270deg, rgba(0,0,0,.28), transparent);
}
.pg-cover .rank-badge { top: 14px; left: 14px; }
.pg-cover .pick-ribbon { top: 18px; right: 0; }
.pg-cover .book-title-band { left: 0; padding: 60px 18px 18px; }
.pg-cover .book-title-band strong { font-size: 20px; }

/* Page de vente (page de droite) */
.pg-info .pg-inner { display: flex; flex-direction: column; padding: 24px 26px 44px; overflow: hidden; }
.pg-info .pg-inner::before {
    content: ''; position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 26px; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.14), transparent);
}
.pg-info .itinerary-title { font-size: 21px; }

@media (max-width: 720px) {
    .pg-info .pg-inner { padding: 16px 16px 34px; }
    .pg-info .itinerary-title { font-size: 18px; }
    .pg-info .eb-desc { -webkit-line-clamp: 3; }
    .pg-info .toc li:nth-child(n+4) { display: none; }
    .pg-info .price-val { font-size: 26px; }
    .pg-info .itinerary-btn { padding: 10px 18px; font-size: 14px; }
}

/* ========================================================================== 
   Flipbook 3D : un itinéraire = une page complète
   ========================================================================== */
.ebook3d { max-width: 560px; }   /* < 600px = une seule page visible */

.pg-single .pg-inner { display: flex; flex-direction: column; overflow: hidden; background: #fffdf6; padding: 0; }
.pg-single .pg-inner::before {
    content: ''; position: absolute; z-index: 5; top: 0; bottom: 0; left: 0; width: 24px; pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.16), transparent);
}

/* Haut de la page : photo + titre */
.pgs-cover { position: relative; flex: 0 0 34%; overflow: hidden; background: var(--red); }
.pgs-cover .rank-badge { top: 12px; left: 14px; }
.pgs-cover .pick-ribbon { top: 16px; right: 0; }
.pgs-cover .book-title-band { left: 0; padding: 48px 18px 14px; }
.pgs-cover .book-title-band strong { font-size: 20px; }

/* Bas de la page : détails + prix + bouton */
.pgs-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 16px 22px 34px; overflow: hidden; }
.pgs-body .toc { margin-bottom: 10px; }
.pgs-body .itinerary-desc { margin-bottom: 10px; }
.pgs-body .price-val { font-size: 30px; }

@media (max-width: 720px) {
    .pgs-cover { flex-basis: 30%; }
    .pgs-cover .book-title-band { padding: 36px 14px 10px; }
    .pgs-cover .book-title-band strong { font-size: 16px; }
    .pgs-body { padding: 12px 14px 28px; }
    .pgs-body .eb-desc { -webkit-line-clamp: 2; }
    .pgs-body .toc li { padding: 3px 10px; font-size: 12px; }
    .pgs-body .toc li:nth-child(n+4) { display: none; }
    .pgs-body .price-val { font-size: 24px; }
    .pgs-body .itinerary-btn { padding: 9px 16px; font-size: 13px; }
}

/* ========================================================================== 
   Coupon : reste un rectangle horizontal court sur mobile (comme sur PC)
   ========================================================================== */
@media (max-width: 720px) {
    .rk-coupon { grid-template-columns: 84px 1fr 78px; border-radius: 6px; }
    .rk-coupon::before, .rk-coupon::after { display: block; left: 84px; width: 14px; height: 14px; }
    .rk-coupon::before { top: -8px; }
    .rk-coupon::after { bottom: -8px; }

    /* Colonne de gauche : la remise */
    .rk-left { flex-direction: column; gap: 0; padding: 20px 4px 8px; border-right: 3px dashed rgba(255,255,255,.75); border-bottom: 0; }
    .rk-ribbon { font-size: 9px; padding: 2px 8px 2px 6px; border-radius: 0 0 10px 0; }
    .discount-num { font-size: 32px; letter-spacing: -1px; }
    .discount-char { font-size: 13px; }
    .rk-sub { display: none; }

    /* Centre : titre + compte à rebours sur une ligne compacte */
    .rk-mid { gap: 5px; padding: 8px 10px; justify-content: center; }
    .rk-title { font-size: 13px; line-height: 1.3; }
    .rk-timer { gap: 3px; flex-wrap: nowrap; }
    .rk-timer-label { display: block; font-size: 9px; margin: 0 2px 0 0; white-space: nowrap; }
    .rk-box { padding: 2px 4px; gap: 1px; border-radius: 3px; }
    .rk-box b { font-size: 14px; }
    .rk-box i { font-size: 8px; }

    /* Droite : bouton compact */
    .rk-right { padding: 8px 6px; border-left: 3px dashed var(--line); border-top: 0; }
    .rk-btn { padding: 10px 2px; font-size: 11px; border-bottom-width: 3px; gap: 2px; text-align: center; }
    .rk-btn svg { display: none; }
}

/* Très petits écrans : on masque le libellé « 残り時間 » pour que les 4 cases tiennent */
@media (max-width: 380px) {
    .rk-coupon { grid-template-columns: 72px 1fr 70px; }
    .rk-coupon::before, .rk-coupon::after { left: 72px; }
    .discount-num { font-size: 26px; }
    .rk-timer-label { display: none; }
    .rk-title { font-size: 12px; }
}

/* ========================================================================== 
   Galerie d'images dans la page de vente du livre
   ========================================================================== */
.pgs-cover { display: flex; flex-direction: column; }
.pgs-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--red); }
.pgs-main-img { transition: opacity .25s ease; }
.pgs-main-img.is-fading { opacity: 0; }

/* Bande de vignettes (boutons cliquables) */
.pgs-thumbs { flex: 0 0 auto; display: flex; gap: 2px; padding: 2px; background: #fffdf6; border-top: 3px solid var(--yellow); }
.pgs-thumb { flex: 1 1 0; min-width: 0; height: 52px; padding: 0; border: 0; background: #ddd; cursor: pointer; overflow: hidden; opacity: .6; transition: opacity .2s; }
.pgs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.pgs-thumb:hover { opacity: 1; }
.pgs-thumb.is-active { opacity: 1; outline: 2px solid var(--red); outline-offset: -2px; }

@media (max-width: 720px) {
    /* un peu plus de place pour la photo + vignettes ; le reste de la page mobile est inchangé */
    .pgs-cover { flex-basis: 36%; }
    .pgs-thumb { height: 38px; }
}
