/* =========================================================
   明元社 コラム共通CSS
   /column/article.css
   ========================================================= */

/* ---------- reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: #f6f8fb;
  color: #2f3540;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #0b57b7;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
  text-decoration: none;
}

/* ---------- layout ---------- */
body {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

header,
main,
footer {
  width: 100%;
}

header {
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 2px solid #d7e3f7;
}

header p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #546173;
  font-weight: 500;
}

main {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(23, 42, 79, 0.05);
  padding: 36px 34px 42px;
}

/* ---------- typography ---------- */
h1 {
  margin: 0 0 18px;
  color: #173a6a;
  font-size: 34px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h2 {
  margin: 44px 0 16px;
  padding: 0 0 10px;
  border-left: none;
  border-bottom: 2px solid #d8e2f0;
  color: #24364d;
  font-size: 24px;
  line-height: 1.55;
  font-weight: 700;
}

h3 {
  margin: 0 0 14px;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 700;
  color: #24364d;
}

p {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.95;
  word-break: normal;
  overflow-wrap: break-word;
}

ul,
ol {
  margin: 0 0 18px;
  padding-left: 1.35em;
}

li {
  margin-bottom: 10px;
  line-height: 1.85;
}

strong {
  font-weight: 700;
  color: #1f2d3d;
}

/* ---------- intro / meta ---------- */
.article-credit {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 26px 0 30px;
}

.article-credit p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.8;
}

.article-credit p:last-child {
  margin-bottom: 0;
}

.article-credit__note {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed #d1d5db;
  color: #667085;
  font-size: 13px !important;
}

/* ---------- information blocks ---------- */
.criteria {
  background: linear-gradient(180deg, #f7fbff 0%, #f1f7ff 100%);
  border: 1px solid #d6e6fb;
  border-radius: 16px;
  padding: 24px 24px 18px;
  margin: 30px 0;
}

.criteria h2 {
  margin-top: 0;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.box {
  min-width: 0;
  padding: 22px 20px 16px;
  border-radius: 16px;
  border: 1px solid #dfe7f2;
  background: #ffffff;
}

.recommended {
  background: #edfdf8;
  border-color: #99e0cc;
}

.recommended h3 {
  color: #146c5b;
}

.not-recommended {
  background: #fff7f7;
  border-color: #f0b7b7;
}

.not-recommended h3 {
  color: #b54848;
}

/* ---------- faq ---------- */
.faq {
  margin-top: 38px;
}

.faq-item {
  margin-bottom: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e7ebf0;
}

.faq-item:first-child {
  border-top: 1px solid #e7ebf0;
}

.question {
  margin: 0;
  color: #173a6a;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.85;
}

.answer {
  margin-top: 8px;
  color: #374151;
}

/* ---------- CTA ---------- */
.cta {
  margin: 44px 0 8px;
  padding: 28px 24px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff8f1 0%, #fff3e6 100%);
  border: 1px solid #ffd9b3;
  text-align: center;
}

.cta p {
  margin-bottom: 14px;
}

.cta-button {
  display: inline-block;
  min-width: 240px;
  padding: 16px 30px;
  border-radius: 999px;
  background: #ef6c00;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: 0 10px 18px rgba(239, 108, 0, 0.18);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(239, 108, 0, 0.22);
  text-decoration: none;
}

.article-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.article-cta__buttons .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.article-cta__buttons .cta-button--secondary {
  background: #1f6fb2;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 111, 178, 0.18);
}

.article-cta__buttons .cta-button--secondary:hover {
  background: #195f99;
  color: #ffffff;
}

/* ---------- footer ---------- */
footer {
  margin: 28px 0 0;
  padding: 24px 4px 0;
  border-top: 1px solid #dfe5ed;
  text-align: center;
  color: #667085;
}

footer p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
}

footer a {
  color: #355e9b;
}

/* ---------- optional utility ---------- */
.note,
.small-note {
  color: #667085;
  font-size: 13px;
}

hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 32px 0;
}

/* ---------- responsive ---------- */
@media screen and (max-width: 768px) {
  body {
    padding: 18px 12px 40px;
  }

  header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  header p {
    font-size: 13px;
  }

  main {
    border-radius: 14px;
    padding: 24px 18px 28px;
  }

  h1 {
    font-size: 28px;
    margin-bottom: 14px;
  }

  h2 {
    font-size: 21px;
    margin-top: 34px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  p,
  li {
    font-size: 16px;
    line-height: 1.9;
  }

  .article-credit {
    margin: 22px 0 24px;
    padding: 14px 15px;
  }

  .article-credit p {
    font-size: 13px;
  }

  .criteria {
    padding: 18px 16px 12px;
    border-radius: 14px;
  }

  .comparison {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
  }

  .box {
    padding: 18px 16px 12px;
    border-radius: 14px;
  }

  .faq-item {
    padding: 16px 0;
  }

  .question {
    font-size: 16px;
  }

  .cta {
    margin-top: 34px;
    padding: 22px 16px;
    border-radius: 14px;
  }

  .cta-button {
    width: 100%;
    min-width: 0;
    padding: 15px 20px;
    font-size: 15px;
  }

  .article-cta__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .article-cta__buttons .cta-button {
    width: 100%;
  }

  footer {
    margin-top: 22px;
    padding-top: 18px;
  }

  footer p {
    font-size: 12px;
  }
}

/* =========================================================
   特集コラム一覧ページ
   ========================================================= */

.column-index-lead {
  margin: 0 0 30px;
  font-size: 17px;
  line-height: 1.9;
  color: #4b5563;
}

.list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 36px;
}

