/* 「うごく！ぬりえワークショップ」特設ページ専用スタイル */

.nurie-page {
    --nurie-blue: #0099ff;
    --nurie-pink: #ff6699;
    --nurie-lavender: #ccccff;
    --nurie-gray-bg: #efefef;
    --nurie-heading: #595757;
    --nurie-text: #4d4d4d;
    --nurie-black: #231815;
    --nurie-big-number: clamp(3rem, 7vw, 8.5rem);
    --nurie-radius: clamp(14px, 2vw, 40px);
    overflow-x: hidden;
    color: var(--nurie-text);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

/* 詳細度を下げ、各要素側の margin 指定がそのまま効くようにする */
:where(.nurie-page) p {
    margin-bottom: 0;
}

.nurie-page section {
    padding: clamp(40px, 5vw, 90px) 0;
}

.nurie-container {
    max-width: 1640px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 画面幅いっぱいの帯 */
.nurie-band {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.nurie-bg-gray {
    background-color: var(--nurie-gray-bg);
}

.nurie-bg-blue {
    background-color: var(--nurie-blue);
}

.nurie-text-white {
    color: #ffffff !important;
}

.nurie-photo {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: var(--nurie-radius);
}

.nurie-pink {
    color: var(--nurie-pink);
}

.nurie-price-big {
    font-size: var(--nurie-big-number);
}

.nurie-bg-blue > .nurie-container,
.nurie-steps > .nurie-container,
.nurie-pricing > .nurie-container,
.nurie-faq > .nurie-container,
.nurie-closing > .nurie-container {
    max-width: 1200px;
}

/* 見出し共通 */
.nurie-section-heading {
    color: var(--nurie-heading);
    font-weight: 400;
    font-size: clamp(1.4rem, 3vw, 3.2rem);
    line-height: 1.4;
}

.nurie-section-subheading {
    color: var(--nurie-blue);
    font-size: clamp(1.1rem, 2vw, 2.2rem);
    margin-top: 0.5rem;
}

/* ヒーロー */
.nurie-page section.nurie-intro {
    padding-top: 20px;
}

.nurie-hero {
    padding: 0 20px;
}

.nurie-hero-top,
.nurie-hero-bottom {
    display: grid;
    gap: 20px;
}

.nurie-hero-top {
    grid-template-columns: 1330fr 530fr;
}

.nurie-hero-main {
    aspect-ratio: 1330 / 580;
}

.nurie-hero-side {
    height: 100%;
}

.nurie-hero-bottom {
    grid-template-columns: 430fr 430fr 980fr;
}

.nurie-hero-sm {
    aspect-ratio: 430 / 412;
}

.nurie-hero-wide {
    aspect-ratio: 980 / 412;
}

.nurie-hero-copy {
    position: relative;
    z-index: 1;
    padding: 0.5em 0 0 3%;
    color: var(--nurie-blue);
    font-weight: 900;
}

.nurie-headline-sub {
    font-size: clamp(1.3rem, 3.75vw, 4.5rem);
    letter-spacing: -0.027em;
    line-height: 1.3;
}

.nurie-headline-sub > span {
    letter-spacing: 0;
}

.nurie-headline-main {
    font-size: clamp(1.9rem, 6.3vw, 7.6rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.11em;
    margin: 0;
}

.nurie-headline-main > span {
    letter-spacing: 0;
}

@media (min-width: 768px) {
    /* デザインどおり、大見出しの下端を写真に少し重ねる */
    .nurie-hero-bottom {
        margin-top: -2.2vw;
    }
}


/* 価格見出し・実績 */
.nurie-price-headline {
    margin-top: clamp(30px, 4vw, 80px);
    color: var(--nurie-text);
    font-weight: 700;
    font-size: clamp(1.5rem, 4.2vw, 5rem);
}

.nurie-stats {
    margin-top: clamp(20px, 3vw, 60px);
}

.nurie-stats-photo {
    aspect-ratio: 860 / 500;
}

.nurie-stat {
    padding: clamp(24px, 4vw, 80px) 0;
    color: var(--nurie-black);
    font-weight: 700;
    line-height: 1.15;
}

.nurie-stat-label {
    font-size: clamp(1.3rem, 3vw, 3.6rem);
}

.nurie-stat-number {
    color: var(--nurie-blue);
    font-size: var(--nurie-big-number);
    letter-spacing: -0.02em;
}

.nurie-stat-unit {
    font-size: 0.45em;
}

.nurie-stat-note {
    font-size: clamp(0.85rem, 1.4vw, 1.6rem);
    font-weight: 700;
}

.nurie-vertical-col {
    display: flex;
    justify-content: center;
}

.nurie-vertical-text {
    color: var(--nurie-pink);
    font-weight: 300;
    font-size: clamp(1.8rem, 7vw, 7rem);
    line-height: 1;
    white-space: nowrap;
}

.nurie-vertical-text > span {
    color: var(--nurie-heading);
}

@media (min-width: 768px) {
    .nurie-vertical-text {
        writing-mode: vertical-rl;
        text-align: start;
    }
}

/* 「集客・PR…」見出し（Bootstrap の mt-5 と同じ値） */
.nurie-intro .nurie-section-heading {
    margin-top: 3rem;
}

/* スマホ用レイアウト（.nurie-intro、site-image-phone.pdf 準拠。寸法は 980pt 幅を基準に vw 換算） */
@media (max-width: 767px) {
    .nurie-page section.nurie-intro {
        padding-top: 3vw;
    }

    /* ヒーロー：象 → 見出し → 小写真3枚（男の子を含む） → 指さす大人 */
    .nurie-hero {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1vw;
        padding: 0 3vw;
    }

    .nurie-hero-top,
    .nurie-hero-bottom {
        display: contents;
    }

    .nurie-hero-main {
        grid-column: 1 / -1;
        order: 1;
        aspect-ratio: 920 / 400;
    }

    .nurie-hero-copy {
        grid-column: 1 / -1;
        order: 2;
        margin-bottom: -5vw;
        padding: 0 0 0 1vw;
    }

    .nurie-hero-sm,
    .nurie-hero-side {
        aspect-ratio: 300 / 290;
    }

    .nurie-hero-sm {
        order: 3;
    }

    .nurie-hero-side {
        order: 4;
        height: auto;
    }

    .nurie-hero-wide {
        grid-column: 1 / -1;
        order: 5;
        aspect-ratio: 920 / 385;
    }

    .nurie-headline-sub {
        font-size: 5.9vw;
        line-height: 1.25;
    }

    .nurie-headline-main {
        font-size: 12.8vw;
        line-height: 1.05;
    }

    .nurie-intro .nurie-container {
        padding: 0 3vw;
    }

    .nurie-price-headline {
        margin-top: 8vw;
        font-size: 7.7vw;
        line-height: 1.35;
    }

    .nurie-price-big {
        font-size: 1.25em;
    }

    /* 実績：左に縦書き、右に写真と実績を交互に */
    .nurie-stats {
        display: grid;
        grid-template-columns: 22% 1fr;
        column-gap: 2%;
        margin: 8vw 0 0;
    }

    .nurie-stats > .col-md-5 {
        display: contents;
    }

    .nurie-stats > .nurie-vertical-col {
        grid-column: 1;
        grid-row: 1 / 7;
        max-width: none;
        padding: 0;
    }

    .nurie-vertical-text {
        writing-mode: vertical-rl;
        height: 92%;
        font-size: 13vw;
        text-align-last: justify;
    }

    .nurie-stats > .col-md-5 > * {
        grid-column: 2;
    }

    .nurie-stats-photo-table { grid-row: 1; }
    .nurie-stat-scale { grid-row: 2; }
    .nurie-stats-photo-elephant { grid-row: 3; }
    .nurie-stat-satisfaction { grid-row: 4; }
    .nurie-stats-photo-pointing { grid-row: 5; }
    .nurie-stat-genre { grid-row: 6; }

    .nurie-stats-photo {
        aspect-ratio: 700 / 400;
    }

    .nurie-stat {
        padding: 4vw 0 5vw;
    }

    .nurie-stat-label {
        font-size: 5.6vw;
    }

    .nurie-stat-number {
        font-size: 11.2vw;
    }

    .nurie-stat-note {
        font-size: 2.8vw;
    }

    .nurie-intro .nurie-section-heading {
        margin-top: 10vw;
        font-size: 6.3vw;
        line-height: 1.35;
    }
}

/* ぬりえ見本 */
.nurie-worksheets {
    margin-top: clamp(24px, 4vw, 80px);
    row-gap: 12px;
}

.nurie-worksheets .col {
    padding: 0 0.7%;
}

.nurie-worksheets .nurie-photo {
    aspect-ratio: 460 / 318;
}

/* CTAボタン */
.nurie-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: clamp(32px, 5vw, 100px);
    padding: 0 20px;
}

.nurie-btn {
    display: inline-block;
    width: min(100%, 700px);
    flex: 0 1 700px;
    padding: 0.55em 1em;
    border-radius: 999px;
    color: var(--nurie-black);
    font-size: clamp(1.05rem, 2.2vw, 2.6rem);
    text-align: center;
    text-decoration: none;
    transition: opacity 0.2s;
}

.nurie-btn:hover {
    opacity: 0.8;
    color: var(--nurie-black);
    text-decoration: none;
}

.nurie-btn-lavender {
    background-color: var(--nurie-lavender);
}

/* 白カード（導入シーン・選ばれる理由・事例）の共通部分 */
.nurie-card,
.nurie-reason-card,
.nurie-case-card {
    background: #ffffff;
    border-radius: var(--nurie-radius);
}

.nurie-card {
    padding: clamp(18px, 2vw, 30px);
}

.nurie-card-title {
    color: var(--nurie-heading);
    font-size: clamp(1.2rem, 2.1vw, 1.8rem);
    line-height: 1.35;
    min-height: 4.05em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6em;
}

.nurie-usecase-photo {
    aspect-ratio: 460 / 350;
    border-radius: calc(var(--nurie-radius) * 0.5);
}

.nurie-card-caption {
    margin-top: 0.8em;
    color: var(--nurie-heading);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
}

.nurie-card-body {
    color: var(--nurie-heading);
    font-size: clamp(0.85rem, 1.1vw, 1.15rem);
    line-height: 1.9;
}

/* 利用者の声 */
.nurie-bubble-group-label {
    color: #ffffff;
    font-size: clamp(1.2rem, 2.2vw, 2.6rem);
    margin-bottom: 0.6em;
}

.nurie-bubble {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    max-width: 360px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--nurie-heading);
    font-size: clamp(0.85rem, 1.8vw, 1.6rem);
    line-height: 1.6;
}

.nurie-bubble::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 20px 11px 0 11px;
    border-color: #ffffff transparent transparent transparent;
}

.nurie-avatar {
    display: block;
    height: clamp(80px, 9vw, 170px);
    width: auto;
    margin: 0 auto;
}

/* 選ばれる理由 */
.nurie-reason-card {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 2.5vw, 50px) clamp(16px, 2vw, 30px);
}

