/*
Theme Name: Amicable Service Recruitment
Description: アミカブルサービス様の採用サイト用オリジナルテーマ
Author: E Force Tec Corp.
Version: 1.0.0
Text Domain: amicable-recruitment
*/

/* ==========================================================================
   Color Variables (Amicable Service Corporate Colors)
   ========================================================================== */

:root {
    /* --primary-blue: #4aa3df; */
    /* --primary-blue: #2c5aa0; */
    --primary-blue: #171c61;
    /* メインの水色 */
    --secondary-blue: #2e86c1;
    /* 濃い水色 */
    /* --accent-yellow: #f2a006; */
    --accent-yellow: #eff705;
    /* アクセント黄色 */
    --light-blue: #e3f2fd;
    /* 薄い水色 */
    --dark-blue: #1b4f72;
    /* ダークブルー */
    --text-dark: #2c3e50;
    /* テキスト色 */
    --text-light: #7f8c8d;
    /* サブテキスト色 */
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --success: #27ae60;
    /* --warning: #f39c12; */
    --warning: #eff705;
    --danger: #e74c3c;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic Medium', 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    font-weight: 400;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.header__logo img{
    width: auto;
    max-height: 80px;
}

@media screen and (max-width: 768px) {
    .header__logo img {
        max-height: 70px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ==========

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background-color: var(--primary-blue);
    color: white;
    padding: 2rem 0 1rem;
    text-align: center;
}

.footer__content {
    margin-bottom: 1.5rem;
}

.footer__logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

.footer__copy {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer__copy p {
    margin: 0;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.section__title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    position: relative;
}

@media screen and (max-width: 768px) {
    .section__title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-yellow);
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-size: 1rem;
}

.btn--primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn--primary:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
    opacity: 1;
}

.btn--secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn--secondary:hover {
    background-color: var(--primary-blue);
    color: white;
    opacity: 1;
}

.btn--accent {
    background-color: var(--accent-yellow);
    color: var(--primary-blue);
}

.btn--accent:hover {
    background-color: #e6920a;
    transform: translateY(-2px);
    opacity: 1;
}

