/* ======================================
   ベーススタイル
====================================== */
html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN",
        "メイリオ", Meiryo, sans-serif;
    color: #222;
    line-height: 1.6;
}
p{
    margin: 0;
    padding: 0em 0em 1em 0em;
}
h3{
    font-size: 1.25em;
    padding: 1em 0em 0.5em 0em;
    margin: 0em;
}

/* 共通セクション */
.section {
    margin: 0;
    padding: 0;
}

.section .text-area{
    max-width:760px;
    margin-left: auto;
    margin-right: auto;
    padding: 0em 1em 0em 1em;
}
.section .text-area h2{
    color: #376ab2;
    font-weight: bold;
    font-size: 1.75em;
}
/* ======================================
   セクションA / B（上部の画像セクション）
====================================== */
.section--a {
    background-color: #fff251;
}
.section--b {
    background-color: #b8cae4;
}
.section--d {
    background-color: #c8e5ba;
}


/* 画像ラッパー */
.section picture {
    display: block;
    margin: 0;
    padding: 0;
}

/* 画像本体 */
.section__img {
    display: block;
    margin: 0;
    height: auto;
}

/* スマホ：横幅いっぱい */
@media (max-width: 767px) {
    .section__img {
        width: 100%;
    }
}

/* PC：画像は980pxの中央揃え */
@media (min-width: 768px) {
    .section--a picture,
    .section--b picture,
    .section--d picture {
        width: 860px;
        max-width: 860px;
        margin: 0 auto;   /* 左右中央 */
    }

    .section__img {
        width: 100%;
    }
}

/* ======================================
   セクションC：薬局カード一覧
====================================== */
.section--c {
    background-color: #b8cae4;   /* 水色背景 */
    padding: 40px 20px;
}
@media (max-width: 767px) {
    .section--c {
        padding-top: 0.5em;
    }
}


/* セクションC 内コンテナ
   SP/PCとも縦並び（カテゴリ → カード） */
.section-c-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px; /* カテゴリとカードの間隔 */
}

@media (min-width: 768px) {
    .section-c-inner {
        flex-direction: column;  /* PCも縦並びのまま */
        align-items: stretch;
        gap: 12px;
    }
}

/* ---------------------------
   カテゴリフィルタパネル
--------------------------- */
.filter-panel {
    width: 100%;
}

/* タイトル */
.filter-panel__title {
    margin: 0 0 8px 0;
    font-weight: 600;
    text-align: center;
    font-size: 1.75em;
}
/* タイトル */
.filter-panel__title2 {
    margin: 0 0 8px 0;
    font-weight: 600;
    text-align: center;
    color: #fff700; font-weight: bold; font-size: 3.0em;
}
@media (max-width: 768px) {
    .filter-panel__title2 {
        font-size: 2.0em;
    }
}


