/* メイン訴求ゾーン */
.product-container {
    max-width: 1000px;
    background: #e7f8ff;
    padding: 10px 20px;
}

.category-header_title {
    font-size: clamp(2rem, 2vw, 2.8rem) !important;
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
}

.sub_taitle {
    font-size: clamp(1.4rem, 2vw, 1.7rem) !important;
    color: #f4511e;
    font-weight: bold;
    text-shadow: 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa, 0 0 3px #fafafa;
}

.main-visual-sence-wrap {
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* ★左右の高さを揃える */
}

.content-left-sence {
    flex: 2;
    display: flex;
    flex-direction: column;
    margin: 10px 0 0;
}

/* 説明文エリアのスタイル */
.description-box-sence {
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    align-items: center;
}

.card-group-sence {
    display: flex;
    gap: 12px;
}

/* カード1枚ずつのスタイル */
.info-card-sence {
    flex: 1;
    border: 2px solid #e1f0ff; /* 薄い青の枠線 */
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

/* カードのヘッダー部分（薄い青背景） */
.card-header-sence {
    background-color: #eef7ff;
    color: #1f6fe5;
    font-weight: bold;
    padding: 7px 0;
    font-size: 16px;
    text-align: center;
}

.card-content-sence {
    padding: 5px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* アイコン設置スペース */
.card-icon {
    margin-bottom: 10px;
}
.card-icon img {
    width: 50px; /* アイコンのサイズ調整 */
    height: auto;
}

.unit-sence {
    font-size: 12px;
    color: #333;
}

.price-sence {
    color: #f4511e;
    font-weight: bold;
    font-size: 20px;
}

.pick_text {
    font-size: 22px !important;
}

.note-sence {
    font-size: 9px;
    line-height: 1.3;
}

/* 右側画像エリアの調整 */
.item-visual-sence {
    flex: 1.3;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-visual-sence img {
    width: 100%;
    height: auto; /* アスペクト比を維持 */
    object-fit: contain;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .main-visual-sence-wrap {
        display: flex;
        justify-content: space-between;
        align-items: stretch;
        flex-direction: column-reverse;
    }
    .card-group-sence {
        flex-direction: column;
        gap: 0;
    }
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(3, 2fr);
    gap: 8px;
}
@media (max-width: 768px) {
.link-grid {
    grid-template-columns: repeat(1, 1fr);
}
}

.sence-anchor-link {
    background-color: #1f6fe5;
    color: white;
    text-decoration: none;
    padding: 15px 5px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    gap: 10px;
    line-height: 1;
    /* padding: 15px; */
}

.ic-gazou {
    width: 25px;         
    height: auto;
    flex-shrink: 0;          
}

.sence-anchor-link::after {
    content: '▼';
    font-size: 9px;
}

.sence-anchor-link:hover {
    opacity: 0.7;
}

/* バッジ */
.sence-badge {
    position: absolute;
    top: 45px;
    right: 7px;
    width: 110px;
    height: 110px;
    background-color: #ffffff;
    border: 2px solid #e1f0ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sence-badge-inner {
    width: 100px;
    height: 100px;
    border: 1px dashed #0264bf;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.sence-badge-inner span {
    font-size: 13px;
    font-weight: bold;
    color: #0264bf;
    line-height: 1.4;
    margin-top: 5px;
}

.icon-pencil {
    position: relative;
    display: inline-block;
    width: 12px;
    height: 6px;
    background: #0264bf;
    transform: rotate(-45deg);
    margin-bottom: 5px;
}
.icon-pencil::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    border-right: 8px solid #0264bf;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}
.icon-pencil::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    width: 2px;
    height: 6px;
    background: #0264bf;
}

@media (max-width: 768px) {
    .product-container {
        padding: 15px;
    }
    .main-visual-sence-wrap {
        flex-direction: column;
        align-items: center;
        /* padding-top: 20px; バッジが浮く分の調整 */
        gap: 0;
    }

    /* 画像をタイトルのすぐ下に配置 */
    .item-visual-sence {
        order: -1; 
        width: 80%; /* バッジを置くスペースを空けるため少し縮める */
        margin-right: 20%; /* バッジ用の右余白 */
        position: relative;
        margin: 10px 0;
    }

    .sence-badge {
        width: 90px;
        height: 90px;
        top: 250px;
        right: 15px;
        position: absolute;
    }

    .sence-badge-inner {
        width: 80px;
        height: 80px;
    }

    .icon-pencil {
        position: relative;
        display: inline-block;
        width: 13px;
        height: 6px;
        background: #0264bf;
        transform: rotate(-45deg);
        margin-bottom: 5px;
    }
   
    .sence-badge-inner span {
        font-size: 10px;
        font-weight: bold;
        color: #0264bf;
        line-height: 1.4;
        margin-top: 5px;
    }

    .content-left-sence {
        width: 100%;
    }
}


/* メイン訴求ゾーン ここまで*/



/* タブ全体のコンテナ（薄いオレンジの背景） */
.tab-menu {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 0;
    margin: 0 0 16px;
    list-style: none;
    border-bottom: 2px solid #1f6fe5;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    padding: 14px 12px;
    background-color: #bfefff;
    color: #333;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.4;
    font-size: clamp(14px, 1vw, 20px);
    text-align: center;
    position: relative;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.tab-item:hover {
    background-color: #99e2ff;
}

.tab-item.active {
    background-color: #1f6fe5;
    color: #fff;
    height: 80px;
    z-index: 2;
}

/* 下のボーダー線をアクティブタブで隠す */
.tab-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: #1f6fe5;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: tabFade 0.4s ease;
}

@keyframes tabFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.block-product__list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 20px;
}

.block-product__list li {
    width: calc((100% - 20px) / 2);
}

@media (min-width: 1024px) {
    .block-product__list li {
        width: calc((100% - 60px) / 4);
    }
}

.section-navi {
    margin-top: -100px;
    padding-top: 110px;
    margin-bottom: 40px;
}

.sp-title {
    position: relative;
    margin-bottom: 40px;
    line-height: 1.4;
    font-size: 2rem;
    background: #d5f1ff;
    color: #503e35;
    text-align: center;
    padding: 10px;
}

@media (min-width: 768px) {
    .sp-title {
        font-size: 24px;
        padding: 20px 15px;
        margin-bottom: 15px;
    }
}
.sp-subtitle {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #97d5f6;
    font-size: clamp(1.8rem, 1.5vw, 2rem);
}

/* ボタンの外枠コンテナ（中央寄せ） */
.all-item_btn {
    text-align: center;
    margin: 30px auto;
}

/* ボタン本体のスタイル */
.all-item_btn a {
    display: inline-block;
    padding: 12px 40px;
    min-width: 280px; /* 画像の比率に合わせた幅 */
    color: #001e2b; /* 濃紺：画像に合わせたカラー */
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    border: 1.5px solid #1f6fe5;
    border-radius: 12px; /* 画像のような丸み */
    background-color: #ffffff;
    transition: all 0.3s ease; /* アニメーションを滑らかに */
    box-sizing: border-box;
}

/* ホバー（マウスを乗せたとき）の動き */
.all-item_btn a:hover {
    background-color: #1f6fe5;
    color: #ffffff; /* 文字が白に */
    opacity: 0.9;
}

/* レビュー */
/* 行カード：横長・ホバーで少し浮かせる */
.review-row{
  display:flex;
  align-items:flex-start;
  gap:20px;
  margin: 20px 0;
  padding:20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background:#fff;
}

/* 左カラム：画像のみ */
.review-media{max-width:200px; flex:0 0 200px;}
.review-figure{margin:0;}
.review-img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:contain;
  border-radius:10px;
  background:#fff;
  transition:transform .25s ease;
}
.review-row:hover .review-img{ transform:scale(1.02); }

