/* ========================================

   PRICE PAGE

======================================== */





/* =========================

   ページ上部

========================= */



/* =========================

   PRICE HERO

========================= */



.price-hero {

    position: relative;

    width: 100%;

    min-height: 520px;

    overflow: hidden;



    /* 左側の文字エリアの背景 */

    background: #edf4e6;

}





/* =========================

   背景画像

========================= */



.price-hero-image {

    position: absolute;

    top: 0;



    /* 右側にも余白を作る */

    right: 8%;



    /* その分、画像幅を少し小さく */

    width: 60%;

    height: 100%;



    z-index: 0;

}



.price-hero-image img {

    display: block;



    width: 100%;

    height: 100%;



    object-fit: cover;

    object-position: center center;



    /* 左右を同じ強さで緑背景へ溶け込ませる */

    -webkit-mask-image: linear-gradient(

        to right,

        transparent 0%,

        rgba(0, 0, 0, 0.08) 4%,

        rgba(0, 0, 0, 0.25) 9%,

        rgba(0, 0, 0, 0.55) 15%,

        rgba(0, 0, 0, 0.80) 21%,

        #000 29%,



        #000 71%,



        rgba(0, 0, 0, 0.80) 79%,

        rgba(0, 0, 0, 0.55) 85%,

        rgba(0, 0, 0, 0.25) 91%,

        rgba(0, 0, 0, 0.08) 96%,

        transparent 100%

    );



    mask-image: linear-gradient(

        to right,

        transparent 0%,

        rgba(0, 0, 0, 0.08) 4%,

        rgba(0, 0, 0, 0.25) 9%,

        rgba(0, 0, 0, 0.55) 15%,

        rgba(0, 0, 0, 0.80) 21%,

        #000 29%,



        #000 71%,



        rgba(0, 0, 0, 0.80) 79%,

        rgba(0, 0, 0, 0.55) 85%,

        rgba(0, 0, 0, 0.25) 91%,

        rgba(0, 0, 0, 0.08) 96%,

        transparent 100%

    );

}





/* =========================

   写真と文字の間のグラデーション

========================= */



.price-hero-overlay {

    position: absolute;

    inset: 0;



    z-index: 1;

    pointer-events: none;



    /*

       左側は緑を維持

       中央付近から透明にする

    */

    background: linear-gradient(

        90deg,

        #edf4e6 0%,

        #edf4e6 27%,

        rgba(237, 244, 230, 0.98) 32%,

        rgba(237, 244, 230, 0.88) 37%,

        rgba(237, 244, 230, 0.58) 43%,

        rgba(237, 244, 230, 0.25) 49%,

        rgba(237, 244, 230, 0) 57%

    );

}





/* =========================

   文字

========================= */



.price-hero-content {

    position: relative;

    z-index: 2;



    min-height: 520px;



    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: flex-start;

}





/* 文字エリアの横幅を制限 */

.price-hero-content > * {

    max-width: 480px;

}





.price-hero .section-kicker {

    margin: 0 0 12px;



    color: #78a83b;



    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.22em;

}





.price-hero h1 {

    margin: 0 0 28px;



    color: #294b2b;



    font-size: clamp(40px, 4vw, 56px);

    font-weight: 600;



    line-height: 1.3;

    letter-spacing: 0.06em;

}





.price-hero-text {

    margin: 0;



    color: #2f3a2f;



    font-size: 15px;

    font-weight: 500;



    line-height: 2;

}





.price-hero-note {

    margin: 22px 0 0;



    color: #6f7b6a;



    font-size: 13px;

    line-height: 1.9;

}





/* =========================

   TABLET

========================= */



@media (max-width: 900px) {



    .price-hero {

        min-height: 480px;

    }



    .price-hero-content {

        min-height: 480px;

    }



    .price-hero-image {

        width: 72%;

    }



}





/* =========================

   MOBILE

========================= */



@media (max-width: 600px) {
    /* スマホでは文字と写真を重ねず、上下に配置する */
    .price-hero {
        display: flex;
        flex-direction: column;
        min-height: 0;
        padding: 0;
        background: #edf4e6;
    }

    .price-hero .price-hero-content {
        order: 1;
        position: relative;
        z-index: 2;
        min-height: 0;
        width: 100%;
        padding-top: 38px;
        padding-bottom: 38px;
        background: #edf4e6;
    }

    .price-hero .price-hero-image {
        order: 2;
        position: relative;
        inset: auto;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        height: 220px;
        flex: 0 0 220px;
        opacity: 1;
        z-index: 0;
        overflow: hidden;
    }

    .price-hero .price-hero-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        opacity: 1;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .price-hero .price-hero-overlay {
        display: none;
    }

    .price-hero h1 { font-size: 34px; }
    .price-hero-text { font-size: 14px; }
}


