@charset "UTF-8";

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

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

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

header.header-top .header-user-info {
    color: #FFF;
    transition: color 0.3s ease;
}

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.header-top.header-scrolled {
    position: fixed;
    background-color: #FFF;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

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

body.top-page {
    background-color: #FFF;
}

main {
    padding-top: 0;
    background-color: #FFF;
}

section {
}

main .container {
    padding-top: 0; /* ヘッダーabsoluteのため */
    gap: 32px;
}

section .container {
    padding: 0 20px;
}

.section-header {
    margin-bottom: 20px;
    gap: 12px;
    align-items: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

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

.section-header h2 {
    font-size: 20px;
    line-height: 1.4;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 360px;
    background-color: #002D6F;
    overflow: visible; /* 検索ボックスをはみ出させる */
    z-index: 10; /* 次のセクションより上に表示 */
    background: #002D6F url('../images/hero_bg.png') no-repeat right -20vw center;
    background-size: auto 90vw;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 45, 111, 0) 20%, rgba(0, 45, 111, 0.85) 85%);
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-img {
    width: 120%;
    height: 120%;
    object-fit: cover;
    object-position: right -50px center;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0;
}

.hero-content {
    position: absolute;
    top: 96px;
    left: 20px;
    width: calc(100% - 40px);
    max-width: 288px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-content h2 {
    font-size: 28px;
    color: #FFF;
    line-height: 1.25;
    margin-bottom: 12px;
    font-weight: 700;
}

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

.hero-content p {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    line-height: 1.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}

/* 検索ボックス (SP) */
.top-search-container {
    position: absolute;
    top: 280px;
    bottom: auto;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 0 8px;
}

.top-search-container .container {
    padding: 0;
    max-width: 100%;
    display: block;
}

.top-search-box {
    width: 100%;
    max-width: none;
    margin: 0;
    background: #FFF;
    border-radius: 24px;
    box-shadow: 0 24px 44px rgba(0, 34, 84, 0.18);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    z-index: 999;
}

.top-search-box .search-row {
    margin-bottom: 0;
}

.top-search-box .search-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.top-search-box .search-row:first-child {
    flex-direction: row;
    gap: 8px;
}

.top-search-box .search-row:first-child .search-group {
    flex: 1;
    min-width: 0;
}

.top-search-box .search-row label {
    display: none;
}

.top-search-box .select-wrapper {
    position: relative;
}

.top-search-box .select-wrapper select {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #C2D5E2;
    background-color: #E1F0FA;
    /*padding: 0 36px 0 14px;*/
    padding: 0 14px; /* Edit By Sunity */
    font-size: 13px;
    color: #1C2B45;
    font-weight: 600;
}

.top-search-box .select-wrapper::after {
    right: 14px;
    width: 14px;
    height: 14px;
}

.top-search-box .keyword-row {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.top-search-box .keyword-row .search-group {
    flex: 1;
}

.top-search-box .keyword-row .input-wrapper input {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    border: 1px solid #C2D5E2;
    background-color: #E1F0FA;
    font-size: 14px;
    padding: 0 18px;
}

.top-search-box .keyword-row .btn-search {
    width: 120px;
    height: 52px;
    border-radius: 26px;
    background-color: #002D6F;
    border: none;
    color: #FFF;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    display: flex; /* flexで中央揃え */
    align-items: center; /* 垂直中央 */
    justify-content: center; /* 水平中央 */
    gap: 6px; /* アイコンとテキストの間隔 */
}

/* 注目の求人 (SP) */
.section-featured-jobs {
    padding: 112px 0 0;
    margin-bottom: 0px;
    background-color: #FFF;
}

.section-featured-jobs .container {
    padding: 0 20px;
}

.job-carousel {
    position: relative;
    width: 100%;
    margin-left: 0;
    padding: 0 0 0 0;
}

.job-carousel .nav-btn {
    display: none !important;
}

.job-carousel::before,
.job-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 2;
}



.job-carousel::after {
    right: 0;
    background: linear-gradient(270deg, #FFFFFF 0%, rgba(255, 255, 255, 0));
}

.job-grid {
    width: 100%;
    padding: 0 16px 16px 16px;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 16px;
}

.job-card-spacer {
    display: none;
}

.job-card {
    width: 220px;
    flex: 0 0 auto;
    background-color: transparent;
    border-radius: 20px;
    border: none;
    box-shadow: none;
    padding: 0;
    scroll-snap-align: start;
}

.job-card-image {
    height: 140px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 14px;
}

.job-card-content {
    padding: 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.section-featured-jobs .section-header {
    align-items: center;
    gap: 12px;
}

.job-card-header h3 {
    font-size: 16px;
    line-height: 1.5;
}

.job-type-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
}

.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: 13px;
    line-height: 1.6;
    color: #4A4A4A;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-tags {
    flex-wrap: wrap;
    gap: 8px;
}

.job-card-tags span {
    font-size: 12px;
    font-weight: 600;
    color: #125EED;
    text-decoration: underline;
}

/* About (SP) */
.section-about {
    background: linear-gradient(180deg, #E1F0FA 0%, #F4F8FF 100%);
    padding: 24px 0 20px;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 0px;
}

.about-main-card {
    position: relative;
    padding: 28px;
    border-radius: 20px;
    min-height: 220px;
    background-color: #0068B7;
    background-image: url('../images/bg_about_stats.png');
    background-size: 120px; /* サイズ90% */
    background-repeat: no-repeat;
    background-position: right 8px top -20px; /* 右と上に少しはみ出させる */
    color: #FFF;
    overflow: hidden;
}







.about-main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-main-content h3 {
    font-size: 26px;
    line-height: 1.35;
    margin: 0;
}

.about-main-content p {
    font-size: 13px;
    line-height: 1.8;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.btn-view-more-white {
    width: fit-content;
    padding: 10px 20px;
    border-radius: 999px;
    background-color: #FFF;
    color: #0068B7;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
}

.btn-view-more-white img {
    width: 12px;
    height: 12px;
    filter: none; /* 青い矢印 */
}

.about-sub-card {
    display: flex;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background-color: #FFFFFF;
    border: none;
    align-items: top; /* アイコンとテキストの垂直位置合わせ */
}

.about-icon {
    width: 88px;
    height: 88px;
    border-radius: 0px;
    background-color: #E1F0FA;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 縮小防止 */
}

.about-icon img {
    width: 54px;
    height: 54px;
}

.about-sub-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 0 0 0;
    flex: 1;
}

.about-sub-content h3 {
    font-size: 17px;
    margin: 0;
}

.about-sub-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #4A4A4A;
    margin: 0;
}

.btn-view-more-sm {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #FFF; /* 白文字 */
    background-color: #0068B7; /* 青背景 */
    padding: 8px 16px; /* パディング追加 */
    border-radius: 999px; /* 角丸追加 */
    text-decoration: none;
    align-self: flex-end; /* 右寄せ */
}

.btn-view-more-sm img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1); /* 白矢印 */
}

