/* ------------------------------
   Reset
------------------------------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #676666;
    line-height: 1.6;
    background: #fff;
    font-size: clamp(1.4rem, 2.5vw, 1.6rem);
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.loaded {
    opacity: 1;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ------------------------------
   基本レイアウト
------------------------------ */
.wrapper {
    width: min(1200px, 92%);
    margin: 0 auto;
}


h2 {
    font-weight: 700;
    line-height: 1.2;
    font-size: clamp(3.0rem, 2.2rem + 2.5vw, 4.5rem)
}

@media (max-width: 767px) {
    h2 {
        font-size: clamp(2.5rem, 5vw, 2.6rem);
    }
}

h3 {
    font-weight: 700;
    font-size: clamp(1.8rem, 1.5rem + 2.5vw, 2.2rem)
}

@media (max-width: 767px) {
    h3 {
        font-size: clamp(1.6rem, 4.5vw, 1.9rem);
    }
}

h4 {
    font-weight: 600;
    font-size: clamp(1.4rem, 2.5vw, 1.5rem)
}


.case-text {
    text-align: center;
}

/* margin Utility */
/* 上下15px・左右0 */
.margin15 {
    margin: 15px 0;
}

/* 下15px・左右0 */
.margin-bt15 {
    margin-bottom: 15px;
}

/* 上下40px・左右0 */
.margin40 {
    margin: 40px 0;
}


/* ---------------------------
  CSS variables
----------------------------- */
:root {
    --offsetMainColor: #38209F;
    --offsetMainHover: #7565bf;
    --offsetKeyColor: #E5AC10;
    --offsetKeyHover: #e1c578;
    --ondeMainColor: #00A5B9;
    --ondeMainHover: #6cc2cb;
    --ondeKeyColor: #FF9300;
    --ondeKeyHover: #ffbf65;
    --subColor: #F0F0F0;
    --fontMainColor: #676666;
    --fontMainHover: #b5b4b4;
    --jaGothicFont: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Meiryo, メイリオ, Osaka, "MS PGothic", arial, helvetica, sans-serif;
}


/* ------------------------------
   Header
------------------------------ */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--fontMainHover);
}

/* 上段 */

.header-top-inner {
    width: min(1200px, 92%);
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    width: 350px;
}

/* 上段（電話・お問い合わせ） */
.pc-nav-top {
    display: flex;
    gap: 14px;
}

.nav-icon {
    width: 26px;
    height: 26px;
    display: block;
}

.nav-tel,
.nav-contact {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #e80000;
    color: #fff;
    padding: 6px 16px;
    border-radius: 999px;
    font-weight: 500;
    text-decoration: none;
}

.nav-tel {
    font-size: 1.8rem;
}

.nav-contact {
    font-size: 1.6rem;
}

.nav-contact:hover,
.nav-tel:hover {
    background: #fc8383;
}



/* 下段（メインナビ） */


.pc-nav-bottom {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0px;
    height: 50px;
}

.pc-nav-bottom a {
    font-size: 1.4rem;
    color: #676666;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding: 0 16px;
}

.pc-nav-bottom a:hover {
    color: var(--fontMainHover);
}

/* ナビ区切り線 */
.pc-nav-bottom a:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: #676666;
}

/* =========================
   SP 下部固定ナビ
========================= */

@media (max-width: 767px) {
    body {
        padding-bottom: 55px;
        /* 下部固定ナビ分 */
    }

    .pc-nav {
        display: none;
    }
}

.sp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55px;
    background: var(--fontMainColor);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--fontMainHover);
    z-index: 1000;
}


.sp-bottom-nav .sp-nav-item {
    flex-direction: column;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 1.2rem;
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sp-nav-item:hover,
.sp-nav-item:active {
    background: var(--fontMainHover);
}

.sp-nav-item img {
    width: 24px;
}

.sp-nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 55px;
    width: 1px;
    background: var(--fontMainHover);
}

