:root {
    --primary-color: #004A98;
    /* Main: Deep Blue */
    --secondary-color: #003366;
    /* Darker Blue */
    --accent-color: #fff100;
    /* Sub: Bright Yellow */
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --light-bg: #f5f9f5;
    /* Very light green tint */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: #005aa7;
    /* Updated highlight color */
}

.bg-light {
    background-color: var(--light-bg);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 139, 87, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-white {
    background: var(--white);
    color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    /* Remove border radius */
    letter-spacing: 0.1em;
    /* Tracking 100 */
}

.btn-white:hover {
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Button Overrides */
.hero-btns .btn,
.header .btn {
    border-radius: 0;
    letter-spacing: 0.2em;
}

.header .btn-primary {
    background: var(--accent-color);
    color: #333;
    /* Black text on yellow button */
    border: none;
    box-shadow: none;
}

.hero-btns .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: none;
}

/* Thinner border for outline button in hero */
.hero-btns .btn-outline {
    border-width: 1px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.header .nav-list a {
    color: var(--white);
    /* White text default */
}

.header.sticky {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
}

.header.sticky .nav-list a {
    color: var(--text-dark);
    /* Dark text on sticky white bg */
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

.header.sticky .logo img {
    height: 35px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    /* Matches text color (Red on hover) */
    transition: width 0.3s ease;
}

.nav-list a:hover::after {
    width: 100%;
}

.nav-list a:not(.nav-btn):hover {
    color: #e83623;
    /* Red */
}

/* Header Specific: App Button white text/border per request */
.header .btn-primary.nav-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.header .btn-primary.nav-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}


.header.sticky .btn-primary.nav-btn {
    border-color: #333;
    /* Black/Dark border on scroll */
    color: #333;
}

.header.sticky .nav-list a:not(.nav-btn):hover {
    color: #e83623;
    /* Red */
}

.header.sticky .btn-primary.nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.nav-btn {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.hamburger {
    display: none;
    /* Add mobile menu logic later if needed */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-bottom: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 74, 152, 0.6);
    /* Blue overlay 60% opacity */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    /* Increased width to fit side-by-side plans */
    text-align: center;
    /* Center everything */
    margin: 0 auto;
    padding-top: 150px;
    /* Space from header */
}

.hero-main-title {
    margin-bottom: 0px;
    /* Reduced spacing */
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-brand {
    font-size: 2rem;
    font-weight: 500;
    /* Lighter weight */
    display: block;
    margin-bottom: -10px;
    /* Tighten spacing */
}

/* .hero-title-main represents the largest text "豕穂ｺｺ蟆ら畑縺ｮ譬ｼ螳唄IM" */
.hero-title-main {
    display: block;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 10px 0 10px;
    letter-spacing: 0.02em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .hero-title-main {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title-main {
        font-size: 2.5rem;
    }
}

.hero-catch-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    /* Reduced gap */
    margin-top: 20px;
    /* Reduced margin to move text up */
}

.catch-copy-small {
    font-size: 1.1rem;
    /* Significantly smaller */
    font-weight: 500;
    display: block;
    letter-spacing: 0.1em;
    /* Tracking 100 */
    opacity: 0.9;
}

.catch-copy-large {
    font-size: 2rem;
    /* Significantly smaller than 3.5rem */
    font-weight: 700;
    display: block;
    line-height: 1.4;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.1em;
    /* Tracking 100 */
}

@media (max-width: 768px) {
    .catch-copy-small {
        font-size: 0.9rem;
    }

    .catch-copy-large {
        font-size: 1.5rem;
    }
}

.hero-plans-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    /* Move DOWN away from text */
    margin-bottom: 40px;
    /* Add whitespace below */
    z-index: 0;
    position: relative;
    flex-wrap: wrap;
}

.hero-plan-img {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    transition: transform 0.3s ease;
}

.hero-plan-img img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.hero-plan-img:hover {
    transform: translateY(-5px) scale(1.02);
}

.hero-btns {
    display: flex;
    justify-content: center;
    /* Center buttons */
    gap: 50px;
    /* Increased gap */
}

.hero-btns .btn i {
    margin-left: 10px;
    font-size: 0.9em;
}

/* Features */
/* Features */
/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns */
    gap: 30px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

.feature-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: none;
    /* Removed transition */
    border: 2px solid var(--primary-color);
    /* Permanent blue border */
    height: 100%;
    /* Equal height */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}



.feature-num {
    color: var(--primary-color);
    font-size: 1.25rem;
    /* Match h3 size or slightly larger/distinct */
    margin-right: 5px;
    font-weight: 700;
}

.feature-icon {
    font-size: 1.8rem;
    /* Smaller icon font size */
    color: #20B2AA;
    /* Icon color Teal */
    margin-bottom: 15px;
    /* Reduced margin */
    background: var(--light-bg);
    width: 60px;
    /* Smaller width */
    height: 60px;
    /* Smaller height */
    line-height: 60px;
    /* Match height */
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: #20B2AA;
    /* Background Teal on hover */
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* New Feature Details */
.feature-detail {
    text-align: left;
    margin-top: 20px;
    background: #f8fbff;
    padding: 15px;
    border-radius: 8px;
}

.feature-group {
    margin-bottom: 20px;
}

.feature-group:last-child {
    margin-bottom: 0;
}

.f-label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    /* Darker than var(--text-light) */
    font-weight: 500;
    /* Slightly bolder */
    margin-bottom: 5px;
}

.f-strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 5px;
}

