@charset "UTF-8";

/* ===================================================
   スタジオ検索機能・一覧・ゼロマッチ用スタイル
=================================================== */

/* --- 1. 検索フォーム (search-studio.php) --- */
.studio-search-wrap {
    margin-bottom: 30px;
}

/* ▼ アコーディオン（折りたたみ）のスタイル ▼ */
.studio-search-accordion summary {
    background: #fff;
    color: #5da3a6;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    list-style: none; /* デフォルトの矢印を消す */
    border: 2px solid #5da3a6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.studio-search-accordion summary::-webkit-details-marker {
    display: none; /* Safari用の矢印消し */
}
.studio-search-accordion summary:hover {
    background: #f4f7f6;
}
/* フォームが開いている時のボタンの状態 */
.studio-search-accordion[open] summary {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom: none;
    box-shadow: none;
    background: #5da3a6;
    color: #fff;
}
/* フォームの中身（展開される部分） */
.studio-search-inner {
    background: #f4f7f6;
    padding: 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border: 2px solid #5da3a6;
    border-top: none;
}

.studio-search-wrap .search-group {
    margin-bottom: 15px;
}
.studio-search-wrap .search-group-last {
    margin-bottom: 20px;
}
.studio-search-wrap label.group-title {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}
.studio-search-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
}
.studio-feature-checkbox-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.studio-feature-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.studio-feature-label input {
    margin-right: 5px;
}
.studio-search-submit-wrap {
    text-align: center;
}
.studio-search-btn {
    background: #5da3a6;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s, transform 0.2s;
}
.studio-search-btn:hover {
    background: #4a8b8e;
    transform: translateY(-1px);
}

