/* ===============================================
   基本設定とカラーパレット
   =============================================== */
:root {
    --primary-color: #00529B;
    /* 深い青 */
    --secondary-color: #00A3E0;
    /* 明るい青 */
    --accent-color: #F7931E;
    /* オレンジ（差し色）*/
    --text-color: #333333;
    /* 基本テキスト色 */
    --text-color-light: #555555;
    /* やや薄いテキスト色 */
    --bg-white: #FFFFFF;
    --bg-light-blue: #F0F8FF;
    /* 薄い青色の背景 */
    --border-color: #DDDDDD;
    --font-family: 'Noto Sans JP', sans-serif;
    --section-padding: 100px 0;
    --container-width: 1140px;
}

/* ===============================================
   基本スタイルとリセット
   =============================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--bg-white);
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 70px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-light-blue {
    background-color: var(--bg-light-blue);
}


/* ===============================================
   部品（ボタン・カードなど）
   =============================================== */
/* --- ボタン --- */
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    margin-top: 40px;
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.btn-large {
    padding: 15px 50px;
    font-size: 1.1rem;
}




.interview-card {
    /* クリック可能な要素に見えないようにカーソルをデフォルトに戻す */
    cursor: default; 
}



/* --- カード --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.card-link {
    display: block;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
    height: 250px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-hover:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px 30px;
}

.card-content h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

.read-more {
    font-weight: 700;
    color: var(--secondary-color);
}


/* ===============================================
   ヘッダー
   =============================================== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.header-logo img {
    width: 300px;
    height: auto;
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 35px;
}

.header-nav a {
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}


/* ===============================================
   main と ページ共通ヒーロー
   =============================================== */
main {
    padding-top: 80px;
    /* 固定ヘッダーの高さ分 */
}

.page-hero {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}


/* ===============================================
   TOPページ 各セクション
   =============================================== */
/* --- ヒーローセクション --- */
.hero {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 80, 0.6);
    /* 紺色のオーバーレイ */
    z-index: -1;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* --- 私たちについて --- */
.about-company {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 12px;
}

.about-text {
    flex: 1.2;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.button-wrapper {
    text-align: center;
    margin-top: 50px;
}

/* --- 私たちが大切にする価値観 --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.value-item {
    text-align: center;
    padding: 30px;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.value-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.value-item h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.value-item p {
    text-align: left;
    color: var(--text-color-light);
}

/* --- エントリーボタン (フローティング) --- */
.fixed-entry-button {
    text-align: center;
}


/* ===============================================
   フッター
   =============================================== */
.footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 30px 0;
    margin-top: 100px;
}


/* ===============================================
   アニメーション
   =============================================== */
.fade-in,
.slide-in-left,
.slide-in-right,
.fade-in-up,
.fade-in-down,
.zoom-in {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(50px);
}

.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    transform: translateY(50px);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-down {
    transform: translateY(-50px);
}

.fade-in-down.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    transform: scale(0.9);
}

.zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* --- TOPヒーローアニメーション用 --- */
.hero-title,
.hero-subtitle,
.hero-button {
    opacity: 0;
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-title {
    transform: translateX(-30px);
}

.hero-subtitle {
    transform: translateY(30px);
}

.hero-button {
    transform: translateY(30px);
}

.hero-title.is-visible,
.hero-subtitle.is-visible,
.hero-button.is-visible {
    opacity: 1;
    transform: none;
}


/* ===============================================
   レスポンシブ対応 (992px以下 / タブレット)
   =============================================== */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .value-item {
        max-width: 500px;
        margin: 0 auto;
    }
}


/* ===============================================
   レスポンシブ対応 (768px以下 / スマートフォン)
   =============================================== */
@media (max-width: 768px) {

    /* --- 全体 --- */
    .section-title {
        font-size: 2rem;
    }

    /* --- ヘッダー --- */
    .header {
        padding: 15px 15px 0 20px;
    }

    .header-logo img {
        width: 250px;
    }

    #hamburger-menu-check {
        display: none;
    }

    .hamburger-menu-icon {
        display: block;
        position: relative;
        width: 30px;
        height: 22px;
        cursor: pointer;
        z-index: 1010;
    }

    .hamburger-menu-icon span {
        display: block;
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 4px;
        transition: all 0.4s;
    }

    .hamburger-menu-icon span:nth-of-type(1) {
        top: 0;
    }

    .hamburger-menu-icon span:nth-of-type(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu-icon span:nth-of-type(3) {
        bottom: 0;
    }

    #hamburger-menu-check:checked~.hamburger-menu-icon span:nth-of-type(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    #hamburger-menu-check:checked~.hamburger-menu-icon span:nth-of-type(2) {
        opacity: 0;
    }

    #hamburger-menu-check:checked~.hamburger-menu-icon span:nth-of-type(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    .header-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 100px;
        transition: right 0.5s;
        z-index: 1000;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-nav li {
        width: 100%;
        text-align: center;
    }

    .header-nav a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--border-color);
    }

    .header-nav a::after {
        display: none;
    }

    #hamburger-menu-check:checked~.header-nav {
        right: 0;
    }

    /* --- TOPページ --- */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-company {
        flex-direction: column;
        text-align: center;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }
}
/* ===============================================
   ハンバーガーメニュー (PCでは非表示)
   =============================================== */
#hamburger-menu-check {
    display: none;
}
.hamburger-menu-icon {
    display: none; /* PCでは非表示 */
    position: relative;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1010; /* メニューが前面に来るように */
}
.hamburger-menu-icon span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: all 0.4s;
}
.hamburger-menu-icon span:nth-of-type(1) { top: 0; }
.hamburger-menu-icon span:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu-icon span:nth-of-type(3) { bottom: 0; }


/* ===============================================
   レスポンシブ対応 (992px以下 / タブレット)
   =============================================== */
@media (max-width: 992px) {
    /* TOPページ：価値観 */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .value-item {
        max-width: 500px;
        margin: 0 auto;
    }
}


/* ===============================================
   レスポンシブ対応 (768px以下 / スマートフォン)
   =============================================== */
@media (max-width: 768px) {
    /* --- 全体 --- */
    .section-title { font-size: 2rem; }
    
    /* --- ヘッダー & ハンバーガーメニュー --- */
    .header {
        padding: 15px 20px;
    }
    .header-logo img {
        width: 250px;
    }

    /* PC用のナビゲーションを非表示に */
    .header-nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態では画面右外に隠す */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 100px;
        transition: right 0.5s ease;
        z-index: 1000;
    }
    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .header-nav li {
        width: 100%;
        text-align: center;
    }
    .header-nav a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--border-color);
    }
    .header-nav a::after {
        display: none; /* ホバー時の下線を消す */
    }

    /* ハンバーガーアイコンを表示 */
    .hamburger-menu-icon {
        display: block;
    }
    
    /* チェックボックスがONの時の動作 */
    /* 1. メニューをスライドインさせる */
    #hamburger-menu-check:checked ~ .header-nav {
        right: 0;
    }
    /* 2. ハンバーガーアイコンを「×」印に変形 */
    #hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    #hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(2) {
        opacity: 0;
    }
    #hamburger-menu-check:checked ~ .hamburger-menu-icon span:nth-of-type(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* --- TOPページ --- */
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
    .about-company { flex-direction: column; text-align: center; }
    .card-grid { grid-template-columns: 1fr; }
}