/* ============================================================
   花以想 / 色で選ぶ花ギフト — 全15色ページ 共通CSS
   ファイル名: hanaimo_color.css
   格納先: /item/common/css/hanaimo_color.css
   依存: hanaimo_global_fixed.css（--hni-* 変数・body・img・a リセット）
   色固有変数（--sc / --sc-deep / --sc-pale / --sc-border）は
   各ページ V列 <style> でページごとに上書きする
   更新: 2026-03
============================================================ */

/* ============================================================
   グローバルCSS との整合メモ
   - img { aspect-ratio:1/1; border-radius:3px; } が全imgに適用
     → 各imgに aspect-ratio:auto; border-radius:0; を明示リセット
   - a { text-decoration:none; color:inherit; } 適用済み → 追加不要
   - h1〜h4 { font-family:var(--hni-font) !important } → p/div は影響なし
   - .is-active グローバルは .hni-mood__btn.is-active のみ → 単独競合なし
   - body { font-family:var(--hni-font); } → 全要素に font-family 明示で安全確保
============================================================ */

/* ============================================================
   色固有変数 フォールバック定義
============================================================ */
:root {
  --sc:        #01796a;
  --sc-deep:   #015e53;
  --sc-pale:   #f4f8f6;
  --sc-border: #c6d8d3;
}

/* ============================================================
   ページラッパー
============================================================ */
.sc-wrap {
  padding: 0 0 8px;
}

/* ============================================================
   色帯
============================================================ */
.sc-colorband {
  height: 4px;
  background: linear-gradient(to right, var(--sc-deep), var(--sc), var(--sc-pale));
  margin: 12px 0 0;
}

/* ============================================================
   15色ナビ
============================================================ */
.sc-colornav {
  background: var(--hni-white);
  border-top: 1px solid var(--hni-border);
  border-bottom: 1px solid var(--hni-border);
}
.sc-colornav-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 12px;
}
.sc-colornav-inner::-webkit-scrollbar { display: none; }

.sc-colornav-btn {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 11px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  min-height: 52px;
  justify-content: center;
  font-family: var(--hni-font);
  transition: background .12s;
  -webkit-tap-highlight-color: rgba(0,0,0,.04);
}
.sc-colornav-btn:hover { background: var(--hni-bg); }
.sc-colornav-btn.is-cur { border-bottom-color: var(--sc); }

.sc-colornav-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08);
}
.sc-colornav-dot.dual {
  background: linear-gradient(135deg, var(--c1) var(--sp,50%), var(--c2) var(--sp,50%));
}
.sc-colornav-name {
  font-size: 9px;
  font-family: var(--hni-font);
  color: var(--hni-text-sub);
  white-space: nowrap;
  line-height: 1;
}
.sc-colornav-btn.is-cur .sc-colornav-name {
  color: var(--sc-deep);
  font-weight: 700;
}

/* ============================================================
   C. キャッチ + キーワードタグ
============================================================ */
.sc-catch { padding: 24px 20px 16px; }

.sc-catch-copy {
  font-family: var(--hni-font-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--hni-text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.sc-catch-copy em {
  font-style: normal;
  border-bottom: 1.5px solid var(--sc);
  padding-bottom: 1px;
}

.sc-kw-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.sc-kw {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--hni-font);
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--sc-pale);
  color: var(--sc-deep);
  border: 1px solid var(--sc-border);
}

/* ============================================================
   C. メインビジュアル
   sc-catch の padding 20px を相殺して全幅表示
   PC（681px〜）では通常幅に戻す
============================================================ */
.sc-main-visual {
  display: block;
  width: calc(100% + 40px);
  margin: 0 -20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sc-pale);
  text-decoration: none;
}
/* ▼ グローバル img { aspect-ratio:1/1; border-radius:3px; border:... } をリセット */
.sc-main-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}

/* ============================================================
   D. 誰に贈る？— シーン選択
============================================================ */
.sc-for-whom {
  margin: 20px 20px 0;
  border: 1.5px solid var(--hni-border);
  border-radius: 4px;
  overflow: hidden;
}
.sc-for-whom-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--hni-bg);
  border-bottom: 1px solid var(--hni-border);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--hni-font);
  color: var(--hni-dark);
  letter-spacing: .04em;
}
.sc-for-whom-head::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--sc);
  border-radius: 2px;
  flex-shrink: 0;
}

.sc-scene-btns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hni-border);
}
.sc-scene-btn {
  background: var(--hni-white);
  border: none;
  cursor: pointer;
  padding: 14px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background .15s;
  min-height: 80px;
  justify-content: center;
  font-family: var(--hni-font);
  -webkit-tap-highlight-color: rgba(0,0,0,.04);
}
.sc-scene-btn:hover { background: var(--sc-pale); }

