/* ============================================
   Gift Rich - Components
   高級感あるUIコンポーネント
   ============================================ */

/* ========== Header ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
}

.header__logo {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text-heading);
    letter-spacing: var(--tracking-wide);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.header__logo:hover {
    opacity: 0.8;
    color: var(--color-text-heading);
}

.header__logo-accent {
    color: var(--color-gold-primary);
}

.header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.header__nav-list {
    display: flex;
    gap: var(--space-5);
}

@media (max-width: 1023px) {
    .header__nav-list {
        display: none;
    }
}

.header__nav-link {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    font-weight: var(--font-medium);
    padding: var(--space-2) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-primary);
    transition: width var(--transition-base);
}

.header__nav-link:hover {
    color: var(--color-text-heading);
}

.header__nav-link:hover::after {
    width: 100%;
}

.header__auth {
    display: flex;
    gap: var(--space-3);
}

@media (max-width: 1023px) {
    .header__auth {
        display: none;
    }
}

.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: var(--min-touch-target);
    height: var(--min-touch-target);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-heading);
    transition: all var(--transition-fast);
}

@media (max-width: 1023px) {
    .header__menu-toggle {
        display: flex;
    }
}

/* ========== Mobile Menu ========== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-modal);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.3s, opacity var(--transition-slow);
}

.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
}

.mobile-menu__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: var(--color-surface);
    padding: var(--space-6);
    transform: translateX(100%);
    transition: transform var(--transition-slow) var(--ease-out-expo);
    overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu__content {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.mobile-menu__close {
    width: var(--min-touch-target);
    height: var(--min-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.mobile-menu__close:hover {
    color: var(--color-text-heading);
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-8);
}

.mobile-menu__link {
    display: block;
    padding: var(--space-4);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.mobile-menu__link:hover {
    background: var(--color-surface-elevated);
    color: var(--color-text-heading);
}

.mobile-menu__auth {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: var(--min-touch-target);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    text-decoration: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

/* Primary - Gold background */
.btn--primary {
    background: var(--color-gold-primary);
    color: var(--color-base-black);
    border: none;
}

.btn--primary:hover {
    background: var(--color-gold-light);
    color: var(--color-base-black);
    box-shadow: var(--shadow-gold);
}

/* Solid - Outlined gold */
.btn--solid {
    background: transparent;
    color: var(--color-gold-primary);
    border: 1px solid var(--color-gold-primary);
}

.btn--solid:hover {
    background: rgba(201, 162, 39, 0.1);
    color: var(--color-gold-light);
    border-color: var(--color-gold-light);
}

/* Ghost - No border */
.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
}

.btn--ghost:hover {
    background: var(--color-surface-elevated);
    color: var(--color-text-heading);
    border-color: var(--color-text-muted);
}

/* Sizes */
.btn--sm {
    min-height: 36px;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn--lg {
    min-height: 52px;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn--full {
    width: 100%;
}

/* ========== Cards ========== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.card--elevated {
    background: var(--color-surface-elevated);
}

/* ========== Section Headers ========== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    letter-spacing: var(--tracking-wide);
}

@media (max-width: 639px) {
    .section-header__title {
        font-size: var(--text-3xl);
    }
}

.section-header__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-body);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Steps ========== */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

@media (max-width: 767px) {
    .steps__grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
}

.steps__grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
    .steps__grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .steps__grid--4 {
        grid-template-columns: 1fr;
    }
}

.step-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-family: var(--font-numeric);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-gold-primary);
    border: 2px solid var(--color-gold-primary);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.step-card__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    color: var(--color-gold-primary);
}

.step-card__icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.step-card__title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-3);
    color: var(--color-text-heading);
}

.step-card__text {
    font-size: var(--text-base);
    color: var(--color-text-body);
    line-height: var(--leading-relaxed);
}

/* ========== Rate Table ========== */
.rate-table-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    overflow: hidden;
}

.rate-table {
    width: 100%;
    border-collapse: collapse;
}

.rate-table th,
.rate-table td {
    padding: var(--space-4) var(--space-6);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.rate-table th {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
}

.rate-table td {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.rate-table tr:last-child td {
    border-bottom: none;
}

.rate-table tbody tr:hover {
    background: rgba(201, 162, 39, 0.05);
}

.rate-value {
    font-family: var(--font-numeric);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-gold-primary);
}

.rate-table__note {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ========== Calculator ========== */
.calculator {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    max-width: 500px;
    margin: 0 auto;
}

.calculator__title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    text-align: center;
    margin-bottom: var(--space-6);
}

.calculator__input-group {
    margin-bottom: var(--space-6);
}

.calculator__label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.calculator__input {
    width: 100%;
    height: 56px;
    font-size: var(--text-xl);
    font-family: var(--font-numeric);
    text-align: center;
    background: var(--color-base-black);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: var(--color-text-heading);
}

.calculator__input:focus {
    border-color: var(--color-gold-primary);
    box-shadow: var(--shadow-gold);
}

.calculator__result {
    background: var(--color-base-black);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    margin-bottom: var(--space-6);
}

.calculator__result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
}

