@charset "utf-8";
/* CSS Document */

/* 基本設定
================================================== */
:root {
    --main-bg: #f7f9fa;
    --gold: #c5a059;
    --text-dark: #4a4a4a;
    --white: #ffffff;
    --accent-blue: #f0f4f7;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: "Hiragino Mincho ProN", serif;
    line-height: 1.7;
    color: #666;
    background-color: var(--main-bg);
    margin: 0;
    overflow-x: hidden;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}


/* 共通の設定
================================================== */

.margin_bottom_20 {
  margin-bottom: 20px;
}
.margin_bottom_30 {
  margin-bottom: 30px;
}
.margin_bottom_50 {
  margin-bottom: 50px;
}
.margin_bottom_80 {
  margin-bottom: 80px;
}
.margin_bottom_100 {
  margin-bottom: 100px;
}
.margin_bottom_120 {
  margin-bottom: 120px;
}
.margin_bottom_200 {
  margin-bottom: 200px;
}
.margin_bottom_300 {
  margin-bottom: 300px;
}



/* ヘッダー
================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* 背景をうっすら透かす */
    padding: 20px 0;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ロゴのタイポグラフィ */
.header-logo a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.logo-main {
    color: #146C94;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    margin-bottom: 4px;
}
.logo-sub {
    color: #666;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}


/* ナビゲーションの洗練 */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}
.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}


/* ホバー時に下線がスッと伸びるアニメーション */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #146C94;
    transition: width 0.3s ease;
}
.nav-link:hover {
    color: #146C94;
}
.nav-link:hover::after {
    width: 100%;
}


/* カートボタンの特別なスタイリング */
.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 2px;
    background-color: transparent;
    border: 1px solid #146C94;
    color: #146C94 !important;
    transition: all 0.3s ease;
}
.cart-btn:hover {
    background-color: #146C94;
    color: #fff !important;
}
.cart-btn::after {
    display: none; /* カートボタンには下線アニメーションを適用しない */
}
.cart-count {
    font-size: 0.7rem;
    background-color: #146C94;
    color: #fff;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: -4px;
    transition: all 0.3s ease;
}
.cart-btn:hover .cart-count {
    background-color: #fff;
    color: #146C94;
}


/* ヒーローエリア
================================================== */
.hero {
    width: 100%;
    height: 50vh;
    min-height: 500px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url("../images/title.jpg"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin: 0 auto;
    padding: 0;
}
.hero-content h2 {
    font-size: clamp(1.8rem, 8vw, 3rem);
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    animation: blurFade 1.5s ease-out forwards;
}
.hero-content p {
    font-size: 1rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 5px;
    animation: blurFade 1.5s ease-out 0.5s both; /* 0.5秒遅れて開始 */
}
@keyframes blurFade {
    0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.9);
}
    100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}
}
.concept-intro {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}
.sub-title {
    display: block;
    font-family: serif;
    font-size: 1rem;
    color: #146C94;
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.main-title {
    font-size: 1.6rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color:#333;
}
.concept-text {
    max-width: 700px;
    font-size: 1rem;;
    line-height: 2.2;
    color: #666;
    margin: 0 auto;
}
.concept-text .highlight {
    font-weight: bold;
    color: #333;
    margin-top: 30px;
}


/* ボタン
================================================== */
.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background: #19A7CE;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    letter-spacing: 2px;
}


/* おすすめアイテム
================================================== */
.section-title {
    text-align: center;
    margin: 50px auto 100px;
    font-size: 2rem;
    color: #146C94;
    letter-spacing: 0.1em;
}
.section-subtitle {
    text-align: center;
    margin: -70px auto 70px;
    padding: 0;
}
.ranking-grid, .grid-3col {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr;
}
.img-placeholder {
    background: #eef4f7;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #aaa;
    overflow: hidden; /* 画像がはみ出さないように */
}
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったまま枠いっぱいに表示 */
    transition: transform 0.3s ease; /* ホバー時の演出（お好みで） */
}
.ranking-card, .card {
    background: #fff;
    padding: 25px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
}
.ranking-card h3 {
    font-size: 1rem;
}
.ranking-card p {
    font-size: 0.9rem;
}


