/* ==========================================================
   top.css — トップページ固有スタイル
   セクションごとにブロックを分けて管理
   ========================================================== */


/* ==========================================================
   MAIN VISUAL
   ========================================================== */

#main-visual {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

/* --- スライドショー --- */
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.0);
    transition: opacity 1.5s ease-in-out;
}

/* ズームアニメーション：active の付け外しとは独立して管理 */
.slide.zooming {
    animation: slide-zoom 12s ease-out forwards;
}

.slide.active {
    opacity: 1;
}

@keyframes slide-zoom {
    from { transform: scale(1.0); }
    to   { transform: scale(1.08); }
}

/* --- キャッチコピーエリア --- */
.mv-text-area {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
}

.mv-text {
    max-width: 56.25rem;
    color: #fff;
}
@media (max-width: 768px) {
    .mv-text {
		text-align: center;
    }
}

.mv-label {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .mv-label {
		font-size: 0.75rem;
		line-height: 1.33;
    }
}

.mv-heading {
    font-size: clamp(1.25rem, 4.5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.575;
    margin-bottom: 2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}
@media (max-width: 768px) {
    .mv-heading {
		line-height: 1.667;
		margin-bottom: 1rem;
    }
}

.mv-heading-accent {
    display: inline;
    color: var(--color-accent);
    background-color: #fff;
    padding: 0 0.75rem;
    margin: 0 0.5rem;
    text-shadow: none;
}

.mv-subtext {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.8;
    max-width: 40rem;
}
@media (max-width: 768px) {
    .mv-subtext {
		font-size: 0.875rem;
    }
}

/* --- スクロールインジケーター --- */
.mv-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.mv-scroll-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.mv-scroll-line {
    width: 1px;
    height: 4rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
}

/* --- コンテンツ開始ブロック --- */
#content-start {
    position: relative;
    z-index: 10;
    margin-top: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
}


/* ==========================================================
   SECTION 1: 課題提起（issues）
   ========================================================== */

/* 外枠ボックス */
.issues-box {
    max-width: 64rem;
    margin-inline: auto;
    background-color: var(--color-bg-gray);
    border: 1px solid var(--color-border);
    border-radius: 3.75rem;
    padding: 2rem;
}

@media (min-width: 768px) {
    .issues-box {
        padding: 3.5rem 4rem;
    }
}

/* 2カラムグリッド */
.issues-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .issues-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

/* 各カード */
.issues-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.25rem;
}
@media (min-width: 768px) {
    .issues-card {
        gap: 1rem;
        border-radius: 1rem;
        padding: 1.5rem 2rem;
    }
}

.issues-card p {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: justify;
}
@media (min-width: 768px) {
    .issues-card p {
        font-size: 1.125rem;
    }
}

.issues-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .issues-card-icon {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
    }
}

.issues-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 共感メッセージ */
.issues-message {
    text-align: justify;
    font-size: 0.9375rem;
    line-height: 2;
}
@media (min-width: 768px) {
    .issues-message {
        text-align: center;
		font-size: 1rem;
    }
}


/* ==========================================================
   SECTION 1 PR: 登録支援機関紹介ブロック（issues-pr）
   ========================================================== */

.issues-pr {
    max-width: 64rem;
    margin-inline: auto;
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #c0192a 100%);
    border-radius: 3rem;
    padding: 3rem 2rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1026px) {
    .issues-pr {
        margin-top: 5rem;
        padding: 3.5rem 4rem;
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

/* テキスト側 */
.issues-pr-body {
    flex-grow: 1;
}
@media (max-width: 1026px) {
    .issues-pr-body {
        text-align: center;
    }
}

.issues-pr-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.3rem 1rem;
    margin-bottom: 1.25rem;
}

.issues-pr-heading {
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.667;
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    .issues-pr-heading {
        font-size: 1.75rem;
        line-height: 1.6;
    }
}

.issues-pr-heading strong {
    background-color: rgba(255, 255, 255, 0.18);
    padding: 0 0.3em;
    border-radius: 0.25em;
}

.issues-pr-text {
    font-size: 0.9375rem;
    line-height: 2;
    text-align: justify;
    opacity: 0.92;
}

/* CTA ボタン側 */
.issues-pr-cta {
    flex-shrink: 0;
}

.btn-issues-pr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background-color: #fff;
    color: var(--color-accent);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1.4;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-issues-pr:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.btn-issues-pr-sub {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .issues-pr {
        border-radius: 2rem;
    }
    .btn-issues-pr {
        width: 100%;
        font-size: 0.9375rem;
        text-align: center;
    }
}


/* ==========================================================
   SECTION 3: 強み（strengths）
   ========================================================== */

#strengths {
  padding: 4.5rem 0;
  background-color: #fff;
  overflow: hidden;
}

