@charset "utf-8";

/* ==========================================================================
   共通・ベース設定
   ========================================================================== */
:root {
    --main-color: #FF9E8F;   /* コーラルピンク */
    --sub-color: #4DB6AC;    /* ミントグリーン */
    --bg-color: #FDFCFB;     /* 優しい白 */
    --text-color: #4A4A4A;
    --card-bg: #FFFFFF;
}

body.syokutsu_theme {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    line-height: 1.6;
}

.mypage-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.m-content-start {
    padding-top: 80px; /* ヘッダー分 */
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}


/* ==========================================================================
   ヘッダー (m-header)
   ========================================================================== */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.m-logArea h1 {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    color: var(--main-color);
    margin: 0;
}

.m-logArea img {
    height: 30px;
    margin-right: 10px;
}

.m-headerBtnArea {
    display: flex;
    align-items: center;
    gap: 15px;
}

.m-btn-primary {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.news-m-btn-primary{
	margin:0 auto;
	display:block;
	margin-top:40px;
	font-size:1.4rem;
}

.m-btn-primary:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* ハンバーガー */
.m-hamburger {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.m-hamburger span {
    width: 100%;
    height: 3px;
    background: var(--main-color);
    border-radius: 3px;
}

.m-side-nav {
    position: fixed;
    top: 0;
    right: -100%; /* 最初は画面外 */
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 2001; /* オーバーレイより上 */
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 80px 20px 20px;
    box-sizing: border-box;
}

/* JSで .active が付与されたとき */
.m-side-nav.active {
    right: 0;
}

.m-side-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.m-side-nav li {
    margin-bottom: 5px;
}

.m-side-nav li a {
    display: block;
    padding: 15px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 10px;
    transition: background 0.3s;
}

.m-side-nav li a:hover {
    background: #f8f6f1;
    color: var(--main-color);
}

/* 区切り線 */
.nav-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

/* 背景オーバーレイ（薄暗い背景） */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    backdrop-filter: blur(2px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ハンバーガーボタンの状態変化 */
.m-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.m-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.m-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* スマホでの調整：ヘッダーのボタンエリアを微調整 */
@media screen and (max-width: 768px) {
    .m-headerBtnArea {
        gap: 10px;
    }
    .m-header .m-btn-primary {
        padding: 8px 15px;
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   ユーザーステータス (status-card)
   ========================================================================== */
.user-status-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.status-card {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    text-align: center;
}

.status-label {
    font-size: 1.4rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.status-value {
    font-size: 3.6rem;
    font-weight: 900;
    color: var(--main-color);
}

.status-value .unit {
    font-size: 1.6rem;
    margin-left: 5px;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-primary {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
}

.btn-secondary {
    background: var(--sub-color);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
}

/* ==========================================================================
   お知らせセクション (news-section)
   ========================================================================== */
.news-section {
    margin-bottom: 40px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.news-header h2{
	line-height:3rem;
}
.news-header a{
	font-size:1.4rem;
	line-height:3rem;
}

.news-container {
    background: #fff;
    border-radius: 15px;
    padding: 10px;
}

.news-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.news-card.new-arrival::after {
    content: "NEW";
    background: #FF5252;
    color: #fff;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
}

.news-date {
	color: #aaa; 
	margin-right: 15px; 	
	font-size:1.2rem;
	line-height: calc(1.4rem * 1.5);
}

.tag-system { 
	background: #eee; color: #666; padding: 2px 8px; border-radius: 4px; font-size: 1.4rem; }
.tag-contract { background: #E0F2F1; color: var(--sub-color); padding: 2px 8px; border-radius: 4px; font-size: 1.4rem; }
.news-content{
	font-size:1.4rem;
}

/*■レスポンシブル*/ 
@media screen and (max-width: 1025px) 
{
	.news-card {
        flex-wrap: wrap; /* 要素が入り切らない時に折り返す */
        padding: 12px 10px;
        align-items: flex-start;
    }

    .news-date {
        font-size: 1.1rem;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .tag-system, .tag-contract {
        font-size: 1.1rem;
        padding: 1px 6px;
        margin-bottom: 5px; /* タイトルの前に隙間を空ける */
    }

    .news-content {
        width: 100%; /* タイトルを次の行に送って幅を確保 */
        margin-top: 5px;
        font-size: 1.3rem;
        line-height: 1.4;
    }

	.calendar-header {
        flex-direction: column; /* 矢印と見出しを分ける */
        align-items: flex-start;
        gap: 10px;
    }

    .mini-calendar-controls {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* カレンダーのカードが縦に伸びすぎるのを防ぐ */
    .weekly-track {
        grid-template-columns: repeat(4, 1fr); /* 4列を維持しつつ */
        gap: 8px;
    }

    .w-day-card {
        padding: 10px 2px;
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   週間カレンダー (mypage-calendar-card)
   ========================================================================== */
.mypage-calendar-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header h3{
	line-height:3rem;
}

.mini-calendar-controls button{
	border:none;
	font-size:1.4rem;
	line-height:3rem;
	padding:0 0.75rem;
	box-sizing:border-box;
	border-radius:5px;
}
.month-display{
	font-size:1.4rem;
	margin:0 1rem;
	line-height:3rem;
}


.weekly-track {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.w-day-card {
    text-align: center;
    padding: 15px 5px;
    border-radius: 12px;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
	font-size:1.4rem;
}

.w-day-card.today {
    background: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.w-label { display: block; font-size: 1.2rem; }
.w-date { display: block; font-weight: bold; margin: 5px 0; }
.w-rate { font-weight: 900; color: var(--main-color); }
.today .w-rate { color: #fff; }

/* ==========================================================================
   アイテムグリッド (item-grid)
   ========================================================================== */
/* カテゴリータブ */
.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    overflow-x: auto; /* スマホで横スクロール可能に */
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

.tab-btn:hover:not(.active) {
    border-color: var(--main-color);
    color: var(--main-color);
}

.empty-message {
    grid-column: 1 / -1;
    padding: 60px;
    background: #fdfcfb;
    border-radius: 20px;
    text-align: center;
    color: #aaa;
    border: 2px dashed #eee;
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.item-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    cursor: pointer;
}

.item-card:hover { transform: translateY(-5px); }

.item-img-wrap {
    position: relative;
    height: 200px;
}

.exchange-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sub-color); /* ミントグリーン #4DB6AC */
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    z-index: 2; /* 画像より上に表示 */
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    pointer-events: none; /* クリックイベントを背後のカードに透過させる */
}

.item-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.iine-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
	z-index: 2;
}

.item-info { padding: 20px; }

.item-info h3 { font-size: 1.8rem; margin: 0 0 15px 0; }

.price-logic-stack {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.old-price { color: #aaa; }
.required-cube span { color: var(--main-color); font-weight: 900; font-size: 2rem; }
.real-price-summary span { font-weight: 900; font-size: 2.2rem; color: #eb1c24; }

.gauge-container {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 5px;
}

.gauge-fill {
    height: 100%;
    background: var(--sub-color);
    border-radius: 4px;
    transition: 0.5s;
}

.iine-btn {
    width: 100%;
    border: 2px solid var(--main-color);
    background: none;
    color: var(--main-color);
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.iine-btn.iine_conp {
    background: #eee;
    border-color: #eee;
    color: #aaa;
    cursor: default;
}

/* ==========================================================================
   モーダル (modal-overlay)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    padding: 40px;
    border-radius: 25px;
    position: relative;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #ccc;
    cursor: pointer;
}

.result-body{
	text-align:center;
}
#resultTitle{
	font-size:1.8rem;
	line-heght:3;
}
#resultText{
	font-size:1.4rem;
}

.purchase-package-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.package-item {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.package-item.featured {
    border-color: var(--main-color);
    background: rgba(255, 158, 143, 0.05);
}

.package-amount { font-size: 2.4rem; font-weight: 900; }

.package-select-btn {
    width: 100%;
    background: #eee;
    border: none;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.featured .package-select-btn {
    background: var(--main-color);
    color: #fff;
}

/* ==========================================================================
   スマホ対応 (Media Queries)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .user-status-area, .action-grid {
        grid-template-columns: 1fr;
    }
    
    .weekly-track {
        grid-template-columns: repeat(4, 1fr); /* スマホは4列にしてはみ出す形式 */
        overflow-x: auto;
    }

    .purchase-package-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   お友だち招待モーダル (referralModal)
   ========================================================================== */

/* コピーボックスのレイアウト */
.referral-copy-box {
    display: flex;
    gap: 10px;
    background: #f8f6f1;
    padding: 15px;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #eee;
}

.referral-copy-box input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.4rem;
    color: #666;
    outline: none;
}

.referral-copy-box button {
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.3s;
}

.referral-copy-box button:hover {
    opacity: 0.8;
}

/* SNSシェアボタンのグリッド */
.share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border-radius: 15px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    color: #fff;
}

.share-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.share-icon {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.share-label {
    font-size: 1.1rem;
    font-weight: bold;
}

/* 各SNSのブランドカラー */
.share-item.line {
    background-color: #06C755; /* LINEグリーン */
}

.share-item.x-sns {
    background-color: #000000; /* Xブラック */
}

.share-item.email {
    background-color: #888888; /* メーラーグレー */
}

/* モバイル対応：シェアボタンを縦並びにするか調整 */
@media screen and (max-width: 480px) {
    .share-grid {
        grid-template-columns: 1fr;
    }
    
    .share-item {
        flex-direction: row;
        gap: 15px;
        padding: 15px;
    }
    
    .share-icon {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   フォーム共通スタイル (推薦・お問い合わせ用)
   ========================================================================== */

/* 入力グループの余白 */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

/* ラベルの装飾 */
.input-group label {
    display: block;
    font-weight: bold;
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 8px;
    padding-left: 2px;
}

/* 入力フィールド・テキストエリア共通 */
.input-group input[type="text"],
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.4rem;
    box-sizing: border-box; /* 幅100%を維持 */
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fafafa;
}

/* フォーカス時の強調 */
.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(235, 28, 36, 0.1);
    background-color: #fff;
}

/* セレクトボックスの調整 */
.input-group select {
    appearance: none; /* デフォルトの矢印を消す(必要に応じて) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%3C888' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* 送信ボタン（購入ボタンのデザインと共通化） */
.purchase-action-btn {
    background-color: var(--main-color);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.6rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.purchase-action-btn:hover {
    background-color: #d11920;
    transform: translateY(-2px);
}

.purchase-action-btn:active {
    transform: translateY(0);
}

/* モーダル内のヘッダー調整 */
.modal-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.modal-header p {
    font-size: 1.3rem;
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
}


/* ==========================================================================
   商品詳細モーダル (itemDetailModal)
   ========================================================================== */

/* モーダルの幅を少し広めに設定 */
.item-detail-content {
    max-width: 850px;
    padding: 0; /* 内部のグリッドで余白を調整するため一旦リセット */
    overflow: hidden;
}

/* 左右2カラムのグリッドレイアウト */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    height: 100%;
}

/* 左側：商品画像エリア */
.detail-img {
    background: #f0f0f0;
    line-height: 0;
}

.detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

/* 右側：情報エリア */
.detail-info {
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.detail-info h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* 価格・Cube数ボックス */
.detail-price-box {
    background: #fdf8f7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.detail-old-price {
    font-size: 1.3rem;
    color: #888;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.detail-cube {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.detail-cube span {
    font-size: 2.4rem;
    color: var(--main-color);
}

.detail-real-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #eb1c24;
    border-top: 1px dashed #decbc8;
    padding-top: 10px;
    margin-top: 5px;
}

.detail-real-price span {
    font-size: 2.8rem;
}

/* リンク・送料 */
.detail-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.producer-link a {
    color: var(--sub-color);
    text-decoration: none;
    font-weight: bold;
}

.shipping-info {
    color: #666;
    background: #eee;
    padding: 2px 10px;
    border-radius: 4px;
}

/* 商品説明テキスト */
.detail-description {
    font-size: 1.4rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1; /* ボタンを下に押し下げる */
	white-space: pre-wrap;
}

/* 無効化ボタン（isExchangeable === 0 の時用） */
.purchase-action-btn.btn-disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* スマホ対応：1カラムに変更 */
@media screen and (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-img img {
        min-height: 250px;
        max-height: 350px;
    }
        
    .detail-info h2 {
        font-size: 2rem;
    }

	.modal-content {
        width: 95%;
        max-height: 85vh; /* 画面の85%までに制限 */
        padding: 30px 20px;
        overflow-y: auto; /* 内部スクロールを強制 */
        -webkit-overflow-scrolling: touch; /* iOSでのスクロールを滑らかに */
    }

    .detail-info {
        padding: 20px 15px;
    }
}

/* ==========================================================================
   交換確認・配送先入力エリア (exchange_process)
   ========================================================================== */

.exchange-confirm-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.exchange-confirm-container h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--text-color);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

/* 配送先入力フォームの装飾 */
.ship-form-group {
    margin-bottom: 25px;
    text-align: left;
}

.ship-form-group label {
    display: block;
    font-weight: bold;
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #444;
}

.ship-form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.5rem;
    transition: 0.3s;
    background: #fafafa;
}

.ship-form-group input:focus {
    border-color: var(--main-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(235, 28, 36, 0.05);
    outline: none;
}
.exchange-item-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fdfcfb;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #eee;
}

.input-note, .final-check-box label{
	font-size:1.4rem;
	line-height:2;
}

.summary-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.summary-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.summary-info {
    text-align: left;
}

.summary-label {
    font-size: 1.1rem;
    color: #888;
    display: block;
}

.summary-title {
    font-size: 1.6rem;
    margin: 5px 0;
    color: var(--text-color);
}

.summary-required {
    font-size: 1.4rem;
}

.summary-required strong {
    color: var(--main-color);
    font-size: 1.8rem;
}

/* 郵便番号入力欄の調整 */
.zip-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zip-row span {
    font-size: 1.6rem;
    font-weight: bold;
}

.zip-input {
    max-width: 150px;
}

/* 交換内容のサマリーボックス */
.exchange-summary {
    background: #fdf8f7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px dashed var(--main-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.summary-item.total {
    border-top: 1px solid #decbc8;
    margin-top: 10px;
    padding-top: 10px;
    font-weight: bold;
    font-size: 1.6rem;
    color: var(--main-color);
}

/* 最終実行ボタン */
.final-submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(235, 28, 36, 0.3);
    transition: 0.3s;
}

.final-submit-btn:hover {
    background: #d11920;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 28, 36, 0.4);
}

.shipping-form-area-backBtn{
	 width: 100%;
    padding: 15px;
	border-radius:10px;
	border:1px solid var(--main-color);
	background:#fff;
	margin-top:1rem;
	position:relative;
	box-sizing:border-box;
	cursor: pointer;
	 transition: 0.3s;
	text-align:center;
}
.shipping-form-area-backBtn p{
	color:var(--main-color);
	font-size:1.6rem;
}
.shipping-form-area-backBtn a{
	position:absolute;
	inset:0;
}

.shipping-form-area-backBtn:hover {
    background: #d11920;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 28, 36, 0.4);
}
.shipping-form-area-backBtn:hover p{
	color:#fff;
}


/* 注意書き */
.exchange-note {
    margin-top: 20px;
    font-size: 1.2rem;
    color: #888;
    line-height: 1.6;
}

/* ==========================================================================
   driver.js のカスタマイズ
   ========================================================================== */
.driver-popover {
    background-color: #fff;
    color: var(--text-color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.driver-popover-title {
    font-size: 1.8rem !important;
    font-weight: bold;
    color: var(--main-color) !important;
}

.driver-popover-description {
    font-size: 1.4rem !important;
    line-height: 1.6;
}

.driver-popover-next-btn, .driver-popover-prev-btn {
    background: var(--main-color) !important;
    text-shadow: none !important;
    border: none !important;
    color: #fff !important;
    border-radius: 5px !important;
}

/* ==========================================================================
   スライド式ヘルプ (Slide-in Help)
   ========================================================================== */

.help-slide-overlay {
    position: fixed;
    top: 0;
    right: -100%; /* 最初は右側に隠しておく */
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10000; /* 全ての要素の上に配置 */
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* 滑らかな動き */
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
	visibility: hidden;    /* 非表示時は存在を消して「ぶれ」を防ぐ */
    pointer-events: none; /* クリックも無効化 */
    box-sizing: border-box;
}

.help-slide-overlay.active {
    right: 0; /* 画面に表示 */
	visibility: visible;   /* 表示時のみ有効化 */
    pointer-events: auto;
}

.help-content-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* 内部でも絶対に横に飛ばさない */
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.help-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    background: #fdfcfb;
	box-sizing:border-box;
}

.help-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--main-color);
}

.help-close-btn {
    background: none;
    border: none;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

.help-content-body {
    flex: 1;
    overflow-y: auto; /* 内部でスクロール可能に */
    padding: 20px;
    -webkit-overflow-scrolling: touch;
	box-sizing:border-box;
	
}

.help-loading {
    text-align: center;
    padding: 50px;
    color: #aaa;
    font-size: 1.4rem;
	box-sizing:border-box;
}

/* PCの場合は右側から半分だけ出すような設定も可能（任意） */
@media screen and (min-width: 769px) {
    .help-slide-overlay {
        width: 500px;
        right: -500px; /* PCは幅に合わせて隠す距離を調整 */
    }
    .help-slide-overlay.active {
        right: 0;
    }
}