/* === block 1 === */
/* 七五三ページ内の近隣出張撮影案内 */
#shichigosan-nearby .nearby-intro { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: start; }
#shichigosan-nearby figure { margin: 0; min-width: 0; }
#shichigosan-nearby img { display: block; width: 100%; height: auto; border-radius: 8px; }
#shichigosan-nearby figcaption { margin: .5rem 0 0; font-size: .85rem; line-height: 1.6; text-align: left; border: 0; }
#shichigosan-nearby .nearby-intro__text { min-width: 0; }
#shichigosan-nearby .nearby-intro__text p { margin: 0 0 1rem; line-height: 1.85; }
#shichigosan-nearby .nearby-intro__link { font-weight: bold; text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 767px) {
    #shichigosan-nearby .nearby-intro { grid-template-columns: 1fr; gap: 1rem; }
}

/* グローバルの `img, table, h2 { transform: translateY(20px) }` を打ち消す。
   h2 は JS が .is-visible を付けて 0 に戻すが table / img は戻らないため、
   テーブル・画像が 20px 下にずれて前後の余白が非対称になる。
   .shrines-page は他ページとも共有するクラスだが、この <style> は
   index.php 内にインライン展開されるため影響は当ページのみに閉じる。
   （当ページの .shrines-page 内に transform を意図的に使う img/table は無い。
     ホバーズームを持つ .visual-nav-card は .shrines-page の外にあるため対象外） */
.shrines-page :is(table, img) {
    transform: none !important;
}

/* ファーストビューの H1 をヒーロー画像の「下部」に「横書き」で重ねる。
   head.php の `.sample_view .sample_title`(0,2,0) は
     - モバイル: writing-mode:vertical-rl ＋ 右上固定 ＋ 高さ固定
     - PC:       横書きだが bottom:25% / right:2% の中央右寄せ
   となっており、モバイルでは縦書きの箱からタイトルがはみ出して末尾が切れる。
   同一セレクタ・同一詳細度で、head.php(155行目 include)より後に置くことで上書きする。
   この <style> は index.php にインライン展開されるため影響は当ページのみ。 */
.sample_view .sample_title {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    inset: auto 0 0 0;
    width: auto;
    max-width: none;
    height: auto;
    text-align: center;
    font-size: clamp(0.95rem, 3.4vw, 1.4rem);
    line-height: 1.7;
    letter-spacing: 0.06em;
    padding: clamp(0.7rem, 2.2vw, 1.1rem) clamp(0.9rem, 3vw, 1.6rem);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0;
    border-bottom: none;
    border-top: 2px solid #c9a66b;
}

@media (min-width: 768px) {
    .sample_view .sample_title {
        inset: auto 0 0 0;
        width: auto;
        max-width: none;
        height: auto;
        font-size: clamp(1.3rem, 2.3vw, 2rem);
        line-height: 1.6;
        padding: 1.1rem 2rem;
    }
}

/* モバイルのヒーロー画像は縦 800x1422 の縦長で、等倍だと約889px になり
   画面の低い端末（667px 等）では下端に置いた H1 がファーストビューに入らない。
   高さに上限を設けて H1 を折り返し位置より上に収める。
   object-position を上寄りにしてお子様の顔が切れないようにする。
   height を明示するため初回描画から箱サイズが確定し、CLS は発生しない。 */
@media (max-width: 767px) {

    /* 高さの実体は picture 側の `aspect-ratio: 9/16`（= 約889px）なので
       img ではなく picture を縮める。詳細度は .sample_view 前置きで
       既存の `.tenmangu-static-hero`(0,1,0) を上回る (0,2,0) にしている */
    .sample_view .tenmangu-static-hero {
        aspect-ratio: auto;
        height: min(70vh, 600px);
        height: min(70dvh, 600px);
    }

    .sample_view .tenmangu-static-hero img {
        height: 100%;
        object-position: center 28%;
    }
}

h1 strong {
    color: #A60303;
    text-shadow: none;
}

/* 七五三レンタル衣装メニューのデザイン */
.rental__menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.rental__menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* PCは4カラムで1行 */
    gap: 2rem 1.5rem;
    margin: 2rem 0 0 0;
    padding: 0 1rem;
}

