@charset "UTF-8";

/* ==========================================================================
   Google Fonts Import
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Shippori+Mincho:wght@500;600;700&display=swap');

/* ==========================================================================
   カプセル化されたスタイル定義 (すべてのルールの頭に #ito-purpose-lp を付与)
   ========================================================================== */

#ito-purpose-lp {
    /* 既存のECサイトからの意図しないスタイル継承を遮断するための初期化 */
    all: unset;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #fbf9f6;
    /* 暖かみのある極薄ベージュ */
    color: #251e1c;
    /* 高級感のある焦げ茶 */
    font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* 子孫要素すべてに適用するボックスモデル設定 */
#ito-purpose-lp *,
#ito-purpose-lp *::before,
#ito-purpose-lp *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 埋め込み時のリンクのデフォルトリセット */
#ito-purpose-lp a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    transition: all 0.3s ease;
}

#ito-purpose-lp a:hover,
#ito-purpose-lp a:focus {
    outline: none;
    text-decoration: none;
}

#ito-purpose-lp img {
    border-style: none;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ==========================================================================
   ヘッダー / タイトルエリア
   ========================================================================== */

#ito-purpose-lp .lp-header {
    text-align: center;
    margin-bottom: 60px;
}

#ito-purpose-lp .lp-header__title {
    font-family: 'Shippori Mincho', "BIZ UDMincho", serif;
    font-size: 16px;
    font-weight: 700;
    color: #251e1c;
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    line-height: 1.4;
}

#ito-purpose-lp .lp-header__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ff8b34;
    /* 伊藤農園のみかんオレンジ */
    border-radius: 2px;
}

#ito-purpose-lp .lp-header__lead {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   セクション構造
   ========================================================================== */

#ito-purpose-lp .purpose-section {
    margin-bottom: 40px;
    padding: 40px 16px;
    border-radius: 12px;
    border: 1px solid rgba(61, 37, 20, 0.05);
    box-shadow: 0 4px 15px rgba(61, 37, 20, 0.02);
    transition: all 0.3s ease;
}

#ito-purpose-lp .purpose-section--orange {
    background-color: #fffaf5;
    /* 非常に淡いみかん色 */
    border-color: rgba(255, 139, 52, 0.08);
}

#ito-purpose-lp .purpose-section--white {
    background-color: #ffffff;
    border-color: rgba(61, 37, 20, 0.05);
}

#ito-purpose-lp .purpose-section--green {
    background-color: #f7f9f7;
    /* 落ち着いた和風の淡緑 */
    border-color: rgba(46, 125, 50, 0.08);
}

#ito-purpose-lp .purpose-section--green .purpose-section__title {
    border-left-color: #2e7d32;
    /* タイトル飾り線を深緑に */
}

#ito-purpose-lp .purpose-section__title {
    font-family: 'Shippori Mincho', "BIZ UDMincho", serif;
    font-size: 24px;
    font-weight: 600;
    color: #251e1c;
    letter-spacing: 0.05em;
    border-left: 4px solid #ff8b34;
    padding-left: 16px;
    margin-bottom: 28px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   グリッドシステム
   ========================================================================== */

#ito-purpose-lp .purpose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ==========================================================================
   目的別カード
   ========================================================================== */

#ito-purpose-lp .purpose-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(61, 37, 20, 0.04);
    border: 1px solid rgba(61, 37, 20, 0.06);
    height: 100%;
}

#ito-purpose-lp .purpose-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(61, 37, 20, 0.1);
    border-color: rgba(255, 139, 52, 0.3);
}

#ito-purpose-lp .purpose-card__img-wrap {
    position: relative;
    padding-top: 75%;
    /* 4:3 の比率 */
    overflow: hidden;
    background-color: #f7f7f7;
}

#ito-purpose-lp .purpose-card__img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

#ito-purpose-lp .purpose-card__content {
    padding: 18px 16px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
    border-top: 1px solid rgba(61, 37, 20, 0.04);
    transition: background-color 0.3s ease;
}

#ito-purpose-lp .purpose-card:hover .purpose-card__content {
    background-color: #fffbf7;
    /* ホバー時にうっすらみかん色を帯びる */
}

#ito-purpose-lp .purpose-card__title {
    font-size: 14px;
    font-weight: 700;
    color: #251e1c;
    letter-spacing: 0.03em;
    line-height: 1.4;
    transition: color 0.3s ease;
}

#ito-purpose-lp .purpose-card:hover .purpose-card__title {
    color: #ff8b34;
    /* ホバー時にみかんオレンジに変化 */
}

/* ==========================================================================
   フッター導線 (ギフトトップへ戻る)
   ========================================================================== */

#ito-purpose-lp .lp-footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px dashed rgba(61, 37, 20, 0.15);
}

#ito-purpose-lp .btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 700;
    color: #ff8b34;
    background-color: #ffffff;
    border: 2px solid #ff8b34;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 139, 52, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

#ito-purpose-lp .btn-back__icon {
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

