/* =====================================================================
   wp.css — 買取店 企業サイト風デモ (WordPress 制作風)
   参考トーン: スマホ・ガジェット買取店の実直で信頼感のある企業サイト
   widget.js アクセント #0070f3 と調和。CTA に橙、LINE に緑を使用。
   ===================================================================== */

:root {
  --accent: #f7a500;       /* CTA アクセント (赤に映える琥珀) */
  --accent-dark: #d98c00;
  --line-green: #06c755;   /* LINE 緑 */
  --line-green-dark: #05a647;
  --navy: #8e1414;         /* 買取店らしい深い赤 (見出し・ヘッダー) */
  --navy-soft: #a82020;
}

body.wp { background: #fff; color: var(--ink); font-size: 16px; }

.wp-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ===== 上部インフォバー ===== */
.wp-infobar {
  background: var(--navy); color: #f0d8d8; font-size: 12.5px;
}
.wp-infobar__in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.wp-infobar a { color: #f0d8d8; }

/* ===== ヘッダー (sticky) ===== */
.wp-head { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 14px rgba(11,36,71,0.05); }
.wp-head__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 18px; }
.wp-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wp-logo__mark {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, #ff6b5a 100%);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 12px rgba(211,47,47,0.34);
}
.wp-logo__txt b { display: block; font-size: 19px; color: var(--navy); font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.wp-logo__txt small { font-size: 11px; color: var(--ink-faint); }
.wp-gnav { display: flex; gap: 22px; align-items: center; margin-left: auto; }
.wp-gnav a { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.wp-gnav a:hover { color: var(--brand); }
.wp-head__contact { display: flex; align-items: center; gap: 14px; }
.wp-head__tel { text-align: right; line-height: 1.1; }
.wp-head__tel small { font-size: 10.5px; color: var(--ink-faint); display: block; }
.wp-head__tel b { font-size: 21px; color: var(--navy); font-weight: 800; }

/* ボタン: LINE / 電話 */
.btn-line {
  display: inline-flex; align-items: center; gap: 8px; background: var(--line-green); color: #fff;
  font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(6,199,85,0.3); transition: transform .12s, background .12s;
}
.btn-line:hover { background: var(--line-green-dark); transform: translateY(-1px); text-decoration: none; }
.btn-accent {
  display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 15px; padding: 13px 24px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 18px rgba(255,122,26,0.32); transition: transform .12s, background .12s;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); text-decoration: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy);
  font-weight: 800; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--navy);
  text-decoration: none; transition: transform .12s, background .12s, color .12s;
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-1px); text-decoration: none; }
.btn-ico { width: 18px; height: 18px; flex: none; }

