/* main start */
main {
    margin-top: 90px;
    background-color: rgb(242, 244, 247);

    @media (width <=767px) {
        margin-top: 51.6px;
    }

    /* 共通 start */
    h2 {
        position: relative;
        text-align: center;
        background-color: rgb(245, 225, 187);
        font-weight: bold;
        font-family: 'Shippori Mincho', serif;
        font-size: 18px;
        color: rgb(31, 45, 61);
        /* header ネイビーブルー */
        padding: 12px;
        margin: 0 -18px 24px;

        @media (width <=767px) {
            margin: 0 -14px 16px;
        }

        &::before {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 8px;
            width: 8px;
            height: 100%;
            background-color: rgb(31, 45, 61);
        }
    }

    /* 共通 end */

    .hero {
        .hero-layout {
            position: relative;

            .hero-img {
                width: 100%;
                height: 100%;
                object-fit: cover;

            }

            .hero-title {
                width: fit-content;
                height: fit-content;

                /* 真ん中に配置start */
                position: absolute;
                inset: 0;
                margin: auto;
                /* 真ん中に配置end */

                h1 {
                    text-align: center;
                    font-size: 24px;
                    -webkit-text-stroke: 6px rgb(242, 244, 247);
                    paint-order: stroke;
                    font-weight: bold;
                    color: rgb(31, 45, 61);
                    /* header ネイビーブルー */

                    span {
                        line-height: 1.7;
                        -webkit-text-stroke: 6px rgb(31, 45, 61);
                        color: rgb(255, 128, 0);

                        @media (width <=767px) {
                            font-size: 22px;
                            -webkit-text-stroke: 4px rgb(31, 45, 61);
                        }
                    }

                    @media (width <=767px) {
                        font-size: 19px;
                        -webkit-text-stroke: 5px rgb(242, 244, 247);
                    }
                }

                p {
                    margin-top: 8px;
                    text-align: center;
                    font-size: 18px;
                    -webkit-text-stroke: 4px rgb(31, 45, 61);
                    paint-order: stroke;
                    font-weight: bold;
                    color: rgb(255, 128, 0);
                    /* ctaボタン オレンジ */

                    @media (width <=767px) {
                        font-size: 16px;
                        -webkit-text-stroke: 3px rgb(31, 45, 61);
                    }
                }

            }
        }
    }



    .service {

        .section-lead {
            font-size: 1rem;
            color: #555;
            line-height: 1.7;
            max-width: 800px;
            margin: 0 auto 2.5em;
        }

        .service-points {
            display: flex;
            flex-direction: column;
            gap: 1.2em;
            max-width: 600px;
            margin: 0 auto 3em;
            text-align: left;

            li {
                position: relative;
                font-size: 1rem;
                color: #333;
                line-height: 1.6;
                padding-left: 1.8em;

                h3 {
                    font-weight: bold;
                }

                &::before {
                    content: "✔";
                    position: absolute;
                    left: 0;
                    top: 0;
                    color: #ff6a00;
                    font-weight: 700;
                    font-size: 1.1rem;
                    line-height: 1.4;
                }
            }
        }

        /* --- レスポンシブ --- */

    }


    /* profile */
    .profile {
        .profile-layout {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 2rem;
            align-items: center;
            justify-content: center;
            max-width: 900px;
            margin: 0 auto;

            .img-outer {
                text-align: center;

                .profile-img {
                    width: 100%;
                    max-width: 180px;
                    border-radius: 100%;
                    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
                }

                span {
                    text-align: center;
                    display: block;
                }
            }

            .profile-text {
                .section-lead {
                    font-size: 16px;
                    line-height: 1.7;
                    margin-bottom: 2rem;
                    font-weight: 500;

                    @media (width <=768px) {
                        margin-bottom: 0;

                    }

                }
            }
        }

        /* スマホ対応 */
        @media (width <=768px) {
            .profile-layout {
                grid-template-columns: 1fr;
                text-align: center;

                .profile-img {
                    margin: 0 auto 2rem;
                }

                .profile-text {
                    text-align: left;
                }
            }
        }

    }

    .achievements {
        .section-lead {
            font-size: 16px;
            max-width: 700px;
            margin: 0 auto 3rem;
            color: #555;
            line-height: 1.6;
        }

        .achievements-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;

            .achievement-card {
                background: rgba(255, 183, 77, 0.15);
                /* 淡いオレンジ */
                border: 1px solid rgb(255, 128, 0);

                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
                transition: transform 0.3s, box-shadow 0.3s;

                img {
                    width: 100%;
                    height: 200px;
                    object-fit: cover;
                    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
                }

                h3 {
                    font-size: 18px;
                    font-weight: 600;
                    margin: 1rem;
                    color: #2e3248;
                }

                p {
                    font-size: 15px;
                    margin: 0 1rem 1rem;
                    color: #555;
                }
            }
        }


        @media (min-width: 768px) {
            .achievements-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .achievements-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    }


    .price {
        .price-layout {
            position: relative;

            .price-img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            .price-title {
                width: fit-content;
                height: fit-content;
                position: absolute;
                inset: 0;
                margin: auto;

                .inner {
                    text-align: center;

                    h3 {
                        font-size: 32px;
                        color: rgb(242, 244, 247);
                        -webkit-text-stroke: 10px rgb(51, 51, 51);
                        paint-order: stroke;
                        font-weight: bold;

                        @media (width <=767px) {
                            font-size: 24px;
                            -webkit-text-stroke: 8px rgb(51, 51, 51);
                        }

                    }

                    span {
                        font-size: 28px;
                        color: rgb(242, 244, 247);
                        -webkit-text-stroke: 6px rgb(51, 51, 51);
                        paint-order: stroke;
                        font-weight: bold;

                        @media (width <=767px) {
                            font-size: 20px;
                            -webkit-text-stroke: 5px rgb(51, 51, 51);
                        }
                    }
                }

                p {
                    margin-top: 8px;
                    text-align: center;
                    font-size: 24px;
                    font-weight: bold;
                }
            }
        }

        .price-information {
            position: relative;
            font-size: 18px;
            font-weight: bold;
            margin-top: 32px;
            margin-bottom: 16px;
            padding-left: 12px;

            text-decoration-style: wavy;

            /* 文字と線の距離 */
            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                transform: translateY(-50%);
                width: 6px;
                height: 70%;
                background: rgb(255, 128, 0);
                /* ctaボタンカラー オレンジ */
                border-radius: 3px;
            }
        }

        ul {
            line-height: 1.7;
            font-weight: bold;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            /* 2列 */
            gap: 1.5rem;
            /* カード間の余白 */
            margin: 0 auto;
            padding: 0;
            list-style: none;

            @media (width <=767px) {
                grid-template-columns: repeat(1, 1fr);

            }


            li {
                background: #fff;
                border: 2px solid var(--color-btn);
                /* オレンジ枠 */
                border-radius: 12px;
                padding: 16px 8px;
                font-size: 16px;
                font-weight: bold;
                color: var(--color-main);
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
                transition: transform 0.3s, box-shadow 0.3s;
            }
        }

    }

    .reason {

        .reason-layout {
            max-width: 900px;
            margin: 0 auto;

            p {
                line-height: 1.7;
                margin-bottom: 1.2em;
                font-size: 16px;
                text-align: left;

                strong {
                    color: var(--color-btn);
                }
            }

            ul {
                display: flex;
                flex-direction: column;
                gap: 0.8em;
                margin: 20px 0;
                padding: 0;
                list-style: none;

                li {
                    background: #fff;
                    border-left: 5px solid var(--color-btn);
                    padding: 12px 16px;
                    border-radius: 6px;
                    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

                    h3 {
                        font-weight: bold;
                        font-size: 18px;
                    }
                }
            }

            @media (width <=767px) {

                p {
                    font-size: 16px;
                }
            }
        }

    }

    .design {

        .design-showcase {
            padding: 24px 0;
            text-align: center;

            h3 {
                margin: 0 auto 48px;
                padding: 8px;
                width: fit-content;
                border-top: solid 1px rgb(31, 45, 61);
                border-bottom: solid 1px rgb(31, 45, 61);
                font-size: 16px;
                color: rgb(31, 45, 61);
            }

            .design-pair {
                display: flex;
                justify-content: center;
                align-items: center;
                gap: 2rem;
                flex-wrap: wrap;

                @media (width <=767px) {
                    flex-direction: column;
                    gap: 1.5rem;
                }

                .design-item {
                    margin: 0 16px;
                    flex: 1 1 45%;
                    max-width: 500px;
                    border-radius: 12px;
                    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
                    overflow: hidden;
                    transition: transform 0.3s, box-shadow 0.3s;

                    &:hover {
                        transform: translateY(-4px);
                        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
                    }

                    img {
                        width: 100%;
                        display: block;
                        object-fit: contain;
                    }

                    figcaption {
                        margin-top: 8px;
                        background: #fff7ec;
                        border-top: 2px solid #ff8000;
                        padding: 0.6rem;
                        font-size: 0.9rem;
                        color: #333;
                        font-weight: 500;
                    }
                }

                .sp {
                    max-width: 280px;

                    @media (width <=767px) {
                        max-width: 100%;
                    }
                }
            }
        }

        .design-cards {
            display: flex;
            flex-direction: column;
            /* 縦並び */
            gap: 24px;
            max-width: 800px;
            margin: 32px auto 0 auto;
            /* 中央寄せ */


            .design-card {
                background-color: #fff;
                border-radius: 12px;
                padding: 24px;
                box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
                transition: transform 0.3s, box-shadow 0.3s;

                h3 {
                    padding-left: 12px;
                    margin-bottom: 8px;
                    position: relative;
                    font-size: 18px;
                    font-weight: bold;

                    /* 文字と線の距離 */
                    &::before {
                        content: "";
                        position: absolute;
                        left: 0;
                        top: 50%;
                        transform: translateY(-50%);
                        width: 6px;
                        height: 70%;
                        background: rgb(255, 128, 0);
                        /* ctaボタンカラー オレンジ */
                        border-radius: 3px;
                    }
                }

                p {
                    font-size: 16px;
                    line-height: 1.7;
                    color: var(--color-text);
                    margin: 0;
                }

                ul {
                    list-style: none;
                    padding: 0;
                    margin: 0 0 0 0;

                    li {
                        position: relative;
                        padding-left: 24px;
                        margin-bottom: 12px;
                        font-weight: bold;

                        &::before {
                            content: "✔";
                            position: absolute;
                            left: 0;
                            color: #ff6a00;

                        }
                    }
                }
            }
        }
    }

    .faq {

        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 1.2rem;
            margin: 1.5rem 0;
        }

        .faq-item {
            background: #fff;
            border: 1px solid #888;
            border-radius: 8px;
            padding: 1rem 1.2rem;

            h3 {
                margin: 0 0 0.5rem 0;
                font-size: 1rem;
                font-weight: 600;
                color: #111827;
            }

            p {
                margin: 0;
                font-size: 0.95rem;
                line-height: 1.6;
            }
        }
    }


    .flow {

        .section-lead {
            text-align: center;

            @media (width <=767px) {
                text-align: left;
            }
        }

        p {
            font-size: 16px;
            margin-bottom: 2rem;
            line-height: 1.6;
        }

        .flow-grid {
            display: grid;
            gap: 1.5rem;
            grid-template-columns: 1fr;
            max-width: 1000px;
            margin: 0 auto;

            .flow-card {
                background: rgba(255, 183, 77, 0.15);
                border: 2px solid rgb(255, 128, 0);
                border-radius: 10px;
                padding: 1.5rem;
                box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
                transition: transform 0.3s ease;

                h3 {
                    font-size: 16px;
                    color: #111827;
                    margin-bottom: 0.5rem;
                    font-weight: 600;
                }

                p {
                    font-size: 15px;
                    line-height: 1.7;
                    text-align: left;
                    margin: 0;
                }

                &:hover {
                    transform: translateY(-4px);
                }
            }
        }

        @media (width >=768px) {
            .flow-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (width >=1024px) {
            .flow-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
    }

    .contact {
        text-align: center;

        .contact-layout {
            margin-bottom: 2rem;

            p {
                font-size: 1rem;
                line-height: 1.7;
                color: #333;
            }
        }



        .contact-buttons {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            align-items: center;
            justify-content: center;

            a {
                display: inline-block;
                width: 100%;
                max-width: 320px;
                padding: 1rem 1.5rem;
                font-size: 1.05rem;
                font-weight: 600;
                text-align: center;
                border-radius: 50px;
                transition: all 0.3s ease;
            }

            .btn-line {
                background-color: #06c755;
                color: #fff;

                &:hover {
                    background-color: #04b34c;
                }
            }

            .btn-form {
                background-color: #fff;
                border: 2px solid #ff9900;
                color: #ff9900;

                &:hover {
                    background-color: #ff9900;
                    color: #fff;
                }
            }
        }

        /* 電話番号部分 */
        .tel-note {
            margin-top: 2rem;
            text-align: center;
            font-size: 1.1rem;
            font-weight: 600;

            a {
                display: inline-block;
                color: #ff9900;
                text-decoration: none;
                border: 2px solid #ff9900;
                border-radius: 50px;
                padding: 0.7rem 1.5rem;
                transition: all 0.3s ease;

                &:hover {
                    background-color: #ff9900;
                    color: #fff;
                }
            }
        }

        /* PC表示時 */
        @media (width > 768px) {

            .contact-buttons {
                flex-direction: row;
                gap: 2rem;

                a {
                    max-width: 280px;
                }
            }

            .tel-note {
                margin-top: 3rem;
                font-size: 1.15rem;
            }
        }
    }

}

/* main end */