@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-top: calc(var(--mainWidth) / 10);
}
.topContainer {
    width: var(--containerWidth);
    max-width: calc(var(--mainWidth) * 1.4);
    margin-inline: auto;
    padding: 0 min(3vw, 2rem);
}
.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.top {
    background-image: linear-gradient(var(--gradientDarkBlue), var(--gradientBlue) 20% 60%, var(--gradientRed));
}
/* ヘッダー
======================================================================= */
/* ロゴ */
.header {
    background: url(../images/moon1.png) no-repeat center/cover;
    box-shadow: -80px 16px 0px var(--harfBlack);
    width: min(1280px, 84vw); 
    aspect-ratio: 16/9;
    margin-inline: auto 0;
    position: relative;
    @media (760px < width) {
        margin-inline: auto;
        padding: 0 min(3vw, 2rem);
    }
}
.header > .flex-column {
    @media (760px < width) {
        flex-direction: row;
        justify-content: space-between;
    }
}
/* h1 */
.h1 {
    background-color: var(--harfBlack);
    border-radius: 0 0 .6em 1em;
    padding: 1.2em .6em .3em 1.2em;
    display: flex;
    width: fit-content;
    height: fit-content;
    gap: .5rem;
    flex-direction: column;
    @media (760px < width) {
        padding: 2em 1.2em .5em 1.8em;
        translate: 16px 0;
    }
    .fz-small, .incName {
        display: block;
        width: fit-content;
    }
}

/* ヘッダーコンタクト */
.contactBox {
    translate: -16px 32px;
    justify-content: space-between;
    @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);
    position: fixed;
    top: 3rem;
    left: 50%;
    translate: -50% 0;
    z-index: 500;
    @media (1280px < width) {

    }
}
/* ハンバーガーメニュー */
.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;
}

/* メイン 
=================================================================*/
/* 背景の丸いデコレーション */
.bgDeco {
    background-color: var(--white);
    width: clamp(240px, 50vw, 400px);
    aspect-ratio: 1/1;
    border-radius: 50%;
    position: absolute;
    z-index: -100;
    opacity: .7;
}
/* リンクボタン ========*/
.linkBtn {
    background-color: var(--harfBlack);
    box-shadow: 2px 2px 0 var(--gray);
    display: inline-block;
    width: 140px;
    text-align: center;
    padding: 12px 0;
    border-radius: 8px;
    position: relative;
    &::after {
        border-top: 5px solid #0bd;
        border-right: 5px solid #0bd;
        content: "";
        display: block;
        width: 1.2em;
        aspect-ratio: 1/1;
        rotate: 45deg;
        position: absolute;
        top: 50%;
        translate: 0 -50%;
        right: -1.2em;
    }
}