.calculator__result-row:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
}

.calculator__result-label {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.calculator__result-value {
    font-family: var(--font-numeric);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--color-gold-primary);
}

.calculator__result-value--large {
    font-size: var(--text-2xl);
    color: var(--color-text-heading);
}

.calculator__warning {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-error);
    margin-bottom: var(--space-4);
}

.calculator__warning.is-visible {
    display: flex;
}

/* ========== Trust Section ========== */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.trust-item {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.trust-item__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-primary);
}

.trust-item__icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.trust-item__content h4 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    color: var(--color-text-heading);
}

.trust-item__content p {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    line-height: var(--leading-relaxed);
}

/* ========== Reviews ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.review-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-muted);
    color: var(--color-gold-primary);
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
}

.review-card__meta {
    flex: 1;
}

.review-card__name {
    font-weight: var(--font-medium);
    color: var(--color-text-heading);
    margin-bottom: var(--space-1);
}

.review-card__date {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

.review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-4);
}

.review-card__star {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
}

.review-card__star--filled {
    color: var(--color-gold-primary);
}

.review-card__content {
    font-size: var(--text-base);
    color: var(--color-text-body);
    line-height: var(--leading-relaxed);
}

.review-card__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-3);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    background: var(--color-base-black);
    border-radius: var(--radius-sm);
}

/* ========== Accordion (FAQ) ========== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion__item {
    border-bottom: 1px solid var(--color-border);
}

.accordion__item:first-child {
    border-top: 1px solid var(--color-border);
}

.accordion__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: var(--min-touch-target);
    padding: var(--space-5) 0;
    text-align: left;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--color-text-heading);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.accordion__header:hover {
    color: var(--color-gold-primary);
}

.accordion__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--color-gold-primary);
    transition: transform var(--transition-base);
}

.accordion__item.is-open .accordion__icon {
    transform: rotate(180deg);
}

.accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow) var(--ease-out-expo);
}

.accordion__item.is-open .accordion__content {
    max-height: 500px;
}

.accordion__body {
    padding: 0 0 var(--space-6);
    font-size: var(--text-base);
    color: var(--color-text-body);
    line-height: var(--leading-relaxed);
}

/* ========== CTA Section ========== */
.cta-section {
    text-align: center;
    padding: var(--space-24) var(--space-6);
    background: linear-gradient(180deg, var(--color-base-black) 0%, var(--color-surface) 100%);
}

.cta-section__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
}

@media (max-width: 639px) {
    .cta-section__title {
        font-size: var(--text-3xl);
    }
}

.cta-section__subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-body);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

/* ========== Mobile Fixed CTA ========== */
.mobile-fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed-cta);
    display: none;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
}

@media (max-width: 767px) {
    .mobile-fixed-cta {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }
}

.mobile-fixed-cta .btn {
    flex: 1;
    justify-content: center;
}

/* ========== Footer ========== */
.footer {
    background: var(--color-base-black);
    border-top: 1px solid var(--color-border);
    padding: var(--space-16) 0 var(--space-8);
}

.footer__inner {
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

@media (max-width: 767px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }
}

@media (max-width: 479px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__brand {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .footer__brand {
        grid-column: 1;
    }
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-4);
}

.footer__logo-accent {
    color: var(--color-gold-primary);
}

.footer__description {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 300px;
    line-height: var(--leading-relaxed);
}

.footer__section-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    margin-bottom: var(--space-4);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-gold-primary);
}

.footer__bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ========== Hero Section ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-24) var(--space-6);
    padding-top: calc(var(--space-24) + 70px);
    background: var(--color-base-black);
    position: relative;
    overflow: hidden;
}

/* Hero スライダー（動画背景の代替）
   画像読み込み中でも黒一色にならないよう、ダークなグラデーションをフォールバックに敷く */
.hero--slider {
    background:
        radial-gradient(circle at top, rgba(201, 162, 39, 0.18), transparent 36%),
        linear-gradient(135deg, #080808 0%, #141414 52%, #030303 100%);
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 800ms ease, transform 1200ms ease;
}

.hero-slider__slide.is-active {
    opacity: 1;
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__slide {
        transition: opacity 200ms ease;
        transform: none;
    }
}

/* Hero は常にダーク背景（スライド＋オーバーレイ）のため、
   テーマ（ライト/ダーク）に依存せずテキストを明色で固定して可読性を確保する */
.hero--slider .hero__title {
    color: #F2F2F2;
}

.hero--slider .hero__product {
    color: #DcDcDc;
}

.hero--slider .hero__note {
    color: rgba(255, 255, 255, 0.72);
}

/* スライドドット */
.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), border-color var(--transition-fast);
}

