/* ==================================================
   ぶぃまーるdesign
   MUSIC SCHOOL DESIGN
   Responsive LP CSS
   - 390pxスマホ対応
   - 横方向の余白・はみ出しを防止
   - 画像は横幅いっぱい
================================================== */


/* ==================================================
   RESET
================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    font-family:
        "Zen Kaku Gothic New",
        "Hiragino Kaku Gothic ProN",
        "Yu Gothic",
        sans-serif;

    color: #3d3833;
    background: #f8f6f1;
    line-height: 1.8;

    overflow-x: hidden;
}

main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

img {
    display: block;
    max-width: 100%;
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.sp-only {
    display: none;
}


/* ==================================================
   COMMON
================================================== */

.full-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* ==================================================
   HEADER
================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    max-width: 100%;

    z-index: 1000;

    background: rgba(248, 246, 241, 0.94);
    backdrop-filter: blur(10px);

    border-bottom:
        1px solid
        rgba(80, 70, 60, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(1200px, 92%);
    max-width: 100%;

    min-height: 76px;
    margin: 0 auto;

    gap: 30px;
}


/* ==================================================
   LOGO
================================================== */

.logo {
    display: flex;
    align-items: center;

    gap: 11px;
    min-width: 0;

    line-height: 1;

    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.7;
}