.item {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  padding: 24px 22px 22px;
  box-shadow: 0 8px 24px rgba(23, 42, 79, 0.05);
  display: flex;
  flex-direction: column;
}

.item h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.55;
  color: #173a6a;
}

.item p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.9;
  color: #4b5563;
  flex-grow: 1;
}

.column-index-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding: 12px 18px;
  background: #ffffff;
  border: 1px solid #cfd9e8;
  border-radius: 999px;
  color: #173a6a !important;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.column-index-link:hover {
  background: #173a6a;
  color: #ffffff !important;
  opacity: 1;
  text-decoration: none !important;
}

/* =========================================================
   特集コラム一覧ページ footer-nav 改善版
   ========================================================= */

.footer-nav {
  margin: 12px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #dfe5ed;
  text-align: center;
}

.footer-nav p {
  margin: 0 0 14px;
}

.footer-nav__primary,
.footer-nav__secondary {
  display: inline-block;
  min-width: 280px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: 0.2s ease;
}

.footer-nav__primary {
  background: #173a6a;
  color: #ffffff !important;
  border: 1px solid #173a6a;
  box-shadow: 0 8px 18px rgba(23, 58, 106, 0.14);
}

.footer-nav__primary:hover {
  background: #0f2f59;
  color: #ffffff !important;
  opacity: 1;
}

.footer-nav__secondary {
  background: #f8fafc;
  color: #173a6a !important;
  border: 1px solid #cfd9e8;
}

.footer-nav__secondary:hover {
  background: #eef4fb;
  color: #173a6a !important;
  opacity: 1;
}

.footer-nav__meta {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.9;
  color: #667085;
}

.footer-nav__meta a {
  display: inline;
  padding: 0;
  border: none;
  background: transparent;
  font-weight: 500;
  text-decoration: underline !important;
  color: #355e9b !important;
}

.footer-nav__meta a:hover {
  text-decoration: none !important;
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  .footer-nav__primary,
  .footer-nav__secondary {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .footer-nav__meta {
    font-size: 12px;
  }
}

/* =========================================================
   記事本文パーツ追加：表・出典・h4・画像
   ========================================================= */

/* ---------- article image ---------- */
.article-image {
  margin: 28px 0 30px;
  text-align: center;
}

.article-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid #e5eaf1;
  box-shadow: 0 8px 22px rgba(23, 42, 79, 0.06);
}

.article-image figcaption {
  margin-top: 10px;
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

/* ---------- h4 ---------- */
h4 {
  margin: 18px 0 10px;
  padding-left: 12px;
  border-left: 4px solid #d8e2f0;
  color: #334155;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 700;
}

/* ---------- table ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0 28px;
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 1px solid #dfe5ed;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.75;
}

.article-table th,
.article-table td {
  border: 1px solid #dfe5ed;
  padding: 13px 14px;
  vertical-align: top;
}

.article-table th {
  background: #f1f7ff;
  color: #173a6a;
  font-weight: 700;
  text-align: left;
}

.article-table td {
  color: #374151;
}

.article-table tbody tr:nth-child(even) td {
  background: #f8fafc;
}

.table-scroll::after {
  content: "表は横にスクロールできます";
  display: none;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
}

/* ---------- source note ---------- */
.source-note {
  margin: -2px 0 22px;
  padding: 10px 12px 10px 14px;
  border-left: 3px solid #d8e2f0;
  background: #f8fafc;
  color: #667085;
  font-size: 13px;
  line-height: 1.75;
  border-radius: 8px;
}

.source-note a {
  color: #355e9b;
  font-weight: 500;
}

.inline-source {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.inline-source a {
  color: #667085;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/* ---------- faq visual improvement ---------- */
.faq-item {
  background: #ffffff;
  border: 1px solid #e5eaf1;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.faq-item:first-child {
  border-top: 1px solid #e5eaf1;
}

.question {
  position: relative;
  padding-left: 1.8em;
}

.question::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: #173a6a;
  color: #ffffff;
  font-size: 12px;
  line-height: 1;
}

.answer {
  position: relative;
  padding-left: 1.8em;
}

.answer::before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0.25em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: #eef4fb;
  color: #173a6a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.faq-source {
  display: block;
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.faq-source a {
  color: #667085;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

/* ---------- responsive add-ons ---------- */
@media screen and (max-width: 768px) {
  .article-image {
    margin: 22px 0 24px;
  }

  .article-image img {
    border-radius: 12px;
  }

  .article-image figcaption {
    font-size: 12px;
  }

  h4 {
    font-size: 16px;
    margin: 16px 0 9px;
  }

  .article-table {
    min-width: 680px;
    font-size: 14px;
  }

  .article-table th,
  .article-table td {
    padding: 11px 12px;
  }

  .table-scroll::after {
    display: block;
  }

  .source-note {
    font-size: 12px;
    padding: 9px 10px 9px 12px;
  }

  .faq-item {
    padding: 14px 14px;
  }
}

/* =========================================================
   商品別ハブページ：記事カード
   ========================================================= */

.hub-main {
  max-width: 760px;
}

.hub-lead {
  margin: 0 0 30px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.hub-articles {
  margin: 34px 0 38px;
}

.article-card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin: 22px 0 28px;
  padding: 20px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 42, 79, 0.05);
}

.article-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #e5eaf1;
  background: #f8fafc;
  text-decoration: none;
}

.article-card__thumb img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.article-card__thumb .new-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ef6c00;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(239, 108, 0, 0.25);
}

