/* =========================================================
   基本設定＆変数
========================================================= */
:root {
    --primary-color: #0056b3;          /* メインの青 */
    --primary-color-light: #e6f0ff;
    --accent-teal:   #5D9C9F;          /* Sustainability */
    --accent-green:  #7FB984;          /* Well-Being */
    --accent-yellow: #F4C455;          /* Professionalism */
    --accent-orange: #F29E53;          /* Evolution */
    --accent-red:    #F38575;          /* Collaboration */
    --text-dark:     #333333;
    --text-light:    #777777;
    --bg-light:      #f5f7fb;
    --container-width: 1080px;
    --radius-card: 18px;
    --shadow-soft: 0 15px 40px rgba(0, 0, 0, 0.06);
    --transition-fast: 0.3s ease;
    --font-main: "Noto Sans JP", system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.7;
}

/* 共通レイアウト */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-teal);
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-dark);
}

/* =========================================================
   ヘッダー
========================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eef1f6;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
    color: var(--primary-color);
}

.logo span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-light);
}

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

.nav a {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 4px 0;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-fast);
}

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

.cta-btn-header {
    font-size: 1rem;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.cta-btn-header:hover {
    background: #003f88;
    transform: translateY(-1px);
}

/* =========================================================
   Hero
========================================================= */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0 20px;

    /* 写真の上に薄い水色グラデーションを重ねる */
    background: linear-gradient(
        135deg,
        rgba(224, 247, 250, 0.9) 0%,
        rgba(255, 255, 255, 0.9) 100%
    );
}

/* 背景写真を薄く敷く */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("images/hero-photo.png");
    background-size: cover;
    background-position: center;
    opacity: 0.25;   /* 写真の濃さ：0.2〜0.4で調整 */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}
.hero-tagline {
    font-size: 2.0rem;
    margin-bottom: 20px;
    color: var(--accent-teal);
    font-weight: 700;
}
.hero-title {
    font-size: 4.0rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-dark);
}
.hero-sub {
    font-size: 1.6rem;
    color: var(--text-light);
    margin-bottom: 40px;
}
.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ヒーロー文字＆ボタン：最初は見えない状態 */
.hero-fade {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* =========================================================
   Buttons（共通ボタン）
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 999px;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

/* ヘッダーと同じ色の基本ボタン */
.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.25);
}

.btn-primary:hover {
    background: #003f88;
    border-color: #003f88;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 86, 179, 0.32);
}

/* ヒーロー専用の微調整（必要なら） */
.btn-hero {
    /* いまは色は .btn-primary に任せるので空でOK。
       もしヒーローだけ余白を変えたいときはここに書く */
}

/* 既存の .btn-large の指定を活かしてOK */

/* =========================================================
   MVV - Mission / Vision / Values
========================================================= */
.mvv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}
.mvv-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}
.mvv-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Valuesカード全体 */
.values-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-color);
    text-align: center;
    margin-top: 40px;
}
.values-title {
    font-size: 1.4rem;
    font-weight: 700;
}

/* 丸いValueアイテム */
.values-flower {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}
.value-item {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 10px;
    transition: transform 0.3s;
}
.value-item:hover {
    transform: scale(1.05);
}
.value-item span {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.value-item small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.v-pro  { background-color: var(--accent-yellow); }
.v-well { background-color: var(--accent-green); }
.v-sus  { background-color: var(--accent-teal); }
.v-evo  { background-color: var(--accent-orange); }
.v-col  { background-color: var(--accent-red); }

/* =========================================================
   プログラムの特徴セクション
========================================================= */
.program-section {
    position: relative;
    background: #eaf3fb;
    overflow: hidden;
}

/* 背景に長崎の写真を薄く表示 */
.program-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("images/nagasaki.png") center/cover no-repeat;
    opacity: 0.22;
}

/* 中身（カードなど）は前面に */
.program-section .container {
    position: relative;
    z-index: 2;
}