@media (min-width: 1024px) {
  #strengths {
    padding: 8rem 0;
  }
}

/* セクション内のコンテナ幅指定 */
#strengths .container {
  max-width: 90.5rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* リスト全体のレイアウト */
.strengths-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 3rem;
}

@media (min-width: 1024px) {
  .strengths-grid {
    gap: 8rem;
    margin-top: 5rem;
  }
}

/* 各カードの基本設定 */
.strength-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

@media (min-width: 1024px) {
  .strength-card {
    flex-direction: row;
    align-items: center;
  }

  /* 2番目のみ左右反転（右画像・左テキスト） */
  .strength-card:nth-child(2) {
    flex-direction: row-reverse;
  }
}

/*--- 画像エリア ---*/
.strength__img {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

@media (min-width: 1024px) {
  .strength__img {
    width: 50%;
    height: 500px;
    flex-shrink: 0;
  }

  /* 1番目：左側の画像を画面端まで広げる */
  .strength-card:nth-child(1) .strength__img {
    margin-left: calc(50% - 50vw);
    width: 50vw;
    height: 500px;
    flex-shrink: 0;
  }

  /* 2番目・3番目：コンテナ幅（90.5rem）内に収める */
  .strength-card:nth-child(2) .strength__img,
  .strength-card:nth-child(3) .strength__img {
    width: 60%;
  }
}

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

/*--- テキストエリア ---*/
.strength__txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1rem 1rem;
}

@media (min-width: 1024px) {
  /* 1番目：テキストは右側、左に余白 */
  .strength-card:nth-child(1) .strength__txt {
    padding: 5rem 0 5rem 5rem;
  }

  /* 2番目：テキストは左側、右に余白 */
  .strength-card:nth-child(2) .strength__txt {
    padding: 5rem 5rem 5rem 0;
  }

  /* 3番目：テキストは右側、左に余白 */
  .strength-card:nth-child(3) .strength__txt {
    padding: 5rem 0 5rem 5rem;
  }
}

/* 装飾（数字・タイトル・本文） */
.strength-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #64748b;
  opacity: 0.15;
  line-height: 1;
}

.strength-title {
  font-size: 1.125rem;
  margin: 1rem 0;
  line-height: 1.4;
  text-align: justify;
}
@media (min-width: 768px) {
    .strength-title {
        font-size: 1.75rem;
        margin: 1.5rem 0;
    }
}

.strength-text {
  font-size: 0.9375rem;
  line-height: 1.8;
  text-align: justify;
}
@media (min-width: 768px) {
    .strength-text {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
  .strength-number { font-size: 5rem; }
}


/* ==========================================================
   SECTION 4: サービスフロー（service-flow）
   ========================================================== */

#service-flow .container {
    max-width: 1400px;
}

/*
  グリッド構成
  SP  : 縦1列。矢印は下向き三角。03→04間の矢印（.flow-arrow--sp-only）も表示。
  PC  : カード・矢印・カード・矢印・カードの5列×2行。
        03→04間の矢印（.flow-arrow--sp-only）は非表示。

  DOM順（nth-child）:
    1  flow-card      STEP01   → col1 row1
    2  flow-arrow     01→02    → col2 row1
    3  flow-card      STEP02   → col3 row1
    4  flow-arrow     02→03    → col4 row1
    5  flow-card      STEP03   → col5 row1
    6  flow-arrow--sp-only 03→04（PCでは display:none）
    7  flow-card      STEP04   → col1 row2
    8  flow-arrow     04→05    → col2 row2
    9  flow-card      STEP05   → col3 row2
    10 flow-arrow     05→06    → col4 row2
    11 flow-card      STEP06   → col5 row2
*/

/* ---- グリッド ---- */
.flow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* ---- 矢印共通（SP：下向き三角） ---- */
.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

/* CSSボーダートリックで塗りつぶし三角形を生成 */
/* SP：下向き三角 */
.flow-arrow::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left:  1rem solid transparent;
    border-right: 1rem solid transparent;
    border-top:   1.1rem solid var(--color-accent);
    opacity: 0.45;
}

