/* ============================================================================
   SOLARIS — single-viewport 3D beverage showcase (electric-citrus energy)
   No scroll: the whole page is one fixed 100vh stage. A z-stacked hero holds a
   centre <model-viewer> vessel, orbiting props at three depths, a spotlight
   solar-citrus background that cross-fades between two flavors (warm ↔ cool),
   and rising bubbles. The two radial palettes below are mirrored in the inline
   script (FLAVORS) — keep them in sync.
   ============================================================================ */

:root {
    --text-color: #ffffff;
    --muted-color: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* 書体は「ラテン主役 → 和文 → 総称」の順に連結する。ロゴの SOLARIS は Galada、
       和文の見出しは Galada が和文グリフを持たないので Noto Sans JP が受ける。 */
    --font-heading: 'Galada', 'Noto Sans JP', cursive;
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
    --font-jp: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;

    /* the single gilt accent — radiant gold catches the eye against espresso */
    --accent: #ffd23f;
    --accent-ink: #2a1206;

    /* solar-citrus spotlight — WARM (default: sun amber core) */
    --bg-inner: #ff8a1e;
    --bg-mid: #7a3a0c;
    --bg-outer: #2a1206;
    --center-glow: rgba(255, 138, 30, 0.12);
}

/* solar-citrus spotlight — COOL (electric lime core) */
body.cool-theme {
    --bg-inner: #a8e05f;
    --bg-mid: #3f6b1f;
    --bg-outer: #14200a;
    --center-glow: rgba(168, 224, 95, 0.12);
}

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

/* body の overflow:hidden だけでは、ビューポートへ伝播したあとも文書のスクロール領域
   （scrollWidth / scrollHeight）は残る。缶（.hero-vessel は position:fixed の 100vw を
   25deg 回した箱）とオーブ・葉の装飾レイヤーが器の外へ出た分がそのまま残り、1200px 以下では
   scrollWidth が clientWidth を 51〜175px 上回っていた。html 側にも clip を置いて、
   「1画面完結・スクロールしない」という宣言を最後まで効かせる。 */
html {
    overflow: hidden;
}

body {
    background: radial-gradient(circle at center, var(--bg-inner) 0%, var(--bg-mid) 50%, var(--bg-outer) 100%);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow: hidden;          /* single fixed viewport, never scrolls */
    height: 100vh;
    transition: background 1.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* 和文の行分割を厳密に（小書き仮名・長音符が行頭に落ちるのを防ぐ）。 */
    line-break: strict;
    /* 和文は本来どこでも改行できるので、放っておくと「で／す。」のように語が
       真っ二つになる。auto-phrase は文節の切れ目でだけ折る指定。未対応の
       ブラウザでは無視され、従来の折り返しに戻るだけ。 */
    word-break: auto-phrase;
    /* 合成ボールドで輪郭が濁るのを防ぐ（実際に読み込んだウェイトだけを使う）。
       読み込んでいるのは Inter 400/500/600・Manrope 400/700・Noto Sans JP 400/500/700・
       Shippori Mincho 500・Galada 400。ウェイトを増やすときは <link> の側も一緒に足すこと。 */
    font-synthesis-weight: none;
}

/* 和文の字詰め（palt）は大きな見出しにだけ。本文や小ラベルに当てると
   「、」「。」が潰れて句読点が無いように見える。 */
h1,
h2 {
    font-feature-settings: "palt" 1;
}

/* 最終行に1〜2字だけ残る「孤立行」を避ける。 */
p {
    text-wrap: pretty;
}

