@charset "UTF-8";

/* ========================================
   基本設定
======================================== */
:root {
    --color-navy: #0b2a5b;
    --color-text: #1f2d42;
    --color-muted: #5b6b82;
    --color-blue: #1667d9;
    --color-cyan: #17b3e6;
    --color-green: #35c487;
    --color-bg: #ffffff;
    --color-bg-soft: #f3f8fd;
    --color-border: #dbe5f0;
    --color-error: #d23a3a;
    --gradient: linear-gradient(100deg, #1667d9 0%, #17b3e6 55%, #35c487 100%);
    --header-height: 80px;
    --content-width: 1080px;
    --radius: 12px;
    --shadow: 0 10px 30px rgba(11, 42, 91, 0.08);
}

html {
    color-scheme: light;
    scroll-padding-top: var(--header-height);
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

.is-overlay-open {
    height: 100%;
    overflow: hidden;

}

a {
    color: var(--color-blue);
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    border-bottom: 1px solid var(--color-border);
}

/* 背景を疑似要素に分けて、子のメニューでもbackdrop-filterが効くようにする */
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
}

.header__logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-navy);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.header__logo img {
    width: 48px;
    height: 48px;
}

.header__nav ul {
    display: flex;
    align-items: center;
    gap: 36px;
}

.header__nav a {
    position: relative;
    color: var(--color-navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.header__nav a:not(.header__nav__contact)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.header__nav a:hover {
    opacity: 1;
}

.header__nav a:hover::after {
    transform: scaleX(1);
}

.header__nav__contact {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(22, 103, 217, 0.25);
    transition: box-shadow 0.3s, transform 0.3s;
}

.header__nav__contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(22, 103, 217, 0.3);
}

.ham__button {
    position: relative;
    padding: 10px;
    aspect-ratio: 1;
    display: none;
    flex-direction: column;
    gap: 6px;
    justify-content: center;
    background: transparent;
}

.ham__button span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

.ham__button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.ham__button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.ham__button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   アイキャッチ
======================================== */
main {
    background: url(/img/dotted_bg.svg) 0 0 repeat;
    background-size: 2.5rem;
}

.eyecatch {
    background: #eef6fd;
    position: relative;
}

.eyecatch img {
    width: 100%;
    max-height: calc(700px - var(--header-height));
    object-fit: cover;
    object-position: left bottom;
}

.eyecatch__text {
    font-size: clamp(24px, 5vw, 60px);
    color: var(--color-navy);
    font-weight: 700;
    position: absolute;
    padding: 0 16px;
    left: 3vw;
    top: 30%;
    line-height: 1.3;
}

.eyecatch__text__emphasis {
    background: var(--gradient);
    background-clip: text;
    color: transparent;
    font-size: 1.2em;
}

/* ========================================
   セクション共通
======================================== */
.section {
    padding: 120px 0;
}

.section__inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section__heading {
    margin-bottom: 64px;
    color: var(--color-navy);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
}

.section__heading__en {
    display: block;
    margin-bottom: 8px;
    background: var(--gradient);
    background-clip: text;
    color: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3em;
}

.section__heading::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    margin: 20px auto 0;
    border-radius: 2px;
    background: var(--gradient);
}

.marker-blue {
    background: linear-gradient(transparent 75%, #adcfff 75%, #adcfff 100%);
}

.marker-cyan {
    background: linear-gradient(transparent 75%, #90f2ff 75%, #90f2ff 100%);
}

.marker-green {
    background: linear-gradient(transparent 75%, #99f8cf 75%, #99f8cf 100%);
}

/* スクロールでふわっと表示（JSが動く時のみ） */
.js .fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .fadein.is-active {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .fadein {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .header .ham__button span,
    .header .header__nav {
        transition: none;
    }
}

/* ========================================
   企業理念
======================================== */
.philosophy__lead {
    font-size: 17px;
    letter-spacing: 0.02em;
    line-height: 2.2;
    text-align: center;
}

.philosophy__mission {
    position: relative;
    margin: 56px auto 72px;
    padding: 32px 40px;
    max-width: 860px;
    border-radius: var(--radius);
    background: var(--color-bg-soft);
    color: var(--color-navy);
    font-size: 17px;
    font-weight: 500;
    line-height: 2;
    text-align: center;
}

.philosophy__mission::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--gradient);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
}

.philosophy__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.philosophy__list__item {
    padding: 40px 32px 44px;
    border-top: solid 6px var(--color-blue);
    border-bottom: solid 6px var(--color-blue);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.philosophy__list__item:nth-child(2) {
    transition-delay: 0.15s;
    border-top: solid 6px var(--color-cyan);
    border-bottom: solid 6px var(--color-cyan);
}

.philosophy__list__item:nth-child(3) {
    transition-delay: 0.3s;
    border-top: solid 6px var(--color-green);
    border-bottom: solid 6px var(--color-green);
}

.philosophy__list__item img {
    width: 160px;
    height: 160px;
    margin: 0 auto 24px;
}

.philosophy__list__title {
    margin-bottom: 12px;
    color: var(--color-navy);
    font-size: 20px;
    font-weight: 700;
}

.philosophy__list__item p:last-child {
    color: var(--color-muted);
    font-size: 15px;
    text-align: left;
}

/* ========================================
   事業内容
======================================== */
.business {
    background: var(--color-bg-soft);
}

.business__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}

.business__item+.business__item {
    margin-top: 96px;
}

.business__item:nth-of-type(even) .business__item__img {
    order: 2;
}

.business__item__img img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.business__item__num {
    background: var(--gradient);
    background-clip: text;
    color: transparent;
    font-family: "Montserrat", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 1;
}

.business__item__heading {
    margin: 16px 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-navy);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.6;
}

.business__item__body p:not(.business__item__num) {
    font-size: 15px;
}

/* ========================================
   会社概要
======================================== */
.about__table {
    max-width: 880px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
}

.about__table__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-bottom: 1px solid var(--color-border);
}