/* ===== ヒーロー ===== */
.wp-hero {
  position: relative; overflow: hidden;
  /* data-placeholder="hero-bg" の要素を背景に敷く。今は CSS グラデで代用 */
}
.wp-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(122,16,16,0.94) 0%, rgba(183,28,28,0.82) 55%, rgba(211,47,47,0.6) 100%),
    linear-gradient(135deg, #7a1010 0%, #b71c1c 100%);
}
.wp-hero__bg::after {
  content: "画像（ヒーロー背景）"; position: absolute; right: 14px; bottom: 10px;
  font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: .05em;
}
.wp-hero__in { position: relative; z-index: 1; padding: 76px 0 84px; color: #fff; max-width: 680px; }
.wp-hero__tag {
  display: inline-block; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.wp-hero h1 { font-size: 44px; line-height: 1.3; margin: 0 0 16px; font-weight: 900; letter-spacing: .01em; }
.wp-hero h1 .hl { color: #ffd24a; }
.wp-hero__sub { font-size: 18px; color: #e4ecf7; margin: 0 0 26px; line-height: 1.8; }
.wp-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.wp-hero__pts { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.wp-hero__pt { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #eaf1fb; font-weight: 600; }
.wp-hero__pt svg { width: 20px; height: 20px; color: #5fe39b; }

/* ===== セクション共通 ===== */
.wp-sec { padding: 66px 0; }
.wp-sec--tint { background: #f4f8fd; }
.wp-sec__head { text-align: center; margin-bottom: 38px; }
.wp-sec__en { display: block; color: var(--brand); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.wp-sec__ttl { font-size: 30px; font-weight: 900; color: var(--navy); margin: 0; letter-spacing: .02em; }
.wp-sec__lead { color: var(--ink-soft); margin: 10px auto 0; max-width: 600px; }

/* ===== 買取カテゴリ ===== */
.wp-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.wp-cat {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 14px; text-align: center;
  text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.wp-cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); text-decoration: none; }
.wp-cat__ico { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--brand); }
.wp-cat__ico svg { width: 100%; height: 100%; }
.wp-cat b { display: block; font-size: 15px; margin-bottom: 3px; }
.wp-cat span { font-size: 12px; color: var(--ink-faint); }

/* ===== 選ばれる理由 ===== */
.wp-reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wp-reason { text-align: center; padding: 8px; }
.wp-reason__ico {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 999px; background: var(--brand-light);
  display: flex; align-items: center; justify-content: center; color: var(--brand);
}
.wp-reason__ico svg { width: 36px; height: 36px; }
.wp-reason h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.wp-reason p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.7; }

/* ===== 価格表 ===== */
.wp-price-note { text-align: center; color: var(--ink-soft); margin: -22px auto 26px; max-width: 600px; font-size: 14px; }

/* ===== 買取の流れ (2 カラム) ===== */
.wp-flow { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.wp-flow__col { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.wp-flow__h { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; color: var(--navy); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--brand-light); }
.wp-flow__h .pill { font-size: 12px; font-weight: 800; color: #fff; background: var(--brand); padding: 3px 11px; border-radius: 999px; }
.wp-step { display: flex; gap: 14px; padding: 11px 0; }
.wp-step__n { flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.wp-step__b b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 2px; }
.wp-step__b p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* ===== お客様の声 ===== */
.wp-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wp-review { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; box-shadow: var(--shadow-sm); }
.wp-stars { color: #ffb400; font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.wp-review p { font-size: 14px; color: var(--ink); line-height: 1.8; margin: 0 0 14px; }
.wp-review__by { display: flex; align-items: center; gap: 10px; }
.wp-review__av { width: 38px; height: 38px; border-radius: 999px; background: var(--brand-light); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.wp-review__by small { font-size: 12px; color: var(--ink-faint); display: block; }
.wp-review__by b { font-size: 13.5px; color: var(--navy); }

/* ===== 店舗情報・アクセス ===== */
.wp-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.wp-shop__info { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.wp-shop__info dl { display: grid; grid-template-columns: 100px 1fr; gap: 0; margin: 0; }
.wp-shop__info dt, .wp-shop__info dd { padding: 12px 4px; border-bottom: 1px solid var(--line); margin: 0; }
.wp-shop__info dt { font-weight: 800; color: var(--navy); font-size: 14px; }
.wp-shop__info dd { font-size: 14px; color: var(--ink); }
.wp-map {
  /* data-placeholder="map" */
  position: relative; border-radius: 14px; min-height: 280px; border: 1px solid var(--line);
  background: repeating-linear-gradient(45deg, #f6e4e4, #f6e4e4 16px, #fbeeee 16px, #fbeeee 32px);
  display: flex; align-items: center; justify-content: center; color: #a86b6b; font-weight: 800;
}
.wp-map span { background: rgba(255,255,255,0.85); padding: 8px 16px; border-radius: 8px; font-size: 14px; }

/* ===== FAQ (アコーディオン) ===== */
.wp-faq { max-width: 820px; margin: 0 auto; }
.wp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.wp-faq summary {
  list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; position: relative;
  font-weight: 800; color: var(--navy); font-size: 15.5px;
}
.wp-faq summary::-webkit-details-marker { display: none; }
.wp-faq summary::before { content: "Q"; color: var(--brand); font-weight: 900; margin-right: 10px; }
.wp-faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--brand); font-weight: 400; line-height: 1;
}
.wp-faq details[open] summary::after { content: "−"; }
.wp-faq__a { padding: 0 20px 18px 42px; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }

/* ===== CTA バナー ===== */
.wp-cta { background: linear-gradient(120deg, var(--navy) 0%, var(--brand-dark) 100%); color: #fff; }
.wp-cta__in { padding: 54px 0; text-align: center; }
.wp-cta h2 { font-size: 30px; font-weight: 900; margin: 0 0 8px; }
.wp-cta p { color: #d6e2f4; margin: 0 0 24px; }
.wp-cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== フッター ===== */
.wp-foot { background: #2a0a0a; color: #d8b3b3; padding: 46px 0 26px; }
.wp-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.wp-foot h4 { color: #fff; font-size: 15px; margin: 0 0 12px; }
.wp-foot p { font-size: 13px; line-height: 1.8; margin: 0; }
.wp-foot ul { list-style: none; padding: 0; margin: 0; }
.wp-foot li { margin: 6px 0; }
.wp-foot a { color: #d8b3b3; font-size: 13px; text-decoration: none; }
.wp-foot a:hover { color: #fff; text-decoration: underline; }
.wp-foot__legal { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.wp-foot__copy { text-align: center; font-size: 12px; color: #b48a8a; margin-top: 30px; border-top: 1px solid #4a1414; padding-top: 18px; }

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .wp-cats { grid-template-columns: repeat(3, 1fr); }
  .wp-reasons { grid-template-columns: repeat(2, 1fr); }
  .wp-flow { grid-template-columns: 1fr; }
  .wp-reviews { grid-template-columns: 1fr; }
  .wp-shop { grid-template-columns: 1fr; }
  .wp-foot__grid { grid-template-columns: 1fr 1fr; }
  .wp-gnav { display: none; }
}
@media (max-width: 600px) {
  body.wp { font-size: 15px; }
  .wp-head__in { height: 64px; }
  .wp-head__tel { display: none; }
  .wp-hero h1 { font-size: 31px; }
  .wp-hero__in { padding: 54px 0 60px; }
  .wp-cats { grid-template-columns: repeat(2, 1fr); }
  .wp-reasons { grid-template-columns: 1fr 1fr; }
  .wp-sec__ttl { font-size: 24px; }
  .wp-sec { padding: 50px 0; }
  .wp-foot__grid { grid-template-columns: 1fr; }
  .wp-infobar__in { font-size: 11px; }
}

/* ===== 3 テンプレート切替タブ + iframe ===== */
.tpl-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 0 auto 8px; max-width: 760px;
}
.tpl-tab {
  flex: 1 1 0; min-width: 150px; cursor: pointer; text-align: center;
  background: #fff; border: 2px solid var(--line); border-radius: 12px 12px 0 0;
  padding: 12px 14px 14px; transition: border-color .15s, background .15s, transform .1s;
}
.tpl-tab:hover { border-color: var(--brand-light); }
.tpl-tab.is-active { border-color: var(--brand); background: var(--brand-light); }
.tpl-tab b { display: block; font-size: 15px; color: var(--navy); }
.tpl-tab small { display: block; font-size: 11.5px; color: var(--ink-soft); margin-top: 3px; line-height: 1.5; }
.tpl-tab.is-active b { color: var(--brand-dark); }

.tpl-stage {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 0 0 14px 14px; box-shadow: var(--shadow-sm); padding: 10px;
}
.tpl-frame {
  width: 100%; border: 0; display: block; background: transparent;
  min-height: 360px; transition: height .15s ease;
}
.tpl-desc {
  text-align: center; color: var(--ink-soft); font-size: 13px; margin: 12px auto 0; max-width: 620px;
}
@media (max-width: 560px) {
  .tpl-tab { min-width: 0; padding: 10px 8px; }
  .tpl-tab small { display: none; }
}

/* ★おすすめバッジ (セレクター式タブ) */
.tpl-badge {
  display: inline-block; vertical-align: middle; margin-left: 4px;
  background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(247,165,0,0.35);
}
.tpl-tab--rec { position: relative; }
.tpl-tab--rec.is-active { border-color: var(--accent); }
