@charset "UTF-8";

:root {
    --header-height-sp: 64px;
}

/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: "SF Pro", "Hiragino Sans", 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif; */
    font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", "sans-serif";
    line-height: 1.6;
    color: #333;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ユーティリティ */
.pc-only {
    display: none !important;
}

.sp-only {
    display: block !important;
}

/* 共通コンテナ */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
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-top）の場合、ノッチ部分は紺色 */
header.header-top::before {
    background-color: #002D6F;
}

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

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

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;
}

.language-selector-sp .icon-arrow {
    width: 12px;
    height: auto;
    margin-left: 4px;
    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;
}

.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;
}

/* --------------------------------------------------------------------------
   Common Contact Section (Recruit CTA) SP
   -------------------------------------------------------------------------- */
.section-contact {
    padding: 32px 20px;
    background-color: var(--primary-color, #002d6f);
}

.contact-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.contact-text {
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-text p {
    margin: 0;
}

.btn-contact {
    width: auto;
    padding: 8px 24px;
    height: auto;
    background-color: #fff;
    border-radius: 70px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    /* Font styles */
    font-family: "Hiragino Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 28.4px; /* From Figma */
    color: var(--primary-color, #002d6f);
    white-space: nowrap;
}

.btn-contact .arrow-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* フッター */
footer {
    background-color: #fff;
    color: #0c0c0c;
    padding: 30px 0 20px;
}

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 img { 
    height: 40px; 
    width: auto; 
}

footer .footer-sunflare-style img {
    height: auto;
    max-width: 100%;
}

footer .footer-address {
    padding-left: 0;
}

footer .footer-address p {
    font-size: 12px;
    line-height: 1.6;
    color: #0c0c0c;
    margin: 0;
    padding: 0 0 0 48px;
}

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

footer .footer-links a {
    color: #0c0c0c;
    text-decoration: none;
    font-size: 12px;
    text-align: left;
    align-self: flex-start;
}

footer a {
    color: #0c0c0c;
    text-decoration: none;
    font-size: 12px;
}

footer .footer-bottom {
    padding-top: 20px;
    text-align: center;
}

footer .footer-bottom p {
    font-size: 10px;
    color: #0c0c0c;
}
