@charset "shift_jis";

*,*::before,*::after {box-sizing: border-box;}
body {font-size: 100%;color: #000;}
ul {list-style-type: none; padding-left: 0; margin: 0;}
figure {margin: 0;}
figure > img {display: block; margin: 0 auto;}
figcaption {text-align: center; font-size: 10pt;font-weight: bold;}

.wrapper {
    width: 960px;
    margin: 0 auto;
}
.to-top {
    display: block;
    width: 120px;
    font-size: 14px;
    margin-left: auto;
    margin-top: 3rem;
}


/* レイアウト用デザイン */
.wrapper p {margin: 0;}
.flex {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}


/* 固有のデザイン */
:root {
    --normal: #008000;
    --main: #7BC273;
    --h2back: #b4e2af;
    --h3back: #ddfadc;
    --txt: #060;
}

h1 img {display: block;margin: auto;}
h2 {background-color: var(--h2back); margin-top: 0;}
h2:first-child {margin-top: 3rem;}
h2::before {
    display: inline-block;
    content: "■";
    color: var(--normal);
}
.head-img {background-color: var(--main); margin: 0 0 1rem;}

.update-scroll {
    border: #ccc 1px solid;
    width: calc(100% - 280px);
    max-height: 10rem;
    overflow-y: scroll;
    font-size: 11pt;
}
.update-scroll li {display: flex; gap: 5px;}
.update-scroll time {width: 123px;}
.update-scroll span {display: block; width: calc(100% - 123px);}

.moromoro {
    display: grid;
    grid-template-columns: 1fr;
    text-align: right;
}
.netis {
    border: 2px solid var(--main);
    font-size: 10pt;
    padding: 5px;
    color: var(--normal);
}

.flex.first {justify-content: left; gap: 2rem}

p.p-green {
    border: 1px solid var(--normal);
    background-color: var(--h3back);
    padding: 2px 0;
    margin: 1rem 0;
}

.anchor-link a {color: var(--normal);font-weight: bold;}
.anchor-link li::before {
    display: inline-block;
    content: ">";
    color: var(--normal);
    font-weight: bold;
    padding: 0 5px;
}

.kouhou-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}
.kouhou-inline figure {width: fit-content;}

.kouhou-list {
    color: var(--normal);
    font-weight: 600;
    margin: 2rem 0;
}
.kouhou-list li.blue {color: #36c;}
.kouhou-list li::before {
    display: inline-block;
    content: "★";
    padding-right: 1rem;
}

.h3-green {
    background-color: var(--h3back);
    color: var(--txt);
    border: 1px solid var(--txt);
    text-align: center;
}

.earthquake {
    line-height: 1.7;
    border: 1px solid var(--normal);
    background-color: #ffffd9;
    margin: 1rem auto;
    padding: 0 5px;
}
.earthquake tr::before {
    display: inline-block;
    content: "◆";
    color: var(--main);
}

.tokoro-wrap {width: 95%;margin: 0 auto;}
.tokoro {display: flex;margin: 2rem 0 1rem;}
.tokoro h3,
.tokoro p {
    flex-basis: 49%;
    padding-left: 1rem;
    border: var(--txt) 1px solid;
}
.tokoro h3 {
    background-color: #cfc;
    color: var(--txt);
    margin: 0;
}
.tokoro p {
    line-height: 30px;
    border-left: none;
}
.tokoro-list {
    margin: 1rem 0;
}
.tokoro-list li::before {
    display: inline-block;
    content: "●";
    color: var(--main);
    padding: 0 5px;
}
.tokoro-grid {
    display: grid;
    width: fit-content;
    grid-template-columns: 212px 191px;
    grid-template-rows: 148px 182px;
    gap: 10px;
    margin: 0 auto;
}
.tokoro-grid img:first-child {
    grid-area: 1 / 1 / 2 / 2;
}
.tokoro-grid img:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
}
.tokoro-grid img:last-child {
    grid-area: 2 / 1 / 3 / 3;
}
.tokoro-wrap .flex {justify-content: center;align-items: center;}
.tokoro-wrap .flex img {margin: 0;}


footer {
    text-align: center;
}


@media screen and (max-width:768px) {
    /* ── ラッパー ── */
    .wrapper {
        width: 100%;
        margin: 0;
        padding: 0 10px;
        overflow-x: hidden;
    }


    h2:first-child {
        margin-top: 1.5rem;
    }

    h2 {font-size: 1.2em;}
    h3 {font-size: 1em;}

    /* ── 更新情報スクロールエリア ── */
    .update-scroll {
        width: 100%;
        font-size: 10pt;
    }
    .update-scroll time {
        width: 100px;
        flex-shrink: 0;
    }
    .update-scroll span {
        width: calc(100% - 100px);
    }

    .moromoro {
        gap: 5px;
        text-align: center;
    }
    .request-btn {display: block; margin: 0 auto;}

    .flex.first {
        margin-top: 2rem;
        gap: 10px;
    }

    /*写真だけではなく複数のブロックをフレックスにしている場合は縦並びに変更*/
    div.flex {flex-direction: column;}

    figure.flex {gap: 10px;}
    
    /*フレックス有の複数横並び画像*/
    .flex img,
    .kouhou-inline img {
        display: block;
        min-width: 0;
    }

    /*フレックス無しの単体画像*/
    .head-img img,
    figure img {
        display: block;
        max-width: 100%;
    }

    .kouhou-list {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .kouhou-list li,
    .tokoro-list li {font-size: 14px;}

    /* ── tokoro（場所）エリア ── */
    .tokoro {
        flex-direction: column;
        margin: 1rem 0;
    }
    .tokoro-wrap article:first-child {margin-top: 0;}
    .tokoro-wrap article {margin-top: 2rem;}

    .tokoro h3,
    .tokoro p {
        flex-basis: auto;
        width: 100%;
    }
    .tokoro p {
        border-left: 1px solid var(--txt);
        border-top: none;
        line-height: 1.5;
    }

    /* ── tokoro グリッド画像 ── */
    .tokoro-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        width: 100%;
    }
    .tokoro-grid img:first-child  { grid-area: 1 / 1 / 2 / 2; width: 100%; height: auto; }
    .tokoro-grid img:nth-child(2) { grid-area: 1 / 2 / 2 / 3; width: 100%; height: auto; }
    .tokoro-grid img:last-child   { grid-area: 2 / 1 / 3 / 3; width: 100%; height: auto; }


    /* ── テーブル（earthquake等）のはみ出し防止 ── */
    .earthquake {
        width: 100%;
        word-break: keep-all;
        font-size: 14px;
    }
}