@charset "utf-8";

:root {
    --header-height: 80px;
}

/* アンカー到達時に余白を疑似要素で作る */
:target::before {
    content: "";
    display: block;
    height: var(--header-height);
    margin-top: calc(-1 * var(--header-height));
}

.l-container {
    width: 768px;
    margin: 0 auto;
}

.c-heading-lv2 {
    color: #404040;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}

.c-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.u-text-center {
    text-align: center;
}

.c-heading-lv4 {
    font-weight: bold;
    font-size: 18px;
    color: #1A2D4E;
}

/* ==========================================================================
   Header (ヘッダー)
   ========================================================================== */

.p-yagibuddy-header {
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    /* 上部に固定 */
    top: 0;
    z-index: 100;
}

.p-yagibuddy-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴエリア */
.p-yagibuddy-header__logo {
    margin: 0;
}

.p-yagibuddy-header__logo img {
    height: 40px;
    /* ロゴの大きさに合わせて調整 */
    width: auto;
}

.p-yagibuddy-header__logo span {
    display: block;
    font-size: 10px;
    color: #1A2D4E;
    font-weight: bold;
    line-height: 1;
    margin-top: 5px;
}

/* ナビゲーション */
.p-yagibuddy-header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.p-yagibuddy-header__nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.p-yagibuddy-header__nav-link {
    text-decoration: none;
    color: #1A2D4E;
    font-size: 0.95rem;
    font-weight: bold;
    transition: color 0.3s;
}

.p-yagibuddy-header__nav-link:hover {
    color: #005bac;
    /* ホバー時はメインの青 */
}

/* ヘッダー内CTAボタン */
.c-btn--header {
    background-color: #005bac;
    /* 指定の青色 */
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-block;
}

.c-btn--header:hover {
    background-color: #004a8d;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 91, 172, 0.2);
}

.c-btn {
    background: #1A2D4E;
    color: #fff;
    font-weight: bold;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s;
}

.c-btn:hover {
    background-color: #004a8d;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 91, 172, 0.2);
}

.p-hero {
    background-image: url("../img/yagibuddy/heroimg.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 55vh;
}

.p-hero__inner {
    position: relative;
}

.p-hero__inner::after {
    position: absolute;
    content: "";
    background-image: url("../img/yagibuddy/decoback03.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    right: -30px;
    bottom: -40vh;
    width: 160px;
    height: 135px;
}

.p-hero__content {
    position: relative;
    top: 30px;
    left: -150px;
}

.p-hero__h2 {
    display: inline-block;
    font-size: 30px;
    font-weight: bold;
    padding: 10px 20px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #FFB346, #E6F2FF);
}

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

.p-message {
    margin-bottom: 80px;
}

.p-message__title {
    color: #404040;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.p-message__sub {
    color: #404040;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
}

.p-message__body {
    max-width: 800px;
    margin: 0 auto 50px;
}

/* 変更1: コンテナを確実に見えるように */
.gradient-line-wrap {
    position: relative;
    width: 100%;
    height: 40px;
    /* 十分な太さに一時的に拡大 */
    overflow: hidden;
    top: 60px;
}

/* 変更2: グラデーションを一旦単色に（見えることを優先） */
.gradient-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    width: 0;
    background: linear-gradient(to right,
            /* 左端を少し不透明にして「早めに見える」ように */
            rgba(230, 242, 255, 0.85) 0%,
            /* #E6F2FF */
            rgba(230, 242, 255, 1.0) 15%,
            /* #E6F2FF しっかり見せる帯 */
            rgba(254, 181, 75, 0.9) 65%,
            /* #FEB54B へ滑らかに移行 */
            rgba(254, 181, 75, 1.0) 100%
            /* #FEB54B 終端を強めに */
        );
    will-change: width;
    z-index: -1;
}


/* ==========================================================================
   Concept Section (暮らしを彩る、ヤギバディという選択) - 背景グラデーション版
   ========================================================================== */

.p-concept {
    padding: 80px 0;
    margin-bottom: 80px;
}

.p-concept-card {
    position: relative;
    margin-bottom: 100px;

    opacity: 0;
    transform: translateY(18px);
    transition: opacity 500ms ease, transform 500ms ease, box-shadow 160ms ease;
    will-change: opacity, transform;
}

/* 表示状態：ふわっと（フェード＋スライドイン） */
.p-concept-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 連続してふわっと表示（順番に遅延） */
.p-concept-card:nth-of-type(1) {
    transition-delay: 0ms;
}

.p-concept-card:nth-of-type(2) {
    transition-delay: 120ms;
}

.p-concept-card:nth-of-type(3) {
    transition-delay: 240ms;
}

/* 動きを減らすOS設定への配慮 */
@media (prefers-reduced-motion: reduce) {
    .p-concept-card {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

.p-concept-card::before {
    position: absolute;
    content: "";
    background-image: url(../img/yagibuddy/p-concept01.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 475px;
    height: 367px;
    left: -300px;
    top: -20px;
    z-index: -1;
}

.p-concept-card:nth-of-type(2)::before {
    background-image: url(../img/yagibuddy/p-concept02.png);
    left: auto;
    right: -300px;
}

.p-concept-card:nth-of-type(3)::before {
    background-image: url(../img/yagibuddy/p-concept03.png);
}

.p-concept-card:last-child {
    margin-bottom: 0;
}

.p-concept-card--support {
    text-align: right;
}

.p-concept-01 {
    position: relative;
    width: 568px;
    left: 200px;
}

.p-concept-02 {
    position: relative;
    width: 568px;
}

/* 「ここがポイント」ラベル */
.p-concept-card__label {
    display: inline-block;
    align-self: flex-start;
    background-color: #1A2D4E;
    color: #F9F7F2;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 10px;
}

/* カードの見出し（背景グラデーション） */
.p-concept-card .c-heading-lv3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding: 10px 20px;
    color: #ffffff;
    display: inline-block;
}

/* 各カード個別の背景グラデーション指定 */
/* 1つ目の見出し: #F39800 → #FFB347 */
.p-concept-card:nth-child(1) .c-heading-lv3 {
    background: linear-gradient(135deg, #F39800, #FFB347);
    color: #1A2D4E;
}

.p-concept-card .c-heading-lv3--top {
    margin-bottom: 5px;
}

.p-concept-card .c-heading-lv3--bottom {
    position: relative;
    left: 30px;
}

/* 2つ目の見出し: #FFB347 → #2C5DA3 */
.p-concept-card:nth-child(2) .c-heading-lv3 {
    background: linear-gradient(135deg, #FFB347, #2C5DA3);
}

/* 3つ目の見出し: #2C5DA3 → #1A2D4E */
.p-concept-card:nth-child(3) .c-heading-lv3 {
    background: linear-gradient(135deg, #2C5DA3, #1A2D4E);
}

/* カード内の文章部分 */
.p-concept-card .c-text {
    text-align: left;
}

.decoback01 {
    position: relative;
}

.decoback01::before {
    position: absolute;
    content: "";
    display: block;
    background-image: url("../img/yagibuddy/decoback01.png");
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    inset: 0;
    z-index: -1;
}

/* ==========================================================================
   Flow Section (ヤギバディで活躍するには)
   ========================================================================== */

.p-flow {
    margin-bottom: 70px;
}

.p-flow .c-heading-lv2 {
    line-height: 1.4;
}

.flow-catch {
    font-size: 14px;
    color: #F39800;
}

/* ステップの親要素（グリッドレイアウト） */
.p-flow__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3カラム */
    gap: 20px;
    margin-bottom: 80px;
    position: relative;
}

/* 各ステップのアイテム */
.p-flow-item {
    position: relative;
    padding: 20px;
    background: #F9F7F2;
    border-radius: 8px;
    border: 1px solid #E6F2FF;
}

.p-flow-item--03 {
    background: #E6F2FF;
    border-radius: 8px 0 8px 0;
}

.p-flow-item--02,
.p-flow-item--05 {
    position: relative;
    top: 20px;
}

.p-flow-item--03,
.p-flow-item--06 {
    position: relative;
    top: 40px;
}

/* ステップ番号 (01, 02...) */
.p-flow-item__num {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #F39800;
    line-height: 1;
    margin-bottom: 10px;
}

.p-flow-item__num span {
    font-size: 20px;
}

/* ステップタイトル（オンライン説明会など） */
.p-flow-item__title {
    font-size: 18px;
    font-weight: bold;
    color: #1A2D4E;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

/* ステップ説明（まずは話を聞いてみようなど） */
.p-flow-item__desc {
    font-size: 0.9rem;
    color: #666666;
    margin: 0;
}

/* ==========================================================================
   Q&Aセクション（ヤギバディの働き方Q&A）専用CSS
   ========================================================================== */

/* 1. セクション全体の背景設定 */
.p-qa {
    padding: 80px 0;
}

.p-qa__tabs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.p-qa__tab {
    position: relative;
    display: inline-block;
    background-color: #1A2D4E;
    border-radius: 8px;
    color: #F9F7F2;
    font-weight: bold;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    width: calc(100% / 3 - 10px);
}

.p-qa__tab::after {
    position: absolute;
    content: "";
    top: 50%;
    right: 24px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #F9F7F2;
    border-right: 2px solid #F9F7F2;
    transform: translateY(-70%) rotate(135deg);
}

/* 2. カテゴリ見出し（働き方・雇用形態など） */
.p-qa-group__title {
    color: #F39800;
    /* 指定のカテゴリ色 */
    font-size: 16px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 10px;
}

/* 3. アコーディオンの外枠 */
.p-qa-list__item {
    background-color: #E6F2FF;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

/* 4. 質問部分 (summary) */
.p-qa-list__question {
    display: block;
    /* 標準の矢印を消すための設定 */
    padding: 25px 50px 25px 24px;
    color: #1A2D4E;
    /* 指定の質問文字色 */
    font-weight: bold;
    cursor: pointer;
    position: relative;
    list-style: none;
    /* Chrome/Safariの標準矢印を非表示 */
}

/* Safari用：標準の矢印を非表示 */
.p-qa-list__question::-webkit-details-marker {
    display: none;
}

/* 質問右側のカスタム開閉アイコン（矢印） */
.p-qa-list__question::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 24px;
    width: 10px;
    height: 10px;
    border-top: 2px solid #1A2D4E;
    border-right: 2px solid #1A2D4E;
    transform: translateY(-70%) rotate(135deg);
    /* 下向き矢印 */
    transition: transform 0.3s;
}

/* オープン時の矢印の向き変更 */
.p-qa-list__item[open] .p-qa-list__question::after {
    transform: translateY(-30%) rotate(-45deg);
    /* 上向き矢印 */
}

/* 5. 回答部分 (div) */
.p-qa-list__answer {
    padding: 0 24px 20px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
}

.p-qa-list__answer .c-text {
    margin: 0;
    padding-top: 15px;
    color: #333333;
    /* 地の文の読みやすい色 */
    line-height: 1.8;
}

/* QとAのラベルを完全に排除（念のためのリセット） */
.p-qa-list__question::before,
.p-qa-list__answer::before {
    content: none !important;
    display: none !important;
}

.decoback02 {
    position: relative;
}

.decoback02::after {
    position: absolute;
    content: "";
    display: block;
    background-image: url("../img/yagibuddy/decoback02.png");
    background-size: contain;
    background-position: top;
    background-repeat: no-repeat;
    inset: 0;
    z-index: -1;
}

.sp {
    display: none;
}

/* ==========================================================================
   スマートフォン表示用の調整
   ========================================================================== */
@media (max-width: 768px) {

    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    /*ヘッダー*/
    .p-yagibuddy-header__nav-list {
        display: none;
    }

    .p-yagibuddy-header__logo span {
        display: none;
    }

    .c-btn--header {
        font-size: 0.75rem;
        padding: 8px 15px;
    }

    /*共通*/
    .l-container {
        width: 100%;
        padding: 0 10px;
    }

    .p-hero {
        overflow: hidden;
        margin-bottom: -60px;
    }

    .p-hero__content {
        left: 0;
    }

    .p-hero__h2 {
        font-size: 22px;
    }

    .p-hero__inner::after {
        width: 120px;
        height: 95px;
        right: 20px;
        bottom: -30vh;
    }

    /*コンセプト*/
    .p-concept {
        margin-bottom: 0;
    }

    .p-concept-card {
        padding-top: 150px;
    }

    .p-concept-card::before {
        width: 300px;
        height: 232px;
        left: 40px;
        top: -50px;
    }

    .p-concept-card:nth-of-type(2)::before {
        left: 40px;
        top: -50px;
    }

    .p-concept-card--support {
        text-align: left;
    }

    .p-concept-01,
    .p-concept-02 {
        position: static;
        width: 100%;
    }

    /*フロー*/
    .p-flow__steps {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    .p-flow-item--02,
    .p-flow-item--05,
    .p-flow-item--03,
    .p-flow-item--06 {
        position: static;
    }

    .p-flow-item:last-child {
        border-bottom: none;
    }

    /* スマホ時は横向き矢印を消す */
    .p-flow-item::after {
        display: none;
    }

    .p-flow__summary {
        margin: 0 15px;
    }

    /*Q＆A*/
    .p-qa {
        padding: 60px 0;
    }

    .p-qa__tab::after {
        top: 80%;
        right: 10px;
    }

    .p-qa-group__title {
        font-size: 1.25rem;
    }

    .p-qa-list__question {
        padding: 16px 45px 16px 16px;
        font-size: 0.95rem;
    }

    .p-qa-list__answer {
        padding: 0 16px 16px;
    }
}