#ito-purpose-lp .btn-back:hover {
    color: #ffffff;
    background-color: #ff8b34;
    box-shadow: 0 8px 25px rgba(255, 139, 52, 0.25);
    transform: translateY(-2px);
}

#ito-purpose-lp .btn-back:hover .btn-back__icon {
    transform: translateX(-4px);
}

/* ==========================================================================
   レスポンシブ対応
   ========================================================================== */

/* タブレットサイズ (1024px以下) */
@media screen and (max-width: 1024px) {
    #ito-purpose-lp {
        padding: 50px 24px;
    }

    #ito-purpose-lp .purpose-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    #ito-purpose-lp .lp-header__title {
        font-size: 16px;
    }
}

/* 小型タブレット・横向きスマホ (768px以下) */
@media screen and (max-width: 768px) {
    #ito-purpose-lp {
        padding: 40px 16px;
    }

    #ito-purpose-lp .purpose-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    #ito-purpose-lp .lp-header__title {
        font-size: 1.8rem;
    }

    #ito-purpose-lp .purpose-section__title {
        font-size: 16px;
        margin-bottom: 20px;
    }
}

/* スマートフォンサイズ (500px以下 - 厳格に2列にする) */
@media screen and (max-width: 500px) {
    #ito-purpose-lp {
        padding: 30px 12px;
    }

    #ito-purpose-lp .lp-header {
        margin-bottom: 40px;
    }

    #ito-purpose-lp .lp-header__title {
        font-size: 16px;
    }

    #ito-purpose-lp .lp-header__lead {
        margin-top: 16px;
        font-size: 16px;
    }

    #ito-purpose-lp .purpose-section {
        margin-bottom: 30px;
        padding: 24px 16px;
    }

    #ito-purpose-lp .purpose-section__title {
        font-size: 24px;
        padding-left: 10px;
        border-left-width: 3px;
        margin-bottom: 16px;
    }

    #ito-purpose-lp .purpose-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 厳格な2列 */
        gap: 12px;
        /* スマホに適したタイトな余白 */
    }

    #ito-purpose-lp .purpose-card {
        border-radius: 6px;
    }

    #ito-purpose-lp .purpose-card__content {
        padding: 12px 8px;
    }

    #ito-purpose-lp .purpose-card__title {
        font-size: 14px;
    }

    #ito-purpose-lp .btn-back {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
}


/* ==========================================================================
   ページ内ナビゲーション（テキストリンクパーツ）
   ========================================================================== */

#ito-purpose-lp .lp-nav {
    margin-bottom: 50px;
    padding: 0 10px;
}

#ito-purpose-lp .lp-nav__list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 800px;
    /* 横に広がりすぎないように最大幅を設定 */
    margin: 0 auto;
}

#ito-purpose-lp .lp-nav__item {
    margin: 0;
    width: calc((100% - 32px) / 3);
    /* 最大3列（隙間16px×2 = 32px） */
}

#ito-purpose-lp .lp-nav__link {
    display: flex;
    /* 親要素の幅いっぱいに広げるためにflexに変更 */
    align-items: center;
    justify-content: center;
    width: 100%;
    /* 横幅いっぱいに設定 */
    padding: 12px 24px;
    background-color: #ffffff;
    border: 1px solid rgba(61, 37, 20, 0.12);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    color: #251e1c;
    box-shadow: 0 2px 8px rgba(61, 37, 20, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

/* ホバー時の装飾：みかんオレンジに変化し、少し浮き上がるマイクロアニメーション */
#ito-purpose-lp .lp-nav__link:hover {
    color: #ffffff;
    background-color: #ff8b34;
    border-color: #ff8b34;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 139, 52, 0.2);
}

#ito-purpose-lp .lp-nav__text {
    position: relative;
    z-index: 1;
}

/* スムーズスクロールした際の上部余白（ヘッダーと被らないためのマージン） */
#ito-purpose-lp .purpose-section {
    scroll-margin-top: 30px;
}

/* スムーズスクロール全体の適用 */
html {
    scroll-behavior: smooth;
}

/* ページ内ナビゲーションのレスポンシブ対応 */
@media screen and (max-width: 768px) {
    #ito-purpose-lp .lp-nav {
        margin-bottom: 40px;
    }

    #ito-purpose-lp .lp-nav__list {
        gap: 10px;
    }

    #ito-purpose-lp .lp-nav__item {
        width: calc((100% - 20px) / 3);
        /* 最大3列（隙間10px×2 = 20px） */
    }

    #ito-purpose-lp .lp-nav__link {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 500px) {
    #ito-purpose-lp .lp-nav__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    #ito-purpose-lp .lp-nav__item {
        width: 100%;
        /* grid内では100%幅に上書き */
    }

    #ito-purpose-lp .lp-nav__link {
        padding: 8px 12px;
        font-size: 16px;
        text-align: center;
        width: 100%;
        border-radius: 8px;
    }

    /* 5番目の要素（法事・弔事）は2列分またがせて配置 */
    #ito-purpose-lp .lp-nav__item:nth-child(5) {
        grid-column: span 2;
    }
}