@charset "UTF-8";

* {
    box-sizing: border-box;
}
img {
    max-width: 100%;
}
html {
    scroll-behavior: smooth;
}
body {
    font-feature-settings: "palt";
}
a, button {
    cursor: pointer;
}

:root {
    --mainColor: #0bd;
    --subColor: #0bd4;
    --white: #fefefe;
    --gray: #9f9f9f;
    --black: #3f3f3f;
    --harfBlack: #3f3f3f3a;
    --gradientRed: #fff0ef;
    --gradientBlue: #f6fffd;
    --gradientDarkBlue: #dde3eb;
    --mainWidth: 800px;
    --subWidth: 320px;
    --btnWidth: 10rem;
    --containerWidth: 92vw;
    @media (width < 600px) {
        --containerWidth: 97vw;
    }
}

/* コンテナー */

.mainBox {
    display: flex;
    flex-direction: column;
    gap: calc(var(--mainWidth) / 10);
    padding: calc(var(--mainWidth) / 10) min(3vw, 2rem);
    position: relative;
}
.topContainer {
    width: var(--containerWidth);
    max-width: calc(var(--mainWidth) * 1.4);
    margin-inline: auto;
}
.flex {
    display: flex;
}
.flex-reverse {
    flex-direction: row-reverse;
}
.flex-column {
    display: flex;
    flex-direction: column;
}
/* スマホ改行 */
br.mobile {
    @media (600px <= width) {
        display: none;
    }
}
br.notebook {
    @media (width < 600px) {
        display: none;
    }
}
/* 全体のグラデーション */
body {
    background-image: linear-gradient(var(--gradientRed), var(--gradientBlue));
}
/* ヘッダー
======================================================================= */
/* ロゴ */
.header {
    background: url(../images/homeCare.jpg) no-repeat center left/cover;
    box-shadow: -80px 16px 0px var(--harfBlack);
    width: min(800px, 84vw); 
    aspect-ratio: 2/1;
    margin-inline: auto 0;
    position: relative;
    @media (760px < width) {
        margin-inline: auto;
        padding: 0 min(3vw, 2rem);
    }
    a {
        z-index: 300;
    }
}
.header > .flex-column {
    @media (760px < width) {
        flex-direction: row;
        justify-content: space-between;
    }
    a {
        display: block;
        width: fit-content;
        height: fit-content;
    }
}
/* h1 */
.h1 {
    background-color: var(--harfBlack);
    border-radius: 0 0 .6em 1em;
    padding: 1.6em .6em .3em 1.2em;
    display: flex;
    width: fit-content;
    height: fit-content;
    gap: .5rem;
    flex-direction: column;
    position: relative;
    @media (760px < width) {
        padding: 2em 1.2em .5em 1.8em;
        translate: 16px 0;
    }
    span {
        display: block;
        width: fit-content;
        &:nth-child(1) {
            font-size: clamp(1.25rem, calc(1.16rem + .37vw), 1.45rem);
        }
    }
}