.about__table dt,
.about__table dd {
    padding: 24px 28px;
}

.about__table dt {
    position: relative;
    color: var(--color-navy);
    font-weight: 700;
}

.about__table dt::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1px;
    background: var(--gradient);
}

.about__map {
    width: 100%;
    height: 320px;
    margin-top: 16px;
    border-radius: var(--radius);
}

/* ========================================
   お問い合わせ
======================================== */
.contact {
    background: var(--color-bg-soft);
}

.contact__content {
    max-width: 880px;
    margin: 0 auto;
    padding: 64px 72px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.contact__error-summary {
    margin-bottom: 32px;
    padding: 14px 20px;
    border-left: 4px solid var(--color-error);
    background: #fdf1f1;
    color: var(--color-error);
    font-weight: 500;
}

.contact__form__row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 20px 0;
}

.contact__form__row dt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-self: start;
    padding-top: 10px;
    color: var(--color-navy);
    font-weight: 700;
}

.required {
    padding: 2px 10px;
    border-radius: 4px;
    background: var(--color-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
}

.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fafcff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: #a5b1c2;
}

.contact__form input:focus,
.contact__form textarea:focus {
    border-color: var(--color-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 103, 217, 0.15);
}

.contact__form__note {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 13px;
}

.contact__form__count.is-over {
    color: var(--color-error);
    font-weight: 700;
}

.error {
    color: var(--color-error);
    font-size: 14px;
}

/* プライバシーポリシー（スクロールボックス） */
.privacy {
    height: 260px;
    padding: 28px 32px;
    overflow-y: auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-soft);
    font-size: 14px;
    line-height: 1.8;
}

.privacy__policy__heading {
    margin-bottom: 12px;
    color: var(--color-navy);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.privacy__policy dl {
    margin-top: 16px;
}

.privacy__policy dt {
    margin-top: 16px;
    color: var(--color-navy);
    font-weight: 700;
}

.privacy__policy dd ul {
    margin-top: 4px;
}

.privacy__policy dd li::before {
    content: "・";
}

.privacy__policy__date {
    margin-top: 20px;
}

.contact__form__agree {
    margin-top: 28px;
    text-align: center;
}

.contact__form__agree label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.contact__form__agree input {
    width: 20px;
    height: 20px;
    accent-color: var(--color-blue);
}

/* ボタン */
.button {
    display: inline-block;
    width: 100%;
    max-width: 340px;
    padding: 16px 0;
    border-radius: 999px;
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(22, 103, 217, 0.25);
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.button:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(22, 103, 217, 0.32);
}

.button:disabled {
    opacity: 0.35;
    transform: none;
    box-shadow: none;
}

.button--gray {
    background: var(--color-bg-soft);
    color: var(--color-text);
    border: solid 1px var(--color-border);
}

.contact__form__submit {
    display: block;
    margin: 28px auto 0;
}

.contact__recaptcha {
    margin-top: 32px;
    color: var(--color-muted);
    font-size: 12px;
    text-align: center;
}

/* ========================================
   確認・完了画面
======================================== */
.sub {
    min-height: calc(100vh - var(--header-height) - 180px);
    background: var(--color-bg-soft);
}

.step {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-bottom: 48px;
    counter-reset: step;
}

.step li {
    position: relative;
    color: #a5b1c2;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    counter-increment: step;
}

.step li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
    border-radius: 50%;
    background: var(--color-border);
    color: #fff;
    font-family: "Montserrat", sans-serif;
}

.step li+li::after {
    content: "";
    position: absolute;
    top: 20px;
    right: calc(50% + 28px);
    width: 52px;
    height: 2px;
    background: var(--color-border);
}

.step li.is-current {
    color: var(--color-navy);
}

