@charset "UTF-8";
/*===== 基本設定 =====*/
:root {
  --color-primary: #1E2A44/*#555555*/;
  --color-secondary: #C6B7A3/*#8B6D5E*/;
  --color-accent: #F5F4F0/*#DCC4B8*/;
  --color-frame: #CCCCCC;	
  --color-text: #444444;
  --color-back: #E8D5CC;
  --color-light: #F5F5F5;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-sand: #B4A27B;	
  --color-pink: #D8A7A7;
  --color-mint: #A8C3A3;
  --color-blue: #A7C6D8;
  --color-green: #3E6C68/*#88B175*/;
  --color-attn: #D59B09;
  --color-sale: #A24C5A/*#C30002*/;
  --color-line: #3D863D;	
  --color-rakuten: #BF0000;
  --color-yahoo: #FF0033;
  --transition: all 0.4s ease}

/* グローバルの sectionリセット削除 */
/*
section {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}*/

/* item_wrap内限定 */
.item_wrap, 
.item_wrap * {
  box-sizing: border-box;
}

/* item_wrap内 section余白リセット*/
.item_wrap section {
  margin: 0;
  padding: 0;
}

/* タイポグラフィ */
.item_wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 750px;
  height: auto;
  min-height: 400px;
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 2.0;
  letter-spacing: 0.05em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}

/* 見出し＆キャプション */
.item_wrap .item_h1,
.item_wrap .item_h2,
.item_wrap .item_h3,
.item_wrap .item_h4,
.item_wrap .item_h4k,
.item_wrap .item_h5,
.item_wrap .item_caption,
.item_wrap .accordion-header.item_caption {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  letter-spacing: 0.06em;
}

/* モバイル微調整：さらに読みやすく */
@media (max-width: 767px) {
  .item_wrap { font-size: 0.875rem; line-height: 2.05; letter-spacing: 0.055em; }
}

/* ワイド画面でほんの少しだけベースアップ */
@media (min-width: 1200px) {
  .item_wrap { font-size: 0.9rem; line-height: 2.0; letter-spacing: 0.045em; }
}

/*=== 商品詳細画像 ===*/
.item_wrap img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/*=== タイトル／テキスト ===*/
.item_h1 {
  font-size: 1.5rem !important;
  margin: 10px 0;
  text-align: center;
}

.item_h2 {
  font-size: 1.4rem !important;
  font-weight: 500;
  line-height: 1.5;
}

.item_h3 {
  font-size: 1.0rem !important;
  font-weight: 500;
  line-height: 1.5;
  margin: 0.8rem 0 1.2rem;
  text-align: center;
}

.item_h4 {
  font-size: 0.95rem !important;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
  margin: 1rem 0;
  padding-bottom: 1rem;
  color: var(--color-secondary);
  border-bottom: 1px solid var(--color-frame);
}

.item_h4k {
  font-size: 0.95rem !important;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
  margin: 1rem 0;
}

.item_h5 {
  font-size: 0.9rem !important;
  line-height: 1.5;
  text-align: center;
  font-weight: 500;
  margin: 1rem 0;
}

.small-text {
  font-size: 0.875rem;
  line-height: 1.75;
}
		
.left-text {
  text-align: left;
  line-height: 1.7;
}
		
.right-text {
  margin: 0 1rem;
  line-height: 1.7;
}

.center-text { text-align: center; }

/*=== フレームなど ===*/
.item_frame {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--color-frame);
  min-height: 100px;
}

.item_frame img {
  margin: 0 auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  height: auto;
}

.size_frame {
  margin: 10px 0;
  padding: 0 15px;
  border: 0px solid var(--color-frame);
  min-height: 100px;
}

.center_frame {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/*=== キャプションエリア ===*/
.item_caption {
  width: 100%;
  max-width: 750px;
  text-align: center;
  margin: 0 !important;
  padding: 12px 0 !important;
  font-size: 1.05rem;
  font-weight: 500;
  background-color: var(--color-light);
  color: var(--color-text); !important;
}

/*=== サイズスペック ===*/
.item_spec {
  width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
}

.spec-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-frame);
  padding: 8px 0;
}