.nurie-reason-num {
    color: #999999;
    font-weight: 300;
    font-size: clamp(2.6rem, 5vw, 6rem);
    line-height: 1.1;
}

.nurie-reason-title {
    margin: 0.4em 0 0.9em;
    color: var(--nurie-pink);
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    line-height: 1.35;
}

.nurie-reason-body {
    color: var(--nurie-text);
    font-weight: 700;
    font-size: clamp(0.9rem, 1.3vw, 1.2rem);
    margin-bottom: 1em;
}

/* 全幅写真 */
.nurie-page section.nurie-full-photo {
    padding: 0;
}

.nurie-full-photo .nurie-photo {
    aspect-ratio: 1920 / 800;
    border-radius: 0;
}

/* 体験ステップ */
.nurie-step-card {
    background: var(--nurie-blue);
    border-radius: var(--nurie-radius);
    padding: 0 clamp(8px, 1vw, 20px) clamp(16px, 2vw, 40px);
    color: #ffffff;
}

.nurie-step-badge {
    padding: 0.8em 0 0.4em;
    font-size: clamp(1.3rem, 2.5vw, 3rem);
    line-height: 1.3;
}

.nurie-step-badge span {
    display: block;
    font-size: 0.7em;
    letter-spacing: 0.05em;
}