.hero-slider__dot.is-active {
    background: var(--color-gold-primary);
    border-color: var(--color-gold-primary);
}

@media (max-width: 640px) {
    .hero-slider__dots {
        bottom: 18px;
    }
}

/* Dark Overlay - Gradient for readability */
.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.75) 50%,
            rgba(0, 0, 0, 0.85) 100%);
    z-index: 2;
}

/* Content above video and overlay */
.hero__content {
    max-width: 800px;
    position: relative;
    z-index: 3;
}

/* ========== Hero Intro Animation ========== */
.hero-intro {
    opacity: 0;
    transform: translateY(6px);
}

/* Logo animation - appears first, starts larger and scales down */
.hero-intro--logo {
    opacity: 0;
    transform: scale(1.15) translateY(8px);
    animation: heroLogoFadeIn 1.4s ease-out 0.5s forwards;
}

/* Delayed elements - appear after logo */
.hero-intro--delayed {
    animation: heroFadeIn 1.0s ease-out 1.6s forwards;
}

/* Logo specific animation with scale */
@keyframes heroLogoFadeIn {
    from {
        opacity: 0;
        transform: scale(1.15) translateY(8px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* prefers-reduced-motion: disable animations */
@media (prefers-reduced-motion: reduce) {
    .hero-intro {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .hero-intro--logo {
        opacity: 1;
        transform: none;
        animation: none;
    }
}



.hero__content {
    max-width: 800px;
}

.hero__badge {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    color: var(--color-gold-primary);
    border: 1px solid var(--color-gold-primary);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-8);
    letter-spacing: var(--tracking-wide);
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    line-height: var(--leading-none);
    letter-spacing: var(--tracking-tight);
    margin-bottom: var(--space-6);
}

@media (max-width: 639px) {
    .hero__title {
        font-size: var(--text-5xl);
    }
}

.hero__title-sub {
    display: block;
    font-size: var(--text-3xl);
    font-weight: var(--font-normal);
    color: var(--color-gold-primary);
    margin-top: var(--space-4);
}

@media (max-width: 639px) {
    .hero__title-sub {
        font-size: var(--text-2xl);
    }
}

.hero__products {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

@media (max-width: 639px) {
    .hero__products {
        flex-direction: column;
        gap: var(--space-4);
    }
}

.hero__product {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-base);
    color: var(--color-text-secondary);
}

.hero__product-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hero__note {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    max-width: 400px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-muted);
    animation: scrollIndicator 2s infinite;
    z-index: 3;
}

.hero__scroll svg {
    width: 24px;
    height: 24px;
}

/* スマホ: Heroが縦長になりすぎないよう高さを調整 */
@media (max-width: 640px) {
    .hero--slider {
        min-height: 760px;
    }
}

/* ========== Section Backgrounds ========== */
.section--surface {
    background: var(--color-surface);
}

.section--dark {
    background: var(--color-base-black);
}

/* ========== Notification Bell ========== */
.header__notification {
    position: relative;
    margin-right: var(--space-3);
}

.notification-bell {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.notification-bell:hover {
    background: var(--color-surface-elevated);
    border-color: var(--color-gold-primary);
    color: var(--color-gold-primary);
}

.notification-bell__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-error);
    color: white;
    font-size: 10px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    padding: 0 4px;
}

.notification-bell__badge:empty,
.notification-bell__badge[hidden],
.notification-bell__badge[data-count="0"] {
    display: none;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + var(--space-3));
    right: 0;
    width: 340px;
    max-height: 400px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: var(--z-dropdown);
    overflow: hidden;
}

.notification-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.notification-dropdown__title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
}

.notification-dropdown__mark-read {
    font-size: var(--text-xs);
    color: var(--color-gold-primary);
    background: none;
    border: none;
    cursor: pointer;
}

.notification-dropdown__mark-read:hover {
    text-decoration: underline;
}

.notification-dropdown__list {
    max-height: 280px;
    overflow-y: auto;
}

.notification-item {
    display: block;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
    text-decoration: none;
}

.notification-item:hover {
    background: var(--color-surface-elevated);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.is-unread {
    background: rgba(201, 162, 39, 0.05);
}

.notification-item.is-unread::before {
    content: '';
    position: absolute;
    left: var(--space-3);
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-gold-primary);
    border-radius: var(--radius-full);
}

.notification-item__date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.notification-item__title {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--color-text-heading);
    margin-bottom: var(--space-1);
}

