/* --------------------------------------
 *	ベーススタイル
 * ------------------------------------ */
:root {
    --header-z: 100;
    --header-h: 80px;
    --white: #fffefc;
    --black: #272520;
    --color--primary: #F20000;
    --color--focus: hsl(80, 100, 32%);
    --color--accent: #406F57;

    --color--border: hsl(120, 7%, 84%);
    --color--bg: #fff;
    --color--bg-accent: #F5F5F5;

    /* フォントサイズ */
    --font-size--base: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);

    /* コンテンツサイズ */
    --size--md: 900px;
    --size--lg: 1200px;
    --size--xl: 1600px;

    /* トランジション */
    --duration: 0.4s;
    --duration--fadeIn: 0.6s;

    /* 余白 */
    --space--gutter: var(--space--6);
}

html {
    overflow-x: clip;
    scrollbar-gutter: stable;
}

html:has(:modal[open]) {
    overflow: hidden;
}

body {
    overflow: inherit;
}

:where(a, button):focus-visible {
    outline: 2px solid var(--color--focus);
}

@property --bar {
    syntax: "<percentage>";
    inherits: true;
    initial-value: 20%;
}

:root {
    --bar-color-primary: var(--color--primary);

    a {
        --bar-color-secondary: transparent;
        --bar: 0%;
    }
}

.menu a {
    background-image: linear-gradient(to right, var(--bar-color-primary) var(--bar), var(--bar-color-secondary) var(--bar));
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: auto 2px;
    transition: --bar 0.2s ease-in;
    line-height: 1.8;
    display: block;
}

@media (any-hover: hover) {
    .menu a:hover {
        --bar: 100%;
    }
}

/* --------------------------------------
 *	汎用コンポーネントクラス
 * ------------------------------------ */
.img-frame {
    overflow: hidden;
}

:where(.img-frame)>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.container {
    padding-inline: var(--space--gutter);
}

.container>* {
    max-width: var(--size--lg);
    margin-inline: auto;
}

.container--lg>* {
    max-width: var(--size--lg);
}

.container--xl>* {
    max-width: var(--size--xl);
}

.switch-columns {
    display: flex;
    flex-wrap: wrap;
}

.switch-columns__side {
    flex-basis: var(--side-width, 240px);
    flex-grow: 1;
}

.switch-columns__main {
    flex-basis: min(100%, var(--main-width, 50%));
    flex-grow: 999999;
}

/* ボタン */
.button {
    color: #fff;
    background-color: var(--color--primary);
    display: flex;
    gap: 0.5em;
    position: relative;
    width: fit-content;
    align-items: center;
    font-size: var(--font-size--xs);
    line-height: 1.4;
    text-decoration: none;
    padding: 0.75em 1.5em;
    border-radius: 8px;
}

@media (any-hover: hover) {
    .button:hover {
        background-color: var(--color--accent);
    }
}


/* --------------------------------------
 *	ヘッダー
 * ------------------------------------ */
.header {
    position: fixed;
    height: var(--header-h, auto);
    width: 100%;
    top: 0;
    left: 0;
    padding-block: var(--space--4);
    z-index: var(--header-z);
    background-color: color-mix(in srgb, var(--color--bg) 50%, transparent);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: inset 0 -1px 0 rgb(255 255 255 / 0.1);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.site-logo img {
    height: 100%;
}

.site-logo>a {
    text-decoration: none;
    color: inherit;
    background-image: none;
}

.menu {
    font-size: var(--font-size--sm);
}

.menu__list {
    display: flex;
    justify-content: center;
    gap: var(--space--8);
}

.menu__item {
    list-style: none;
}

.menu__item a {
    text-decoration: none;
    color: var(--color--text);
}

@media (max-width: 599px) {
    .menu {
        display: none;
    }
}

/* --------------------------------------
 *	ナビゲーションモーダル
 * ------------------------------------ */
.nav-dialog {
    border: none;
    padding: 0;
    margin: 0;
    max-width: unset;
    max-height: unset;
    overflow: unset;
    background: none;

    width: 100%;
    height: 100%;

    color: var(--color--accent);

    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);

    opacity: 0;
    transition: opacity var(--duration), var(--duration);
}

.nav-dialog[data-open] {
    opacity: 1;
}

.nav-dialog::backdrop {
    background-color: transparent;
}

.nav-dialog__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nav-dialog__head {
    display: flex;
    flex-shrink: 0;

    width: 100%;
    height: var(--header-h, auto);
    padding-block: var(--space--4);
}