/* ホバー時に画像を少し大きくする演出 */
.ranking-card:hover .img-placeholder img {
    transform: scale(1.05);
}
.rank-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #19A7CE;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    line-height: 35px;
    font-weight: bold;
}
.img-placeholder {
    background: #eef4f7;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #aaa;
}


/* 価格のスタイルの微調整（ボタンとの間隔） */
.price {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}


/* 商品ボタンの基本スタイル */
.btn-detail {
    display: inline-block;
    background-color: #19A7CE;
    color: #fff;
    text-decoration: none;
    padding: 10px 25px;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid #19A7CE;
}


/* ボタンホバー時：背景を白にして文字をゴールドに（反転） */
.btn-detail:hover {
    background-color: #fff;
    color: #19A7CE;
}


/* カード内の要素の配置を整える（ボタンが下部に揃うように） */
.ranking-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* 予算別
================================================== */
.budget-selection {
    margin: 0 auto;
    padding: 80px 0; /* 下方向にもパディングを追加 */
}
.budget-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
}


/* 追加：ボタンのデザイン */
.btn-budget{
    max-width: 100%;
    width: 50%;
    margin: 100px auto 0;
}
.btn-budget-view {
    display: block;
    text-align: center;
    padding: 15px 100px;
    background: #fff;
    color: #19A7CE;
    border: 1px solid #19A7CE;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.btn-budget-view:hover {
    background: #19A7CE;
    color: #fff;
    box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
}
.budget-column {
    background: #fff;
    padding: 35px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}
.budget-column.featured {
    border: 2px solid #19A7CE;
    box-shadow: 0 10px 30px rgba(20, 108, 148, 0.1);
}


/* 価格帯（アニメーション追加版） */
.price-range {
    display: inline-block;
    position: relative;
    background: #19A7CE;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(20, 108, 148, 0.3);
    line-height: 1;
    z-index: 1;
    animation: pop-in 0.6s cubic-bezier(0.17, 0.67, 0.83, 1.5) forwards,float-y 3s ease-in-out infinite alternate;
}


/* 吹き出しの三角形 */
.price-range::after {
    content: '';
    position: absolute;
    top: 90%;
    left: 30px;
    border: 10px solid transparent;
    border-top-color: #19A7CE;
    z-index: -1;
}


/* 注目エリア(featured)のボタンを少し強調する場合 */
.budget-column.featured .btn-budget-view {
    background: #19A7CE;
    color: #fff;
}
.budget-column.featured .btn-budget-view:hover {
    background: #146C94;
    border-color: #146C94;
}


/* --- アニメーションの動きの定義 --- */

/* 1. ポンッと飛び出す動き */
@keyframes pop-in {
    0% {
    transform: scale(0);
    opacity: 0;
}
    100% {
    transform: scale(1);
    opacity: 1;
}
}

/* 2. 上下にふわふわ浮く動き */
@keyframes float-y {
    0% {
    transform: translateY(0);
}
    100% {
    transform: translateY(-8px); /* 8px分上に浮き上がる */
}
}


.budget-header {
    margin-bottom: 20px;
}
.budget-header h3{
    font-size: 1.2rem;
}
.budget-header p{
    font-size: 0.85rem;
}
.budget-items {
    margin-bottom: 30px; /* ボタンとの間の余白 */
}
.item-mini {
    display: flex;
    align-items: center;
    gap: 15px; /* 画像とテキストの間隔を少し広げました */
    padding: 12px; /* 余白を微増 */
    background: var(--main-bg);
    border-radius: 8px;
    margin-bottom: 12px;
}


/* 画像コンテナのサイズを大きく変更 */
.item-mini .img-placeholder {
    width: 120px;  /* 50pxから80pxへ変更 */
    height: 120px; /* 50pxから80pxへ変更 */
    flex-shrink: 0; /* 画像が潰れないように固定 */
    border-radius: 4px;
    overflow: hidden;
}


/* 画像自体のフィット感 */
.item-mini .img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいに綺麗に表示 */
    display: block;
}


/* テキスト部分の調整 */
.item-mini .item-info h4 {
    font-size: 0.7rem;
    margin-bottom: 4px;
    line-height: 1.4;
}
.item-mini .item-info .price {
    font-weight: bold;
    color: #333;
    font-size: 0.9rem;
}


