h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 2.4rem;
    color: #b3864a;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: center;
}

.gift-hero {
    background-color: #fff;
    padding: 80px 5vw;
    text-align: center;
}

.hero-title {
    position: absolute;
    width: 100%;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    /* オーバーレイの上 */
    font-family: "Noto Serif JP", serif;
    font-size: 3rem;
    color: #fff;
    letter-spacing: 0.08em;
    text-align: center;
    font-weight: 600;
    opacity: 0;
    animation: fadeIn 1s forwards;
    animation-delay: 0.3s;
}

.sm-only {
    display: none;
}

/* スマホ向け */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        padding: 0 20px;
    }

    .sm-only {
        display: block;
    }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    height: 85vh;
    width: 100%;
    opacity: 0;
    object-fit: cover;
    animation: fadeIn 0.75s forwards;
    animation-delay: 0.1s;
    /* 少し遅らせて演出 */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background-color: rgba(0, 0, 0, 0.4);
    /* 半透明黒 */
    opacity: 0;
    animation: fadeIn 0.75s forwards;
    animation-delay: 0.1s;
    /* 少し遅らせて演出 */
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .gift-hero-inner {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }
}

.gift-hero h1 {
    font-family: "Noto Serif JP", serif;
    font-size: 2.8rem;
    color: #b3864a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.gift-hero p {
    font-family: "Noto Serif JP", serif;
    font-size: 1.2rem;
    color: #4a4a4a;
    line-height: 1.6;
}

/* タブレット用 */
@media (max-width: 1024px) {
    .gift-hero h1 {
        font-size: 2.2rem;
    }
}

/* スマホ用 */
@media (max-width: 768px) {
    .gift-hero h1 {
        font-size: 1.8rem;
    }

    .gift-hero p {
        font-size: 18px;
    }
}

/**************************** ▼ ギフト特徴セクション ***********************/
.gift-features {
    background-color: #fdf7f0;
    padding: 80px 5vw;
}

.features-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.feature {
    flex: 1 1 300px;
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature img {
    margin: 0 auto 20px;
    /* 上下余白 + 左右中央 */
    width: 100%;
    max-height: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.feature h3 {
    font-family: "Noto Serif JP", serif;
    font-size: 1.5rem;
    color: #b3864a;
    margin-bottom: 10px;
}

.feature p {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.feature p.feature-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.5em;
    line-height: 1.4;
}

/* ホバーで少し浮き上がる */
.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .features-inner {
        flex-direction: column;
        gap: 20px;
    }
}



/*********************** カタログ *****************************/
section.gift-catalog {
    display: flex;
    flex-direction: column;
    /* h2 と grid を縦に並べる */
    align-items: center;
    /* h2もGridも中央揃え */
    max-width: 1280px;
    /* 全体最大幅 */
    margin: 50px auto;
    /* 上下余白 + 中央 */
    padding: 0 15px;
}

/* カタログタイトル */
.gift-catalog h2 {
    font-family: "Noto Serif JP", serif;
    font-size: 2.4rem;
    color: #b3864a;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ギフトカードグリッド */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
    gap: 30px;
    width: 100%;
    justify-items: center;
    /* カードを中央揃え */
    justify-content: center;
}

/* ギフトカード */
.gift-card {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    padding-bottom: 20px;
    transition: all 0.3s ease;
}

.gift-card img {
    margin: 0 auto 20px;
    /* 上下余白 + 左右中央 */
    width: 100%;
    max-height: 200px;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}



.gift-card h3 {
    margin: 15px 0 10px;
    color: #b3864a;
}

.gift-card .desc {
    margin: 10px;
    font-weight: 500;
    color: #8c6740;
    line-height: 1.6;
}

.gift-card .size {
    font-weight: 600;
    color: #4a4a4a;
    margin-top: 5px;
}

.gift-card .price {
    font-weight: 700;
    color: #b3864a;
    margin-top: 10px;
}

.gift-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
    .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        /* タブレットで最大2列 */
    }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        /* スマホは1列 */
    }
}

