/* --- 4. ヒーローセクション --- */

/* --- メインビジュアル --- */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.hero img {
    width: 100%;
    max-width: 700px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

.hero-text {
    padding: 20px;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.5;
}

/* --- メインメニュー (3つのボタン) --- */
.main-nav {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.2s;
}

.nav-link:active {
    transform: translateY(2px);
}

.btn-blue {
    background-color: var(--primary-blue);
}

.btn-green {
    background-color: var(--primary-green);
}

.btn-orange {
    background-color: var(--primary-orange);
}

.arrow {
    font-size: 1.2rem;
}

/* --- 選ばれる3つの理由 --- */
.reasons {
    padding: 20px;
    text-align: center;
    background-color: #fff;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: bold;
    border-bottom: 3px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 5px;
}

.reasons-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.reason-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.reason-icon {
    width: 50px;
    height: 50px;
    /* アイコンの色調整（必要に応じて画像に変更） */
    fill: var(--primary-blue);
}

.reason-text {
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 1.4;
}

/* --- 5. NEWS セクション --- */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    display:inline-block;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
    font-family: sans-serif;
}

/* タブデザイン */
.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    background: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-light);
    transition: 0.3s;
}

.tab-btn.active {
    background-color: var(--primary-navy);
    color: white;
}

/* ニュースリスト */
.news-item {
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: background 0.3s;
}

.news-item:hover {
    background-color: #fafafa;
    transform: translateX(5px);
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
}

.news-date {
    font-weight: bold;
}

.news-tag {
    padding: 3px 10px;
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
}

.tag-notice {
    background-color: var(--accent-blue);
}

.tag-works {
    background-color: #8e44ad;
}

.tag-campaign {
    background-color: #e67e22;
}

/* --- TOPICS セクション --- */
.topics-section {
    /* 画像のような青から緑へのグラデーション */
    background: linear-gradient(180deg, #003366 0%, #005a5e 50%, #008c75 100%);
    padding: 60px 0 80px;
    color: white;
    overflow: hidden;
}

.topics-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.topics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.topics-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-circle {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

/* スライダーの窓枠 */
.slider-window {
    width: 100%;
    overflow: hidden;
    /* はみ出した部分を隠す */
    padding-bottom: 20px;
    /* 影が見えるように */
}

/* 動くトラック */
.slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    /* 中身に合わせて幅を確保 */
    transition: transform 0.5s ease-in-out;
    /* スライドのアニメーション速度 */
}

/* トピックスカード */
.topic-card {
    width: 280px;
    /* カードの幅 */
    background: white;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    /* 縮まないようにする */
    color: #333;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.topic-img {
    height: 160px;
    width: 100%;
}

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

.topic-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topic-content h3 {
    font-size: 1rem;
    margin: 0 0 10px;
    font-weight: bold;
    line-height: 1.4;
}

.topic-content p {
    font-size: 0.85rem;
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* スマホ調整 */
@media (max-width: 480px) {
    .topic-card {
        width: 260px;
    }
}


/* --- 6. ABOUT US セクション (ご要望の濃い青エリア) --- */
.section-about {
    background-color: var(--primary-navy);
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.about-subtitle {
    margin-top: -20px;
    margin-bottom: 40px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* カード共通スタイル */
.card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    text-align: left;
    color: var(--text-main);
    transform: translateY(0);
    transition: transform 0.3s box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* ごあいさつカード */
.greeting-card {
    display: flex;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.greeting-img {
    width: 35%;
    height: 120px;
}

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

.greeting-text {
    width: 65%;
    padding: 0 20px;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arrow-icon {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* 会社データカード */
.stats-card {
    padding: 20px 30px;
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.stat-row:last-of-type {
    border-bottom: none;
}

.stat-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    color: var(--text-main);
}

.stat-label {
    font-weight: bold;
    font-size: 0.9rem;
    flex-grow: 1;
}

/* カウントアップ数字 */
.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-navy);
    font-family: sans-serif;
}

.stat-unit {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-left: 2px;
}

.company-link {
    text-align: center;
    margin-top: 15px;
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-main);
}

/* 黒いボタン */
.btn-dark {
    display: inline-block;
    background: #111;
    color: white;
    padding: 12px 60px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 30px;
    font-size: 0.9rem;
}

.btn-dark:hover {
    background: #333;
}

/* --- 7. SUSTAINABILITY セクション (緑エリア) --- */
.section-eco {
    background-color: var(--section-green);
    padding: 80px 20px;
    text-align: center;
    color: white;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.eco-card {
    background: white;
    border-radius: 15px;
    padding: 20px 10px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.eco-icon {
    font-size: 2rem;
    color: var(--section-green);
    font-weight: bold;
}

.eco-label {
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- PARTNER セクション --- */
.section-partner {
    /* 鮮やかなオレンジ */
    background-color: #d35400;
    padding: 60px 20px;
    text-align: center;
}

.partner-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* バナー画像のリンク装飾 */
.partner-link {
    display: block;
    border-radius: 15px;
    overflow: hidden;
    /* 背景が濃いので、影を少し濃くして立体感を強調 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 4px solid white;
    /* 白い枠線をつけると青とオレンジの境界が馴染みます */
}

.partner-link img {
    width: 100%;
    height: auto;
    display: block;
}

.partner-link:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.partner-caption {
    margin-top: 20px;
    color: white;
    /* 背景がオレンジなので文字は白が見やすいです */
    font-weight: bold;
    /* 読みやすく太字に */
    font-size: 1rem;
    line-height: 1.8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* 文字に少し影をつけて読みやすく */
}


/* --- RECRUIT セクション --- */
.section-recruit {
    background-color: #f5f5f7;
    /* 背景は明るいグレー */
    padding: 80px 20px;
}

/* PCでは横並び、スマホでは縦並び */
/* .recruit-container { */
/* display: flex; */
/* flex-direction: column; / */
/* gap: 30px; */
/* align-items: center; */
/* max-width: 1000px; */
/* margin: 0 auto; */
/* padding-left: -20px; */
/* padding-right:-20px; */
/* } */

/* 写真エリア */
.recruit-img {
    width: 100%;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recruit-img img {
    width: 100%;
    height: 300px;
    /* スマホでの画像の高さ */
    object-fit: cover;
    transition: transform 0.5s;
}

/* 写真にホバーした時のエフェクト */
.recruit-img:hover img {
    transform: scale(1.05);
}

/* テキストエリア */
.recruit-content {
    width: 100%;
    text-align: left;
}

.recruit-title {
    margin-bottom: 20px;
    line-height: 1.2;
}

.recruit-title .en {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-navy);
    font-family: sans-serif;
    letter-spacing: 1px;
}

.recruit-title .ja {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-main);
}

.recruit-text {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* 青いボタン */
.btn-blue {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    /* background-color: var(--accent-blue); */
    color: white;
    padding: 15px 30px;
    /* border-radius: 30px; */
    font-weight: bold;
    font-size: 1rem;
    /* width: fit-content; */
    min-width: 220px;
    transition: 0.3s;
}

.btn-blue:hover {
    background-color: var(--primary-navy);
    /* ホバーで濃いネイビーに */
    padding-right: 25px;
    /* 矢印が動く演出 */
}

.btn-blue .arrow {
    font-size: 1.2rem;
    transition: 0.3s;
}

.btn-blue:hover .arrow {
    transform: translateX(5px);
    /* 矢印を少し右に移動 */
}