/* Consultation LP Styles */

:root {
    --primary-color: #8da399;
    /* Calm Green */
    --accent-color: #e8aeb7;
    /* Gentle Pink */
    --text-color: #4a4a4a;
    /* Soft Charcoal */
    --bg-color: #fcfcf9;
    /* Off-White/Warm Beige */
    --card-bg: #ffffff;
    --section-bg-alt: #f4f7f6;
    /* Very Light Greenish Grey */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-heading: 'Zen Maru Gothic', sans-serif;
    --border-radius: 16px;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 1rem;
    overflow-wrap: break-word;
    /* Prevent text overflow */
    word-break: break-all;
    /* Strict check for Android */
}

img,
iframe,
video,
table {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 3.5rem;
    /* Changed from 60px */
    height: 0.25rem;
    /* Changed from 4px */
    background-color: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-lead {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Layout Utilities */
.container {
    width: 90%;
    /* Strict Rule: No max-width specified */
    /* max-width: 64rem; Removed */
    margin: 0 auto;
    padding: 0 1.25rem;
    /* Changed from 1000px */
    margin: 0 auto;
    padding: 0 1.25rem;
    /* Changed from 20px */
}

section {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(232, 174, 183, 0.4);
}

.btn-primary:hover {
    background-color: #d99ca5;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.btn-lg {
    font-size: 1.2rem;
    padding: 1rem 3rem;
}

.btn-xl {
    font-size: 1.4rem;
    padding: 1.2rem 4rem;
    width: 100%;
    max-width: 400px;
}

/* Header */
.site-header {
    background: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.header-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1.5rem;
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.5rem 0;
    }

    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
        line-height: 1.2;
        text-align: left;
        margin-bottom: 0;
        flex: 1;
    }

    .header-menu-wrapper {
        display: contents;
        /* Let children participate in header-container flex */
    }

    .header-nav {
        display: flex !important;
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 0.3rem;
        margin: 0.5rem 0 0 !important;
        padding-top: 0.3rem;
        border-top: 1px solid #eee;
        overflow-x: auto;
    }

    .header-nav a {
        font-size: 0.75rem !important;
        margin: 0 !important;
        padding: 0.2rem 0.3rem;
        white-space: nowrap;
    }

    .header-btn {
        order: 2;
        width: auto;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin: 0;
    }
}

/* Hero Section */
.hero-section {
    background-color: var(--section-bg-alt);
    padding: 6rem 0;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-direction: column-reverse;
    /* Mobile first */
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
    }
}

.hero-content {
    flex: 1;
    text-align: center;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-content {
        text-align: left;
    }
}

.hero-tag {
    display: inline-block;
    background-color: #fff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-color);
}

.hero-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* Concept Section */
.concept-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .concept-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.concept-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.concept-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.concept-card h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0.5rem auto 0;
}

/* Services Section */
.services-section {
    background-color: var(--section-bg-alt);
}

.service-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.service-header {
    background-color: var(--primary-color);
    color: #fff;
    padding: 1.5rem;
    text-align: center;
}

.service-header h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.service-target {
    font-size: 0.9rem;
    opacity: 0.9;
}

.service-body {
    padding: 2rem;
}