/* ---- 各カード ---- */
.flow-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: 3.125rem;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

/* ---- PC レイアウト（1024px以上） ---- */
@media (min-width: 1024px) {

    .flow-grid {
        grid-template-columns: 1fr 2.5rem 1fr 2.5rem 1fr;
        grid-template-rows: auto auto;
        align-items: center;
    }

    /* nth-child による配置 */
    .flow-grid > :nth-child(1)  { grid-column: 1; grid-row: 1; align-self: stretch; }
    .flow-grid > :nth-child(2)  { grid-column: 2; grid-row: 1; }
    .flow-grid > :nth-child(3)  { grid-column: 3; grid-row: 1; align-self: stretch; }
    .flow-grid > :nth-child(4)  { grid-column: 4; grid-row: 1; }
    .flow-grid > :nth-child(5)  { grid-column: 5; grid-row: 1; align-self: stretch; }
    /* nth-child(6) = flow-arrow--sp-only → display:none のためグリッドから除外 */
    .flow-grid > :nth-child(7)  { grid-column: 1; grid-row: 2; align-self: stretch; }
    .flow-grid > :nth-child(8)  { grid-column: 2; grid-row: 2; }
    .flow-grid > :nth-child(9)  { grid-column: 3; grid-row: 2; align-self: stretch; }
    .flow-grid > :nth-child(10) { grid-column: 4; grid-row: 2; }
    .flow-grid > :nth-child(11) { grid-column: 5; grid-row: 2; align-self: stretch; }

    /* PC：矢印は右向き三角に切り替え */
    .flow-arrow::after {
        border-left:   0;
        border-top:    1rem solid transparent;
        border-bottom: 1rem solid transparent;
        border-left:   1.1rem solid var(--color-accent); /* 上書き */
        border-right:  none;
        /* リセットしてから右向きに */
        border: none;
        border-top:    1rem solid transparent;
        border-bottom: 1rem solid transparent;
        border-left:   1.1rem solid var(--color-accent);
        opacity: 0.45;
    }

    /* 2行目間に余白 */
    .flow-grid > :nth-child(7),
    .flow-grid > :nth-child(8),
    .flow-grid > :nth-child(9),
    .flow-grid > :nth-child(10),
    .flow-grid > :nth-child(11) {
        margin-top: 2.5rem;
    }
}

/* ---- 03→04 矢印：SPのみ表示 ---- */
.flow-arrow--sp-only {
    display: flex; /* SP はデフォルト表示 */
}

@media (min-width: 1024px) {
    .flow-arrow--sp-only {
        display: none;
    }
}

/* ---- 画像エリア ---- */
.flow-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 1.25rem;
    overflow: hidden;
    margin-bottom: 1.25rem;
}

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

/* ---- 大きな番号 ---- */
.flow-step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .flow-step-number {
        margin-bottom: 0.75rem;
    }
}

/* ---- タイトル行（見出し＋バッジ） ---- */
.flow-card-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 4rem;
}
@media (min-width: 768px) {
    .flow-card-head {
        margin-bottom: 1.5rem;
    }
}

.flow-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}
@media (min-width: 768px) {
    .flow-title {
        font-size: 1.75rem;
    }
}

.flow-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ---- 内容リスト ---- */
.flow-list {
    display: flex;
    flex-direction: column;
    color: var(--color-text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    flex-grow: 1;
}
@media (min-width: 768px) {
    .flow-list {
        font-size: 1rem;
    }
}

.flow-list li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.flow-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(1em * 1.8 / 2);
    transform: translateY(-50%);
    background-color: #9fa0a0;
    border-radius: 50%;
    width: 8px;
    height: 8px;
}


/* ==========================================================
   SECTION 5: グループ紹介（group）
   ========================================================== */

/* --- グループグリッドレイアウト --- */

/* 画像スロット共通 */
.group-img-slot {
    background-color: #f3f4f6;
    border-radius: 1.5rem;
    overflow: hidden;
}

