@charset "UTF-8";

/* =========================================
   1. Variables & Reset (基本設定)
   ========================================= */
:root {
    /* Color Palette */
    --primary-blue: #0077b6;
    --primary-green: #2a9d8f;
    --accent-yellow: #f4a261;
    --accent-light-green: #e9c46a;
    --background-color: #f0fcf4;
    --text-color: #333333;
    --white: #ffffff;
    --light-gray: #f5f5f7;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;

    /* Transition */
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@300;400;500;700&family=M+PLUS+Rounded+1c:wght@700&display=swap');

body {
    font-family: "Zen Kaku Gothic New", "Inter", "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.8;
    letter-spacing: 0.02em;

    /* ▼▼ フッターを下に固定するための設定 ▼▼ */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* 画面の高さの100%を最低限確保する */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* =========================================
   2. Header & Navigation (ヘッダー)
   ========================================= */
header {
    background-color: rgba(240, 252, 244, 0.6);
    /* 初期の透明度を上げる（ベース色に合わせる） */
    backdrop-filter: blur(8px);
    /* 背景を少しぼかすとテキストが読みやすい */
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* 境界線を少し出すための影 */
    position: fixed;
    /* absolute から fixed に変更してスクロール追従 */
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: 'HG丸ｺﾞｼｯｸM-PRO', sans-serif;
    color: #333;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 24px;
    align-items: center;
}

/* 応募フォームボタンの左側に余白を追加して、他のテキストメニューとのバランスをとる */
.nav-item:last-child {
    margin-left: 12px;
}

.nav-link {
    font-weight: 500;
    color: #015c4d;
    font-weight: bold;
    /* text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); */
    position: relative;
    padding: 8px 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: #015c4d;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: #015c4d;
    pointer-events: none;
    cursor: default;
}

.nav-link.active::after,
.nav-link.btn::after {
    display: none;
}

/* Hamburger Menu (基本設定：PCでは非表示、線の形) */
.hamburger {
    display: none;
    /* PCでは隠す */
    cursor: pointer;
    margin-right: 16px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #015c4d;
    /* 線の色 */
    transition: all 0.3s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* =========================================
   3. Common Components (共通パーツ)
   ========================================= */
/* Button Style */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #015c4d;
    border: 2px solid #015c4d;
    border-radius: 8px;
    font-weight: bold;
    transition: all var(--transition-speed);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #015c4d;
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.btn:hover::before {
    width: 100%;
}

/* Background Shapes */
.shape-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape-2 {
    position: absolute;
    width: 700px;
    height: 700px;
    border: 1px solid var(--primary-blue);
    border-radius: 50%;
    background-color: transparent;
    bottom: -200px;
    left: -200px;
    opacity: 0.1;
}

.shape-3 {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-radius: 50%;
    top: 20%;
    left: 8%;
    opacity: 0.15;
    filter: blur(20px);
}

/* Page Headers */
.page-header {
    height: 400px;
    /* background-color: #ddd; */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    padding-top: 80px;
    position: relative;
    color: #333333;
}

.page-header.bg-top {
    height: 900px;
    /* トップページだけ高く */
}

.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background-color: rgba(0, 0, 0, 0.4); */
}

.page-header.bg-top::after {
    display: none;
}

.page-header-title {
    font-size: 3.0rem;
    font-weight: bold;
    color: #424242;
    position: relative;
    z-index: 1;
    text-align: center;
    letter-spacing: 0.1em;
}

.page-header-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    color: #515254;
    margin-top: 5px;
    letter-spacing: 0.05em;
}

/* Background Images */
.bg-top {
    background-image: none;
    background-color: transparent;
}

/*
.bg-about,
.bg-message,
.bg-interview,
.bg-entry {
    background-image: url('../images/about_bg.png');
}
*/

/* Main Visual Layout */
.main-visual-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
}

.main-visual-text-area {
    position: relative;
    z-index: 2;
    /* テキストを画像より前面に */
    margin-left: -5%;
}