.service-description {
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-features {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-features li:last-child {
    margin-bottom: 0;
}

.price {
    font-size: 1.4rem;
    font-weight: bold;
}

.tax-note {
    font-size: 0.8rem;
    font-weight: normal;
}

/* Service specifics colors */
.service-30min .service-header {
    background-color: #9db5b2;
}

.service-60min .service-header {
    background-color: #8da399;
}

.service-90min .service-header {
    background-color: #7b948a;
}

.service-monthly .service-header {
    background-color: #e8aeb7;
    color: #fff;
}

/* AI Section */
.ai-section {
    text-align: center;
}

.ai-examples {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 600px) {
    .ai-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .ai-examples {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ai-example-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
}

.ai-example-item .icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.ai-example-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.ai-note {
    background-color: #fff9fa;
    padding: 1.5rem;
    border-radius: 10px;
    display: inline-block;
    border: 1px dashed var(--accent-color);
}

/* Vision Section */
.vision-section {
    background-color: var(--section-bg-alt);
    text-align: center;
}

.vision-message {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.vision-message strong {
    color: var(--primary-color);
    font-size: 1.4rem;
    display: block;
    margin: 0.5rem 0;
}

/* Campaign Banner */
/* Campaign Banner Refactor (Universal) */
.campaign-banner {
    width: 100%;
    background-color: #fff9c4;
    border-bottom: 3px solid #ffab00;
    overflow: hidden;
    /* Prevent spillover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.campaign-banner a {
    display: block;
    text-decoration: none;
    color: #4a4a4a;
    width: 100%;
}

.banner-content {
    display: flex;
    flex-direction: column;
    /* Default: Vertical stack for mobile */
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    /* Ensure no overflow */
    box-sizing: border-box;
    margin: 0 auto;
}

/* Image safety within banner */
.campaign-banner img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Typography with Clamp */
.banner-tag {
    background: #d84b4b;
    color: #fff;
    font-size: clamp(0.75rem, 3vw, 0.85rem);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 4px;
}

.banner-text {
    display: block;
    font-weight: bold;
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Safety */
}

.banner-highlight {
    color: #d84b4b;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    background: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    margin: 2px;
    display: inline-block;
    white-space: nowrap;
    /* Prevent breaking inside highlight */
}

.banner-btn {
    background: #4a4a4a;
    color: #fff;
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    /* Fluid size */
    padding: 0.6rem 2rem;
    /* Easy tap area */
    border-radius: 50px;
    display: inline-block;
    font-weight: bold;
    margin-top: 0;
    /* Reset */
    white-space: nowrap;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .banner-content {
        flex-direction: row;
        /* Horizontal */
        justify-content: center;
        gap: 2rem;
        max-width: 1000px;
        /* Limit width on PC */
    }
}



.contact-section {
    text-align: center;
    background: #fff;
}

.contact-actions {
    margin-top: 2rem;
}

.note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #888;
}

/* Footer */
.site-footer {
    background-color: var(--text-color);
    color: #fff;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* Access Page Styles */
.access-map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Remove fixed height loop for mobile */
    min-height: 20rem;
    /* Ensure minimum visibility without fixed px */
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 0.25rem 0.6rem rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.access-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* Remove absolute positioning */
}

@media (min-width: 768px) {
    .access-map-container {
        height: 0;
        /* Return to 16:9 for desktop */
    }
}

/* Utility Classes */
.pc-only {
    display: none;
}

.sp-only {
    display: block;
}

br.sp-only {
    display: inline;
    /* Fix for br tag being forced to block */
}

@media (min-width: 768px) {

    /* Fix broken connection from previous edit */
    .pc-only {
        display: block;
    }
}

/* OS-Specific Fixes (Global, Outside Media Query) */
html.is-android body {
    overflow-x: hidden;
    width: 100%;
}

/* Safety: Target only media elements, NOT everything (*) to avoid layout breakage */
html.is-android img,
html.is-android iframe,
html.is-android video,
html.is-android table {
    max-width: 100% !important;
    height: auto !important;
}

/* Reset width for Android wrapper if needed */
html.is-android .campaign-banner {
    width: 100%;
}

/* --- Header Navigation Responsive --- */
@media (max-width: 768px) {
    .header-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.3rem;
        margin-right: 0 !important;
        margin-bottom: 0.3rem;
        width: 100%;
        overflow-x: auto;
        padding-top: 0.3rem;
        padding-bottom: 0.3rem;
    }

    .header-nav a {
        font-size: 0.75rem !important;
        margin-right: 0 !important;
        padding: 0.2rem 0.3rem;
        white-space: nowrap;
    }

    .header-menu-wrapper {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* --- Campaign Banner Isolation --- */
.campaign-banner {
    background-color: #fff9c4;
    /* Yellow 100 */
    border-bottom: 3px solid #ffab00;
    padding: 1rem;
    text-align: center;
    /* Reset text align inherited from body if any */
}

/* Wrapper for the link to ensure it behaves like a block but not full width unnecessarily */
.campaign-link-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.campaign-link {
    display: block;
    background: #fff;
    border: 2px solid #ffab00;
    /* Orange border */
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none !important;
    /* Force no underline */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    color: #4a4a4a !important;
    /* Override global link color */
}

.campaign-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.campaign-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    /* Internal text alignment */
}

/* Android Specific Isolation Overrides */
html.is-android .campaign-banner * {
    max-width: none;
    /* Reset the global max-width 100% */
}

.banner-text-group {
    display: flex;
    flex-direction: column;
}

.banner-tag {
    background: #ffab00;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
    font-weight: bold;
    width: fit-content;
}

.banner-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #333;
}

.banner-price {
    font-weight: bold;
    color: #d84315;
    /* Deep Orange */
    font-size: 1.1rem;
}

.banner-price .highlight {
    background: linear-gradient(transparent 70%, #ffcc80 70%);
    margin-right: 0.5rem;
}

.banner-arrow {
    background: #ef6c00;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
}

/* Mobile Optimizations for Banner */
@media (max-width: 480px) {
    .campaign-banner .banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .banner-text-group {
        align-items: center;
    }

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

/* --- Refactored Header Styles --- */
.header-nav-link {
    font-weight: bold;
    color: #4a4a4a;
    font-size: 0.95rem;
    margin-right: 1rem;
    text-decoration: none;
}

.header-nav-link:last-child {
    margin-right: 0;
}

/* --- Nissho Page Styles --- */
.nissho-hero {
    background-color: #fff8e1;
    text-align: center;
}

.nissho-hero-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #ef6c00;
}

.nissho-hero-subtitle {
    font-size: 1.2rem;
    color: #333;
}

.nissho-hero-warning {
    background: #fff;
    display: inline-block;
    padding: 1rem;
    border-radius: 8px;
    font-weight: bold;
    color: #d84315;
    margin-bottom: 2rem;
}

.nissho-hero-warning span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #666;
}

/* Nissho Contact Buttons */
.contact-btn-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn-contact {
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: block;
    text-align: center;
    color: #fff;
    transition: opacity 0.3s;
}

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

.btn-line {
    background-color: #06c755;
}

.btn-mail {
    background-color: #4a4a4a;
}

.btn-tel {
    background-color: #ef6c00;
}

/* Nissho Steps */
.step-section {
    padding: 3rem 0;
    border-bottom: 1px solid #eee;
}

.step-title {
    font-size: 1.4rem;
    color: #ef6c00;
    border-bottom: 2px solid #ffcc80;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
}

.step-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #444;
    background: #fff8e1;
    padding: 0.5rem 1rem;
    border-left: 4px solid #ef6c00;
}

.step-list {
    padding-left: 1.5rem;
    line-height: 1.8;
}

/* Important Boxes */
.important-box {
    background-color: #fff3e0;
    border: 2px solid #ef6c00;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.important-title {
    color: #d84315;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.important-box-red {
    border-color: #d32f2f;
    background: #ffebee;
}

.important-title-red {
    color: #d32f2f;
}

/* Fee Table */
.fee-table-wrapper {
    overflow-x: auto;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.fee-table th,
.fee-table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

.fee-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
}

.fee-table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Main CTA Button */
.btn-main-cta {
    background-color: #ef6c00;
    color: #fff;
    font-size: 1.2rem;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 10px rgba(239, 108, 0, 0.3);
    transition: transform 0.2s;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
}

.btn-main-cta:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* FAQ List */
.faq-list dl {
    margin-bottom: 2rem;
}

.faq-dt {
    font-weight: bold;
    color: #ef6c00;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-dd {
    margin-left: 0;
    padding-left: 1rem;
    border-left: 3px solid #eee;
}

/* Access Map */
.access-map-wrapper {
    aspect-ratio: 16/9;
    width: 100%;
    margin-bottom: 2rem;
}

.access-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Nissho Introduction & Merits */
.intro-text-center {
    text-align: center;
    margin-bottom: 3rem;
}

.merit-section-bg {
    background: #fdfdfd;
}

.merit-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 2rem;
}

