/* ==========================================================================
   缶つま × 北海道ワイン ペアリングLP
   kantsuma.css
   ========================================================================== */

body {
    background-color: #ffffff;
}

/* LPコンテンツ部分にのみ専用フォントを適用（サイト共通ヘッダー・フッターは対象外） */
.kantsuma-scope {
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

/* サイト共通の固定（sticky/fixed）ヘッダーにタイトルが隠れないための余白。
   WordPress版のみで使用。実際のヘッダーの高さに合わせて数値を調整してください。 */
.kantsuma-header-offset {
    padding-top: 180px;
}

/* ACFで設定したヘッダー画像（アイキャッチ）。WordPress版のみで使用。 */
.kantsuma-header-image img {
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-stripe {
    height: 8px;
    background: repeating-linear-gradient(
        -45deg,
        #ff334b, #ff334b 14px,
        #ffcc00 14px, #ffcc00 28px
    );
}

.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.site-logo {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 700;
    color: #ff334b;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Title (original comic-banner treatment)
   -------------------------------------------------------------------------- */

.comic-title-banner {
    background-color: #ff334b;
    border: 4px solid #111111;
    box-shadow: 6px 6px 0px #111111;
    transform: rotate(-1deg);
}

.comic-text {
    color: #ffffff;
    font-weight: 900;
    text-shadow:
        -2px -2px 0 #111,  2px -2px 0 #111,
        -2px  2px 0 #111,  2px  2px 0 #111,
        0px  4px 0px rgba(0,0,0,0.8);
}

/* --------------------------------------------------------------------------
   Panel cards — soft flat-poster style (no thick outline, soft drop shadow)
   -------------------------------------------------------------------------- */

.comic-panel {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
    position: relative;
    overflow: hidden;
}

.comic-panel-yellow {
    background-color: #ffd93d;
    border-radius: 1.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.comic-panel-blue {
    background-color: #4fc8f0;
    border-radius: 1.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.comic-panel-pink {
    background-color: #ff7bb0;
    border-radius: 1.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.comic-panel-green {
    background-color: #3ecf9e;
    border-radius: 1.25rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* Speech / thought bubble */
.comic-bubble {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    position: relative;
}
.comic-bubble::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 12px solid #ffffff;
}

/* Bubble variant used above the sommelier: tail points down, offset to the left */
.comic-bubble-tail-left::after {
    left: 22%;
    transform: none;
}

/* Sommelier character illustration */
.sommelier-photo {
    height: 11rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/* Bubble + sommelier vertical pairing (2-tier stack):
   bubble aligned to the top, sommelier aligned to the bottom, with a little
   breathing room below so the speech-bubble tail never touches the character. */
.sommelier-stack {
    flex: 1 1 0;
    min-width: 6rem;
    display: flex;
}
.sommelier-stack .comic-bubble {
    width: 100%;
    flex-shrink: 0;
}

/* Badge / name-plate boxes (no outline, soft lift) */
.info-badge {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.name-plate {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Button with soft tactile press effect */
.comic-btn {
    border: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.20);
    font-weight: 900;
    transition: all 0.12s ease;
}
.comic-btn:active {
    transform: translateY(2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);
}

/* --------------------------------------------------------------------------
   Bottle image slot (placeholder until real bottle photos are supplied)
   -------------------------------------------------------------------------- */

.bottle-slot {
    width: 6rem;
    height: 11rem;
    border: 2px dashed #b0b0b0;
    border-radius: 0.75rem;
    background-color: #f7f7f7;
    background-image: repeating-linear-gradient(
        45deg,
        #f0f0f0, #f0f0f0 10px,
        #f9f9f9 10px, #f9f9f9 20px
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
    color: #888888;
    padding: 0.5rem;
    flex-shrink: 0;
}
.bottle-slot .bottle-slot-icon {
    font-size: 1.5rem;
    line-height: 1;
}
.bottle-slot .bottle-slot-label {
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1.3;
}

.bottle-photo {
    height: 15rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
    align-self: center;
}

/* Pairing-photo row (can photo + bottle/sommelier column): a container query
   context so the bottle and sommelier can be sized as a percentage of this
   exact row's width — the same reference the can photo's own width already
   scales against (it's a 50:50 split). This keeps all three photos locked to
   the same proportions at literally every screen width, from phone to
   desktop, instead of approximating with vw/breakpoints that drift out of
   sync with the real rendered size once padding is taken into account.
   NOTE: this block must stay AFTER the .can-photo-frame / .bottle-photo /
   .sommelier-photo / .sommelier-stack base rules above — CSS cascade is
   source-order-based, so an earlier same-specificity rule here would get
   silently overridden by those later base declarations. */
.pairing-photos-row {
    container-type: inline-size;
}

/* Only below the 960px 2-column breakpoint — above that the cards are already
   validated at their fixed desktop sizes (15rem bottle / 11rem sommelier)
   and shouldn't be touched by container-relative sizing. */
@media (max-width: 959px) {
    @container (min-width: 1px) {
        .can-photo-frame {
            width: 42cqw;
            max-width: min(100%, 15rem);
        }
        .bottle-photo {
            height: 42cqw;
            max-height: 15rem;
        }
        .sommelier-photo {
            height: 36cqw;
            max-height: 11rem;
        }
        .sommelier-stack {
            max-width: 40cqw;
        }
    }
}

/* --------------------------------------------------------------------------
   Mini pairing cards ("まだまだある" section)
   -------------------------------------------------------------------------- */

.mini-pairing-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.10);
}

.wine-selection-banner {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Staggered offset — shifts a column down for a dynamic comic-panel feel
   (Gemini reference composition). Desktop only; mobile stays stacked flush.
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {
    .stagger-down {
        margin-top: 3rem;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background-color: #111111;
}