.nav-dialog__body {
    flex: 1;
    overflow: auto;
    overscroll-behavior: contain;

    display: grid;
    align-content: center;
}

/* ナビゲーション */
.site-nav__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.site-nav__item {
    opacity: 0;
    transform: translateY(2em);
    transition: transform var(--duration), opacity var(--duration);
}

.nav-dialog[data-open] .site-nav__item {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.site-nav__item>a {
    color: inherit;
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;

    display: inline-flex;
    padding: 0.25em 0.5em;
    border-radius: 2px;
    transition-duration: var(--duration);
    transition-property: color, scale;
}

@media (any-hover: hover) {
    .site-nav__item>a:hover {
        color: var(--color--focus);
        scale: 1.05;
    }
}

/* サイトナビゲーション用トグルボタン */
.menu-btn {
    font: inherit;
    width: auto;
    height: auto;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;

    border-radius: 4px;
    padding: 0.5rem;
    transition: opacity var(--duration);
}

.menu-btn--open {
    opacity: 1;
}

.nav-dialog[data-open]+.header .menu-btn--open {
    opacity: 0;
    pointer-events: none;
}

.menu-btn--close {
    opacity: 0;
    margin-inline-start: auto;
}

.nav-dialog[data-open] .menu-btn--close {
    opacity: 1;
}

/* ハンバーガーアイコン */
.menu-icon {
    width: 1.5em;
    height: 1.5em;
    display: grid;
    align-content: center;
    gap: 0.375em;
    transition: gap var(--duration);
}

.menu-icon>span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
    transition-duration: var(--duration);
    transition-property: transform, opacity;
}

.menu-icon--close>span {
    grid-area: 1/1;
    --rotate: 45deg;
    transition: transform var(--duration);
}

.menu-icon--close>span:first-child {
    transform: rotate(var(--rotate));
}

.menu-icon--close>span:last-child {
    transform: rotate(calc(var(--rotate) * -1));
}

@media (any-hover: hover) {
    .menu-btn--open:hover>.menu-icon {
        gap: 0.25em;
    }

    .menu-btn--close:hover>.menu-icon>span {
        --rotate: 30deg;
    }
}

@media (min-width: 600px) {
    .menu-btn {
        display: none;
    }
}

/* --------------------------------------
 *	セクション共通スタイル
 * ------------------------------------ */
.section {
    padding-block: 6em;
    background-color: var(--color--bg);
}

.section-title {
    display: grid;
    gap: 0.5em;
    margin-bottom: var(--space--16);
}

.section-title__sub {
    font-size: var(--font-size--sm);
    color: var(--color--primary);
    padding: 0.5em 1em;
    border-radius: 33554400px;
    background: #F5F5F5;
    width: max-content;
    margin: auto;
}

.section-title__main {
    color: var(--color--accent);
    text-align: center;
    font-size: clamp(1.5rem, 1.034rem + 2.33vw, 3rem);
    font-weight: 700;
    line-height: 48px;
    word-break: keep-all;
}

.section-title__desc {
    text-align: center;
    font-size: var(--font-size--xs);
}

.section-title__lead {
    color: #4A5565;
    text-align: center;
    font-size: var(--font-size--lg);
    font-weight: 400;
    line-height: 28px;
    /* 87.5% */
}

/* --------------------------------------
 *	カード
 * ------------------------------------ */
.switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    --threshold: 30rem;
}

.switcher>* {
    flex-grow: 1;
    flex-basis: calc((var(--threshold) - 100%) * 9999);
}

.cards {
    display: grid;
    gap: var(--space--4);

    --column-size: 240px;
    grid-template-columns: repeat(auto-fit,
            minmax(min(100%, var(--column-size)), 1fr));
}

.card {
    display: grid;
    grid-row: span 3;
    gap: var(--space--6);
    padding: var(--space--6);
    border-radius: var(--radius--lg);
    background-color: #F5F5F5;
    line-height: 1.4;
}

.card__icon {
    width: 3.5em;
    height: 3.5em;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 12px;
    background-color: #94C58B;
    display: grid;
    place-content: center;
    place-items: center;
}

.card__icon>img {
    width: 1.75em;
    height: 1.75em;
}

.card__title {
    font-weight: 500;
    font-size: var(--font-size--lg);
}

.card__text {
    display: grid;
    font-size: var(--font-size--sm);
    opacity: 0.9;
}

.card__footer {
    display: flex;
    gap: 0.5em;
    padding-top: 0.5em;
    opacity: 0.8em;
    font-size: var(--font-size--xs);
    line-height: 1;
}

.card__arrow {
    transition: translate var(--duration);
}