/* グローバルの .hni-mood__btn.is-active とはセレクタが異なり競合しない
   念のため box-shadow: none を明示 */
.sc-scene-btn.is-active {
  background: var(--sc-pale);
  box-shadow: none;
}
.sc-scene-btn.is-active .sc-scene-btn-label {
  color: var(--sc-deep);
  font-weight: 700;
}

.sc-scene-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: var(--hni-font);
  background: var(--hni-bg);
  border: 1px solid var(--hni-border);
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.sc-scene-btn.is-active .sc-scene-icon {
  background: var(--sc-pale);
  border-color: var(--sc-border);
}
.sc-scene-btn-label {
  font-size: 11px;
  font-family: var(--hni-font);
  color: var(--hni-text);
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
}
.sc-scene-btn-sub {
  font-size: 10px;
  font-family: var(--hni-font);
  color: var(--hni-text-sub);
  line-height: 1.3;
  text-align: center;
}

.sc-scene-panel {
  display: none;
  border-top: 1px solid var(--sc-border);
}
.sc-scene-panel.is-open { display: block; }

.sc-scene-panel-img {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--sc-pale);
  border-radius: 0;
}
/* ▼ グローバル img リセット上書き */
.sc-scene-panel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}

.sc-scene-panel-body {
  padding: 14px 16px;
  background: var(--sc-pale);
  font-size: 13px;
  font-family: var(--hni-font-serif);
  font-weight: 300;
  color: var(--hni-text);
  line-height: 1.9;
}
.sc-scene-panel-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--hni-font);
  color: var(--sc-deep);
  background: var(--hni-white);
  border: 1px solid var(--sc-border);
  padding: 1px 8px;
  border-radius: 2px;
  margin-bottom: 8px;
}

/* ============================================================
   E. 色の心理
============================================================ */
.sc-psych {
  margin: 20px 20px 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid var(--hni-border);
}
.sc-psych-band {
  position: relative;
  overflow: hidden;
  height: 140px;
  background: var(--sc-deep);
}
/* ▼ グローバル img リセット上書き */
.sc-psych-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}
.sc-psych-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.52) 0%, rgba(0,0,0,.16) 100%);
  display: flex;
  align-items: center;
  padding-left: 20px;
}
.sc-psych-band-word {
  font-family: 'Cormorant Garamond', 'Noto Serif JP', serif;
  font-size: 11px;
  letter-spacing: .28em;
  color: rgba(255,255,255,.72);
  text-transform: uppercase;
  line-height: 2.2;
  position: relative;
  z-index: 2;
}
.sc-psych-body { background: var(--hni-white); }
.sc-psych-row {
  display: flex;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid #f5f5f5;
  align-items: flex-start;
}
.sc-psych-row:last-child { border-bottom: none; }
.sc-psych-role {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--hni-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hni-text-sub);
  width: 52px;
  padding-top: 1px;
  line-height: 1.4;
  text-align: center;
}
.sc-psych-text {
  flex: 1;
  font-size: 13px;
  font-family: var(--hni-font-serif);
  font-weight: 300;
  color: var(--hni-text);
  line-height: 1.85;
}

/* ============================================================
   F. 店主アドバイス
============================================================ */
.sc-owner {
  margin: 16px 20px 0;
  background: var(--hni-beige);
  border: 1px solid var(--hni-border);
  border-left: 3px solid var(--hni-gold);
  border-radius: 3px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sc-owner-ava {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e8dcc8;
  background: var(--hni-gold-bg);
}
/* ▼ グローバル img リセット上書き */
.sc-owner-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}
.sc-owner-body { flex: 1; min-width: 0; }
.sc-owner-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.sc-owner-label {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--hni-font);
  letter-spacing: .1em;
  color: var(--hni-gold);
  text-transform: uppercase;
}
.sc-owner-name {
  font-size: 10px;
  font-family: var(--hni-font-serif);
  color: #aaa;
}
.sc-owner-quote {
  font-family: var(--hni-font-serif);
  font-size: 13px;
  font-weight: 300;
  color: var(--hni-text);
  line-height: 1.95;
}

