/* 基本設定 */
:root {
    --primary-color: #E8B4B8; /* メイン：ピンクベージュ */
    --secondary-color: #FFF6F0; /* サブ：アイボリー */
    /* --light-pink: #FFF7FA; /* 背景用薄ピンク（必要なら残す） */
    /* --light-beige: #FAF3E0; /* 背景用薄ベージュ（必要なら残す） */
    --accent-blue: #E0F7FA; /* Eラーニング用アクセント（必要に応じて変更可） */
    --accent-yellow: #FFF9C4; /* HER CAN用アクセント（必要に応じて変更可） */
    --accent-dustyrose: #C97B84; /* 新アクセント：ダスティローズ */
    --text-color: #4A4A4A; /* テキストカラー（チャコール） */
    --heading-color: #4A4A4A; /* 見出しもチャコールで統一 */
    --white-color: #fff;
	--line-green: #989898;
    --line-green: #989898; /* LINEの緑（変更なし） */

    /* フォントは全て Klee One に統一 */
    --font-main: 'Klee One', cursive;
    --font-heading: 'Klee One', cursive;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    font-size: 16px;
    background-color: var(--white-color);
    overflow-x: hidden;
}


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

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

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    line-height: 1.4; /* 見出しの行間調整 */
}

h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; text-align: center; margin-bottom: 1.5em; position: relative; padding-bottom: 0.5em;}
h3.section-title::after { /* 中央寄せセクションタイトルの下線 */
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
h4 { font-size: 1.5rem; }
h5 { font-size: 1.2rem; color: var(--primary-color); }

img { /* 画像の基本スタイル */
    max-width: 100%;
    height: auto;
    display: block; /* 不要な下余白対策 */
    border-radius: 8px; /* 画像の角を少し丸める */
}

.section {
    padding: 80px 0;
}
.bg-lightpink { background-color: var(--light-pink); }
.bg-lightbeige { background-color: var(--light-beige); }

/* 左右分割セクション用の左寄せタイトル */
.section-title-left {
    text-align: left; /* 左寄せ */
    font-size: 2rem;
    margin-bottom: 1.5em;
    position: relative;
    padding-bottom: 0.5em;
    display: inline-block; /* 下線が文字幅に合うように */
}
.section-title-left::after { /* 下線も左寄せ */
    content: '';
    display: block;
    width: 100%; /* タイトルの幅に合わせる */
    max-width: 60px; /* 最大幅は維持 */
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 0; /* 左端から */
    transform: none; /* 中央揃え解除 */
}

/* ヘッダー */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center; /* ← 縦中央揃え */
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    display: block;
    width: 200px;  /* ← 元のサイズに戻す */
    height: auto;  /* アスペクト比を維持 */
}


.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    color: var(--heading-color);
    text-decoration: none;
    font-weight: 400;
    position: relative;
}

.main-nav a::after { /* ナビゲーションホバー下線 */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
    left: 0;
    background: var(--primary-color);
}


.line-button {
	background-color: var(--line-green, #989898);
    color: var(--white-color) !important; /* importantで上書き */
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.line-button:hover {
    background-color: #05a54a;
    color: var(--white-color) !important;
}
.line-button::after { /* LINEボタンには下線不要 */
    display: none !important;
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none; /* デフォルト非表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* ナビより手前に */
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* ヒーローセクション */
.hero {
    position: relative;
    background-image: url("../images/top.jpg");
    background-size: cover;
    background-position: center;
    color: var(--heading-color);
    padding: 120px 20px;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden; /* 念のため追加 */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* ← 背景の暗さ（0.4～0.6が目安） */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    max-width: 800px;

}

.hero h2 {
    margin-bottom: 0.5em;
    color: #fff ;
}
.hero h2 .highlight {
    color: var(--primary-color);
    /* font-style: italic; */
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    color: #fff ;
}
.hero .cta-text {
    font-size: 1.2rem;
    margin-top: 2em;
    color: #fff ;
}

/* コミュニティの目的 */
.purpose-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
    margin-top: 50px;
}

.purpose-item .icon {
    margin-bottom: 20px; /* SVGに合わせて調整 */
    color: var(--primary-color); /* アイコンの色 */
    display: inline-block; /* 中央揃えのため */
    width: 55px;  /* アイコンの幅を指定 */
    height: 55px; /* アイコンの高さを指定 */
    line-height: 1; /* 念のため */
}

.purpose-item .icon svg { /* SVG要素自体へのスタイル */
    display: block;
    width: 100%;
    height: 100%;
}

.purpose-item h4 { font-size: 1.4rem; margin-bottom: 0.5em; }
.purpose-item p { font-size: 0.95rem; margin-bottom: 0; }

/* 対象者 */
#target ul {
    list-style: none;
    padding: 0;
    max-width: 600px;
    margin: 30px auto 0;
}

#target li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    position: relative;
    padding-left: 25px;
}
#target li::before { /* チェックマーク */
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* コミュニティの特徴 - 左右分割レイアウト */
.features-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右均等分割 */
    gap: 50px; /* 左右の間隔 */
    align-items: center; /* 垂直方向中央揃え */
}