.group-img-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 縦書きテキストボックス */
.group-vertical-text-box {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.group-text-line {
    display: block;
    line-height: 1.5;
    white-space: nowrap;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

/* PC時：#group の .container 幅制限を解除 */
@media (min-width: 1024px) {
    #group .container {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .group-box-wrapper {
        max-width: 1200px;
        margin-inline: auto;
        padding-inline: 2rem;
    }
}

/* ---- PC レイアウト（1024px以上） ----
   基準：左右グリッド幅 468px、gap 24px、合計 1280px
   スケール係数: min(1, (100vw - 4rem) / 1280px)
   各サイズは 222px・468px を係数倍して clamp で下限を設ける
   --gs  = 小セル1辺 (222px相当)
   --gl  = 大セル1辺 (468px相当)
   --gg  = gap (24px相当)
------------------------------------------------ */
@media (min-width: 1024px) {
    .group-main-wrapper {
        --gg: clamp(12px, 1.875vw, 24px);
        --gs: clamp(140px, calc((100vw - 4rem - 3 * var(--gg) * 3) * 468 / 1232 / 2), 222px);
        --gl: calc(var(--gs) * 2 + var(--gg));

        display: grid;
        grid-template-columns: var(--gl) 1fr var(--gl);
        gap: var(--gg);
        max-width: 1400px;
        height: calc(var(--gl) + var(--gs) + var(--gg));
        margin: 0 auto 4rem;
        padding-inline: 2rem;
        align-items: stretch;
    }
    .group-message {
        max-width: 50rem;
        line-height: 2;
        text-align: justify;
        margin-inline: auto;
        margin-bottom: 4rem;
    }

    /* テキストセクション：中央列 */
    .group-text-section {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* 左グリッド */
    .group-left-grid {
        order: 1;
        display: grid;
        grid-template-columns: var(--gs) var(--gs);
        grid-template-rows: var(--gs) var(--gl);
        gap: var(--gg);
        width: var(--gl);
    }

    /* 右グリッド */
    .group-right-grid {
        order: 3;
        display: grid;
        grid-template-columns: var(--gs) var(--gs);
        grid-template-rows: var(--gs) var(--gs) var(--gs);
        gap: var(--gg);
        width: var(--gl);
    }

    /* 左グリッド画像サイズ */
    .group-slot-1 { width: var(--gs); height: var(--gs); }
    .group-slot-2 { width: var(--gs); height: var(--gs); }
    .group-slot-3 { grid-column: span 2; width: var(--gl); height: var(--gl); }

    /* 右グリッド画像サイズ・配置 */
    .group-slot-4 { width: var(--gs); height: var(--gs); grid-column: 1; grid-row: 1; }
    .group-slot-5 { width: var(--gs); height: var(--gs); grid-column: 1; grid-row: 2; }
    .group-slot-6 { width: var(--gs); height: var(--gl); grid-column: 2; grid-row: 1 / span 2; }
    .group-slot-7 { grid-column: span 2; width: var(--gl); height: var(--gs); grid-row: 3; }
}

/* ---- モバイルレイアウト（1023px以下） ---- */
@media (max-width: 1023px) {
    .group-main-wrapper {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 1.5rem;
        gap: 10px;
    }
    .group-message {
        font-size: 0.9375rem;
        text-align: justify;
        margin-inline: auto;
        margin-bottom: 2.5rem;
    }

    /* テキストセクション：最上部に3列分 */
    .group-text-section {
        grid-column: span 3;
        order: -1;
    }

    .group-vertical-text-box {
        writing-mode: horizontal-tb;
        padding: 0 0 1.5rem;
        text-align: center;
    }

    .group-text-line {
        font-size: clamp(1.2rem, 3vw, 2.25rem);
        white-space: normal;
    }

    /* 左右グリッドを解除して親グリッドに従わせる */
    .group-left-grid,
    .group-right-grid {
        display: contents;
    }

    .group-img-slot {
        border-radius: 1rem;
        aspect-ratio: 1 / 1;
    }

    /* 画像ごとの配置 */
    .group-slot-1 { order: 1; }
    .group-slot-2 { order: 2; }
    .group-slot-6 {
        order: 3;
        grid-column: 3;
        grid-row: span 2;
        aspect-ratio: auto;
        height: 100%;
    }
    .group-slot-3 {
        order: 4;
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: 1 / 1;
    }
    .group-slot-4 { order: 5; grid-column: 3; }
    .group-slot-7 { order: 6; grid-column: span 2; aspect-ratio: 2 / 1; }
    .group-slot-5 { order: 7; grid-column: 3; }
}

/* --- グループ企業一覧ボックス --- */

.group-box {
    background-color: #fdf0f1;
    padding: 2.5rem 2rem 3rem;
}

@media (min-width: 768px) {
    .group-box {
        padding: 4rem 3rem;
    }
}

.group-box-title {
    font-size: 1.125rem;
    font-weight: 700;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .group-box-title {
        margin-bottom: 2rem;
    }
}

/* 企業リスト：2カラム設定 */
.group-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    list-style: none;
    padding: 0;
}

@media (min-width: 992px) {
    .group-list {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 3rem;
    }
}

/* カード全体をリンクにするためのスタイル調整 */
.group-list-item {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
a.group-list-item {
    cursor: pointer;
}

@media (min-width: 480px) {
    .group-list-item {
        flex-direction: row;
        align-items: center;
    }
}

a.group-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ロゴエリア */
.group-logo {
    width: 100%;
    height: 60px;
    min-width: 200px;
    background-color: #f0f0f0;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.875rem 2rem;
    border: 1px solid #eee;
}

@media (min-width: 480px) {
    .group-logo {
        width: 200px;
        margin-bottom: 0;
        margin-right: 1.5rem;
        padding: 0.875rem 1.5rem;
    }
}

.group-list li:nth-child(2) .group-logo {
    padding: 0.25rem 0.5rem;
}

.group-logo--none {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #999;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    padding: 0.25rem;
}

.group-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.group-info {
    flex-grow: 1;
}

.group-company-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.4;
}

/* タグデザイン（リンク機能を削除） */
.group-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.group-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    background-color: #fef2f2;
    color: var(--color-accent);
    white-space: nowrap;
}