/* --- 2. 検索結果グリッド・カード (archive-studio.php) --- */
.studio-main-full {
    width: 100% !important;
    padding-right: 0 !important; /* SANGOのサイドバー用余白を強制リセット */
    margin-right: 0 !important;  /* 念のためマージンもリセット */
    float: none !important;      /* 回り込みも解除 */
}
.studio-header-center {
    text-align: center;
    margin: 30px 0 20px;
}
.studio-header-center .archive-title {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.studio-search-top-box {
    max-width: 800px;
    margin: 0 auto 40px;
    position: sticky;
    top: 60px;    /* ヘッダーの高さ分だけ下げる */
    z-index: 100;
}
.studio-results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.studio-card {
    width: calc(33.333% - 14px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.studio-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}
.studio-card-link {
    text-decoration: none;
    color: #333;
    display: block;
    height: 100%;
}
.studio-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.studio-thumb-dummy {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
}
.studio-card-body {
    padding: 15px;
}
.studio-card-title {
    font-size: 1.1em;
    margin: 0 0 10px;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
}

/* --- 3. ゼロマッチ（該当なし）画面 --- */
.zero-match-wrapper {
    background: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}
.zero-match-title {
    font-size: 1.3em;
    color: #e65f78;
    margin-bottom: 15px;
    font-weight: bold;
}
.zero-match-text {
    color: #666;
    margin-bottom: 30px;
}
.online-suggest {
    margin-top: 40px;
    padding: 25px;
    background: #fff9f9;
    border: 2px dashed #ffb6c1;
    border-radius: 8px;
}
.online-suggest-title {
    color: #d14961;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.2em;
}
.online-suggest-text {
    margin-bottom: 10px;
    color: #333;
}
.online-cv-btn {
    display: inline-block;
    background: #eb6100;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    box-shadow: 0 4px 6px rgba(235, 97, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}
.online-cv-btn:hover {
    background: #d45700;
    transform: translateY(-1px);
}

/* --- 4. レスポンシブ対応 (ブレイクポイント) --- */
@media (max-width: 768px) {
    .studio-card {
        width: calc(50% - 10px) !important;
    }
}
@media (max-width: 480px) {
    .studio-card {
        width: 100% !important;
    }
}


/* ===================================================
   フロントページ：日本地図＆都道府県リスト（クリーン版）
=================================================== */
html {
    scroll-behavior: smooth;
}

/* ▼ 地図全体を囲む背景の箱 ▼ */
.map-section-container {
    background-color: #f4f7f6;
    padding: 40px 20px 20px;
    border-radius: 12px;
    margin-top: 30px;
    margin-bottom: 60px;
    overflow: hidden;
}

/* ▼ ご提示いただいた地図上の見出し（詳細度を高めてSANGOに勝利） ▼ */
.entry-content .map-section-container h2.map-section-title {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-top: 3px;    /* 上余白を調整 */
    margin-bottom: 25px;
    letter-spacing: 0.05em;
    border-bottom: none; /* SANGOの下線を自然に打ち消す */
    background: transparent;
    padding: 0;
}

/* ▼ 地図エリア（スマホでの黒塗りを防ぐために親要素を指定して優先度UP！） ▼ */
.entry-content .map-section-container .svg-japan-wrapper {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}
.entry-content .map-section-container .svg-japan-map {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}
.entry-content .map-section-container .map-link {
    cursor: pointer;
    transition: all 0.3s ease;
}
/* ここの優先度が負けて黒くなっていました！ */
.entry-content .map-section-container .map-region {
    fill: #ffffff;
    stroke: #5da3a6;
    stroke-width: 3;
    rx: 8;
    transition: all 0.3s ease;
}
.entry-content .map-section-container .map-label {
    fill: #333333;
    font-size: 18px;
    font-weight: bold;
    font-family: sans-serif;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none;
    transition: all 0.3s ease;
}
.entry-content .map-section-container .map-link:hover {
    filter: drop-shadow(0px 6px 8px rgba(93, 163, 166, 0.3));
}
.entry-content .map-section-container .map-link:hover .map-region {
    fill: #5da3a6;
    transform: translateY(-3px);
}
.entry-content .map-section-container .map-link:hover .map-label {
    fill: #ffffff;
}

/* ▼ 47都道府県リスト（詳細度を高めてSANGOに勝利） ▼ */
.pref-list-wrapper {
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 15px;
}
.region-block {
    margin-bottom: 40px;
    scroll-margin-top: 150px;
}

/* 都道府県ブロックの見出し（アコーディオン用に変更） */
.entry-content .pref-list-wrapper summary.region-title { 
    border: none;
    border-left: 5px solid #5da3a6; 
    padding-left: 12px; 
    font-size: 1.4em; 
    font-weight: bold; 
    margin-bottom: 20px; 
    color: #333; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 8px;
    background: transparent;
    cursor: pointer; /* クリックできる指マークにする */
    list-style: none; /* デフォルトの黒い三角を消す */
    position: relative;
    outline: none; /* タップ時の青枠を消す */
}
/* Safari用のデフォルト三角消し */
.entry-content .pref-list-wrapper summary.region-title::-webkit-details-marker {
    display: none;
}
/* 開閉を知らせる右側のアイコン（▼） */
.entry-content .pref-list-wrapper summary.region-title::after {
    content: '▼';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: #5da3a6;
    transition: transform 0.3s ease;
}
/* 開いた時はアイコンを上向き（▲）にする */
.entry-content .pref-list-wrapper details[open] summary.region-title::after {
    transform: translateY(-50%) rotate(180deg);
}

.pref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

/* 都道府県のボタンリンク */
.entry-content .pref-list-wrapper .pref-grid a.pref-item { 
    display: flex;
    align-items: center;
    justify-content: center; 
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px; 
    padding: 12px 10px;
    color: #333;
    text-decoration: none; 
    font-weight: bold;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02); 
}
.entry-content .pref-list-wrapper .pref-grid a.pref-item:hover { 
    background: #5da3a6;
    color: #fff;
    border-color: #5da3a6; 
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(93,163,166,0.2); 
}

/* ===================================================
   スマホ用調整（@media 内も !important ゼロに）
=================================================== */
@media screen and (max-width: 600px) {
    /* 画面の端まで背景と地図を広げる */
    .map-section-container {
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        padding: 25px 5px 10px;
    }
    
    /* ▼ ご提示いただいた地図上の見出し（スマホ用） ▼ */
    .entry-content .map-section-container h2.map-section-title {
        font-size: 1.1em;
        margin-top: 0;
    }
    
    .svg-japan-wrapper {
        padding: 0;
    }
    .map-label {
        font-size: 26px;
    }
    
    .pref-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .entry-content .pref-list-wrapper .pref-grid a.pref-item {
        font-size: 14px;
        padding: 10px 5px;
    }
}

/* ===================================================
   5. 検索結果を強制的に1カラムにする
=================================================== */
.is-studio-search #sidebar {
    display: none !important;
}

.is-studio-search #main {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
}