.notification-item__body {
    font-size: var(--text-xs);
    color: var(--color-text-body);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notification-dropdown__footer {
    padding: var(--space-3) var(--space-5);
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.notification-dropdown__footer a {
    font-size: var(--text-sm);
    color: var(--color-gold-primary);
}

.notification-dropdown__footer a:hover {
    text-decoration: underline;
}

@media (max-width: 639px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: var(--space-4);
        right: var(--space-4);
        width: auto;
    }
}
/* ========== 本人確認（KYC）／ステータスバッジ ========== */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    white-space: nowrap;
}

.status-badge--verified {
    color: #6BD69A;
    background: rgba(76, 175, 80, 0.14);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.status-badge--unverified {
    color: var(--color-gold-light);
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.45);
}

.status-badge--pending {
    color: #7FB2FF;
    background: rgba(33, 150, 243, 0.14);
    border: 1px solid rgba(33, 150, 243, 0.4);
}

.status-badge--rejected {
    color: #FF8A8A;
    background: rgba(255, 107, 107, 0.14);
    border: 1px solid rgba(255, 107, 107, 0.4);
}

/* KYC ステップ */
.kyc-steps {
    display: grid;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.kyc-steps--horizontal {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    margin: var(--space-8) 0;
}

@media (max-width: 640px) {
    .kyc-steps--horizontal {
        grid-template-columns: 1fr;
    }
}

.kyc-step {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-4);
    border: 1px solid rgba(201, 162, 39, 0.22);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.03);
}

.kyc-steps--horizontal .kyc-step {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-3);
}

.kyc-step.is-current {
    border-color: var(--color-gold-primary);
    background: rgba(201, 162, 39, 0.08);
}

.kyc-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-gold-primary);
    color: var(--color-base-black);
    font-family: var(--font-numeric);
    font-weight: var(--font-bold);
}

.kyc-step__content h3,
.kyc-step h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-1);
}

.kyc-step__content p {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--leading-relaxed);
}

/* 汎用フォームメッセージ（KYC・申込などで共通利用） */
.form-message {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
    margin-top: var(--space-4);
}

.form-message[hidden] {
    display: none;
}

.form-message--error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: var(--color-error);
}

.form-message--success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #6BD69A;
}

.form-message--warning {
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.4);
    color: var(--color-gold-light);
}

.form-message .btn {
    margin-top: var(--space-3);
}

/* 本人情報カード内の行（マイページ） */
.account-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.account-info-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.account-info-row:last-child {
    border-bottom: none;
}

.account-info-label {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.account-info-value {
    font-size: var(--text-base);
    color: var(--color-text-heading);
    text-align: right;
}

.mypage-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

/* ========== マイページ ダッシュボード テーブル ========== */
.dashboard-card__link {
    font-size: var(--text-sm);
    color: var(--color-gold-primary);
    white-space: nowrap;
}

.dashboard-card__link:hover {
    color: var(--color-gold-light);
    text-decoration: underline;
}

.dashboard-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
    font-size: var(--text-sm);
}

.dashboard-table th,
.dashboard-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}

.dashboard-table th {
    color: var(--color-text-muted);
    font-weight: var(--font-medium);
    font-size: var(--text-xs);
}

.dashboard-table td {
    color: var(--color-text-body);
}

.dashboard-table__empty {
    text-align: center !important;
    color: var(--color-text-muted);
    padding: var(--space-6) var(--space-4) !important;
    white-space: normal !important;
}

.dashboard-table .amount-in {
    color: #6BD69A;
}

.dashboard-table .amount-out {
    color: var(--color-error);
}

/* ========== 2段階認証 設定モーダル ========== */
.two-factor-step {
    display: flex;
    gap: var(--space-4);
    align-items: flex-start;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.two-factor-step:last-of-type {
    border-bottom: none;
}

.two-factor-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--color-gold-primary);
    color: var(--color-base-black);
    font-family: var(--font-numeric);
    font-weight: var(--font-bold);
}

.two-factor-step__content {
    flex: 1;
    min-width: 0;
}

.two-factor-step__content h3 {
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-heading);
    margin-bottom: var(--space-2);
}

.two-factor-step__content p {
    font-size: var(--text-sm);
    color: var(--color-text-body);
    line-height: var(--leading-relaxed);
}

.store-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.two-factor-qr {
    width: 160px;
    height: 160px;
    margin: var(--space-4) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 8px, transparent 8px 16px),
        var(--color-base-black);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.two-factor-qr span {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.secret-key-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--color-base-black);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.secret-key-box code {
    font-family: var(--font-mono);
    color: var(--color-gold-primary);
    letter-spacing: 0.08em;
    word-break: break-all;
}
