/* =====================================================================
   TOP: Hero Section — Figma (HeroSection.tsx + CTAButton.tsx) 完全準拠
   =====================================================================
   既存テーマCSS (base.css / common.css) を確実に上書きするため
   全プロパティに !important を付与。hero セクション外には影響しない。
   =================================================================== */

/* -----------------------------------------------------------------
   0. Tailwind v4 フォントスタック（Figmaと同一）
   Figma は Tailwind v4 の ui-sans-serif を使用。
   macOS: SF Pro → ヒラギノ角ゴ ProN
   Windows: Segoe UI → Yu Gothic
   ----------------------------------------------------------------- */

/* -----------------------------------------------------------------
   1. テーマCSS 完全リセット
   base.css  → html * { font-feature-settings:"palt" }
   common.css → font-family:"Helvetica Neue",游ゴシック体...
   common.css → h1-h4 { line-height:1.5 }
   ----------------------------------------------------------------- */
.hero,
.hero *,
.hero *::before,
.hero *::after {
    font-family: Helvetica, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo,
                 sans-serif, "Apple Color Emoji", "Segoe UI Emoji" !important;
    font-feature-settings: normal !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
}

/* -----------------------------------------------------------------
   2. Section — Figma: relative pt-32 pb-16 px-4 sm:px-6 lg:px-8
      bg-gradient-to-br from-[#002040] via-[#003366] to-[#002040]
   ----------------------------------------------------------------- */
.hero {
    position: relative;
    padding: 120px 32px 64px !important;
    background: linear-gradient(to bottom right, #002040 0%, #003366 50%, #002040 100%) !important;
    overflow: hidden;
}

/* -----------------------------------------------------------------
   3. Background: dot pattern — Figma: opacity-20, radial-gradient
   ----------------------------------------------------------------- */
.hero__pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.2;
    pointer-events: none;
    background-image: radial-gradient(circle at 1px 1px, rgba(207, 255, 4, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

/* -----------------------------------------------------------------
   4. Background: slider — Figma: absolute inset-0 overflow-hidden
      各スライド: absolute top-0 right-0 w-full lg:w-3/5 h-full
   ----------------------------------------------------------------- */
.hero__slider-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__slider-bg .hero__swiper {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
}

.hero__slider-bg .swiper-wrapper {
    height: 100%;
}

.hero__slider-bg .swiper-slide {
    width: 100%;
    height: 100%;
    /* Figma: mask で端をフェード */
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%),
                linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%),
                        linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

/* Figma: opacity 0.6 で表示 */
.hero__slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6;
}

/* Figma: bg-gradient-to-r from-[#002040] via-[#002040]/50 to-transparent */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #002040, rgba(0, 32, 64, 0.5), transparent);
    pointer-events: none;
    z-index: 1;
}

/* -----------------------------------------------------------------
   5. Content container
      Figma: max-w-7xl(1280px) mx-auto relative z-10
   ----------------------------------------------------------------- */
.hero__container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

/* Figma: max-w-3xl (768px) */
.hero__inner {
    max-width: 768px;
}

/* Figma: space-y-6 → children 間に 24px */
.hero__stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* -----------------------------------------------------------------
   6. Badge — Figma: inline-block px-6 py-1.5 bg-[#CCFF00]
      text-[#002040] shadow-glow-yellow
      内側 span: text-[20px] font-bold tracking-wide
   ----------------------------------------------------------------- */
.hero__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 6px 24px !important;
    background: #CCFF00 !important;
    color: #002040 !important;
    box-shadow: 0 0 20px rgba(204, 255, 0, 0.3);
    line-height: 1.5 !important;
}

.hero__badge-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
}

/* -----------------------------------------------------------------
   7. Heading — Figma: text-white text-[64px] leading-[1.1]
      font-weight はデフォルト（Tailwind preflight = inherit = 400）
   ----------------------------------------------------------------- */
.hero .hero__heading {
    color: #FFFFFF !important;
    font-size: 56px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

/* アクセントカラー（黄緑） */
.hero .hero__heading .is-accent {
    color: #CCFF00 !important;
}

/* 見出し画像(テキストの代わりに画像を入稿した場合) */
.hero .hero__heading-image {
    display: block;
    max-width: 70%;
    width: 70%;
    height: auto;
    margin: 0;
    padding: 0;
}

/* スクリーンリーダー専用(視覚的に非表示・SEOとa11y用にテキストh1は残す) */
.hero .hero__heading--sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* -----------------------------------------------------------------
   8. Subtitle — Figma: text-body-lg text-[#D1D5DC] max-w-xl text-[24px]
      text-body-lg = font-size:18px; line-height:1.625; font-weight:400
      ただし text-[24px] で上書き → 最終的に 24px
   ----------------------------------------------------------------- */
.hero .hero__subtitle {
    color: #D1D5DC !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.625 !important;
    max-width: 576px;
    margin: 0 !important;
    padding: 0 !important;
}

/* -----------------------------------------------------------------
   9. CTA Buttons — Figma: flex flex-col sm:flex-row gap-3 pt-4
   ----------------------------------------------------------------- */
.hero__cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px !important;
}

/* 共通ボタンスタイル — Figma CTAButton md:
   px-8(32px) py-2.5(10px) text-[18px] rounded-lg font-medium
   inline-flex items-center justify-center gap-2 */
.hero__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 32px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Primary — Figma: bg-[#CCFF00] text-[#002040]
   hover: bg-[#b3e600] scale-105 shadow-button-hover */
.hero__btn--primary {
    background: #CCFF00 !important;
    color: #002040 !important;
    box-shadow: 0 2px 4px rgba(0, 32, 64, 0.1);
}

.hero__btn--primary:hover {
    background: #b3e600 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 32, 64, 0.15);
}

.hero__btn--primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

/* White — Figma: bg-white text-[#002040]
   hover: bg-gray-100 scale-105 */
.hero__btn--white {
    background: #FFFFFF !important;
    color: #002040 !important;
    box-shadow: 0 2px 4px rgba(0, 32, 64, 0.1);
}

.hero__btn--white:hover {
    background: #f3f4f6 !important;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 32, 64, 0.15);
}

/* -----------------------------------------------------------------
   10. Slider dots — Figma: flex gap-2 pt-6 justify-end pr-12
   ----------------------------------------------------------------- */
.hero__dots {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px !important;
    padding-right: 48px !important;
}

.hero__pagination {
    display: flex;
    gap: 8px;
}

/* Figma: w-2 h-2 rounded-full, inactive=rgba(255,255,255,0.4) */
.hero__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4) !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

/* Figma: active = #CCFF00, width: 24px */
.hero__pagination .swiper-pagination-bullet-active {
    width: 24px;
    background: #CCFF00 !important;
}

/* =================================================================
   Responsive
   Figma: px-4(16px) on mobile, sm:px-6(24px), lg:px-8(32px)
   ================================================================= */

/* Tablet */
@media only screen and (max-width: 1024px) {
    .hero__slider-bg .hero__swiper {
        width: 100%;
    }
}

/* Mobile */
@media only screen and (max-width: 640px) {
    .hero {
        padding: 48px 16px 48px !important;
    }

    .hero .hero__heading {
        font-size: 36px !important;
    }

    .hero .hero__subtitle {
        font-size: 18px !important;
        max-width: 100%;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__btn {
        width: 100%;
    }

    .hero__dots {
        justify-content: center;
        padding-right: 0 !important;
    }
}