/* =========================

   料金表全体

========================= */



.price-content {

    padding: 90px 0 110px;



    background: #f7faf2;

}





/* =========================

   各料金カテゴリー

========================= */



.price-block {

    margin-bottom: 85px;

}



.price-title {

    position: relative;



    margin-bottom: 30px;

    padding-left: 20px;



    border-left: 5px solid #78a83b;

}



.price-title h2 {

    margin: 0;



    color: #294b2b;



    font-size: 28px;

    font-weight: 700;

    line-height: 1.5;

}



.price-title p {

    margin: 5px 0 0;



    color: #78a83b;



    font-size: 13px;

    font-weight: 700;

}



.price-block h3 {

    margin: 40px 0 16px;



    color: #365b32;



    font-size: 20px;

    font-weight: 700;

}





/* =========================

   テーブル

========================= */



.price-table-wrap {

    width: 100%;



    overflow-x: auto;



    background: #ffffff;



    border-radius: 8px;



    box-shadow:

        0 8px 25px rgba(41, 75, 43, 0.08);

}



.price-table {

    width: 100%;

    min-width: 760px;



    border-collapse: collapse;



    background: #ffffff;

}





/* ヘッダー */



.price-table thead {

    background: #365b32;

}



.price-table th {

    padding: 19px 22px;



    color: #ffffff;



    font-size: 14px;

    font-weight: 700;



    line-height: 1.6;



    text-align: left;



    white-space: nowrap;

}





/* セル */



.price-table td {

    padding: 21px 22px;



    color: #4f5f4b;



    font-size: 15px;

    line-height: 1.8;



    vertical-align: middle;



    border-bottom: 1px solid #e1ead9;

}





/* 金額を少し目立たせる */



.price-table td:nth-child(2) {

    color: #294b2b;



    font-weight: 700;



    white-space: nowrap;

}





/* 月次顧問の年間合計 */



.price-table:not(.price-table-3) td:last-child {

    color: #294b2b;



    font-weight: 700;



    white-space: nowrap;

}





/* 偶数行 */



.price-table tbody tr:nth-child(even) {

    background: #f8fbf5;

}





/* ホバー */



.price-table tbody tr {

    transition: background 0.2s ease;

}



.price-table tbody tr:hover {

    background: #edf5e4;

}





/* 最終行 */



.price-table tbody tr:last-child td {

    border-bottom: none;

}





/* =========================

   小さい補足文字

========================= */



.price-small {

    color: #6f7b6a;



    font-size: 12px;

    font-weight: 400;



    line-height: 1.7;

}





/* =========================

   注意書き

========================= */



.price-note {

    margin: 13px 0 0;



    color: #6f7b6a;



    font-size: 12px;

    line-height: 1.8;

}





/* =========================

   ご利用にあたって

========================= */



.price-guide {

    margin-top: 20px;

    padding: 40px 45px;



    background: #ffffff;



    border-left: 5px solid #78a83b;

    border-radius: 8px;



    box-shadow:

        0 8px 25px rgba(41, 75, 43, 0.08);

}



.price-guide h2 {

    margin: 0 0 25px;



    color: #294b2b;



    font-size: 24px;

}



.price-guide ul {

    margin: 0;



    padding-left: 22px;

}



.price-guide li {

    margin-bottom: 12px;



    color: #5f6e59;



    font-size: 14px;

    line-height: 1.8;

}



.price-guide li:last-child {

    margin-bottom: 0;

}





/* 初回相談無料 */



.price-guide .price-free {

    color: #294b2b;



    font-size: 16px;

    font-weight: 700;

}





/* =========================

   お問い合わせ

========================= */



.price-contact {

    margin-top: 90px;

    padding: 65px 60px;



    text-align: center;



    background: #ffffff;



    border-radius: 10px;



    box-shadow:

        0 10px 30px rgba(41, 75, 43, 0.08);

}



.price-contact .section-kicker {

    margin: 0 0 10px;



    color: #78a83b;



    font-size: 12px;

    font-weight: 800;



    letter-spacing: 0.2em;

}



.price-contact h2 {

    margin: 0 0 20px;



    color: #294b2b;



    font-size: 30px;

    line-height: 1.6;

}



.price-contact > p:not(.section-kicker) {

    margin: 0;



    color: #6f7b6a;



    font-size: 14px;

    line-height: 1.8;

}





/* ボタン */