/* ボタンエリア */
.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* 中央寄せ */
    padding-bottom: 2em;
}
@media (max-width: 767px) {
    .filter-buttons {
        padding-bottom: 1em;
    }
}
/* ボタン本体 */
.filter-btn {
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

.filter-btn.active {
    background: #007acc;
    color: #fff;
    border-color: #007acc;
}

/* （必要なら）SPで2列風に並べたいときの例
@media (max-width: 767px) {
    .filter-btn {
        flex: 1 1 calc(50% - 8px);
        text-align: center;
    }
}
*/

/* ======================================
   カード一覧
====================================== */
.cards {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;   /* SP：1列 */
    gap: 20px;
}

/* PC：3列 */
@media (min-width: 768px) {
    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* カード本体 */
.card {
    background: #fff;
    border-radius: 8px;
    padding: 18px 16px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* タイトル＋カテゴリ */
.card__title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

/* カテゴリタグ（角丸バッジ） */
.card__category {
    background-color: #666;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 6px;
    display: inline-block;
    line-height: 1.4;
}
/*薬局店舗*/
.card__category_s {
    background-color: #25aa6c;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 6px;
    display: inline-block;
    line-height: 1.4;
}
/*企業*/
.card__category_c {
    background-color: #3e91c1;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 6px;
    display: inline-block;
    line-height: 1.4;
}
/*病院*/
.card__category_h {
    background-color: #ba6482;
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    margin-left: 6px;
    display: inline-block;
    line-height: 1.4;
}

/* 罫線 */
.card__line {
    border: none;
    border-top: 1px solid #ccc;
    margin: 10px 0 12px 0;
}

/* カード内の1行（アイコン＋テキスト） */
.card__item {
    display: flex;
    align-items: flex-start;
    margin: 0;
    font-size: 14px;
    padding: 0 0 0.5em 0;
}

/* アイコンラッパー */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    flex-shrink: 0;
}

/* SVGアイコン共通（モダングレー） */
.icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #666;
    stroke-width: 1.8;
    
}

/* リンク（公式サイト） */
.card__link {
    color: #007acc;
    text-decoration: underline;
    font-size: 14px;
}

/* フィルタ用：非表示クラス */
.hidden {
    display: none !important;
}
.text_blue{
    color: #376ab2;
    font-weight: bold;
}
.pb2em{
    padding-bottom: 2em;
}
.section--b a picture img {
    transition: transform 0.4s ease;
}

.section--b a:hover picture img {
    transform: scale(1.05);
}

/* --------------------------
   固定メニュー（画面下固定）
--------------------------- */
.fixed-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;              /* ← 横並び */
    justify-content: space-between;
    z-index: 9999;
}

/* ボタン共通 */
.fixed-btn {
    flex: 1;
    text-align: center;
    padding: 14px 0;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

/* 左ボタン（事前登録） */
.fixed-btn--primary {
    background-color: #fff251;
    color: #376ab2 ;
    font-size: 1.3em;
    font-weight: bold;
    flex: 7;   /* 70% */
}

/* 右ボタン（会場はこちら） */
.fixed-btn--secondary {
    background-color: #376ab2;
    font-weight: bold;
    flex: 0 0 140px;
}

/* ボタン間の仕切り線 */
.fixed-btn + .fixed-btn {
    border-left: 1px solid rgba(255,255,255,0.3);
    line-height: 1;
}


/* セクションD：地図 */
.section--map {
    background: #ffffff;
    padding: 40px 20px;
    text-align: center;
}

.map-title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: 20px;
}

.map-wrap {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* 地図の比率を固定 */
    overflow: hidden;
    border-radius: 10px; /* 角丸（不要なら削除） */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* 影（不要なら削除） */
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-google-title{
    font-size: 0.8em; padding-left: 0.5em;
}

/* フッター */
.footer {
    background-color: #333;
    color: #fff;
    padding: 20px 16px;
    padding-bottom: 60px;  /* ★ ここを追加：固定メニュー分の余白を確保 */
    text-align: center;
    font-size: 14px;
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

.footer-text {
    margin: 0 0 4px 0;
}

.footer-text-small {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

/* ==========================
   タイムスケジュール
========================== */
.schedule-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5em 1em 2em;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.schedule-table th,
.schedule-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

/* 時間（左） */
.schedule-table th {
    width: 90px;
    text-align: center;
    background: #376ab2;
    color: #fff;
    font-weight: bold;
}

/* 内容（右） */
.schedule-table td {
    text-align: left;
}

/* 最終行の罫線を消す */
.schedule-table tr:last-child th,
.schedule-table tr:last-child td {
    border-bottom: none;
}

/* ---------- スマホ：縦レイアウト強制 ---------- */
@media (max-width: 767px) {

    .schedule-table {
        border: none;
        background: transparent;
    }

    .schedule-table tr {
        display: block;
        margin-bottom: 12px;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
    }

    .schedule-table th,
    .schedule-table td {
        display: block;
        width: 100%;
        border: none;
    }

    .schedule-table th {
        background: #376ab2;
        color: #fff;
        font-weight: bold;
        padding: 10px 14px;
        text-align: left;
    }

    .schedule-table td {
        padding: 12px 14px;
        font-size: 16px;
    }
}