/* 外部リンクボタン */
.group-link-wrap {
    text-align: center;
}

.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #333;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
@media (min-width: 768px) {
    .btn-external {
        font-size: 1rem;
        padding: 1rem 2.5rem;
    }
}

.btn-external:hover {
    background-color: var(--color-accent);
}


/* ==========================================================
   SECTION 6: 会社概要（company）
   ========================================================== */

/* リード文 */
.company-lead {
    max-width: 56rem;
    margin-inline: auto;
    margin-top: 1.5rem;
}
.company-lead h3 {
    font-size: 1.125rem;
    line-height: 1.33;
    text-align: center;
    color: var(--color-accent);
	margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .company-lead h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}
.company-lead p {
    font-size: 0.9375rem;
    text-align: justify;
}
@media (min-width: 768px) {
    .company-lead {
        font-size: 1rem;
    }
}

/* 2カラムグリッド */
.company-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 56rem;
    margin-inline: auto;
}

@media (min-width: 768px) {
    .company-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* 左カラム：基本情報 */
.company-info {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 2.5rem;
    padding: 2.5rem;
}

.company-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-accent);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
}
@media (min-width: 768px) {
    .company-name {
        font-size: 1.375rem;
    }
}

.company-dl dt {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.company-dl dd {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .company-dl dd {
        font-size: 1rem;
    }
}

.company-dl dd:last-child {
    margin-bottom: 0;
}

.company-tel {
    font-size: 1.5rem;
    font-weight: 900;
}

/* 右カラム：事業部 */
.company-depts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.company-dept {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 1.875rem;
    padding: 2rem;
}

.company-dept-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
    margin-bottom: 1rem;
}

.company-dept-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--color-text-light);
    font-size: 0.9375rem;
}

.company-dept-list li {
    padding-left: 1rem;
    position: relative;
}

.company-dept-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(1em * 1.8 / 2); 
    transform: translateY(-50%);
    background-color: #9fa0a0;
    border-radius: 50%;
    width: 8px;
    height: 8px;
}


/* ==========================================================
   SECTION 7: 責任者の想い（message）
   ========================================================== */

/* 2カラムレイアウト */
.message-inner {
    max-width: 72rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .message-inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 4rem;
    }
}

/* 写真エリア */
.message-photo-wrap {
    width: 100%;
    max-width: 24rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .message-photo-wrap {
        width: 40%;
    }
}

.message-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 3.75rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 8px solid var(--color-bg-gray);
}

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

.message-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background-color: rgba(234, 51, 65, 0.9);
    backdrop-filter: blur(4px);
    text-align: center;
    color: #fff;
}

.message-photo-role {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 0.25rem;
}
@media (min-width: 1024px) {
    .message-photo-role {
        font-size: 0.8125rem;
    }
}

