@charset "UTF-8";

/* トップページ固有スタイル */

/* ヘッダー透過設定 (PC) */
header.header-top {
    background-color: transparent;
    box-shadow: none;
    position: fixed;
    width: 100%;
    border-bottom: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.header-top .main-nav a {
    color: #FFF;
    transition: color 0.3s ease;
}

header.header-top .language-selector {
    color: #FFF;
    transition: color 0.3s ease;
}

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

header.header-top.header-scrolled .main-nav a {
    color: #002D6F;
}

header.header-top.header-scrolled .language-selector {
    color: #002D6F;
}

/* 共通設定 */
section {
}

section .container {
    max-width: 1080px; /* Figmaに合わせて幅調整 */
}

.section-header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-line {
    width: 24px;
    height: 8px;
    background-color: #0068B7;
    border-radius: 4px;
    display: block;
}

.section-header h2 {
    font-size: 36px;
    color: #333;
    font-weight: 700;
    margin: 0;
}

.btn-view-more,
.btn-view-more-sm,
.btn-view-more-center {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0068B7;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}
.btn-view-more img,
.btn-view-more-sm img,
.btn-view-more-center img {
    width: 6px;
    height: auto;
}

.btn-view-more-center {
    justify-content: center;
    border: 1px solid #e0e0e0;
    padding: 12px 32px;
    border-radius: 40px;
    color: #333;
    transition: all 0.3s ease;
}
.btn-view-more-center:hover {
    border-color: #0068B7;
    color: #0068B7;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: #002D6F url('../images/hero_bg.png') no-repeat right -50px center;
    background-size: auto 60vw;
    padding-top: 0; /* ヘッダーがabsoluteなので0でOK */

}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    display: flex;
    justify-content: flex-end; /* 右寄せ */
}

.hero-bg-img {
    width: 1000px; /* 指定の幅 */
    height: 100%;
    object-fit: cover;
    margin-right: -60px; /* 右にオフセット */
}

.hero-section .container {
    position: relative;
    z-index: 1;
    height: 100%;
    padding-top: 180px; /* ヘッダーの高さ＋余白 */
    width: 100%;
    max-width: none; /* コンテナ幅制限を解除 */
    padding-left: 80px; /* 左余白 */
    padding-right: 80px; /* 右余白 */
}

.hero-content h2 {
    font-size: 64px; /* 指定サイズに変更 */
    color: #FFF;
    line-height: 1.2;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.05em;
}

.hero-divider {
    width: 64px;
    height: 2px;
    background-color: #FFF;
    margin-bottom: 40px;
}

