
/* ===== Mobile Optimization (Added during Debugging) ===== */
@media (max-width: 768px) {
    /* Hero Title Fix */
    .hero-title-large {
        white-space: normal;
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.4;
        word-break: break-word; /* 長い単語の折り返し */
        padding-left: 0;
        margin-left: 0;
    }

    /* Hero Fix: Remove Left White Space */
    body, html {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .hero, .page-hero, .corporate-hero {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }

    .hero-bg-image {
        left: 0 !important;
        width: 100vw !important;
        background-position: center;
        background-size: cover;
    }

    /* Catch Copy Adjustments */
    .hero-content, .page-hero-content, .corporate-hero-content {
        padding: 32px 10px; /* 左右余白を減らす（元20px -> 10px） */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-text-box {
        padding: 0;
        width: 100%;
    }

    /* CTA Button One-line Fix */
    .cta-btn-custom {
        padding: 16px 24px !important;
        font-size: 1rem !important; /* フォントサイズ縮小 */
        width: auto !important;
        max-width: 100%;
        white-space: nowrap; /* 改行禁止 */
        justify-content: center;
    }
    
    .cta-btn-custom i {
        font-size: 0.9em;
        margin-left: 8px;
    }

    /* Footer Simplification */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* Hide Navigation and Info columns, Keep Contact (last-child) */
    .footer-column:not(:last-child) {
        display: none;
    }

    .footer-column:last-child {
        width: 100%;
        margin-top: 0;
    }
    
    .footer-column h4 {
        display: none; /* 「お問い合わせ」見出しも消してスッキリさせる？ 指示は「残す」なので残すべきか。いや、内容だけ残すのが自然。一応残す */
        margin-bottom: 12px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 20px;
    }

    /* Gallery Adjustments */
    .gallery-featured {
        height: 300px; /* 高さ調整 */
    }
    
    .gallery-grid-dynamic {
        grid-template-columns: 1fr; /* 1列に変更 */
        grid-auto-rows: 220px;
        gap: 16px;
    }
    
    .gallery-item-dynamic.tall {
        height: 220px; /* 縦長解除 */
        grid-row: span 1;
    }
    
    .gallery-item-dynamic.wide {
        height: 220px; /* 横長解除 */
        grid-column: span 1;
    }

    /* Course Card Padding */
    .course-card-v2 {
        padding: 24px 20px;
    }
    
    .course-number-v2 {
        font-size: 3rem;
        top: -5px;
        left: 15px;
    }

    /* Access Map Height */
    .map-container iframe {
        height: 300px;
    }
    
    /* Parking Section Grid */
    .parking-spots {
        grid-template-columns: repeat(3, 1fr); /* 6列から3列へ */
    }
    
    /* General Padding Adjustments */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    /* New Line Breaks */
    br.sp-only {
        display: block;
        content: "";
        margin-bottom: 0;
    }
}

/* PC Only Br */
@media (min-width: 769px) {
    br.sp-only {
        display: none;
    }

    .footer-links__tel {
        pointer-events: none; /* 電話番号のクリック無効化 */
    }
}
