﻿/* CSS Document */

.path{
        float:right;
	padding:6px 8px 0px 20px;
	font-size:12px;
	background:url(../img/ico03.gif) no-repeat 0px 6px;
}
.path a, .path a:visited{
	text-decoration:none;
	color:#333;
}
.path a:hover{
	color:#f90;
}


.gaiyou{
	font-size: 13px;
	margin: 5px 0 5px 15px;
}
.gaiyou div.header{
	float: left;
        width: 150px;
}
.gaiyou div.contents{
	width: 350px;
	padding-left: 150px;  /*"main" total width: 515px*/
}

.gaiyou div.contents p#kajyou{
	text-indent: -0.5em;
	margin:0;
	padding: 3px 0 3px 0;
	font-size: 13px;
}

.e-gaiyou{
	font-size: 13px;
	margin: 5px 0 5px 15px;
}
.e-gaiyou div.header{
	float: left;
        width: 200px;
}
.e-gaiyou div.contents{
	width: 300px;
	padding-left: 200px;  /*"main" total width: 515px*/
}

.e-gaiyou div.contents p#kajyou{
	text-indent: -0.5em;
	margin:0;
	padding: 3px 0 3px 0;
	font-size: 13px;
}

.committee{
	margin-left: 30px;
	font-size: 13px;
}

/* ==========================================
   スマートフォン対応（レスポンシブ）設定
   ========================================== */
@media screen and (max-width: 768px) {

    /* 全体の幅指定を画面幅いっぱいに自動調整 */
    #container, #header, #footer, #main, #side {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* ヘッダー・フッター背景グラデーションの調整 */
    #header, #footer {
        background-size: cover !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
        height: auto !important;
    }

    /* ヘッダー内テキストの文字サイズと余白調整 */
    #header h1 {
        margin-left: 0 !important;
        font-size: 20px !important;
        text-align: center !important;
    }
    #header p {
        margin-left: 0 !important;
        font-size: 14px !important;
        text-align: center !important;
    }

    /* サイドメニューの調整（コンテンツの下に読みやすく配置） */
    #side {
        margin-top: 30px !important;
        background-color: #f9f9f9;
        padding: 15px !important;
        border-radius: 5px;
    }

    /* メイン画像などの溢れ防止 */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* ==========================================
   スマホ用ハンバーガーメニュー設定（左側配置）
   ========================================== */
/* PC表示ではボタンを隠す */
.menu-toggle-btn {
    display: none;
}

@media screen and (max-width: 768px) {
    /* メニュー開閉ボタンのスタイル（左上に固定） */
    .menu-toggle-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1000;
        background-color: #003366;
        color: #ffffff;
        padding: 10px 15px;
        font-size: 14px;
        font-weight: bold;
        border-radius: 5px;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    }

    /* サイドバーをスライドパネル化（左側から出る設定） */
    #side {
        position: fixed !important;
        top: 0 !important;
        left: -260px !important; /* 初期状態は画面左外に隠す */
        width: 240px !important;
        height: 100% !important;
        background-color: #ffffff !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.2) !important;
        transition: left 0.3s ease !important;
        padding: 60px 15px 20px 15px !important;
        margin: 0 !important;
    }

    /* メニューが開いたときの状態 */
    #side.active {
        left: 0 !important; /* 左から画面内に出てくる */
    }
}