@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Playball&display=swap');
:root {
    --color-bg: #f5f5f5;
    --color-white: #fefefe;
    --color-text: #333;
    --color-primary: #066bbb;
    --color-muted: #666;
    --color-border: #e5e7eb;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Playball', cursive;
    --lh-base: 1.7;
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 40px;
    --sp-6: 48px;
    --sp-7: 56px;
    --sp-8: 64px;
    --sp-9: 72px;
    --sp-10: 80px;
    --sp-11: 88px;
    --sp-12: 96px;
    --sp-13: 104px;
    --sp-14: 112px;
    --sp-15: 120px;
    --sp-16: 128px;
    --sp-17: 136px;
    --sp-18: 144px;
    --sp-19: 152px;
    --sp-20: 160px;
    --container: 1120px;
    --mq-sp: 480px;
    --mq-tab: 800px;
    --mq-pc: 1120px;
}

html {
    font-family: var(--font-sans);
    box-sizing: border-box;
    font-size: 16px;
    line-height: var(--lh-base);
}

/* スムーススクロール（ブラウザの既定の smooth を有効に） */
html {
    scroll-behavior: smooth;
}

/* 固定ヘッダー分を考慮したアンカーの余白（全 id 要素に適用） */
[id] {
    scroll-margin-top: calc(var(--header-height) + 8px);
}

/* ローディングアニメーション */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.6s;
}

.loading-overlay svg {
    max-width: calc(100% - 40px);
}

/* ローディングをそのままヒーロー化するためのスタイル */
.loading-overlay.loading--hero {
    position: relative; /* フローに戻す */
    top: auto;
    left: auto;
    width: 100%;
    height: 100dvh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    opacity: 1 !important;
    transition: none;
}

/* ヒーロースライダー */
#sec_hero {
    margin-bottom: var(--sp-15);
}
#sec_hero.hero {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    z-index: 0; /* loading--hero は z-index:1 にしているので下レイヤーになる */
}
.hero__slider {
    position: absolute;
    inset: 0;
}
.slider__track {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 800ms ease-in-out;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slide--active {
    opacity: 1;
    z-index: 0;
}

@media (max-width: 640px) {
}

#wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.6s;
    /* prevent content from being hidden under fixed header */
    padding-top: var(--header-height);
}

/* 固定ヘッダー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-primary);
    color: #fff;
    padding: var(--sp-2);
    border-bottom: 1px solid var(--color-border);
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    opacity: 0;
}

.site-title {
    width: fit-content;
    font-weight: bold;
    font-size: 1.2rem;
}
/* ヘッダー内のナビなどの簡易スタイル（必要に応じて調整） */
.site-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-3);
}
.site-header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
}
@media (max-width: 1120px) {
    .container {
        padding: 0 var(--sp-2);
    }
}

h2.title {
    position: relative;
    padding-top: 50px;
    padding-bottom: 50px;
    font-size: 26px;
    text-align: center;
    font-weight: bold;
    margin-bottom: var(--sp-5);
}

h2.title span {
    position: relative;
    z-index: 2;
}

h2.title::before {
    content: attr(data-en);
    font-family: var(--font-serif);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #d9e6f1;
    font-size: 80px;
    font-style: italic;
    z-index: 1;
}

h2.title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%) rotate(30deg);
    width: 1px;
    height: 40px;
    background-color: var(--color-primary);
}

.service,
.about {
    margin-bottom: var(--sp-20);
}

.service__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}

