/* button */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #111827;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, opacity 0.3s ease;
}

/* =========================================================
   Header Complete Final
   - ロゴを大きく見せる
   - PC/SPバランス調整
   - ハンバーガーは上から降りるメニュー前提
   ========================================================= */

:root {
    --header-h: 96px;
    --header-h-sp: 72px;
}

/* ---------------------------------
   headerかぶり防止
--------------------------------- */
body {
    padding-top: var(--header-h);
}

body {
    padding-bottom: 78px;
}

/* ---------------------------------
   fixed header
--------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--header-h);
    z-index: 9999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    border-bottom-color: rgba(17, 24, 39, 0.06);
}

.header-inner {
    width: min(1240px, calc(100% - 56px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

/* ---------------------------------
   logo
--------------------------------- */
.site-logo {
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.site-logo img {
    display: block;
    width: auto;
    height: 50px;
    max-width: none;
}

/* ---------------------------------
   pc nav
--------------------------------- */
.pc-nav {
    margin-left: auto;
}

.pc-nav-list {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2vw, 40px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.pc-nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #111827;
    letter-spacing: 0.02em;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.pc-nav-list a:not(.header-contact-btn)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.pc-nav-list a:not(.header-contact-btn):hover::after {
    width: 100%;
}

/* ---------------------------------
   contact button
--------------------------------- */
.header-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 9999px;
    background: #0b1730;
    color: #fff !important;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.header-contact-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

/* ---------------------------------
   hamburger
--------------------------------- */
.hamburger {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 9999px;
    background: #fff;
    z-index: 10000;
}

.hamburger span {
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #111827;
    border-radius: 9999px;
    transform: translateX(-50%);
    transition:
        top 0.28s ease,
        transform 0.28s ease,
        opacity 0.2s ease,
        background-color 0.28s ease;
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

.hamburger.is-active {
    background: #111827;
    border-color: #111827;
}

.hamburger.is-active span {
    background: #fff;
}

.hamburger.is-active span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

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

.hamburger.is-active span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ---------------------------------
   sp nav
   上から降りるメニュー
--------------------------------- */
.sp-nav {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: calc(var(--header-h) + 28px) 24px 32px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        transform 0.5s cubic-bezier(.22, 1, .36, 1),
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.sp-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sp-nav-list {
    width: min(100%, 520px);
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;

    opacity: 0;
    transform: translateY(-24px);
    transition:
        opacity 0.35s ease,
        transform 0.45s ease;
}

.sp-nav.open .sp-nav-list {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.12s;
}

.sp-nav-list li {
    width: 100%;
}

.sp-nav-list a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.sp-nav-list a:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    border-color: rgba(17, 24, 39, 0.14);
}

.sp-contact-btn {
    justify-content: center;
    background: #111827 !important;
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12) !important;
}

/* ---------------------------------
   body lock
--------------------------------- */
body.body-lock {
    overflow: hidden;
}

/* ---------------------------------
   tablet
--------------------------------- */
@media (max-width: 991px) {
    .pc-nav {
        display: none;
    }

    .hamburger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-inner {
        width: calc(100% - 32px);
        gap: 20px;
    }

    .site-logo img {
        height: 44px;
    }

    .sp-nav {
        padding-top: calc(var(--header-h) + 20px);
    }
}

/* ---------------------------------
   mobile
--------------------------------- */
@media (max-width: 767px) {
    body {
        padding-top: var(--header-h-sp);
    }

    .site-header {
        height: var(--header-h-sp);
    }

    .header-inner {
        width: calc(100% - 24px);
        gap: 16px;
    }

    .site-logo img {
        height: 38px;
    }

    .sp-nav {
        padding-top: calc(var(--header-h-sp) + 20px);
    }

    .sp-nav-list a {
        min-height: 54px;
        font-size: 14px;
    }
}

/* header end */

/* =========================================
   RowTech Footer Complete
   - 全デバイス中央レイアウト
   - 余白・文字サイズ・ボタン幅調整済み
   - headerと統一感のあるネイビー基調
========================================= */
.site-footer {
    position: relative;
    background: linear-gradient(180deg, #f7fafe 0%, #eef3f9 100%);
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(47, 141, 221, 0.12) 0%, rgba(47, 141, 221, 0) 72%);
    pointer-events: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -140px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(5, 40, 80, 0.08) 0%, rgba(5, 40, 80, 0) 72%);
    pointer-events: none;
}

/* ---------------------------------
   main area
--------------------------------- */
.site-footer__main {
    position: relative;
    z-index: 1;
    padding: 56px 0 44px;
}

.site-footer__inner {
    width: min(1100px, calc(100% - 56px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    text-align: center;
}

/* ---------------------------------
   logo
--------------------------------- */
.site-footer__brand {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.site-footer__logo img {
    display: block;
    width: min(100%, 200px);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    filter: drop-shadow(0 12px 26px rgba(7, 31, 77, 0.08));
}

/* ---------------------------------
   content
--------------------------------- */
.site-footer__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-footer__lead {
    max-width: 980px;
    margin: 0;
    color: #26384e;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.9;
    letter-spacing: 0.02em;
}

/* ---------------------------------
   button
--------------------------------- */
.site-footer__actions {
    width: 100%;
    margin-top: 6px;
    display: flex;
    justify-content: center;
}

.site-footer__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 340px;
    min-height: 58px;
    padding: 0 32px;
    border-radius: 9999px;
    background: #071f4d;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.04em;
    box-shadow: 0 14px 30px rgba(7, 31, 77, 0.16);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        opacity 0.3s ease;
}

.site-footer__btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    background: #0a285f;
    box-shadow: 0 18px 36px rgba(7, 31, 77, 0.2);
}

/* ---------------------------------
   nav
--------------------------------- */
.site-footer__nav {
    width: 100%;
    margin-top: 6px;
}

.site-footer__nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 34px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #1c2a3d;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.25s ease, opacity 0.25s ease;
}

.site-footer__nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.25s ease;
}