.features-image img {
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.features-content .section-title-left { /* タイトル調整 */
     margin-bottom: 1em;
}

.feature-item-alt { /* 背景や影をつけないシンプルなリストに変更 */
    margin-bottom: 25px;
    padding-left: 25px; /* アイコン風の左スペース */
    position: relative;
}
.feature-item-alt::before { /* リストマーカー風の装飾 */
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.6em; /* 位置調整 */
}

.feature-item-alt h4 {
    font-size: 1.3rem;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 0.5em;
}
.feature-item-alt p {
    margin-bottom: 0;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
}

.community-join { /* 背景などを削除 */
    text-align: left; /* 左寄せ */
    margin-top: 40px;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}
.community-join h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5em;
}
.community-join p { margin-bottom: 1em; }

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color) !important; /* importantで強制 */
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 20px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #c2185b; /* 少し濃いピンク */
    transform: translateY(-2px);
    color: var(--white-color) !important;
}
.cta-button::after { /* ボタンには下線不要 */
     display: none !important;
}

.line-button-large {
    background-color: var(--line-green) !important;
    padding: 15px 40px;
}
.line-button-large:hover {
    background-color: #05a54a;
}

/* オンライン講座コンテンツ - 左右分割レイアウト */
.elearning-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* テキストと画像を左右分割 */
    gap: 50px;
    align-items: center;
    margin-bottom: 80px; /* 下のステップ図との間隔 */
}
.elearning-content .section-title-left { margin-bottom: 1em; }
.elearning-content .section-description-left {
    text-align: left;
    margin: 0 0 30px 0; /* マージン調整 */
    line-height: 1.9;
}
.text-left { text-align: left; } /* ボタン左寄せ用 */
.elearning-image img {
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* キャリア支援ステップ (カード形式) */
.career-support-steps {
    margin-top: 70px; /* Eラーニングテキスト下との間隔 */
}

.chart-title { /* タイトルスタイル */
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 50px;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--heading-color);
}

.step-cards-container {
    display: grid;
    /* PCでは最大4列、最小幅250pxで自動調整 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* カード間の隙間 */
}

.step-card {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.step-icon {
    line-height: 1;
    margin-bottom: 25px; /* SVGに合わせて少し調整 */
    color: var(--primary-color); /* アイコンの色 */
    display: inline-block;
    width: 50px;  /* SVGの幅を指定 */
    height: 50px; /* SVGの高さを指定 */
}

.step-icon svg { /* SVG要素自体へのスタイル */
    display: block; /* 不要な下余白を防ぐ */
    width: 100%;   /* 親要素(.step-icon)の幅に合わせる */
    height: 100%;  /* 親要素(.step-icon)の高さに合わせる */
}

.step-title {
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-main); /* 本文と同じフォントに */
    color: var(--heading-color);
    margin-bottom: 12px;
}

.step-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0; /* 下の余白削除 */
}

/* 参加のメリット - 画像付き */
.benefit-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* カード幅調整 */
    gap: 40px; /* 間隔調整 */
    margin-top: 50px;
}