.hero-content p {
    font-size: 16px; /* 指定サイズに変更 */
    color: #FFF;
    line-height: 1.8;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 検索ボックス */
.top-search-container {
    position: absolute;
    bottom: -48px;
    left: 0;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.top-search-container .container {
    display: flex;
    justify-content: flex-end; /* 右寄せ */
    width: 100%;
    max-width: none;
    padding-right: 80px;
    padding-left: 80px;
    pointer-events: auto;
}

.top-search-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 32px 0 rgba(0, 34, 84, 0.30);
    padding: 32px;
    width: 665px;
    max-width: 100%;
    box-sizing: border-box;
}

.search-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.search-row.keyword-row {
    margin-bottom: 0;
    align-items: flex-end;
    gap: 10px;
}

.search-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-group label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.select-wrapper, .input-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select,
.input-wrapper input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background-color: #E1F0FA; /* 背景色変更 */
    appearance: none;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23666666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.btn-search {
    width: 120px; /* Figma: 120px */
    height: 48px;
    background-color: #002D6F;
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.btn-search:hover {
    background-color: #001f4d;
}

.btn-search img {
    width: 20px; /* Figma: 20px */
    height: 20px;
    filter: brightness(0) invert(1); /* アイコン白化 */
}

/* 注目の求人 */
.section-featured-jobs {
    background-color: #fff;
    padding: 64px 0;
    overflow: hidden;
}

.section-featured-jobs .container {
    max-width: 1080px; /* コンテナ幅を戻す */
    margin: 0 auto;
    width: 100%;
    padding: 0 !important; /* 確実にパディングを削除 */
}

.section-featured-jobs .section-header {
    padding-right: 0;
}

.job-carousel {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 5;
}

.nav-btn img {
    width: 16px;
    height: 16px;
    transition: filter 0.3s ease;
}

.nav-btn.nav-prev {
    left: 24px;
}

.nav-btn.nav-prev img {
    transform: rotate(180deg);
}

.nav-btn.nav-next {
    right: 24px;
}

.nav-btn:hover {
    background-color: #0068B7;
    box-shadow: 0 10px 24px rgba(0, 104, 183, 0.25);
}

.nav-btn:hover img {
    filter: brightness(0) invert(1);
}

@media screen and (max-width: 1120px) {
    .nav-btn {
        display: none;
    }
}

.job-grid {
    display: flex;
    flex-wrap: nowrap; /* 折り返さない */
    gap: 48px;
    overflow-x: auto;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    /* 画面幅いっぱいに */
    width: 100vw;
    padding-left: 0;
    padding-right: 80px;
    box-sizing: border-box;
}

.job-card-spacer {
    display: block;
    flex: 0 0 auto;
    width: calc((100vw - 1080px) / 2);
    min-width: calc((100vw - 1080px) / 2);
    height: 1px;
    background: transparent;
    scroll-snap-align: start;
    margin-right: -48px;
}

/* 画面幅が狭い時 */
@media screen and (max-width: 1120px) {
    .job-card-spacer {
        display: none;
    }
    .job-grid {
        padding-left: 20px;
        padding-right: 20px;
    }
}

.job-grid::-webkit-scrollbar {
    display: none;
}

.job-card {
    flex: 0 0 auto;
    width: 300px;
    background: transparent;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    scroll-snap-align: start;
}

/* JS制御のためマージン等はリセット */
.job-card:first-child {
    margin-left: 0;
}
.job-card:last-child {
    margin-right: 0;
}

/* SP調整 */
@media screen and (max-width: 768px) {
    .job-grid {
        padding-right: 20px;
        gap: 24px;
    }
    .job-card {
        width: 260px;
    }
}

.job-card:hover {
    /* hoverエフェクトなし */
}

.job-card-image {
    width: 100%;
    height: 180px;
    background-color: #eee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card-content {
    padding: 0; /* パディング削除 */
}

.job-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 8px;
}

.job-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.job-type-tag {
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0;
    order: 0; /* タイトルの下に配置（デフォルト） */
}

/* 職種タグの色分け */
.job-type-tag.type-other {
    background-color: #FCE7F3;
    color: #9D174D;
}
.job-type-tag.type-proofreader {
    background-color: #DCFCE7;
    color: #166534;
}
.job-type-tag.type-checker {
    background-color: #FFEDD5;
    color: #9A3412;
}
.job-type-tag.type-native {
    background-color: #EDE9FE;
    color: #5B21B6;
}

.job-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px; /* 間隔を広げる */
}

