/* flat.css — design épuré : plus d'ombres, plus de faux relief noir, coins droits,
   carte grise, e-book plein écran sur ordinateur, page « 私たちについて » très simple.
   À charger EN DERNIER. Aucune donnée / logique modifiée. */

/* 1. Plus aucune ombre */
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }

/* 2. Plus de faux relief sombre sous les boutons / étiquettes */
.btn-primary, .itinerary-btn, .eb-btn, .pi-cta, .btn-book, .ab-btn.red,
.to-top { border-bottom: 0 !important; }
.social-btn { border-bottom: 1px solid #dcdcdc !important; }
.pick-ribbon, .step-num { border: 0 !important; }
.pgs-thumbs { border-top: 0 !important; }
.pg-single .pg-inner::before, .pg-info .pg-inner::before, .pg-cover .pg-inner::after { display: none !important; }

/* 3. Coins droits partout... */
*, .tile, .itinerary-thumb { border-radius: 0 !important; }
/* ...sauf ce qui est rond */
.rank-badge, .tile-badge, .sv-icon, .st-btn, .bk-btn, .map-pin-img, .to-top,
.inc-icon, .exc-icon, .tb-arrow, .tb-bbtn, .tb-dot, .eb-dots button { border-radius: 50% !important; }
.tb-dot.is-active { border-radius: 0 !important; }
.madagascar-map .map-pin:has(input:checked)::after,
.notices-head::before { border-radius: 50% !important; }

/* 4. Repères visuels qui utilisaient une ombre : remplacés par un contour */
.madagascar-map .map-pin.is-match .map-pin-img { outline: 4px solid var(--orange); outline-offset: 0; }
.madagascar-map .map-pin.is-flash .map-pin-img { animation: none !important; outline: 5px solid var(--orange); }
.destination-card-label.is-match { outline: 3px solid var(--orange); }
.notice-card.is-selected { outline: 3px solid var(--yellow); transform: none; }

/* 5. Carte de Madagascar : contour noir, intérieur vide (filtre SVG défini dans map.js) */
.madagascar-map { background: #fff; }

/* 6. E-book : retour à la taille d'origine (rien à surcharger) */

/* 7. Page « 私たちについて » : texte simple, sans décor ni fond coloré */
body.ab-page { --serif: var(--font); --gold: #d0d0d0; --gold-lt: #e4e4e4; --gold-dk: #777; background: #fff; }
.ab-article::before { display: none !important; }
.ab-orn { display: block; height: 0; margin: 38px 0; padding: 0; font-size: 0; color: transparent; border-top: 1px solid #e3e3e3; }
.ab-orn::before, .ab-orn::after { display: none; }
.ab-title h1 { color: #222; letter-spacing: .02em; }
.ab-eyebrow { color: #777; letter-spacing: .2em; }
.ab-lead { border-left: 2px solid #ccc; color: #333; font-weight: 500; }
.ab-no { color: #222; -webkit-text-stroke: 0; font-size: 30px; }
.ab-dropcap::first-letter { float: none; margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.ab-quote { font-size: 17px; color: #222; text-align: left; }
.ab-quote::before, .ab-quote::after { content: none; }
.ab-list li { padding-left: 18px; }
.ab-list li::before { width: 5px; height: 5px; top: 13px; left: 2px; background: #999; transform: none; }
.ab-values li { grid-template-columns: 36px 1fr; gap: 14px; }
.ab-values .ab-kanji { width: auto; height: auto; border: 0; outline: 0; background: none; border-radius: 0 !important; font-size: 22px; color: #222; place-items: start; }
.ab-steps li::before { color: #222; }
.ab-steps li::after { border-left: 1px solid #ddd; }
.ab-group img { border: 0; outline: 0; }
.ab-profile div, .ab-faq details { border-bottom: 1px solid #e3e3e3; }
.ab-profile div:first-child, .ab-faq details:first-child { border-top: 1px solid #e3e3e3; }

/* 8. Boutons : couleurs inversées — repos = ancienne couleur de survol ; survol / clic = ancienne couleur de repos */
.btn-primary, .itinerary-btn, .eb-btn, .pi-cta, .btn-book, .ab-btn.red,
.site-search button { background: #e60012 !important; color: #fff !important; }
.btn-primary:hover, .itinerary-btn:hover, .eb-btn:hover:not(:disabled), .pi-cta:hover, .btn-book:hover,
.ab-btn.red:hover, .site-search button:hover,
.btn-primary:active, .itinerary-btn:active, .eb-btn:active:not(:disabled), .pi-cta:active, .btn-book:active,
.ab-btn.red:active, .site-search button:active { background: #bf0000 !important; color: #fff !important; }
.to-top { background: #e60012 !important; }
.to-top:hover, .to-top:active { background: #bf0000 !important; }
.btn-secondary, .btn-yellow { filter: brightness(.95); }
.btn-secondary:hover, .btn-yellow:hover, .btn-secondary:active, .btn-yellow:active { filter: none; }
.btn-copy, .book-copy, .suggest-chip, .ss-add { background: var(--green) !important; color: #fff !important; }
.btn-copy:hover, .book-copy:hover, .suggest-chip:hover, .ss-add:hover,
.btn-copy:active, .book-copy:active, .suggest-chip:active, .ss-add:active { background: #fff !important; color: var(--green) !important; }
.st-btn, .bk-btn { background: #fff !important; color: var(--red) !important; border-color: var(--red) !important; }
.st-btn:hover, .bk-btn:hover, .st-btn:active, .bk-btn:active { background: var(--red) !important; color: #fff !important; }

/* 9. Livre à gauche, encadré « 料金についてのご案内 » à droite, côte à côte (ordinateur) */
@media (min-width: 900px) {
    #destinations .wrap { display: grid; grid-template-columns: 560px minmax(0, 1fr); column-gap: 28px; align-items: start; }
    #destinations .sec-head { grid-column: 1 / -1; }
    #destinations .itinerary-list-container { grid-column: 1; grid-row: 2; }
    #destinations .price-info { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 20px 22px; }
    #destinations .pi-title { font-size: 20px; }
    #destinations .pi-text { font-size: 13.5px; line-height: 1.85; }
    #destinations .pi-bars { height: 110px; }
    #destinations .ebook3d { margin: 0; }
}

/* 11. Liste « 地名から選ぶ » : présentation professionnelle, aux couleurs du site (rouge / crème / gris) */
.dest-list-box { margin-top: 14px; padding: 0; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--red); }
.dest-list-box .dest-list-title { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 900; line-height: 1.5; color: #222; }
.dest-list-box .dest-list-title::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; background: var(--red); }
.dest-list-box .dest-list { counter-reset: dest; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; padding: 4px 12px 8px; max-height: none; }
.dest-list-box .dest-item { counter-increment: dest; gap: 10px; padding: 11px 8px; background: transparent; border: 0; border-bottom: 1px solid #ececec; border-left: 3px solid transparent; color: #222; font-size: 13.5px; font-weight: 700; line-height: 1.4; }
.dest-list-box .dest-item::before { content: counter(dest, decimal-leading-zero); flex: 0 0 auto; min-width: 1.7em; font-size: 11px; font-weight: 900; letter-spacing: .04em; color: #999; }
.dest-list-box .dest-item:hover { background: var(--cream); }
.dest-list-box .dest-item input { -webkit-appearance: none; appearance: none; display: grid; place-content: center; flex: 0 0 auto; width: 18px; height: 18px; margin: 0 0 0 auto; order: 3; background: #fff; border: 2px solid #bbb; cursor: pointer; }
.dest-list-box .dest-item input::after { content: '✓'; display: none; color: #fff; font-size: 12px; font-weight: 900; line-height: 1; }
.dest-list-box .dest-item input:checked { background: var(--red); border-color: var(--red); }
.dest-list-box .dest-item input:checked::after { display: block; }
.dest-list-box .dest-item span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dest-list-box .dest-item:has(input:checked) { background: #fff1f1; border-left-color: var(--red); border-bottom-color: #f0c8c8; color: var(--red); }
.dest-list-box .dest-item:has(input:checked)::before { color: var(--red); }
.dest-list-box .dest-item.is-match { outline: 2px solid var(--orange); outline-offset: -2px; }
@media (max-width: 560px) { .dest-list-box .dest-list { grid-template-columns: 1fr; } }


/* 12. Formulaire d'estimation (ordinateur) : carte à gauche ; à droite liste, dates, personnes ;
       dessous : répartition des participants à gauche, le reste à droite. Aucun vide. */
@media (min-width: 900px) {
    #request-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    #request-form > .form-group:has(#destinations-checkboxes) { display: contents; }
    #request-form #form-error-msg { grid-column: 1 / -1; grid-row: 1; }
    #request-form #destinations-checkboxes ~ .dest-list-box, #request-form .dest-list-box { grid-column: 2; grid-row: 4; margin: 10px 16px 0; align-self: start; }
    #request-form .form-group > .form-label[class] { }
    #request-form > .form-group:has(#destinations-checkboxes) > .form-label { grid-column: 1 / -1; grid-row: 2; margin: 0; padding: 16px 16px 4px; }
    #request-form > .form-group:has(#destinations-checkboxes) > .search-note { grid-column: 1 / -1; grid-row: 3; margin: 0; padding: 0 16px; }
    #request-form #destinations-checkboxes { grid-column: 1; grid-row: 4 / span 3; padding: 8px 16px 16px; align-self: start; }
    #request-form .madagascar-map { max-width: 360px; }
    #request-form .form-row-grid:has(#arrival_date) { grid-column: 2; grid-row: 5; border-left: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: 14px; }
    #request-form .form-row-grid:has(#duration_days) { grid-column: 2; grid-row: 6; border-left: 1px solid var(--line); }
    #request-form .form-row-grid { align-self: start; }
    #request-form .form-row-grid .form-group { border-bottom: 0; }
    #request-form .form-group:has(#party-grid) { grid-column: 1; grid-row: 7 / span 5; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
    #request-form .party-grid { flex: 1; display: grid; grid-template-rows: auto repeat(8, 1fr); }
    #request-form .pg-row:not(.pg-head):nth-child(odd) { background: #fafafa; }
    #request-form .st-btn { width: 36px; height: 36px; }
    #request-form .form-group:has(input[name="travel_pace"]) { grid-column: 2; grid-row: 7; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
    #request-form .form-group:has(#trip_goal) { grid-column: 2; grid-row: 8; border-left: 1px solid var(--line); }
    #request-form .form-group:has(#client_email) { grid-column: 2; grid-row: 9; border-left: 1px solid var(--line); }
    #request-form .form-group:has(#promo_code) { grid-column: 2; grid-row: 10; border-left: 1px solid var(--line); }
    #request-form .form-submit-wrapper { grid-column: 2; grid-row: 11; border-left: 1px solid var(--line); padding-top: 16px; }
    /* encadré « 料金についてのご案内 » : même hauteur que le livre, sans vide */
    #destinations .price-info { align-self: stretch; display: flex; flex-direction: column; }
    #destinations .pi-chart { flex: 1; display: flex; flex-direction: column; }
    #destinations .pi-bars { flex: 1; height: auto; min-height: 110px; }
}

/* 13. Carte : l'image dépasse du cadre (calée sur les pins) -> on affiche tout, y compris la pointe sud */
.madagascar-map svg { overflow: visible; }
.madagascar-map { margin-bottom: 64px; }


/* 14. 最新情報 : likes / dislikes + icône de partage */
.nw-card { overflow: visible; }
.nw-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.nw-react { display: inline-flex; border: 1px solid var(--line); }
.nw-react button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; background: #fff; color: #444; font-family: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.nw-react button + button { border-left: 1px solid var(--line); }
.nw-react button:hover { background: var(--cream); }
.nw-react svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.nw-react .nw-like.is-on { color: var(--red); }
.nw-react .nw-dislike.is-on { color: #222; }
.nw-react .is-on svg { fill: currentColor; }
.nw-card.is-linked { outline: 3px solid var(--red); outline-offset: 2px; }
.nw-toast { position: fixed; left: 50%; bottom: 84px; z-index: 500; padding: 10px 18px; transform: translate(-50%, 20px); background: rgba(34, 34, 34, .94); color: #fff; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.nw-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Partage : choix du réseau (ordinateur) */
.nw-share { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50% !important; background: transparent; color: #444; cursor: pointer; }
.nw-share:hover, .nw-share:active { background: var(--red); color: #fff; }
.nw-share svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }