/* リセットと基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --base: #ffffff;
    --main: #4d4d4d;
    --gray: #f8f8f8;
    --light: #e0e0e0;
    --dark: #9a9a9a;
    --gradient-base: #217dc5;
    --gradient-main: linear-gradient( to bottom,#5e9ee6,#89bbee,#d2f0ff);
    --gradient-sub: linear-gradient(to bottom, #005dc4, #4b8ed2, #ffffff);
    --sky: #abd3e5;
    --orange: #ff6400;
    --green-1: #bfec88;
    --green-2: #7bd0cb;
    --green-3: #a7ebb6;
    --pink: #ef91af;
    --yellow: #ffe880;
  }
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-feature-settings: "palt";
    line-height: 1.8;
    letter-spacing: .05em;
    font-size: .9rem;
    font-weight: 600;
    color: var(--main);
}

img {
    display: block;
    width: 100%;
    height: auto;
}

.up.headings{
    overflow: hidden;
    .target {
        translate: 0 200px;
        opacity: 0;
        transition: all .6s;
    }
     &.activation .target{
        translate: 0 0;
        opacity: 1;
    }
    
}

/*common*/
.flex { display: flex; }
.block {display: block;}
.small {font-size: .7rem;}
.re-1 {
    display: block;
    @media (max-width: 960px) {
        display: none;
    }
}
.re-2 {
    @media (max-width: 400px) {
        display: block;
    }
}
.re-3 {
    @media (max-width: 655px) {
        display: block;
    }
}
.margin-t-3 {
    margin-top: 3rem;
}
.margin-b-3 {
    margin-bottom: 3rem;
}
/* ヘッダー */
.site-header {
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    .logo {
        .flex {
            align-items: center;
        }
    }
}
.logo-icon {
    img {
        width: 90px;
        height: auto;
        @media (max-width: 871px) {
        width: 60px;
    }
    }
}
.logo-text {
    img {
        width: 280px;
        height: auto;
        @media (max-width: 871px) {
        width: 180px;
    }
    }
}
.menu {
    img {
        width: 90px;
        height: auto;
        @media (max-width: 871px) {
        width: 60px;
    }
    }
}

.header-contact {
    list-style-type: none;
    gap: .5rem;
    @media (max-width: 871px) {
        display: none;
    }
}
.header-contact p {
    line-height: 1.4;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style-type: none;
}
.cta-button {
    padding: .5rem 1rem;
    font-size: .9rem;
    text-decoration: none;
    justify-content: center;
    background: var(--base);
    border-radius: 4px;
    transition: all 0.3s;
    min-width: 200px;
    align-items: center;
    gap: .5rem;
    letter-spacing: 1.1px;
    box-shadow: 0 0 3px var(--main);
    img {
        max-width: 35px;
        width: 100%;
        height: auto;
    }
}
.cta-button-primary {
    color: var(--gradient-base);
    &:hover {
        background-color: var(--dark);
        }
}

.cta-button-secondary {
    color: var(--gradient-base);
    &:hover {
        background-color: var(--dark);
        }
}
.hamburger-wrapper {
    display: none;
    @media (max-width: 871px) {
            display: block;
        }
    .hamburger {
        width: 51px;
        height: 51px;
        cursor: pointer;
        display: flex;
        position: relative;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        background: var(--base);
        border: none;
        padding: 7px;
        border-radius: 50%;
        z-index: 1001;
        box-shadow: 0 0 1px var(--gradient-base);
        span {
            width: 80%;
            height: 3px;
            background: var(--gradient-base);
            border-radius: 3px;
            transition: all 0.3s ease;
        }
    }
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}
.menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: var(--base);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding-top: 6rem;
    z-index: 999;
    &.active {
            right: 0;
        }
    ul {
        list-style: none;
        li {
            a {
            display: flex;
            padding: 1.2rem 1.5rem;
            color: var(--main);
            text-decoration: none;
            font-size: .9rem;
            transition: all 0.2s ease;
            word-break: keep-all;
            &:hover {
                background: var(--gray);
                padding-left: 2rem;
                color: var(--gradient-base);
                }
            }
            &.button-wrapper a {
                width: fit-content;
                margin: 3rem auto;
                background: var(--gradient-base);
                padding: 1rem;
                p {
                    color: var(--base);
                    font-size: 1rem;
                    .small {
                        font-size: 1rem;
                    }
                }
            }
        }
    }
    .logo {
        position: absolute;
        top: 1rem;
        left: 1rem;
    }
}
.menu ul li:not(.button-wrapper) {
    border-bottom: 1px solid var(--light);
}

.overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 998;
        &.active {
            opacity: 1;
            visibility: visible;
        }
    }
/* ヒーローセクション */
/* hero */
.hero-section {
    position: relative;
    height: 400vh;
    z-index: -30;
}
.hero-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease
    }
    .hero-bg-1 {
      background: var(--gradient-main);
      opacity: 1;
      z-index: -30;
      img {
        height: 100vh;
        object-fit: cover;
      }
    }
    .hero-bg-2 {
      background: var(--gradient-sub);
      opacity: 0;
      z-index: 2;
    }
    .hero-content-wrapper {
      position: relative;
      z-index: 10;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
    }
    .hero-content {
      position: relative;
      z-index: 10;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      color: var(--base);
      text-align: center;
      padding: 0 20px;
    }
    .text-section {
      position: absolute;
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .text-section-1 {
      opacity: 1;
      transform: translateY(0);
      max-width: 1400px;
      width: 100%;
    }
    .text-section-2 {
      opacity: 0;
      transform: translateY(100px);
      max-width: 1000px;
    }
.hero-title {
    font-size: 3.4rem;
    line-height: 4rem;
    margin-bottom: .5rem;
    color: var(--base);
    text-shadow: 0 0 5px var(--main);
    text-align: left;
    padding: 0 1rem;
    span {
      display: inline-block;
      opacity: 0;
      transform: translateY(20px);
    }
}
.under-hero-section-inner {
    position: relative;
    .hero-title {
    font-size: 3.4rem;
    line-height: 4rem;
    color: var(--base);
    text-shadow: 0 0 5px var(--main);
    text-align: center;
    padding: 0px 1rem;
    position: absolute;
    width: 100%;
    justify-content: center;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    @media (max-width: 780px) {
        font-size: 1.8rem;
        line-height: 2rem;
        }
    }
    img {
        @media (max-width: 1300px) {
        height: 65vh;
        object-fit: cover;
        }
    }
}
.hero-subtitle {
    font-size: 1.4rem;
    text-align: left;
    color: var(--base);
    text-shadow: 0 0 5px var(--main);
    position: relative;
    z-index: 100000;
    letter-spacing: .15rem;
    padding: 0 1rem;
}
    .scroll-indicator {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 11;
      text-align: center;
      color: white;
      opacity: 1;
      transition: opacity 0.3s ease;
      p{
        font-size: 0.9rem;
        margin-bottom: 10px;
        letter-spacing: 2px;
        text-shadow: 0 0 3px var(--main);
      }
    }
    .scroll-indicator.hidden {
      opacity: 0;
    }
    .scroll-arrow {
      width: 30px;
      height: 50px;
      border: 2px solid white;
      border-radius: 20px;
      position: relative;
      margin: 0 auto;
      box-shadow: 0 0 3px var(--main);
      &::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 6px;
        height: 6px;
        background: white;
        border-radius: 50%;
        animation: scroll 2s infinite;
        box-shadow: 0 0 3px var(--main);
      }
    }

    @keyframes scroll {
      0% {
        top: 10px;
        opacity: 1;
      }
      100% {
        top: 30px;
        opacity: 0;
      }
    }
/* cloud */
.cloud-wrapper {
    position: fixed;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    top: 0;
    position: relative;
    &::after {
        content: '';
        display: block;
        position: fixed;
        background: var(--gradient-base);
        background: var(--gradient-main);
        background-size: cover;
        top: 0;
        width: 100%;
        height: 100vh;
        z-index: -30;
    }
}
.cloud {
    position: fixed;
    pointer-events: none;
    will-change: transform;
}

@keyframes floatCloud {
from { 
    transform: translateX(0);
}
to { 
    transform: translateX(calc(100vw + var(--cloud-width)));
}
}
.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: 300px;
    height: 251px;
    img {
        filter: drop-shadow(0px 0px 1px white) blur(.1px);
    }
}
/*illust-animation*/

.image-switcher {
    img.hidden{
            display: none;
    }
}
/*illust-car*/
.car-wrapper {
    position: relative;
    flex-basis: calc(70% - .5rem);
    height: 103.16px;
    @media (max-width: 940px) {
            flex-basis: inherit;
        }
    &::after {
        content: '';
        background: url('/asset/img/road.svg')repeat-x;
        display: block;
        background-size: cover;
        height: 4px;
        position: absolute;
        bottom: 0;
        width: 100%;;
    }
    .car {
        width: 25%;
        height: auto;
        min-width: 220px;
        position: absolute;
        bottom: 2px;
        right: 0;
    }
}
.handle-wrapper {
    flex-basis: calc(30% - .5rem);
    align-items: flex-end;
    .margin-l {
        .handle {
            margin-left: auto;
        }
    }
    .handle {
        width: 60%;
        height: auto;
    }
}
.image-section {
    height: 236px;
    position: relative;
    .up {
        width: 22%;
        margin: 0 auto;
        padding: 1rem;
        max-width: 320px;
        min-width: 280px;
        position: absolute;
        top: 50%;
        left: 50%;
        translate: -50% -50%;
    }
}
.support-wrapper-1 {
    flex-basis: calc(30% - .5rem);
    margin-bottom: -15px;
    .support-1 {
        width: 60%;
        margin: 0 auto;
    }
}
.support-wrapper-2 {
    margin: 3rem 0;
    .support-2 {
        width: 30%;
        max-width: 320px;
        min-width: 280px;
        margin: 0 auto;
        position: relative;
        &::after {
            content: '';
            width: 80px;
            height: 80px;
            border-radius: 100%;
            background: var(--green-1);
            filter: blur(3px);
            top: 50%;
            left: 50%;
            translate: -50% -50%;
        }
    }
}
.heart-wrapper {
    position: relative;
    height: 100px;
    .up {
        width: 15%;
        min-width: 120px;
        position: absolute;
        padding: 1rem;
        left: 50%;
        top: 50%;
        translate: -50% -50%;
    }
}
/* セクション共通 */
.under-wrapper {
    font-size: 16px;
    color: var(--main);
    background: var(--base);
}
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    &.container-1 {
        padding: 3rem 1rem 0;
    }
    &.container-3 {
        padding: 1rem 1rem 0;
    }
    &.container-5 {
        padding: 0 1rem 3rem;
    }
}
.section-2 .section-container {
    padding: 0 1rem;
}
.title-wrapper {
    margin-bottom: 3rem;
    &.flex {
        gap: 1rem;
        align-items: flex-end;
        @media (max-width: 940px) {
            flex-direction: column;
            align-items: normal;
        }
    }
    .title-inner-0 {
        flex-basis: calc(70% - .5rem);
    }
    .title-inner {
        flex-basis: calc(30% - .5rem);
        min-width: 334px;
    }
    p {
        margin-top: .5rem;
    }
}
.container-5 .title-wrapper {
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.4rem;
    color: var(--gradient-base);
    letter-spacing: 1px;
    align-items: center;
    gap: 1rem;
    &.sky {
        color: var(--sky);
    }
    &.pink {
        color: var(--pink);
    }
    &.green-1 {
        color: var(--green-1);
    }
    &.green-3 {
        color: var(--green-3);
    }
    &.yellow {
        color: var(--yellow);
    }
    &.main {
        color: var(--main);
    }
    @media (max-width: 568px) {
        gap: .5rem;
    }
    i {
        width: 120px;
        height: 8px;
        @media (max-width: 568px) {
            width: 20px;
            height: 40px;
        }
        &::after {
            content: '';
            width: 0;
            height: 100%;
            transition: all .5s;
            display: block;
            border-radius: 10px;
            @media (max-width: 568px) {
            border-radius: 4px;
        }
        }
    }
     i.activation{
        &::after {
            width: 100%;
        }
    }
    .blue {
        &::after {
            background-color: var(--gradient-base);
        }
    }
    .sky {
        &::after {
            background-color: var(--sky);
        }
    }
    .pink {
        &::after {
            background-color: var(--pink);
        }
    }
    .green-1 {
        &::after {
            background-color: var(--green-1);
        }
    }
    .green-2 {
        &::after {
            background-color: var(--green-2);
        }
    }
    .green-3 {
        &::after {
            background-color: var(--green-3);
        }
    }
    .yellow {
        &::after {
            background-color: var(--yellow);
        }
    }
    .dark {
        &::after {
            background-color: var(--dark);

        }
    }
}
/*特徴*/
.feature-box {
    gap: 1rem;
    align-items: stretch;
}
.feature-text {
    flex-basis: calc(70% - .5rem);
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
    border-radius: 80px;
    border: solid 1px var(--light);
    p {
        letter-spacing: .04em;
        line-height: 1.6;
    }
}
.feature-images {
    flex-basis: calc(30% - .5rem);
    img {
        border-radius: 4px;
    }
}
/* 医療・福祉の連携セクション */
.cstm-wave {
    line-height: 0;
}
.up-wave {
    margin-bottom: -1px;
}
.down-wave {
    margin-top: -1px;
}
.section-2 {
    background: var(--gray);
}

.service-content {
    gap: 1rem;
    align-items: flex-start;
    @media (max-width: 1266px) {
        flex-direction: column;
}
}
.service-text {
    flex-basis: calc(70% - .5rem);
    @media (max-width: 815px) {
        flex-basis: inherit;
        width: 100%;
    }
}

.service-list {
    list-style: none;
    padding-left: 0;
    flex-direction: column;
    gap: .5rem;
    li {
        font-size: 16px;
        dl {
            gap: .5rem;
            letter-spacing: .5px;
            dt {
                padding: 1rem;
                width: 260px;
                border-radius: 4px 0 0 4px;
                text-align: right;
                color: var(--main);
                @media (max-width: 815px) {
                    width: 100%;
                    text-align: left;
            }
                }
            dd {
                padding: 1rem;
            }
            @media (max-width: 815px) {
                    flex-direction: column;
            }
        }
    }
}
.service-list.sky {
    dt {
        background: var(--sky);
    }
}
.service-list.green {
    dt {
        background: var(--green-1);
    }
}
.list-2 {
    flex-wrap: wrap;
    flex-direction: row;
    gap: .5rem;
    @media (max-width: 815px) {
        flex-direction: column;
    }
    li {
        flex-basis: calc(50% - .25rem);
        padding: 1rem;
        align-items: center;
        gap: 1rem;
        background-color: var(--base);
        border-radius: 4px;
        border: solid 1px var(--light);
    }
}
.water-mark {
    img {
        width: 15px;
    }
}
.service-images {
    gap: .5rem;
    flex-basis: calc(30% - .5rem);
    flex-direction: column;
    img {
        border-radius: 4px;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }
    @media (max-width: 1266px) {
        flex-direction: row;
}
}
.rehabilitation div {
    flex-basis: calc(50% - .25rem);
}
.image-2 {
    flex-direction: row;
    flex-wrap: wrap;
    .image {
        flex-basis: calc(25% - .375rem);
        @media (max-width: 1266px) {
            
            flex-basis: calc(50% - .25rem);
        }
    }
}
.image-placeholder {
    width: 100%;
    height: 200px;
    background-color: #c0c0c0;
}
.content-2 {
    flex-direction: column;
    gap: 3rem;
}
/* 対応エリアセクション */
.area-content {
    ul {
        gap: 1rem;
        list-style: none;
        @media (max-width: 1020px){
            flex-direction: column;
            gap: 3rem;
        }
        a {
            padding: 1rem;
            border-radius: 4px;
            text-decoration: none;
            background: var(--green-3);
            color: var(--main);
            margin-bottom: .5rem;
            justify-content: space-between;
            flex-direction: column;
            border: solid 1px var(--light);
            font-size: 1rem;
            &:hover .arrow-wrapper {
                img {
                    translate: .5rem 0;
                }
            }
            .area-name {
                align-items: flex-end;
                gap: .5rem;
                img {
                    width: 40px;
                    height: auto;
                }
                .name {
                    line-height: 1.1;
                    word-break: keep-all;
                }
            }
            .area-link-wrapper {
                align-items: center;
                gap: .5rem;
                width: 100%;
                .dotted {
                    border-top: dotted 1px var(--main) ;
                    width: 100%;
                    line-height: 0;
                }
                .branch-link {
                    justify-content: end;
                    align-items: center;
                    .detail {
                        min-width: 33px;
                    }
                    .arrow-wrapper {
                        background: var(--main);
                    }
                }
            }
        }
    }
    .map-img {
        background: var(--base);
        border: 1px solid var(--light);
        border-radius: 4px;
        padding: 2rem;
        @media (max-width: 580px) {
            padding: 1rem;
        }
        p {
            line-height: 130%;
            height: calc(1em * 1.3 * 3);
            margin-bottom: .5rem;
            font-size: .9rem;
        }
        img {
            aspect-ratio: 9 / 8;
            object-fit: cover;
        }
    }
}
.site-link {
    text-align: center;
    line-height: 1.4;
    border: solid 1px var(--dark);
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
/*
.area-content {
    gap: 1rem;
    @media(max-width: 920px) {
        flex-direction: column-reverse;
    }
}
.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    flex-basis: calc(37% - .5rem);
    min-width: 500px;
    @media(max-width: 920px) {
        min-width: inherit;
        flex-basis: inherit;
        width: 100%;
    }
    .slider {
        transition: transform 0.5s ease-in-out;
        height: 500px;
        flex-direction: column;
        .slide {
            min-height: 100%;
            height: 100%;
            list-style-type: none;
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                background: var(--green-2);
            }
        }
    }
}
.area-list {
    list-style: none;
    padding-left: 0;
    flex-basis: calc(63% - .5rem);
    .controls {
        margin-bottom: .5rem;
        font-size: 16px;
        dl{
            letter-spacing: .5px;
            align-items: stretch;
            @media(max-width: 480px) {
                flex-direction: column;
            }
            dt {
                            min-width: 130px;
                border-radius: 4px 0 0 4px;
                border: solid 1px var(--main);
                align-items: center;
                justify-content: center;
                @media(max-width: 480px) {
                    border-radius: 4px 4px 0 0;
                }
                a {
                    text-decoration: none;
                    padding: 1rem;
                    display: block;
                    color: var(--main);
                    
                }
                }
            dd {
                padding: 1rem;
                border-radius: 0 4px 4px 0;
                border-top: solid 1px var(--main);
                border-right: solid 1px var(--main);
                border-bottom: solid 1px var(--main);
                width: 100%;
                @media(max-width: 480px) {
                    border-radius: 0 0 4px 4px;
                    border-top: none;
                    border-left: solid 1px var(--main);
                }
            }
        }
    &.active {
        dl {
            dt {
                background: var(--green-3);
                a {
                    color: var(--orange);
                                }
            }
            dd {
                background: var(--green-3);
                            color: var(--orange);
                @media(max-width: 480px) {
                    border-top: none;
                }
            }
        }
    }
    }
}
*/

/* 事業所情報セクション */
.info-section {
    .section-title {
        margin-bottom: 3rem;
    }
}

.info-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    @media (max-width: 880px) {
        flex-direction: column;
        gap: 0;
    }
}

.info-list {
    flex-direction: column;
    gap: .5rem;
    dl.flex {
        gap: 1rem;
        align-items: center;
        @media (max-width: 780px) {
            flex-direction: column;
            align-items: inherit;
        }
    }
    dt {
        color: var(--main);
        font-size: 1rem;
        padding: 1rem;
        border-radius: 4px 0 0 4px;
        background: var(--yellow);
        min-width: 120px;
        @media (max-width: 780px) {
            border-radius: 4px 4px 0 0;
        }
    }
    dt.related-offices,
    dt.about-medical-dx {
        background: none;
        min-width: inherit;
        border-radius: inherit;
        padding: 1rem 1rem .5rem;
        border-bottom: solid 1px var(--light);
        margin-bottom: 1rem;
    }
    dd {
        font-size: 1rem;
        color: var(--main);
    }
    .about-medical-dx-wrapper {
        .flex {
            gap: .5rem;
            margin-bottom: 1rem;
            .dx-number {
                display: flex;
                justify-content: center;
                align-items: center;
                min-width: 30px;
                height: 30px;
                letter-spacing: -2px;
                border-radius: 100%;
                background-color: var(--yellow);
        }
        }
    }
}

.info-exterior {
    flex-basis: 30%;
    min-width: 330px;
    @media (max-width: 880px) {
        width: 100%;
        height: auto;
        flex-basis: 100%;
    }
     @media (max-width: 380px) {
        min-width: inherit;
    }
    img {
        border-radius: 4px;
    }
}
.shop-list {
    list-style-type: none;
    width: fit-content;
    margin: 6rem auto;
    gap: 3rem;
    li {
        a {
            padding: 1rem;
            border-radius: 4px;
            text-decoration: none;
            background: var(--yellow);
            color: var(--main);
            display: block;
            .flex {
                gap: .5rem;
                align-items: center;
            }
            img {
                width: 50px;
                height: auto;
            }
        }
    }
}
.shop-link {
    list-style-type: none;
    gap: 1rem;
    @media (max-width: 730px) {
        flex-direction: column;
    }
    li {
        flex-basis: calc(50% - .25rem);
        a {
            padding: 1rem;
            border-radius: 4px;
            text-decoration: none;
            background: var(--yellow);
            color: var(--main);
            display: block;
            border: solid 1px var(--light);
            font-size: 1rem;
            &:hover .arrow-wrapper {
                img {
                    translate: .5rem 0;
                }
            }
            .branch-name {
                gap: .5rem;
                align-items: normal;
                flex-direction: column;
                justify-content: space-between;
                .branch-name-inner {
                    gap: .5rem;
                    align-items: flex-end;
                    .name {
                        line-height: 1.1;
                        word-break: keep-all;
                    }
                }
                .branch-link-wrapper {
                    width: 100%;
                    gap: .5rem;
                    align-items: center;
                    .dotted {
                        border-top: dotted 1px var(--main) ;
                        width: 100%;
                        line-height: 0;
                    }
                    .arrow-wrapper {
                        img {
                            width: 18px;
                            height: auto;
                        }
                    }
                }
            }
            .branch-link {
                gap: .5rem;
                align-items: center;
                .detail {
                        min-width: 33px;
                    }
            }
            img {
                width: 40px;
                height: auto;
            }
        }
    }
}
/* CTAセクション */
.cta-section {
    border-top: 1px solid var(--gray);
    background: var(--gradient-base);
    padding: 60px 0;
}

.cta-title {
    font-size: 24px;
    text-align: center;
    margin-bottom: 40px;
    color: var(--base);
    line-height: 1.4;
}

/* フッター */
.site-footer {
    padding: 3rem 0 0;
    background: var(--base);
    border-top: solid 1px var(--light);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    @media (max-width: 1100px) {
        flex-direction: column;
    }
}

.footer-info {
    flex-basis: calc(50% - .5rem);
}

.footer-name {
    font-size: .9rem;
    margin-bottom: 10px;
}

.footer-address,
.footer-contact {
    font-size: .9rem;
    color: var(--main);
    margin-bottom: 5px;
}

.footer-links {
    flex-basis: calc(50% - .5rem);
    gap: 1rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    @media (max-width: 1100px) {
        flex-basis: inherit;
        width: 100%;
    }
}

.footer-links a {
    color: var(--main);
    text-decoration: none;
    font-size: .9rem;
    border-bottom: dotted 1px var(--main);
    flex-basis: calc(50% - .5rem);
    word-break: keep-all;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid var(--light);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
}

/* レスポンシブ */

@media (max-width: 768px) {
    .logo-text {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 2rem;
    }
    .hero-subtitle {
        max-width: 640px;
    }
    .service-images {
        flex-direction: column;
    }
    
    .info-map {
        flex: 1;
        width: 100%;
    }
    
    .map-placeholder {
        width: 100%;
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: .5rem;
    }
    
    .service-list li,
    .area-list li {
        font-size: 14px;
    }
}

/* お問い合わせフォーム */
.contact-main {
    padding: 60px 0;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-page-title {
    font-size: 28px;
    
    margin-bottom: 30px;
    color: var(--main);
}

.contact-description {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 50px;
    color: #333;
}

.contact-form {
}

.form-field {
    margin-bottom: 40px;
}

.form-label {
    display: block;
    font-size: 16px;
    color: var(--main);
    margin-bottom: 10px;
}
.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    font-family: inherit;
    line-height: 1.4;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #666;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-area {
    text-align: center;
    margin-top: 50px;
}

.form-submit-button {
    display: inline-block;
    padding: 15px 60px;
    font-size: 16px;
    color: var(--main);
    background-color: #fff;
    border: 2px solid var(--main);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.form-submit-button:hover {
    background-color: var(--main);
}

.form-note {
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

/* フォームメッセージ */
#formMessage {
    margin-bottom: 30px;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* レスポンシブ - フォーム */
@media (max-width: 768px) {
    .contact-page-title {
        font-size: 24px;
    }
    
    .contact-description {
        font-size: 14px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 14px;
    }
    
    .form-submit-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .contact-main {
        padding: 40px 0;
    }
    
    .contact-container {
        padding: 0 15px;
    }
    
    .form-field {
        margin-bottom: 30px;
    }
}


/* 会社概要ページ */
.company-main {
    h1 {
        padding: 3rem 0;
    }
}

.company-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.company-page-title {
    font-size: 28px;
    
    margin-bottom: 50px;
    color: var(--main);
}

.company-section {
    margin-bottom: 3rem;
    padding-bottom: calc(3rem + 15.65px);
    border-bottom: 1px solid #e0e0e0;
    gap: 1rem;
    align-items: flex-start;
    @media (max-width: 780px) {
        flex-direction: column;
    }
}

.company-section:last-child {
    border-bottom: none;
}

.company-section-title {
    font-size: 24px;
    
    margin-bottom: 30px;
    color: var(--main);
}
.margin-b-3 {
    margin-bottom: 3rem;
}
/* 事業所情報グリッド */
.company-info-grid {
    display: grid;
    gap: .5rem;
}

.info-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
    @media (max-width: 1180px){
        grid-template-columns: 1fr;
        gap: .5rem;
    }
}

.info-term {
    font-size: 1rem;
    color: var(--base);
    background: var(--gradient-base);
    padding: 1rem;
    border-radius: 4px 0 0 4px;
    
    letter-spacing: 1.2px;
}

.info-desc {
    font-size: 16px;
    color: var(--main);
    margin-left: 0;
}

/* 理念・方針 */
.philosophy-box {
    margin-bottom: 30px;
    padding: 1rem;
    background-color: #fafafa;
}

.philosophy-title {
    font-size: 18px;
    
    margin-bottom: 15px;
    color: #000;
}

.philosophy-text {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.philosophy-list {
    list-style: none;
    padding-left: 0;
}

.philosophy-list li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    font-size: 16px;
    line-height: 1.4;
}

.philosophy-list li::before {
    content: '・';
    position: absolute;
    left: 0;
}

/* 関連事業所 */
.branch-list {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-direction: column;
    .branch-item {
        padding: 2rem;
        border: 1px solid var(--dark);
        background: var(--gray);
        border-radius: 4px;
        @media (max-width: 540px) {
            padding: 1rem;
        }
        a {
            padding: 1rem;
            border-radius: 4px;
            text-decoration: none;
            background: var(--gradient-base);
            color: var(--base);
            margin-bottom: .5rem;
            justify-content: space-between;
            flex-direction: column;
            border: solid 1px var(--light);
            font-size: 1rem;
            &:hover .arrow-wrapper {
                img {
                    translate: .5rem 0;
                }
            }
            .area-name {
                align-items: flex-end;
                gap: .5rem;
                img {
                    width: 40px;
                    height: auto;
                }
                .name {
                    line-height: 1.1;
                    word-break: keep-all;
                }
            }
            .area-link-wrapper {
                align-items: center;
                gap: .5rem;
                width: 100%;
                margin-top: .5rem;
                .dotted {
                    border-top: dotted 1px var(--base) ;
                    width: 100%;
                    line-height: 0;
                }
                .branch-link {
                    justify-content: end;
                    align-items: center;
                    .detail {
                        min-width: 33px;
                        color: var(--base);
                    }
                    .arrow-wrapper {
                        background: var(--base);
                    }
                }
            }
        }
    }
}
.branch-info {
    display: flex;
    gap: .5rem;
    flex-direction: column;
    dt {
        font-size: 1rem;
        color: var(--main);
        padding: .5rem 1rem;
        border-bottom: solid 1px var(--light)
    }
    dd {
        font-size: 1rem;
        color: var(--main);
        line-height: 1.4;
        padding: 0 1rem;
    }
}

.branch-link {
    color: var(--main);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
    align-items: center;
    gap: .5rem;
    justify-content: flex-end;
    line-height: 0;
}
.arrow-wrapper {
    width: 40px;
    height: 40px;
    background: var(--main);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: .75rem;
    img {
        width: 18px;
        height: auto;
        transition: all .4s;
    }
}

/* アクセス */
.access-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.access-info {
    padding-right: 20px;
}

.access-title {
    font-size: 16px;
    
    margin-bottom: 10px;
    margin-top: 25px;
    color: #000;
}

.access-title:first-child {
    margin-top: 0;
}

.access-info p {
    font-size: 16px;
    line-height: 1.4;
    color: #333;
}

.access-map {
    flex-shrink: 0;
}

/* レスポンシブ - 会社概要 */
@media (max-width: 768px) {
    .company-page-title {
        font-size: 24px;
    }
    
    .company-section-title {
        font-size: 20px;
    }
    
    .info-term {
        font-size: .9rem;
    }
    
    .info-desc {
        font-size: .9rem;
    }
    
    .philosophy-box {
        padding: 20px;
    }
    
    .branch-info {
        dt {
        float: none;
        width: auto;
        margin-bottom: 5px;
        }
        dd {
        margin-left: 0;
        margin-bottom: 15px;
        }
    }
    
    .access-content {
        grid-template-columns: 1fr;
    }
    
    .access-map {
        width: 100%;
    }
    
    .map-placeholder {
        width: 100%;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .company-main {
        padding: 40px 0;
    }
    
    .company-container {
        padding: 0 1rem;
    }
    
    .company-section {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }
    
    .philosophy-list li {
        font-size: 14px;
    }
}

/*プライバシーポリシー*/

.privacy {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}
.privacy-inner > li{
    list-style: none;
    margin-bottom: 1rem;
}
.privacy-inner {
    h3 {
        margin-bottom: .5rem;
        border-bottom: solid 1px var(--main);
        padding-bottom: .25rem;
    }
    p {
        margin-bottom: .5rem;
    }
    ul:not(.privacy-window), ol {
        margin-left: 1.2rem;
        list-style: disc;
        li {
            line-height: 1.6rem;
            ul {
                list-style: decimal;
                li{
                    ul {
                        list-style: disc;
                        margin-bottom: .5rem;
                    }
                }
            }
        }
    }
        ul.privacy-window {
        list-style: none;
        dl {
            gap: .5rem;
            align-items: center;
            margin-bottom: .25rem;
            dt {
            min-width: 61px;
            text-align-last: justify;
            background: var(--light);
            padding: .5rem;
            border-radius: 4px;
        }
        dd {
            word-break: keep-all;
        }
        }
    }
    address {
        font-style: normal;
    }
}

.privacy-consent {
    margin-bottom: 1.5rem;
    text-align: left;
}
.privacy-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.privacy-label input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-label span {
    line-height: 1.6;
}

.privacy-label a {
    color: var(--gradient-base);
    text-decoration: none;
    padding-bottom: .25rem;
    border-bottom: dotted 1px;
    margin-right: .25rem;
}

.privacy-label a:hover {
    color: var(--dark);
}