/* モチーフ ナビゲーション
================================================== */
.motifs-nav {
    padding: 60px 0 20px;
    text-align: center;
}
.motif-nav-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
}
.nav-item {
    position: relative; /* 子要素(text)の基準点にする */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    background: #000; /* 画像が透過した時の背景色 */
    border-radius: 100%;
}
.nav-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    opacity: 0.8; /* 文字を見やすくするために画像を少し暗くする */
}


/* 画像の上に載せるテキストのスタイル */
.nav-text {
    position: absolute;
    z-index: 1;
    color: #fff; /* 文字色を白に */
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5); /* 視認性を高める影 */
    font-size: 1rem;
    pointer-events: none; /* テキストがクリックの邪魔をしないように */
}


/* ホバー演出 */
.nav-item:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.nav-item:hover img {
    transform: scale(1.1);
    opacity: 0.6; /* ホバー時に少し暗くして文字を際立たせる */
}

/* モチーフ詳細
================================================== */
.motif-detail-section {
    padding: 80px 0;
    background: #fff;
}
.motif-detail-section.alt-bg {
    background: var(--accent-blue);
}
.motif-flex {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.motif-eng {
    display: block;
    color: #146C94;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
}
.meaning-tag {
    color: #146C94;
    font-weight: bold;
    border-bottom: 2px solid #146C94;
    display: inline-block;
    margin-bottom: 15px;
}
.description{
    font-size:0.9rem;
    line-height: 25px;
}
.grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCは3列 */
    gap: 20px;
}
.img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1; /* 強制的に正方形にする（便利！） */
    background-color: #f7f7f7;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-placeholder a {
    display: block;
    width: 100%;
    height: 100%;
}
.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠いっぱいに収め、比率が違う場合は切り抜く */
    transition: transform 0.3s ease;
}


/* ホバー時に少し大きくする演出（お好みで） */
.img-placeholder img:hover {
    transform: scale(1.05);
}
.card h4 {
    font-size: 0.8rem;
    margin: 10px 0 5px;
}
.price {
    font-size: 0.8rem;
    color: #666;
}


/* 刻印・誕生石
================================================== */
.custom-samples {
    padding: 100px 0;
    background-color: #fff;
}
.personalize-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}
.personalize-card {
    background: var(--main-bg);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}
.img-placeholder-sample {
    width: 100%;
    height: 100%;
}
.img-placeholder-sample img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ちつつ、枠いっぱいに表示 */
    display: block;    /* 下部の隙間を解消 */
    transition: transform 0.5s ease; /* ホバー時のアニメーション用（任意） */
}


/* カードホバー時に画像を少し拡大させる演出（任意） */
.personalize-card:hover .img-placeholder-sample img {
    transform: scale(1.05);
}


/* ビジュアルエリア */
.card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden; /* 画像がはみ出さないように */
}
.service-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #146C94;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}


/* テキストコンテンツエリア */
.card-body {
    padding: 40px 30px;
}
.card-header {
    margin-bottom: 20px;
}
.eng-title {
    display: block;
    color: #146C94;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.card-body h3 {
    font-size: 1.4rem;
    margin: 0;
}
.card-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}


/* 刻印リストの装飾 */
.engraving-list {
    background: #fff;
    padding: 0 20px 20px;
    border-radius: 4px;
}
.engraving-list h4 {
    font-size: 0.85rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.engraving-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.engraving-list li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #444;
}
.engraving-list li span {
    font-weight: bold;
    color: #146C94;
    margin-right: 10px;
    font-family: serif;
    font-style: italic;
}


/* 誕生石ショーケース */
.stone-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.stone-item {
    text-align: center;
}


/* 画像のスタイル設定 */
.stone-img {
    width: 24px;
    height: 24px;
    object-fit: contain; /* 画像の比率を維持 */
    margin: 0 auto 8px;
    display: block;
    /* 必要に応じて影などを追加 */
    /* filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1)); */
}
.stone-item .month {
    display: block;
    font-size: 0.7rem;
    color: #999;
}
.stone-item .stone-name {
    display: block;
    font-size: 0.65rem;
    font-weight: bold;
    margin-top: 2px;
}
.stone-note {
    font-size: 0.75rem;
    color: #888;
    text-align: right;
}


