/*
Theme Name: godog
Description: Dogrun Portal Site Theme - Specialized for Search Experience
Version: 1.3
*/

/* ==========================================================================
   1. 基本設定（リセット & 全体）
   ========================================================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

a { color: #d35400; text-decoration: none; transition: 0.3s; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; vertical-align: middle; }

/* ==========================================================================
   2. TOPページ ヒーローセクション
   ========================================================================== */
.hero-banner {
    background: #fdf6e3; /* 明るいベージュ系 */
    padding: 100px 20px;
    text-align: center;
}

.hero-inner h1 { 
    font-size: 2.2rem; 
    margin-bottom: 30px; 
    font-weight: bold;
    color: #333;
}

/* 検索窓（フリーワード） */
.search-bar-container {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-bar {
    display: flex;
    background: #fff;
    border-radius: 50px;
    padding: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 10px 25px;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-btn {
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover { background: #d35400; }

/* 検索ボタンレイアウト（エリア・特徴を横並び、現在地を下へ） */
.hero-modal-buttons {
    max-width: 700px;
    margin: 0 auto;
}

/* 横並びコンテナ */
.hero-btn-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-btn {
    flex: 1; /* 均等幅 */
    background: #fff;
    border: 2px solid #e67e22;
    border-radius: 15px;
    padding: 25px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #e67e22;
    font-weight: bold;
    font-size: 1.1rem;
}

.hero-btn:hover {
    background: #fff8f0;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(230,126,34,0.15);
}

/* 現在地ボタン（下段・全幅） */
#btn-current-location {
    width: 100%;
    padding: 18px;
    border: 2px solid #27ae60;
    background: #fff;
    color: #27ae60;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

#btn-current-location:hover:not(:disabled) {
    background: #f1faf5;
    box-shadow: 0 4px 12px rgba(39,174,96,0.15);
}

#btn-current-location:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f9f9f9;
    border-color: #ccc;
    color: #999;
}

/* ==========================================================================
   3. モーダルウィンドウ
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: #fff;
    margin: 5% auto;
    padding: 25px;
    width: 90%;
    max-width: 650px;
    border-radius: 12px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-button {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
}

.close-button:hover { color: #333; }

/* モーダル内タイトル */
.modal-content h3 {
    margin-bottom: 20px;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
    font-size: 1.3rem;
    color: #333;
}

/* モーダル内グリッド（都道府県・特徴） */
.modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.modal-grid label {
    display: block;
    padding: 10px 5px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    background: #f9f9f9;
    border: 1px solid #eee;
    transition: 0.2s;
}

.modal-grid label:hover {
    background: #fff8f0;
    border-color: #e67e22;
}

/* ==========================================================================
   4. レスポンシブ（スマホ対応）
   ========================================================================== */
@media (max-width: 600px) {
    .hero-banner { padding: 60px 15px; }
    .hero-inner h1 { font-size: 1.8rem; }
    
    /* スマホでもボタンの横並びを維持 */
    .hero-btn-group {
        gap: 10px;
    }
    
    .hero-btn {
        padding: 20px 5px;
        font-size: 0.95rem;
    }
    
    .hero-btn span[style*="font-size"] {
        font-size: 1.5rem !important; /* 絵文字サイズ調整 */
    }

    #btn-current-location {
        font-size: 1rem;
        padding: 15px;
    }

    .modal-content {
        margin: 10% auto;
        padding: 20px 15px;
    }

    .modal-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列固定 */
    }

    /* モーダルの中身を制御 */
.modal-content {
    display: flex;
    flex-direction: column;
    max-height: 85vh; /* 画面の85%までに抑える */
    overflow: hidden; /* 全体はスクロールさせない */
}

/* チェックボックスが並ぶエリアだけをスクロールさせる */
.modal-body-scroll {
    overflow-y: auto;
    flex: 1; /* 余ったスペースをすべて使い、スクロール可能にする */
    -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
    padding: 10px;
}

/* 下部のボタンエリアを固定っぽく見せる（必要に応じて） */
.modal-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0; /* ボタンエリアが潰れないように固定 */
}
}