/* 画像を背景として背後に大きく配置 */
.main-visual-image-bg {
    position: absolute;
    top: 50%;
    right: -5%;
    /* 右側に配置 */
    transform: translateY(-50%);
    width: 100%;
    /* サイズを大きく */
    max-width: 1000px;
    /* 最大サイズもアップ */
    z-index: 1;
    /* テキストの後ろ */
    opacity: 1;
    /* 色を薄くしないで元のままに */
    pointer-events: none;
}

.main-visual-image-bg img {
    width: 100%;
    height: auto;
    display: block;
    /* animation: floatImg 8s ease-in-out infinite; */
}

@keyframes floatImg {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.main-visual-text {
    font-family: "Sawarabi Gothic", sans-serif;
    ;
    position: relative;
    color: #333;
    z-index: 2;
    width: 100%;
}

.main-visual-text h2 {
    font-size: 2.8rem;
    line-height: 1.5;
    font-weight: bold;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.1em;
    white-space: nowrap;
    /* PCでは改行しないように設定 */
    display: flex;
    align-items: baseline;
}

.main-visual-text .indent {
    display: flex;
    align-items: baseline;
    padding-left: 1.5em;
    /* 最初の行より少し右から始めるためのインデント */
}

.highlight-challenge {
    font-size: 1.8em;
    color: var(--primary-blue);
    font-family: "M PLUS Rounded 1c", sans-serif;
    display: inline-block;
    margin: 0 0.1em;
    line-height: 0.8;
}

/* Container & Sections */
.container {
    width: 100%;
    max-width: 1200px;
    margin: var(--spacing-xl) auto;
    padding: 0 var(--spacing-md);
}

.section {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 2rem;
    color: #333333;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
    padding-bottom: var(--spacing-sm);
    display: inline-block;
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, visibility;
}

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

/* Footer */
footer {
    background-color: #004d40;
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

/* =========================================
   4. Top Page Content (トップページ)
   ========================================= */

/* Message Section (冒頭のメッセージ) */
.message-section {
    text-align: center;
    margin-bottom: 32px;
}

.message-title {
    font-size: 2.6rem;
    padding: 0 50px 10px;
    margin-bottom: 20;
}

.message-body {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    line-height: 2;
    text-align: left;
    /* 左揃え */
    margin-bottom: 100px;
}

.message-body p {
    margin-bottom: 24px;
}

/* Feature Section (3つの特徴) */
.feature-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.feature-container.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 1;
}

.feature-content {
    flex: 1.5;
}

.feature-image img {
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 400px;
    object-fit: cover;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-blue);
    display: inline-block;
    padding-bottom: 4px;
}

/* Representative Message (代表メッセージ) */
.representative-message-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 150px;
    /* 下に余裕を持たせる */
    min-height: 600px;
    /* 重ねるための高さを確保 */
    display: block;
    /* フレックスボックスを解除 */
}

/* 写真と名前のエリア（右側に寄せる） */
.representative-message-image-area {
    width: 75%;
    /* 写真の幅 */
    margin-left: auto;
    /* 右寄せにする */
    position: relative;
    z-index: 1;
    /* 背面に配置 */
    text-align: right;
    /* 名前を右揃えに */
}

.representative-message-image-area img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 20px 20px 0px rgba(42, 157, 143, 0.1);
    /* 装飾の影 */
}

/* 名前の表示位置調整 */
.representative-name-group {
    margin-top: 15px;
    display: inline-block;
    text-align: left;
    /* 名前の中身は左揃え */
}

