:root {
    --color-ivory: #f7f9fa;
    --color-white: #fff;
    --color-ink: #333;
    --color-line: #dde5e8;
    --page-gutter: 40px;
    --font-h1: 42px;
    --font-h2: 28px;
    --font-h3: 18px;
    --section-space: 48px;
    --section-edge-space: 24px;
    --section-heading-gap: 32px;
    --hero-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff, 0 0 1px #fff;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--color-white);
    color: var(--color-ink);
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-underline-offset: .2em;
}

button,
input,
select,
textarea {
    margin: 0;
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid #71899a;
    outline-offset: 3px;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
figure {
    margin-block: 0;
}

h1,
h2,
h3 {
    color: var(--color-ink);
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-weight: 400;
}

h2 {
    font-size: var(--font-h2);
}

h3 {
    font-size: var(--font-h3);
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    padding: 0;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    width: auto;
    height: auto;
    padding: 12px 16px;
    clip: auto;
    background: var(--color-white);
    color: #496a7e;
    font-weight: 700;
    text-decoration: none;
}

.container {
    width: min(1200px, calc(100% - var(--page-gutter)));
    margin-inline: auto;
}

.narrow-container,
.contact-container {
    width: min(900px, calc(100% - var(--page-gutter)));
    margin-inline: auto;
}

.section-stack {
    display: flex;
    flex-direction: column;
    gap: var(--section-heading-gap);
}

/* ページ内の主要セクション間隔 */
#main-content > .section {
    padding-top: var(--section-space);
    padding-bottom: 0;
}

#main-content > .section:last-child {
    padding-bottom: var(--section-space);
}

/* 本文セクションのスクロール表示演出 */
.js.motion-ready #main-content > .section:not(.contact-section),
.js.motion-ready .policy-content,
.js.motion-ready .sitemap-content,
.js.motion-ready .error-page__inner,
.js.motion-ready .contact-section > .contact-container {
    opacity: 0;
    transition: opacity .9s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
}

.js.motion-ready #main-content > .section.is-revealed:not(.contact-section),
.js.motion-ready .policy-content.is-revealed,
.js.motion-ready .sitemap-content.is-revealed,
.js.motion-ready .error-page__inner.is-revealed,
.js.motion-ready .contact-section > .contact-container.is-revealed {
    opacity: 1;
    will-change: auto;
}

/* MVは位置を動かさずフェードイン */
.js.motion-ready .simple-page-title {
    opacity: 0;
    transition: opacity .9s cubic-bezier(.4, 0, .2, 1);
    will-change: opacity;
}

.js.motion-ready .simple-page-title.is-revealed {
    opacity: 1;
    will-change: auto;
}

.section-label {
    color: #71899a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .14em;
}

.section-heading {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.section-heading--left {
    align-items: flex-start;
    text-align: left;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 14px;
    font-size: var(--font-h2);
    line-height: 1.5;
    letter-spacing: .04em;
    text-align: center;
}

.section-heading h2::after {
    width: 42px;
    height: 2px;
    background: #8da3ae;
    content: "";
}

h2.heading-accent {
    position: relative;
    width: 100%;
    display: block;
    padding: .3em 0 .2em .8em;
    border-bottom: 2px solid rgb(113 137 154 / 65%);
    color: #444;
    font-size: var(--font-h2);
    letter-spacing: .04em;
    text-align: left;
}

h2.heading-accent::before {
    position: absolute;
    top: 0;
    left: .3em;
    width: 12px;
    height: 11px;
    transform: rotate(55deg);
    background: #71899a;
    content: "";
}

h2.heading-accent::after {
    position: absolute;
    top: .6em;
    left: 0;
    width: 8px;
    height: 8px;
    transform: rotate(15deg);
    background: #71899a;
    content: "";
}

.button {
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    border: 1px solid #496a7e;
    border-radius: 4px;
    background: #496a7e;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.button.button--outline-pulse {
    --button-pulse-color: rgb(73 106 126 / 50%);
    --button-pulse-color-clear: rgb(73 106 126 / 0%);
    --button-pulse-size: 1.2em;
    --button-pulse-duration: 1s;

    border-color: #496a7e;
    background: #fff;
    box-shadow: none;
    color: #496a7e;
    font-weight: 700;
    transition: border-color .2s ease, color .2s ease;
}

@keyframes button-pulse {
    0% {
        box-shadow: var(--button-pulse-base-shadow, 0 0 0 0 transparent),
            0 0 0 0 var(--button-pulse-color);
    }

    100% {
        box-shadow: var(--button-pulse-base-shadow, 0 0 0 0 transparent),
            0 0 0 var(--button-pulse-size) var(--button-pulse-color-clear);
    }
}

.site-brand-link {
    --button-pulse-color: rgb(73 106 126 / 35%);
    --button-pulse-color-clear: rgb(73 106 126 / 0%);
    --button-pulse-size: 12px;

    margin: -8px -10px;
    padding: 8px 10px;
    border-radius: 8px;
}

/* 英字の見た目の中心をロゴに合わせる */
.site-brand-link > span {
    position: relative;
    top: 1px;
}

.site-brand-link:focus-visible {
    animation: button-pulse .9s ease;
}

@media (hover: hover) {
    .site-brand-link:hover {
        animation: button-pulse .9s ease;
    }

    .button:hover {
        border-color: #607f91;
        background: #607f91;
        box-shadow: 0 6px 16px rgb(63 78 86 / 16%);
        transform: none;
    }

    .button.button--outline-pulse:hover {
        border-color: #496a7e;
        background: #fff;
        box-shadow: none;
        color: #496a7e;
        animation: button-pulse var(--button-pulse-duration) ease;
    }

}

.button.button--outline-pulse:focus-visible {
    border-color: #496a7e;
    background: #fff;
    box-shadow: none;
    color: #496a7e;
    animation: button-pulse var(--button-pulse-duration) ease;
}

.button.button--outline-pulse:active {
    border-color: #496a7e;
    background: #fff;
    box-shadow: none;
    color: #496a7e;
    transform: none;
}

.button.button--outline-pulse.package-overview__link {
    --button-pulse-color: rgb(73 106 126 / 35%);
    --button-pulse-color-clear: rgb(73 106 126 / 0%);
    --button-pulse-size: 12px;
    --button-pulse-duration: .9s;

    border-color: #9fb1bc;
}

.package-overview__link {
    width: 300px;
    max-width: 100%;
    min-height: 52px;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 8px;
    white-space: nowrap;
}

.package-overview__link-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.package-overview__more {
    margin: 16px 0 0;
    text-align: right;
}

@media (hover: hover) {
    .button.button--outline-pulse.package-overview__link:hover {
        border-color: #8da3ae;
    }
}

@media (max-width: 639.98px) {
    .package-overview__more {
        margin-top: 14px;
    }

    .package-overview__link {
        width: 100%;
    }
}

.mail-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    background: currentColor;
    mask: url("/images/svg/mail.svg?v=1") center / contain no-repeat;
}