.nurie-step-card .nurie-photo {
    aspect-ratio: 340 / 360;
    border-radius: 0;
}

.nurie-step-caption {
    padding-top: 1.2em;
    font-weight: 700;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
}

/* 準備物 */
.nurie-prep {
    margin-top: clamp(24px, 4vw, 70px);
}

.nurie-prep-label {
    color: var(--nurie-pink);
    font-size: clamp(1.4rem, 2.6vw, 3rem);
}

.nurie-prep-body {
    color: #757575;
    font-weight: 700;
    font-size: clamp(1rem, 2.1vw, 2rem);
}

.nurie-prep-small {
    color: var(--nurie-heading);
    font-size: clamp(0.75rem, 1.1vw, 1.25rem);
}

/* 料金プラン */
.nurie-price-table {
    width: 100%;
    min-width: 560px;
    border-collapse: separate;
    border-spacing: 4px;
    color: var(--nurie-heading);
    font-size: clamp(0.85rem, 1.6vw, 1.5rem);
}

.nurie-price-table th,
.nurie-price-table td {
    padding: 0.7em 0.5em;
    text-align: center;
    vertical-align: middle;
    font-weight: 400;
}

.nurie-price-table thead th {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.35em;
    line-height: 1.3;
}

.nurie-price-table thead th span {
    display: block;
    font-size: 0.6em;
}

