/*
Theme Name: 捨てる前作戦会議
Theme URI: https://suterumae.com/
Author: 捨てる前作戦会議 編集部
Description: 売る・直す・処分するを比較する編集メディア専用テーマ。
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: suterumae
*/

:root {
  --canvas: #f4f6f9;
  --paper: #ffffff;
  --ink: #172033;
  --muted: #657086;
  --line: #d9dee8;
  --blue: #244f86;
  --blue-dark: #163b6d;
  --blue-soft: #e8eef7;
  --amber: #c8872f;
  --amber-soft: #f7eddf;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.site-shell { overflow: hidden; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  top: 10px;
  left: 10px;
  z-index: 100000;
  padding: 12px 16px;
  background: white;
  color: var(--blue-dark);
  font-weight: 700;
}
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.disclosure {
  padding: 7px 5vw;
  background: #111a2c;
  color: #bcc6d7;
  font-size: 10px;
  text-align: center;
  letter-spacing: .02em;
}
.site-header {
  min-height: 84px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 15px max(4.5vw, 28px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.site-logo {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  font-family: Georgia, "Yu Mincho", serif;
  line-height: .95;
}
.site-logo span { font-size: 12px; letter-spacing: .08em; }
.site-logo strong { font-size: 22px; letter-spacing: .02em; }
.site-header nav { display: flex; align-items: center; gap: 30px; color: #46516a; font-size: 11px; font-weight: 700; }
.site-header nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.site-header nav a:hover { color: var(--blue); border-color: var(--blue); }
.header-action { justify-self: end; padding: 11px 16px; border: 1px solid var(--ink); font-size: 10px; font-weight: 800; transition: .18s ease; }
.header-action:hover { background: var(--ink); color: white; }

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 86px 34px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 84px;
  align-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(36,79,134,.09);
  border-radius: 50%;
  left: -380px;
  top: -210px;
  box-shadow: 0 0 0 80px rgba(36,79,134,.025), 0 0 0 160px rgba(36,79,134,.018);
}
.eyebrow { margin: 0 0 17px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.hero h1 { margin: 0; font: 600 clamp(43px, 6vw, 75px)/1.14 Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: -.045em; }
.hero h1 em { color: var(--blue-dark); font-style: normal; }
.hero-copy { max-width: 650px; margin: 27px 0 0; color: #536077; font-size: 14px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-button { display: flex; justify-content: space-between; min-width: 220px; padding: 15px 17px; background: var(--blue-dark); color: white; font-size: 11px; font-weight: 800; transition: .18s ease; }
.primary-button:hover { background: var(--blue); transform: translateY(-1px); }
.text-link { padding-bottom: 4px; border-bottom: 1px solid #aab2c1; color: #4d586f; font-size: 10px; font-weight: 700; }
.decision-sheet { padding: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 45px rgba(27,43,72,.08); }
.sheet-head { display: flex; justify-content: space-between; padding: 14px 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.sheet-head b { color: var(--blue); }
.decision-sheet > p { margin: 0; padding: 25px 21px 18px; font: 600 18px/1.55 Georgia, "Yu Mincho", serif; }
.sheet-options { display: grid; gap: 7px; padding: 0 21px 21px; }
.sheet-options a { display: flex; align-items: center; justify-content: space-between; padding: 12px 13px; background: #f5f7fa; border: 1px solid transparent; transition: .16s ease; }
.sheet-options a:hover { border-color: var(--blue); background: white; }
.sheet-options span { font-size: 11px; font-weight: 800; }
.sheet-options small { color: var(--muted); font-size: 9px; }
.sheet-foot { display: flex; gap: 9px; align-items: flex-start; padding: 14px 18px; background: var(--amber-soft); color: #74552e; font-size: 9px; line-height: 1.55; }
.sheet-foot span { flex: 0 0 auto; width: 7px; height: 7px; margin-top: 3px; background: var(--amber); }

.proof-strip { max-width: 1172px; margin: 0 auto 92px; display: grid; grid-template-columns: repeat(4,1fr); background: var(--paper); border: solid var(--line); border-width: 1px 0 1px 1px; }
.proof-strip > div { padding: 17px 20px; border-right: 1px solid var(--line); }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { font-size: 10px; }
.proof-strip span { margin-top: 5px; color: var(--muted); font-size: 9px; }

.content-section { max-width: 1172px; margin: 0 auto; padding: 0 0 105px; display: grid; grid-template-columns: 270px 1fr; gap: 82px; }
.section-intro h2, .section-heading h2, .policy-card h2 { margin: 0; font: 600 36px/1.35 Georgia, "Yu Mincho", serif; letter-spacing: -.02em; }
.section-intro > p:last-child { margin: 24px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.category-grid { display: grid; grid-template-columns: repeat(2,1fr); border: solid var(--line); border-width: 1px 0 0 1px; }
.category-card { min-height: 154px; padding: 20px; position: relative; background: rgba(255,255,255,.5); border: solid var(--line); border-width: 0 1px 1px 0; transition: .18s ease; }
.category-card:hover { background: white; box-shadow: inset 3px 0 var(--blue); }
.category-code { color: var(--blue); font: italic 11px Georgia, serif; }
.category-card h3 { margin: 20px 0 8px; font-size: 14px; }
.category-card p { max-width: 250px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.card-arrow { position: absolute; right: 18px; top: 18px; color: #8791a4; }

.route-section { padding: 98px max(4.5vw,28px) 108px; background: #16233b; color: white; }
.route-section > * { max-width: 1172px; margin-left: auto; margin-right: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading > p { max-width: 330px; margin: 0 0 4px; color: #68738a; font-size: 10px; line-height: 1.7; }
.route-section .eyebrow { color: #84a9d7; }
.route-section .section-heading > p { color: #a4b2c7; }
.route-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 45px; border: solid rgba(255,255,255,.16); border-width: 1px 0 1px 1px; }
.route-card { min-height: 330px; padding: 25px 25px 23px; border-right: 1px solid rgba(255,255,255,.16); }
.route-top { display: flex; justify-content: space-between; align-items: start; color: #8ea1bd; font: italic 11px Georgia, serif; }
.route-top b { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #46658f; color: #9ab9df; font: 400 18px Georgia, serif; }
.route-card h3 { margin: 50px 0 14px; font: 600 29px Georgia, "Yu Mincho", serif; }
.route-card > p { min-height: 74px; margin: 0; color: #b4bfd0; font-size: 10px; line-height: 1.8; }
.route-check { margin-top: 27px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.13); }
.route-check small, .route-check strong { display: block; }
.route-check small { color: #7f96b5; font-size: 8px; }
.route-check strong { margin-top: 7px; font-size: 10px; font-weight: 600; }

.policy-section { max-width: 1172px; margin: 0 auto; padding: 110px 0; display: grid; grid-template-columns: .85fr 1.15fr; border-bottom: 1px solid var(--line); }
.policy-card { padding: 42px 43px; background: var(--paper); border: 1px solid var(--line); }
.policy-card > p:not(.eyebrow) { margin: 24px 0; color: var(--muted); font-size: 10px; line-height: 1.9; }
.policy-card a { display: flex; justify-content: space-between; padding-top: 17px; border-top: 1px solid var(--line); color: var(--blue-dark); font-size: 10px; font-weight: 800; }
.policy-list { display: grid; grid-template-columns: 1fr 1fr; border: solid var(--line); border-width: 1px 1px 0 0; }
.policy-list > div { padding: 27px 25px; background: rgba(255,255,255,.4); border: solid var(--line); border-width: 0 0 1px 1px; }
.policy-list span { color: var(--amber); font: italic 10px Georgia, serif; }
.policy-list strong { display: block; margin-top: 18px; font-size: 12px; }
.policy-list p { margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.7; }

.latest-section { max-width: 1172px; margin: 0 auto; padding: 105px 0 120px; }
.article-list { margin-top: 40px; border-top: 1px solid var(--ink); }
.article-list article, .article-list > a { display: grid; grid-template-columns: 55px 1fr auto; gap: 22px; align-items: center; padding: 23px 7px; border-bottom: 1px solid var(--line); }
.article-list > a:hover { background: rgba(255,255,255,.65); }
.article-number { color: var(--blue); font: italic 11px Georgia, serif; }
.article-list small { color: var(--blue); font-size: 8px; font-weight: 800; }
.article-list h3 { margin: 6px 0 0; font: 600 14px/1.55 Georgia, "Yu Mincho", serif; }
.article-status { padding: 6px 9px; background: var(--blue-soft); color: var(--blue-dark); font-size: 8px; font-weight: 800; }

.content-layout { max-width: 880px; min-height: 60vh; margin: 0 auto; padding: 80px 28px 110px; }
.entry-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.entry-kicker { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.entry-title { margin: 12px 0 0; font: 600 clamp(32px, 5vw, 54px)/1.35 Georgia, "Yu Mincho", serif; }
.entry-meta { margin-top: 18px; color: var(--muted); font-size: 11px; }
.entry-content { padding-top: 36px; font-size: 16px; line-height: 2; }
.entry-content h2 { margin: 2.2em 0 .8em; padding-left: 16px; border-left: 4px solid var(--blue); font: 600 28px/1.5 Georgia, "Yu Mincho", serif; }
.entry-content h3 { margin-top: 2em; font-size: 21px; }
.entry-content a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2em 0; padding: 18px 22px; background: var(--blue-soft); border-left: 3px solid var(--blue); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.post-list { display: grid; gap: 18px; margin-top: 35px; }
.post-card { display: block; padding: 24px; background: white; border: 1px solid var(--line); }
.post-card:hover { border-color: var(--blue); }
.post-card h2 { margin: 8px 0; font: 600 23px/1.5 Georgia, "Yu Mincho", serif; }
.post-card p { color: var(--muted); line-height: 1.8; }
.pagination { margin-top: 38px; }
.not-found { padding: 70px 0; text-align: center; }

.site-footer { padding: 54px max(4.5vw,28px) 32px; background: #10192b; color: white; display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: end; }
.footer-brand span, .footer-brand strong { display: block; font-family: Georgia, "Yu Mincho", serif; line-height: 1; }
.footer-brand span { font-size: 13px; }
.footer-brand strong { font-size: 25px; }
.footer-brand p { margin: 17px 0 0; color: #8d9bb2; font-size: 9px; }
.footer-links { display: flex; gap: 23px; color: #aeb8c9; font-size: 9px; }
.site-footer > small { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); color: #74829a; font-size: 8px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr .75fr; gap: 38px; }
  .content-section { padding-left: 28px; padding-right: 28px; gap: 40px; }
  .proof-strip, .policy-section, .latest-section { margin-left: 28px; margin-right: 28px; }
}

@media (max-width: 680px) {
  .disclosure { font-size: 8px; }
  .site-header { min-height: 70px; padding: 12px 18px; }
  .header-action { padding: 9px 10px; }
  .hero { padding: 58px 20px 46px; grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 9.2vw, 40px); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .proof-strip { margin: 0 20px 70px; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .proof-strip > div { border-bottom: 1px solid var(--line); }
  .content-section { padding: 0 20px 75px; grid-template-columns: 1fr; gap: 35px; }
  .category-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; flex-direction: column; }
  .route-section { padding: 72px 20px; }
  .route-grid { grid-template-columns: 1fr; border-top: 1px solid rgba(255,255,255,.16); }
  .route-card { min-height: auto; border-bottom: 1px solid rgba(255,255,255,.16); }
  .route-card h3 { margin-top: 30px; }
  .route-card > p { min-height: 0; }
  .policy-section { margin: 0 20px; padding: 75px 0; grid-template-columns: 1fr; }
  .policy-card { padding: 32px 25px; }
  .policy-list { grid-template-columns: 1fr; }
  .latest-section { margin: 0 20px; padding: 75px 0; }
  .article-list article, .article-list > a { grid-template-columns: 35px 1fr; }
  .article-status { grid-column: 2; justify-self: start; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; line-height: 1.8; }
}

/* Affiliate comparison blocks */
.affiliate-disclosure {
  margin: 1.5rem 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #173a63;
  background: #f3f6fa;
  color: #243447;
  font-size: 0.92rem;
}

.affiliate-comparison {
  margin: 2.5rem 0;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  background: #fff;
}

.affiliate-table-scroll {
  margin: 1.25rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.affiliate-comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.affiliate-comparison-table th,
.affiliate-comparison-table td {
  padding: 0.8rem;
  border: 1px solid #d7e0ea;
  text-align: left;
  vertical-align: top;
}

.affiliate-comparison-table thead th {
  background: #173a63;
  color: #fff;
}

.affiliate-comparison-table tbody th {
  width: 24%;
  background: #eef3f8;
  color: #173a63;
}

.affiliate-actions,
.affiliate-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.affiliate-card,
.affiliate-action {
  padding: 1rem;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #f8fafc;
}

.affiliate-action-label {
  margin: 0 0 0.75rem;
  color: #243447;
  font-weight: 700;
}

.affiliate-action > a {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 7px;
  background: #173a63;
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.affiliate-action > a:hover,
.affiliate-action > a:focus-visible {
  background: #0f2c4d;
  color: #fff;
  text-decoration: underline;
}

.affiliate-action > a:focus-visible,
.affiliate-table-scroll:focus-visible {
  outline: 3px solid #d39b2a;
  outline-offset: 3px;
}

.affiliate-note {
  margin: 1rem 0 0;
  color: #526273;
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .affiliate-actions,
  .affiliate-cards {
    grid-template-columns: 1fr;
  }
}