.page-hero {
    position: relative;
    height: 436px;
    display: flex;
    overflow: hidden;
    background: #edf1f2;
}

.page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

.js .page-hero__image {
    opacity: 0;
    transition: opacity .36s ease-out;
}

.js .page-hero__image.is-loaded {
    opacity: 1;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 60px));
    min-height: 436px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    margin-inline: auto;
    padding: 58px 72px 58px 0;
}

.page-hero__label {
    width: fit-content;
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 3px;
    background: rgb(64 94 112 / 50%);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .05em;
}

.page-hero h1 {
    color: #555;
    font-size: var(--font-h1);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .06em;
    text-shadow: var(--hero-shadow);
}

.page-hero__lead {
    margin-top: 24px;
    color: #555;
    font-size: 16px;
    font-weight: 600;
    text-shadow: var(--hero-shadow);
}

.page-hero__lead p {
    font-size: 16px;
    line-height: 1.8;
}

.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.definition-table {
    overflow: hidden;
    border: 1px solid #c6d1d5;
}

.definition-table dl {
    display: grid;
    grid-template-columns: 22% minmax(0, 1fr);
}

.definition-table dl + dl {
    border-top: 1px solid var(--color-line);
}

.definition-table dt,
.definition-table dd {
    padding: 14px 24px;
    font-size: 14px;
    line-height: 1.8;
}

.definition-table dt {
    background: #edf1f2;
    font-weight: 500;
}

.definition-table dd {
    margin: 0;
    background: var(--color-white);
}

.simple-page-title {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 100%;
    padding-block: 72px;
    background: #edf2f4;
    text-align: center;
}

.simple-page-title .section-label {
    margin-bottom: 16px;
    color: #496a7e;
    font-size: 13px;
}

.simple-page-title h1 {
    color: #444;
    font-size: 36px;
    line-height: 1.4;
    letter-spacing: .05em;
}

.simple-page-title > p:last-child {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.8;
}

.policy-content,
.sitemap-content {
    width: min(900px, calc(100% - var(--page-gutter)));
    margin-inline: auto;
    padding-block: var(--section-space);
}

@media (min-width: 640px) {
    :root {
        --page-gutter: 60px;
        --font-h1: 48px;
        --section-space: 56px;
        --section-edge-space: 28px;
        --section-heading-gap: 36px;
    }
}

@media (min-width: 960px) {
    :root {
        --section-space: 64px;
        --section-edge-space: 32px;
    }
}

@media (min-width: 640px) and (max-width: 959.98px) {
    .page-hero__inner {
        padding-block: 42px;
    }
}

@media (max-width: 959.98px) {
    .simple-page-title {
        padding-block: 64px;
    }

    .simple-page-title h1 {
        font-size: 32px;
    }
}

@media (max-width: 639.98px) {
    .page-hero {
        height: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        justify-content: stretch;
        background: #f4f7f8;
        isolation: isolate;
    }

    .page-hero > picture {
        display: none;
    }

    .page-hero__inner {
        width: 100%;
        min-height: 0;
        align-items: stretch;
        padding: 32px 20px 34px;
        text-align: left;
    }

    .page-hero__label {
        background: #496a7e;
    }

    .page-hero h1,
    .page-hero__lead {
        width: 100%;
        text-shadow: none;
        text-align: left;
    }

    .page-hero__lead {
        margin-top: 16px;
    }

    .page-hero__lead p {
        line-height: 1.6;
    }

    .page-hero__lead br {
        display: none;
    }

    .page-hero h1 br {
        display: inline;
    }

    .definition-table dl {
        display: block;
    }

    .definition-table dt,
    .definition-table dd {
        width: 100%;
        padding: 8px 16px;
    }

    .definition-table dl + dl dd {
        border-top: 1px solid var(--color-line);
    }

    .simple-page-title {
        padding-block: 48px;
    }

    .simple-page-title .section-label {
        margin-bottom: 14px;
    }

    .simple-page-title h1 {
        font-size: 26px;
        line-height: 1.5;
    }

    .simple-page-title > p:last-child {
        margin-top: 14px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .js .page-hero__image {
        opacity: 1;
    }

    .js.motion-ready #main-content > .section,
    .js.motion-ready .simple-page-title,
    .js.motion-ready .policy-content,
    .js.motion-ready .sitemap-content,
    .js.motion-ready .error-page__inner,
    .js.motion-ready .contact-section > .contact-container {
        opacity: 1;
        transition: none;
        will-change: auto;
    }
}