.message-photo-name {
    font-size: 1.25rem;
    font-weight: 900;
}
@media (min-width: 1024px) {
    .message-photo-name {
        font-size: 1.375rem;
    }
}

/* テキストエリア */
.message-body {
    flex-grow: 1;
}

.message-lead {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
    .message-lead {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

.message-body p {
    font-size: 0.9375rem;
    line-height: 2;
    text-align: justify;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
    .message-body p {
        font-size: 1rem;
    }
}

.message-body p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   SECTION 8a: Instagram（日常の様子）
   ========================================================== */

#instagram {
    background-color: #fdf0f1;
}

#instagram .section-head {
    margin-bottom: 2rem;
}

/* アカウントリンク */
.insta-lead {
    margin-top: 0.75rem;
}

.insta-account-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.insta-account-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ---- グリッド：SP=2列×5行 / PC=5列×2行 ---- */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.375rem;
    max-width: 72rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .insta-grid {
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .insta-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.625rem;
    }
}

/* ---- Smash Balloon Instagram Feed ラッパー ---- */
.insta-feed {
    max-width: 72rem;
    margin-inline: auto;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .insta-feed {
        margin-bottom: 2.5rem;
    }
}

/* ---- Smash Balloon サムネイル角丸 ---- */
/* プラグイン側のクラス（.sbi_item / .sbi_photo_wrap / .sbi_photo）に適用 */
.insta-feed #sb_instagram .sbi_item,
.insta-feed #sb_instagram .sbi_photo_wrap,
.insta-feed #sb_instagram .sbi_photo {
    border-radius: 0.5rem;
    overflow: hidden;
}

.insta-feed #sb_instagram .sbi_photo img {
    border-radius: 0.5rem;
}

/* ---- 各セル ---- */
.insta-item {
    display: block;
    text-decoration: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* 正方形を維持する */
.insta-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-bg-gray);
    overflow: hidden;
}

.insta-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

/* ホバー時オーバーレイ */
.insta-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
    opacity: 0;
}

.insta-item:hover .insta-thumb img {
    transform: scale(1.06);
}

.insta-item:hover .insta-overlay {
    background-color: rgba(0, 0, 0, 0.35);
    opacity: 1;
}

/* ---- もっと見るボタン ---- */
.insta-more {
    text-align: center;
    margin-top: 0.5rem;
}

.btn-insta-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 16px rgba(220, 39, 67, 0.3);
}

.btn-insta-more:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .btn-insta-more {
        font-size: 1rem;
        padding: 1rem 2.5rem;
    }
}


/* ==========================================================
   SECTION 8: お知らせ（news）
   ========================================================== */

#news .section-head {
    margin-bottom: 1rem;
}

/* 一覧リンク */
.news-more {
    text-align: right;
    margin-bottom: 2rem;
    max-width: 64rem;
    margin-inline: auto;
}

.news-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-size: 0.9375rem;
    font-weight: 700;
    transition: opacity 0.2s ease;
}
@media (min-width: 768px) {
    .news-more-link {
        font-size: 1rem;
    }
}

.news-more-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* ニュースリスト・カード関連のスタイルは common.css に集約済み
   （.news-list / .news-item / .news-thumb / .news-body / .news-date / .news-text） */


/* ==========================================================
   SECTION 9: FAQ
   ========================================================== */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* アコーディオン1件 */
.faq-item {
    background-color: var(--color-bg-gray);
    border-radius: 1.875rem;
    overflow: hidden;
}

/* 質問行 */
.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
    color: inherit;
}
@media (min-width: 768px) {
    .faq-question {
        padding: 2rem;
        font-size: clamp(1rem, 2vw, 1.125rem);
    }
}

.faq-q-label {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-right: 0.5rem;
}

.faq-question-text {
    flex: 1;
    text-align: justify;
}

/* 矢印アイコン（CSS で描画） */
.faq-arrow {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.3s ease;
}

.faq-item.is-open .faq-arrow { transform: rotate(180deg); }

/* 回答行ラッパー（grid トリックでアニメーション） */
.faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-item.is-open .faq-answer-wrap {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    overflow: hidden;
}

/* 回答行 */
.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.875rem;
    line-height: 1.9;
    text-align: justify;
}
@media (min-width: 768px) {
    .faq-answer {
        padding: 1.5rem 2rem 2rem;
        font-size: 1rem;
    }
}

.faq-a-label {
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
}