.btn--large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.btn--small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card__title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card__tag {
    background-color: var(--light-blue);
    color: var(--secondary-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.card__content {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card__link {
    color: var(--accent-yellow);
    font-weight: 600;
    transition: color 0.3s ease;
}

.card__link:hover {
    color: #e6920a;
    opacity: 1;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-error {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.form-success {
    color: var(--success);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   Grid System
   ========================================================================== */

.grid {
    display: grid;
    gap: 2rem;
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

@media (max-width: 768px) {

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* スタッガードアニメーション */
.fade-in-stagger .fade-in:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in-stagger .fade-in:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in-stagger .fade-in:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in-stagger .fade-in:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in-stagger .fade-in:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in-stagger .fade-in:nth-child(6) {
    transition-delay: 0.6s;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mt-4 {
    margin-top: 4rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.pb-3 {
    padding-bottom: 3rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pt-3 {
    padding-top: 3rem;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

.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;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

.wp-block-image {
    margin-bottom: 1rem;
}

.wp-block-quote {
    border-left: 4px solid var(--primary-blue);
    padding-left: 1rem;
    font-style: italic;
    margin: 2rem 0;
}

.wp-block-button .wp-block-button__link {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wp-block-button .wp-block-button__link:hover {
    background-color: var(--secondary-blue);
    transform: translateY(-2px);
}

.editor-styles-wrapper {
    font-family: 'Noto Sans JP', sans-serif;
}

/* ==========================================================================
   Breadcrumb Navigation
   ========================================================================== */

.breadcrumb-wrapper {
    background: linear-gradient(to right, #f8f9fa, #ffffff);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(74, 163, 223, 0.1);
}

.breadcrumb {
    font-size: 0.9rem;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb__item {
    margin: 0;
    color: var(--text-light);
}

.breadcrumb__link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
}

.breadcrumb__link:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.breadcrumb__current {
    font-weight: 600;
    color: var(--text-dark);
}

.breadcrumb__separator {
    color: var(--text-light);
    margin: 0 0.25rem;
    opacity: 0.6;
}

/* ==========================================================================
   Job Card Styles (統一版) - 事務職ピンクカラー対応
   ========================================================================== */

.job-category-badge {
    display: inline-block;
    margin-bottom: 1rem;
}

.category-name {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(74, 163, 223, 0.3);
}

/* 職種別カテゴリバッジ */
.category-name[data-category="事務職"] {
    background: linear-gradient(135deg, #ad1457, #c2185b);
    box-shadow: 0 2px 10px rgba(173, 20, 87, 0.3);
}

.category-name[data-category="職人・技術職"] {
    background: linear-gradient(135deg, #e53935, #c62828);
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.3);
}

.category-name[data-category="営業職"] {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    box-shadow: 0 2px 10px rgba(74, 163, 223, 0.3);
}

.job-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid transparent;
    contain: layout;
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(74, 163, 223, 0.2);
}

/* 事務職カードは通常のホバー効果を維持 */

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.job-card:hover::before {
    opacity: 1;
}

.job-card__header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

/* 事務職は通常のヘッダーデザインを維持 */

.job-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.job-card__title a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-card__title a:hover {
    color: var(--accent-yellow);
}

.job-card__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.job-meta__item {
    background: var(--light-blue);
    color: var(--secondary-blue);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 事務職は通常のメタ情報デザインを維持 */

.job-meta__label {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.8rem;
}

.job-meta__type {
    background: linear-gradient(135deg, var(--accent-yellow), #e6920a);
    color: white;
}

/* 事務職の雇用形態バッジ */
.job-card[data-category="事務職"] .job-meta__type {
    background: linear-gradient(135deg, #ad1457, #c2185b);
    color: white;
    border: none;
}

.job-card__content {
    padding: 1.5rem 2rem;
}

/* 事務職は通常のコンテンツデザインを維持 */

.job-card__excerpt {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* 事務職は通常のテキストカラーを維持 */

.job-card__details {
    display: grid;
    gap: 0.8rem;
}

.job-detail__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #e0e0e0;
}

.job-detail__item:last-child {
    border-bottom: none;
}

.job-detail__label {
    font-weight: 600;
    color: var(--primary-blue);
    min-width: 80px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* 事務職は通常のラベルカラーを維持 */

.job-detail__value {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 事務職は通常のテキストカラーを維持 */

.job-card__footer {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    gap: 1rem;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.5));
}

/* 事務職は通常のフッターデザインを維持 */

.job-card__link,
.job-card__apply {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.job-card__link:hover,
.job-card__apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 事務職のボタンスタイル - 「詳細を見る」ボタンは通常のまま */
/* 「応募する」ボタンのみピンクカラー */
.job-card[data-category="事務職"] .job-card__apply {
    background: linear-gradient(135deg, #ad1457, #c2185b);
    color: white;
    border: 2px solid #ad1457;
}

.job-card[data-category="事務職"] .job-card__apply:hover {
    background: linear-gradient(135deg, #880e4f, #ad1457);
    border-color: #880e4f;
    box-shadow: 0 4px 15px rgba(173, 20, 87, 0.4);
}

/* 職種別カラーバリエーション */
.job-card[data-category="営業職"] .job-card__title a {
    color: #2196f3;
}

.job-card[data-category="営業職"]:hover::before {
    background: linear-gradient(90deg, #2196f3, #03a9f4);
}

/* 職人・技術職のタイトルとトップライン - 赤ベース */
.job-card[data-category="職人・技術職"] .job-card__title a {
    color: #e53935;
    font-weight: 700;
}

.job-card[data-category="職人・技術職"] .job-card__title a:hover {
    color: #c62828;
}

.job-card[data-category="職人・技術職"]:hover::before {
    background: linear-gradient(90deg, #e53935, #c62828, #b71c1c);
}

/* 職人・技術職の雇用形態バッジ */
.job-card[data-category="職人・技術職"] .job-meta__type {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
    border: none;
}

/* 職人・技術職の応募ボタン */
.job-card[data-category="職人・技術職"] .job-card__apply {
    background: linear-gradient(135deg, #e53935, #c62828);
    color: white;
    border: 2px solid #e53935;
}

.job-card[data-category="職人・技術職"] .job-card__apply:hover {
    background: linear-gradient(135deg, #c62828, #b71c1c);
    border-color: #c62828;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

/* 事務職のタイトルとトップライン */
.job-card[data-category="事務職"] .job-card__title a {
    color: #ad1457;
    font-weight: 700;
}

.job-card[data-category="事務職"] .job-card__title a:hover {
    color: #880e4f;
}

.job-card[data-category="事務職"]:hover::before {
    background: linear-gradient(90deg, #ad1457, #c2185b, #e91e63);
}


/* 事務職の装飾要素は削除して控えめに */

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(74, 163, 223, 0.3);
    contain: layout;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-yellow);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 160, 6, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* ==========================================================================
   レスポンシブ対応 - 控えめな事務職ピンクカラー
   ========================================================================== */

@media (max-width: 768px) {
    .job-card[data-category="事務職"] .job-card__header,
    .job-card[data-category="事務職"] .job-card__content,
    .job-card[data-category="事務職"] .job-card__footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .job-card[data-category="事務職"] .job-card__meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .job-card[data-category="事務職"] .job-meta__item {
        align-self: flex-start;
    }

    .job-card[data-category="事務職"] .job-card__footer {
        flex-direction: column;
    }

    .job-card[data-category="事務職"] .job-detail__item {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .job-card[data-category="事務職"] .job-detail__label {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .job-card[data-category="事務職"] .job-card__title {
        font-size: 1.2rem;
    }

    .job-card[data-category="事務職"] .job-card__header {
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .job-card[data-category="事務職"] .job-card__content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .job-card[data-category="事務職"] .job-card__footer {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(74, 163, 223, 0.3);
    contain: layout;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-yellow);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(242, 160, 6, 0.4);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
}

/* ==========================================================================
   Focus & Accessibility (統合版)
   ========================================================================== */

/* 統合されたフォーカススタイル */
.header__toggle:focus,
.header-menu a:focus,
.breadcrumb__link:focus,
.job-card__title a:focus,
.job-card__link:focus,
.job-card__apply:focus,
.btn:focus,
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* モバイル専用フォーカススタイル */
@media (max-width: 768px) {
    .header__toggle:focus {
        background: rgba(74, 163, 223, 0.1);
    }

    .header-menu a:focus {
        background-color: var(--light-blue);
        outline-offset: -2px;
    }

    .breadcrumb-wrapper {
        padding: 0.75rem 0;
    }

    .breadcrumb__list {
        font-size: 0.85rem;
    }

    .breadcrumb__item {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .job-card__header,
    .job-card__content,
    .job-card__footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .job-card__meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .job-meta__item {
        align-self: flex-start;
    }

    .job-card__footer {
        flex-direction: column;
    }

    .job-detail__item {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }

    .job-detail__label {
        min-width: auto;
    }

    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .back-to-top svg {
        width: 18px;
        height: 18px;
    }

    .footer {
        padding: 1.5rem 0 1rem;
    }

    .footer__logo {
        font-size: 1.5rem;
    }

    .footer__copy {
        font-size: 0.85rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .job-card__title {
        font-size: 1.2rem;
    }

    .job-card__header {
        padding-top: 1.5rem;
        padding-bottom: 0.75rem;
    }

    .job-card__content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .job-card__footer {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .footer {
        padding: 1.25rem 0 0.75rem;
    }

    .footer__logo {
        font-size: 1.3rem;
    }

    .footer__content {
        margin-bottom: 1rem;
    }

    .footer__copy {
        font-size: 0.8rem;
        padding-top: 0.75rem;
    }
}

/* ==========================================================================
   Touch Device Optimization
   ========================================================================== */

@media (pointer: coarse) {

    /* タッチターゲットサイズの確保 */
    .header-menu a,
    .schedule-tab,
    .btn,
    .header__toggle {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }

    .header-menu a,
    .btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* タッチデバイスでのホバー効果無効化 */
    .feature-card:hover,
    .job-card:hover,
    .btn:hover,
    .card:hover {
        transform: none;
    }

    /* タップハイライト色の設定 */
    .header-menu a,
    .btn,
    .job-card__link,
    .job-card__apply {
        -webkit-tap-highlight-color: rgba(74, 163, 223, 0.1);
    }
}

/* ==========================================================================
   よくある質問セクション（シンプル版）
   ========================================================================== */

.faq {
    background: var(--light-gray);
    padding: 100px 0;
}

.faq__content {
    max-width: 800px;
    margin: 0 auto;
}

.faq__list {
    margin-bottom: 3rem;
}

/* FAQ Item */
.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Question Button */
.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.faq-item__question:hover {
    background: var(--light-blue);
}

.faq-item.active .faq-item__question {
    background: var(--primary-blue);
    color: white;
}

/* Plus/Minus Icon */
.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Answer */
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-item__answer {
    max-height: 300px;
    opacity: 1;
}

.faq-answer-content {
    padding: 0 2rem 2rem 2rem;
    border-top: 1px solid #eee;
    transform: translateY(-10px);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-answer-content {
    transform: translateY(0);
}

.faq-answer-content p {
    margin: 1rem 0 0 0;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Contact Card */
.faq__contact {
    text-align: center;
}

.faq-contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.faq-contact-card h4 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.faq-contact-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .faq {
        padding: 80px 0;
    }

    .faq__content {
        margin: 0 1rem;
    }

    .faq-item__question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .faq-contact-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq__content {
        margin: 0;
    }

    .faq-item__question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-answer-content p {
        font-size: 0.9rem;
    }

    .faq-contact-card {
        padding: 1.5rem 1.25rem;
    }

    .faq-contact-card h4 {
        font-size: 1.2rem;
    }
}

/* Accessibility */
.faq-item__question:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .faq-item__answer {
        transition: none;
    }

    .faq-icon {
        transition: none;
    }
}

/* ==========================================================================
   求人へのご応募・お問い合わせセクション
   ========================================================================== */

.contact-application {
    background: linear-gradient(180deg, var(--white) 0%, var(--light-gray) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.contact-application::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(74, 163, 223, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(242, 160, 6, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.contact-application__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto 3rem auto;
    position: relative;
}

/* Contact Method Cards */
.contact-method {
    position: relative;
}

.contact-method__card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.contact-method__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

.contact-method__header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.contact-method__header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.contact-method__content {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contact Buttons */
.contact-method__button {
    margin-bottom: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn--email {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    border: 2px solid var(--primary-blue);
}

.contact-btn--email:hover {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6920a 100%);
    border-color: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(242, 160, 6, 0.3);
}

.contact-btn--phone {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6920a 100%);
    color: white;
    border: 2px solid var(--accent-yellow);
}

.contact-btn--phone:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 163, 223, 0.3);
}

.contact-btn__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-btn__icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
}

/* Message Card */
.contact-application__message {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.message-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(74, 163, 223, 0.1);
    position: relative;
    overflow: hidden;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--accent-yellow) 100%);
}

.message-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-application {
        padding: 80px 0;
    }

    .contact-application__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 0 1rem 2rem 1rem;
    }

    .contact-method__card {
        margin: 0;
    }

    .contact-method__header {
        padding: 1.5rem;
    }

    .contact-method__header h3 {
        font-size: 1.2rem;
    }

    .contact-method__content {
        padding: 2rem 1.5rem;
    }

    .contact-btn {
        min-width: 250px;
        padding: 1.25rem 1.75rem;
        font-size: 1rem;
    }

    .message-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .message-card p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-application__content {
        margin: 0 0 2rem 0;
    }

    .contact-method__header {
        padding: 1.25rem;
    }

    .contact-method__header h3 {
        font-size: 1.1rem;
    }

    .contact-method__content {
        padding: 1.5rem 1.25rem;
    }

    .contact-btn {
        min-width: 220px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .contact-btn__icon {
        order: -1;
    }

    .message-card {
        padding: 1.25rem;
        margin: 0;
    }

    .message-card p {
        font-size: 0.95rem;
    }
}

/* アニメーション効果 */
@keyframes contact-slide-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-method {
    animation: contact-slide-in 0.6s ease-out both;
    animation-delay: calc(var(--contact-index, 0) * 0.2s);
}

.contact-method:nth-child(1) {
    --contact-index: 0;
}

.contact-method:nth-child(2) {
    --contact-index: 1;
}

/* ホバー時のボタンアニメーション */
.contact-btn:hover {
    animation: button-pulse 0.6s ease-in-out;
}

@keyframes button-pulse {

    0%,
    100% {
        transform: translateY(-3px) scale(1);
    }

    50% {
        transform: translateY(-3px) scale(1.02);
    }
}

/* アクセシビリティ対応 */
.contact-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .contact-method {
        animation: none;
    }

    .contact-btn:hover {
        animation: none;
        transform: none;
    }

    .contact-method__card:hover {
        transform: none;
    }
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .contact-method__card {
        border: 2px solid var(--text-dark);
    }

    .contact-btn {
        border: 3px solid var(--text-dark);
    }

    .message-card {
        border: 2px solid var(--text-dark);
    }
}

/* デスクトップ専用の強化 */
@media (min-width: 769px) {

    /* ドロップダウンメニューの3D効果追加 */
    .sub-menu {
        transform-style: preserve-3d;
        perspective: 1000px;
    }

    /* ホバー時の追加効果 */
    .menu-item-has-children:hover .sub-menu,
    .has-dropdown:hover .sub-menu {
        transform: translateY(0) scale(1) translateZ(0) !important;
        box-shadow:
            0 25px 80px rgba(0, 0, 0, 0.3),
            0 10px 40px rgba(0, 0, 0, 0.2),
            0 4px 16px rgba(0, 0, 0, 0.1) !important;
    }
}

/* モバイル時のz-index調整 */
@media (max-width: 768px) {
    .sub-menu {
        position: static !important;
        background: rgba(248, 249, 250, 0.8) !important;
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
        left: -1rem !important;
        min-width: 220px;
        padding: 0.75rem 0;
        margin: 0;
        list-style: none;
        border-radius: 12px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(74, 163, 223, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        max-height: none;
        overflow: visible;
    }

    /* サブメニュー表示状態 - デスクトップ */
    .menu-item-has-children:hover .sub-menu,
    .has-dropdown:hover .sub-menu,
    .menu-item-has-children.dropdown-open .sub-menu,
    .has-dropdown.dropdown-open .sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) scale(1) !important;
    }

    .dropdown-parent {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        padding: 0;
        width: auto;
    }
}

/* ドロップダウンが確実に表示されるための最終手段 */
.menu-item-has-children:hover>.sub-menu,
.has-dropdown:hover>.sub-menu,
.menu-item-has-children.dropdown-open>.sub-menu,
.has-dropdown.dropdown-open>.sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* パフォーマンス最適化 */
.sub-menu {
    contain: layout style paint;
    will-change: transform, opacity, visibility;
}

.menu-item-has-children:hover .sub-menu,
.has-dropdown:hover .sub-menu {
    contain: layout style;
}


/* ==========================================================================
   Reduced Motion & High Contrast
   ========================================================================== */

/* モーション軽減対応 */
@media (prefers-reduced-motion: reduce) {

    .header,
    .header__nav,
    .header__toggle-line,
    .dropdown-arrow,
    .sub-menu,
    .header-menu a {
        transition: none !important;
        animation: none !important;
    }

    .header-menu>li:hover {
        transform: none !important;
    }

    .sub-menu a:hover {
        transform: none !important;
    }

    body.menu-open::before {
        animation: none !important;
        opacity: 1;
    }
}

/* ==========================================================================
   Header & Navigation (統合版)
   ========================================================================== */

/* ナビゲーションメニュー */
.header-menu a {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-menu a:hover {
    border-bottom-color: var(--accent-yellow);
    color: var(--primary-blue);
}

/* モバイル表示時の設定 */
@media (max-width: 768px) {

    /* モバイルメニューリンク */
    .header-menu>li>a,
    .header-menu>li>.dropdown-parent>a {
        display: flex;
        align-items: center;
        padding: 1.25rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        border-bottom: none;
        min-height: 56px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(74, 163, 223, 0.1);
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header-menu>li>a:hover,
    .header-menu>li>.dropdown-parent>a:hover {
        background-color: rgba(74, 163, 223, 0.08);
        color: var(--primary-blue);
        transform: translateX(8px);
    }

    .dropdown-toggle:hover {
        background-color: rgba(74, 163, 223, 0.2);
    }

    /* ドロップダウン矢印のアニメーション（モバイル） */
    .dropdown-arrow {
        font-size: 14px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* スクロール時のヘッダー */
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(74, 163, 223, 0.15);
}

/* ロゴスタイル */
.header__logo {
    position: relative;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.header__logo:hover {
    transform: scale(1.02);
}

.header__logo a {
    color: inherit;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.header__logo a:hover {
    color: var(--accent-yellow);
}

/* ナビゲーションメニュー */

.header-menu li {
    position: relative;
}

/* メインメニューリンク */
.header-menu>li>a,
.header-menu>li>.dropdown-parent>a {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.75rem 0;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block;
}

/* ホバー効果 */
.header-menu>li>a:hover,
.header-menu>li>.dropdown-parent>a:hover {
    color: var(--primary-blue);
    transform: translateY(-1px);
}

/* アクティブ状態のアンダーライン */
.header-menu>li>a::after,
.header-menu>li>.dropdown-parent>a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.header-menu>li:hover>a::after,
.header-menu>li:hover>.dropdown-parent>a::after,
.header-menu>li.current-menu-item>a::after,
.header-menu>li.current-menu-item>.dropdown-parent>a::after {
    width: 100%;
}

/* ドロップダウン親要素 */
.dropdown-parent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

/* ドロップダウンボタン */
.dropdown-toggle {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-blue);
    min-width: 32px;
    min-height: 32px;
}

.dropdown-toggle:hover {
    background-color: rgba(74, 163, 223, 0.1);
    transform: scale(1.1);
}

.dropdown-toggle:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* サブメニュー（ドロップダウン） */
@media screen and (min-width: 769px) {
    .sub-menu {
        position: absolute !important;
        left: -1rem !important;
        background: white !important;
        min-width: 220px;
        padding: 0.75rem 0;
        margin: 0;
        list-style: none;
        border-radius: 12px;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.25),
            0 8px 30px rgba(0, 0, 0, 0.15),
            0 2px 8px rgba(0, 0, 0, 0.08) !important;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(74, 163, 223, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        isolation: isolate;
        will-change: transform, opacity;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

/* サブメニュー表示状態 */
.menu-item-has-children.dropdown-open .sub-menu,
.has-dropdown.dropdown-open .sub-menu,
.menu-item-has-children:hover .sub-menu,
.has-dropdown:hover .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

/* ドロップダウン親要素の相対位置確保 */
.menu-item-has-children,
.has-dropdown {
    position: relative;
}

/* サブメニューアイテム */
.sub-menu li {
    position: relative;
    margin: 0;
}

.sub-menu a {
    position: relative;
    display: block;
    padding: 0.875rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
}

.sub-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-yellow));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sub-menu a:hover {
    background-color: rgba(74, 163, 223, 0.08);
    color: var(--primary-blue);
    transform: translateX(8px);
    border-left-color: var(--primary-blue);
}

.sub-menu a:hover::before {
    width: 3px;
}

/* ハンバーガーメニューボタン */
.header__toggle {
    position: relative;
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__toggle:hover {
    background-color: rgba(74, 163, 223, 0.1);
    transform: scale(1.05);
}

.header__toggle-line {
    display: block;
    height: 2px;
    width: 20px;
    background-color: var(--primary-blue);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    border-radius: 1px;
}

/* ハンバーガーメニューアニメーション */
.header__toggle.active {
    background-color: rgba(74, 163, 223, 0.15);
}

.header__toggle.active .header__toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__toggle.active .header__toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header__toggle.active .header__toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Fixed Dropdown Menu - 適切なz-index設定
   ========================================================================== */

/* 基本ヘッダー設定 - 適切なz-index */
.header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 163, 223, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.header__nav {
    position: relative;
}

.header-menu {
    position: relative;
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* デスクトップ用サブメニュー */
@media (min-width: 769px) {
    .sub-menu {
        position: absolute;
        left: -1rem;
        background: white;
        min-width: 220px;
        padding: 0.75rem 0;
        margin: 0;
        list-style: none;
        border-radius: 12px;
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.25),
            0 10px 40px rgba(0, 0, 0, 0.15),
            0 4px 16px rgba(0, 0, 0, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid rgba(74, 163, 223, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        pointer-events: none;
    }

    /* サブメニュー表示状態 */
    .menu-item-has-children:hover .sub-menu,
    .has-dropdown:hover .sub-menu,
    .menu-item-has-children.dropdown-open .sub-menu,
    .has-dropdown.dropdown-open .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    .sub-menu a {
        display: block;
        padding: 0.875rem 1.5rem;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 3px solid transparent;
        border-radius: 0 8px 8px 0;
        white-space: nowrap;
    }

    .sub-menu a:hover {
        background-color: rgba(74, 163, 223, 0.08);
        color: var(--primary-blue);
        transform: translateX(8px);
        border-left-color: var(--primary-blue);
    }
}

/* モバイル用設定 */
@media (max-width: 768px) {
    .header__inner {
        height: 70px;
    }

    .header__logo {
        font-size: 1.4rem;
    }

    .header__nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        overflow-y: auto;
        border-top: 1px solid rgba(74, 163, 223, 0.1);
    }

    .header__nav.active {
        transform: translateX(0);
    }

    .header-menu {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 0;
        height: 100%;
        align-items: stretch;
    }

    .header-menu li {
        border-bottom: 1px solid rgba(74, 163, 223, 0.1);
    }

    .header-menu li:last-child {
        border-bottom: none;
    }

    /* モバイル用サブメニュー - 重要な修正 */
    .sub-menu {
        position: static;
        /* 絶対配置を解除 */
        background: rgba(248, 249, 250, 0.8);
        backdrop-filter: blur(10px);
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
        border: none;
        border-radius: 0;
        opacity: 1;
        /* 常に表示可能 */
        visibility: visible;
        /* 常に表示可能 */
        transform: none;
        /* transformをリセット */
        max-height: 0;
        /* 高さでアニメーション制御 */
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 0;
        margin: 0;
        min-width: auto;
        pointer-events: auto;
    }

    .menu-item-has-children.dropdown-open .sub-menu,
    .has-dropdown.dropdown-open .sub-menu {
        max-height: 400px;
        padding: 0.75rem 0;
    }

    .dropdown-parent {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 1.25rem 0;
    }

    .dropdown-toggle {
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        background-color: rgba(74, 163, 223, 0.1);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sub-menu a {
        padding: 1rem 2rem;
        font-size: 1rem;
        font-weight: 500;
        border-left: none;
        background: transparent;
        border-radius: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .sub-menu a:hover {
        background-color: rgba(74, 163, 223, 0.1);
        color: var(--primary-blue);
        transform: translateX(12px);
    }

    /* ハンバーガーボタン */
    .header__toggle {
        display: flex;
        position: relative;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        min-height: 44px;
        min-width: 44px;
        justify-content: center;
        align-items: center;
        touch-action: manipulation;
        gap: 4px;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .header__toggle-line {
        display: block;
        height: 2px;
        width: 20px;
        background-color: var(--primary-blue);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
        border-radius: 1px;
    }

    /* ハンバーガーメニューアニメーション */
    .header__toggle.active .header__toggle-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .header__toggle.active .header__toggle-line:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .header__toggle.active .header__toggle-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* body固定用CSS */
body.menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* ドロップダウン矢印 */
.dropdown-arrow {
    width: 12px;
    height: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.menu-item-has-children.dropdown-open .dropdown-arrow,
.has-dropdown.dropdown-open .dropdown-arrow {
    transform: rotate(180deg);
}

/* サブメニューのz-index階層を明確化 */
.back-to-top.show {
    z-index: 2;
}

.header {
    position: relative;
    z-index: 100;
}

.header__inner {
    z-index: 101;
}

.header__nav {
    z-index: 102;
}

.header-menu {
    z-index: 103;
}

.dropdown-parent {
    z-index: 104;
}

.dropdown-toggle {
    z-index: 105;
}

.sub-menu {
    z-index: 106;
}

/* サブメニューを最上位に */