/* 特集 (SP) */
.section-special {
    background-color: #FFF;
    padding: 20px 0 20px 0;
    border-bottom: 1px solid #D0DCE2;
}

.special-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 20px;
}

.special-card {
    display: flex;
    flex-direction: row; /* 横並びに戻す */
    gap: 16px;
}

.special-card:first-child {
    padding-top: 12px; /* 戻す */
}

.special-card:last-child {
    border-bottom: none;
    padding-bottom: 12px; /* 戻す */
}

.special-image {
    width: 96px; /* 固定幅に戻す */
    height: 96px; /* 固定高さに戻す */
    flex-shrink: 0;
    overflow: hidden;
}

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

.special-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px; /* 少し詰める */
}

.special-tag {
    display: flex;
    flex-direction: column; /* 横並び維持 */
    gap: 12px;
    
}

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

.tag-name {
    font-size: 10px; /* フォントサイズ戻す */
    letter-spacing: 0.08em;
    color: #002D6F;
    font-weight: 700;
}

.special-content h3 {
    font-size: 16px; /* フォントサイズ戻す */
    line-height: 1.4;
    font-weight: 700;
    color: #303030;
    margin: 0;
}

.special-content p {
    font-size: 12px; /* フォントサイズ戻す */
    line-height: 1.6;
    color: #6B6B6B;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}



/* FAQ (SP) */
.section-faq {
    background-color: #FFF;
    padding: 40px 0;
}

.faq-list {
    gap: 4px; /* 間隔16px */
    display: flex;
    flex-direction: column;
}

.faq-item {
    overflow: hidden;
    background-color: #F4F8FF; /* 背景色薄い青 */
}

.faq-question {
    padding: 16px 12px; /* パディング調整 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: inherit;
    transition: background-color 0.3s;
    box-sizing: border-box;
}

.faq-question h3 {
    font-size: 16px; /* フォントサイズ16px */
    line-height: 1.5;
    color: #303030;
    margin: 0;
    flex: 1;
    font-weight: 700;
}

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

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

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

.faq-toggle-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.faq-toggle-icon img {
    width: 24px;
    height: 24px;
}

/* 開いている時はCSSでマイナスを作る */
.faq-item.is-open .faq-toggle-icon::before {
    content: "";
    width: 16px;
    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-answer {
    padding: 16px 12px;
    font-size: 14px;
    line-height: 1.8;
    color: #303030;
    display: none; /* 初期状態は非表示 */
    background-color: #F4F8FF; /* 閉じてる時は薄い青 */
}

/* JSで.is-openがついたら表示 */
.faq-item.is-open .faq-answer {
    display: block;
    background-color: #FFF;
}

.faq-item.is-open .faq-question {
}

.btn-view-more-center {
    width: 100%;
    max-width: 160px;
    margin: 32px auto 0;
    border-radius: 999px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 700;
    background-color: #FFF;
    color: #0068B7;
    border: 1px solid #0068B7;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-view-more-center img.icon-down {
    transform: rotate(-90deg);
    width: 12px;
    height: 12px;
    filter: none;
}

/* Contact (SP) */
.section-contact {
    padding: 48px 20px 56px; /* 上下パディング調整 */
    background-color: #002D6F; /* 背景色明示 */
}

.contact-container {
    gap: 24px; /* ギャップ調整 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-text p {
    font-size: 16px; /* フォントサイズ16px */
    line-height: 1.8;
    color: #FFF;
    font-weight: 700;
    margin: 0;
}

.btn-contact {
    width: 100%;
    max-width: 180px; /* ボタン幅最大335px */
    height: 56px;
    border-radius: 999px;
    background-color: #FFF;
    color: #002D6F;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* シャドウ追加 */
}

.btn-contact img {
    width: 16px;
    height: 16px;
    filter: none; /* 青い矢印 */
}
