/* /css/sapporo-shiei-reien_v4.css
   通常本文・見出しはサイト共通フォントを継承し、吹き出しのみ Kiwi Maru を使用
*/

:root {
    --sr-ink: #26333a;
    --sr-muted: #66757c;
    --sr-line: rgba(2, 6, 23, .10);
    --sr-green: #198754;
    --sr-green-dark: #146c43;
    --sr-green-soft: #edf8f2;
    --sr-blue-soft: #f1f9ff;
    --sr-indigo-soft: #f8faff;
    --sr-amber: #d88a13;
    --sr-amber-soft: #fff9f2;
    --sr-yellow: #facc15;
    --sr-yellow-soft: #fffbe8;
    --sr-white: #fff;
    --sr-speech-font: "Kiwi Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", "游ゴシック体", sans-serif;
}

html {
    scroll-behavior: smooth;
}

.sr-hero,
.sr-section {
    color: var(--sr-ink);
    font-family: inherit;
}

/* =========================================================
   HERO
   ========================================================= */
.sr-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 18%, rgba(25, 135, 84, .10) 0 115px, transparent 116px),
        radial-gradient(circle at 8% 88%, rgba(13, 202, 240, .08) 0 84px, transparent 85px),
        linear-gradient(135deg, #fff 0%, #f8fcfa 58%, #edf8f2 100%);
    border-top: 1px solid var(--sr-line);
    border-bottom: 1px solid var(--sr-line);
    box-shadow:
        inset 0 8px 12px -10px rgba(2, 6, 23, .14),
        inset 0 -8px 12px -10px rgba(2, 6, 23, .14);
}

.sr-hero::after {
    content: "";
    position: absolute;
    right: -58px;
    bottom: -58px;
    width: 180px;
    height: 180px;
    border: 22px solid rgba(25, 135, 84, .07);
    border-radius: 50%;
}

.sr-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
}

/* 正解ページの hj-label と同寸法 */
.sr-label {
    display: inline-block;
    padding: .48rem .95rem;
    color: #047857;
    font-size: clamp(.95rem, .6rem + .7vw, 1.05rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .04em;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
}

.sr-kicker {
    margin: 1.4rem 0 .25rem;
    color: #475569;
    font-size: clamp(1.05rem, .85rem + .8vw, 1.35rem);
    font-weight: 700;
    line-height: 1.6;
}

/* 正解ページの KV 見出しサイズに統一 */
.sr-main-title {
    margin: .25rem 0 .5rem;
    color: var(--sr-ink);
    font-family: inherit;
    font-size: clamp(1.875rem, 3.2vw + 1rem, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: .01em;
}

.sr-main-title span {
    position: relative;
    z-index: 1;
    color: var(--sr-green-dark);
    white-space: nowrap;
}

.sr-main-title span::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -2%;
    bottom: .04em;
    left: -2%;
    height: .55em;
    background: linear-gradient(180deg, rgba(16, 185, 129, .22), rgba(16, 185, 129, .10));
    border-radius: 6px;
}

.sr-hero-lead {
    max-width: 760px;
    margin: 1rem auto 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.9;
}

.sr-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.5rem;
}

.sr-btn {
    min-width: 210px;
    padding: .8rem 1.35rem;
    border-radius: .65rem;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
}

.sr-btn-primary {
    color: #fff;
    background: var(--sr-green-dark);
    border-color: var(--sr-green-dark);
    box-shadow: 0 8px 18px rgba(20, 108, 67, .18);
}

.sr-btn-primary:hover,
.sr-btn-primary:focus {
    color: #fff;
    background: #0f5c39;
    border-color: #0f5c39;
}

.sr-btn-outline {
    color: var(--sr-green-dark);
    background: #fff;
    border-color: #9bcdb0;
}

.sr-btn-outline:hover,
.sr-btn-outline:focus {
    color: #fff;
    background: var(--sr-green-dark);
    border-color: var(--sr-green-dark);
}

