/* CSS Document */

/*基本指定*/
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    font-size: 100%;
    font-family: 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', Meiryo, 'メイリオ', Osaka, 'MS PGothic', arial, helvetica, sans-serif;
    margin: 0;
    outline: 0 none;
    padding: 0;
    vertical-align: baseline;
    box-sizing: border-box;
}
	
/*画像・動画指定*/
img, video {
	border: none;
    max-width: 100%;
    height: auto;
}
a img {
    border: none;
}

/* リンク色（ページ全体） */
a { 
	color: #007bff; 
	text-decoration: underline; 
    transition: color 0.3s;
}

a:hover { 
	color: #d62828; 
	text-decoration: none;
}

/*文字装飾*/
.yline { 
    background: linear-gradient(transparent 60%, #ffd700 60%);
    font-weight: bold;
}

/*コンテンツ指定*/
body {
	text-align: center;
	font-size:16px;
	line-height: 1.8;
	background-color: #f4f7f6;
	color: #333;
	margin: 0;
}

#wrapper{
	width:100%;
    max-width: 820px;
	background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
	margin: 0 auto;
	padding: 0;
}

/**▼ヘッダー*****/
#header{
	width:100%;
	margin:0 auto;
}

#head_img{
	height: 810px;
	background: url(img/4.jpg) no-repeat center center; /* 画像を変更 */
    background-size: cover;
	margin-bottom:30px;
	border-bottom:5px solid #003366;
}

/*メイン記事指定*/
h2{
	font-size: 24px;
	font-weight:bold;
    color: #003366;
    text-align: center;
    padding: 10px;
    margin: 10px 0 25px 0;
    border-bottom: 2px solid #0055a4;
    line-height: 1.5;
}

h3{
	font-size: 20px;
	font-weight:bold;
    color: #fff;
    background-color: #0055a4;
	margin: 30px 0 20px;
	padding: 12px 20px;
    border-radius: 5px;
    text-align: left;
    line-height: 1.4;
}

#content{
	width: 95%;
    max-width: 760px;
	margin: 0 auto;
	padding: 0 10px;
	text-align: left;
}

.inner{
	margin: 10px 0 30px 0;
	padding: 1px 1px 20px 1px ;
}

.inner p{
	margin:0 0 1.5em 0;
	text-align:justify;
}

/*おすすめコーナー*/
.recommend-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.recommend-item {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background-color: #fafafa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.recommend-item h4 {
    color: #003366;
    margin: 10px 0;
    font-size: 18px;
    height: 3em; /*高さを揃える*/
}
.recommend-item p {
    font-size: 14px;
    text-align: left;
}

/*口コミコーナー*/
.review-container {
    padding: 0 10px;
}
.review-item {
    background: #f4f7f6;
    border-left: 5px solid #0055a4;
    padding: 15px;
    margin-bottom: 20px;
}
.review-name {
    font-weight: bold;
    color: #003366;
    margin-bottom: 5px !important;
}

/*FAQアコーディオン*/
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.accordion-header {
    width: 100%;
    background-color: #f7f7f7;
    border: none;
    padding: 15px;
    text-align: left;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s;
}
.accordion-header:hover {
    background-color: #e9e9e9;
}
.accordion-header::after {
    content: '+';
    font-size: 20px;
    color: #0055a4;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}
.accordion-header.active::after {
    content: '-';
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #fff;
}
.accordion-content p {
    padding: 20px;
    margin: 0;
}

/*ボタン指定*/
.bt_c{
	text-align:center;
	margin: 30px auto;
}
.bt_c img {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    border-radius: 10px;
}
.bt_c img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 85, 164, 0.4);
}

/*フッター*/
#footer{
	text-align: center;
	clear: both;
    margin-top: 40px;
}
#space{
	margin: 0;
	padding: 20px;
	font-size:14px;
    line-height: 1.7;
	clear:both;
	text-align: left;
    background-color: #f4f7f6;
}
#space p {
    max-width: 760px;
    margin: 0 auto;
}
address {
	font-style: normal;
	color: #FFFFFF;
	text-align: center;
	display: block;
	background: #003366;
	font-size: 12px;
	padding: 15px 0;
	width: 100%;
}

/* レスポンシブ対応 */
@media screen and (min-width: 641px){
    .recommend-item {
        width: calc(33.333% - 14px);
    }
}

@media screen and (max-width: 640px){
    body {
        font-size: 15px;
    }
    #wrapper {
        width: 100%;
        box-shadow: none;
    }
    #head_img {
        height: 200px;
        margin-bottom: 20px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    .recommend-container {
        flex-direction: column;
    }
    .recommend-item {
        width: 100%;
    }
}

/* おすすめコーナーのスタイルをリッチにする */
.recommend-item {
    display: flex; /* Flexboxを使用して内部要素を管理 */
    flex-direction: column; /* 要素を縦に並べる */
    height: 100%; /* 親要素の高さを継承 */
}
.recommend-item h4 {
    height: auto; /* 高さを自動調整に変更 */
    min-height: 2.5em; /* 最小高さを設定してガタつきを防ぐ */
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 19px;
}
.recommend-price {
    font-size: 16px;
    font-weight: bold;
    color: #d62828; /* 目立つ色に */
    margin-bottom: 15px !important; /* !importantで優先度を上げる */
    text-align: center;
}
.recommend-price span {
    font-size: 28px; /* 数字を大きく */
    font-family: Arial, sans-serif;
    margin-right: 2px;
}
.recommend-desc {
    font-size: 14px;
    text-align: left;
    flex-grow: 1; /* 残りのスペースを埋めるように伸ばす */
    margin-bottom: 20px !important;
}
.recommend-tag {
    background-color: #0055a4;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 15px;
    display: inline-block; /* インラインブロック要素に */
    margin: 0 auto; /* 中央寄せ */
}
.recommend-btn {
    margin-top: auto; /* Flexboxアイテムをコンテナの下部に固定 */
}
.recommend-btn a {
    display: block;
    background-color: #f5a623;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}
.recommend-btn a:hover {
    background-color: #e49613;
    color: #fff;
    transform: translateY(-2px);
}