/* ---- Header --------------------------------------------------------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.nav {
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.4rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.nav.glass {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-item {
    /* ここだけ --font-* トークンを経由しない直書き。和文の受け皿を別途足してある。 */
    font-family: 'Manrope', 'Noto Sans JP', sans-serif;
    color: var(--muted-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-item:hover,
.nav-item.active {
    background: var(--accent);
    color: var(--accent-ink);
}

.contact-btn {
    /* UA スタイルシートが <button> の font-family をリセットするので、body の指定が
       届かない。明示で当てないと OS 既定（Windows なら Meiryo）で描かれる。 */
    font-family: var(--font-main);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    /* 狭い幅ではヘッダーの flex-shrink でボタンが潰れ、語中で改行されてしまう。 */
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

/* ---- Hero shell ----------------------------------------------------------- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4%;
    padding-top: 5rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
}

/* ---- Display type --------------------------------------------------------- */
.main-title,
.side-title {
    font-family: var(--font-heading);
    /* ★英語版は 10vw（上限 12rem）。和文は全角送りで1字＝1em なので、同じ vw だと
       「泡が／弾ける」「ずっと／爽快」が中央の缶と葉に寄りすぎる。8.5vw に落として
       約15%小さく（ボス指示 2026-08-07）。 */
    font-size: clamp(4.25rem, 8.5vw, 10rem);
    line-height: 1.05;      /* 和文は仮想ボディが詰まっているので 0.8 だと上下段が食い込む。
                               1.15 まで開けると狭い画面で左カラムが下から溢れるので 1.05 が上限。 */
    font-weight: 400;
    white-space: nowrap;
    color: white;
}

.outline {
    color: var(--text-color);
}

/* 明朝のキッカー。ゴシック主体の版面に一行だけ入る細い声。 */
.jp-kicker {
    font-family: var(--font-jp);
    font-size: 0.9rem;
    letter-spacing: .1em;   /* 0.18em は英大文字前提のトラッキング。和文は間延びする */
    color: var(--muted-color);
}

.jp-kicker--right {
    align-self: flex-end;
    text-align: right;
}

/* ---- Left column ---------------------------------------------------------- */
.hero-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 6rem 0;
    gap: 2rem;
    z-index: 100;
}

.description {
    color: var(--muted-color);
    font-size: 1.1rem;
    line-height: 1.6;      /* 和文の本文はラテンより行間を開ける。1.8 だと狭い画面で下の行が
                              画面外へ落ちる（body が overflow: hidden でスクロールできない）。 */
    max-width: 400px;
}

.primary-btn {
    /* <button> は書体を継承しない（UA スタイルシートのリセット）。明示で当てる。 */
    font-family: var(--font-main);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 0.4rem 0.4rem 0.4rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    width: fit-content;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-3px);
}

.plus-icon {
    background: var(--accent);
    color: var(--accent-ink);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    padding-bottom: 2px;   /* nudge the glyph off the baseline */
    border: none;
}

.tagline-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;       /* pin to the bottom of the column */
}

.tagline-icon {
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tagline-text {
    display: flex;
    flex-direction: column;
}

.tagline-label {
    font-size: 0.7rem;
    letter-spacing: .06em;   /* 和文は 0.1em だと字が離れて見える */
    color: var(--muted-color);
}

.tagline-sub {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ---- Centre vessel -------------------------------------------------------- */
.hero-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.3s forwards, float 6s ease-in-out infinite;
    pointer-events: none;
    background: radial-gradient(circle at center, var(--center-glow) 0%, transparent 70%);
}

.hero-vessel {
    width: 80vw;
    height: 80vh;
    outline: none;
    --progress-bar-color: transparent;
    --poster-color: transparent;
    z-index: 1;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(25deg);
    pointer-events: none;
}

.hero-vessel[camera-controls] {
    pointer-events: auto;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

/* ---- Bubbles -------------------------------------------------------------- */
#bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bubble {
    position: absolute;
    pointer-events: none;
    height: auto;
}

@keyframes rise {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10%  { opacity: 0.4; }
    90%  { opacity: 0.4; }
    100% { transform: translateY(-110vh) translateX(30px) rotate(360deg); opacity: 0; }
}

/* ---- Orbiting props ------------------------------------------------------- */
.orbs-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 110;             /* above text (100) and vessel (50 mid-switch) */
    transition: transform 0.1s ease-out;
}

