@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Oswald:wght@500;700&display=swap');

:root {
    --primary-red: #E60012;
    --text-black: #333333;
    --text-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    --gold: #c5a059;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-black);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
.font-oswald {
    font-family: 'Oswald', sans-serif;
}

.text-red {
    color: var(--primary-red);
}

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

.text-center {
    text-align: center;
}

.fw-bold {
    font-weight: 700;
}

/* Layout Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.grid {
    display: grid;
    gap: 20px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: var(--text-black);
    color: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-red {
    background-color: var(--primary-red);
    color: #fff;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    border-radius: 5px;
    /* Less rounded for some buttons as per design */
}

.btn-small-gray {
    background-color: #555;
    padding: 10px 30px;
    font-size: 12px;
}

/* Header */
header {
    background: #fff;
    border-bottom: 3px solid var(--primary-red);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    font-size: 12px;
    font-weight: 700;
}

.header-icons {
    display: flex;
    gap: 15px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Selection Gate (Index) specific */
.gate-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.gate-split {
    flex: 1;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: flex 0.5s ease;
}

.gate-split:hover {
    flex: 1.2;
}

.gate-split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 0.5s;
}

.gate-split:hover img {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.gate-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 100%;
}

.gate-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Feature Sections (Red/White Zig Zag) */
.feature-section {
    display: flex;
    flex-wrap: wrap;
    min-height: 400px;
}

.feature-section.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    min-width: 300px;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-img {
    flex: 1;
    min-width: 300px;
    position: relative;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-section:hover .feature-img img {
    transform: scale(1.05);
}

.bg-red {
    background-color: var(--primary-red);
    color: white;
}

.bg-white {
    background-color: white;
    color: var(--text-black);
}

.step-number {
    font-family: 'Oswald', sans-serif;
    font-size: 80px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 10px;
    opacity: 0.9;
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

.feature-desc {
    font-size: 14px;
    margin-bottom: 30px;
}

/* Menu Section */
.menu-section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title span {
    display: block;
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    color: #666;
}

.section-title.white-text {
    color: white;
}

.section-title.white-text span {
    color: #ccc;
}


.menu-item {
    display: flex;
    margin-bottom: 60px;
    align-items: center;
    gap: 40px;
}

.menu-item.reverse {
    flex-direction: row-reverse;
}

.menu-img {
    flex: 1.2;
    position: relative;
}

.menu-img img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.menu-content {
    flex: 1;
}

.menu-number {
    font-family: 'Oswald', sans-serif;
    font-size: 60px;
    color: #eee;
    -webkit-text-stroke: 1px #333;
    line-height: 1;
    margin-bottom: -20px;
    z-index: -1;
    position: relative;
}

.menu-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.price-tag {
    background: var(--primary-red);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.plan-card {
    background: white;
    padding: 20px;
    text-align: center;
}

.plan-card img {
    width: 100%;
    margin-bottom: 15px;
}

.plan-tags {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.tag {
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
}

.plan-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Concept Section */
.concept-section {
    position: relative;
    padding: 100px 0;
    background: #fff;
    overflow: hidden;
}

.bg-text-nikuiine {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    font-size: 30vw;
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    color: var(--primary-red);
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
}

.concept-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.concept-img {
    flex: 1;
    min-width: 300px;
}

.concept-text {
    flex: 1;
    min-width: 300px;
    padding: 40px;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 60px 0;
    font-size: 12px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-col {
    margin-right: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 14px;
}

.footer-col ul {
    list-style: none;
    line-height: 2;
}

.footer-logo {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 900;
    border: 2px solid white;
    padding: 10px;
    display: inline-block;
}

/* Mobile specific fixes */
@media (max-width: 768px) {

    .feature-section,
    .feature-section.reverse {
        flex-direction: column;
    }

    .feature-img {
        height: 250px;
        order: 1;
        /* Always show image first on mobile */
    }

    .feature-text {
        order: 2;
        padding: 40px 20px;
    }

    .gate-container {
        flex-direction: column;
    }

    .menu-item,
    .menu-item.reverse {
        flex-direction: column;
        text-align: left;
    }

    .menu-img {
        width: 100%;
    }
}

/* Control Bar */
.control-bar {
    display: flex;
    flex-wrap: wrap;
}

.control-btn {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
    gap: 15px;
}

.control-btn:hover {
    opacity: 0.9;
}

.control-red {
    background-color: var(--primary-red);
}

.control-dark {
    background-color: #333;
}

.control-icon {
    border: 2px solid white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* Dark Bar Section Title */
/* Used for RECOMMEND and PLAN titles in the reference */
.dark-title-bar {
    background: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-bottom: 50px;
    position: relative;
    width: 100%;
}

.dark-title-bar span {
    display: block;
    font-size: 14px;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

.dark-title-bar h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

/* Movie Section */
.movie-section {
    padding: 60px 0;
    text-align: center;
    background: #f0f0f0;
}

.movie-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.movie-container iframe,
.movie-container video,
.movie-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flow Section */
.flow-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.flow-title-steps {
    font-size: 30px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-red);
}

.flow-wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.flow-card {
    background: white;
    width: 220px;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s;
}

.flow-card:hover {
    transform: translateY(-5px);
}

.flow-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-red);
}

.flow-step-num {
    background: var(--text-black);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

.flow-text {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.flow-subtext {
    font-size: 11px;
    color: #888;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .flow-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .flow-card {
        width: 100%;
        max-width: 350px;
    }
}