.f-highlight {
    font-size: 1.2em;
}

.docomo-logo {
    display: inline-block;
    height: 1.1em;
    width: auto;
    vertical-align: baseline;
    margin-left: 5px;
}

.belong-logo {
    display: inline-block;
    height: 1.5em;
    /* Slightly larger than text to be visible */
    width: auto;
    vertical-align: middle;
    margin-left: 5px;
}

.f-sub {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.f-desc {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 5px;
    color: var(--text-dark);
}

.f-note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 5px;
    line-height: 1.4;
}

/* Plans Image Container */
.plans-image-container {
    max-width: 1000px;
    margin: 0 auto 30px;
    text-align: center;
}

.plans-image-container img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
}

.plan-header {
    text-align: center;
    margin-bottom: 20px;
}

.plan-header h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.plan-data {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.price-val {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.price-unit {
    font-size: 1rem;
    color: var(--text-light);
}

.price-tax {
    font-size: 0.8rem;
    color: var(--text-light);
}

.plan-features {
    margin-bottom: 30px;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.plan-features i {
    color: var(--primary-color);
}

.plans-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Added Plan Card Styles */
.plans-swiper {
    padding: 20px 50px 70px;
    /* Increased side padding for arrows, bottom for dots */
    width: 100%;
}

/* Custom Navigation Arrows */
.plans-swiper .swiper-button-next,
.plans-swiper .swiper-button-prev {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.plans-swiper .swiper-button-next:after,
.plans-swiper .swiper-button-prev:after {
    font-size: 16px;
    /* Smaller arrow icon */
    font-weight: 700;
}

.plans-swiper .swiper-button-next:hover,
.plans-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* Position arrows in the padding area */
.plans-swiper .swiper-button-prev {
    left: 5px;
}

.plans-swiper .swiper-button-next {
    right: 5px;
}

/* Custom Pagination Dots */
.plans-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.6;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.plans-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    width: 30px;
    /* Elongated pill shape */
    border-radius: 5px;
}

.plans-swiper .swiper-pagination {
    bottom: 20px !important;
    /* Ensure consistent spacing */
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.plan-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 40px 30px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    /* Ensure height matches largest card */
    height: 100%;
    border-top: 6px solid #e0e0e0;
}

.plan-card.data-sim {
    border-color: #20B2AA;
    /* Green Frame */
}

/* Specific button coloring for Data SIM */
.plan-card.data-sim .btn {
    background-color: #20B2AA;
    border-color: #20B2AA;
    color: #fff !important;
    /* Force white text */
}

.plan-card.data-sim .btn:hover {
    background-color: #1a948e;
    /* Darker shade */
    border-color: #1a948e;
}

.plan-card.data-sim .plan-header-compact .plan-data-large {
    color: #20B2AA;
    /* Green Text */
}

.plan-card.voice-sim .plan-header-compact .plan-data-large {
    color: #005aa7;
    /* Blue Text #005aa7 */
}

/* Hover effects */
.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.plan-card.recommended {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 74, 152, 0.15);
}

/* Compact Plan Card Styles */
.plan-card.compact {
    padding: 25px 20px;
    align-items: center;
    text-align: center;
    min-height: auto;
}

.plan-header-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.plan-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0px;
}

.plan-data-large {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    margin-top: -5px;
}

.plan-data-large .unit {
    font-size: 1.2rem;
    font-weight: 600;
}

.plan-price-compact {
    margin-bottom: 20px;
}

.plan-price-compact .price-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    /* Changed to black/dark from primary color */
    font-family: 'Poppins', sans-serif;
}