/* ヘッダーコンタクト */
.contactBox {
    translate: -16px 32px;
    justify-content: space-between;
    gap: 1.7rem;
    @media (760px < width) {
        translate: 0 16px;
        flex-direction: column;
    }
}
.headerContact {
    background-color: var(--gradientBlue);
    box-shadow: 0 0 6px var(--harfBlack);
    border-radius: .3em;
    width: fit-content;
    height: fit-content;
    padding: .5em .7em;
    @media (760px < width) {
        translate: 15% 0;
    }
}
.contactBox .flex-column {
    justify-content: space-between;
    @media (760px < width) {
        flex-direction: row-reverse;
        justify-content: left;
        gap: 2rem;
        align-items: end;
    }
/* お問い合わせボタン */
    .icon {
        background-color: var(--mainColor);
        box-shadow: 0 0 6px var(--harfBlack);
        display: block;
        padding: .8em .6em .6em;
        border-radius: .3em;
    }
}
/* Instagramロゴ */
.contactBox .instaBox {
    translate: 0 -1rem;
    @media (760px < width) {
        translate: 0 0;
    }
}
.instaSize {
    --iconSize: 42px;
    --borderSize: .15rem;
    width: var(--iconSize);
    aspect-ratio: 1/1;
    position: relative;
    a {
        color: var(--white);
        width: 100%;
        height: 100%;
        position: absolute;
        top: -1.2em;
        left: -.3em;
        z-index: 10;
        font-size: .8rem;
        letter-spacing: .01em;
        text-transform: capitalize;
    }
}
.insta {
    background: linear-gradient(160deg, #427eff 0%, #f13f79 55%) no-repeat;
    box-shadow: 0 0 8px #333;
    width: 100%;
    height: 100%;
    border-radius: 20%;
    overflow: hidden;
    position: relative;
    &::before{/*グラデーションを重ねるため*/
        content: '';
        position: absolute;
        top: 35%;
        left: -35%;
        width: 120%;
        height: 120%;
        background: radial-gradient(#ffd610 5%, rgba(255, 142, 90, 0.65) 55%, rgba(255, 88, 96, 0) 70%);
    }
}
.istaInner {
    display: inline-block;
    width: 32%;
    aspect-ratio: 1/1;
    border: var(--borderSize) solid #fff;
    border-radius: 50%;
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 2;
    &::after {
        display: inline-block;
        content: "";
        width: 45%;
        aspect-ratio: 1/1;
        background-color: #fff;
        border-radius: 50%;
        position: absolute;
        top: -6px;
        right: -6px;
    }
}
.instaOuter {
    display: inline-block;
    width: 75%;
    aspect-ratio: 1/1;
    border: var(--borderSize) solid #fff;
    border-radius: 28%;
    position: absolute;
    inset: 0;
    margin: auto;
    z-index: 1;
}

/* ヘッダーナビ */
.headerNav {
    --burgerWid: clamp(42px, 7vw, 72px);
    width: min(1400px, 92vw);
    /* width: fit-content; */
    position: fixed;
    top: 3rem;
    left: 50%;
    translate: -50% 0;
    z-index: 200;
}
/* ハンバーガーメニュー */
.burger {
    --opacity: 1;
    --rotate: 0;
    --translate: .5rem;
    background-color: var(--gray);
    box-shadow: 0 0 6px var(--harfBlack);
    border-radius: 50%;
    display: grid;
    place-items: center;
    width: var(--burgerWid);
    aspect-ratio: 1/1;
    margin-bottom: 2rem;
    &.is-active {
        --opacity: 0;
        --rotate: 135deg;
        --translate: 0;
    }
    span {
        background-color: var(--gradientBlue);
        display: block;
        width: calc(var(--burgerWid) * 0.4);
        height: 3px;
        grid-area: 1/1/-1/-1;
        transition: opacity .5s ease-in-out, rotate .5s ease-in-out, translate .5s ease-in-out;
    }
    span:nth-child(1) {
        opacity: var(--opacity);
    }
    span:nth-child(2) {
        translate: 0 calc(var(--translate) * -1);
        rotate: var(--rotate);
    }
    span:nth-child(3) {
        translate: 0 var(--translate);
        rotate: calc(var(--rotate) * -1);
    }
}

/* メニュー */
.headerNav .menu {
    opacity: 0;
    height: 0;
    pointer-events: none;
    justify-content: space-between;
    transition: opacity .3s ease-in-out;
    @media (760px < width) {
        justify-content: left;
        gap: 3rem;
    }
    &.is-active {
        opacity: 1;
        height: 100%;
        pointer-events: auto;
    }
    > li {
        padding: .8em .6em;
    }
}
.headerNav .menu li {
    background-color: var(--white);
    box-shadow: 0 0 6px var(--gray);
    height: fit-content;
    margin-bottom: .5em;
    a {
        display: block;
        padding: .8em .6em;
    }
    .btn {
        padding: .8em .6em;
        &::after {
            background-color: var(--gray);
            display: inline-block;
            content: "";
            width: 12px;
            aspect-ratio: 1/1;
            clip-path: polygon(0 10%, 100% 10%, 50% 100%);
        }
    }
}
.junnbityuu {
    text-decoration: line-through solid #333 2px;
}
/* メイン 
=================================================================*/
.panNav {
    font-size: .9rem;
    padding-left: .8rem;
    z-index: 300;
    .flex {
        gap: 1.5rem;
    }
    li:first-of-type {
        color: blue;
        text-decoration: underline;
        display: flex;
        &::after {
            content: "";
            display: block;
            width: 1rem;
            aspect-ratio: 1/1;
            background-color: #333;
            clip-path: polygon(0 0, 100% 50%, 0 100%, 40% 50%);
            translate: 12px 0;
        }
    }
}
h2 {
    color: #fff;
    background-color: #333;
    border-radius: 6px;
    text-align: center;
    font-size: 1.45rem;
    padding: .8em 0;
    + p {
        width: fit-content;
        margin-inline: auto;
        line-height: 1.8;
        .clickDeco {
            display: inline-block;
            width: 1em;
            aspect-ratio: 1/1;
            position: relative;
            &::before, &::after {
                content: "";
                display: block;
                width: .6em;
                aspect-ratio: 16/9;
                background-color: #aaa;
                clip-path: polygon(0 0, 100% 25%, 100% 75%, 0 100%);
                position: absolute;
            }
            &::before {
                rotate: 105deg;
                top: -4px;
                left: -4px;
            }
            &::after {
                rotate: 125deg;
                top: 1px;
                left: 6px;
            }
        }
    }
}
.checkBox {
    display: flex;
    gap: 1.5rem;
    translate: 1rem 0;
}
.checkBtn {
    display: flex;
    &::before {
        content: "";
        display: block;
        width: 20px;
        aspect-ratio: 1/1;
        translate: -6px 0;
        border-radius: 4px;
        border: 1px solid #333;
        background-color: #0bf;
    }
    &.is-active::before {
        background-color: #fff;
    }
}
.houseBox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem 0;
    @media (width < 860px) {
        justify-content: center;
        gap: 1.5rem;
    }
    &::before, &::after {
        content: "";
        display: block;
        width: 32%;
        @media (width < 860px) {
            width: max(240px, 40vw);
        }
    }
    &::before {
        order: 1;
    }
    .flex-column {
        width: 32%;
        aspect-ratio: 4/3;
        a {
            background-color: #333;
            border-radius: 8px 8px 8px 32px;
            display: block;
            width: 100%;
            aspect-ratio: 4/3;
            &:hover {
                background-color: #666;
                box-shadow: 0 0 24px #fff;
                scale: 120%;
                translate: 10px -10px;
                z-index: 20;
            }
        }
        p {
            font-size: clamp( 1rem, calc( 0.89rem + 0.463vw ), 1.25rem );
            letter-spacing: .05em;
            width: fit-content;
            padding: 1.5em .5em 1em;
            margin-inline: auto;
            border-radius: 4px;
            border-bottom: 6px solid #333;
        }
        @media (width < 860px) {
            width: max(240px, 40vw);
        }
    }
}
/* チェック判定 */
.isesakiTag, .takasakiTag, .otaTag {
    display: none;
}
.isesakiTag.is-active ~ .isesaki {
    display: none;
}
.takasakiTag.is-active ~ .takasaki {
    display: none;
}
.otaTag.is-active ~ .ota {
    display: none;
}
/* 介護施設写真 */
.ryuumai {
    background: url(../images/ryuumai.webp) no-repeat center/cover;
}
.tosio {
    background: url(../images/tosio.webp) no-repeat center/cover;
}
.kezouji {
    background: url(../images/kezouji.webp) no-repeat center/cover;
}
.nishijima {
    background: url(../images/nishijima.webp) no-repeat center/cover;
}
.nakazato {
    background: url(../images/nakazato.webp) no-repeat center/cover;
}
.syouganji {
    background: url(../images/syouganji.webp) no-repeat center/cover;
}
.hamajiri {
    background: url(../images/hamajiri.webp) no-repeat center/cover;
}
/* フォントカラー blue */
.fc-blue {
    color: var(--mainColor);
    font-weight: bold;
}
/* フッター================= */
footer {
    background-color: var(--black);
    color: var(--white);
}
footer small {
    display: block;
    padding: 2rem 0;
    text-align: center;
    text-transform: capitalize;
}