.article-card__meta {
  margin: 0 0 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.article-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.55;
}

.article-card h3 a {
  color: #173a6a;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.article-card p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.85;
  color: #4b5563;
}

.article-card .column-index-link {
  margin-top: 2px;
}

@media screen and (max-width: 768px) {
  .hub-main {
    max-width: none;
  }

  .hub-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .article-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
  }

  .article-card__thumb img {
    height: auto;
    max-height: 220px;
    object-fit: contain;
  }

  .article-card h3 {
    font-size: 18px;
  }

  .article-card p {
    font-size: 14px;
  }
}

.article-card {
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
}

.article-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.article-card__body h3 {
  width: 100%;
}

.article-card__description {
  width: 100%;
  margin: 0 0 16px;
  color: #4b5563;
  line-height: 1.85;
}

.article-card__thumb .new-label {
  position: absolute;
  top: 10px;
  left: 10px;
}

@media screen and (max-width: 768px) {
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card__body {
    display: block;
  }
}

/* ---------- article CTA overrides ---------- */
.article-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.article-cta__buttons .cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.article-cta__buttons a.cta-button--secondary,
.article-cta a.cta-button--secondary {
  background: #1f6fb2;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(31, 111, 178, 0.18);
}

.article-cta__buttons a.cta-button--secondary:hover,
.article-cta a.cta-button--secondary:hover {
  background: #195f99;
  color: #ffffff;
}

@media screen and (max-width: 768px) {
  .article-cta__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .article-cta__buttons .cta-button {
    width: 100%;
  }
}

/* ---------- hub return text link final override ---------- */
.article-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.article-cta__buttons .hub-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1f6fb2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.article-cta__buttons .hub-return-link:hover {
  color: #195f99;
}

@media screen and (max-width: 768px) {
  .article-cta__buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .article-cta__buttons .cta-button {
    width: 100%;
    justify-content: center;
  }

  .article-cta__buttons .hub-return-link {
    min-height: auto;
    padding-left: 2px;
  }
}

/* ---------- hub return text link ---------- */
.article-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.article-cta__buttons .hub-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1f6fb2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.article-cta__buttons .hub-return-link:hover {
  color: #195f99;
}

@media screen and (max-width: 768px) {
  .article-cta__buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .article-cta__buttons .cta-button {
    width: 100%;
    justify-content: center;
  }

  .article-cta__buttons .hub-return-link {
    min-height: auto;
    padding-left: 2px;
  }
}

/* ---------- hub return CTA button ---------- */
.article-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.article-cta__buttons .cta-button,
.article-cta__buttons .hub-return-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
}

.article-cta__buttons .hub-return-button {
  background: #1f6fb2 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(31, 111, 178, 0.18);
}

.article-cta__buttons .hub-return-button:hover {
  background: #195f99 !important;
  color: #ffffff !important;
}

@media screen and (max-width: 768px) {
  .article-cta__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .article-cta__buttons .cta-button,
  .article-cta__buttons .hub-return-button {
    width: 100%;
  }
}

/* ---------- hub return text link last override ---------- */
.article-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.article-cta__buttons .hub-return-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1f6fb2;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.article-cta__buttons .hub-return-link:hover {
  color: #195f99;
}

@media screen and (max-width: 768px) {
  .article-cta__buttons {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .article-cta__buttons .cta-button {
    width: 100%;
    justify-content: center;
  }

  .article-cta__buttons .hub-return-link {
    min-height: auto;
    padding-left: 2px;
  }
}