.rental__menu-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #faf7f5;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(166, 48, 48, 0.07);
    transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
    text-decoration: none;
    color: #222;
    overflow: hidden;
    border: 1.5px solid #f0eaea;
    min-height: 160px;
    position: relative;
    font-size: 1.1rem;
    padding: 1.5rem 0.5rem 1.2rem 0.5rem;
}

.rental__menu-item:hover {
    transform: translateY(-6px) scale(1.025);
    box-shadow: 0 8px 32px rgba(166, 48, 48, 0.13), 0 2px 8px rgba(0, 0, 0, 0.07);
    background: #fff;
    z-index: 2;
}

.rental__menu-item:active {
    background: #ffeaea;
    box-shadow: 0 2px 8px rgba(166, 48, 48, 0.13);
    border-color: #d44d4d;
}

.rental__menu-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
}

.rental__menu-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: #A60303;
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
}

@media (max-width: 767px) {
    .rental__menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem 0;
        padding: 0 0.2rem;
    }

    .rental__menu-item {
        min-height: 56px;
        border-radius: 10px;
        font-size: 1rem;
        padding: 0.7rem 0.5rem 0.7rem 0.5rem;
        margin: 0.1rem 0;
        box-shadow: 0 1.5px 4px rgba(166, 48, 48, 0.08);
        border: 2px solid #e5bcbc;
        transition: background 0.15s, box-shadow 0.15s, border 0.15s;
    }

    .rental__menu-item:active {
        background: #ffeaea;
        box-shadow: 0 2px 8px rgba(166, 48, 48, 0.13);
        border-color: #d44d4d;
    }

    .rental__menu-icon {
        font-size: 1.3rem;
        margin-bottom: 0.1rem;
    }

    .rental__menu-text {
        font-size: 0.98rem;
        margin-bottom: 0;
    }
}
.guide-link-card .icon svg,
.rental__menu-icon svg { display: block; }
.guide-links-section h2 svg { display: inline-block; vertical-align: -0.15em; margin-right: 0.2em; }
.service-list li > svg { display: inline-block; vertical-align: -0.1em; margin-right: 0.1em; }
.tm-cta { max-width: 900px; margin: 2.5rem auto; padding: 1.75rem 1.25rem; text-align: center; background: linear-gradient(135deg, #fff1f6 0%, #fff8ec 100%); border: 2px solid #e6005a; border-radius: 16px; box-shadow: 0 6px 18px rgba(230, 0, 90, .12); }
.tm-cta__heading { margin: 0 0 .5rem; font-size: clamp(1.1rem, 3vw, 1.35rem); font-weight: 800; color: #a60303; line-height: 1.5; }
.tm-cta__lead { margin: 0 0 1.25rem; font-size: .95rem; line-height: 1.75; color: #333; }
.tm-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tm-cta a.tm-cta__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: .8em 1.6em; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #fff; text-decoration: none; border-radius: 999px; transition: transform .15s, box-shadow .15s; }
.tm-cta a.tm-cta__btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.tm-cta a.tm-cta__btn--primary { background: #e6005a; font-size: 1.15rem; padding: .9em 2em; box-shadow: 0 4px 12px rgba(230, 0, 90, .3); }
.tm-cta a.tm-cta__btn--line { background: #04813a; }
.tm-cta a.tm-cta__btn--tel { background: #fff; color: #a60303; border: 2px solid #a60303; }
.tm-cta__note { margin: 1rem 0 0; font-size: .85rem; color: #666; }
@media (max-width: 600px) {
    .tm-cta__actions { flex-direction: column; }
    .tm-cta a.tm-cta__btn { width: 100%; }
}

/* === block 2 === */
.map-container {
    margin: 2rem 0;
    width: 100%;
}

.google-map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    margin: 1rem 0;
}

.google-map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.tenmangu-static-hero {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f8f5ef;
}

.tenmangu-static-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .tenmangu-static-hero {
        aspect-ratio: 9 / 16;
    }
}

.reasons-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.reasons-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff8f2;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(166, 3, 3, 0.08);
    padding: 1.5rem 1rem 1.2rem 1rem;
    gap: 1.2rem;
    transition: box-shadow 0.2s, transform 0.2s;
    min-height: 380px;
    text-align: center;
}

.reasons-list li:hover {
    box-shadow: 0 4px 18px rgba(166, 3, 3, 0.18);
    transform: translateY(-2px) scale(1.02);
}

.reasons-list .reason-img {
    width: 240px;
    height: 240px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
    margin-bottom: 0.7rem;
    flex-shrink: 0;
    background: #fff;
}

.reasons-list .reason-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.08em;
    line-height: 1.7;
    text-align: left;
}

.reasons-list .reason-content strong {
    font-size: 1.15em;
    color: #a60303;
    margin-bottom: 0.3em;
    display: inline-block;
}

@media (max-width: 900px) {
    .reasons-list {
        grid-template-columns: 1fr;
    }

    .reasons-list li {
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .reasons-list {
        gap: 1.2rem;
    }

    .reasons-list li {
        padding: 1.1rem 0.5rem;
    }

    .reasons-list .reason-img {
        width: 180px;
        height: 180px;
    }

    .reasons-list .reason-content {
        font-size: 1em;
        text-align: left;
    }
}

.access-routes {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
}

.access-route {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
    border-left: 4px solid #A60303;
}

.access-route:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.route-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.route-content {
    flex: 1;
}

.route-content h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.1rem;
}

.route-time {
    color: #666;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
}

.route-detail {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .access-route {
        padding: 0.75rem;
    }

    .route-content h4 {
        font-size: 1rem;
    }

    .route-time,
    .route-detail {
        font-size: 0.9rem;
    }
}

/* 七五三ガイドリンクセクション */
.guide-links-section {
    background: linear-gradient(135deg, #fdfbf9 0%, #fff5f0 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.guide-links-section h2 {
    text-align:left;
    color: #A60303;
    margin-bottom: 1.5rem;
}

.guide-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.guide-link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e8e0db;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(166, 48, 48, 0.05);
}

.guide-link-card:hover {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
    border-color: #d44d4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(166, 48, 48, 0.12);
}

.guide-link-card .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.guide-link-card .text {
    flex: 1;
}

.guide-link-card .title {
    font-weight: 600;
    color: #A60303;
    display: block;
    margin-bottom: 0.25rem;
}

.guide-link-card .desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.visit-info {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #e2d7c4;
    border-radius: 14px;
    background: #fffdf9;
}

.visit-info__lead {
    padding: 1rem 1.25rem;
    border-left: 4px solid #a60303;
    background: #fff8f1;
    line-height: 1.8;
}

.visit-info table {
    width: 100%;
    margin: 1.25rem 0;
    border-collapse: collapse;
}

.visit-info th,
.visit-info td {
    padding: 0.8rem;
    border: 1px solid #d9d1c4;
    text-align: left;
    vertical-align: top;
}

.visit-info th {
    width: 30%;
    background: #f8f5ef;
}

.visit-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.5rem;
    padding: 0;
    counter-reset: visit-step;
}

.visit-flow li {
    padding: 1rem;
    border-radius: 10px;
    background: #f8f5ef;
    list-style: none;
    line-height: 1.7;
}

.visit-flow li::before {
    counter-increment: visit-step;
    content: "STEP " counter(visit-step);
    display: block;
    margin-bottom: 0.35rem;
    color: #a60303;
    font-size: 0.82rem;
    font-weight: 700;
}

.visit-info__notice {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: #f3f6fa;
    line-height: 1.8;
}

.visit-info__source {
    margin-bottom: 0;
    color: #555;
    font-size: 0.9rem;
}

.choice-router {
    padding: 0 1rem;
}

.choice-router__inner {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid #dfd3bf;
    border-radius: 16px;
    background: #fffdf9;
    box-shadow: 0 8px 24px rgba(87, 62, 24, 0.08);
}

.choice-router__eyebrow {
    margin: 0 0 0.35rem;
    color: #a60303;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: center;
}

.choice-router h2 {
    margin-bottom: 0.75rem;
    text-align:left;
}

.choice-router__lead {
    max-width: 760px;
    margin: 0 auto 1.25rem;
    text-align: center;
}

.choice-router__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.choice-router__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1rem;
    margin: 0 0 1.25rem;
}

.choice-router__nav a {
    padding: .5rem .25rem;
    color: #a60303;
    text-decoration: underline;
}

#studio-price-title,
#gallery-title {
    scroll-margin-top: 100px;
}

.choice-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border: 1px solid #ded7cd;
    border-radius: 12px;
    background: #fff;
}