.payment-info {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.payment-info summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
}

.payment-info ul {
    margin-top: 12px;
    margin-right: -100px;
    padding-left: 30px;
    line-height: 1.8;
    flex-wrap:nowrap
}

@media (max-width: 768px) {
    .payment-info ul {
        margin-right: 0px;
        margin-top: 12px;
        padding-right: 0px;
        padding-left: 30px;
        line-height: 1.8;
    }
}

.payment-info li {
    text-align: left;
    margin-bottom: 8px;
}


/********************************* 注文フォーム ************************************/
.gift-order {
    margin-top: 80px;
}

.gift-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 20px;
}

.gift-form label {
    display: flex;
    flex-direction: column;
    font-weight: 500;
    color: #4a4a4a;
}

.gift-form input,
.gift-form textarea,
.gift-form select {
    box-sizing: border-box;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 5px;
}

/* 送信ボタン */
.gift-form button[type="submit"] {
    padding: 15px;
    background-color: #b3864a;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.gift-form button[type="submit"]:hover {
    background-color: #8c6740;
}

/* ▼ 各ブロックタイトル */
.form-block-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #b3864a;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* ▼ お届け先カード（繰り返し部分） */
.recipient-block {
    border: 1px solid #ddd;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.recipient-block label {
    margin-top: 12px;
}

/* ▼ 商品リスト */
.product-area {
    margin-top: 10px;
}

.product-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.product-row input[type="number"] {
    width: 100px;
}

/* ▼ のし（3項目横並び） */
.noshi-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* 備考用 textarea */
.gift-form .note textarea {
    width: 100%;
    /* 横幅いっぱい */
    min-height: 80px;
    /* 高さを確保 */
    padding: 12px 15px;
    /* 内側余白 */
    border: 1px solid #ccc;
    /* 枠線 */
    border-radius: 8px;
    /* 角丸 */
    font-size: 1rem;
    /* フォントサイズ */
    resize: vertical;
    /* 縦方向だけリサイズ可能 */
    margin-top: 5px;
    /* ラベルとの隙間 */
}

/* フォーム内すべての入力系要素のフォーカス演出 */
.gift-form input:focus,
.gift-form select:focus,
.gift-form textarea:focus {
    outline: none;
    border-color: #b3864a;
    box-shadow: 0 0 5px rgba(179, 134, 74, 0.5);
}


/* ▼ ボタン類（お届け先追加・商品追加・削除） */
.add-product-btn,
.add-recipient-btn {
    margin-top: 10px;
    background: #d8c3a2;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: .9rem;
}

.add-product-btn:hover,
.add-recipient-btn:hover {
    background: #b3864a;
}

.add-recipient-btn {
    width: 100%;
    margin: 15px 0 30px;
}

.remove-btn {
    background: #b04c4c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.2s;
}

.remove-btn:hover {
    background: #8e3a3a;
}

/* ▼ スマホ用レイアウト調整 */
@media (max-width: 600px) {

    .product-row,
    .noshi-row {
        flex-direction: column;
    }

    .recipient-block {
        padding: 16px;
    }
}

.tel-order {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 50px;
    padding: 20px;
    background: #fff;
    color: #4a4a4a;
}

.tel-order strong {
    color: #b3864a;
    font-weight: 600;
}

.shipping-info {
    /*background: #fff3cd;*/
    /*border-left: 4px solid #ff9800;*/
    padding: 12px;
    font-size: 16px;
    max-width: 600px;
    margin: auto;
    text-align: center;
}

.shipping-note {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.shipping-note a {
    color: red;
}

.text-bold{
    font-weight: 700;
}

.text-red{
    color: red;
}

summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "▼";
    color: red;
    font-size: 10px;
}

details[open] summary::before {
    content: "▲";
}