.service__item {
    background-color: var(--c-white);
    padding: var(--sp-4);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.service__image {
    width: 100%;
    height: 320px;
    display: block;
    overflow: hidden;
    margin: 0 auto var(--sp-2);
}

.service__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service__title {
    font-size: 1.5em;
    margin-bottom: var(--sp-1);
}

.service__sentence ul {
    list-style: none;
    padding-left: var(--sp-4);
    margin: 0;
}
.service__sentence ul li::before {
    position: relative;
    top: -0.2em;
    content: '●';
    font-size: 0.6rem;
    color: var(--color-primary);
    display: inline-block;
    width: var(--sp-2);
    margin-left: calc(var(--sp-2) * -1);
}

.service__description {
    margin-bottom: var(--sp-2);
    text-align: center;
}

@media (max-width: 640px) {
    .service__inner {
        max-width: 420px;
        grid-template-columns: 1fr;
        gap: var(--sp-2);
    }

    .service__image {
        height: 240px;
    }
}

@media (max-width: 640px) {
    .hide-sp {
        display: none;
    }
}
@media (min-width: 641px) {
    .hide-pc {
        display: none;
    }
}

.about__table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--color-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.about__table th,
.about__table td {
    border: 1px solid var(--color-border);
    padding: var(--sp-2) var(--sp-3);
    text-align: left;
    vertical-align: top;
    background: rgba(245, 248, 250, 0.7);
    font-size: 1rem;
    color: var(--color-text);
}
.about__table th {
    padding: var(--sp-2) var(--sp-3);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(6, 107, 187, 0.12);
}

@media (max-width: 640px) {
    .about__table th,
    .about__table td {
        font-size: 0.9rem;
    }
}

.about__table tr {
    transition: background 0.3s;
}
.about__table tr:hover {
    background: #eaf6fb;
}
.about__table ul li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--sp-1);
}
.about__table ul li::before {
    content: '●';
    font-size: 0.7rem;
    color: var(--color-primary);
    padding-top: 5px;
}

.contact__frame {
    width: 100%;
    height: 900px;
    border: none;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .contact__frame {
        height: 1180px;
    }
}

.site-footer {
    text-align: center;
    padding: var(--sp-4) 0;
    font-size: 0.9rem;
    background-color: var(--color-primary);
    color: #fff;
    border-top: 1px solid var(--color-border);
    margin-top: var(--sp-10);
}

.site-footer img {
    vertical-align: middle;
    width: 300px;
    margin-bottom: var(--sp-2);
}

#pageTopBtn {
    line-height: 0;
    position: fixed;
    right: 32px;
    bottom: 32px;
    width: 64px;
    height: 64px;
    z-index: 1000;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 2.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s, transform 0.4s cubic-bezier(0.7, 0.3, 0.3, 1), opacity 0.4s;
    /* 右からスライド用 */
    transform: translateX(120px);
    opacity: 0;
}

#pageTopBtn.show {
    transform: translateX(0);
    opacity: 1;
}

#pageTopBtn:hover {
    background: var(--color-muted);
}

#pageTopBtn i {
    pointer-events: none;
    color: #fff;
    display: block;
}

@media (min-width: 641px) {
    .gnav {
        display: none;
    }
}

@media (max-width: 640px) {
    .gnav {
        opacity: 0;
        z-index: 1100;
    }
    .hamburger__label {
        display: block;
        font-size: 0.75rem;
        color: var(--color-primary);
        letter-spacing: 0.08em;
        margin-top: 2px;
        text-align: center;
        transition: color 0.2s;
        pointer-events: none;
    }
    .is-active .hamburger__label {
        color: #fff;
    }
    .hamburger {
        position: fixed;
        top: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        z-index: 1001;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        cursor: pointer;
    }

    .hamburger__icon {
        width: 32px;
        height: 24px;
        position: relative;
        display: block;
    }

    .hamburger__icon span {
        display: block;
        position: absolute;
        height: 4px;
        width: 100%;
        background: var(--color-primary);
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hamburger__icon span:nth-child(1) {
        top: 0;
    }

    .hamburger__icon span:nth-child(2) {
        top: 10px;
    }

    .hamburger__icon span:nth-child(3) {
        top: 20px;
    }

    .hamburger.is-active .hamburger__icon span:nth-child(1) {
        top: 10px;
        background: #fff;
        transform: rotate(45deg);
    }

    .hamburger.is-active .hamburger__icon span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active .hamburger__icon span:nth-child(3) {
        top: 10px;
        background: #fff;
        transform: rotate(-45deg);
    }

    .menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: var(--color-primary);
        transform: translateY(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 80px 24px 24px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
    }

    .menu.is-active {
        transform: translateY(0);
    }

    .menu__item {
        font-size: 1.2rem;
        color: #fff;
        text-decoration: none;
        text-align: center;
        padding: 8px 0;
        transition: color 0.2s;
    }

    .menu__item:last-child {
        border-bottom: none;
    }

    .menu__item:hover {
        color: #eee201;
    }
}
