@charset "UTF-8";

/* =========================================
   1. 基本設定・カラーパレット
========================================= */
:root {
    --main-color: #008992; /* ロゴの青緑 */
    --accent-color: #e67e22; /* 落ち着いたオレンジ */
    --bg-light: #f8f9fa; /* 薄いグレーの背景 */
    --text-dark: #333333;
    --alert-red: #d93025; /* 警告用の赤 */
}

/* はみ出し防止の根本対策 */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* 横揺れ・横スクロールの防止 */
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    margin: 0;
    line-height: 1.8;
    padding-top: 120px;   /* ヘッダーの高さ分だけ下に余白を作る */
}

a { text-decoration: none; color: inherit; }

/* 全ての画像が枠からはみ出さないように強制 */
img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* =========================================
   2. ヘッダー (全ページ共通)
========================================= */
header {
    background: #ffffff;
    border-bottom: 3px solid var(--main-color);
    padding: 10px 20px;
    position: fixed;      
    top: 0;               
    left: 0;              
    width: 100%;          
    z-index: 1000;        
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

.main-header {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative; 
}

/* --- タイトルデザイン --- */
.site-title { margin: 0; }

.site-title a { 
    display: flex; 
    align-items: center; 
    gap: 15px;
    color: #444444; 
}

.circle-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #52a6a4; 
    color: #ffffff;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    font-size: 1.3rem;
    font-weight: 500;   
    flex-shrink: 0; 
    line-height: 1;
}

.title-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-title .small-text { 
    font-size: 1.05rem; 
    font-weight: 400; 
    letter-spacing: 0.05em; 
    line-height: 1.2;
    margin-bottom: 2px;
}

.site-title .main-text { 
    font-size: 1.65rem; 
    font-weight: 700; 
    letter-spacing: 0.05em; 
    line-height: 1.2; 
    display: block; 
}

/* --- PC用：メニューボタンは隠す --- */
.menu-btn {
    display: none;
}

/* --- ナビゲーションメニュー --- */
.nav-list { display: flex; list-style: none; gap: 20px; padding: 0; margin: 0; }
.menu-item { font-size: 14px; text-align: center; position: relative; padding-bottom: 10px; }
.menu-item > a { transition: opacity 0.2s; display: block; }
.menu-item > a:hover { opacity: 0.7; }
.menu-item strong { display: block; color: var(--main-color); }
.menu-item small { color: #999; font-size: 10px; }

/* ドロップダウンメニュー */
.sub-item {
    display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
    background: #ffffff; box-shadow: 0 4px 15px rgba(0,0,0,0.1); list-style: none;
    padding: 10px 0; margin: 0; min-width: 200px; border-radius: 8px; z-index: 100; border: 1px solid #eee;
}
.menu-item:hover .sub-item { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.sub-item li a { display: block; padding: 10px 20px; color: var(--text-dark); font-size: 0.95rem; text-align: left; transition: background 0.2s, color 0.2s; }
.sub-item li a:hover { background: #f0f7f8; color: var(--main-color); font-weight: bold; }

/* =========================================
   3. メインコンテンツの枠組み (全ページ共通)
========================================= */
.breadcrumbs {
    max-width: 900px; margin: 20px auto 0; padding: 0 20px; font-size: 0.9rem; color: #666;
}
.breadcrumbs a { color: var(--main-color); text-decoration: underline; }
.breadcrumbs a:hover { opacity: 0.7; }

main {
    max-width: 900px; margin: 20px auto 40px; background: #ffffff;
    padding: 40px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    word-break: break-all;
}

.page-title {
    font-size: 1.8rem; color: var(--main-color); border-bottom: 2px solid var(--main-color);
    padding-bottom: 10px; margin-top: 0; margin-bottom: 30px;
}

.caption-parts {
    font-size: 1.4rem; color: var(--text-dark); border-left: 6px solid var(--main-color);
    padding-left: 15px; margin-top: 50px; margin-bottom: 25px; background: #f0f7f8;
    padding-top: 10px; padding-bottom: 10px; border-radius: 0 4px 4px 0;
}
/* 行間を詰める用 */
.caption-parts.no-margin-top {
    margin-top: 0;
}

/* 見出し内の注釈テキスト */
.caption-note {
    font-size: 0.8rem; /* 文字を小さくする */
    font-weight: normal; /* 太字を解除して、見出し本体とメリハリをつける */
    color: #555555; /* 真っ黒ではなく少しグレーにして控えめにする */
    margin-left: 15px; /* 左側のメイン見出しとの間に少し隙間を空ける */
}

/* スマホ表示の時の調整（画面が狭い時は改行して表示） */
@media (max-width: 768px) {
    .caption-note {
        display: block; /* 改行させる */
        margin-left: 0; /* 左の隙間をなくす */
        margin-top: 5px; /* 上に少し隙間を空ける */
        font-size: 0.75rem; /* スマホではさらに少し小さく */
    }
}
/* =========================================
   4. 各ページ固有のパーツ & はみ出し対策
========================================= */
.top-image, .image-s, .info-image-box, .doc-card, .chart-item {
    max-width: 100% !important;
    overflow: hidden;
}

/* トップページ */
.survey { text-align: center; }
.survey-txt { margin-bottom: 30px; font-size: 1.15rem; line-height: 1.8; display: inline-block; text-align: center; max-width: 100%; }

.btn-survey {
    display: inline-block; background: var(--accent-color); color: #ffffff;
    padding: 20px 60px; border-radius: 50px; font-weight: bold; font-size: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3); margin: 20px 0;
}
.btn-survey:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4); }

