@charset "UTF-8";
/**
 * テーマ独自のカスタムCSS
 * デザイナー提供のcommon.css等とは別に、開発側で追加するスタイル
 */

/* ==========================================================================
   言語セレクター（ドロップダウン）
   ========================================================================== */

/* PC版 */
header .language-selector {
    position: relative;
}

header .language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    width: 128px;
    z-index: 1000;
}

header .language-selector.is-open .language-dropdown {
    display: block;
}

header .language-dropdown li {
    padding: 0;
}

header .language-dropdown li a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

header .language-dropdown li a:hover {
    background-color: #f5f5f5;
}

header .language-dropdown li.is-current a {
    color: #002D6F;
    font-weight: 700;
}

/* ==========================================================================
   「サン・フレアとはたらく」「特集」ドロップダウン
   ========================================================================== */

header .main-nav li.has-dropdown {
    position: relative;
}

header .main-nav ul.about-dropdown,
header .main-nav ul.special-features-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    width: 224px;
    z-index: 1000;
    white-space: nowrap;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
}

header .main-nav li.has-dropdown.is-open ul.about-dropdown,
header .main-nav li.has-dropdown.is-open ul.special-features-dropdown {
    display: block;
}

header .main-nav ul.about-dropdown li,
header .main-nav ul.special-features-dropdown li {
    padding: 0;
}

header .main-nav ul.about-dropdown li a,
header .main-nav ul.special-features-dropdown li a {
    display: block;
    padding: 8px 16px;
    color: #002D6F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    border-bottom: none;
    padding-bottom: 8px;
}

header .main-nav ul.about-dropdown li a:hover,
header .main-nav ul.special-features-dropdown li a:hover {
    background-color: #f5f5f5;
}

/* SP版 - 横並びボタン形式 */
.language-selector-sp {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-buttons-sp {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.language-buttons-sp .lang-btn {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
    background-color: #f3f4f6;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
    line-height: 1rem;
}

.language-buttons-sp .lang-btn:hover {
    background-color: #e5e7eb;
}

.language-buttons-sp .lang-btn.is-current {
    background-color: #E1EFFE;
    color: #1E429F;
}

/* ==========================================================================
   他の取扱い分野セクション（ショートコード出力）
   ========================================================================== */

.featured-other-section .featured-tags a.tag-item {
    text-decoration: none;
}

/* ==========================================================================
   注目の求人カード（リンクのアンダーライン削除・訪問済み色維持）
   ========================================================================== */

.section-featured-jobs .job-card-link {
    text-decoration: none;
    color: inherit;
}

.section-featured-jobs .job-card-link:visited {
    color: inherit;
}

/* ==========================================================================
   タブレット幅でのレイアウト調整
   ========================================================================== */

@media screen and (min-width: 769px) and (max-width: 1024px) {
    /* ヘッダー */
    header .main-nav a {
        font-size: 12px;
    }

    header .language-selector {
        font-size: 12px;
    }

    /* ヘッダー：PC版要素を非表示、SP版要素を表示 */
    header .header-right.pc-only {
        display: none !important;
    }

    header .sp-header-right.sp-only {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    header .sp-menu {
        display: block !important;
    }

    /* ヘッダー */
    header {
        position: sticky;
        top: 0;
        z-index: 100;
        height: auto;
        padding: 0;
        padding-top: env(safe-area-inset-top);
        background-color: #FFF;
    }

    /* ノッチ部分の背景色を拡張 */
    header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-top);
        background-color: inherit;
        z-index: -1;
    }

    header.header-transparent {
        position: fixed;
        background-color: transparent;
        box-shadow: none;
        padding-top: env(safe-area-inset-top);
        transition: background-color 0.3s ease, box-shadow 0.3s ease;
    }

    header.header-transparent::before {
        background-color: transparent;
        transition: background-color 0.3s ease;
    }

    /* スクロール時のヘッダー（白背景＋黒文字） */
    header.header-transparent.header-scrolled {
        position: fixed;
        background-color: #FFF;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    header.header-transparent.header-scrolled::before {
        background-color: #FFF;
    }

    header.header-transparent.header-scrolled .hamburger-btn span {
        background-color: #002D6F;
    }

    header.header-top.header-scrolled .hamburger-btn span {
        background-color: #002D6F;
    }

    /* トップページのヘッダー（header-top）の場合、ノッチ部分は紺色 */
    header.header-top::before {
        background-color: #002D6F;
    }

    /* 白背景のヘッダー（sticky）の場合 */
    header:not(.header-transparent):not(.header-top)::before {
        background-color: #FFF;
    }

    header.header-top .hamburger-btn span {
        background-color: #FFF;
        transition: background-color 0.3s ease;
    }

    header.header-top .hamburger-btn.is-active span {
        background-color: #002D6F; /* メニュー展開時は青に戻す */
    }

    header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 20px;
    }

    header .logo {
        display: flex;
        align-items: center;
    }

    header .logo-img {
        height: 48px;
        width: auto;
        vertical-align: bottom;
    }

    /* SPヘッダー右側 */
    .sp-header-right {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }

    .header-user-info {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #002D6F;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
    }

    .icon-user {
        width: 24px;
        height: 24px;
        display: block;
    }

    .icon-dropdown {
        width: 10px;
        height: auto;
        margin-left: 4px;
        display: block;
    }

    /* ハンバーガーボタン */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 200;
    }

    .hamburger-btn span {
        width: 100%;
        height: 2px;
        background-color: #002D6F;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger-btn.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger-btn.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* SPメニューオーバーレイ */
    .sp-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 150;
        padding: 100px 24px 40px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        display: block;
    }

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

    .sp-nav ul {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin: 0 0 60px;
        padding: 0;
        list-style: none;
    }

    .sp-nav li {
        margin-bottom: 0;
        border-bottom: none;
        padding: 0;
        width: 100%;
        text-align: left;
    }

    .sp-nav a {
        font-size: 18px;
        font-weight: 700;
        color: #002D6F;
        display: block;
        padding: 0;
        text-decoration: none;
    }

    .sp-menu-footer {
        margin-top: auto;
    }

    .language-selector-sp {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #002D6F;
        font-size: 16px;
        font-weight: 400;
        cursor: pointer;
    }

    .language-selector-sp .icon-globe {
        width: 24px;
        height: 24px;
        display: block;
    }

    /* サイトマップ */
    .section-bottom-nav {
        background-color: #fff;
        padding: 30px 0;
        margin-top: 40px;
        border-top: 1px solid #e9e9e9;
    }

    .section-bottom-nav .container {
        padding: 0 20px;
    }

    .bottom-nav-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-column {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .nav-column h3 {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 700;
        color: #2f3a40;
        margin: 0;
    }

    .nav-column h3 > a {
        font-size: 14px;
        font-weight: 700;
        color: #2f3a40;
        text-decoration: none;
    }

    .nav-icon {
        width: 12px;
        height: 12px;
        background-color: #0068B7;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .nav-column ul {
        list-style: none;
        padding: 0 0 0 20px;
        margin: 0;
    }

    .nav-column li { margin-bottom: 4px; }
    .nav-column a {
        font-size: 12px;
        color: #2f3a40;
        text-decoration: none;
    }

    /* フッター */
    footer .container {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0 20px;
        max-width: 100%;
    }

    footer .footer-content {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-bottom: 20px;
    }

    footer .footer-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        justify-content: flex-start;
    }
}
