/* aideal 家電えらび 共通の見た目 2026-11-16 試作 */
:root {
  --blue: #004AAD;
  --blue-dark: #00337a;
  --yellow: #FFDE59;
  --ink: #1d2330;
  --sub: #5a6273;
  --line: #e3e6ec;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --cream: #fffbea;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

a { color: var(--blue); }
img { max-width: 100%; height: auto; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* 広告の帯 */
.pr-bar {
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.6;
  padding: 6px 0;
  text-align: center;
}
.pr-bar a { color: var(--yellow); }

/* ヘッダー */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 8px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .02em;
}
.logo-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 5px solid var(--yellow);
  background: var(--blue);
  flex: none;
}
.logo small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: 0;
  line-height: 1.2;
}
.logo .tag {
  font-size: 11px;
  background: var(--cream);
  border: 1px solid #f0dc8a;
  color: #7a6200;
  border-radius: 6px;
  padding: 0 6px;
  margin-left: 4px;
  font-weight: 700;
}
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--yellow); }
/* 会社のHP（aideal_2号）へ戻るリンク（2026-11-27 組み込み） */
.nav a.to-corp { color: var(--blue); }
.nav a.to-corp::after { content: " →"; }

/* トップの大きな見出し */
.hero {
  background: var(--blue);
  color: #fff;
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px; top: -90px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 36px solid var(--yellow);
  opacity: .9;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { font-size: 14px; font-weight: 700; color: var(--yellow); margin: 0 0 8px; }
.hero h1 { font-size: clamp(28px, 5.4vw, 46px); line-height: 1.35; margin: 0 0 16px; font-weight: 900; }
.hero h1 mark { color: #fff; background: linear-gradient(transparent 64%, rgba(255,222,89,.85) 64%); padding: 0 2px; }
.hero p { max-width: 560px; margin: 0 0 24px; font-size: 16px; }
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  margin: 0 8px 8px 0;
}
.btn.ghost { background: transparent; color: #fff; border: 2px solid #fff; }

/* 区切り */
section { padding: 52px 0; }
section.soft { background: var(--bg-soft); }
.sec-title { font-size: clamp(22px, 3.6vw, 28px); margin: 0 0 6px; font-weight: 900; }
.sec-title::before {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  background: var(--yellow);
  border: 3px solid var(--blue);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: 2px;
}
.sec-lead { color: var(--sub); margin: 0 0 24px; }

/* カテゴリ */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
}
.cat b { display: block; font-size: 16px; }
.cat span { font-size: 13px; color: var(--sub); }
.cat .ico { font-size: 26px; line-height: 1; display: block; margin-bottom: 8px; }

/* 記事カード */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.card .thumb {
  aspect-ratio: 16 / 9;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 44px;
  border-bottom: 1px solid var(--line);
}
.card .thumb { overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.04); }
.card .body { padding: 14px 16px 18px; }
.card .cat-label { font-size: 12px; font-weight: 700; color: var(--blue); }
.card h3 { font-size: 17px; line-height: 1.5; margin: 4px 0 6px; }
.card p { font-size: 13.5px; color: var(--sub); margin: 0; line-height: 1.7; }
.badge-draft {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: #eef1f6;
  color: var(--sub);
  border-radius: 6px;
  padding: 0 6px;
  margin-left: 6px;
}

/* 選び方の決まり */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; counter-reset: r; }
.rule {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 18px;
  position: relative;
}
.rule::before {
  counter-increment: r;
  content: "0" counter(r);
  font-weight: 900;
  color: var(--blue);
  font-size: 22px;
  display: block;
}
.rule b { display: block; margin: 2px 0 4px; }
.rule p { margin: 0; font-size: 14px; color: var(--sub); }

/* 会社の小さな紹介 */
.company-box {
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px;
  display: grid;
  gap: 4px;
}
.company-box b { font-size: 18px; }

/* 下層ページ */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 34px 0 26px; }
.page-head h1 { margin: 0; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.4; }
.page-head .crumb { font-size: 13px; color: var(--sub); margin: 0 0 6px; }
.page-head .crumb a { color: var(--sub); }
.content { padding: 34px 0 60px; }
.content h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding: 6px 0 6px 14px;
  border-left: 6px solid var(--blue);
  line-height: 1.5;
}
.content h3 { font-size: 18px; margin: 28px 0 8px; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: 4px 0; }

.notice {
  background: var(--cream);
  border: 1px solid #f0dc8a;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 0 0 20px;
}
.todo {
  background: #fff3f0;
  border: 1px dashed #e0806a;
  color: #9a3a22;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.box-todo {
  background: #fff7f5;
  border: 1px dashed #e0806a;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  color: #7a3020;
  margin: 12px 0;
}

.meta { font-size: 13px; color: var(--sub); margin: 8px 0 0; }

.toc {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14.5px;
}
.toc b { display: block; margin-bottom: 4px; }
.toc ol { margin: 0; }

.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.method { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.method b { display: block; font-size: 17px; color: var(--blue); }
.method .how { font-size: 13.5px; color: var(--sub); margin: 2px 0 8px; }
.method ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.method .good::marker { content: "○ "; color: #1a7f4b; }
.method .bad::marker { content: "△ "; color: #b0611a; }
.point {
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  margin: 14px 0;
}
.point b { color: var(--yellow); }
.sources { font-size: 13px; color: var(--sub); }
.sources li { margin: 6px 0; }

.product-slot {
  border: 2px dashed #b9c3d6;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  color: var(--sub);
  font-size: 14px;
  margin: 16px 0;
  background: #fafbfd;
}
.product-slot b { color: var(--ink); display: block; }

dl.info { display: grid; grid-template-columns: 9em 1fr; border-top: 1px solid var(--line); margin: 0; }
dl.info dt, dl.info dd { padding: 12px 8px; border-bottom: 1px solid var(--line); margin: 0; }
dl.info dt { font-weight: 700; background: var(--bg-soft); }

.contact-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.contact-btn {
  display: block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-weight: 800;
  font-size: 18px;
}
.contact-btn small { display: block; font-size: 13px; font-weight: 600; color: var(--yellow); }

/* フッター */
.site-footer { background: var(--ink); color: #cfd5e1; font-size: 13.5px; padding: 34px 0 26px; }
.site-footer .wrap { display: grid; gap: 18px; }
.site-footer b { color: #fff; font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: #fff; text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.copy { font-size: 12px; color: #8f98aa; }

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .hero { padding: 40px 0 44px; }
  .hero::after { width: 200px; height: 200px; right: -80px; top: -70px; border-width: 24px; }
  section { padding: 40px 0; }
  dl.info { grid-template-columns: 1fr; }
  dl.info dt { border-bottom: none; padding-bottom: 4px; }
  dl.info dd { padding-top: 4px; }
  .nav { font-size: 13px; gap: 2px 14px; }
}
