@charset "utf-8";

/* 最初のセクションだけ margin-top を消す */
#link1 {
    margin-top: 0 !important;
    padding-top: calc(var(--content-space-l) / 2); /* ← 上品に少し余白を残す */
}



/* link1 の画像：テキスト比率を 6:4 にする */
#link1 .flex1 {
    display: flex;
    align-items: center;
    gap: 20px;
}

#link1 .flex1 .img {
    flex: 0 0 60%;   /* ← 画像を60%に固定 */
}

#link1 .flex1 .text {
    flex: 0 0 40%;   /* ← テキストを40%に固定 */
}

/* link1 画像の角丸＋ふんわり浮き上がるフォーカスIN演出 */
#link1 .img img {
    border-radius: 14px;           /* 角を丸く */
    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease,
        filter 0.4s ease;
    display: block;
}

/* ホバー時のふんわり浮き上がり */
#link1 .img img:hover {
    transform: translateY(-6px);   /* 少し浮く */
    box-shadow: 0 12px 28px rgba(0,0,0,0.18); /* 柔らかい影 */
    filter: brightness(1.05);      /* ほんのり明るく */
}

/* サービスカード全体のレイアウト */
.service-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* サービスカード共通レイアウト */
.service-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* カード本体 */
.service-cards .card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-align: center;
}

/* ホバー時のふんわり浮き上がり */
.service-cards .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* アイコン */
.service-cards .card .icon {
    font-size: 42px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* タイトル */
.service-cards .card h4 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

/* テキスト */
.service-cards .card p {
    line-height: 1.6;
}

/* 画像の角丸＋ふんわり浮き上がる演出 */
#link3 .img img {
    border-radius: 14px;
    transition: 
        transform 0.4s ease,
        box-shadow 0.4s ease,
        filter 0.4s ease;
    display: block;
}

#link3 .img img:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    filter: brightness(1.05);
}
#link3 .flex1 {
    gap: 20px; /* 16〜24pxが上品でおすすめ */
}
#link3 .flex1 .text {
    flex: 0 0 40%;
}

#link3 .flex1 .img {
    flex: 0 0 60%;
}

/* ============================
   導入の流れ：横並びカード
   ============================ */
.flow-card p {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;     /* ← 2行まで表示 */
    -webkit-box-orient: vertical;
    line-height: 1.5;
}

/* 横並びステップ全体 */
.flow-steps {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap; /* ← 折り返し防止 */
    margin-top: 40px;
    justify-content: space-between;
}

/* 各ステップ（カード風） */
.flow-steps .list {
    flex: 1;
    background: #fff;
    border-radius: 14px;
    padding: 18px 16px; /* ← コンパクト */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.35s ease;
    text-align: center;
    min-width: 180px; /* ← 折り返し防止のための最低幅 */
}

/* ホバー時のふんわり浮き上がり */
.flow-steps .list:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* 番号（01〜04） */
.flow-steps .list .no {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    white-space: nowrap;
}

/* アイコン */
.flow-steps .list .image i {
    font-size: 32px; /* ← コンパクトに調整 */
    color: var(--accent-color);
    margin-bottom: 12px;
}

/* タイトル（折り返し防止） */
.flow-steps .list h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    white-space: nowrap;
}

/* 説明文（折り返し許可＋2行まで表示） */
.flow-steps .list p {
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;          /* ← 折り返し許可 */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;         /* ← 2行まで表示 */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


#skyjapan .skyjapan-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

#skyjapan .logo img {
    width: 200px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

#skyjapan .text h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

#skyjapan .text p {
    line-height: 1.6;
    margin-bottom: 10px;
}

#skyjapan .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s ease;
    margin-right: 10px; /* ボタン間の余白を設定 */
}

#skyjapan .btn:hover {
    opacity: 0.8;
}

/* ============================
   セクション背景：白と #f1f4f1 の交互設定
   ============================ */
/* 奇数セクション：白背景 */
section:nth-of-type(odd) {
    background-color: #ffffff;
}

/* 偶数セクション：淡いグリーン背景＋余白復活 */
section:nth-of-type(even) {
    background-color: #f1f4f1;
    padding-top: 60px;      /* ← 上余白を復活 */
    padding-bottom: 60px;   /* ← 下余白を復活 */
}

/* 背景パーツを無効化（にじみ防止） */
section::before,
section::after {
    display: none !important;
}

/* スマホ（〜768px）でカードを縦並びにする */
@media screen and (max-width: 768px) {

    /* サービスカード（3つ並び）を縦にする */
    .service-cards {
        display: flex;
        flex-direction: column;
        gap: 24px; /* カード間の余白 */
    }

    .service-cards .card {
        width: 100%;
    }

    /* 強みのカード（list）も縦にする */
    .list {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* ボタンを横幅いっぱいに */
    .list .btn.inverse {
        width: 100%;
        margin-top: 16px;
    }

    .list .btn.inverse a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    #link5 .flow-steps {
        display: flex;
        flex-direction: column;
        gap: 24px; /* カード間の余白 */
    }

    #link5 .list {
        width: 100%;
        display: flex;
        flex-direction: row; /* アイコンとテキストは横並びのまま */
        align-items: center;
        gap: 16px;
    }

    #link5 .list .image {
        width: 60px;
        flex-shrink: 0;
        text-align: center;
    }

    #link5 .list .text {
        flex: 1;
    }

}