.choice-card--studio,
.choice-card--nearby {
    border: 2px solid #a60303;
    background: #fff8f1;
}

.choice-card--external {
    grid-column: 1 / -1;
}

.choice-card h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.choice-card__price {
    margin: 0.25rem 0 0.75rem;
    color: #a60303;
    font-size: 1.4rem;
    font-weight: 700;
}

.choice-card__action {
    display: block;
    margin-top: auto;
    padding: 0.8rem 1rem;
    border: 1px solid #a60303;
    border-radius: 8px;
    color: #a60303 !important;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.choice-card--studio .choice-card__action,
.choice-card--nearby .choice-card__action {
    background: #a60303;
    color: #fff !important;
}

.choice-router__source {
    margin: 1rem 0 0;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}

.photo-comparison {
    margin: 2rem 0;
}

.photo-comparison__scroll {
    overflow: visible;
}

.photo-comparison table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    transform: none !important;
    transition: none !important;
}

.photo-comparison th:first-child {
    width: 22%;
}

/* 料金表・比較表のデザイン（critical CSS の table.info を上書き） */
.shrines-page table.price-table,
.photo-comparison table.info {
    max-width: 900px;
    margin: 1.25rem auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #eadfc8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(120, 93, 38, .08);
    font-size: .98rem;
    line-height: 1.75;
}

