:root {
    --header-padding-x: 40px;
}

html {
    overflow-x: clip;
}

body {
    font-family: "LINE Seed JP", sans-serif;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: clip;
    margin: 0;
}

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

.line-seed-jp-regular {
    font-family: "LINE Seed JP", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* ==========================================================================
   全ページ共通：背景・ヘッダー
   ========================================================================== */

.global-diagonal-bg {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.global-diagonal-bg__inner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220vmax;
    height: 220vmax;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.global-diagonal-bg__inner svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.global-diagonal-bg__inner svg path {
    stroke-width: 640;
    opacity: 0.85;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 9999;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 0 40px;
}

.header-logo-area .logo-text {
    color: #111111;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.header-logo-area a {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.header-logo-image {
    display: block;
    width: min(360px, 42vw);
    height: auto;
}

.header-logo-image--light {
    display: none;
}

/* ヒーロー上部：スクロール前は白ロゴ・白文字 */
.header-at-top-light .site-header:not(.is-scrolled) .header-logo-image--default {
    display: none;
}

.header-at-top-light .site-header:not(.is-scrolled) .header-logo-image--light {
    display: block;
}

.header-at-top-light .site-header:not(.is-scrolled) .main-menu-list li a {
    color: #ffffff;
}

.header-at-top-light .site-header:not(.is-scrolled) .main-menu-list li a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.header-at-top-light .site-header:not(.is-scrolled) .hamburger-menu span {
    background-color: #ffffff;
}

.header-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    height: 100%;
}

.global-nav {
    margin: 0 auto;
    height: 100%;
}
.main-menu-list {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
}
.main-menu-list li a {
    color: #111111;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 10px 0;
    transition: color 0.3s;
}
.main-menu-list li.menu-item > a {
    white-space: nowrap;
}
.main-menu-list li a:hover {
    color: #2563eb;
}
.sp-only-arrow { display: none; }

.contact-header-btn {
    background: linear-gradient(135deg, #00b4ed 0%, #2563eb 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 0 36px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 0;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 180, 237, 0.25);
    transition: opacity 0.3s;
}
.contact-header-btn:hover { opacity: 0.9; }
.contact-header-btn i { color: #ffffff; }

.header-btn-area {
    height: 100%;
    display: flex;
    align-items: stretch;
}

.hamburger-menu { display: none; }

.header-nav-brand {
    display: none;
}

/* ==========================================================================
   ヘッダー：スマートフォン（1024px以下）
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .header-inner { padding: 0 20px; }
    .header-logo-image { width: min(250px, 58vw); }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        background: none;
        border: none;
        width: 26px;
        height: 20px;
        cursor: pointer;
        z-index: 10000;
    }
    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 2.5px;
        background-color: #111111;
        transition: all 0.3s;
    }
    .hamburger-menu.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); background-color: #fff; }
    .hamburger-menu.is-active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: #fff; }

    .header-nav-wrapper {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(135deg, #00b4ed 0%, #2563eb 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 40px 40px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .header-nav-wrapper.is-open {
        transform: translateX(0);
    }

    .global-nav { margin: 0; width: 100%; }
    .main-menu-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }
    .main-menu-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }
    .main-menu-list li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #ffffff;
        font-size: 1.15rem;
        padding: 20px 0;
        width: 100%;
    }
    .sp-only-arrow { display: block; font-size: 0.9rem; color: rgba(255,255,255,0.7); }

    .header-btn-area { width: 100%; margin-top: 40px; }
    .contact-header-btn {
        background: #ffffff !important;
        color: #2563eb !important;
        width: 100%;
        height: 55px;
        justify-content: center;
        padding: 0 20px;
        border-radius: 0;
        box-shadow: none;
    }
    .contact-header-btn i { color: #2563eb !important; }

    .header-nav-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 48px;
        text-align: center;
    }

    .header-nav-brand__link {
        display: block;
        margin: 0 auto;
    }

    .header-nav-brand__logo {
        display: block;
        width: min(225px, 65vw);
        height: auto;
        margin: 0 auto;
    }
}

/* ==========================================================================
   全ページ共通：レイアウト・フッター・パンくず
   ========================================================================== */

.site-main {
    position: relative;
    z-index: 3;
    padding: 20px;
}

.breadcrumbs {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumbs__link {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumbs__sep {
    color: #ccc;
}

/* ==========================================================================
   固定ページ共通ヒーロー
   ========================================================================== */
.page-hero {
    --page-hero-max: 1200px;
    --page-hero-gutter: 24px;

    position: relative;
    overflow: hidden;
    padding-top: 12rem;
    padding-bottom: 5rem;
    padding-right: var(--page-hero-gutter);
    padding-left: max(var(--page-hero-gutter), calc((100% - var(--page-hero-max)) / 2 + var(--page-hero-gutter)));
    background-color: #0f2d5c;
    background-image: var(--page-hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: left;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 100, 0.72);
    z-index: 0;
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero__en {
    margin: 0 0 12px;
    font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.2;
    color: #ffffff;
}

.page-hero__ja {
    margin: 0;
    font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #ffffff;
}

.page-hero__breadcrumbs {
    margin: 24px 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.page-hero__breadcrumbs .breadcrumbs__link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.page-hero__breadcrumbs .breadcrumbs__link:hover {
    color: #ffffff;
    opacity: 0.85;
}

.page-hero__breadcrumbs .breadcrumbs__sep {
    color: rgba(255, 255, 255, 0.55);
}

.page-hero--article .page-hero__en {
    margin-bottom: 20px;
}

.page-hero--article .page-hero__breadcrumbs {
    margin: 0 0 20px;
}

.page-hero--article .page-hero__meta {
    display: block;
    margin: 12px 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: monospace;
    letter-spacing: 0.04em;
}

.sub-page.site-main {
    padding: 0;
    max-width: none;
    margin-top: 0;
    background: transparent;
    color: #111111;
}

.sub-page__content {
    padding: 0 var(--header-padding-x, 40px) 120px;
    max-width: 880px;
    margin: 0 auto;
}

@media screen and (max-width: 1024px) {
    .page-hero {
        --page-hero-gutter: 20px;
        padding-top: 112px;
        padding-bottom: 56px;
    }
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
    position: relative;
    z-index: 3;
    margin-top: 0;
    padding: 0;
    background: linear-gradient(135deg, #00b4ed 0%, #2563eb 100%);
    color: #ffffff;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: flex-start;
    gap: 48px 72px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px var(--header-padding-x, 40px) 48px;
    box-sizing: border-box;
}

.site-footer__brand {
    max-width: 520px;
}

.site-footer__logo-link {
    display: inline-block;
    margin-bottom: 20px;
}

.site-footer__logo {
    display: block;
    width: min(250px, 50vw);
    height: auto;
}

.site-footer__company-name {
    margin: 0 0 16px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.site-footer__address {
    margin: 0 0 24px;
    font-style: normal;
    font-size: 0.95rem;
    line-height: 1.9;
    letter-spacing: 0.02em;
}

.site-footer__instagram {
    display: inline-block;
    margin-bottom: 28px;
    line-height: 0;
    transition: opacity 0.3s;
}

.site-footer__instagram:hover {
    opacity: 0.85;
}

.site-footer__instagram img {
    display: block;
    width: 36px;
    height: 36px;
}

.site-footer__copyright {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 0.04em;
}

.site-footer__nav {
    min-width: 200px;
}

.site-footer__menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 40px;
    align-items: start;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    min-width: 160px;
}

.site-footer__menu li {
    margin: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.site-footer__menu li:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.site-footer__menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: opacity 0.3s;
}

.site-footer__menu-text {
    flex: 1;
    min-width: 0;
}

.site-footer__menu-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    opacity: 0.85;
}

.site-footer__menu a:hover {
    opacity: 0.8;
}

@media screen and (max-width: 1024px) {
    .site-footer__inner {
        display: flex;
        flex-direction: column;
        gap: 40px;
        padding: 48px 20px 40px;
    }

    .site-footer__nav {
        order: 1;
        width: 100%;
    }

    .site-footer__brand {
        order: 2;
        max-width: none;
    }

    .site-footer__menu-columns {
        gap: 0 32px;
        width: 100%;
    }

    .site-footer__menu {
        min-width: 0;
    }

    .site-footer__menu li {
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .site-footer__menu a {
        gap: 16px;
        font-size: 0.9rem;
    }
}
