:root {
    --key-color: #2fb6a6;
    --text-color: #333;
    --bg-light: #f9fafb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: var(--text-color);
    line-height: 1.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }
}

/* Header */
.header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
}

.header-inner {
    width: 95%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 1200px) {
    .header-inner {
        width: 100%;
        padding: 0 24px;
    }
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
}

.nav-list a:hover {
    border-bottom: #279d8f 2px solid;
    color: var(--key-color);
    transition: 0.2s;
}

/* ===== Hamburger Menu ===== */

/* PCでは非表示 */
.hamburger {
    display: none;
    z-index: 110; /* メニューより上に配置 */
}

/* 1024px以下（タブレット・スマホ）の設定 */
@media (max-width: 1024px) {
    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
    }

    /* 三本線のデザイン */
    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--key-color);
        transition: all 0.4s;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }
    .hamburger span:nth-child(2) {
        top: 11px;
    }
    .hamburger span:nth-child(3) {
        bottom: 0;
    }

    /* メニュー開閉時の三本線の動き（×印になる） */
    .hamburger.is-active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* ナビゲーションを画面いっぱいに広げる */
    .nav {
        position: fixed;
        top: 0;
        right: -100%; /* 最初は画面の外に隠す */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: all 0.5s;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* メニューが開いた時 */
    .nav.is-active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .nav-list a {
        font-size: 20px;
        font-weight: bold;
    }
}

.shadow-yellow {
    box-shadow: yellow 4px 4px;
}

/* Sections */
section {
    padding: 100px 0;
    background: linear-gradient(180deg, #f0f9f8 0%, #ffffff 100%);
}

section.bg-lightgreen {
    background: linear-gradient(136deg, #ffffff 0%, #f0f9f8 100%);
}

.hero {
    text-align: center;
    padding: 140px 0;
    /* border-bottom: 4px solid rgba(33, 33, 33, 0.05); */
    background: linear-gradient(180deg, #f0f9f8 0%, #ffffff 100%);
}

.hero-title {
    font-size: 42px;
    display: inline-block;
    color: #8b4513;
    margin-bottom: 24px;
    font-weight: bold;
}

.section-cont {
    width: 840px;
    height: auto;
    margin-inline: auto;
    margin-bottom: 120px;
}

@media (max-width: 840px) {
    .section-cont {
        width: 100%;
        margin-bottom: 60px;
    }
}

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

    .hero-title {
        font-size: 29px;
    }

    .hero-text {
        text-align: left;
    }

    section {
        padding: 40px 16px;
    }
}

/* ===== セクションタイトルデザイン ===== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column-reverse; /* 英語を上、日本語を下にするため */
    align-items: center;
    gap: 8px;
}

/* 日本語タイトル */
.ja-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 20px; /* アイコンとの距離 */
}

/* 英語タイトル（小さく上に配置） */
.en-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--key-color); /* #2fb6a6 */
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* 日本語タイトルの左右のアイコン設定 */
.ja-title::before,
.ja-title::after {
    content: ""; /* 文字は入れないので空にする */
    display: inline-block;
    width: 40px; /* アイコンを表示したい幅（画像に合わせて調整してください） */
    height: 40px; /* アイコンを表示したい高さ */

    /* 画像の指定 */
    background-image: url("../img/ttl-icon.svg"); /* ★ここに画像のパスを入れてください */
    background-repeat: no-repeat;
    background-size: contain; /* 枠の中に画像を収める */
    background-position: center;

    /* アイコンの上下位置がズレる場合はここで微調整 */
    vertical-align: middle;
}

/* PC：日本語タイトル */
.ja-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 20px; /* アイコンと文字の間の距離 */
}

/* スマホ表示でのアイコンサイズ調整 */
@media (max-width: 600px) {
    .ja-title::before,
    .ja-title::after {
        width: 30px; /* スマホでは少し小さく */
        height: 30px;
    }
    .ja-title {
        font-size: 24px;
        gap: 10px;
    }
}