.job-card-tags span {
    font-size: 13px;
    color: #125EED;
    background: none;
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

/*Comment Out by Sunity 202601*/
/*.job-card-tags span:hover {*/
/*    text-decoration: underline;*/
/*    opacity: 0.8;*/
/*}*/

/* サン・フレアとはたらく (About) */
.section-about {
    padding: 64px 0;
    background-color: #E1F0FA;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: repeat(3, 1fr); /* 高さを揃える */
    gap: 24px;
}

.about-main-card {
    grid-row: 1 / 4;
    grid-column: 1 / 2;
    background-color: #0068B7;
    background-image: url('../images/bg_about_stats.png');
    background-size: 264px; /* サイズ90% */
    background-repeat: no-repeat;
    background-position: right -35px top -20px; /* 右と上に少しはみ出させる */
    border-radius: 16px;
    padding: 64px 48px;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上寄せ */
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.about-main-content {
    position: relative;
    z-index: 1;
}

.about-main-content h3 {
    font-size: 48px;
    color: #FFF;
    margin-bottom: 24px;
    line-height: 1.4;
    font-weight: 700;
}

.about-main-content p {
    font-size: 16px;
    color: #FFF;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn-view-more-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #FFF;
    color: #0068B7;
    padding: 16px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: opacity 0.3s;
}
.btn-view-more-white:hover {
    opacity: 0.9;
}
.btn-view-more-white img {
    width: 24px;
    height: 24px;
}

.about-sub-card {
    grid-column: 2 / 3;
    background: #FFF; /* 白背景に変更 */
    border-radius: 16px;
    padding: 24px;
    border: none;
    display: flex;
    align-items: center;
    gap: 32px;
}

.about-icon {
    width: 134px;
    height: 134px;
    flex-shrink: 0;
    background: #E1F0FA; /* 薄い青背景に変更 */
    border-radius: 0; /* 四角に変更 */
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.about-sub-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 134px;
    justify-content: center;
}

.about-sub-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.about-sub-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* サブカード内のボタン調整 */
.btn-view-more-sm {
    align-self: flex-end;
    background-color: #0068B7; /* 青背景に変更 */
    color: #FFF; /* 白文字に変更 */
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.btn-view-more-sm:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    opacity: 0.9;
}
.btn-view-more-sm img {
    width: 12px; /* 16px */
    height: 12px;
    filter: brightness(0) invert(1); /* 矢印を白に */
}

/* 特集 (Special) */
.section-special {
    background-color: #fff;
    padding: 64px 0 0 0;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    width: 100%;
}

.special-card {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.special-image {
    width: 100%;
    height: 240px; /* Figma height: 240px */
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0; /* 画像下のマージンなし */
    background-color: #eee;
}

.special-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/*
.special-card:hover .special-image img {
    transform: scale(1.05);
}
*/

.special-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 32px 64px 32px;
}

.special-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.tag-line {
    width: 24px;
    height: 1px;
    background-color: #002D6F;
}

.tag-name {
    font-size: 12px;
    font-weight: 700;
    color: #002D6F;
    line-height: 2;
}

.special-content h3 {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 16px; /* Titleと本文の間 */
    color: #303030;
    font-weight: 700;
}

.special-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #444a55;
    margin-bottom: 32px; /* ボタンとの最低間隔 */
    margin-bottom: 16px; /* ボタンを下に押しやる */
}

/* ボタンデザイン変更 */
.special-content .btn-view-more {
    align-self: flex-end;
    background-color: #0068B7;
    color: #FFF;
    padding: 10px 20px; /* Figma padding */
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: opacity 0.3s ease;
    margin-top: 16px;
}
.special-content .btn-view-more:hover {
    opacity: 0.9;
}
.special-content .btn-view-more img {
    width: 16px; /* Figma size */
    height: auto;
    filter: brightness(0) invert(1);
}

/* よくある質問 (FAQ) */
.section-faq {
    background-color: #fff;
    border-top: 1px solid #D0DCE2;
    padding: 64px 0;
}

.faq-list {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.faq-item {
    background-color: #E1F0FA;
    border-bottom: none;
    padding: 0;
}

.faq-item.is-open {
    background-color: transparent;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 24px;
    background-color: inherit;
    transition: background-color 0.3s;
}

.faq-item.is-open .faq-question {
    background-color: #0068B7;
}

.faq-question h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

.faq-item.is-open .faq-question h3 {
    color: #FFF;
}

.faq-toggle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* 追加 */
}

/* 開いている時はCSSでマイナスを作る */
.faq-item.is-open .faq-toggle-icon::before {
    content: "";
    width: 14px;
    height: 2px;
    background-color: #FFF;
    display: block;
    position: absolute; /* 追加 */
    top: 50%; /* 追加 */
    left: 50%; /* 追加 */
    transform: translate(-50%, -50%); /* 追加 */
}
/* 画像は非表示 */
.faq-item.is-open .faq-toggle-icon img {
    display: none;
}

.faq-toggle-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.faq-answer {
    display: none;
    background-color: #FFF;
    padding: 24px;
    border: none;
}

.faq-item.is-open .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 16px;
    line-height: 2;
    color: #303030;
    margin: 0;
}

.faq-more {
    text-align: center;
}

/* ボタン調整 */
.btn-view-more-center {
    justify-content: center;
    border: 1px solid #125EED;
    padding: 12px 32px;
    border-radius: 40px;
    color: #125EED;
    font-weight: 700;
    transition: all 0.3s ease;
    background: transparent;
}
.btn-view-more-center:hover {
    background-color: #125EED;
    color: #FFF;
}
.btn-view-more-center img.icon-down {
    transform: rotate(-90deg);
    width: 12px;
    height: auto;
    filter: none;
    transition: filter 0.3s;
}
.btn-view-more-center:hover img.icon-down {
    filter: brightness(0) invert(1);
}

/* Contact */
.section-contact {
    background-color: #002D6F;
    padding: 64px 40px 80px 40px;
    display: flex;
    justify-content: center;
}

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

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

.contact-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 480px;
    height: 80px;
    background-color: #FFF;
    border-radius: 70px;
    text-decoration: none;
    color: #002D6F;
    font-size: 20px;
    font-weight: 700;
    transition: opacity 0.3s;
}

.btn-contact:hover {
    opacity: 0.9;
}

.btn-contact img {
    width: 16px;
    height: 16px;
}
