/* ============================================================
   Italico Professional Web Standard v4.0
   ============================================================ */

/* --- 1. Base Reset --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: #030303; color: #fff; font-family: 'Noto Sans JP', sans-serif; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1); }
img { max-width: 100%; height: auto; display: block; }

/* --- 2. Header --- */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(3, 3, 3, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px 0;
    transition: padding 0.4s ease;
}
.header.scrolled { padding: 10px 0; }
.header-container { max-width: 1400px; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 28px; }
.global-nav { display: none; }

/* ハンバーガーボタン */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
    z-index: 1100;
}
.nav-toggle span {
    display: block; width: 22px; height: 1px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* モバイルメニューオーバーレイ */
.mobile-nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(3, 3, 3, 0.97);
    backdrop-filter: blur(20px);
    z-index: 1050;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
}
.mobile-nav-overlay .mobile-close {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; cursor: pointer;
    width: 44px; height: 44px;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 0;
}
.mobile-nav-overlay .mobile-close span {
    display: block; width: 22px; height: 1px;
    background: rgba(255,255,255,0.6);
}
.mobile-nav-overlay .mobile-close span:nth-child(1) { transform: rotate(45deg) translateY(0.5px); }
.mobile-nav-overlay .mobile-close span:nth-child(2) { transform: rotate(-45deg) translateY(-0.5px); }
.mobile-nav-overlay ul {
    list-style: none; text-align: center;
    display: flex; flex-direction: column; gap: 0;
    width: 100%; padding: 0 40px;
}
.mobile-nav-overlay ul li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav-overlay ul li:first-child {
    border-top: 1px solid rgba(255,255,255,0.05);
}
.mobile-nav-overlay ul li a {
    display: block;
    padding: 22px 0;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem; letter-spacing: 0.25em;
    color: rgba(255,255,255,0.7); text-transform: uppercase;
    transition: color 0.2s ease;
}
.mobile-nav-overlay ul li a:hover,
.mobile-nav-overlay ul li a.active { color: #E30012; }
.mobile-nav-store {
    margin-top: 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem; letter-spacing: 0.2em;
    color: #E30012; text-transform: uppercase;
    border: 1px solid rgba(227,0,18,0.5);
    padding: 12px 32px;
    transition: all 0.3s ease;
}
.mobile-nav-store:hover { background: #E30012; color: #fff; }
.btn-store-outline {
    border: 1px solid rgba(227, 0, 18, 0.8);
    color: #fff;
    padding: 7px 18px;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    font-family: 'Oswald', sans-serif;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-store-outline:hover { background: #E30012; border-color: #E30012; }

@media (min-width: 1024px) {
    .logo img { height: 34px; }
    .global-nav { display: block; }
    .global-nav ul { display: flex; gap: 36px; list-style: none; }
    .global-nav a {
        color: rgba(255,255,255,0.75);
        font-size: 0.7rem;
        letter-spacing: 0.18em;
        font-family: 'Oswald', sans-serif;
        font-weight: 400;
        text-transform: uppercase;
        position: relative;
    }
    .global-nav a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 1px;
        background: #E30012;
        transition: width 0.3s ease;
    }
    .global-nav a:hover { color: #fff; }
    .global-nav a:hover::after { width: 100%; }
    .global-nav a.active { color: #fff; }
    .global-nav a.active::after { width: 100%; }
}

/* --- 3. Capsule Grid (横一列・スリムカード) --- */
.lineup-section { padding: 80px 0 120px; background-color: #000; }

.capsule-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
    align-items: stretch;
}

@media (min-width: 900px) {
    .capsule-grid {
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 1px;
        padding: 0 40px;
    }
    .capsule-item {
        flex: 1;
        max-width: none;
        width: auto;
    }
    .capsule-item::before { display: none; }
    .capsule-inner {
        position: relative;
        inset: auto;
    }
}

.capsule-item {
    position: relative;
    width: 100%;
}
.capsule-item::before { content: ""; display: block; padding-top: 100%; }

.capsule-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
    padding: 36px 28px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.015);
    transition: background 0.4s ease, border-color 0.4s ease;
}
.capsule-item:hover .capsule-inner {
    background: rgba(255,255,255,0.04);
}

/* 各カプセル・ボーダートップアクセント */
.classic .capsule-inner   { border-top: 2px solid #8b4513; }
.arabica .capsule-inner   { border-top: 2px solid #a9a9a9; }
.top-cream .capsule-inner { border-top: 2px solid #e60012; }
.long-cap .capsule-inner  { border-top: 2px solid #c9a96e; }
.deka .capsule-inner      { border-top: 2px solid #2d7a4f; }

.capsule-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    margin-bottom: 0;
    flex-shrink: 0;
}
.classic .capsule-dot   { background-color: #8b4513; }
.arabica .capsule-dot   { background-color: #a9a9a9; }
.top-cream .capsule-dot { background-color: #e60012; }
.long-cap .capsule-dot  { background-color: #c9a96e; }
.deka .capsule-dot      { background-color: #2d7a4f; }

.capsule-top {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.capsule-type {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.capsule-desc {
    font-size: 0.78rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.5);
    flex: 1;
    margin: 0;
}
.capsule-price {
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.05em;
}

/* --- 4. ボタン共通 --- */
.btn-primary-line {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.85);
    padding: 15px 52px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.68rem;
    font-family: 'Oswald', sans-serif;
    background: transparent;
    cursor: pointer;
    transition: all 0.35s ease;
}
.btn-primary-line:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* btn系（company等） */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; font-size: 0.75rem; letter-spacing: 0.1em; border-radius: 0; transition: all 0.3s ease; }
.btn-outline-accent { border: 1px solid rgba(227,0,18,0.7); color: #fff; background: transparent; font-family: 'Oswald', sans-serif; font-size: 0.68rem; letter-spacing: 0.15em; }
.btn-outline-accent:hover { background: #E30012; border-color: #E30012; }
.btn-accent { background: #E30012; color: #fff; border: 1px solid #E30012; font-family: 'Oswald', sans-serif; font-size: 0.75rem; letter-spacing: 0.1em; }
.btn-accent:hover { background: transparent; color: #E30012; }

/* --- 5. Footer共通 --- */
.footer { background: #000; padding: 60px 20px; text-align: center; border-top: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.3); font-size: 0.72rem; letter-spacing: 0.1em; font-family: 'Oswald', sans-serif; }

/* --- 6. スマホ共通 --- */
@media (max-width: 768px) {
    .header-container { padding: 0 20px; }
    .logo img { height: 26px; }
    .btn-store-outline { padding: 6px 12px; font-size: 0.62rem; }
    .nav-toggle { display: flex; }
    .lineup-section { padding: 60px 0 80px; }
    .capsule-grid { padding: 0 16px; gap: 10px; }
    .btn-primary-line { padding: 14px 36px; font-size: 0.65rem; }
}