/* ｈ２ */
.top-h2 {
    padding-bottom: 8px;
    position: relative;
    &.top-h2::before {
        background-color: var(--gradientRed);
        content: "";
        display: block;
        width: 32px;
        aspect-ratio: 1/1;
        border-radius: 50%;
        position: absolute;
        top: 0;
        left: -10px;
        z-index: -5;
    }
    & + p {
        padding-left: 8px;
    }
}
.about-h2 {
    width: fit-content;
    margin-inline: auto;
    padding-bottom: 1.5em;
}
/* 経営理念 ====================*/
.about {
    position: relative;
    .bgDeco {
        width: clamp(160px, 35vw, 320px);
        top: 0;
        right: 0;
    }
}
.conceptText {
    width: fit-content;
    padding: 1em;
    margin: 1.5em auto 0;
    position: relative;
    &::before, &::after {
        content: "";
        display: block;
        width: 32px;
        aspect-ratio: 4/3;
        position: absolute;
    }
    &::before {
        border-top: 3px solid var(--black);
        border-left: 3px solid var(--black);
        top: 4px;
        left: -8px;
    }
    &::after {
        border-bottom: 3px solid var(--black);
        border-right: 3px solid var(--black);
        bottom: 10px;
        right: -8px;
    }
}
.about hr {
    border: none;
    height: 5px;
    background-image: linear-gradient(
        to right, transparent, var(--mainColor) 50%, transparent
    );
}
/* コンセプト文 */
.about p:nth-child(n + 4) {
    width: 80%;
    margin-inline: auto;
    padding: 12px 0;
}
.bold {
    background-image: linear-gradient(transparent 50%, var(--subColor) 50%);
}
/* お悩み ======================*/
/* チェックボックス */
.worriesWoman {
    background: url(../images/worrieswoman.png) no-repeat bottom center/cover;
    width: min(640px, 85%);
    aspect-ratio: 16/9;
    margin-left: auto;
    translate: 0 -60%;
    @media (760px < width) {
        translate: 10% -40%;
    }
}
.worries ul {
    margin: 12px 0 12px 40px;
    li {
        border-bottom: 2px solid var(--mainColor);
        background-color: var(--white);
        width: fit-content;
        margin: 12px 0;
        padding: 8px;
        position: relative;
        &::before, &::after {
            content: "";
            display: block;
            border: 3px solid var(--mainColor);
            position: absolute;
            top: 50%;
            translate: 0 -50%;
        }
        &::before {
            width: 32px;
            aspect-ratio: 1/1;
            border-radius: 50%;
            left: -40px;
        }
        &::after {
            width: 8px;
            aspect-ratio: 9/16;
            border-top: none;
            border-left: none;
            rotate: 45deg;
            left: -30px;
        }
    }
}
/* お悩み下の文 */
.worriesText {
    border-bottom: 2px solid var(--mainColor);
    background-color: var(--white);
    padding: .3em .5em;
    margin-top: 3em;
    width: fit-content;
    position: relative;
    &::before {
        background-color: var(--mainColor);
        content: "";
        display: inline-block;
        position: absolute;
        width: 18px;
        aspect-ratio: 1/1;
        clip-path: polygon(
            0 0, 5% 0, 100% 45%, 100% 55%, 5% 100%, 0 100%
        );
        rotate: 90deg;
        top: -1.8em;
        left: 10%;
    }
}
/* フォントカラー blue */
.fc-blue {
    color: var(--mainColor);
    font-weight: bold;
}
/* ビックリマーク 装飾 */
.exclamationDeco {
    display: inline-block;
    width: fit-content;
    margin-left: .8em;
    position: relative;
    &::before {
        background-color: var(--mainColor);
        content: "";
        display: inline-block;
        position: absolute;
        width: 18px;
        aspect-ratio: 4/3;
        clip-path: polygon(
            0 0, 5% 0, 100% 45%, 100% 55%, 5% 100%, 0 100%
        );
        rotate: 108deg;
        top: -8px;
        left: 0;
    }
}
/* サービス紹介 ======================*/
.service {
    color: var(--black);
    background-color: var(--white);
    border-right: 8px solid var(--subColor);
    height: fit-content;
    padding: .4rem min(3vw, 2rem);
    position: relative;
}
/* デイサービス */
.dayService {
    position: relative;
    @media (760px < width) {
        padding-bottom: min(8vw, 140px);
    }
    .bgDeco {
        top: 0;
        right: 0;
    }
    .top-h2 span {
        color: var(--white);
        background-color: var(--gray);
        padding: .3em .5em .2em;
    }
    .flex-column {
        gap: 1.2rem;
        margin: 2rem 0;
    }
}
.dayService-gallery {
    position: absolute;
    top: -10%;
    right: 0;
    z-index: -10;
    @media (760px < width) {
        right: 10vw;
    }
}
.dayService-item {
    background-color: #333;
    border: 3px solid #aaa;
    box-shadow: 0 0 2px #333;
    border-radius: 50%;
    width: clamp(80px, 16vw, 120px);
    aspect-ratio: 1/1;
    &:nth-child(1) {
        background: url(../images/syo-gi.jpg) no-repeat center/cover;
        translate: -20% 0;
    }
    &:nth-child(2) {
        background: url(../images/ma-jan.jpg) no-repeat center/cover;
        translate: -70% -40%;
    }
    &:nth-child(3) {
        background: url(../images/osero.jpg) no-repeat center/cover;
        translate: 0 -80%;
    }
}
/* 訪問介護 */
.homeCare {
    position: relative;
    padding-top: clamp(200px, 35vw, 300px);
    .bgDeco {
        top: 50%;
        left: 50%;
        translate: -50% -50%;
    }
    .flex-column {
        gap: 1.2rem;
        margin: 2rem 0 1.2rem;
    }
    .linkBtn {
        translate: 0 -60px;
    }
}
.homeCare-imageA {
    background: url(../images/palmsHeart2.png) no-repeat center/cover;
    box-shadow: inset -6px -6px 6px var(--white);
    border-radius: 12px;
    width: clamp(240px, 35vw, 320px);
    aspect-ratio: 4/3;
    position: absolute;
    top: 0;
    left: 0;
}
.homeCare-imageB {
    background: url(../images/homeCare.jpg) no-repeat center/cover;
    box-shadow: inset 6px 6px 6px var(--white);
    border-radius: 12px;
    width: clamp(160px, 35vw, 240px);
    aspect-ratio: 4/3;
    margin-left: auto;
}
/* 介護タクシー */
.taxi {
    position: relative;
    .bgDeco {
        top: 40%;
        right: 0;
    }
    .flex-column {
        gap: 1.2rem;
        margin: 2rem 0 1.2rem;
    }
    .linkBtn {
        translate: 0 -40px;
    }
}
.taxi-image {
    background: url(../images/taxi.jpg) no-repeat center/cover;
    box-shadow: inset 6px 6px 6px var(--white);
    border-radius: 12px;
    width: clamp(160px, 35vw, 240px);
    aspect-ratio: 4/3;
    margin-left: auto;
}
/* 施設紹介 ==============================*/
.house {
    position: relative;
    :nth-child(1 of .flex) {
        justify-content: left;
        gap: 4rem;
        @media (width < 600px) {
            flex-direction: column;
        }
    }
    :nth-child(2 of .flex) {      /* imgBox */
        margin-top: 3rem;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .bgDeco {
        top: 1rem;
        left: -10%;
    }
    .linkBtn {
        margin-top: 2rem;
    }
}
.introduction .flex-column {
    gap: 1.2rem;
    margin-top: 2rem;
}
/* 施設紹介・写真 */
.mainImg {
    background: url(../images/home1.webp) no-repeat center center/cover;
    width: clamp(240px, 40vw, 480px);
    aspect-ratio: 4/3;
    border-radius: 16px 16px 16px 64px;
}
.subImg {
    width: clamp(160px, 40vw, 240px);
    aspect-ratio: 4/3;
    border-radius: 8px 8px 8px 32px;
}
.imgBox :nth-child(1 of div) .subImg {
    background: url(../images/ryuumai.webp) no-repeat center center/cover;
}
.imgBox :nth-child(2 of div) .subImg {
    background: url(../images/tosio.webp) no-repeat center center/cover;
}
.imgBox :nth-child(3 of div) .subImg {
    background: url(../images/kezouji.webp) no-repeat center center/cover;
}
.imgBox :nth-child(4 of div) .subImg {
    background: url(../images/nishijima.webp) no-repeat center center/cover;
}
/* 写真タグ */
.subImg + span, .subImg + span + span {
    display: inline-block;
    padding: 4px 3px;
    margin-top: 4px;
    color: var(--white);
    background-color: var(--gray);
    border-radius: 5px;
    box-shadow: 1px 1px 2px var(--harfBlack);
}
.homeName {
    padding-top: 1rem;
    line-height: 1.5;
    text-align: center;
    background-color: var(--harfBlack);
    border-bottom: 5px solid var(--mainColor);
}
/* 新着情報 ========================*/
.news {
    position: relative;
    margin-bottom: 5rem;
}
.newsList tr {
    display: inline-block;
    padding: 2rem .5rem .5rem;
    border-bottom: 2px dashed var(--mainColor);
}
.newsList td {
    padding-left: min(5vw, 60px);
}
.newsList th .fz-small {
    display: inline-block;
    padding: 4px 0;
    font-weight: normal;
}
.newsList td .fz-small {
    background-color: var(--gray);
    color: var(--white);
    display: inline-block;
    padding: 4px 18px;
    margin-right: min(5vw, 60px);
    border-radius: 5px;
    font-weight: bold;
}
/* 会社概要=========================== */
.aboutCompany {
    background-color: var(--harfBlack);
    padding-top: 2rem;
    .topContainer {
        position: relative;
        padding-bottom: 2rem;
    }
    .flex {
        gap: 3rem;
    }
}
/* .aboutCompany caption {
    width: fit-content;
    margin-bottom: 1.5rem;
} */
.companyList {
    margin: 2rem 0;
}
.companyList th {
    font-weight: normal;
    padding: 1rem .5rem 1rem 0;
}
.companyList td {
    padding: 1rem 0 1rem 1.5rem;
    border-left: 5px solid var(--white);
}

/* フッター================= */
footer {
    background-color: var(--black);
    color: var(--white);
}
footer small {
    display: block;
    padding: 2rem 0;
    text-align: center;
    text-transform: capitalize;
}