.spec-label {
  width: 30%;
  font-weight: 500;
  white-space: nowrap;
}

.spec-full {
  flex: 1;
  margin: 5px 0;
  line-height: 1.7;
  white-space: normal;
}

.spec-values {
  display: flex;
  justify-content: center;
  gap: 0.8em;
  flex-wrap: wrap;       /* ←長文は改行してOKにする */
}

.spec-values div {
  text-align: center;
  white-space: nowrap;   /* ←スマホで潰れ防止（長すぎたらwrapする） */
}

		
/*===== アンダーバー =====*/
.item_u-bar {
  margin-bottom: 2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-frame);
}

/*=== .item_wrap 内だけのリンク設定 ===*/
.item_wrap a {
  color: #0000EE;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.item_wrap a:visited { color: #551A8B; }

.item_wrap a:hover,
.item_wrap a:active {
  color: #0000EE;
  will-change: color;
}

/*=== アコーディオン ===*/
.accordion {
  max-width: 750px;
  margin: 0 auto;
  width: 100%;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: var(--color-white);
}

/*.accordion-content > *:first-child { margin-top: 0 !important; }*/

/* .active は JS で制御。CSSでは max-height を定義しない */
.accordion-content.active { /* JSでmax-height設定 */ }

.accordion-header {
  cursor: pointer;
  position: relative;
  color: inherit;
}

.accordion-header.item_caption {
  width: 100%;
  max-width: 750px;
  text-align: center;
  margin: 0;
  padding: 16px 0;
  font-size: 1.15rem;
  font-weight: 500;
  background-color: var(--color-light);
  color: var(--color-text); !important;
}

.accordion-header::after {
  content: '＋';
  position: absolute;
  right: 1rem;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.accordion.open .accordion-header::after { content: '－'; }

/*===== 骨格別 =====*/
.comment-section {
  margin: 0 auto !important;
  background-color: var(--color-white);
  border: 1px solid var(--color-frame);
  padding: 1.5rem 1.2rem 1.0rem;
  max-width: 750px;
}

/* 箇条書きリスト */
.accordion-content ul,
.comment-section ul {
  list-style-type: disc !important;
  list-style-position: inside !important;
  margin: 0 0 1rem;
  padding-left: 0.5em;
}

.accordion-content li,
.comment-section li { 
  font-size: 0.875rem;
  line-height: 1.85;
  letter-spacing: 0.06em;
  padding: 0;
}

/* スペック表記 */
.comment-row {
  text-align: center;
  margin: 0.8rem 0;
}

/* コメントエリア */
.comment-body {
  text-align: left;
  line-height: 1.85;
  letter-spacing: 0.06em;
}

/* 備考 */
.comment-note {
  font-size: 0.8rem;
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
  text-align: left;
}

/*===== 骨格別/サイズ・タブ =====*/
.tab-buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  font-size: 1.0rem;
  border-bottom: 1px solid var(--color-frame);
}

.tab-button {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 1.0rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  cursor: pointer;
  color: var(--color-secondary);
  transition: all 0.3s ease;
}

.tab-button:hover { background-color: #f2f2f2; }

.tab-button.active {
  border-bottom: 4px solid var(--color-secondary);
  color: var(--color-secondary);
}

/* カラバリ・タブ中身 */
.color-tab-content {
  margin: 0 auto;
  padding: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  z-index: 0;
  box-sizing: border-box;
  word-break: break-word;
}

.color-tab-content.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.color-tab-content img {
  transition: none !important;
  backface-visibility: hidden;
  transform: translateZ(0);
  margin-bottom: 10px;
}

.color-tab-content ul {
  list-style-type: disc !important;
  list-style-position: inside !important;
  margin: 0 0 1rem;
  padding-left: 0.5em;
}
.color-tab-content li { padding: 0; }

/* ▼ カラバリタブボックス本体 */
.open-tabs {
  max-width: 750px;
  margin: 0 auto 3rem;
  padding: 0;
  background-color: #fff;
  border: 1px solid var(--color-frame);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* カラバリ ボタン */
.color-tab-button {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 500;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.color-tab-button:hover { background-color: var(--color-light); }

.color-tab-button.active {
  border-bottom: 4px solid var(--color-secondary);
  color: var(--color-text);
}

/* コンテンツエリア */
.tab-content-wrapper {
  padding: 18px;
  text-align: center;
  position: relative;
  min-height: 1px;
}

.tab-content img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 0;
  transition: opacity 0.6s ease-in-out;
  backface-visibility: hidden;
  transform: translateZ(0); 
}

/* 生地詳細画像 */
.fab-box {
  width: 100%;
  max-width: 750px;
  margin: 0 auto;
  padding: 12px;
}
.fab-box img {
  width: 100%;
  height: auto;
}

/* 親の .item_frame img の汎用指定を、fab-box配下だけ無効化 */
.item_frame .fab-box img{
  padding: 0 !important;      /* ←これが決定打 */
  width: 100% !important;
  max-width: 100%;
  display: block;
  box-sizing: border-box;      /* 念のための保険 */
}

/* 直接の子画像だけに適用し、fab-box内のimgには当てない */
.item_frame > img{
  margin: 0 auto;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  height: auto;
}

/* リスト表示調整 */
.tab-content ul {
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding-left: 1.4em;
  margin: -0.8rem auto 0.8rem;
  text-align: left;
  max-width: 500px;
}

.tab-content li {
  list-style-type: disc !important;
  list-style-position: outside !important;
  text-indent: 0;
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.tab-content {
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
  z-index: 0;
  box-sizing: border-box;
  word-break: break-word;
}

.tab-content.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

/* 商品メイン画像タップ有効化 */
.itemThumb-main .zoomItemPic { display:block; pointer-events:auto; position:relative; z-index:1; }
.itemThumb-main .zoomItemPic img.mainImg { cursor: zoom-in; }
.itemThumb-main { position:relative; }

/* スクロール誤爆防止 */
.itemThumb-main .zoomItemPic,
.itemThumb-main .zoomItemPic .mainImg {
  touch-action: pan-y;          /* 縦スクロール優先 */
  -webkit-user-drag: none;      /* 画像のドラッグ抑制 */
}

/*===== PC/タブレット・マージン =====*/
.mb-10 { margin-bottom: 10px }
.mb-20 { margin-bottom: 20px }
.mb-30 { margin-bottom: 30px }
.mb-40 { margin-bottom: 40px }
.mb-50 { margin-bottom: 50px }
.mb-75 { margin-bottom: 75px }
.mb-100 { margin-bottom: 100px }
.mb-125 { margin-bottom: 125px }
.mb-150 { margin-bottom: 150px }
.mb-200 { margin-bottom: 200px }
/*===== =====*/

/*===== マイナス・マージン =====*/
.mb-n10 { margin-bottom: -10px }
.mb-n20 { margin-bottom: -20px }
.mb-n30 { margin-bottom: -30px }
.mb-n40 { margin-bottom: -40px }
.mb-n50 { margin-bottom: -50px }
/*===== =====*/

/*===== レスポンシブ対応 =====*/
@media (max-width: 767px) {
  /*===== スマホ マージン =====*/
  .mb-10 { margin-bottom: 0.625rem }
  .mb-20 { margin-bottom: 1.25rem }
  .mb-30 { margin-bottom: 1.875rem }
  .mb-40 { margin-bottom: 2.5rem }
  .mb-50 { margin-bottom: 3.125rem }
  .mb-75 { margin-bottom: 4.6875rem }
  .mb-100 { margin-bottom: 6.25rem }
  .mb-125 { margin-bottom: 7.8125rem }
  .mb-150 { margin-bottom: 9.375rem }
  .mb-200 { margin-bottom: 12.5rem }
}
/*===== =====*/