.price-contact-button {

    display: inline-flex;



    align-items: center;

    justify-content: center;



    min-width: 210px;



    margin-top: 30px;

    padding: 16px 35px;



    color: #ffffff;



    background: #365b32;



    border-radius: 5px;



    font-size: 14px;

    font-weight: 700;



    text-decoration: none;



    transition:

        transform 0.25s ease,

        background 0.25s ease,

        box-shadow 0.25s ease;

}



.price-contact-button:hover {

    color: #ffffff;



    background: #294b2b;



    transform: translateY(-3px);



    box-shadow:

        0 10px 25px rgba(41, 75, 43, 0.18);

}





/* =========================

   スマートフォン

========================= */



@media (max-width: 768px) {



    .price-hero {

        padding: 75px 0 55px;

    }



    .price-hero h1 {

        margin-bottom: 22px;



        font-size: 34px;

    }



    .price-hero-text {

        font-size: 14px;



        line-height: 1.9;

    }



    .price-content {

        padding: 65px 0 80px;

    }



    .price-block {

        margin-bottom: 60px;

    }



    .price-title {

        margin-bottom: 24px;



        padding-left: 15px;

    }



    .price-title h2 {

        font-size: 23px;

    }



    .price-block h3 {

        margin-top: 30px;



        font-size: 18px;

    }





    /* スマホは横スクロール */



    .price-table-wrap {

        -webkit-overflow-scrolling: touch;

    }



    .price-table {

        min-width: 680px;

    }



    .price-table th {

        padding: 15px 16px;



        font-size: 13px;

    }



    .price-table td {

        padding: 17px 16px;



        font-size: 14px;

    }





    /* 注意事項 */



    .price-guide {

        padding: 30px 25px;

    }



    .price-guide h2 {

        font-size: 21px;

    }



    .price-guide li {

        font-size: 13px;

    }





    /* お問い合わせ */



    .price-contact {

        margin-top: 65px;



        padding: 45px 25px;

    }



    .price-contact h2 {

        font-size: 24px;

    }



    .price-contact-button {

        width: 100%;

        max-width: 300px;

    }

}





/* =========================

   さらに小さい画面

========================= */



@media (max-width: 480px) {



    .price-hero h1 {

        font-size: 30px;

    }



    .price-title h2 {

        font-size: 21px;

    }



    .price-table {

        min-width: 640px;

    }

}



/* =========================

   HEADER LOGO FIX

========================= */



.header-logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

}



.header-logo-img {

    display: block;



    width: auto;

    height: 54px;



    max-width: 300px;



    object-fit: contain;

}





/* =========================

   FOOTER LOGO FIX

========================= */



.footer-logo img,

.footer-logo-img {

    display: block;



    width: auto;

    height: 58px;



    max-width: 320px;



    object-fit: contain;

}



/* 固定ヘッダー分の余白 */

.price-block {

    scroll-margin-top: 110px;

}



/* スムーズなスクロール */

html {

    scroll-behavior: smooth;

}
/* 768px以下の既存ルールより後で、スマホの上下分割を優先する */
@media (max-width: 600px) {
    .price-hero { padding: 0; }
    .price-hero .price-hero-content { min-height: 0; }
}


/* スマホ：料金表の余白とスクロールバーの白帯を整理 */
@media screen and (max-width: 600px) {
  /* スクロール操作は維持しつつ、右端のスクロールバー表示を隠す */
  html { scrollbar-width: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; }

  .price-hero {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
    box-sizing: border-box;
  }
  .price-hero .price-hero-content {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 42px 20px 32px !important;
    box-sizing: border-box;
    background: #edf4e6;
  }
  .price-hero .price-hero-content > * {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .price-hero .price-hero-image {
    order: 2;
    position: relative;
    inset: auto;
    width: calc(100% - 40px);
    height: auto;
    flex: 0 0 auto;
    margin: 0 20px 24px;
    opacity: 1;
    overflow: hidden;
  }
  .price-hero .price-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .price-hero .price-hero-overlay { display: none; }
}


/* ========================================
   料金表：お問い合わせカードの調整
======================================== */
@media screen and (max-width: 768px) {

  .price-contact {
    width: 100%;
    max-width: 100%;
    margin: 50px auto 0;
    padding: 36px 20px;
    box-sizing: border-box;
    border-radius: 14px;
    text-align: center;
  }

  .price-contact .section-kicker {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .price-contact h2 {
    margin: 0 0 20px;
    font-size: clamp(20px, 5.5vw, 25px);
    line-height: 1.6;
  }

  .price-contact > p:not(.section-kicker) {
    margin: 0 auto;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.9;
  }

  .price-contact-button {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 28px auto 0;
    padding: 15px 16px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    font-size: 15px;
  }
}