/* ふわふわ揺れるアニメーションの定義 */
@keyframes fuwafuwa {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* アイコンにアニメーションを適用 */
.ja-title::before,
.ja-title::after {
    animation: fuwafuwa 3s ease-in-out infinite;
}

/* 左右で少しタイミングをずらすとより自然です */
.ja-title::after {
    animation-delay: 0.5s;
}

.section-subTtl {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-subTtl::before {
    content: ""; /* 文字は入れないので空にする */
    display: inline-block;
    width: 40px; /* アイコンを表示したい幅（画像に合わせて調整してください） */
    height: 40px; /* アイコンを表示したい高さ */

    /* 画像の指定 */
    background-image: url("../img/ttl-icon.svg"); /* ★ここに画像のパスを入れてください */
    background-repeat: no-repeat;
    background-size: contain; /* 枠の中に画像を収める */
    background-position: center;

    /* アイコンの上下位置がズレる場合はここで微調整 */
    vertical-align: middle;
}

@media (max-width: 600px) {
    .section-subTtl {
        font-size: 18px;
        gap: 10px;
    }

    .section-subTtl::before {
        width: 30px; /* スマホでは少し小さく */
        height: 30px;
    }
}

/* 波を表示したいセクションの設定 */
.bg-dot {
    position: relative;
    background-color: #ffffff;
    /* ドット背景の設定はそのまま */
    background-image: radial-gradient(
        rgba(47, 182, 166, 0.1) 15%,
        transparent 15%
    );
    background-size: 40px 40px;

    /* 波の高さ分、上下に余白を確保 */
    padding-top: 100px;
    padding-bottom: 132px;
}

/* 上側の波 */
.bg-dot::before {
    content: "";
    position: absolute;
    top: -32px;
    left: 0;
    width: 100%;
    height: 32px; /* 波の高さに合わせて調整 */
    background-image: url("../img/wave-top.svg"); /* ★SVG画像のパス */
    background-repeat: repeat-x; /* 横方向に繰り返す */
    background-size: auto 32px; /* 高さを固定し、幅は自動（または25%など） */
    z-index: 1;
}

/* 下側の波（画像を反転させて使用する場合） */
.bg-dot::after {
    content: "";
    position: absolute;
    bottom: -32px;
    left: 0;
    width: 100%;
    height: 32px;
    background-image: url("../img/wave-top.svg"); /* ★同じ画像を使用 */
    background-repeat: repeat-x;
    background-size: auto 32px;
    transform: rotate(180deg); /* 180度回転させて下側に合わせる */
    z-index: 1;
}

@media (max-width: 600px) {
    .bg-dot {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

/* 下側の波（画像を反転させて使用する場合） */
.edge-wave {
    position: relative;
}
.edge-wave::after {
    content: "";
    position: absolute;
    bottom: -32px;
    left: 0;
    width: 100%;
    height: 32px;
    background-image: url("../img/wave-top.svg"); /* ★同じ画像を使用 */
    background-repeat: repeat-x;
    background-size: auto 32px;
    transform: rotate(180deg); /* 180度回転させて下側に合わせる */
    z-index: 1;
}

/* ===== News Section ===== */
.news-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #e5e7eb; /* 一番上の線 */
}

.news-item {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    border-bottom: 1px solid #e5e7eb; /* 区切り線 */
    transition: background-color 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    background-color: #fbfbf9;
}

.news-date {
    font-size: 14px;
    color: #888;
    width: 120px; /* 日付の幅を固定して揃える */
    flex-shrink: 0;
}

.news-content {
    flex-grow: 1; /* タイトルが伸びるように設定 */
    font-size: 16px;
    font-weight: 500;
    padding: 0 20px;
    /* 長すぎるタイトルを「...」で省略したい場合は以下を追加 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* ===== ラベルの基本設定 ===== */
.news-label {
    display: inline-block;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    white-space: nowrap;
    text-align: center;
}
.label-important {
    background-color: #e74c3c;
    color: #fff;
} /* 赤色 */
.label-normal {
    background-color: var(--key-color);
    color: #fff;
} /* キーカラー */

/* ===== トップページ用の調整 ===== */
.news-item .news-label {
    width: 80px; /* 幅を揃える */
    margin-right: 15px;
}

/* ===== 一覧ページ用のデザイン ===== */
.news-archive {
    max-width: 900px;
    margin: 0 auto;
}

.news-archive-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 30px 0;
}

.news-archive-item a {
    text-decoration: none;
    color: var(--key-color);
    /* display: block; */
}

.news-archive-item a:hover {
    color: var(--key-color);
    text-decoration: underline;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.news-archive-title {
    font-size: 20px;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.news-archive-text {
    font-size: 15px;
    color: #666;
    /* margin: 0;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2; /* 2行で省略 */
    /*-webkit-box-orient: vertical;
    overflow: hidden; */
}

/* スマホ対応（一覧ページ） */
@media (max-width: 600px) {
    .news-archive-item {
        padding: 20px 0;
    }
    .news-archive-title {
        font-size: 18px;
    }
}

/* 矢印（CSSで描画） */
.news-arrow {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.news-arrow::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 5px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--key-color);
    border-right: 2px solid var(--key-color);
    transform: translateY(-50%) rotate(45deg);
}

/* スマホ対応の修正 */
@media (max-width: 600px) {
    .news-item {
        flex-wrap: wrap; /* 日付を上に、タイトル・矢印を下に配置 */
        padding: 16px 5px;
        position: relative; /* 矢印の配置基準 */
    }

    .news-date {
        width: 64%; /* 日付を一行丸々使う */
        margin-bottom: 8px;
        font-size: 13px;
    }

    .news-content {
        padding: 0;
        width: calc(100% - 30px); /* 矢印のスペース（30px）を除いた幅を確保 */
        font-size: 15px;
        line-height: 1.5;
        /* 折り返しを許可する場合（タイトルを全部見せたい場合） */
        white-space: normal;
        overflow: visible;
        display: -webkit-box;
        line-clamp: 2; /* 2行まで表示してそれ以上は「...」 */
        -webkit-line-clamp: 2; /* 2行まで表示してそれ以上は「...」 */
        -webkit-box-orient: vertical;
    }

    .news-arrow {
        width: 20px;
        margin-left: auto; /* タイトルの右側に固定 */
    }
}

/*===== top about =====*/
/* ===== Media Component (ZIG-ZAG) ===== */
.media-container {
    display: flex;
    flex-direction: column;
    gap: 80px; /* アイテム間の距離 */
    margin-top: 60px;
}

.media-item {
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
    gap: 60px;
}

/* 偶数番目（または特定のクラス）を反転 */
.media-item.media-reverse {
    flex-direction: row-reverse;
}

.media-image {
    flex: 1;
    overflow: hidden;
    border-radius: 20px; /* 子どもらしい角丸 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.media-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.media-item:hover .media-image img {
    transform: scale(1.05); /* ホバー時に少しズーム */
}

.media-content {
    flex: 1;
}

.media-heading {
    font-size: 24px;
    font-weight: 700;
    color: var(--key-color);
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

/* タイトルの横にアクセントの棒を入れる */
.media-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--key-color);
    border-radius: 2px;
}

.media-text {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

/* スマホ表示対応 */
@media (max-width: 768px) {
    .media-container {
        gap: 50px;
    }

    .media-item,
    .media-item.media-reverse {
        flex-direction: column; /* 縦並びにする */
        gap: 30px;
    }

    .media-image {
        width: 100%;
    }

    .media-heading {
        font-size: 20px;
    }
}

/* Enter */
/* ===== Flow Step Section ===== */
.flow-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.flow-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: transform 0.3s ease;
}

.flow-item:hover {
    transform: translateY(-5px);
}

.flow-header {
    padding: 24px 20px 15px;
    text-align: center;
}

.step-label {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.flow-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #333;
}

.flow-body {
    padding: 0 20px 24px;
}

.flow-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Stepごとの色分け設定 */
/* Step 01: キーカラー */
.step-01 {
    border-color: #2fb6a6;
}
.step-01 .step-label {
    background: #2fb6a6;
}

/* Step 02: オレンジ（元気） */
.step-02 {
    border-color: #ff9f43;
}
.step-02 .step-label {
    background: #ff9f43;
}

/* Step 03: ブルー（信頼） */
.step-03 {
    border-color: #54a0ff;
}
.step-03 .step-label {
    background: #54a0ff;
}

/* Step 04: ピンク（安心・愛情） */
.step-04 {
    border-color: #ff6b6b;
}
.step-04 .step-label {
    background: #ff6b6b;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .flow-container {
        grid-template-columns: 1fr; /* 1列に */
        gap: 20px;
    }
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature {
    padding: 32px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    background-color: #fff;
}

/* ===== about ===== */

.floor-map {
    display: block;
    width: 100%;
    height: auto;
    margin-inline: auto;
}

.gmap {
    width: 100%;
    height: 600px;
}

.ly-table {
    width: 600px;
    height: auto;
    margin-inline: auto;
    margin-bottom: 60px;
    padding: 40px;
    border-collapse: collapse;
    display: block;
}

.ly-table th,
td {
    border-bottom: 1px solid #333;
    padding: 10px;
}

.ly-table th {
    width: 120px;
    letter-spacing: 2px;
}

.ly-table td {
    width: 480px;
}

.box-container {
    width: 720px;
    height: auto;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.box-item {
    border-radius: 8px;
    background-color: #fff;
    width: 340px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.box-title {
    background-color: var(--key-color);
    color: #fff;
    font-weight: 700;
    text-align: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 8px;
    margin: 0;
}

.box-summary {
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 720px) {
    .ly-table {
        width: 100%;
        margin-inline: 0;
        margin-bottom: 60px;
        padding: 0;
    }

    .ly-table th {
        width: 100%;
        letter-spacing: 2px;
        display: block;
        text-align: left;
        background-color: var(--key-color);
        color: #fff;
        border-bottom: none;
    }

    .ly-table td {
        width: 100%;
        display: block;
        border-bottom: none;
    }

    .box-container {
        width: 100%;
        margin-inline: 0;
        display: flex;
        justify-content: center;
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .floor-map {
        width: 100%;
    }

    .gmap {
        height: 400px;
    }
}

/* 1日の過ごし方 */
/* ===== Timeline ===== */
.timeline {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
    padding-left: 40px; /* 左側に線のスペースを確保 */
}

/* 中央を通る縦線 */
.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: #e0f2f1; /* 線の色（キーカラーの薄い色） */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* タイムライン上のドット */
.timeline-item::before {
    content: "";
    position: absolute;
    left: -46px; /* 線の中心に合わせる調整 */
    top: 5px;
    width: 16px;
    height: 16px;
    background-color: var(--key-color); /* キーカラー #2fb6a6 */
    border: 4px solid #fff;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 2px var(--key-color);
}

.timeline-time {
    font-weight: 700;
    color: var(--key-color);
    font-size: 18px;
    margin-bottom: 8px;
}

.timeline-content {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.timeline-content p {
    margin: 0;
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

/* スマホ対応 */
@media (max-width: 600px) {
    .timeline {
        padding-left: 30px;
    }
    .timeline-item::before {
        left: -36px;
    }
    .timeline-content {
        padding: 20px;
    }
}

/* Education */
/* 下層ページヒーロー */
.page-hero {
    background: var(--key-color);
    color: #fff;
    text-align: center;
    padding: 60px 0;
}
.page-title {
    font-size: 32px;
    margin: 0;
}

/* プログラムリード文 */
.program-lead {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #555;
}

/* 複数画像ギャラリー */
.media-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
}
.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}
.sub-imgs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sub-imgs img {
    width: 100%;
    height: calc(50% - 5px);
    object-fit: cover;
    border-radius: 10px;
}

/* チェックリスト */
.check-list {
    list-style: none;
    padding: 0;
}
.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--key-color);
    font-weight: bold;
    font-size: 20px;
}

/* 有料英語チラシ (1:1.414比率) */
.premium-banner {
    max-width: 600px;
    margin: 0 auto;
}
.flyer-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.414; /* チラシの比率を維持 */
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

/* スマホ対応の画像配置調整 */
@media (max-width: 768px) {
    .media-gallery {
        grid-template-columns: 1fr;
    }
    .sub-imgs {
        flex-direction: row;
    }
    .sub-imgs img {
        height: auto;
        width: calc(50% - 5px);
    }
}
/* Enter */
/* ===== Document Download Styles ===== */
.download-intro {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
}

.doc-group {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.doc-group h3 {
    font-size: 18px;
    border-bottom: 2px solid var(--key-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-icon {
    font-size: 10px;
    background: #888;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

.doc-list {
    list-style: none;
    padding: 0;
}

/* リスト全体の整列設定 */
.doc-list li {
    margin-bottom: 15px;
}

.doc-list a {
    text-decoration: none;
    color: #444;
    font-size: 15px;
    display: flex; /* フレックスボックスを使用 */
    align-items: center; /* 垂直中央揃え */
    transition: 0.2s;
    line-height: 1.4;
}

/* すべてのアイコン共通の「箱」の設定 */
.doc-list a::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* サイズを固定することで文字の開始位置を揃える */
    width: 32px;
    height: 32px;
    margin-right: 12px; /* アイコンと文字の間隔 */

    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    flex-shrink: 0; /* 画面が狭くなってもアイコンを潰さない */
}

/* PDF用：赤色のラベル */
.doc-list a:not(.type-word):not(.type-excel)::before {
    content: "PDF";
    background-color: #e74c3c; /* PDFらしい赤 */
    color: #fff;
}

/* Word用：青色のラベル */
.doc-list a.type-word::before {
    content: "W";
    background-color: #2b579a;
    color: #fff;
}

/* Excel用：緑色のラベル */
.doc-list a.type-excel::before {
    content: "X";
    background-color: #217346;
    color: #fff;
}

/* ホバー時の変化 */
.doc-list a:hover {
    color: var(--key-color);
}
.doc-list a:hover::before {
    filter: brightness(1.1); /* 少し明るくして反応を出す */
    content: "↓";
}

/* スマホ対応 */
@media (max-width: 600px) {
    .document-grid {
        grid-template-columns: 1fr;
    }
    .doc-group {
        padding: 20px;
    }
}

/* FAQ (Accordion) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-question {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}
.faq-question::after {
    content: "+";
    color: var(--key-color);
}
.faq-item.is-active .faq-question::after {
    content: "-";
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--bg-light);
}
.faq-answer p {
    padding: 0 20px 24px;
    margin: 0;
}

.telnum {
    font-size: 40px;
    font-weight: bold;
    color: var(--key-color);
    display: inline-block;
    margin-bottom: 24px;
}

.hp-txt-c {
    text-align: center;
}

@media (max-width: 600px) {
    .telnum {
        font-size: 32px;
        margin-bottom: 16px;
    }
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}
.btn-primary {
    background: var(--key-color);
    color: #fff !important;
}

/* ===== 詳しく見るボタン（共通） ===== */
.section-link {
    text-align: center; /* 中央に配置 */
    margin-top: 40px; /* 上に余白を作る */
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 16px 32px;
    background-color: var(--key-color); /* #2fb6a6 */
    color: #fff;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(47, 182, 166, 0.2);
}

/* 矢印（→）のアイコンを擬似要素で追加 */
.btn-more::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* ホバー時の動き */
.btn-more:hover {
    background-color: #279d8f; /* 少し濃くする */
    transform: translateY(-2px); /* 少し浮く */
    box-shadow: 0 6px 20px rgba(47, 182, 166, 0.3);
}

.btn-more:hover::after {
    transform: translateX(5px); /* 矢印が右に動く */
}

/* スマホ表示でのサイズ調整 */
@media (max-width: 600px) {
    .btn-more {
        /* width: 100%; スマホでは押しやすく横幅いっぱいに */
        padding: 14px 24px;
    }
}

/* ===== 詳しく見るボタン（アウトライン版） ===== */
.btn-more.btn-outline {
    background-color: transparent; /* 背景を透明に */
    border: 2px solid var(--key-color); /* キーカラーの枠線 */
    color: var(--key-color); /* 文字色をキーカラーに */
    box-shadow: none; /* 最初は影をなしに */
}

/* ホバー時の動き */
.btn-more.btn-outline:hover {
    background-color: var(--key-color); /* 背景を塗りつぶす */
    color: #fff; /* 文字を白に */
    box-shadow: 0 4px 15px rgba(47, 182, 166, 0.2);
}

/* 矢印（→）の色調整（ホバー前） */
.btn-more.btn-outline::after {
    color: var(--key-color);
}

/* ホバー時に矢印の色も白くする */
.btn-more.btn-outline:hover::after {
    color: #fff;
}

/* ===== Footer ===== */
.footer {
    background-color: #f9fafb; /* 薄いグレー背景 */
    padding: 60px 0 0; /* 下の余白はコピーライトで調整 */
    border-top: 1px solid #e5e7eb;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
}

/* 左側ブロック */
.footer-info {
    flex: 1;
}

.footer-logo {
    width: 320px;
    height: auto;
    margin-bottom: 20px;
}

.footer-address {
    font-style: normal;
    color: #666;
    line-height: 1.8;
    font-size: 15px;
}

.footer-tel {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-top: 10px;
}

/* 右側：メニュー */
.footer-nav {
    flex: 2;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に並べる */
    gap: 16px 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu a {
    font-size: 14px;
    color: #444;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--key-color);
    text-decoration: underline;
}

/* コピーライトエリア */
.footer-copy {
    background-color: #fff;
    padding: 24px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-copy p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* スマホ対応 */
@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column; /* 縦並びに */
        padding: 32px 16px;
    }

    .footer-menu {
        grid-template-columns: repeat(2, 1fr); /* 2列に */
    }
}

@media (max-width: 480px) {
    .footer-menu {
        grid-template-columns: 1fr; /* 1列に */
    }
}

#lottie-logo {
    width: 650px; /* または 300px など */
    height: 455px; /* ここが 0 だと何も表示されません */
    margin-inline: auto;
}

@media (max-width: 650px) {
    #lottie-logo {
        width: 100%; /* または 300px など */
        height: 250px; /* ここが 0 だと何も表示されません */
        margin-inline: auto;
    }
}

.sp {
    display: none;
}

.mb_xl {
    margin-bottom: 200px;
}

@media (max-width: 1024px) {
    .sp {
        display: block;
    }

    .pc {
        display: none;
    }
}