.shrines-page table.price-table th,
.shrines-page table.price-table td,
.photo-comparison table.info th,
.photo-comparison table.info td {
    padding: .9rem 1.1rem;
    border: 0;
    border-bottom: 1px solid #f0e8d8;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
}

.shrines-page table.price-table tr:last-child > *,
.photo-comparison table.info tbody tr:last-child > * {
    border-bottom: 0;
}

.shrines-page table.price-table th {
    width: 26%;
    background: #f8f5ef;
    color: #6b5529;
    font-weight: 700;
}

.price-table__price {
    display: block;
    margin: .1rem 0 .15rem;
    color: #a60303;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
}

.price-table__price small {
    font-size: .8rem;
    font-weight: 600;
}

.shrines-page .price-table__recommend > * {
    background: #fff1f6 !important;
}

.shrines-page .price-table__recommend th {
    color: #a60303;
    box-shadow: inset 4px 0 0 #e6005a;
}

.price-table__badge {
    display: inline-block;
    margin: 0 .5rem .25rem 0;
    padding: .1rem .6rem;
    border-radius: 999px;
    background: #e6005a;
    color: #fff;
    font-size: .75rem;
    line-height: 1.6;
}

.photo-comparison table.info thead th {
    background: #6b5529;
    color: #fff;
    font-weight: 700;
}

.photo-comparison table.info thead th.is-studio {
    background: #a60303;
}

.photo-comparison table.info tbody th {
    background: #f8f5ef;
    color: #6b5529;
    font-weight: 700;
}

.photo-comparison table.info tbody td:nth-child(2) {
    background: #fffaf7;
}

.photo-comparison table.info tbody td strong {
    color: #a60303;
    font-size: 1.1rem;
}