.alert-box { background: #fff9f0; border: 2px solid #ffecb3; padding: 20px; border-radius: 8px; margin: 30px auto; max-width: 100%; text-align: center;}
.red-txt { color: var(--alert-red); font-weight: bold; font-size: 1.1rem; margin: 0; }

#menu-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-top: 50px; }
.nav-card { background: #ffffff; border: 1.5px solid var(--main-color); color: var(--main-color); padding: 15px; border-radius: 8px; text-align: center; font-weight: bold; transition: all 0.3s; }
.nav-card:hover { background: var(--main-color); color: #ffffff; }

/* トップページの注釈テキスト */
.survey-small {
    font-size: 0.85rem; 
    color: #555555;     
    margin-bottom: 1px; 
    text-align: left;   
}

/* ▼ トップ画像上の強調メッセージ ▼ */
.hero-message {
    font-size: 1.7rem; 
    font-weight: 900;  
    color: #006a70; 
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px; 
    letter-spacing: 0.1em;
    line-height: 1.6;
}

/* ▼ 画像下のリード文 ▼ */
.lead-text {
    font-size: 1.25rem;
    font-weight: bold;
    color: #333333; 
    text-align: center;
    margin-top: 35px;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    border-bottom: 2px dotted #cccccc; 
    padding-bottom: 20px;
}

/* 期間限定の調査案内ボックス（グレー枠） */
.period-survey-box {
    background: #ffffff;
    border: 1px solid #e0e0e0; 
    border-radius: 12px;
    padding: 40px;
    margin: 20px auto 50px; 
    max-width: 800px; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); 
}

/* 概要ページのレイアウト（gaiyou.html） */
.info-container {
    display: flex; gap: 30px; align-items: center; margin-top: 20px; 
    background: #fdfdfd; padding: 30px; border-radius: 8px; border: 1px solid #eee;
}
.info-text-box { flex: 1; }
.info-image-box { width: 350px; max-width: 40%; flex-shrink: 0; }
.info-image-box img { width: 100% !important; height: auto !important; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* 過去の調査結果（グラフ） */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-bottom: 50px; }
.chart-item { background: #fdfdfd; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }
.data-title { font-size: 1.1rem; color: var(--main-color); font-weight: bold; margin-top: 0; margin-bottom: 15px; border-bottom: 2px dashed #ccc; padding-bottom: 10px; display: inline-block; }

/* Q&A アコーディオン */
.accordion-menu { background: #ffffff; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 10px; }
.accordion-menu summary::-webkit-details-marker { display: none; }
.qa-q { padding: 15px 40px 15px 50px; font-weight: bold; cursor: pointer; position: relative; list-style: none; }
.qa-q::before { content: "Q."; position: absolute; left: 15px; color: var(--main-color); font-size: 1.2rem; font-weight: 900; }
.qa-q::after { content: "＋"; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #999; }
details[open].accordion-menu .qa-q::after { content: "－"; color: var(--main-color); }
details[open].accordion-menu .qa-q { background-color: #f0f7f8; }
.qa-a { padding: 20px 20px 20px 50px; margin: 0; border-top: 1px dashed #e0e0e0; background: #fafafa; position: relative; }
.qa-a::before { content: "A."; position: absolute; left: 15px; color: var(--accent-color); font-size: 1.2rem; font-weight: 900; }

/* お問合せ先 */
.contact-box { background: #ffffff; border: 1px solid #e0e0e0; border-top: 4px solid var(--main-color); border-radius: 8px; padding: 30px; margin-bottom: 30px; }

/* 新着情報 */
.news-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid #eee; }
.news-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.infomation { font-size: 1.2rem; font-weight: bold; color: var(--main-color); margin: 0; border-left: 4px solid var(--main-color); padding-left: 10px; }
.news-btn a { color: #0066cc; font-weight: bold; }
.news-box { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--main-color); }
.news-item { display: flex; align-items: flex-start; gap: 20px; padding: 20px 10px; border-bottom: 1px solid #e0e0e0; transition: background-color 0.2s; }
.news-item:hover { background-color: #f0f7f8; }
.news-date { font-weight: bold; color: var(--main-color); flex-shrink: 0; width: 140px; font-size: 1.05rem; }
.news-content { flex-grow: 1; font-size: 1.05rem; }

/* =========================================
   追加の共通クラス (HTMLをスッキリさせる用)
========================================= */
/* 汎用ボックス */
.info-box {
    background: #fdfdfd; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; margin-bottom: 30px;
}
/* 強調テキスト */
.text-bold-main {
    font-weight: bold; color: var(--main-color);
}
/* リスト装飾（頭に四角） */
.content-list {
    list-style: none; padding: 0;
}
.content-list li {
    position: relative; padding-left: 1.5em; margin-bottom: 10px;
}
.content-list li::before {
    content: "■"; position: absolute; left: 0; color: var(--main-color);
}
/* PRエリア（ポスター・チラシ） */
.pr-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px;
}
.pr-card {
    display: block; text-align: center; border: 1px solid #eee; border-radius: 8px; padding: 15px; background: #fff; text-decoration: none; transition: 0.2s;
}
.pr-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.05); transform: translateY(-2px); }
.pr-card img {
    max-width: 100%; border: 1px solid #ddd; margin-bottom: 10px; margin-left: auto; margin-right: auto;
}
.pr-card p {
    font-weight: bold; margin: 0; color: #333;
}

/* 調査情報テーブル */
.info-table {
    width: 100%; border-collapse: collapse; margin-bottom: 30px;
}
.info-table th, .info-table td {
    padding: 15px 10px; border-bottom: 1px solid #eee; vertical-align: top;
}
.info-table th {
    width: 150px; 
    min-width: 150px; 
    white-space: nowrap; /* 縦に変な改行をされるのを完全に防ぐ */
    font-weight: bold; 
    color: var(--main-color); 
    text-align: left;
}

/* ハイライトテキスト（薄オレンジ背景） */
.highlight-badge {
    background: #fff9f0; padding: 2px 8px; border-radius: 4px; display: inline-block;
}
/* 注意書きボックス */
.note-box {
    background: #f5f5f5; padding: 20px; border-radius: 8px; margin-top: 15px; font-size: 0.9rem;
}
/* 目立つ案内ボックス */
.survey-call-box {
    text-align: center; margin: 50px 0; padding: 40px; background: #fff9f0; border-radius: 12px; border: 2px solid #ffecb3;
}
.survey-call-box h4 {
    font-size: 1.3rem; font-weight: bold; color: var(--accent-color); margin-top: 0; margin-bottom: 20px;
}
.survey-call-list {
    text-align: left; max-width: 600px; margin: 0 auto; font-size: 0.9rem; color: #666; list-style: none; padding: 0;
}

/* 委員会の開催状況など（増えるリスト用） */
.committee-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ccc; 
}
.committee-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.committee-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--main-color); 
    margin: 0 0 10px 0;
}
.committee-detail {
    margin: 0;
    padding-left: 10px; 
}

/* 構成メンバー用の小さな表 */
.member-table {
    font-size: 0.8rem; 
    line-height: 1.3;  
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0; 
}
.member-table th, .member-table td {
    padding: 3px 5px; 
    border-bottom: 1px dotted #ccc; 
    text-align: left;
    vertical-align: middle;
}
.member-table tr:last-child th,
.member-table tr:last-child td {
    border-bottom: none;
}
.member-table th {
    width: 40%; 
    font-weight: bold;
}

/* =========================================
   5. フッター＆SNSアイコン
========================================= */
footer { 
    background: #333333; 
    color: #ffffff; 
    padding: 30px 20px 15px; 
    margin-top: 60px; 
    text-align: center; 
}

/* 調査主体テキスト用の設定 */
.footer-info {
    margin-bottom: 20px; 
}
.footer-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0 0 5px 0; 
    letter-spacing: 0.05em;
}
.footer-subject {
    font-size: 0.85rem;
    color: #cccccc; 
    margin: 0;
    line-height: 1.5;
}

/* SNSアイコン周りの設定 */
.footer-sns { margin-bottom: 25px; text-align: center; } 
.footer-sns-title { font-size: 1.0rem; font-weight: bold; margin-bottom: 15px; color: #dddddd; letter-spacing: 0.1em; }
.sns-item { display: flex !important; justify-content: center !important; gap: 20px; list-style: none !important; padding: 0; margin: 0; }
.sns-icon a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: #ffffff; border-radius: 50%; transition: transform 0.2s, opacity 0.2s; overflow: hidden; } 
.sns-icon a:hover { transform: translateY(-3px); opacity: 0.8; }
.sns-icon img { width: 22px !important; height: 22px !important; max-width: 22px !important; max-height: 22px !important; object-fit: contain; margin: 0; padding: 0; border: none; }

/* コピーライトの設定 */
.copyright { padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 12px; color: #cccccc; max-width: 600px; margin: 20px auto 0; } 

/* トップへ戻るボタン */
#btn-pagetop { position: fixed; bottom: 30px; right: 30px; background: var(--main-color); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.pagetop__arrow { width: 12px; height: 12px; border-top: 3px solid #fff; border-right: 3px solid #fff; transform: rotate(-45deg); margin-top: 6px; }

/* =========================================
   6. スマートフォン対応 (レスポンシブ)
========================================= */
@media (max-width: 768px) {
    main { margin: 20px; padding: 20px; }
    
    .circle-badge { width: 55px; height: 55px; font-size: 1.0rem; }
    .site-title a { gap: 10px; }
    .site-title .small-text { font-size: 0.85rem; }
    .site-title .main-text { font-size: 1.25rem; }
    
    .survey-small { font-size: 0.75rem; }
    .survey-txt { font-size: 1.05rem; line-height: 1.6; }
    .hero-message { font-size: 1.3rem; margin-bottom: 30px; }
    .lead-text { font-size: 1.05rem; }
    .period-survey-box { padding: 25px 15px; }

    .info-container { flex-direction: column !important; padding: 20px !important; }
    .info-image-box { width: 100% !important; margin-top: 20px; }
    .news-item { flex-direction: column; gap: 5px; padding: 15px 5px; }
    .news-date { width: auto; font-size: 0.95rem; }

    .btn-survey { padding: 15px 30px; font-size: 1.2rem; width: 100%; box-sizing: border-box; }
    .chart-grid { grid-template-columns: 1fr; }
    #btn-pagetop { bottom: 15px; right: 15px; width: 40px; height: 40px; }

    /* --- ▼ スマホ用ハンバーガーメニュー ▼ --- */
    .menu-btn {
        display: block; background: none; border: none; cursor: pointer;
        width: 44px; height: 44px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 1001;
    }
    .menu-btn span {
        display: block; width: 26px; height: 3px; background-color: var(--main-color);
        border-radius: 2px; position: absolute; left: 9px; transition: all 0.3s;
    }
    .menu-btn span:nth-child(1) { top: 12px; }
    .menu-btn span:nth-child(2) { top: 21px; }
    .menu-btn span:nth-child(3) { top: 30px; }
    .menu-btn.is-active span:nth-child(1) { top: 21px; transform: rotate(45deg); }
    .menu-btn.is-active span:nth-child(2) { opacity: 0; }
    .menu-btn.is-active span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

    .global-nav {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(255, 255, 255, 0.95); z-index: 1000; padding-top: 100px; overflow-y: auto;
    }
    .global-nav.is-active { display: block; }
    .nav-list { display: flex; flex-direction: column; gap: 0; }
    .menu-item { border-bottom: 1px solid #eee; padding: 15px 0; }
    .sub-item { position: static; display: block; transform: none; box-shadow: none; border: none; background: #f8f9fa; width: 100%; margin-top: 10px; }

    /* --- ▼ 表のスマホ対応（縦並び化） ▼ --- */
    .responsive-table, 
    .responsive-table tbody, 
    .responsive-table tr, 
    .responsive-table th, 
    .responsive-table td,
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block; width: 100%; box-sizing: border-box;
    }

    /* 項目ごとの区切り線と余白 */
    .responsive-table tr,
    .info-table tr {
        margin-bottom: 20px;
        border-bottom: 2px dotted #ccc;
        padding-bottom: 10px;
    }
    .responsive-table tr:last-child,
    .info-table tr:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* 見出し（左側だった部分）の装飾 */
    .responsive-table th, 
    .info-table th { 
        background-color: #f2f8f8; 
        color: var(--main-color);
        padding: 10px 15px;
        border-radius: 4px;
        margin-bottom: 10px;
        text-align: left;
        border: none;
        white-space: normal; /* スマホでは長ければ改行を許可 */
    }

    /* 内容（右側だった部分）の装飾 */
    .responsive-table td, 
    .info-table td { 
        padding: 0 10px 10px;
        border: none;
    }
}