/* =========================================================
   マスコット＋吹き出し
   正解ページの hj-speechbox / img / text と同じ体裁
   ========================================================= */
.sr-speech {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    margin-top: 1.25rem;
    text-align: left;
}

.sr-speech-img {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .10);
}

.sr-speech-text {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 520px;
    padding: .75rem 1.1rem;
    color: #374151;
    font: 500 1rem/1.8 var(--sr-speech-font);
    background: var(--sr-yellow-soft);
    border: 2px solid var(--sr-yellow);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.sr-speech-text p {
    margin: 0;
}

.sr-speech-text strong {
    font-weight: 700;
}

.sr-speech-text::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -16px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: var(--sr-yellow);
    transform: translateY(-50%);
}

@media (min-width: 768px) {
    .sr-speech-img {
        width: 120px;
        height: 120px;
    }
}

@media (min-width: 992px) {
    .sr-speech-img {
        width: 140px;
        height: 140px;
    }
}

/* =========================================================
   SECTION / 見出し
   正解ページの py-4 py-md-5 と hj-title / hj-lead に統一
   ========================================================= */
.sr-section {
    position: relative;
    isolation: isolate;
    padding: 3rem 0;
    background: #fff;
    border-top: 1px solid var(--sr-line);
    border-bottom: 1px solid var(--sr-line);
    box-shadow:
        inset 0 8px 12px -10px rgba(2, 6, 23, .15),
        inset 0 -8px 12px -10px rgba(2, 6, 23, .15);
}

.sr-section:nth-of-type(even) {
    background: var(--sr-indigo-soft);
}

.sr-bg-soft {
    background: var(--sr-blue-soft) !important;
}

.sr-heading {
    margin-bottom: 1.5rem;
}

.sr-heading-left {
    text-align: left;
}

.sr-heading h2 {
    margin: .5rem 0 0;
    color: var(--sr-ink);
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
}

