@charset "UTF-8";

/*
Theme Name: hsclear-wp
Description: ヘルパーステーションクリア様向け
Author: 株式会社Compass
Author URI: https://compass-okinawa.com/
Version: 20251219
*/

/*レイヤー宣言*/
@layer reset, page-base;
@import url(./css/kiso.css) layer(reset);


@layer page-base {

    *:where(:not(#wpadminbar *)) {
        color: #7F7F72;
        border-color: #cccccc;
        font-family: "源ノ明朝", "Noto Serif JP", "游明朝", serif;
        font-size: 16px;
        font-weight: lighter;
        letter-spacing: .05em;
        line-height: 1.5;
        text-wrap: wrap;
        max-inline-size: none;
    }

    body {
        position: relative;
        overflow-x: hidden;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 26px;
        margin-bottom: 30px;
        font-weight: normal;

        &::before {
            display: block;
            position: relative;
            width: 100px;
            height: 1px;
            content: "";
            border-bottom: 1px solid #E1CD83;
            margin-bottom: 20px;
        }

        #kv &::before {
            content: none;
            display: none;
        }      
        &.center::before {
            margin: 0 auto 20px;
        }

    }

    h3 {
        font-size: 22px;
        font-weight: normal;
        margin: 1em 0 .75em;
        color: #E1CD83;

        * {
            color: inherit;
        }

        small {
            font-size: 14px;
        }
    }

    p {
        line-height: 1.8;
        text-align: justify;
        margin-bottom: 1em;
    }

    sup {
        background-color: inherit;
        padding: 0;
        margin-left: 0;
        font-size: 0.75em;
        font-weight: inherit;
    }

    :where(ol, ul) {
        padding-inline-start: 1em;
    }

    ul {
        list-style-type: none;
    }

    a {
        text-decoration-line: none;
    }

    img {
        /*参考: https://coliss.com/articles/build-websites/operation/css/sensible-defaults-for-img-elements.html */
        max-width: 100%;
        height: auto;
        vertical-align: middle;
        font-style: italic;
        background-repeat: no-repeat;
        background-size: cover;
        shape-margin: 0.75rem;
    }

    .container {
        padding: 0 2em 40px;
        margin: 0 auto;
        max-width: 1200px;
        overflow: hidden;
    }


    .header-nav,
    .footer-nav {
        display: flex;
        justify-content: space-between;
        padding: 30px;
        /*overflow: hidden;*/
    }

    /*header*/
    #kv {
        position: relative;
        width: 100%;
        height: auto;
        overflow: hidden;

        header {
            position: relative;
            height: auto;
            top: 0;
            left: 0;
            z-index: 500;
        }

        h1 {
            width: fit-content;
            position: absolute;
            left: 0;
            top: 0;

            img {
                width: 30vw;
            }
        }

        h2 {
            writing-mode: vertical-rl;
            font-weight: normal;
            display: inline-block;
            padding-top: 30px;
        }

        ul {
            writing-mode: vertical-lr;
            font-weight: lighter;
            list-style-type: "▼";
            padding: 60px 30px 30px;
            /* ▼ 追加：右寄せにする記述 ▼ */
            width: fit-content; /* 幅を文字数に合わせる（これがないと全幅になって動かない場合がある） */
            margin-left: auto;  /* 左側の余白を自動で埋めて、要素を右に押しやる */

            li {
                padding-right: 1em;
                padding-top: 10px;
            }

            li::marker {
                color: #E1CD83;
            }

            a {
                text-decoration: underline transparent;
                text-underline-offset: 15px;
                transition-property: all;
                transition-duration: 1s;
            }

            a:hover {
                color: #E1CD83;
                text-decoration: underline #e1cd83;
                text-underline-offset: 5px;
                transition-property: all;
            }
        }

        .cols {
            .right {
                text-align: center;
            }
        }
    }

    /*footer*/
    footer {
        padding: 0;
        background-position: center;
        background-size: cover;

        .container {
            padding-bottom: 0;
            text-align: left;
        }

        h2 {
            margin-top: 40px;

            &::before {
                display: none;
            }
        }

        .icon-col {
            margin-bottom: 20px;

            img {
                padding-right: 10px;
                width: 40px;
            }

            span {
                color: #E1CD83;
                font-size: 16px;

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

    .right {
        p * {
            text-decoration: none;
        }
    }

    .footer-nav {
        margin: 0 auto;
        padding: 30px 0;
        flex-wrap: wrap;
    }

    .footer-copy {
        text-align: center;
        padding: 1em;

        small {
            text-align: center;
            margin: auto;
            display: block;
            font-size: 14px;
        }
    }

    /*main*/
    main {
        padding: 0;

        img {
            display: block;
            width: 80%;
            margin: auto;
        }
    }

    .cols {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;

        &>div {
            width: 100%;
        }
    }

    .center {
        text-align: center;
    }

    .button-flame {
        text-align: center;
    }

    .button {
        text-align: center;
        color: #af3138;
        padding: 10px 2em;
        transition: .5s;
        border: solid #af3138 5px;

        &:hover {
            color: #ffffff;
            background-color: #af3138;
        }
    }

    .text-fade.show span {
        animation: fader 1s backwards;
        display: inline-block;
        font-size: inherit;
        font-weight: inherit;
    }

    .text-fade.show>span {
        overflow: hidden;
    }

    .text-fade.show>span>span {
        animation: showText 0.5s backwards;
    }

    .num {
        font-size: 40px;
    }

    .みゅん {
        color: peachpuff;
    }

    @counter-style circle-num {
        system: fixed;
        symbols: ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⑩ ⑪ ⑫ ⑬ ⑭ ⑮ ⑯ ⑰ ⑱ ⑲ ⑳;
        suffix: "";
    }

    @keyframes showText {
        0% {
            opacity: 0;
            transform: translateY(100%);
        }

        100% {
            opacity: 1;
            transform: translateY(0px);
        }
    }
}

/*ここから個別ページ*/
.index {
    #concept {
        hgroup {
            margin-top: 60px;
        }

        .concept-sep {
            padding-top: 40px;
        }
    }

    #company {
        border-color: steelblue;
        background-image: url(img/access-bg.jpg);
        background-position: center;

        h2::before {
            display: none;
        }

        .container {
            padding-top: 80px;
        }

        * {
            color: #ffffff;
            line-height: 3;
        }
    }

    #support-2 {
        img {
            margin-bottom: 40px;
        }
    }

    #flow {

        h3,
        p {
            padding-left: 60px;
        }

        h3 {
            position: relative;

            .num {
                position: absolute;
                left: 0;
                top: -10px;
            }
        }

        img {
            margin-bottom: 40px;
        }
    }

    .haircare {
        background-color: steelblue;
        background-image: url(img/haircare-bg.jpg);
        background-position: center;
        padding: 80px 30px;
        margin-bottom: 40px;

        * {
            font-family: "Zen Maru Gothic", ui-rounded;
            color: #ffffff;
        }

        p {
            margin-bottom: 40px;
        }

        small {
            font-size: 14px;
        }
    }

    #sb_instagram .sbi_follow_btn a {
        background: #E1CD83;
        color: #fff;

        * {
            color: inherit;
        }

        span {
            display: inline-block;
        }
    }
}