.nurie-th-blank {
    background: transparent;
}

.nurie-th-standard {
    background-color: #99ddd8;
}

.nurie-th-oem {
    background-color: #f19ca2;
}

.nurie-price-table tbody th {
    width: 19%;
    background-color: var(--nurie-gray-bg);
    white-space: nowrap;
}

.nurie-price-table tbody td:nth-child(2) {
    background-color: #e6f6f5;
}

.nurie-price-table tbody td:nth-child(3) {
    background-color: #fbe7ea;
}

/* スマホでは2プランを並べず、タブで切り替えて1プランずつ表示する（JSを使わず、ラジオボタンの :checked で切り替える） */
.nurie-price-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 767px) {
    .nurie-price-tab-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        margin-top: 0;
    }

    .nurie-price-tab {
        margin: 0;
        padding: 10px 6px;
        border-radius: 12px 12px 0 0;
        color: var(--nurie-text);
        font-size: 15px;
        font-weight: 900;
        line-height: 1.3;
        cursor: pointer;
    }

    .nurie-price-tab span {
        display: block;
        margin-bottom: 2px;
        font-size: 11px;
        font-weight: 700;
    }

    .nurie-price-tab-standard {
        background: #e6f6f5;
    }

    .nurie-price-tab-oem {
        background: #fbe7ea;
    }

    #nurie-price-plan-standard:checked ~ .nurie-price-tab-list .nurie-price-tab-standard {
        background: #99ddd8;
        color: #ffffff;
    }

    #nurie-price-plan-oem:checked ~ .nurie-price-tab-list .nurie-price-tab-oem {
        background: #f19ca2;
        color: #ffffff;
    }

    #nurie-price-plan-standard:focus-visible ~ .nurie-price-tab-list .nurie-price-tab-standard,
    #nurie-price-plan-oem:focus-visible ~ .nurie-price-tab-list .nurie-price-tab-oem {
        outline: 2px solid var(--nurie-blue);
        outline-offset: 2px;
    }

    /* 表の上辺を選択中のタブと同じ色にして、タブと表をつなげる */
    .nurie-price-table {
        min-width: 0;
        margin-top: 0;
        border-top: 4px solid #99ddd8;
    }

    #nurie-price-plan-oem:checked ~ .table-responsive .nurie-price-table {
        border-top-color: #f19ca2;
    }

    .nurie-price-table thead {
        display: none;
    }

    #nurie-price-plan-standard:checked ~ .table-responsive .nurie-price-table :is(th, td):nth-child(3),
    #nurie-price-plan-oem:checked ~ .table-responsive .nurie-price-table :is(th, td):nth-child(2) {
        display: none;
    }
}