.photo-comparison__note {
    clear: both;
    margin: 1rem 0 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .guide-links-section {
        padding: 1.5rem 1rem;
    }

    .guide-links-grid {
        grid-template-columns: 1fr;
    }

    .visit-flow {
        grid-template-columns: 1fr;
    }

    .visit-info th {
        width: 38%;
    }

    .choice-router__grid {
        grid-template-columns: 1fr;
    }

    .photo-comparison__scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .photo-comparison table {
        min-width: 680px;
        table-layout: auto;
    }

    .shrines-page table.price-table,
    .shrines-page table.price-table tbody,
    .shrines-page table.price-table tr,
    .shrines-page table.price-table th,
    .shrines-page table.price-table td {
        display: block;
        width: auto;
    }

    .shrines-page table.price-table th {
        padding: .6rem 1rem;
        border-bottom: 0;
    }

    .shrines-page table.price-table td {
        padding: .5rem 1rem 1rem;
    }

    .photo-comparison table.info tbody th {
        position: sticky;
        left: 0;
        z-index: 1;
        box-shadow: 2px 0 4px rgba(0, 0, 0, .06);
    }
}

/* === block 3 === */
.shichigosan-gallery {
    margin: 3rem auto;
}

.shichigosan-gallery__lead,
.guide-links-lead {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.9;
}

.shichigosan-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1080px;
    margin: 0 auto;
}

.shichigosan-gallery__item {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eadfc8;
    border-radius: 12px;
}

.shichigosan-gallery__item a,
.shichigosan-gallery__item picture {
    display: block;
}

.shichigosan-gallery__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity .2s ease;
}

.shichigosan-gallery__item a:hover img,
.shichigosan-gallery__item a:focus-visible img {
    opacity: .82;
}

.shichigosan-gallery__item figcaption {
    padding: .65rem .75rem .8rem;
    color: #5a4014;
    font-size: .88rem;
    line-height: 1.55;
}

@media (max-width: 767px) {
    .shichigosan-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .7rem;
    }

    .shichigosan-gallery__item img {
        aspect-ratio: 9 / 16;
    }

    .shichigosan-gallery__item figcaption {
        padding: .55rem .6rem .65rem;
        font-size: .78rem;
    }
}

/* === block 4 === */
/* 撮影データでグッズを作る案内（parts/diy-photo-goods.php） */
.dgp .dgp-figure { margin: 0 auto 16px; max-width: 560px; }
.dgp .dgp-figure img { width: 100%; height: auto; display: block; border-radius: 8px; }
.dgp .dgp-figure figcaption { font-size: .85rem; color: #4b5563; margin-top: 6px; text-align: center; }
.dgp ul { padding-left: 1.4em; margin: 0 0 12px; }
.dgp ul li { display: list-item; list-style: disc; margin-bottom: 4px; }
.dgp a, .dgp a:link, .dgp a:visited { color: #2563eb; text-decoration: underline; }

/* === block 5 === */
.age-reviews-section {
                padding: 40px 0;
                font-family: "M PLUS Rounded 1c", "Zen Kurenaido", sans-serif;
            }

            .age-reviews-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 24px;
                margin-top: 20px;
            }

            .age-review-card {
                background: #fff;
                border-radius: 16px;
                padding: 24px;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
                border: 1px solid rgba(0, 0, 0, 0.03);
                transition: transform 0.3s ease, box-shadow 0.3s ease;
                display: flex;
                flex-direction: column;
                position: relative;
                overflow: hidden;
            }

            .age-review-card::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 6px;
                background: linear-gradient(90deg, #A60303, #ff6b6b);
            }

            .age-review-card:hover {
                transform: translateY(-5px);
                box-shadow: 0 10px 30px rgba(166, 3, 3, 0.1);
            }

            .age-review-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 16px;
                border-bottom: 1px dashed #eee;
                padding-bottom: 12px;
            }

            .age-review-name {
                font-weight: 700;
                color: #333;
                font-size: 0.95rem;
            }

            .age-review-rating {
                color: #ffc107;
                font-size: 1.1rem;
                letter-spacing: 2px;
            }

            .age-review-content {
                color: #555;
                line-height: 1.8;
                font-size: 0.95rem;
                flex-grow: 1;
                white-space: pre-wrap;
            }

            .age-review-icon {
                position: absolute;
                bottom: -10px;
                right: -10px;
                font-size: 5rem;
                opacity: 0.03;
                color: #000;
                pointer-events: none;
                font-family: sans-serif;
            }

            @media (max-width: 768px) {
                .age-reviews-grid {
                    grid-template-columns: 1fr;
                }
            }