/*404用*/
.not-found {}

/*Tablet*/
@media screen and (min-width: 768px) {
    @layer page-base {
        * {
            font-size: 20px;
        }

        h1 {
            font-size: 36px;
        }

        h2 {
            font-size: 36px;
        }

        h3 {
            font-size: 30px;

            small {
                font-size: 16px;
            }
        }

        p {
            font-size: 20px;
        }

        .sp-only {
            display: none;
        }

        .container {
            width: 90%;
        }

        .cols.reverse {
            flex-direction: row-reverse;
        }

        .cols div:has(.flex-button) {
            width: 40%;
            max-width: none;
        }

        .flex-button {
            & p::after {
                right: 8%;
            }
        }
    }

    footer {
        .icon-col {
            img {
                width: 70px;
            }

            span {
                font-size: 24px;
            }
        }
    }

    #kv {
        height: 70vw;

        header {
            position: absolute;
            height: 100%;
        }

        h1 {
            top: unset;
            bottom: 7vw;
            left: 7vw;
            width: max-content;
            margin: 0;

            img {
                width: 25vw;
            }
        }

        ul {
            position: absolute;
            bottom: 2vw;
            right: 25px;
            writing-mode: horizontal-tb;
            display: flex;
            width: 90%;
            justify-content: space-around;
            padding: 0;

            li {
                padding-right: 0;
                padding-left: 10px;
                padding-top: 0;

                &::marker {
                    font-size: 14px;
                }

                a {
                    font-size: 14px;
                }
            }

        }

        .cols {
            margin-left: auto;
            margin-right: 0;

            .right {
                width: 30%;
                align-self: center;
            }

            .left {
                width: 70%;
            }
        }
    }

    .index {
        .haircare {
            small {
                font-size: 16px;
            }
        }

        #flow {

            h3,
            p {
                padding-left: 70px;
            }

            .num {
                font-size: 50px;
            }
        }
    }
}

@media screen and (min-width: 1024px) {
    @layer page-base {
        .container {
            width: 80%;
            padding: 0 0 40px;
        }
    }

    footer {
        .cols {
            .left {
                width: 55%;
            }

            .right {
                width: 45%;
                border-left: 5px solid #e1cd83;
                padding-left: 20px;
            }
        }
    }

    main {
        img {
            width: 100%;
        }
    }

    #kv {
        ul {
            width: calc(90% * 0.9);
        }
    }

    .cols {

        .left,
        .right {
            width: 50%;
        }
    }


    .index {
        #concept {
            .left {
                padding-right: 1em;
            }
        }

        #support-1 {
            .left {
                padding-right: 1em;
            }

            .img-left {
                width: 50%;
                margin-right: 0;
                margin-left: auto;
                display: block;
            }
        }

        #support-2 {
            .right {
                padding-left: 1em;
            }
        }

        #flow {
            .left {
                padding-right: 1em;
            }
        }
    }
}

/*PC*/
@media screen and (min-width: 1281px) {
    @layer page-base {
        .container {
            padding: 0 0 80px;
        }
    }

    footer {
        .cols {
            .right {
                padding-left: 30px;
            }
        }
    }

    #kv {
        h2 {
            font-size: 60px;
        }

        ul {
            li {
                a {
                    font-size: 16px;
                }
            }
        }
    }

    /*.index {}*/
}