.benefit-item {
    background-color: var(--white-color); /* カード背景 */
    border-radius: 12px;
    overflow: hidden; /* 画像のはみ出し防止 */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    text-align: left; /* テキスト左寄せ */
    padding: 0; /* 内側パディング削除 */
    display: flex; /* 画像とテキストを分けるため */
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-item:hover {
     transform: translateY(-5px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.benefit-image {
    width: 100%;
    height: 200px; /* 画像の高さを固定 */
    object-fit: cover; /* 画像をトリミングして表示 */
    border-radius: 12px 12px 0 0; /* 上部のみ角丸 */
}
.benefit-content {
    padding: 25px 30px; /* テキスト部分のパディング */
    flex-grow: 1; /* 残りの高さを埋める */
}
.benefit-item h5 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.25rem; /* 少し大きく */
    font-family: var(--font-main);
    font-weight: 700;
}
.benefit-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* よくある質問 (FAQ) */
.faq-list {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.faq-question {
	font-family: var(--font-main); /* Klee One を明示 */
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading-color);
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* アイコン用スペース */
}

.faq-question::after { /* アコーディオン用アイコン */
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '−'; /* マイナス記号に変更 */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    padding: 0 15px;
}
.faq-answer.active {
    max-height: 500px; /* コンテンツに合わせて調整 */
    padding: 10px 15px 20px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-color);
}

/* 他の事業へのリンク - 左右分割 */
.service-card-alt {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* 画像とコンテンツの比率調整 */
    gap: 50px;
    align-items: center;
    background-color: var(--light-beige); /* 背景色 */
    padding: 50px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.service-card-image img {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.service-card-content {
    text-align: left;
}
.service-card-content h4 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5em;
    font-family: var(--font-heading); /* 見出しフォントに戻す */
}
.service-card-content > p {
    margin-bottom: 1.5em;
}
.service-details {
    display: grid; /* gridに変更 */
    grid-template-columns: 1fr; /* デフォルト1列 */
    gap: 20px; /* 縦の間隔 */
    text-align: left;
    margin-top: 30px;
    margin-bottom: 30px;
}

.service-details div { flex: initial; } /* flex設定を解除 */
.service-details h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--heading-color);
    font-family: var(--font-main);
    font-weight: 700;
}
.service-details p {
    font-size: 0.95rem;
    line-height: 1.7;
}
.service-card-content .cta-button {
    margin-top: 10px; /* ボタン上のマージン調整 */
}

/* フッター */
.footer {
    background-color: var(--heading-color);
    color: var(--white-color);
    text-align: center;
    padding: 20px 0;
    margin-top: 80px;
    font-size: 0.9rem;
}
.footer p { margin: 0; }


/* レスポンシブ対応 */

/* タブレットサイズ (〜991px) */
@media (max-width: 991px) {
     .container { padding: 0 30px; } /* コンテナ左右余白調整 */

     h2 { font-size: 2.2rem; }
     h3 { font-size: 1.9rem; }
     h4 { font-size: 1.4rem; }

     .section { padding: 70px 0; }

     .features-container,
     .elearning-container,
     .service-card-alt {
        grid-template-columns: 1fr; /* 1列表示に変更 */
        gap: 40px; /* 縦の間隔 */
        text-align: center; /* 全体を中央寄せに */
     }
     .features-image,
     .elearning-image,
     .service-card-image {
         order: -1; /* 画像を上に配置 */
         max-width: 500px; /* 画像の最大幅を制限 */
         margin: 0 auto 30px; /* 中央揃えと下に余白 */
     }
     .features-content,
     .elearning-content,
     .service-card-content {
         text-align: center; /* テキスト中央寄せ */
     }
      .section-title-left, /* 中央寄せに */
      .elearning-content .section-description-left,
      .community-join,
      .text-left,
      .service-card-content h4,
      .service-card-content > p,
      .service-details {
          text-align: center;
      }
      .section-title-left::after { /* タイトル下線も中央へ */
          left: 50%;
          transform: translateX(-50%);
      }
       .feature-item-alt {
           padding-left: 0; /* 左のスペース削除 */
           text-align: center; /* リスト内容も中央へ */
       }
        .feature-item-alt::before {
            display: none; /* マーカー非表示 */
        }
        .community-join h4, .community-join p { text-align: center; }
        .service-details {
            margin-left: auto;
            margin-right: auto;
            max-width: 500px; /* 詳細部分の幅制限 */
        }
         /* PCでは2列だったservice-detailsを1列に戻す */
        .service-details {
            grid-template-columns: 1fr;
        }
}