section {
    scroll-margin-top: 130px;
}


/* PCで非表示 */
@media (min-width: 768px) {
    .sp-bottom-nav {
        display: none;

    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 9999;
        background: #fff;
    }
}


/* ------------------------------
   ハンバーガーメニュー（SP）
------------------------------ */

.mobile-menu {
    display: none;
    /* 初期状態は非表示 */
    position: fixed;
    bottom: 55px;
    /* 下部固定ナビの上に表示 */
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1001;
    padding: 1rem 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu ul li {
    border-bottom: 1px solid #ddd;
}

.mobile-menu ul li:last-child {
    border-bottom: none;
}

.mobile-menu ul li a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    text-decoration: none;
    color: var(--fontMainColor);
    font-size: 1.6rem;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* hover (PC) + active (モバイルタップ) */
.mobile-menu ul li a:hover,
.mobile-menu ul li a:active {
    background-color: var(--fontMainColor);
    color: #fff;
}


/* ------------------------------
   footer
------------------------------ */
.footer-main {
    background: #676666;
    color: #fff;
    padding: 4rem 4%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-company-info,
.footer-nav {
    text-align: center;
    margin: 0 auto;
}

.footer-logo {
    display: block;
    margin: 0 auto;
    width: 450px;
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
}

.footer-nav ul li {
    position: relative;
    padding: 0 26px;
}

.footer-nav ul li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: #fff;
    opacity: 0.7;
}

.footer-nav ul li a:hover {
    color: var(--fontMainHover);
}


.footer-copy {
    font-size: 1.3rem;
    opacity: .8;
}

/* モバイルベース（縦並び） */

.fotter-youtube {
    background-color: #F0F0F0;
    padding: 2rem 0;
}

.youtube-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 0;
}

.youtube-item {
    text-align: center;
    position: relative;
}

.youtube-link {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.youtube-link img {
    width: 100%;
    /* モバイルで画面幅に合わせる */
    max-width: 300px;
    /* 任意で最大幅指定 */
    display: block;
    border-radius: 4px;
}

/* 再生ボタン */
.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: #fff;
    font-weight: bold;
    text-align: center;

    width: 2.0em;
    /* 四角の幅 */
    height: 1.5em;
    /* 四角の高さ */
    line-height: 1.3em;
    /* 縦中央揃え */
    background-color: rgba(0, 0, 0, 0.6);
    /* 半透明黒背景 */
    border: 1px solid #fff;
    border-radius: 6px;
    pointer-events: none;
}

.youtube-caption {
    font-size: 1.4rem;
    color: #676666;
    margin-top: 0.5rem;
}

/* PC以上（横並びに切り替え） */
@media (min-width: 768px) {
    .youtube-links {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
    }

    .youtube-link img {
        width: 200px;
        /* PCは固定幅 */
    }

    .youtube-play-btn {
        font-size: 3rem;
        /* PCは固定サイズ */
    }
}

.copy {
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* ------------------------------
   SP 〜 モバイルファースト調整
------------------------------ */
@media (max-width: 768px) {

    .item-heade {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 2rem;
        border-top: 1px solid #eee;
    }

    .header-bottom {
        display: none;
    }

    .pc-nav-top {
        display: none;
    }

    .header-logo {
        margin: 0 auto;
    }

    .hamburger {
        display: flex;
    }

    .site-footer {
        text-align: center;
    }

    .footer-nav ul {
        justify-content: center;
    }

    .youtube-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-nav {
        display: none;
        /* ナビを消す */
    }

    .footer-container {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-company-info {
        text-align: center;
    }

}

/* 基本フェードアップ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* 表示されたら */
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* KVタイトル用の特別アニメーション */
.kv-title.fade-up {
    transition: all 1s ease-out;
    transform: translateY(50px);
}

.kv-title.fade-up.is-visible {
    transform: translateY(0);
}