/* --------------------------------------
 *	CTA
 * ------------------------------------ */
.section-cta {
    background: #F1F4F3;
}

.section-cta__btn {
    margin: auto;
    font-size: var(--font-size--md);
}

.section-cta__content {
    display: grid;
    width: max-content;
    margin: auto;
    text-align: center;
}

.section-cta__tel {
    color: var(--black);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-decoration: none;
    /* 133.333% */
}

/* --------------------------------------
 *	フッター
 * ------------------------------------ */
.footer {
    background: var(--white);
}

.footer__content {
    padding: var(--space--16) 0;
    display: grid;
    gap: var(--space--6);
}

.footer__info {
    text-align: center;
    margin: auto;
}

.footer__info__text {
    font-size: var(--font-size--xs);
}

.footer__menu {
    display: grid;
    gap: var(--space--6);
    margin: auto;
}

.footer__menu__col {
    text-align: center;
}

.footer__menu__title {
    color: var(--color--primary);
    font-size: var(--font-size--lg);
    font-weight: 700;
    line-height: 1;
}

.footer__menu__list {
    display: grid;
    gap: var(--space--2);
}

.footer__menu__list li {
    list-style: none;
    line-height: 1;
}

.footer__menu__list a {
    color: inherit;
    text-decoration: none;
    font-size: var(--font-size--xs);
}

.footer__menu__icon {
    display: flex;
    gap: var(--space--2);
    align-items: center;
}

.footer__menu__tel {
    font-size: var(--font-size--md);
    font-weight: 700;
    line-height: 20px;
    /* 142.857% */
}

.footer__bottom {
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    flex-wrap: wrap;
    row-gap: var(--space--4);
    padding-bottom: var(--space--16);
}

.footer__copyright {
    font-size: var(--font-size--xs);
    text-align: center;
}

.footer__bottom__menu {
    display: flex;
    justify-content: center;
    gap: var(--space--4);
    font-size: var(--font-size--xs);
}

.footer__menu__col.menu a {
    width: max-content;
}

.footer__bottom__menu li {
    list-style: none;
}

.footer__bottom__menu a {
    color: inherit;
}

.footer__menu__icon {
    width: 1.875em;
    height: 1.875em;
    margin: 0 auto;
}

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

    .footer__info {
        text-align: left;
        margin: 0;
    }

    .footer__menu {
        grid-template-columns: 300px 1fr;
        margin: 0;
    }

    .footer__menu__col {
        text-align: left;
    }

    .footer__menu__icon~* {
        padding-left: 1.5rem;
    }

    .footer__bottom {
        flex-direction: row;
    }
}

/* --------------------------------------
 *	ユーティリティティクラス
 * ------------------------------------ */
.display-none {
    display: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.delay-100 {
    transition-delay: 0.1s;
    animation-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
    animation-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
    animation-delay: 0.3s;
}

.delay-500 {
    transition-delay: 0.5s;
    animation-delay: 0.5s;
}


.font-size--xs {
    font-size: var(--font-size--xs);
}

.font-size--sm {
    font-size: var(--font-size--sm);
}

.font-size--lg {
    font-size: var(--font-size--lg);
}

.font-size--xl {
    font-size: var(--font-size--xl);
}

.font-size--2xl {
    font-size: var(--font-size--2xl);
}

.mt-4 {
    margin-top: var(--space--4);
}

.mt-6 {
    margin-top: var(--space--6);
}

.mt-8 {
    margin-top: var(--space--8);
}

.mt-16 {
    margin-top: var(--space--16);
}

.clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mask-svg {
    aspect-ratio: 1/1;

    mask-image: var(--mask);
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
}

.pc-only {
    display: none;
}

@media (min-width: 600px) {
    .sp-only {
        display: none;
    }

    .pc-only {
        display: block;
    }
}

/* --------------------------------------
 *	下層ページ
 * ------------------------------------ */
.page-header {
    display: grid;
    overflow: hidden;
    padding-top: var(--header-h);
    height: 400px;
    width: 100%;
}

.page-header>* {
    grid-area: 1/1;
    display: grid;
    gap: var(--space--6);
}

.page-header img {
    width: 100%;
}

.page-header__content {
    place-self: center;
    text-align: center;
}

.page-header__subtitle {
    padding: 0.5em 1em;
    color: var(--color--primary);
    border-radius: 33554400px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    background: rgba(255, 255, 255, 0.10);
}

.page-header__title {
    font-size: clamp(1.75rem, 1.023rem + 3.64vw, 3.75rem);
    font-weight: 700;
    line-height: 1;
    /* 100% */
}