.logo-image {
    display: block;

    width: 36px;
    height: 36px;

    object-fit: contain;
    flex: 0 0 36px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

.logo-main {
    display: block;

    color: #403831;

    font-family:
        "Noto Serif JP",
        serif;

    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;

    letter-spacing: 0.06em;

    white-space: nowrap;
}

.logo-sub {
    display: block;

    margin-top: 5px;

    color: #8d7b68;

    font-family:
        "Zen Kaku Gothic New",
        sans-serif;

    font-size: 7px;
    line-height: 1;

    letter-spacing: 0.24em;

    white-space: nowrap;
}


/* ==================================================
   HEADER CTA
================================================== */

.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    padding: 12px 22px;

    background: #4b4037;
    color: #fff;

    font-size: 12px;
    letter-spacing: 0.08em;

    white-space: nowrap;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.header-button:hover {
    background: #8b7561;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(60, 50, 40, 0.15);
}


/* ==================================================
   ① FV
================================================== */

.fv {
    width: 100%;
    max-width: 100%;

    padding-top: 76px;

    animation:
        fadeUp 1.2s ease both;
}

.fv .full-image {
    width: 100%;
    max-width: 100%;
    height: auto;
}


/* ==================================================
   CTA
================================================== */

.cta-section {
    width: 100%;
    max-width: 100%;

    background: #f8f6f1;
}

.cta-image-link {
    position: relative;

    display: block;

    width: 100%;
    max-width: 100%;

    overflow: hidden;
}

.cta-image {
    width: 100%;
    max-width: 100%;

    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.cta-image-link:hover .cta-image {
    transform: scale(1.025);
    filter: brightness(1.04);
}

.cta-image-link::after {
    content: "";

    position: absolute;
    inset: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.35);

    opacity: 0;

    transition: opacity 0.4s ease;

    pointer-events: none;
}

.cta-image-link:hover::after {
    opacity: 1;
}


/* ==================================================
   ③ 悩みセクション
================================================== */

.problem-section {
    width: 100%;
    max-width: 100%;

    background: #f3f0e9;
}

.problem-section img {
    width: 100%;
    max-width: 100%;

    animation:
        imageReveal linear both;

    animation-timeline: view();
    animation-range:
        entry 0%
        cover 35%;
}


/* ==================================================
   ⑤ DESIGNER
================================================== */

.designer-section {
    width: 100%;
    max-width: 100%;

    background: #f8f6f1;
}

.designer-section img {
    width: 100%;
    max-width: 100%;

    animation:
        imageReveal linear both;

    animation-timeline: view();
    animation-range:
        entry 0%
        cover 35%;
}


/* ==================================================
   ⑥ FORM SECTION
================================================== */

.form-section {
    position: relative;

    width: 100%;
    max-width: 100%;

    padding:
        130px
        20px
        140px;

    background: #fdf6eb;

    overflow: hidden;
}

.form-section::before {
    content: "DESIGN FOR MUSIC SCHOOLS";

    position: absolute;

    top: 45px;
    left: 50%;

    transform: translateX(-50%);

    font-family:
        "Noto Serif JP",
        serif;

    font-size:
        clamp(30px, 7vw, 90px);

    color:
        rgba(80, 70, 60, 0.035);

    white-space: nowrap;

    pointer-events: none;
}


/* ==================================================
   SECTION HEADING
================================================== */

.section-heading {
    position: relative;

    width: min(780px, 100%);
    max-width: 100%;

    margin: 0 auto 55px;

    padding: 32px 25px;

    background: #514138;
    color: #fff;

    text-align: center;

    box-shadow:
        0 12px 30px
        rgba(70, 55, 45, 0.12);

    animation:
        fadeUp linear both;

    animation-timeline: view();
    animation-range:
        entry 0%
        cover 30%;
}

.section-label {
    margin-bottom: 10px;

    color: #d8c4ac;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.32em;
}

.section-heading h2 {
    color: #fff;

    font-family:
        "Noto Serif JP",
        serif;

    font-size:
        clamp(25px, 4vw, 38px);

    font-weight: 500;
    line-height: 1.6;

    letter-spacing: 0.1em;
}

.section-lead {
    margin-top: 15px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
    line-height: 2;

    letter-spacing: 0.04em;
}


/* ==================================================
   FORM CARD
================================================== */

.form-card {
    position: relative;

    width: min(780px, 100%);
    max-width: 100%;

    margin: 0 auto;

    padding:
        clamp(30px, 6vw, 65px);

    background:
        rgba(255, 255, 255, 0.82);

    border:
        1px solid
        rgba(100, 90, 80, 0.12);

    box-shadow:
        0 25px 70px
        rgba(65, 55, 45, 0.08);

    animation:
        fadeUp linear both;

    animation-timeline: view();
    animation-range:
        entry 0%
        cover 25%;
}

.application-form {
    width: 100%;
    max-width: 100%;
}


/* ==================================================
   FORM GROUP
================================================== */

.form-group {
    width: 100%;
    max-width: 100%;

    margin-bottom: 38px;
}

.form-group > label {
    display: block;

    margin-bottom: 12px;

    color: #453d36;

    font-family:
        "Noto Serif JP",
        serif;

    font-size: 16px;
    font-weight: 600;

    letter-spacing: 0.06em;
}

.required {
    display: inline-block;

    margin-left: 8px;
    padding: 2px 7px;

    background: #8f7560;
    color: #fff;

    font-family:
        "Zen Kaku Gothic New",
        sans-serif;

    font-size: 9px;
    letter-spacing: 0.05em;

    vertical-align: middle;
}


/* ==================================================
   INPUT
================================================== */

input[type="text"],
input[type="email"],
textarea {
    display: block;

    width: 100%;
    max-width: 100%;

    padding: 15px 17px;

    border:
        1px solid
        #d8d0c5;

    border-radius: 0;

    outline: none;

    background: #fffdf9;
    color: #403831;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #9d846c;

    background: #fff;

    box-shadow:
        0 0 0 3px
        rgba(157, 132, 108, 0.08);
}

textarea {
    min-height: 150px;

    line-height: 1.8;

    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #aaa19a;
}


/* ==================================================
   RADIO CARD
================================================== */

.radio-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;

    width: 100%;
    max-width: 100%;
}

.radio-card {
    position: relative;

    display: block;

    min-width: 0;

    cursor: pointer;
}