.sr-heading-title {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.sr-heading-title > i {
    flex: 0 0 auto;
    color: #0d6efd;
    font-size: .92em;
}

.sr-heading p {
    margin: .85rem 0 0;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* =========================================================
   公式案内帯
   ========================================================= */
.sr-official-note {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid rgba(2, 8, 23, .10);
    border-left: 5px solid #64748b;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.sr-official-note > i {
    color: #475569;
    font-size: 1.35rem;
}

.sr-official-note p {
    margin: 0;
    color: #4b5563;
    font-size: .95rem;
    line-height: 1.7;
}

.sr-official-note a {
    color: var(--sr-green-dark);
    font-size: .95rem;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   募集概要
   ========================================================= */
.sr-overview-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(2, 8, 23, .10);
    border-top: 6px solid var(--sr-green-dark);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(2, 8, 23, .06);
}

.sr-overview-card dl {
    margin: 0;
}

.sr-overview-card dl > div {
    display: grid;
    grid-template-columns: 190px 1fr;
    border-bottom: 1px solid #e5e7eb;
}

.sr-overview-card dl > div:last-child {
    border-bottom: 0;
}

.sr-overview-card dt,
.sr-overview-card dd {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: .95rem;
    line-height: 1.7;
}

.sr-overview-card dt {
    color: #334155;
    font-weight: 700;
    background: #eef7f2;
    border-right: 1px solid #e5e7eb;
}

.sr-overview-card dd {
    color: #4b5563;
}

.sr-overview-card strong {
    color: var(--sr-ink);
    font-weight: 700;
}

.sr-overview-card .sr-accent {
    color: #b45309;
}

.sr-note {
    margin: .8rem .25rem 0;
    color: #64748b;
    font-size: .9rem;
    line-height: 1.7;
}

/* =========================================================
   申込資格
   ========================================================= */
.sr-qualification-wrap {
    margin-top: 2.5rem;
}

.sr-qualification-wrap h3 {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    color: var(--sr-ink);
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(2, 6, 23, .10);
}

.sr-qualification {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    gap: 1rem;
    height: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid rgba(2, 8, 23, .08);
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.sr-qualification span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    background: var(--sr-green-dark);
    border-radius: 9999px;
}

.sr-qualification p {
    margin: 0;
    color: #4b5563;
    font-size: .95rem;
    line-height: 1.7;
}

/* =========================================================
   注意ボックス
   ========================================================= */
.sr-warning {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.25rem 1.4rem;
    background: #fff;
    border: 1px solid rgba(251, 191, 36, .35);
    border-left: 5px solid var(--sr-amber);
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.sr-warning-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    background: var(--sr-amber);
    border-radius: 9999px;
}

.sr-warning h3 {
    margin: 0 0 .3rem;
    color: #92400e;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.5;
}

.sr-warning p {
    margin: 0;
    color: #374151;
    font-size: .96rem;
    line-height: 1.75;
}

/* =========================================================
   建墓例カード
   ========================================================= */
.sr-price-card {
    position: relative;
    height: 100%;
    padding-bottom: 1.25rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(2, 8, 23, .08);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(2, 8, 23, .06);
}

.sr-price-featured {
    border-top: 5px solid var(--sr-green-dark);
}

.sr-size-tag {
    position: absolute;
    z-index: 2;
    top: 1rem;
    left: 1rem;
    padding: .35rem .7rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    background: rgba(20, 108, 67, .92);
    border-radius: 9999px;
}

/* 画像領域の高さを統一。カード幅に追従して比率が崩れない */
.sr-landscape {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 180px;
    background: linear-gradient(#bfeaff, #effcff 60%, #d8ed9f 61%);
    border-bottom: 1px solid #dce5e1;
}

.sr-landscape::before,
.sr-landscape::after {
    content: "";
    position: absolute;
    bottom: -38px;
    height: 105px;
    border-radius: 50% 60% 0 0;
}

.sr-landscape::before {
    right: 42%;
    left: -10%;
    background: #8ab000;
    transform: rotate(4deg);
}

.sr-landscape::after {
    right: -9%;
    left: 32%;
    background: #719e00;
    transform: rotate(-5deg);
}

.sr-landscape-2::after {
    bottom: -30px;
    background: #5f9900;
}

.sr-landscape > span {
    position: absolute;
    z-index: 3;
    right: .9rem;
    bottom: .75rem;
    padding: .3rem .65rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    background: rgba(38, 51, 58, .76);
    border-radius: 9999px;
}

.sr-price-card h3 {
    margin: 1.15rem 1.25rem .4rem;
    color: var(--sr-ink);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
}

.sr-price-card > p {
    margin: 0 1.25rem;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.7;
}

.sr-price-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1rem;
    margin: 1rem 1.25rem;
    padding: 0;
    color: #4b5563;
    font-size: .9rem;
    line-height: 1.6;
    list-style: none;
}

.sr-price-card li::before {
    content: "✓";
    margin-right: .35rem;
    color: var(--sr-green-dark);
    font-weight: 700;
}

.sr-card-cta {
    display: block;
    margin: 0 1.25rem;
    padding: .75rem;
    color: #fff;
    text-align: center;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--sr-green-dark);
    border-radius: .65rem;
}

.sr-card-cta:hover,
.sr-card-cta:focus {
    color: #fff;
    background: #0f5c39;
}

/* =========================================================
   サービスカード
   ========================================================= */
.sr-service-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    min-height: 164px;
    height: 100%;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(2, 8, 23, .08);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(2, 8, 23, .06);
}

.sr-service-no {
    position: absolute;
    top: .6rem;
    right: .8rem;
    color: #94a3b8;
    font-size: .8rem;
    font-weight: 700;
}

.sr-service-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: .45rem;
    color: #047857;
    font-size: 1.2rem;
    background: #e8fff3;
    border: 1px solid #d1fae5;
    border-radius: 12px;
}