.merit-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid #ef6c00;
}

.merit-title {
    color: #ef6c00;
    margin-bottom: 1rem;
}

/* Test Types */
.type-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed #ddd;
}

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


/* --- Nissho Page Specific Styles --- */
.nissho-container {
    padding: 3rem 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.nissho-section {
    margin-bottom: 4rem;
}

.nissho-page-title {
    font-size: 1.8rem;
    color: #ef6c00;
    text-align: center;
    margin-bottom: 1.5rem;
}

.nissho-lead {
    text-align: center;
    margin-bottom: 2rem;
}

.nissho-warning-box {
    background-color: #fff3e0;
    border: 2px solid #ef6c00;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.nissho-warning-box.red-border {
    border-color: #d32f2f;
    background-color: #ffebee;
}

.warning-text {
    color: #d84315;
}

.nissho-step-title {
    font-size: 1.5rem;
    color: #ef6c00;
    border-bottom: 2px solid #ffcc80;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 700;
}

.nissho-sub-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #444;
    padding-left: 0.5rem;
    border-left: 4px solid #ef6c00;
}

.nissho-list {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.nissho-list li {
    margin-bottom: 0.5rem;
}

.nissho-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.red-text {
    color: #d32f2f;
    font-weight: bold;
}

/* Time Boxes */
.nissho-time-box {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.nissho-time-box.recommended {
    background-color: #e8f5e9;
    border: 2px solid #43a047;
}

.nissho-time-box.warning {
    background-color: #fff3e0;
    border: 2px solid #fb8c00;
}

.time-box-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.nissho-time-box.recommended .time-box-title {
    color: #2e7d32;
}

.nissho-time-box.warning .time-box-title {
    color: #ef6c00;
}

.time-box-content {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Info Box */
.nissho-info-box {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #999;
}

/* Fee Table */
.fee-table-responsive {
    overflow-x: auto;
    margin-bottom: 1rem;
}

.nissho-fee-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.nissho-fee-table th,
.nissho-fee-table td {
    border: 1px solid #ddd;
    padding: 0.8rem;
    text-align: left;
}

.nissho-fee-table th {
    background-color: #eee;
    font-weight: bold;
    color: #333;
}

.nissho-fee-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Cancel Policy */
.nissho-cancel-box {
    border: 3px solid #d32f2f;
    padding: 1.5rem;
    border-radius: 8px;
    background-color: #fff;
}

.cancel-title {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: #d32f2f;
    margin-bottom: 1rem;
}

.cancel-rules {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rule-item {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    width: 45%;
    min-width: 140px;
}

.rule-item.safe {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
}

.rule-item.danger {
    background-color: #ffebee;
    color: #d32f2f;
    font-weight: bold;
}

.rule-item span {
    display: block;
}

.rule-item .cost {
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* CTA Buttons */
.nissho-btn-cta {
    display: block;
    background-color: #ef6c00;
    color: #fff;
    text-align: center;
    font-weight: bold;
    padding: 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(239, 108, 0, 0.3);
    transition: transform 0.2s;
    max-width: 500px;
    margin: 1.5rem auto;
}

.nissho-btn-cta:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

/* Access Map */
.map-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.access-list {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.access-sub {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.bottom-cta-area {
    margin-top: 3rem;
    padding: 2rem 0;
    background-color: #fff3e0;
    text-align: center;
    border-radius: 8px;
}

.centered {
    text-align: center;
}

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

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

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

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}

.d-block {
    display: block;
}

/* Calendar Responsiveness */
.calendar-wrapper {
    width: 100%;
    overflow: hidden;
    margin: 1rem 0;
}

.calendar-iframe {
    width: 100%;
    min-height: 600px;
    height: 1200px;
    /* Default large height for desktop */
}

@media (max-width: 768px) {
    .calendar-iframe {
        height: 1000px;
        /* Slightly smaller for tablets */
    }
}

@media (max-width: 480px) {
    .calendar-iframe {
        height: 800px;
        /* Smaller for mobile, but still tall enough */
        min-height: 600px;
    }
}