/* ========================================
   ヘッダー共通スタイル
   トモクル / generatepress-child
   ※クラス名は tc- プレフィックスで統一
======================================== */

:root {
    --color-navy:   #1d2088;
    --color-sky:    #4fc3f7;
    --color-yellow: #ffd600;
    --color-white:  #ffffff;
    --color-text:   #333333;
    --header-h:     92px;
    --header-top:   30px;
    --header-offset: 122px;
    --header-h-sm:  60px;
    --transition:   0.3s ease;
}

/* ========================================
   ヘッダー本体
======================================== */
.tc-header {
    position: fixed;
    top: var(--header-top);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    background: #112a8b;
    box-shadow: none;
    transition: height var(--transition), top var(--transition), box-shadow var(--transition);
    height: 92px;
    border-radius: 5px;
}

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

/* ========================================
   グローバルナビ（PC）
======================================== */
.tc-header .global-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.tc-header .nav-list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
    min-width: 0;
}

.tc-header .nav-list li {
    flex-shrink: 0;
}

.tc-header .nav-list li a {
    display: block;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    border-radius: 0;
    transition: opacity var(--transition), background var(--transition);
    white-space: nowrap;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.tc-header .nav-list li a:hover {
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.08);
}

/* ========================================
   右側ボタン（電話・LINE）
======================================== */
.tc-header .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: auto;
}

.tc-header .btn-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 250px;
    min-height: 64px;
    padding: 8px 18px 8px 12px;
    background: #fff4bf;
    color: var(--color-navy);
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.tc-header .btn-tel:hover,
.tc-header .btn-line:hover {
    transform: translateY(-1px);
}

.tc-header .btn-tel:hover {
    background: #ffe98c;
}

.tc-header .btn-tel__icon {
    display: block;
    width: 38px;
    height: auto;
    flex-shrink: 0;
    filter: none;
}

.tc-header .btn-tel__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: clamp(20px, 1.5vw, 30px);
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-navy);
    white-space: nowrap;
    letter-spacing: -0.04em;
}

.tc-header .btn-tel__text small {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-navy);
    text-align: left;
    margin-bottom: 4px;
    letter-spacing: 0;
}

.tc-header .btn-line {
display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    min-height: 64px;
    padding: 8px 12px 8px 10px;
    background: linear-gradient(180deg, #1adf64 0%, #12c756 100%);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(20, 183, 86, 0.18);
    transition: transform var(--transition), box-shadow var(--transition);
}

.tc-header .btn-line__icon {
    display: block;
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.tc-header .btn-line__text {
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-align: left;
    white-space: nowrap;
}

.tc-header .btn-line__text br {
    display: block;
}

/* ========================================
   ロゴ / モバイル専用要素
======================================== */
.tc-header .header-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}

/* ヘッダーロゴ（PC・スマホ共通） */
.tc-header .logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 48px;
}

/* ========================================
   ハンバーガーボタン
======================================== */
.tc-header .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.tc-header .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.tc-header .hamburger.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.tc-header .hamburger.is-open span:nth-child(2) {
    opacity: 0;
}
.tc-header .hamburger.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   スマホナビ
======================================== */
.tc-sp-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 72px 24px 32px;
    overflow-y: auto;
}

/* 閉じるボタン */
.tc-sp-nav__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--color-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.tc-sp-nav__close:hover {
    background: rgba(29, 32, 136, 0.08);
}

.tc-sp-nav.is-open {
    transform: translateX(0);
}

.tc-sp-nav__list {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
}

.tc-sp-nav__list li {
    border-bottom: 1px solid #eee;
}

.tc-sp-nav__list li a {
    display: block;
    padding: 16px 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition);
}

.tc-sp-nav__list li a:hover {
    color: var(--color-sky);
}

.tc-sp-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tc-sp-btn-tel,
.tc-sp-btn-line {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    font-size: 15px;
}

.tc-sp-btn-tel img,
.tc-sp-btn-line img {
    display: block;
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex: 0 0 auto;
}

.tc-sp-btn-tel {
    background: var(--color-navy);
    color: var(--color-white);
}

.tc-sp-btn-line {
    background: #06c755;
    color: var(--color-white);
}

/* オーバーレイ */
.tc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 850;
}

.tc-overlay.is-open {
    display: block;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1179px) {
    .tc-header .global-nav {
        display: none;
    }
    .tc-header .btn-tel,
    .tc-header .btn-line {
        padding: 10px 12px;
    }
}

@media (max-width: 1179px) {
    .tc-header {
        position: fixed;
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        height: 60px;
        box-sizing: border-box;
        border-radius: 0;
        background: #ffffff;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
        z-index: 800;
        overflow-x: clip;
    }
    .tc-header.is-scrolled {
        height: 60px;
        top: 0;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    }
    .tc-header .header-inner {
        padding: 0 0 0 16px;
        gap: 0;
        align-items: center;
        justify-content: space-between;
    }
    .tc-header .header-logo {
        flex: none;
    }
    .tc-header .header-logo {
        display: block;
    }
    .tc-header .header-actions {
        display: none;
    }
    .tc-header .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        width: 60px;
        height: 60px;
        margin-left: auto;
        background: var(--color-navy);
        padding: 10px;
        box-sizing: border-box;
        position: relative;
        right: auto;
        top: auto;
    }
    .tc-header .hamburger span {
        display: block;
        height: 2px;
        background: #ffffff;
        border-radius: 1px;
        margin-bottom: 6px;
    }
    .tc-header .hamburger span:last-child {
        margin-bottom: 0;
    }
    .tc-header .hamburger span:nth-child(1) {
        width: 100%;
    }
    .tc-header .hamburger span:nth-child(2) {
        width: 70%;
    }
    .tc-header .hamburger span:nth-child(3) {
        width: 40%;
    }
    .tc-header .logo-img {
        height: 40px;
    }
}
/*ここまで*/