/* ============================================================
   G. マナー ◎△✕
============================================================ */
.sc-manner { margin: 20px 20px 0; }
.sc-manner-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--hni-font);
  color: var(--hni-dark);
  letter-spacing: .04em;
}
.sc-manner-head::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--hni-primary);
  border-radius: 2px;
  flex-shrink: 0;
}
.sc-manner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sc-mc { border-radius: 3px; overflow: hidden; }
.sc-mc-head { display: flex; align-items: center; gap: 6px; padding: 10px 10px 8px; }
.sc-mc-mark {
  font-size: 16px;
  font-family: var(--hni-font);
  line-height: 1;
  flex-shrink: 0;
}
.sc-mc-label {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--hni-font);
  letter-spacing: .04em;
  line-height: 1.2;
}
.sc-mc-text {
  font-size: 11px;
  font-family: var(--hni-font-serif);
  font-weight: 300;
  color: var(--hni-text);
  line-height: 1.7;
  padding: 0 10px 10px;
}
.sc-mc--ok   { background: #f0faf5; }
.sc-mc--warn { background: var(--hni-gold-bg); }
.sc-mc--ng   { background: var(--sc-pale); }
.sc-mc--ok   .sc-mc-mark,
.sc-mc--ok   .sc-mc-label { color: #2a7d4f; }
.sc-mc--warn .sc-mc-mark,
.sc-mc--warn .sc-mc-label { color: var(--hni-gold-text); }
.sc-mc--ng   .sc-mc-mark,
.sc-mc--ng   .sc-mc-label { color: var(--sc); }

.sc-manner-toggle {
  width: 100%;
  margin-top: 8px;
  background: none;
  border: 1px solid var(--hni-border);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 12px;
  font-family: var(--hni-font);
  color: var(--hni-primary);
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  transition: background .15s;
  -webkit-tap-highlight-color: rgba(0,0,0,.04);
}
.sc-manner-toggle:hover { background: var(--hni-bg); }
.sc-manner-detail {
  display: none;
  margin-top: 4px;
  padding: 13px 14px;
  background: var(--hni-beige);
  border: 1px solid var(--hni-border);
  border-radius: 3px;
  font-size: 13px;
  font-family: var(--hni-font-serif);
  font-weight: 300;
  color: var(--hni-text-sub);
  line-height: 1.9;
}
.sc-manner-detail.is-open { display: block; }

/* ============================================================
   H. 代替色カード
============================================================ */
.sc-alt { margin: 20px 20px 0; }
.sc-alt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--hni-font);
  color: var(--hni-dark);
  letter-spacing: .04em;
}
.sc-alt-head::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--hni-border);
  border-radius: 2px;
  flex-shrink: 0;
}
.sc-alt-grid { display: flex; flex-direction: column; gap: 6px; }
.sc-alt-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--hni-white);
  border: 1.5px solid var(--hni-border);
  border-radius: 3px;
  text-decoration: none;
  color: var(--hni-text);
  min-height: 56px;
  transition: border-color .18s, background .18s;
  -webkit-tap-highlight-color: rgba(0,0,0,.04);
}
.sc-alt-card:hover { border-color: var(--hni-primary); background: var(--hni-bg); }
.sc-alt-thumb {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  background: var(--hni-bg);
}
/* ▼ グローバル img リセット上書き */
.sc-alt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: auto;
  border-radius: 0;
  border: none;
}
.sc-alt-body { flex: 1; min-width: 0; }
.sc-alt-name {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--hni-font);
  color: var(--hni-dark);
  margin-bottom: 2px;
}
.sc-alt-reason {
  font-size: 11px;
  font-family: var(--hni-font);
  color: var(--hni-text-sub);
  line-height: 1.5;
}
/* content: に HTML エンティティは使用不可。Unicode エスケープで記述 */
.sc-alt-card::after {
  content: '\203A';
  font-size: 18px;
  color: var(--hni-border);
  flex-shrink: 0;
  transition: transform .15s, color .15s;
}
.sc-alt-card:hover::after {
  color: var(--hni-primary);
  transform: translateX(3px);
}

/* ============================================================
   I. LINE CTA
============================================================ */
.sc-cta {
  margin: 20px 20px 0;
  background: var(--hni-bg);
  border: 1px solid var(--hni-border);
  border-radius: 4px;
  padding: 18px 16px;
  text-align: center;
}
.sc-cta-text {
  font-size: 13px;
  font-family: var(--hni-font);
  color: var(--hni-text-sub);
  line-height: 1.8;
  margin-bottom: 12px;
}
.sc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hni-primary);
  color: #fff;
  font-family: var(--hni-font);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 3px;
  text-decoration: none;
  min-height: 48px;
  transition: background .18s;
  -webkit-tap-highlight-color: rgba(0,0,0,.08);
}
.sc-cta-btn:hover { background: var(--hni-dark); }
.sc-cta-btn-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06c755;
  flex-shrink: 0;
  display: inline-block;
}

/* ============================================================
   PC 補正（681px 以上）
============================================================ */
@media (min-width: 681px) {
  .sc-main-visual {
    width: 100%;
    margin: 0;
    border-radius: 3px;
  }
  .sc-psych-band { height: 180px; }
}