/* ==========================================================
   SECTION 10: CTA・お問い合わせ（contact）
   ========================================================== */

/* 白いカード */
.contact-box {
    max-width: 72rem;
    margin-inline: auto;
    background-color: var(--color-bg-white);
    border-radius: 3.75rem;
    padding: 3.5rem 2rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    text-align: center;
}

@media (min-width: 768px) {
    .contact-box {
        padding: 6rem;
    }
}

#contact .section-head {
    margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
    #contact .section-head {
        margin-bottom: 2rem;
    }
}

.contact-lead {
    font-size: 0.9375rem;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-inline: auto;
}
@media (min-width: 768px) {
    .contact-lead {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
}

/* CTAボタン */
.contact-btn-wrap {
    margin-bottom: 3.5rem;
}
@media (min-width: 768px) {
    .contact-btn-wrap {
        margin-bottom: 4rem;
    }
}

.btn-contact-cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    padding: 1.5rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 12px 30px rgba(234, 51, 65, 0.2);
    transition: transform 0.2s ease;
    text-decoration: none;
}
@media (min-width: 768px) {
    .btn-contact-cta {
        font-size: 1.375rem;
        padding: 1.5rem 3rem;
    }
}

.btn-contact-cta:hover {
    transform: scale(1.04);
}

/* 電話番号エリア */
.contact-tel-wrap {
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) {
    .contact-tel-wrap {
        padding-top: 4rem;
    }
}

.contact-tel-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.contact-tel {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1;
    color: var(--color-text);
    transition: color 0.2s ease;
    margin-bottom: 1rem;
}
@media (min-width: 768px) {
    .contact-tel {
        font-size: 2.5rem;
    }
}

.contact-tel:hover {
    color: var(--color-accent);
}

.contact-person {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-light);
}
@media (min-width: 768px) {
    .contact-person {
        font-size: 0.875rem;
    }
}


/* ==========================================================
   SECTION 13: 国＆卒業生紹介（countries）
   ========================================================== */
#countries {
    padding-bottom: 0;
}
@media (min-width: 768px) {
    #countries {
        padding-bottom: 2rem;
    }
}

#countries .container {
    /*max-width: 1600px;*/
    max-width: 1080px;
}

/* --- 登録国籍ブロック --- */
.countries-block {
    max-width: 56rem;
    margin-inline: auto;
    margin-bottom: 4rem;
    text-align: center;
}

/* countries-heading：中央揃え＋下ライン */
.countries-heading {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.countries-heading::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* voices-heading：中央揃え＋下ライン（countries-heading に合わせる） */
.voices-heading {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}
@media (min-width: 768px) {
    .voices-heading {
        margin-bottom: 2rem;
    }
}

.voices-heading::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.countries-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2.5rem;
}

.country-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
}

.country-flag {
    width: 5rem;
    height: 3.25rem; /* 固定高さで国名の位置を揃える */
    display: flex;
    align-items: center;
    justify-content: center;
}

.flag-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.country-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .country-flag {
        width: 6rem;
        height: 3.875rem;
    }
    .country-name {
        font-size: 0.9375rem;
    }
}