.step li.is-current::before {
    background: var(--gradient);
}

.sub__lead {
    margin-bottom: 24px;
    text-align: center;
}

.confirm__table {
    border-top: 1px solid var(--color-border);
}

.confirm__table .contact__form__row {
    border-bottom: 1px solid var(--color-border);
}

.confirm__table dt {
    padding-top: 0;
}

.confirm__table dd {
    overflow-wrap: anywhere;
}

.confirm__buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.confirm__buttons>* {
    width: calc(50% - 12px);
}

.thanks {
    text-align: center;
}

.thanks__title {
    margin-bottom: 24px;
    color: var(--color-navy);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.8;
}

.thanks .button {
    margin-top: 40px;
}

/* ========================================
   フッター
======================================== */
.footer {
    padding: 0 0 16px;
    border-top: 1px solid var(--color-border);
    background: #fff;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__logo img {
    width: 240px;
}

.footer__copy {
    color: var(--color-muted);
    font-size: 13px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.modal-overlay.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-window {
    width: 90%;
    max-width: 600px;
    background: #FFF;
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-text {
    margin-bottom: 32px;
}

.modal__button__wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

@media (max-width: 767px) {
    :root {
        --header-height: 64px;
        --shadow: 0 10px 15px rgba(11, 42, 91, 0.08);
    }

    body {
        font-size: 15px;
        line-height: 1.9;
        letter-spacing: 0.02em;
    }

    .header__inner,
    .section__inner {
        padding: 0 16px;
    }

    .header__logo a {
        font-size: 18px;
    }

    .header__logo img {
        width: 36px;
        height: 36px;
    }

    .ham__button {
        display: flex;
    }

    .header__nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        width: 100%;
        height: calc(100dvh - var(--header-height));
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(8px);
    }

    .header__nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .header__nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 24px;
    }

    .header__nav li:not(:last-child) a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .header__nav a:not(.header__nav__contact)::after {
        display: none;
    }

    .header__nav__contact {
        display: block;
        margin-top: 20px;
        text-align: center;
    }

    .section {
        padding: 60px 0;
    }

    .section__heading {
        margin-bottom: 32px;
        font-size: 24px;
    }

    .section__heading__en {
        margin-bottom: 0px;
        font-size: 14px;
    }

    .section__heading::after {
        margin: 12px auto 0;
    }

    .philosophy__lead {
        font-size: 15px;
        text-align: left;
    }

    .philosophy__list__item {
        padding: 28px 16px 32px;
    }

    .philosophy__mission {
        padding: 24px 16px;
        text-align: left;
        margin: 40px auto 56px;
    }

    .philosophy__mission br {
        display: none;
    }

    .philosophy__list,
    .business__item,
    .about__table__row,
    .contact__form__row {
        grid-template-columns: 1fr;
    }

    .business__item {
        gap: 16px;
    }

    .business__item+.business__item {
        margin-top: 48px;
    }

    .business__item:nth-of-type(even) .business__item__img {
        order: 0;
    }

    .business__item__heading {
        margin: 12px 0 20px;
    }

    .about__table dt {
        padding: 16px 16px 0;
    }

    .about__table dd {
        padding: 8px 16px 16px;
    }

    .about__table dt::after {
        display: none;
    }

    .contact__error-summary {
        margin: 16px 0;
        padding: 8px 12px;
        font-size: 14px;
    }

    .contact__form__row {
        gap: 8px;
        padding: 10px 0;
    }

    .contact__form__row dt {
        justify-content: flex-start;
        gap: 12px;
        padding: 0;
    }

    .contact__content {
        padding: 24px 16px;
    }

    .privacy {
        padding: 20px 16px;
        margin-top: 16px;
    }

    .confirm__table .contact__form__row {
        gap: 0px;
    }

    .confirm__buttons {
        flex-direction: column-reverse;
        align-items: center;
        margin-top: 24px;
        gap: 16px;
    }

    .confirm__buttons>* {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .contact__form__agree {
        margin-top: 16px;
        font-size: 15px;
    }

    .contact__form__submit {
        margin: 16px auto 0;
    }

    .button {
        padding: 12px 0;
        box-shadow: 0 2px 10px rgba(22, 103, 217, 0.25);
        transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    }

    .sub__lead {
        text-align: left;
        font-size: 15px;
        margin: 8px 0 16px;
        line-height: 1.6;
    }

    .step {
        gap: 64px;
        margin-bottom: 24px;
    }

    .thanks__title {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .thanks__description {
        text-align: left;
    }

    .thanks .button {
        margin-top: 40px;
    }

    .modal-window {
        padding: 32px 24px;
    }

    .modal-text {
        margin-bottom: 24px;
        text-align: left;
    }

    .modal__button__wrapper {
        flex-direction: column-reverse;
        gap: 16px;
    }
}