.radio-card input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.radio-card span {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 52px;

    padding: 10px;

    border:
        1px solid
        #d9d1c7;

    background: #fffdf9;
    color: #554d46;

    text-align: center;

    font-size: 13px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.radio-card:hover span {
    transform: translateY(-2px);

    border-color: #a38a72;
    background: #f8f4ed;

    box-shadow:
        0 5px 15px
        rgba(60, 50, 40, 0.07);
}

.radio-card input:checked + span {
    background: #51463d;

    border-color: #51463d;
    color: #fff;

    box-shadow:
        0 6px 15px
        rgba(60, 50, 40, 0.12);
}


/* ==================================================
   FORM NOTE
================================================== */

.form-note {
    margin-top: 8px;

    color: #8c8178;

    font-size: 11px;
}


/* ==================================================
   PRIVACY
================================================== */

.privacy {
    margin: 35px 0;
}

.privacy-label {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    cursor: pointer;

    color: #665e57;

    font-size: 12px;
}

.privacy-label input {
    width: 16px;
    height: 16px;

    flex: 0 0 16px;

    accent-color: #655448;
}


/* ==================================================
   SUBMIT BUTTON
================================================== */

.submit-button {
    position: relative;

    display: block;

    width: 100%;
    min-height: 65px;

    border: none;

    background: #51463d;
    color: #fff;

    cursor: pointer;

    font-family:
        "Noto Serif JP",
        serif;

    font-size: 15px;

    letter-spacing: 0.12em;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.submit-button:hover {
    background: #806a56;

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px
        rgba(70, 55, 45, 0.18);
}

.submit-arrow {
    position: absolute;

    right: 25px;

    font-family:
        "Zen Kaku Gothic New",
        sans-serif;

    font-size: 20px;

    transition:
        transform 0.3s ease;
}

.submit-button:hover .submit-arrow {
    transform: translateX(5px);
}

.submit-note {
    margin-top: 18px;

    color: #8b8178;

    font-size: 11px;

    text-align: center;
}


/* ==================================================
   FOOTER
================================================== */

.footer {
    width: 100%;
    max-width: 100%;

    padding: 55px 20px;

    background: #40372f;
    color: #fff;

    text-align: center;
}

.footer-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.footer-logo {
    font-family:
        "Noto Serif JP",
        serif;

    font-size: 18px;

    letter-spacing: 0.08em;
}

.footer-copy {
    margin-top: 5px;

    opacity: 0.55;

    font-size: 9px;

    letter-spacing: 0.25em;

    text-transform: uppercase;
}

.copyright {
    margin-top: 30px;

    opacity: 0.5;

    font-size: 10px;
}


/* ==================================================
   ANIMATION
================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform:
            translateY(40px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 900px) {

    .header-inner {
        width: calc(100% - 30px);
        min-height: 68px;
    }

    .logo-image {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .logo-main {
        font-size: 16px;
    }

    .logo-sub {
        margin-top: 4px;
        font-size: 6px;
    }

    .header-button {
        padding: 10px 16px;
        font-size: 10px;
    }

    .fv {
        padding-top: 68px;
    }
}


/* ==================================================
   SMARTPHONE
================================================== */

@media screen and (max-width: 600px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    main,
    section,
    header,
    footer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body {
        font-size: 14px;
    }

    .sp-only {
        display: block;
    }


    /* HEADER */

    .header {
        width: 100%;
        max-width: 100%;
    }

    .header-inner {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);

        min-height: 62px;

        gap: 10px;
    }


    /* LOGO */

    .logo {
        gap: 8px;
        min-width: 0;
    }

    .logo-image {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .logo-main {
        font-size: 13px;
        letter-spacing: 0.03em;
    }

    .logo-sub {
        margin-top: 3px;
        font-size: 5px;
        letter-spacing: 0.16em;
    }


    /* HEADER CTA */

    .header-button {
        flex-shrink: 0;

        padding: 9px 11px;

        font-size: 9px;

        letter-spacing: 0.02em;

        white-space: nowrap;
    }


    /* FV */

    .fv {
        width: 100%;
        max-width: 100%;

        padding-top: 62px;
    }

    .fv .full-image {
        width: 100%;
        max-width: 100%;
    }


    /* CTA IMAGE */

    .cta-section,
    .cta-image-link,
    .cta-image {
        width: 100%;
        max-width: 100%;
    }

    .cta-image-link:hover .cta-image {
        transform: none;
        filter: none;
    }


    /* PROBLEM / DESIGNER */

    .problem-section img,
    .designer-section img {
        width: 100%;
        max-width: 100%;
    }


    /* FORM */

    .form-section {
        width: 100%;
        max-width: 100%;

        padding:
            90px 15px 100px;
    }

    .form-section::before {
        top: 30px;
        font-size: 28px;
    }


    /* SECTION HEADING */

    .section-heading {
        width: 100%;
        max-width: 100%;

        margin-bottom: 35px;

        padding: 25px 18px;
    }

    .section-label {
        margin-bottom: 8px;
        font-size: 8px;
    }

    .section-heading h2 {
        font-size: 25px;
        line-height: 1.65;
    }

    .section-lead {
        margin-top: 12px;

        font-size: 11px;
        line-height: 1.9;
    }


    /* FORM CARD */

    .form-card {
        width: 100%;
        max-width: 100%;

        padding: 30px 18px;

        box-shadow:
            0 15px 40px
            rgba(65, 55, 45, 0.07);
    }

    .form-group {
        margin-bottom: 30px;
    }

    .form-group > label {
        margin-bottom: 9px;
        font-size: 14px;
    }

    input[type="text"],
    input[type="email"],
    textarea {
        width: 100%;
        max-width: 100%;

        padding: 13px;

        font-size: 13px;
    }

    textarea {
        min-height: 130px;
    }


    /* RADIO */

    .radio-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .radio-card {
        width: 100%;
        max-width: 100%;
    }

    .radio-card span {
        min-height: 48px;
        font-size: 12px;
    }


    /* PRIVACY */

    .privacy-label {
        align-items: flex-start;
        justify-content: flex-start;

        font-size: 11px;
        line-height: 1.6;
    }


    /* SUBMIT */

    .submit-button {
        min-height: 60px;
        font-size: 13px;
    }

    .submit-arrow {
        right: 17px;
    }

    .submit-note {
        font-size: 10px;
        line-height: 1.7;
    }


    /* FOOTER */

    .footer {
        width: 100%;
        max-width: 100%;

        padding: 45px 15px;
    }
}


/* ==================================================
   390px以下
================================================== */

@media screen and (max-width: 390px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    main,
    section,
    .full-image {
        width: 100%;
        max-width: 100%;
    }


    /* HEADER */

    .header-inner {
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
    }


    /* LOGO */

    .logo {
        gap: 7px;
    }

    .logo-image {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }

    .logo-main {
        font-size: 12px;
    }

    .logo-sub {
        font-size: 4.5px;
        letter-spacing: 0.13em;
    }


    /* HEADER CTA */

    .header-button {
        padding: 8px 9px;
        font-size: 8px;
    }


    /* FORM */

    .form-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-card {
        padding: 25px 15px;
    }

    .section-heading {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-heading h2 {
        font-size: 25px;
    }

    .radio-card span {
        min-height: 46px;
        padding: 9px;
    }
}


/* ==================================================
   REDUCED MOTION
   アニメーションを減らしたい環境への配慮
================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ==================================================
   FINAL MOBILE WIDTH FIX
   スマホで右側に余白が出る場合の強制調整
================================================== */

html,
body {
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
}

main,
header,
footer,
section,
.fv,
.cta-section,
.problem-section,
.designer-section,
.form-section,
.footer,
.cta-image-link,
.full-image {
    width: 100vw;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

img.full-image,
img.cta-image {
    display: block;
    width: 100vw;
    max-width: none;
    height: auto;
}

@media screen and (max-width: 600px) {

    html,
    body {
        width: 100vw;
        max-width: 100vw;
        min-width: 0;
    }

    main,
    header,
    footer,
    section,
    .fv,
    .cta-section,
    .problem-section,
    .designer-section,
    .form-section,
    .footer,
    .cta-image-link {
        width: 100vw;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .full-image,
    .fv .full-image,
    .cta-image,
    .problem-section img,
    .designer-section img {
        display: block;
        width: 100vw;
        max-width: none;
        height: auto;
    }

    /* フォームだけは画面内に収める */
    .form-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .section-heading,
    .form-card {
        width: 100%;
        max-width: 100%;
    }
}

@media screen and (max-width: 390px) {

    main,
    header,
    footer,
    section,
    .fv,
    .cta-section,
    .problem-section,
    .designer-section,
    .form-section,
    .footer,
    .cta-image-link,
    .full-image {
        width: 100vw;
        max-width: none;
    }

    .form-section {
        padding-left: 10px;
        padding-right: 10px;
    }
}
