/* 
 * レスポンシブスタイルシート
 * メディアクエリを使用したモバイル/PC対応
 */

/* ============================================
   スマホ・タブレット用の調整
   ============================================ */
@media (max-width: 768px) {
    /* 基本タイポグラフィ */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    h1, .page-h1 .main-title {
        font-size: 24px;
        line-height: 1.3;
    }
    
    h2, .section-title {
        font-size: 20px;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    p {
        margin-bottom: 1.5em;
        line-height: 1.6;
    }
    
    /* ページヘッダー調整 */
    .page-h1 .main-title {
        font-size: 24px;
    }
    
    .page-h1 .sub-lead {
        font-size: 13px;
    }
    
    .page-header-band {
        padding: 30px 0;
    }
    
    /* ヘッダー調整 - モバイルで大幅に圧縮 */
    .header-full-width .container-fixed {
        padding: 12px 16px;
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        min-height: auto;
    }
    
    /* ヘッダーの説明文を非表示 */
    .header-full-width h1.text-sm {
        display: none;
    }
    
    /* 電話情報ブロックを非表示 */
    .header-contact {
        display: none !important;
    }
    
    /* ロゴサイズを調整 */
    .header-full-width .text-2xl {
        font-size: 18px;
    }
    
    .header-full-width .w-10 {
        width: 32px;
        height: 32px;
    }
    
    .header-full-width .text-xl {
        font-size: 16px;
    }
    
    /* ハンバーガーメニューボタン表示 */
    .mobile-nav-toggle {
        display: flex;
    }
    
    /* ナビゲーション調整 - モバイルではドロワーメニュー */
    .nav-bar {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: #1e4d8b;
        border-top: none;
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 8px rgba(0,0,0,0.3);
    }
    
    .nav-bar.mobile-open {
        right: 0;
    }
    
    .nav-bar ul {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 60px 0 20px 0;
    }
    
    .nav-bar li {
        border-right: none;
        border-bottom: 1px solid #2c5ba0;
        width: 100%;
    }
    
    .nav-bar a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 14px 20px;
        font-size: 14px;
        width: 100%;
    }
    
    .nav-bar a:hover,
    .nav-bar a:focus {
        background: #2c5ba0;
    }
    
    .nav-bar li.active a {
        background: #153a6b;
        box-shadow: inset 3px 0 0 #fff;
    }
    
    /* ステップコンテナ調整 */
    .step-container {
        flex-direction: column;
    }
    
    .step-item {
        min-width: 100%;
    }
    
    /* ボタンのタッチターゲット拡大 */
    .btn-gradient-blue,
    .btn-gradient-orange {
        min-height: 48px;
        min-width: 48px;
        padding: 12px 24px;
        font-size: 16px;
    }
    
    /* リンクのタッチターゲット拡大 */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* FAQのタッチターゲット拡大 */
    .faq-list .faq-q {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px;
    }
    
    /* サービスカードの調整 */
    .service-card {
        margin-bottom: 16px;
    }
    
    /* セクションタイトルの調整 */
    .section-title {
        font-size: 20px;
        padding: 12px 16px;
        margin-bottom: 24px;
    }
    
    /* コンテナのパディング調整 */
    .container-fixed {
        padding: 0 16px;
    }
    
    /* コンテンツセクションのパディング */
    .content-white-full-width .container-fixed,
    .content-grey-full-width .container-fixed,
    .services-full-width .container-fixed {
        padding: 24px 16px;
    }
    
    /* 特徴ボックスの調整 */
    .feature-box {
        margin-bottom: 20px;
        padding: 16px;
    }
    
    .feature-box h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    /* セクション間のスペーシング */
    .full-width-wrapper {
        margin-bottom: 0;
    }
    
    .full-width-wrapper + .full-width-wrapper {
        margin-top: 0;
    }
    
    /* トップページ固有の調整 */
    .selling-points-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .selling-points-grid > div {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #d1d5db;
        padding-bottom: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cta-flex {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-flex {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-flex > div {
        width: 100% !important;
    }
    
    /* テーブルの横スクロール対応 */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    /* 地図のモバイル調整 */
    #map {
        height: 300px !important;
    }
    
    /* カードレイアウトの調整 */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* モバイル用下部固定問い合わせバーを表示 */
    .mobile-contact-bar {
        display: flex;
    }
    
    /* コンテンツが下部バーに隠れないように */
    body {
        padding-bottom: 52px;
    }
}

/* ============================================
   PC表示制御（1024px以上）
   ============================================ */
@media (min-width: 1024px) {
    .container-fixed {
        width: 1024px;
        padding: 0;
    }
    
    body {
        min-width: 1024px;
    }
}