/* 小さめタブレット・大きめスマホ (〜767px) */
@media (max-width: 767px) {
    .container { padding: 0 20px; } /* コンテナ左右余白調整 */
    h2 { font-size: 2rem; }
    h3 { font-size: 1.8rem; }
    h4 { font-size: 1.3rem; }

    .section { padding: 60px 0; }
    .section-title-left { font-size: 1.8rem; }

    /* ヘッダー */
    .main-nav {
        display: none; /* 通常ナビを隠す */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        box-shadow: 0 4px 5px rgba(0,0,0,0.1);
        padding-top: 10px;
        padding-bottom: 20px;
    }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; align-items: center; }
    .main-nav li { margin-left: 0; margin-bottom: 15px; width: 100%; text-align: center; }
    .main-nav a { display: block; padding: 10px 0; }
    .line-button { display: inline-block; margin-top: 10px; }
    .hamburger-menu { display: block; }
    .hamburger-menu.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .hero { padding: 80px 20px; }

    .purpose-item .icon { width: 50px; height: 50px; margin-bottom: 15px; }
    .purpose-item h4 { font-size: 1.3rem; }

    /* 各セクションの縦間隔調整 */
    .features-container,
    .elearning-container,
    .service-card-alt {
        gap: 30px;
    }
    .elearning-container { margin-bottom: 60px; }
    .career-support-steps { margin-top: 60px; }

    /* ステップカード */
    .step-cards-container {
        grid-template-columns: 1fr; /* 確実に1列 */
        gap: 25px;
        max-width: 450px;
        margin: 0 auto;
    }
    .step-card { padding: 30px 25px; }
    .step-icon { width: 45px; height: 45px; margin-bottom: 20px; }
    .step-title { font-size: 1.1rem; }
    .step-description { font-size: 0.9rem; }

    /* メリット */
    .benefit-items { gap: 30px; grid-template-columns: 1fr; max-width: 450px; margin: 50px auto 0; }
    .benefit-content { padding: 20px 25px; }
    .benefit-item h5 { font-size: 1.15rem; }

    /* FAQ */
    .faq-question { font-size: 1rem; }

    /* 関連サービス */
    .service-card-alt { padding: 40px 30px; }
    .service-card-content h4 { font-size: 1.6rem; }

    .cta-button { padding: 10px 25px; }
    .line-button-large { padding: 12px 35px; }
}

/* スマホ (〜479px) */
@media (max-width: 479px) {
    .container { padding: 0 15px; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.6rem; }

    .section { padding: 50px 0; }

    .hero { padding: 60px 15px; min-height: 300px;}

    .purpose-item .icon { width: 45px; height: 45px; }

    .features-image, .elearning-image, .service-card-image { max-width: 100%; } /* 画像幅制限解除 */

    /* ステップカード */
    .step-cards-container { max-width: 100%; gap: 20px; }
    .step-card { padding: 25px 20px; }
    .step-icon { width: 40px; height: 40px; margin-bottom: 15px; }
    .step-title { font-size: 1.05rem; }
    .step-description { font-size: 0.85rem; }

    /* メリット */
    .benefit-items { max-width: 100%; gap: 20px;}
    .benefit-image { height: 180px; }

    /* 関連サービス */
    .service-card-alt { padding: 30px 20px; }
    .service-card-content h4 { font-size: 1.5rem; }
    .service-details h5 { font-size: 1rem; }
    .service-details p { font-size: 0.9rem; }

     .cta-button { font-size: 0.9rem; padding: 9px 22px;}
     .line-button-large { padding: 11px 30px; }
}