/* 導入事例 */
.nurie-case-voice {
    margin-top: 1.2em;
    color: #ffffff;
    font-size: clamp(1rem, 2.2vw, 1.9rem);
    line-height: 1.7;
}

.nurie-case-voice mark {
    padding: 0;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(transparent 72%, var(--nurie-pink) 72%);
}

.nurie-case-featured {
    margin-top: clamp(24px, 3vw, 40px);
}

.nurie-case-title {
    color: var(--nurie-blue);
    font-weight: 900;
    font-size: clamp(1.2rem, 2.3vw, 1.5rem);
    line-height: 1.35;
    margin-bottom: 0.5em;
}

.nurie-case-stats {
    margin-top: 1em;
    color: var(--nurie-heading);
    font-size: clamp(0.95rem, 1.4vw, 1.6rem);
    line-height: 1.6;
}

.nurie-case-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 2%;
    margin-top: 30px;
}

.nurie-case-photos .nurie-photo {
    border-radius: calc(var(--nurie-radius) * 0.75);
}

.nurie-case-photo-wide {
    width: 58.4%;
    aspect-ratio: 900 / 402;
}

.nurie-case-photo-narrow {
    width: 39.6%;
    aspect-ratio: 610 / 402;
}

.nurie-case-card {
    padding: clamp(20px, 2vw, 30px) clamp(14px, 1.5vw, 24px);
}

.nurie-case-icon {
    display: block;
    height: clamp(90px, 9vw, 160px);
    width: auto;
    max-width: 80%;
    margin: 0 auto 0.8em;
    object-fit: contain;
}

@media (max-width: 767px) {
    .nurie-case-photos {
        gap: 10px;
    }

    .nurie-case-photo-wide,
    .nurie-case-photo-narrow {
        width: 100%;
    }
}

/* よくあるご質問 */
.nurie-faq-list {
    margin: clamp(20px, 3vw, 50px) auto 0;
}

.nurie-faq-list dt {
    color: var(--nurie-pink);
    font-weight: 400;
    font-size: clamp(1.05rem, 1.9vw, 2.2rem);
}

.nurie-faq-list dd {
    margin: 0.3em 0 1.8em;
    padding-left: 1.2em;
    text-indent: -1.2em;
    color: var(--nurie-text);
    font-size: clamp(0.9rem, 1.4vw, 1.65rem);
}

/* クロージング */
.nurie-page section.nurie-closing {
    padding-bottom: 0;
}

.nurie-closing-body {
    color: var(--nurie-text);
    font-size: clamp(1.1rem, 2.8vw, 2.4rem);
    line-height: 1.8;
}

.nurie-closing-emphasis {
    color: var(--nurie-blue);
    font-weight: 900;
    font-size: clamp(1.1rem, 3vw, 2.8rem);
}

.nurie-closing-icons {
    align-items: flex-end;
    margin-top: clamp(24px, 4vw, 80px);
    padding: 0 1.5%;
}

.nurie-closing-icons img {
    display: block;
    width: 92%;
    max-height: clamp(90px, 13vw, 260px);
    margin: 0 auto;
    object-fit: contain;
    object-position: bottom;
}

/* Bootstrap 4 の row-cols-* は6までしか無いため、8列は独自に指定する */
@media (min-width: 768px) {
    .nurie-closing-icons > .col {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}

@media (max-width: 767px) {
    .nurie-closing-icons > .col {
        margin-top: 12px;
    }

    .nurie-worksheets,
    .nurie-closing-icons {
        padding: 0 15px;
    }

    .nurie-closing-body {
        font-size: 3.8vw;
    }

    /* 全角21字を左右余白40pxの内側で1行に収める（360px幅で約317px） */
    .nurie-closing-emphasis {
        font-size: 4.2vw;
    }
}
