@charset "UTF-8";

/* --- Flexboxレイアウト設定 --- */

/* レイアウトの親箱 */
.layout-wrapper {
    display: flex;
    justify-content: space-between; /* メインとサイドバーを両端に配置 */
    align-items: flex-start; /* 上端を揃える */
    width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* メインコンテンツ（PC） */
#contents {
    width: 560px; /* 余白込みで600px相当 */
    padding: 20px 0 40px 40px; /* 左に40pxの余白 */
    text-align: left;
    box-sizing: content-box;
}

/* サイドバー */
#sidebar {
    width: 210px;
    padding-top: 20px;
}

/* ヘッダー画像 */
#header img {
	height: 250px;
	width: 900px;
}

h2 {
	color: #FF9900;
	font-size: 20px;
    border-bottom: 1px dotted #FF9900;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#menu_link {
	color: #FF9900;
	margin-bottom: 10px;
    font-size: 12px;
}
	
#menu_link a {
	color: #FF9900;
	text-decoration: none;
}

#menu_link a:hover {
	color: #FF9900;
	text-decoration: underline;
}

#exp {
    margin-bottom: 20px;
    font-size: 12px;
}

/* 見出し（帯） */
.subtitle {
	width: 100%;
	height: auto;
	background-color: #FFF8DC;
	color: #996633;
	margin-top: 30px;
	margin-bottom: 15px;
	padding: 5px 8px;
	font-size: 16px;
    box-sizing: border-box;
    clear: both;
}

/* 小見出し（線） */
.long {
	width: 100%;
	height: auto;
	color: #996633;
	border-bottom: thin dotted #996633;
	margin-top: 20px;
	margin-bottom: 10px;
	padding-left: 5px;
	padding-bottom: 5px;
	font-size: 16px;
	clear: both;
}

/* パンのリスト（PC用設定） */
.menu_list {
	width: 110px;
	height: 150px;
	margin-right: 20px;
	margin-bottom: 10px;
	float: left; /* PCではfloat */
}
	
.breadimg_s {
	height: 110px;
	width: 110px;
}

.breadimg_s a:hover img {
	opacity: 0.6;
	filter: alpha(opacity=60);
	-ms-filter: "alpha( opacity=60 )";
}

.breadname {
	color: #713213;
	font-size: 13px;
	line-height: 1.4;
    margin-top: 5px;
}

/* 3つのボタン（左揃え） */
.jump {
	width: 100%;
	height: auto;
	margin: 30px 0;
	clear: both;
    text-align: left;
}

.jump img {
	margin-right: 10px;
    margin-left: 0;
    vertical-align: bottom;
}

/* ページトップ */
#pagetop {
    clear: both;
    text-align: right;
    margin-top: 20px;
}

#pagetop a {
    color: #713213;
    text-decoration: none;
}


/* --- サイドバー内の画像調整 --- */
#inquirybanner, #blog {
    margin-bottom: 20px;
    transition: 0.3s;
}

#inquirybanner a:hover img, 
h3 a:hover img {
    opacity: 0.7;
}


/* --- スマホ対応（レスポンシブ） --- */
@media screen and (max-width: 640px) {
    
    .layout-wrapper {
        width: 100% !important;
        flex-direction: column;
        padding: 0 !important;
        box-sizing: border-box;
    }

    /* コンテンツエリア */
    #contents {
        width: 100% !important;
        padding: 20px 20px !important;
        box-sizing: border-box;
        margin: 0 !important;
    }

    /* ▼▼▼ 追加修正：文字サイズを大きくして読みやすく ▼▼▼ */
    #menu_link {
        font-size: 14px !important; /* 12px -> 14px */
        line-height: 1.6;
        margin-bottom: 15px !important;
    }
    
    #exp {
        font-size: 14px !important; /* 12px -> 14px */
        line-height: 1.6;
        margin-bottom: 30px !important;
    }
    /* ▲▲▲ 追加修正ここまで ▲▲▲ */


    /* サイドバー */
    #sidebar {
        width: 100% !important;
        text-align: center;
        padding: 20px 0;
    }
    
    #sidebar img {
        max-width: 90%;
        height: auto;
    }

    .insta-card {
        margin: 0 auto 20px !important;
    }

    #header img {
        width: 100% !important;
        height: auto !important;
    }

    /* 3列表示の設定 */
    .menu_list {
        display: inline-block !important;
        float: none !important;
        vertical-align: top;
        
        width: 29% !important; 
        margin-right: 2% !important;
        margin-bottom: 25px !important;
        height: auto !important;
    }
    
    .breadimg_s {
        width: 100% !important;
        height: auto !important;
        margin-bottom: 5px;
    }

    .breadimg_s img {
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    .breadname {
        font-size: 10px !important;
        line-height: 1.3;
        word-wrap: break-word;
    }
    
    /* ジャンプボタン */
    .jump img {
        width: 30%;
        height: auto;
        margin-right: 3px;
    }
}


/* --- ライトボックス用CSS（維持） --- */

.iframe-modal {
  margin: auto;
  position: fixed;
  inset: 0;
  width: 90%;
  max-width: 500px;
  height: 450px;
  padding: 0;
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background: #fff;
  overflow: hidden;
}

.iframe-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.iframe-modal-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.iframe-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  background: #333;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  opacity: 0.9;
}
.iframe-close-btn:hover {
  background: #555;
  opacity: 1;
}

.iframe-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}