.bg-light {
    background: #eaf3fb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

/* アイコンの共通枠 */
.icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-teal);
    font-size: 2.2rem;
}

.icon-box i {
    display: block;
    line-height: 1;
}

/* 画像アイコン（みんほす！ロゴなど） */
.icon-box .icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* キャリアパス */
.career-path {
    background: #fff;
    padding: 40px 32px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.03);
}

/* 全体を縦方向に並べるコンテナ */
.path-table {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: auto;
}

/* 1行分（Aさん・Bさん…） */
.path-row {
    display: grid;
    grid-template-columns: 160px repeat(5, minmax(110px, 1fr));
    gap: 8px;
    min-width: 720px;
    align-items: stretch;
}

/* 各マス共通の見た目 */
.path-cell {
    background: #f0f6ff;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

/* 左端の「Aさん」「Bさん」ラベル */
.path-label {
    background: transparent;
    padding: 0;
    text-align: left;
    font-weight: 700;
    color: #333;
}

.path-label small {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    font-size: 0.75rem;
    color: #666;
}

/* 年次のヘッダー行 */
.path-row-header .path-cell {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.path-row-header .path-label {
    background: transparent;
}

/* =========================================================
   志セクション（People & Culture）
========================================================= */
.staff-section {
    background: #ffffff;
}

/* 上部の「志とは？」カード */
.message-box {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    padding: 32px 32px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: center;
}

.message-text h4 {
    font-size: 1.4rem;
    margin: 0 0 12px;
}

.message-text p {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.message-img img {
    width: 100%;
    border-radius: 18px;
    object-fit: cover;
    display: block;
}

/* 志セクション：メンバー紹介カード */
.staff-cards {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.staff-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
}

/* 写真エリア */
.staff-photo {
    width: 72px;
    height: 72px;
    margin-bottom: 12px;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* 役職＆名前 */
.staff-meta {
    margin-bottom: 10px;
}

.staff-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.staff-name {
    font-size: 1rem;
    font-weight: 700;
    margin: 4px 0 0;
    color: #222;
}

/* コメント文 */
.staff-comment {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
    margin-top: 8px;
    flex: 1;
}

/* =========================================================
   Contact セクション
========================================================= */
.contact-section {
    background: var(--bg-light);
    text-align: center;
}

.contact-title {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.contact-desc {
    font-size: 0.98rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.cta-buttons {
    margin-bottom: 16px;
}

.btn-large {
    padding: 12px 32px;
    font-size: 1rem;
}

.contact-section .note {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* =========================================================
   フッター
========================================================= */
.footer {
    background: #0b1020;
    color: #d7dde8;
    padding: 32px 0 20px;
    font-size: 0.85rem;
}

.footer-info h5 {
    margin: 0 0 6px;
}

.footer-info p {
    margin: 0 0 10px;
}

.social-links a {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    margin-right: 8px;
    text-decoration: none;
    font-size: 1rem;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.footer .copyright {
    margin-top: 16px;
    color: #8b92a8;
}

/* =========================================================
   レスポンシブ
========================================================= */
@media (max-width: 960px) {
    .hero {
        min-height: 60vh;
        text-align: left;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .header-container {
        flex-wrap: wrap;
    }

    .nav {
        display: none; /* 必要なら簡易的に非表示。ハンバーガー実装するならここ変更 */
    }

    .message-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .career-path {
        padding: 28px 18px;
    }

    .path-row {
        grid-template-columns: 130px repeat(5, minmax(90px, 1fr));
        min-width: 640px;
    }

    .path-cell {
        font-size: 0.8rem;
    }

    .hero {
        padding-top: 96px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ふつう（PC）のときの基準フォントサイズ */
html {
  font-size: 16px;
}

/* タブレット・スマホなど、画面幅が小さいときだけ一回り小さくする */
@media screen and (max-width: 1024px) {
  html {
    font-size: 14px;  /* ← ここを好きなサイズに調整してOK */
  }
}