.site-footer__nav-list a:hover::after {
    width: 100%;
}

/* ---------------------------------
   bottom
--------------------------------- */
.site-footer__bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-footer__bottom-inner {
    width: min(1100px, calc(100% - 56px));
    margin: 0 auto;
    padding: 16px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer__copy {
    margin: 0;
    color: #617084;
    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.03em;
}

/* ---------------------------------
   mobile fixed nav
--------------------------------- */
.site-footer-mobile-nav {
    display: none;
    position: sticky;
    bottom: 0;
    z-index: 30;
    width: 100%;
    margin: 0;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    list-style: none;
    background: rgba(7, 31, 77, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.site-footer-mobile-nav li {
    min-width: 0;
}

.site-footer-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 58px;
    padding: 6px 8px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.site-footer-mobile-nav a:hover {
    opacity: 1;
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.14);
}

.site-footer-mobile-nav img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer-mobile-nav span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

/* ---------------------------------
   tablet
--------------------------------- */
@media (max-width: 991px) {
    .site-footer__main {
        padding: 48px 0 36px;
    }

    .site-footer__inner {
        width: calc(100% - 32px);
        gap: 22px;
    }

    .site-footer__logo img {
        width: min(100%, 210px);
    }

    .site-footer__lead {
        font-size: 16px;
        line-height: 1.85;
    }

    .site-footer__btn {
        min-width: 300px;
        min-height: 54px;
        padding: 0 28px;
        font-size: 14px;
    }

    .site-footer__nav-list {
        gap: 12px 24px;
    }

    .site-footer__nav-list a {
        font-size: 14px;
    }

    .site-footer__bottom-inner {
        width: calc(100% - 32px);
    }
}

/* ---------------------------------
   mobile
--------------------------------- */
@media (max-width: 767px) {
    .site-footer__main {
        padding: 34px 0 24px;
    }

    .site-footer__inner {
        width: calc(100% - 20px);
        gap: 18px;
    }

    .site-footer__logo img {
        width: min(100%, 160px);
    }

    .site-footer__lead {
        font-size: 14px;
        line-height: 1.8;
        letter-spacing: 0.01em;
    }

    .site-footer__actions {
        margin-top: 2px;
    }

    .site-footer__btn {
        width: 100%;
        max-width: 320px;
        min-width: 0;
        min-height: 50px;
        padding: 0 18px;
        font-size: 14px;
    }

    .site-footer__nav {
        margin-top: 2px;
    }

    .site-footer__nav-list {
        flex-direction: column;
        gap: 12px;
    }

    .site-footer__nav-list a {
        font-size: 14px;
    }

    .site-footer__bottom-inner {
        width: calc(100% - 20px);
        padding: 14px 0 86px;
    }

    .site-footer__copy {
        font-size: 12px;
    }

    .site-footer-mobile-nav {
        display: grid;
    }
}

/* footer end */

/* guidance start */
.n-guidance {
    margin-top: 83px;
}

@media (max-width: 540px) {
    .n-guidance {
        margin-top: 60px;
    }
}

/* 各ページのタイトル出現 */
.page-contents .section_section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 400px;
    background: #041e3a;
    clip-path: polygon(0px 100%, 0% 0%, 100% 0%, 85% 100%);
    transition: 1s;
}

.page-contents .section_section-title {
    position: absolute;
    top: 180px;
    left: 10%;
    color: #fff;
    text-align: center;
}

@media (max-width: 1024px) {

    .page-contents .section_section-bg,
    .page-contents .section_section {
        height: 340px;
    }

    .page-contents .section_section-title {
        top: 157px;
    }
}

@media (max-width: 912px) {
    .page-contents {
        margin-top: 100px;
    }

    .page-contents .section_section-bg,
    .page-contents .section_section {
        height: 280px;
    }

    .page-contents .section_section-title {
        top: 126px;
    }

    .contact-contents {
        margin-top: 80px;
    }
}

@media (max-width: 820px) {
    .page-contents {
        margin-top: 83px;
    }

    .page-contents .section_section-bg,
    .page-contents .section_section {
        height: 240px;
    }

    .contact-contents {
        margin-top: 63px;
    }

    .page-contents .section_section-title {
        top: 110px;
    }
}

@media (max-width: 768px) {
    .page-contents {
        margin-top: 89px;
    }

    .n-guidance {
        margin-top: 83px;
    }

    .page-contents .section_section-bg,
    .page-contents .section_section {
        height: 150px;
    }
}

@media (max-width: 540px) {
    .page-contents {
        margin-top: 76px;
    }

    .contact-contents {
        margin-top: 50px;
    }

    .page-contents .section_section,
    .page-contents .section_section-bg {
        height: 150px;
    }

    .page-contents .section_section-title {
        top: 46px;
    }

    section.page-contents {
        margin-top: 75px;
    }
}

@media (max-width: 430px) {

    .page-contents .section_section,
    .page-contents .section_section-bg {
        height: 130px;
    }

    .page-contents .section_section-title {
        top: 44px;
    }
}

@media (max-width: 412px) {
    .page-contents {
        margin-top: 90px;
    }

    .contact-contents {
        margin-top: 42px;
    }

    .page-contents .section_section,
    .page-contents .section_section-bg {
        height: 100px;
        width: 93%;
        clip-path: polygon(0px 100%, 0% 0%, 100% 0%, 81% 100%);
    }

    .page-contents .section_section {
        position: relative;
    }

    .page-contents .section_section-title {
        top: 30px;
    }
}

/* スマホ用モーダル */
.modal-list {
    display: none;
}

@media (max-width: 1024px) {
    .modal-list {
        display: flex;
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 83px;
        background: #fff;
        border-top: 1px solid var(--line);
        z-index: 5;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .modal-list li {
        width: 20%;
        text-align: center;
        padding: 10px 0;
        color: #333;
    }

    .modal-list li a {
        display: grid;
        gap: 6px;
        justify-items: center;
        align-content: center;
        height: 100%;
    }

    .modal-list li a img {
        height: 40px;
        width: auto;
        margin: 0;
    }

    .modal-list li a span {
        font-size: 12px;
        line-height: 1.1;
    }
}

@media (max-width: 540px) {
    .modal-list {
        height: 63px;
    }

    .modal-list li {
        padding: 8px 0;
    }

    .modal-list li a img {
        height: 23px;
    }

    .modal-list li a span {
        font-size: 11px;
    }
}

@media (max-width: 430px) {
    .modal-list {
        height: 50px;
    }

    .modal-list li a img {
        height: 20px;
    }

    .modal-list li a span {
        font-size: 10px;
    }
}

/* =========================================================
   Link-area（折り返し対応）
   ========================================================= */
section.link-area {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 10px 0;
    align-items: center;
    justify-content: center;
}

section.link-area li {
    display: inline-block;
    padding: 0;
}