.sr-service-card h3 {
    margin: .45rem 0 .25rem;
    color: var(--sr-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.sr-service-card p {
    margin: 0;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.7;
}

/* =========================================================
   4ステップ
   ========================================================= */
.sr-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-flow::before {
    content: "";
    position: absolute;
    top: 25px;
    right: 12%;
    left: 12%;
    height: 2px;
    background: #cbd5e1;
}

.sr-flow li {
    position: relative;
    padding: 0 1.25rem;
    text-align: center;
}

.sr-flow span {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    background: var(--sr-green-dark);
    border: 5px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px #aebbb5;
}

.sr-flow strong {
    display: block;
    margin: 0 0 .3rem;
    color: var(--sr-ink);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.45;
}

.sr-flow p {
    margin: 0;
    color: #64748b;
    font-size: .95rem;
    line-height: 1.7;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991.98px) {
    .sr-speech {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .sr-speech-text::before {
        top: -16px;
        left: 50%;
        border: 8px solid transparent;
        border-bottom-color: var(--sr-yellow);
        transform: translateX(-50%);
    }

    .sr-flow {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 0;
    }

    .sr-flow::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .sr-hero-inner {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .sr-section {
        padding: 1.5rem 0;
    }

    .sr-heading {
        margin-bottom: 1.25rem;
    }

    .sr-heading-left {
        text-align: center;
    }

    .sr-official-note {
        grid-template-columns: auto 1fr;
    }

    .sr-official-note a {
        grid-column: 2;
    }

    .sr-overview-card dl > div {
        grid-template-columns: 1fr;
    }

    .sr-overview-card dt {
        padding: .75rem 1rem .25rem;
        border-right: 0;
    }

    .sr-overview-card dd {
        padding: .25rem 1rem .85rem;
    }

    .sr-landscape {
        min-height: 165px;
    }
}

@media (max-width: 575.98px) {
    .sr-label {
        font-size: .9rem;
    }

    .sr-kicker {
        margin-top: 1rem;
        font-size: 1rem;
    }

    .sr-main-title {
        font-size: 2rem;
    }

    .sr-hero-lead,
    .sr-heading p {
        font-size: .95rem;
        line-height: 1.8;
    }

    .sr-hero-actions {
        flex-direction: column;
    }

    .sr-btn {
        width: 100%;
    }

    .sr-speech {
        gap: .9rem;
    }

    .sr-speech-img {
        width: 100px;
        height: 100px;
    }

    .sr-speech-text {
        width: 100%;
        max-width: 100%;
        padding: .75rem .9rem;
        font-size: .95rem;
    }

    .sr-heading h2 {
        font-size: 1.5rem;
    }

    .sr-heading-title {
        align-items: flex-start;
    }

    .sr-official-note {
        gap: .75rem;
        padding: .9rem;
    }

    .sr-official-note p,
    .sr-official-note a,
    .sr-overview-card dt,
    .sr-overview-card dd,
    .sr-qualification p,
    .sr-price-card > p,
    .sr-service-card p,
    .sr-flow p {
        font-size: .9rem;
    }

    .sr-warning {
        grid-template-columns: 44px 1fr;
        gap: .8rem;
        padding: 1rem;
    }

    .sr-warning-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .sr-warning h3 {
        font-size: 1rem;
    }

    .sr-warning p {
        font-size: .9rem;
    }

    .sr-service-card {
        grid-template-columns: 48px 1fr;
        min-height: 0;
        padding: 1rem;
    }

    .sr-service-icon {
        width: 44px;
        height: 44px;
    }

    .sr-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sr-flow li {
        display: grid;
        grid-template-columns: 52px 1fr;
        column-gap: .9rem;
        padding: 0;
        text-align: left;
    }

    .sr-flow span {
        grid-row: span 2;
        margin: 0;
    }

    .sr-flow strong {
        margin-top: .15rem;
    }
}