@charset "UTF-8";
/* ===== レイアウトの変更はここ ===== */
.wig-guide {
  --wg-pc-columns: 2;       /* PC：2列×2段 */
  --wg-mobile-columns: 1;   /* スマホ：1で縦並び、2で2列 */
  --wg-mobile-gap: 16px;
  --wg-text: #37332f;
  --wg-muted: #81766d;
  --wg-line: #e9e2da;
  --wg-card: #fffdfb;
  --wg-soft: #f5f1eb;
  --wg-rose: #b94e58;
  max-width: 1000px;
  margin: 0 auto;
  color: var(--wg-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
/* 既存サイトへ影響しないよう、すべて.wig-guide内に限定 */
.wig-guide, .wig-guide * { box-sizing: border-box; }
.wig-guide :where(h1,h2,h3,p,figure,ul) { margin: 0; padding: 0; }
.wig-guide ul { list-style: none; }
.wig-guide img { max-width: 100%; height: auto; display: block; }
.wig-guide .wg-page { padding: 30px 10px 40px; background: #fff; }
.wig-guide .wg-page-header { margin-bottom: 38px; }
.wig-guide .wg-eyebrow { font-size: 15px; letter-spacing: .16em; color: var(--wg-muted); margin-bottom: 12px; }
.wig-guide h1 { font-size: clamp(25px, 3.5vw, 36px); line-height: 1.5; font-weight: 700; letter-spacing: .02em; }
.wig-guide .wg-intro { margin-top: 16px; font-size: 18px; }
.wig-guide .wg-brand-grid { display: grid; grid-template-columns: repeat(var(--wg-pc-columns),minmax(0,1fr)); gap: 20px 24px; align-items: stretch; }
.wig-guide .wg-card { --brand: #FF8D8D; min-width: 0; border: 1px solid var(--wg-line); border-top: 4px solid var(--brand); border-radius: 10px; background: var(--wg-card); padding: 16px 20px 22px; container-type: inline-size; }
.wig-guide .wg-card--bloomia { --brand: #80615f; }
.wig-guide .wg-card--andnoble { --brand: #4f638d; }
.wig-guide .wg-card--remy { --brand: #b24c62; }
.wig-guide .wg-brand-name { color: var(--brand); font-size: 18px; font-weight: 600; }
.wig-guide .wg-logo { width: 142px; height: 36px; object-fit: contain; margin: 14px auto 20px; }
.wig-guide .wg-headline { font-size: 25px; font-weight: 700; line-height: 1.55; min-height: 78px; }
.wig-guide .wg-cap { height: 205px; display: flex; align-items: center; justify-content: center; margin: 10px 0 16px; }
.wig-guide .wg-cap img { width: auto; height: auto; max-height: 100%; max-width: 100%; object-fit: contain; }
.wig-guide .wg-feel { font-size: 16px; line-height: 1.8; min-height: 87px; margin-bottom: 18px; }
.wig-guide h3 { color: var(--wg-muted); font-size: 15px; font-weight: 500; }
.wig-guide .wg-hair { border-left: 4px solid var(--brand); background: var(--wg-soft); border-radius: 6px; padding: 12px 16px; min-height: 142px; }
.wig-guide .wg-hair h3 { color: var(--brand); }
.wig-guide .wg-hair-type { color: var(--brand); font-weight: 700; font-size: 22px; line-height: 1.5; margin-top: 4px; }
.wig-guide .wg-hair-description { font-size: 16px; margin-top: 8px; }
.wig-guide .wg-sizes { margin-top: 18px; }
.wig-guide .wg-size-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.wig-guide .wg-size-list li { display: grid; place-items: center; width: 60px; height: 36px; border: 1px solid var(--brand); background: var(--brand); color: #fff; border-radius: 5px; font-size: 18px; font-weight: 500; }
.wig-guide .wg-colors { margin-top: 18px; }
.wig-guide .wg-swatches { display: flex; gap: 9px; margin-top: 10px; }
.wig-guide .wg-swatch { position: relative; flex: 0 1 72px; aspect-ratio: 1; min-width: 0; border-radius: 50%; overflow: hidden; isolation: isolate; }
.wig-guide .wg-swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.wig-guide .wg-swatch::after { content: ""; position: absolute; inset: 0; background: #0002; z-index: 0; }
.wig-guide .wg-swatch span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; line-height: 1.3; font-weight: 500; text-align: center; text-shadow: 0 1px 3px #000; z-index: 1; }
.wig-guide .wg-page-note { margin-top: 22px; color: var(--wg-muted); font-size: 13px; }
/* 2ページ目：数値を変更する場合はHTMLの --start（50cmからの差）と --span（幅cm）を編集 */
.wig-guide .wg-page--map { padding-top: 40px; }
.wig-guide .wg-section-title { font-size: 27px; font-weight: 600; margin-bottom: 26px; }
.wig-guide .wg-map-scroll { overflow-x: auto; padding-bottom: 10px; }
.wig-guide .wg-map-scroll:focus-visible { outline: 2px solid var(--wg-rose); outline-offset: 3px; }
.wig-guide .wg-map { --label: 152px; position: relative; min-width: 680px; padding-left: 34px; }
.wig-guide .wg-axis-caption, .wig-guide .wg-axis-direction, .wig-guide .wg-ticks, .wig-guide .wg-map-note { margin-left: var(--label); }
.wig-guide .wg-axis-caption { font-size: 14px; }
.wig-guide .wg-axis-direction { display: flex; justify-content: space-between; color: var(--wg-muted); font-size: 12px; margin-bottom: 22px; }
.wig-guide .wg-ticks { position: relative; height: 25px; font-size: 12px; }
.wig-guide .wg-ticks span { position: absolute; left: calc(var(--tick) / 12 * 100%); transform: translateX(-50%); }
.wig-guide .wg-ticks span:last-child { transform: translateX(-100%); }
.wig-guide .wg-fit-axis { position: absolute; top: 83px; bottom: 45px; left: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; color: var(--wg-muted); font-size: 11px; }
.wig-guide .wg-fit-label { writing-mode: vertical-rl; letter-spacing: .15em; }
.wig-guide .wg-map-row { display: grid; grid-template-columns: var(--label) minmax(0,1fr); min-height: 80px; }
.wig-guide .wg-map-brand { padding: 22px 10px 0 8px; color: #79685c; font-size: 14px; }
.wig-guide .wg-track { position: relative; height: 80px; border-bottom: 1px solid #e6dbd2; border-right: 1px solid #e6dbd2; background: repeating-linear-gradient(to right,#e6dbd2 0 1px,transparent 1px calc(100% / 12)); }
.wig-guide .wg-map-row:first-child .wg-track { border-top: 1px solid #e6dbd2; }
.wig-guide .wg-range { position: absolute; left: calc(var(--start) / 12 * 100% + 1px); width: calc(var(--span) / 12 * 100% - 2px); top: 20px; height: 36px; display: grid; place-items: center; border-radius: 7px; font-size: 14px; background: #d9cfc5; }
.wig-guide .wg-map-row--andnoble .wg-range { background: #e7d8c3; }
.wig-guide .wg-map-row--remy .wg-range { background: #e8d1d7; }
.wig-guide .wg-map-row--bloomia .wg-range { background: #e6ddd8; }
.wig-guide .wg-map-note { margin-top: 12px; font-size: 12px; color: var(--wg-muted); }
/* ===== スマートフォン ===== */
@media (max-width: 767px) {
 .wig-guide .wg-page { padding: 24px 16px 28px; }
 .wig-guide .wg-page-header { margin-bottom: 24px; }
 .wig-guide .wg-intro { font-size: 15px; }
 .wig-guide .wg-brand-grid { grid-template-columns: repeat(var(--wg-mobile-columns),minmax(0,1fr)); gap: var(--wg-mobile-gap); }
 .wig-guide .wg-card { padding: 16px 16px 20px; }
 .wig-guide .wg-feel, .wig-guide .wg-hair, .wig-guide .wg-headline { min-height: 0; }
 .wig-guide .wg-section-title { font-size: 22px; }
}
/* スマホを2列にした時もカード内を調整。列数を変えるだけで適用されます */
@container (max-width: 260px) {
 .wig-guide .wg-brand-name { font-size: 14px; }
 .wig-guide .wg-logo { width: 110px; margin: 10px auto 12px; }
 .wig-guide .wg-headline { font-size: 17px; }
 .wig-guide .wg-cap { height: 150px; }
 .wig-guide .wg-feel, .wig-guide .wg-hair-description { font-size: 13px; }
 .wig-guide .wg-hair { padding: 10px; }
 .wig-guide .wg-hair-type { font-size: 16px; }
 .wig-guide .wg-size-list { gap: 5px; }
 .wig-guide .wg-size-list li { width: 38px; height: 30px; font-size: 14px; }
 .wig-guide .wg-swatches { flex-wrap: wrap; gap: 7px; }
 .wig-guide .wg-swatch { flex: 0 0 54px; }
 .wig-guide .wg-swatch span { font-size: 9px; }
}
@media print {
 .wig-guide { max-width: none; }
 .wig-guide .wg-page { padding: 12mm 8mm; }
 .wig-guide .wg-brand-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .wig-guide .wg-card { break-inside: avoid; }
 .wig-guide .wg-page--map { break-before: page; }
 .wig-guide .wg-map-scroll { overflow: visible; }
 .wig-guide * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* サイズマップの両矢印：SVGで線幅・矢尻を固定 */
.wig-guide .wg-axis-direction { position: relative; padding-top: 20px; }
.wig-guide .wg-axis-arrow { position: absolute; display: block; overflow: visible; pointer-events: none; color: #534a43; }
.wig-guide .wg-axis-arrow--horizontal { top: 4px; left: 5px; width: calc(100% - 10px); height: 12px; }
.wig-guide .wg-map-rows { position: relative; }
.wig-guide .wg-map-rows .wg-fit-axis { top: 0; bottom: 0; left: -34px; width: 34px; }
.wig-guide .wg-axis-arrow--vertical { left: 0; top: 20px; width: 12px; height: calc(90% - 10px); }
.wig-guide .wg-fit-axis > span { margin-left: 15px; white-space: nowrap; }
.wig-guide .wg-fit-axis > span:first-child,
.wig-guide .wg-fit-axis > span:last-child { font-size: 10px; }


/* 目盛りの数字を改行しない */
.wig-guide .wg-ticks > span {
  white-space: nowrap;
  width: max-content;
  min-width: 2ch;
  text-align: center;
}

/* 右端の62を内側に収める */
.wig-guide .wg-ticks > span:last-child {
  left: auto;
  right: 0;
  transform: none;
}

.wig-guide .wg-map-row--story {
  --wg-map-brand: #FF8D8D;
}
.wig-guide .wg-map-row--bloomia {
  --wg-map-brand: #80615F;
}
.wig-guide .wg-map-row--andnoble {
  --wg-map-brand: #4F638D;
}
.wig-guide .wg-map-row--remy {
  --wg-map-brand: #B24C62;
}
.wig-guide .wg-map-row .wg-range {
  background: var(--wg-map-brand);
  color: #fff;
}

/* サイズマップ：各ブランドのサイズ欄と同じ色 */
.wig-guide .wg-map-row--story { --wg-map-brand: #FF8D8D; }
.wig-guide .wg-map-row--bloomia { --wg-map-brand: #80615F; }
.wig-guide .wg-map-row--andnoble { --wg-map-brand: #4F638D; }
.wig-guide .wg-map-row--remy { --wg-map-brand: #B24C62; }
.wig-guide .wg-map-row .wg-range {
  background: var(--wg-map-brand);
  color: #fff;
}