/* ボタン用の追加スタイル */

/* カード内の要素を縦に広げてボタンを下に固定 */
.personalize-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}


/* リストや説明文の下に余白を作り、ボタンを押し下げる */
.engraving-list:last-of-type,
.stone-note {
    margin-bottom: 30px;
}
.card-footer {
    margin-top: auto; /* これでボタンが一番下に配置されます */
    text-align: center;
}
.btn-detail {
    display: inline-block;
    background-color: #146C94; /* 既存のテーマカラー */
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px; /* 丸みのあるデザイン */
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #146C94;
    width: 100%; /* スマホで押しやすく。幅を絞る場合は max-width 指定 */
    box-sizing: border-box;
}
.btn-detail:hover {
    background-color: #fff;
    color: #146C94;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(20, 108, 148, 0.2);
}


/* ギフトラッピング
================================================== */
.gift-wrapping {
    padding: 120px 0;
    background: radial-gradient(circle at top right, #ffffff, #f0f4f7);
    overflow: hidden;
}
.wrapping-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    overflow: hidden;
}


/* ビジュアル部分の修正 */
.wrapping-visual {
    flex: 1.2;
    position: relative;
}
.img-placeholder-large {
    height: 100%;
    width: 100%;
    background: #e1e9ed;
    /* 中央寄せ解除（画像が全面にくるため） */
    display: block; 
}
.visual-label {
    display: block;
    width: 100%;
}
.visual-label img {
    width: 100%;
    height: 100%;
    /* 縦横比を維持しながらエリアを埋める（重要） */
    object-fit: cover;
    display: block;
}
.floating-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: var(--white);
    padding: 10px 20px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: bold;
    z-index: 1; /* 画像より前面に */
}


/* コンテンツ部分 */
.wrapping-content {
    flex: 1;
    padding: 60px 40px; /* 下の余白を確保 */
    display: flex;
    flex-direction: column;
    /* justify-content: center; は削除または stretch に */
}
.wrapping-title {
    font-size: 1.6rem;
    line-height: 1.5;
}
.wrapping-subtitle {
    color: #146C94;
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 20px;
    display: block;
}
.wrapping-desc {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 20px; /* 下の余白を少し詰めました */
    line-height: 30px;
}


/* ボタン */
.wrapping-link {
    display: inline-block;
    padding: 12px 30px;
    background-color: #146C94;
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 50px;
    transition: background-color 0.3s;
    width: fit-content; /* 中身の幅に合わせる */
}
.wrapping-link:hover {
    background-color: #19A7CE;
    text-decoration: none;
}



/* カテゴリナビ 
================================================== */
.categories {
    width: 100%;
    padding: 80px 0;
    background: #fff;
}
.category-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;    /* グリッド全体の最大幅を制限 */
    margin: 0 auto;      /* 左右中央に配置 */
    padding: 0 20px;     /* スマホで見るときに左右に少し余白を作る */
}
.category-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    text-decoration: none;
    /* 背景画像の設定 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease; /* ホバー時に動かすなら */
}

/* 各カードごとの画像指定（パスは実際の画像名に変更してください） */
.cat-necklace {
    background-image: url("../images/category1.jpg")
}
.cat-ring {
    background-image: url("../images/category2.jpg")
}
.cat-earrings {
    background-image: url("../images/category3.jpg")
}
.cat-bangle {
    background-image: url("../images/category4.jpg")
}
.cat-pair {
    background-image: url("../images/category5.jpg")
}
.cat-others {
    background-image: url("../images/category6.jpg")
}


/* 画像の上の重なり（文字を読みやすくする） */
.category-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.category-text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    width: 90%; /* 左右に少し余白を持たせる */
    z-index: 2;
}
.category-text-box h3 {
    font-size: 1.2rem; /* 少し大きく */
    font-weight: bold;
    margin: 0;
    letter-spacing: 0.15em;
    text-transform: uppercase; /* 英字を大文字に（デザイン次第） */
}
.category-text-box p {
    font-size: 0.8rem;
    margin: 5px 0 0;
}


/* ホバー時の演出（お好みで） */
.category-card:hover {
    transform: scale(1.02);
}



/* 全体のアニメーション
================================================== */