/* 右カラム：縦積み */
.review-content{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
}

/* タイトル：疑似要素の赤ライン（文字幅だけ） */
.review-title{
  position:relative;
  display:inline;          /* 文字幅ベース */
  margin-bottom: 10px;
  padding-bottom:8px;
  font-size: 1.8rem;
  font-weight:800;
  line-height:1.2;
}
.review-title::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:3px;
  background:#2589d0;
  border-radius:2px;
}

/* 画像上オーバーレイは廃止するので旧クラスを無効化 */
.product-caption{ all:unset; } /* 念のための初期化 */

/* 右カラム用の商品リンク */
.product-link{
  font-weight:700;
  font-size: 1.5rem;
  color:#2563eb;
  margin-bottom: 5px;
  text-decoration:underline;
  text-underline-offset:3px;
  display:inline-block;
}

.product-link:hover{
  text-decoration:none;
}

/* 本文と星 */
.review-rating{ color:#ffcc00; font-size:1.1em; }
.review-text{font-size: 1.4rem;line-height: 1.6;color:#111827;}

/* スマホ：縦積み＆画像大きめ */
@media (max-width:768px){
  .review-row{ flex-direction:column; }
  .review-media{ max-width:60%; flex:none; margin:0 auto; }
  .review-content{ text-align:left; } /* 必要なら center に */
}

.sensu-footer-cta {
    width: 100%;
    padding: 25px 0;
    text-align: center;
}

.sensu-btn-large {
    display: inline-block;
    width: 500px;
    padding: 15px;
    background-color: #0264bf;
    color: #ffffff !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    /* box-shadow: 0 4px 15px rgba(0, 91, 150, 0.2); */
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.sensu-btn-large:hover {
    background-color: #003d66;
}

.gazou_flex{
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.category-contents {
    padding-bottom: 30px !important;
}

.product-card {
    background-color: #e6f2ff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

input[name="size-tab"] {
    display: none;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start; /* これで画像とタブの頭が揃います */
}

/* 左側：画像エリア */
.image-area {
    flex: 0 0 300px;
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: visible; /* バッジをはみ出させるため */
}

.image-area img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 右側：情報エリア */
.info-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tab-labels {
    display: flex;
    gap: 0;
    margin-bottom: 15px; /* 商品名との間隔 */
}

.tab-labels label {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    max-width: 150px;
    height: 40px;
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
}

.label-regular {
    border-radius: 6px 0 0 6px;
    border-right: none !important;
}

.label-mini {
    border-radius: 0 6px 6px 0;
}

#tab-regular:checked ~ .content-wrapper .label-regular,
#tab-mini:checked ~ .content-wrapper .label-mini {
    background: #004bb1;
    color: #fff;
    border-color: #004bb1;
}

.pb-badge {
    position: absolute;
    top: -15px;
    left: -15px;
    z-index: 10;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700, #ffb800);
    color: #fff;
    border-radius: 50% / 40% 60% 60% 40%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.1;
    font-size: 14px;
    font-weight: 700;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: rotate(-10deg);
}

.pb-badge .main-text {
    font-size: 15px;
    display: block;
}

.product-title {
    margin-top: 0;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.price-row {
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 5px;
}

.price {
    color: #d00;
    font-size: 20px;
}

.lot-row {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 17px;
}

.description {
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 10px;
}

.detail-button {
    display: block;
    background-color: #0071e3;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
    font-size: 15px;
}

.detail-button:hover {
    background-color: #005bb5;
}

/* 表示切り替え */
.product-img, .info-content {
    display: none;
}

#tab-regular:checked ~ .content-wrapper .regular-img,
#tab-regular:checked ~ .content-wrapper .regular-content,
#tab-mini:checked ~ .content-wrapper .mini-img,
#tab-mini:checked ~ .content-wrapper .mini-content {
    display: block;
}

@media (max-width: 600px) {
    .content-wrapper {
        flex-direction: column;
    }
    .image-area {
        flex: none;
        width: 100%;
        margin-bottom: 20px;
    }
    .tab-labels label {
        max-width: none;
    }
}