/* --- 外国人材の声ブロック --- */
.voices-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .voices-grid {
        /*grid-template-columns: repeat(3, 1fr);*/
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.voice-card {
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 1.875rem;
    padding: 2rem 1.75rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.voice-quote-mark {
    font-size: 4rem;
    line-height: 0.5;
    color: var(--color-accent);
    font-family: Georgia, serif;
    opacity: 0.25;
    user-select: none;
}

.voice-message {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.5;
}
@media (max-width: 768px) {
    .voice-message {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
}

.voice-body {
    font-size: 0.875rem;
    line-height: 2;
    text-align: justify;
    color: var(--color-text-light);
    flex: 1;
}
@media (max-width: 768px) {
    .voice-body {
        line-height: 1.75;
    }
}

.voice-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
@media (max-width: 768px) {
    .voice-profile {
        gap: 0.5rem;
    }
}

.voice-avatar {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 1rem;
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    overflow: hidden;
}

.voice-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.voice-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.voice-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
}
@media (max-width: 768px) {
    .voice-name {
        font-size: 1rem;
    }
}

.voice-meta {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    text-align: center;
}
@media (max-width: 768px) {
    .voice-meta {
        font-size: 0.75rem;
    }
}


/* ==========================================================
   レスポンシブ補足
   ========================================================== */
@media (max-width: 768px) {
    .contact-box {
        border-radius: 2rem;
    }
    .issues-box {
        border-radius: 2rem;
    }
    .strength-card,
    .flow-card {
        border-radius: 2rem;
    }
}


/* ==========================================================
   Slick Slider カスタム（スマホ：外国人材の声）
   ========================================================== */

@media (max-width: 767px) {

    /* セクション全体の横はみ出しを隠す（前後スライドのクリップ役） */
    #countries {
        overflow: hidden;
    }

    /* voices-block をコンテナ padding 分だけ左右に引き出して画面端にぴったり */
    .voices-block {
        margin-left: calc(-1 * var(--container-padding, 1.25rem));
        margin-right: calc(-1 * var(--container-padding, 1.25rem));
    }

    /* 見出しは中央揃えのため padding-left は不要 */
    .voices-block .voices-heading {
        padding-left: 0;
    }

    /* slick-list のはみ出しを許可して centerMode の前後スライドを見せる */
    .voices-grid .slick-list {
        overflow: visible;
    }

    /* スライド内カードの左右に少し内余白 */
    .voices-grid .slick-slide {
        margin: 0 0.5rem;
        padding: 1.25rem 1.25rem 1.75rem;
    }

    /* ドット */
    .voices-grid .slick-dots {
        position: static;
        margin-top: 1.25rem;
    }

    .voices-grid .slick-dots li button::before {
        font-size: 0.5rem;
        color: var(--color-accent);
        opacity: 0.3;
    }

    .voices-grid .slick-dots li.slick-active button::before {
        opacity: 1;
        color: var(--color-accent);
    }

    /* 矢印ベース（topはJSで slick-list 高さの中央に動的設定） */
    .voices-grid .slick-prev,
    .voices-grid .slick-next {
        top: 40%;
        bottom: auto;
        width: 2.25rem;
        height: 2.25rem;
        background-color: var(--color-accent);
        border-radius: 50%;
        z-index: 10;
        transition: background-color 0.2s ease, transform 0.2s ease;
    }

    /* hover・focus 時に slick-theme の background:transparent を上書きして矢印を維持 */
    .voices-grid .slick-prev:hover,
    .voices-grid .slick-prev:focus,
    .voices-grid .slick-next:hover,
    .voices-grid .slick-next:focus {
        background-color: #a5111f;
        outline: none;
    }

    /* デフォルトアイコン（::before）を消してSVGで上書き */
    .voices-grid .slick-prev::before,
    .voices-grid .slick-next::before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 0.75rem;
        opacity: 1;
    }

    .voices-grid .slick-prev::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'/%3E%3C/svg%3E");
    }

    .voices-grid .slick-next::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
    }

    /* 矢印の左右位置：スライダー両端に配置 */
    .voices-grid .slick-prev {
        left: 0.5rem;
    }

    .voices-grid .slick-next {
        right: 0.5rem;
    }

    /* 非アクティブスライドを薄く小さくしてフォーカス感を演出 */
    .voices-grid .slick-slide:not(.slick-center) .voice-card {
        opacity: 0.5;
        transform: scale(0.96);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .voices-grid .slick-slide.slick-center .voice-card {
        opacity: 1;
        transform: scale(1);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    /* ドット */
    .voices-grid.slick-slider {
        padding-bottom: 2rem;
    }
    .slick-dotted.slick-slider {
        margin: 0 !important;
    }

    .voices-grid .slick-dots {
        bottom: 0;
        position: absolute;
    }
}


/* ==========================================================
   BANNER: 介護9人
   ========================================================== */

#banner-kaigo9jin {
    background-color: #fff;
    padding: 2.5rem 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    #banner-kaigo9jin {
        padding: 3rem 2rem;
    }
}

.banner-link {
    display: inline-block;
    max-width: 560px;
    width: 100%;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.banner-link:hover {
    opacity: 0.88;
    transform: translateY(-2px);
}

.banner-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-size: 1rem;
    font-weight: 700;
    color: #0463a4;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.banner-caption-bracket {
    flex-shrink: 0;
    line-height: 1;
    align-self: center;
}

.banner-caption-text {
    /* スマホ：改行してもブラケットは縦中央に固定される */
}

@media (min-width: 768px) {
    .banner-caption {
        font-size: 1.125rem;
    }
}