/* セクション全体にフェードインの動きをつける */
section {
    animation: fadeInUp 1.0s ease-out both;
    /* ブラウザが対応している場合、スクロールに合わせて実行 */
    view-timeline-name: --section;
    view-timeline-axis: block;
    animation-timeline: --section;
    animation-range: entry 10% cover 30%;
}
@keyframes fadeInUp {
    from {
    opacity: 0;
    transform: translateY(30px);
}
    to {
    opacity: 1;
    transform: translateY(0);
}
}


/* メインボタンを少し弾ませる */
.btn-primary, .btn-detail, .btn-budget-view {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-primary:hover, .btn-detail:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(25, 167, 206, 0.3);
}


/* 商品カード全体を浮かせる */
.ranking-card, .card, .personalize-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.ranking-card:hover, .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    z-index: 2;
}



/* ここからPCのみの用設定
================================================== */

@media (min-width: 768px) {
    
/* おすすめアイテム */
.ranking-grid, .grid-3col {
    grid-template-columns: repeat(3, 1fr);
}

 
/* 予算別 */
.budget-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
}

    
/* モチーフ詳細 */
.motif-flex {
    flex-direction: row;
}
.motif-flex.reverse {
    flex-direction: row-reverse;
}
.motif-info {
    flex: 1;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    margin: auto 0;
}
.motif-info h2{
    font-size:1.5rem;
    margin: 20px 0 0;
    padding: 0;
}
.motif-products {
    flex: 2;
}


/* 刻印・誕生石ボタン 広がりすぎ防止 */
.btn-detail {
    width: auto;
    min-width: 240px;
}
    

/* ギフトラッピング */
.wrapping-card {
    flex-direction: row;
    align-items: stretch;
}

    
/* カテゴリナビ */
.category-grid {
    grid-template-columns: repeat(3, 1fr);
    /* PCでさらに絞りたい場合はここで max-width を上書きも可能 */
    max-width: 900px; 
}
}


/* 刻印・誕生石ボタン 広がりすぎ防止 */
@media (min-width: 992px) {
.personalize-grid {
    grid-template-columns: 1fr 1fr;
}
}


/* ここからSP用設定
================================================== */

@media (max-width: 767px) {
    
/* ヘッダー */
.header {
    padding: 15px 0;
}
.nav-list {
    gap: 15px;
}
.logo-main {
    font-size: 1rem;
}
.cart-text {
    display: none;
}
.cart-btn {
    padding: 6px 10px;
}


/* ヒーローエリア */
.hero-content p {
    font-size: 0.9rem;
    letter-spacing: 3px;
}
.concept-text {
    font-size: 0.9rem;
}


/* おすすめアイテム */
.section-title {
    margin: 0 auto 100px;
}
/*.ranking-card, .card {
    padding-bottom: 50px;
}*/


/* 価格別 */
.budget-header {
    margin: 30px auto 20px;
    text-align: center;
}
.btn-budget{
    width: 80%;
    margin: 50px auto 0;
}

/* モチーフ ナビゲーション */
.motif-nav-grid {
    gap: 10px;
    /* スマホで2列ずつ並べる場合はこちら */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
    max-width: 320px;
    margin: 30px auto 0;
}
.nav-item {
    width: 130px; /* サイズ調整 */
}

    
/* モチーフ詳細 */
.grid-3col {
    grid-template-columns: repeat(2, 1fr); /* スマホは2列（1列なら1frに） */
    gap: 15px;
}
.motif-info {
    text-align: center; /* スマホでは中央寄せ */
    margin-bottom: 20px;
}


/* 刻印・誕生石用ボタン */
.card-body {
    padding: 30px 20px;
}

    
/* ギフトラッピング用ボタン */
.gift-wrapping {
    padding: 60px 0;
}
.wrapping-visual {
    min-height: 300px; /* スマホでは高さを少し抑える */
}
.wrapping-content {
    padding: 0 25px 40px;
}
.wrapping-title {
    font-size: 1.5rem;
}
}


/* PCのみ
================================================== */

@media(max-width:788px){
.pc{
    display: none !important;
}
}
  
/* SPのみ
================================================== */

@media(min-width:789px){
.sp{
    display: none !important;
}
}