.plan-price-compact .price-unit {
    font-size: 0.9rem;
}

.plan-price-compact .price-tax {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Row Titles & Badges */
.plans-row-title {
    text-align: center;
    margin: 40px 0 20px;
    position: relative;
    z-index: 1;
}

.plans-row-title span {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    font-weight: 700;
    font-size: 1.8rem;
}

.badge-data {
    color: #20B2AA;
    background: none;
}

.badge-voice {
    color: var(--primary-color);
    background: none;
}

.row-spacer {
    height: 40px;
}

/* Adjust button placement for compact card */
.plan-card.compact .btn {
    margin-top: 0;
    width: 100%;
}


.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: #333;
    font-weight: 700;
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.05em;
    z-index: 2;
}

.plan-card .btn {
    margin-top: auto;
    /* Push button to bottom */
    width: 100%;
}


/* Campaign */
.campaign-box {
    position: relative;
    border-radius: var(--border-radius-xl);
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Desktop: left align */
    justify-content: center;
    color: var(--white);
    overflow: hidden;
    min-height: 350px;
    /* Ensure height */
    z-index: 1;
}

/* Gradient Overlay */
.campaign-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Blue gradient on top of image (Brand colors) */
    background: linear-gradient(135deg, rgba(0, 74, 152, 0.85), rgba(0, 51, 102, 0.85));
    z-index: 2;
    pointer-events: none;
}

.campaign-content {
    flex: none;
    /* Reset flex */
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 600px;
}

.campaign-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.campaign-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.campaign-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
    margin: 0;
    opacity: 1;
}

.campaign-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    max-height: none;
}

/* Flow */
.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.step-item {
    text-align: center;
    flex: 1;
}

.step-num {
    font-size: 1.5rem;
    /* Smaller font for inline/top placement */
    font-weight: 700;
    color: var(--primary-color);
    /* Make it visible */
    line-height: 1;
    margin-bottom: 10px;
    /* Space between number and icon */
    position: static;
    /* Reset from relative/z-index hack */
    z-index: auto;
}

.step-icon {
    font-size: 2rem;
    background: var(--white);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    /* Adjust margin */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--secondary-color);
    position: relative;
}

.step-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.step-item p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.step-arrow {
    padding-top: 40px;
    color: #ddd;
    font-size: 1.5rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    color: var(--text-dark);
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    /* Stack logo and links vertically */
    align-items: center;
    /* Center everything */
    justify-content: center;
    gap: 30px;
    /* Space between logo and links */
    margin-bottom: 30px;
}

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

.footer-logo img {
    height: 30px;
    width: auto;
    margin: 0 auto 10px;
    /* Explicitly center */
    display: block;
    /* Ensure block for margin auto */
    opacity: 1;
    filter: brightness(0) invert(1);
}

.footer-logo p {
    font-size: 0.8rem;
    color: #fff;
}

.footer-tagline {
    font-size: 1.1rem !important;
    margin: 10px 0;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    gap: 20px;
    /* Adjust gap for links */
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #fff;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: #fff;
    font-size: 0.85rem;
}

/* SIM Feature Section */
.sim-feature {
    background: #fff;
    padding: 80px 0;
}