.orbs-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;               /* behind the vessel */
    transition: transform 0.1s ease-out;
}

.leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;              /* furthest back */
    transition: transform 0.1s ease-out;
}

.orb {
    position: absolute;
    width: 120px;
    height: 120px;
    outline: none;
    --progress-bar-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.orb-1 { top: 25%; left: 30%; width: 220px; height: 220px; }
.orb-2 { top: 60%; left: 42%; width: 100px; height: 100px; }
.orb-3 { top: 30%; left: 62%; width: 250px; height: 250px; }
.orb-4 { top: 15%; left: 48%; width: 140px; height: 140px; }
.orb-5 { top: 75%; left: 20%; width: 120px; height: 120px; }
.orb-6 { top: 45%; left: 75%; width: 180px; height: 180px; }
.orb-7 { top: 15%; left: 40%; width: 80px;  height: 80px;  opacity: 0.7; }
.orb-8 { top: 50%; left: 55%; width: 70px;  height: 70px;  opacity: 0.6; }
.orb-9 { top: 80%; left: 35%; width: 75px;  height: 75px;  opacity: 0.7; }

/* ---- Far leaves ----------------------------------------------------------- */
.leaf {
    position: absolute;
    width: 60px;
    height: 60px;
    pointer-events: none;
    z-index: -1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.leaf-1 { top: 10%; left: 15%; }
.leaf-2 { top: 40%; left: 80%; width: 140px; height: 140px; opacity: 0.4; }
.leaf-3 { top: 70%; left: 75%; width: 80px;  height: 80px; }
.leaf-4 { top: 85%; left: 20%; width: 120px; height: 120px; opacity: 0.3; }

/* ---- Right column --------------------------------------------------------- */
.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    height: 100%;
    padding: 6rem 0;
    z-index: 100;
    width: 450px;
    pointer-events: none;
}

.product-carousel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-end;
    pointer-events: auto;    /* the cards are the one interactive island */
}

.carousel-cards {
    display: flex;
    gap: 1rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    padding-top: 5rem;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 135px;
    position: relative;
    backdrop-filter: blur(10px);
    text-align: center;
}

.card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.card.active {
    border-color: var(--accent);
    border-width: 1px;
    background: var(--glass-bg);
}

.card img {
    width: 140px;
    height: auto;
    margin-top: -8rem;       /* float the render above the frosted tile */
    filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.5));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    display: block;
    will-change: transform;
    pointer-events: none;    /* pointer passes through to trigger card hover */
}

.card:hover img {
    transform: translateY(-30px) rotate(-12deg) scale(1.15) !important;
}

.card-info {
    display: flex;
    flex-direction: column;
    font-size: 0.7rem;
    width: 100%;
    word-wrap: break-word;
}

.card-info span:first-child {
    font-weight: 600;
}

.card-info span:last-child {
    color: var(--muted-color);
}

.carousel-nav {
    display: flex;
    gap: 1rem;
}

.nav-arrow {
    /* <button> は書体を継承しない（UA スタイルシートのリセット）。他の2つのボタンと同じく
       明示で当てる。外すと OS 既定（Windows では Arial）で矢印が描かれ、他と字面が食い違う。 */
    font-family: var(--font-main);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-title {
    align-self: flex-end;
    text-align: right;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 1200px) {
    .hero-content {
        flex-direction: column;
        padding-top: 8rem;
    }

    .hero-center {
        order: -1;
    }

    .hero-vessel {
        width: 100vw;
        height: 60vh;
        top: 40%;
    }

    .main-title,
    .side-title {
        font-size: 4.25rem;   /* 上の clamp と同じ比率で縮めてある（元 5rem） */
    }

    .hero-right {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .jp-kicker--right,
    .side-title {
        align-self: center;
        text-align: center;
    }
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-center {
        animation: fadeIn 0.01s ease-out forwards;
    }

    body {
        transition: none;
    }
}
