@charset "utf-8";

.box__yane {
    margin-bottom: 40px; /* 余白を少し広めに */
    padding: 15px;
    box-sizing: border-box;
}

.box__yane .box__yane__inner {
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    padding: 20px 0;
    overflow: hidden; /* はみ出し防止 */
}


.box__yane__header {
    background-color: #959595; /* h2と同じ背景色にする */
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.box__yane .box__yane__inner h2 {
    background-color: #959595;
    color: #fff;
    margin: 0;
    padding: 0 0 10px;
    font-size: 1.1rem;
    width: auto;
}

/* 全体メーカー表記のスタイル */
.maker__all {
    color: #fff;
    font-size: 0.8rem;
    margin: 0;
    font-weight: bold;
}



/* コンテンツ全体（グリッド） */
.box__yane .box__yane__inner .yane__content {
    display: flex;
    grid-template-columns: 1fr;
    padding: 25px 15px 0;
    gap: 15px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.yane__content__list{
    max-width: 245px;
    width: 100%;
}

/* スマホ対応：画面が狭いときは縦に並べる */


/* 各プランのカード */
.box__yane .box__yane__inner .yane__content .yane__content__list a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    /* height: 100%; */ /* 高さを揃える */
    background-color: #fff; /* 全体の背景を白に固定 */
    border: 1px solid #d1c0a6;
    transition: all 0.2s ease;
}

.box__yane .box__yane__inner .yane__content .yane__content__list a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 画像・見出しエリア */
.box__yane .box__yane__inner .yane__content .yane__content__list .yane__content__img {
    background-color: #d1c0a6;
    padding-bottom: 10px;
    width: 100%; /* 横幅いっぱい */
}


.box__yane .box__yane__inner .yane__content .yane__content__list h3 {
    color: #fff;
    padding: 5px 5px;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.box__yane .box__yane__inner .yane__content .yane__content__list figure {
    margin: 0;
    padding: 0 10px;
    position: relative;
}

/* 耐用年数オーバーレイ */
.box__yane .box__yane__inner .yane__content .yane__content__list figcaption {
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box__yane .box__yane__inner .yane__content .yane__content__list p.text01 {
    background-color: #fff;
    color: #333;
    font-size: 0.85rem;
    padding: 1px 8px;
    margin-bottom: 5px;
}

.box__yane .box__yane__inner .yane__content .yane__content__list p.text02 {
    font-size: 1.8rem;
    color: #000;
    font-weight: bold;
    margin: 5px 0;
}

.box__yane .box__yane__inner .yane__content .yane__content__list p.text03 {
    background-color: #fffb5a;
    color: #333;
    border-radius: 20px;
    padding: 3px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 価格エリア */
.box__yane .box__yane__inner .yane__content .yane__content__list .price {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 余ったスペースを埋める */
}

.box__yane .box__yane__inner .yane__content .yane__content__list .price p.text {
    background-color: #e60012;
    color: #fff;
    padding: 8px 5px;
    font-size: 0.9rem;
    margin: 0; /* マージンをリセット */
    text-align: center;
}


.box__yane .box__yane__inner .yane__content .yane__content__list .price .amount {
    font-size: 1.4rem;
    color: #e60012;
    font-weight: bold;
    padding: 5px 5px; /* 上下に余白を作る */
    margin: 0;
    text-align: center;
    background-color: #fff; /* ここが透明だと後ろが透けるため白指定 */
}
.box__yane .box__yane__inner .yane__content .yane__content__list .price .amount small {
    font-size: 0.6em;
    margin-left: 2px;
}

/* 注釈 */
.box__yane .box__yane__inner p.note {
    clear: both; /* 回り込み解除 */
    text-align: right;
    padding: 10px 15px 0;
    font-size: 0.8rem;
    color: #333;
    position: relative; /* 重なり防止 */
    text-align: left;
}

@media (min-width: 768px){
   .box__yane {
    margin-bottom: 40px; /* 余白を少し広めに */
}

.box__yane .box__yane__inner {
    border: 1px solid #c9c9c9;
    border-radius: 10px;
    padding: 20px 0;
    overflow: hidden; /* はみ出し防止 */
}

.box__yane__header {
    background-color: #959595; /* h2と同じ背景色にする */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding-right: 20px; */
}

.box__yane .box__yane__inner h2 {
    background-color: #959595;
    color: #fff;
    margin: 0;
    padding: 0;
    font-size: 1.1rem;
    width: auto;
}

/* 全体メーカー表記のスタイル */
.maker__all {
    color: #fff;
    font-size: 0.8rem;
    margin: 0;
    font-weight: bold;
}

/* コンテンツ全体（グリッド） */
.box__yane .box__yane__inner .yane__content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 25px 15px 0;
    gap: 15px;
}


/* 各プランのカード */
.box__yane .box__yane__inner .yane__content .yane__content__list a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    /* height: 100%; */ /* 高さを揃える */
    background-color: #fff; /* 全体の背景を白に固定 */
    border: 1px solid #d1c0a6;
    transition: all 0.2s ease;
}

.box__yane .box__yane__inner .yane__content .yane__content__list a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 画像・見出しエリア */
.box__yane .box__yane__inner .yane__content .yane__content__list .yane__content__img {
    background-color: #d1c0a6;
    padding-bottom: 10px;
    width: 100%; /* 横幅いっぱい */
}


.box__yane .box__yane__inner .yane__content .yane__content__list h3 {
    color: #fff;
    padding: 5px 5px;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.box__yane .box__yane__inner .yane__content .yane__content__list figure {
    margin: 0;
    padding: 0 10px;
    position: relative;
}

/* 耐用年数オーバーレイ */
.box__yane .box__yane__inner .yane__content .yane__content__list figcaption {
    position: absolute;
    top: 0;
    left: 10px;
    right: 10px;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.box__yane .box__yane__inner .yane__content .yane__content__list p.text01 {
    background-color: #fff;
    color: #333;
    font-size: 0.85rem;
    padding: 0px 8px;
    margin-bottom: 5px;
}

.box__yane .box__yane__inner .yane__content .yane__content__list p.text02 {
    font-size: 1.7rem;
    color: #000;
    font-weight: bold;
    margin: 5px 0;
}

.box__yane .box__yane__inner .yane__content .yane__content__list p.text03 {
    background-color: #fffb5ab0;
    color: #333;
    border-radius: 20px;
    padding: 3px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 価格エリア */
.box__yane .box__yane__inner .yane__content .yane__content__list .price {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 余ったスペースを埋める */
}

.box__yane .box__yane__inner .yane__content .yane__content__list .price p.text {
    background-color: #e60012;
    color: #fff;
    padding: 8px 5px;
    font-size: 0.9rem;
    margin: 0; /* マージンをリセット */
    text-align: center;
}


.box__yane .box__yane__inner .yane__content .yane__content__list .price .amount {
    font-size: 1.4rem;
    color: #e60012;
    font-weight: bold;
    padding: 5px 5px; /* 上下に余白を作る */
    margin: 0;
    text-align: center;
    background-color: #fff; /* ここが透明だと後ろが透けるため白指定 */
}
.box__yane .box__yane__inner .yane__content .yane__content__list .price .amount small {
    font-size: 0.5em;
    margin-left: 2px;
}

/* 注釈 */
.box__yane .box__yane__inner p.note {
    clear: both; /* 回り込み解除 */
    text-align: right;
    padding: 10px 15px 0;
    font-size: 0.8rem;
    color: #333;
    position: relative; /* 重なり防止 */
}


}