.sim-container {
    display: flex;
    flex-direction: column;
    /* Stacked vertical */
    align-items: center;
    gap: 40px;
    text-align: center;
}

.sim-content {
    max-width: 800px;
    margin: 0 auto;
}

.sim-title {
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
    font-size: 2.5rem;
    font-weight: 700;
}

.sim-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: left;
    /* Keep readable text align left or center? User usually prefers center for centered layout but maybe let's keep left for readability block */
    text-align: center;
    /* Actually for wide layouts center text is often better if not too wide. */
}

/* Wide image */
/* Header Container Override for specific positioning */
.header-container {
    max-width: 100%;
    /* Break out of center grid */
    padding-left: 50px;
    /* Adjust left spacing if needed, or keep standard */
    padding-right: 200px;
    /* 200px from right */
    box-sizing: border-box;
}

.sim-img {
    width: 100%;
    text-align: center;
}

.sim-img img {
    width: 100%;
    /* Full width */
    max-width: 1000px;
    /* Constraint to sensible max width or remove if truly 'max' needed. */
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    margin: 0 auto;
    /* Ensure centering */
    display: block;
    /* Required for margin auto if not inline-block/flex */
}

/* Responsive */
@media (max-width: 992px) {
    .sim-container {
        flex-direction: column;
        text-align: center;
    }

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

    .sim-img {
        text-align: center;
        margin-top: 30px;
    }

    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .plan-card.featured {
        transform: none;
    }

    .plan-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .header .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.8);
        padding: 0;
        box-shadow: none;
        flex-direction: row;
        justify-content: flex-end;
        align-items: stretch;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .header .nav.active {
        display: flex;
        opacity: 1;
        visibility: visible;
    }

    /* Prevent scrolling when menu is open */
    .header .nav.active~body {
        overflow: hidden;
    }

    .nav-list {
        background: var(--white);
        width: 66.66%;
        /* 2/3 width */
        height: 100%;
        padding: 80px 20px 40px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        overflow-y: auto;
        margin-bottom: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .header .nav.active .nav-list {
        transform: translateX(0);
    }

    .header .nav-list a {
        color: var(--text-dark);
        display: block;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    /* Contact Button in Mobile Menu */
    .header .btn-primary.nav-btn {
        background: transparent;
        color: var(--text-dark);
        border: 1px solid var(--text-dark);
        margin-top: 20px;
        width: 100%;
        box-shadow: none;
        transition: all 0.3s ease;
    }

    .header .btn-primary.nav-btn:hover {
        background: var(--primary-color);
        color: var(--white);
        border-color: var(--primary-color);
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        position: absolute;
        transition: 0.3s;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 9px;
    }

    .hamburger span:nth-child(3) {
        top: 18px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .flow-steps {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        display: none;
        /* Hide arrows on mobile stack */
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .campaign-box {
        position: relative;
        height: 300px;
        /* "Half" height approx, enough to fit content */
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        overflow: hidden;
    }

    .campaign-content {
        position: relative;
        z-index: 3;
        margin-bottom: 0;
        width: 100%;
        /* Overrides desktop max-width if needed or inherit */
        max-width: 100%;
    }

    .campaign-content p {
        text-align: left;
    }



    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-links ul {
        flex-direction: column;
        gap: 15px;
    }

    /* Added Responsive Styles */
    .hero-content {
        padding-top: 100px;
    }

    .hero-brand img {
        max-width: 140px;
        /* Reduced from 200px for mobile */
    }

    .hero-title-main {
        font-size: 13vw;
        /* Larger distinct size for mobile */
        margin: 15px 0;
    }

    /* Stack images vertically */
    .hero-plans-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        flex-wrap: nowrap;
    }

    .hero-plan-img {
        width: 80%;
        max-width: 320px;
        min-width: unset;
    }

    .hero-btns {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Hide Features Button */
    .hero-btns .btn-outline {
        display: none;
    }

    /* Mobile specific adjustments */
    .header-container {
        padding-right: 20px;
        /* Reset the large desktop padding */
        padding-left: 20px;
    }

    .hamburger span {
        background: #fff;
        /* White lines */
    }

    .header.sticky .hamburger span {
        background: var(--primary-color);
    }

    /* Hide "See Plans" button on mobile - User previously asked for this? 
       Wait, in Step 0 conversation summary it says "Hide 'See Plans' button". 
       But current code has: .hero-btns a[href="#plans"] { display: none; }
       Current request says "Hide 'Features'".
       So BOTH might need to be hidden? Or did I misunderstand?
       "繝励Λ繝ｳ繧定ｦ九ｋ" (See Plans) -> Previously hidden.
       "迚ｹ髟ｷ繧堤衍繧�" (Know Features) -> Now requested to hide.
       If both are hidden, are there any buttons left?
       The conversation summary for Step 1 says: "Hero Section Button: Hiding the '繝励Λ繝ｳ繧定ｦ九ｋ' (See Plans) button on mobile view."
       Now user says: "縲檎音髟ｷ繧堤衍繧九阪ｒ蜑企勁" (Delete 'Know Features').
       If both are hidden, `.hero-btns` will be empty.
       Let's check if there is an "Apply" button in hero? No.
       Maybe the user *only* wants to see the images.
       I will ensure .btn-outline is hidden. 'See Plans' was already hidden.
    */

    /* Hide 'See Plans' (Primary) was already in code, keeping it */
    .hero-btns a[href="#plans"] {
        display: none;
    }

    /* Force line breaks on mobile */
    .sp-break-force {
        display: block !important;
    }

    .sp-break {
        display: inline !important;
        /* heuristic to 'optimize' by letting it flow? */
    }

    .features .section-title {
        letter-spacing: -0.05em;
        /* Condense letter spacing */
    }

    .docomo-logo {
        transform: translateY(2px);
        /* Lower slight amount on mobile */
    }

    .campaign-content {
        padding: 0 15px;
        /* Add side padding to keep text safe */
        width: 100%;
        box-sizing: border-box;
    }

    .campaign-content h2 {
        font-size: 1.8rem;
        /* Slightly smaller to fit if needed */
        margin-bottom: 10px;
    }
}

/* Default state for mobile break */
.sp-break,
.sp-break-force {
    display: none;
}

/* Plans Catch Copy */
.plans-catch-copy {
    margin-bottom: 25px;
    /* Add space below */
    text-align: center;
}

.plans-catch-main {
    font-size: 1.6rem;
    font-weight: 700;
    /* Bold */
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 5px;
    letter-spacing: 0.05em;
}

.plans-catch-sub {
    font-size: 1rem;
    font-weight: 400;
    /* Thin (Regular is the thinnest loaded) */
    color: var(--text-dark);
    display: inline-block;
    border-bottom: 1px solid #ccc;
    padding-bottom: 2px;
}

@media (max-width: 768px) {
    .plans-catch-main {
        font-size: 1.5rem;
    }

    .plans-catch-sub {
        font-size: 0.85rem;
    }
}

/* PC Only Utility */
.pc-only {
    display: inline;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
}


/* Price Prefix (Tax Excluded Label) */
.price-prefix {
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 5px;
    /* Add space */
}

/* Update Plan Price Tax Size */
.plan-price-tax {
    font-size: 0.8rem;
    font-weight: 400;
}


/* Overwrite previous docomo-logo with better alignment */
.docomo-logo {
    display: inline-block;
    height: 0.9em !important;
    width: auto !important;
    vertical-align: baseline !important;
    margin-left: 8px !important;
    position: relative;
    top: 1px;
    /* Fine tuning to align bottom exactly */
}

/* Mobile Specific: Footer Logo Size */
@media (max-width: 768px) {
    .footer-logo img {
        width: 250px;
        /* Fixed target width */
        max-width: 90%;
        /* Prevent overflow */
        height: auto;
        margin: 0 auto 15px;
        /* Center and add bottom space */
        display: block;
    }

    /* Target the text 'お得で快適なモバイルライフを。' in footer */
    .footer-logo p {
        font-size: 1rem;
        /* Increase size */
        margin-top: 10px;
        text-align: center;
        /* Explicitly center text */
    }
}