.representative-message-role {
    margin-top: 6px;
    margin-bottom: -6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.representative-message-name {
    font-size: 1.4rem;
    font-weight: bold;
}

.representative-message-name-en {
    margin-top: -6px;
    font-size: 0.8rem;
    color: #999;
    display: block;
    font-weight: normal;
}


/* 文章エリア（左側に配置して写真に重ねる） */
.representative-message-text-area {
    position: absolute;
    /* 絶対配置で重ねる */
    top: 10%;
    /* 上からの位置 */
    left: 0;
    /* 左端に配置 */
    width: 60%;
    /* 文章の幅 */

    background-color: rgba(240, 252, 244, 0.95);
    /* 背景色（少し透けさせる） */
    padding: 50px;
    /* 内側の余白 */
    border-radius: 8px;
    /* 角丸 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* 影をつけて浮かせる */
    z-index: 2;
    /* 写真より手前に表示 */
}

.representative-message-text-area p {
    margin-bottom: 24px;
    line-height: 2;
    text-align: justify;
    /* 文章の両端を揃える */
}

/* =========================================
   5. Interview Page (インタビュー)
   ========================================= */
.interview-container {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
}

.interview-container.reverse {
    flex-direction: row-reverse;
}

.interview-image {
    flex: 1;
    text-align: center;
}

.interview-content {
    flex: 1.5;
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    position: relative;
    /* 吹き出しの基準 */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* 吹き出しのしっぽ（左） */
.interview-content::before {
    content: "";
    position: absolute;
    top: 40px;
    left: -20px;
    border-style: solid;
    border-width: 10px 20px 10px 0;
    border-color: transparent var(--white) transparent transparent;
    z-index: 1;
}

/* 吹き出しのしっぽ（右） */
.interview-container.reverse .interview-content::before {
    left: auto;
    right: -20px;
    border-width: 10px 0 10px 20px;
    border-color: transparent transparent transparent var(--white);
}

.interview-image img {
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    height: 400px;
    object-fit: cover;
}

.interview-title {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--primary-green);
    display: inline-block;
    padding-bottom: 4px;
}

.interview-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* 写真下の名前キャプション */
.interview-name {
    margin-top: 16px;
    font-weight: bold;
    color: #1d6e65;
    font-size: 1rem;
    display: inline-block;
    border: 2px solid #1d6e65;
    padding: 8px 70px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* =========================================
   6. About Page (会社概要)
   ========================================= */
.about-list {
    max-width: 900px;
    margin: 0 auto 64px;
    border-top: 1px solid #8fc9ae;
    background-color: transparent;
    padding: 0;
}

.about-item {
    display: flex;
    border-bottom: 1px solid #8fc9ae;
    padding: 24px 40px;
    align-items: flex-start;
}

.about-term {
    width: 25%;
    font-weight: normal;
    color: #5d7e9b;
    padding-right: 20px;
    position: relative;
    letter-spacing: 0.1em;
}

.about-term::after {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background-color: #cccccc;
}

.about-desc {
    width: 75%;
    padding-left: 40px;
    color: #004d40;
    font-weight: bold;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.map-container {
    width: 100%;
    height: 400px;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xl);
}

/* Google Mapの調整 */
.map-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    /* 角を丸くしておしゃれに */
    display: block;
    /* 隙間をなくす */
}

/* =========================================
   7. Entry Page (応募フォーム)
   ========================================= */
.recruitment-info,
.entry-form {
    background-color: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-xl);

    width: 100%;
    /* 親要素いっぱいまで広げる */
    max-width: 800px;
    /* ただし読みやすいように最大800px程度に制限 */
    margin-left: auto;
    /* 中央寄せ */
    margin-right: auto;
    /* 中央寄せ */
    box-sizing: border-box;
}

.recruitment-item {
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-lg);
}

.recruitment-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.recruitment-detail {
    margin-left: var(--spacing-md);
    list-style-type: disc;
    color: var(--text-color);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-weight: bold;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background-color: transparent;
    color: #015c4d;
    border: 2px solid #015c4d;
    padding: 12px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-speed);
    display: block;
    margin: 0 auto;
}

.submit-btn:hover {
    background-color: #015c4d;
    color: var(--white);
}

/* コンテンツエリアを引き伸ばしてフッターを押し下げる */
main {
    flex: 1;
}

/* =========================================
   8. Mobile Responsive (スマホ対応)
   ========================================= */
