@charset "UTF-8";
html, body {
    overflow-x: hidden; /* 横スクロールを禁止 */
    width: 100%;
}
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    font-size: 100%;
    line-height: 1.8;
    background-color: #FFFFFF;
    color: #333333;
    margin: 0;
    padding: 0;
}
h1,h2,p,ul,li{
	margin: 0px;
	padding: 0px;
}

ul{
	list-style-type: none;
}

/* 2. 画像の固定幅を解除し、レスポンシブに対応させる */
img {
    max-width: 100%;
    height: auto;
}



/*リンク設定
---------------------------------------------------------------------------*/

a:hover {
	text-decoration: none;
}





/*h1タグ設定
---------------------------------------------------------------------------*/
h1 {
	font-size: 14px;
	color: #000000;
	font-weight: normal;
	text-align: right;
	max-width: 900px;
    width: 100%;
	margin-right: auto;
	margin-left: auto;
	padding-top: 10px;
}

h1 a {
	color: #990000;
	text-decoration: none;
}



/*コンテナ（HP全体を包むブロック）
---------------------------------------------------------------------------*/
/* 1. コンテナの幅を柔軟にする */
.container {
    max-width: 900px;
    /*width: 95%; /* スマホでは画面幅の95%に */
    /*margin: 40px auto;*/
    width: 95% !important; /* コンテナを画面幅の95%に固定 */
    margin: 10px auto !important;
    background-color: #FFFFFF;
    border: 1px solid #990000;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

main {
    padding-left: 30px;
    padding-right: 30px;
}
/*ヘッダー
---------------------------------------------------------------------------*/
/* ヘッダー全体の設定 */
.site-header {
    background-image: url(img/hed.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 296px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 0 0 12px 12px;
    position: relative;
}

/* 背景色の濃い画像の上に表示しやすく */
.logo-area h2 {
    color: #a40001; 
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 
        2px 2px 0 #fff, 
        -2px -2px 0 #fff, 
        2px -2px 0 #fff, 
        -2px 2px 0 #fff,
        0 0 10px rgba(255,255,255,0.8);
    margin: 0;
    letter-spacing: 0.1em;
}

/* 見出しのスタイル設定（枠と背景色削除） */
h2 {
    font-size: 1.5rem;
    color: #333;
    padding: 0;
    margin: 30px 0 20px 0;
    text-align: left;
    font-weight: bold;
}


.nav-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* PCは4列 */
    gap: 10px;
    padding: 0;
    list-style: none;
    width: 100%; /* コンテナ幅いっぱいに */
    box-sizing: border-box; /* 枠線やpaddingを幅に含める */
}

.nav-grid li a {
    display: block;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: #990000;
    color: #FFFFFF !important;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
}

.nav-grid li a:hover {
    background-color: #FAF3CB !important;
    color: #990000 !important;
}




/*コンテナ
---------------------------------------------------------------------------*/
.container {
	/*width: 900px;*/
	margin-right: auto;
	margin-left: auto;
}

/*地図
---------------------------------------------------------------------------*/
/* 地図画像をコンテナいっぱいに広げる設定 */
#map {
    padding: 0;           /* 余白を消す */
    margin: 0 -30px;      /* mainの左右30pxの余白を打ち消してはみ出す */
}



/*画像タグ設定*/


/* コンテナコンテンツの設定 */
.content {
    border-bottom: 1px solid #990000;
    padding-bottom: 20px;
}

/* --- コンテンツコンテナの見出しスタイル --- */
.content h2 {
    font-size: 1.25rem;
    color: #990000;
    margin: 40px 0 20px 0;
    font-weight: bold;
    text-align: left;
    
    border-bottom: 3px double #990000;
    padding-bottom: 8px;
    
    position: relative;
    padding-left: 25px; 
    
    background: none;
    border-left: none;
}

/* 装飾アイコンの設定 */
.content h2::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #990000;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
/* 見出しのスタイル */
.map-guide {
    font-size: 1.2rem; /* h3のサイズを調整 */
    color: #333;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

/* 赤い丸 */
.red-dot {
    color: #990000;
    font-size: 2rem; /* ここを大きくすると●が大きくなります */
    margin-right: 4px; /* 右側に少し余白を入れると文章と馴染みます */
}

/* 緑の丸 */
.green-dot {
    color: #008000;
    font-size: 2rem; /* 同様に大きくする */
    margin-right: 4px;
}


#map img {
    display: block;
    width: 100%;
    max-width: 600px; /* いわきの画像の横幅に合わせる */
    height: 722px;
    aspect-ratio: 600 / 722; /* ★ここをいわきの画像サイズに変更 */
    margin: 0 auto;
}


/*フッターメニュー
---------------------------------------------------------------------------*/
#footermenu {
	clear: both;
	width: 100%;
	font-size: 12px;
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
}

#footermenu li {
	display: inline;
	padding-right: 5px;
	padding-left: 5px;
}



/*フッター
---------------------------------------------------------------------------*/
#footer {
	font-size: 10px;
	text-align: center;
	padding-top: 10px;
	padding-bottom: 10px;
}

/* スマートフォン用の設定（画面幅768px以下の場合） */
@media screen and (max-width: 768px) {
    .container {
        margin: 10px;
        border-width: 3px;
    }
    
    .nav-grid {
        grid-template-columns: repeat(2, 1fr); /* スマホは2列 */
    }
    .nav-grid li a {
        font-size: 0.9rem; /* 文字を少し小さくして収まりやすくする */
        padding: 0 5px;    /* 余白を詰める */
        box-sizing: border-box;
    }
    
    .site-header {
        height: 200px;
    }

    .logo-area h2 {
        font-size: 1.4rem;
    }
    
    main, .content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* --- ここから下を追記してください --- */
    #map {
        margin: 0 -15px; /* mainのpaddingを打ち消して横幅いっぱいに */
        padding: 0;
    }
    
    #map img {
        width: 100%;    /* スマホで横幅いっぱいに伸縮 */
        height: auto;   /* 縦横比を維持 */
    }
    /* --- 追記ここまで --- */
}