@media (max-width: 768px) {

    /* Header & Nav */
    .header-container {
        padding: 10px 16px;
    }

    .logo img {
        height: 50px;
    }

    .logo-text {
        font-size: 0.9rem;
        white-space: normal;
    }

    /* Hamburger Menu Logic */
    .hamburger {
        display: block;
        z-index: 1001;
        margin-right: 16px;
    }

    .hamburger.active {
        position: fixed;
        top: 20px;
        right: 20px;
        background-color: #ffffff;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hamburger.active .bar {
        background-color: #015c4d;
        height: 4px;
        width: 26px;
        margin: 0;
        position: absolute;
        box-shadow: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        gap: 0;
        flex-direction: column;
        justify-content: center;
        background-color: rgba(240, 252, 244, 0.85);
        /* 半透明のベース色に変更 */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        backdrop-filter: blur(5px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 20px 0;
    }

    .nav-item:last-child {
        margin-left: 0;
    }

    .nav-link {
        color: #015c4d;
        font-size: 1.2rem;
        text-shadow: none;
    }

    .nav-link.active,
    .nav-link.btn {
        color: #015c4d;
        border-color: #015c4d;
    }

    .nav-link.btn:hover {
        color: white;
    }

    /* Common Layouts */
    .page-header {
        height: 250px;
    }

    .page-header.bg-top {
        height: auto;
        /* コンテンツに合わせて高さを可変に */
        min-height: 400px;
        padding-top: 150px;
        /* ヘッダ被りを防ぐために上余白をさらに追加 */
        padding-bottom: 60px;
    }

    .main-visual-container {
        justify-content: center;
        text-align: center;
    }

    .main-visual-image-bg {
        display: none;
        /* レスポンシブ（スマホ）時は画像を非表示 */
    }

    .page-header-title {
        font-size: 2.0rem;
        /* 他ページのヘッダータイトル縮小 */
    }

    .main-visual-text {
        width: 100%;
        padding: 0;
        text-align: center;
        /* スマホ時は中央寄せに追加 */
    }

    .main-visual-text h2 {
        font-size: 1.6rem !important;
        /* !! インラインスタイルを上書き !! */
        white-space: normal;
        /* 折り返しを許可 */
        word-break: auto-phrase;
        /* いい感じの場所で改行 */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }

    .main-visual-text .indent {
        padding-left: 0;
        /* 中央寄せにするためインデントをリセット */
    }

    .message-title {
        font-size: 1.5rem;
        padding: 0 0 10px;
        width: 100%;
        line-height: 1.4;
    }

    .section-title {
        font-size: 1.4rem;
    }

    h2[style*="font-size: 4.0rem"] {
        font-size: 2.2rem !important;
    }

    /* Feature & Interview Sections (Stack Vertically) */
    .feature-container,
    .feature-container.reverse,
    .interview-container,
    .interview-container.reverse,
    .message-container {
        flex-direction: column !important;
        gap: 20px;
        margin-bottom: 40px;
    }

    .feature-image,
    .feature-content,
    .interview-image,
    .interview-content,
    .message-image-area,
    .message-text-area {
        width: 100%;
    }

    .feature-image img,
    .interview-image img {
        height: auto;
        max-height: 300px;
    }

    /* About List (Stack Vertically) */
    .about-item {
        flex-direction: column;
        padding: 24px 20px;
    }

    .about-term {
        width: 100%;
        margin-bottom: 8px;
        padding-right: 0;
    }

    .about-term::after {
        display: none;
    }

    .about-desc {
        width: 100%;
        padding-left: 0;
    }

    /* Interview Bubble Adjustment */
    .interview-content::before,
    .interview-container.reverse .interview-content::before {
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        border-width: 0 15px 20px 15px;
        border-color: transparent transparent var(--white) transparent;
    }

    .representative-message-container {
        display: flex;
        flex-direction: column;
        min-height: auto;
        margin-bottom: 80px;
    }

    /* 写真と名前のエリア（右側に寄せる） */
    .representative-message-image-area {
        width: 90%;

        margin-left: auto;
        position: relative;
        z-index: 1;
        text-align: right;
    }

    .representative-message-image-area img {
        box-shadow: none;
    }

    .representative-message-text-area {
        position: relative;
        width: 95%;
        margin: 0 auto;
        top: 0;
        left: 0;
        padding: 30px;
        background-color: #f0fcf4;
        /* 透明度なしの背景 */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* スマホでは名前を写真の下にしっかり配置 */
    .representative-name-group {
        display: block;
        text-align: left;
        margin: 10px 0 20px 10px;
        position: relative;
        z-index: 3;
    }
}