/**
 * Fahren Lab Business - front-end styles
 *
 * 保守の入口:
 * 1. 下記 :root の変数を変更すると、サイト全体の印象をまとめて調整できます。
 * 2. ブランド色とアクセント色はカスタマイザーの値で上書きされます。
 * 3. 親テーマのCSSは編集しないでください。
 */
:root {
  --fl-brand: #33483f;
  --fl-accent: #3f7a68;
  --fl-accent-dark: #315f51;
  --fl-ink: #293732;
  --fl-muted: #6b7973;
  --fl-bg: #f3f6f4;
  --fl-surface: #ffffff;
  --fl-surface-soft: #f8faf9;
  --fl-border: #dfe7e2;
  --fl-border-strong: #cbd8d0;
  --fl-success: #287565;
  --fl-radius-sm: 8px;
  --fl-radius-md: 14px;
  --fl-radius-lg: 22px;
  --fl-shadow-sm: 0 8px 24px rgba(38, 60, 50, 0.06);
  --fl-shadow-md: 0 18px 45px rgba(38, 60, 50, 0.10);
  --fl-content-width: 1360px;
  --fl-reading-width: 820px;
  --fl-sidebar-width: 320px;
  --fl-layout-gap: 32px;

  /*
   * 文字サイズの保守用変数。
   * カスタマイザーの「文字サイズ」で自動上書きされます。
   * 初期値は読みやすさを優先した「大きめ」です。
   */
  /*
   * Xwrite は html の基準文字サイズを 10px に設定しています。
   * rem では意図したサイズより小さくなるため、ここは実寸の px で管理します。
   */
  --fl-font-ui: 18px;       /* ナビ・一覧・サイドバー */
  --fl-font-small: 16px;    /* 日付・補助情報 */
  --fl-font-reading: 19px;  /* 記事本文 */
  --fl-transition: 180ms ease;
}

/* =========================================================
   1. Global / typography
   ========================================================= */
html {
  /* ページ内リンク移動後も、ホイール操作をすぐ受け付けるよう即時移動にします。 */
  scroll-behavior: auto;
}

body {
  color: var(--fl-ink) !important;
  font-size: var(--fl-font-ui) !important;
  background: var(--fl-bg) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif !important;
  font-feature-settings: "palt" 1;
  letter-spacing: 0.015em;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-weight: 400;
}

a {
  color: var(--fl-accent);
  text-underline-offset: 0.2em;
  transition: color var(--fl-transition), opacity var(--fl-transition), transform var(--fl-transition), box-shadow var(--fl-transition);
}

a:hover {
  color: var(--fl-accent-dark);
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fl-accent) 35%, transparent);
  outline-offset: 3px;
}

/*
 * 親テーマ側の固定幅より、子テーマの横幅設定を優先します。
 * widthにも!importantを付け、広い画面で記事が中央に小さく縮むのを防ぎます。
 */
.container {
  width: min(calc(100% - 48px), var(--fl-content-width)) !important;
  max-width: var(--fl-content-width) !important;
}

.contents {
  padding-top: 44px !important;
  padding-bottom: 72px !important;
}

::selection {
  color: #fff;
  background: var(--fl-accent);
}

/* =========================================================
   2. Header / navigation
   ========================================================= */
.header,
.header-fix {
  color: var(--fl-brand) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--fl-border);
  box-shadow: 0 3px 18px rgba(38, 60, 50, 0.04);
  backdrop-filter: blur(14px);
}

.header .headerInfo,
.header-fix .headerInfo {
  min-height: 76px;
}

.siteInfo__title,
.header .siteInfo .siteInfo__logo .siteInfo__title > a:not(.custom-logo-link),
.header-fix .siteInfo__logo > a:not(.custom-logo-link) {
  color: var(--fl-brand) !important;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif !important;
  font-size: clamp(24px, 2vw, 30px) !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  text-decoration: none;
}

.header .siteInfo__title > a:not(.custom-logo-link),
.header-fix .siteInfo__logo > a:not(.custom-logo-link) {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: baseline !important;
  justify-content: flex-start !important;
  width: max-content;
  max-width: none;
  height: auto !important;
  white-space: nowrap;
}

/*
 * サイト名はWordPress側で「Fahren Lab」のまま管理し、
 * ロゴ表示だけアクセントカラーのピリオドを加えます。
 * 画像ロゴを設定した場合は、この装飾を自動的に適用しません。
 */
.header .siteInfo__title > a:not(.custom-logo-link)::after,
.header-fix .siteInfo__logo > a:not(.custom-logo-link)::after {
  content: ".";
  color: var(--fl-accent);
  font-weight: 900;
  margin-left: 0.02em;
}

.siteInfo__desc {
  /* 基本色の帯上に表示されるため、十分なコントラストを保つ。 */
  color: #fff !important;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0.035em;
}

.header .siteNavList a,
.header-fix .siteNavList a {
  color: #3a4943 !important;
  font-size: var(--fl-font-ui);
  font-weight: 650;
  letter-spacing: 0.03em;
}

.header .siteNavList a:hover,
.header-fix .siteNavList a:hover {
  color: var(--fl-accent) !important;
  opacity: 1;
}

.header .siteNavList > .menu-item > a > .menu-item-title,
.header-fix .siteNavList > .menu-item > a > .menu-item-title {
  position: relative;
}

.header .siteNavList > .menu-item > a > .menu-item-title::after,
.header-fix .siteNavList > .menu-item > a > .menu-item-title::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--fl-accent);
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity var(--fl-transition), transform var(--fl-transition);
}

.header .siteNavList > .menu-item > a:hover > .menu-item-title::after,
.header-fix .siteNavList > .menu-item > a:hover > .menu-item-title::after {
  opacity: 1;
  transform: scaleX(1);
}

/* 全ページ共通のAI利用案内。本文前に置きつつ、主役になりすぎない密度にします。 */
.fahren-ai-disclosure {
  color: #4c6057;
  background: #f3f7f5;
  border-top: 1px solid rgba(51, 72, 63, 0.08);
  border-bottom: 1px solid rgba(51, 72, 63, 0.12);
}

.fahren-ai-disclosure .container {
  padding-top: 9px;
  padding-bottom: 9px;
}

.fahren-ai-disclosure p {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
  text-align: center;
}

/* =========================================================
   3. Homepage hero
   ========================================================= */
.fahren-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(
      90deg,
      rgba(62, 85, 75, 0.96) 0%,
      rgba(62, 85, 75, 0.9) 35%,
      rgba(72, 94, 80, 0.7) 50%,
      rgba(255, 247, 234, 0.06) 70%,
      rgba(255, 248, 235, 0.2) 100%
    ),
    url("../images/hero-workspace-calligraphy-v2.webp") center center / cover no-repeat;
  background-color: #3e554b;
}

.fahren-hero__container {
  position: relative;
  z-index: 1;
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 68px;
  align-items: center;
  padding-top: clamp(72px, 8vw, 112px);
  padding-bottom: clamp(72px, 8vw, 112px);
}

.fahren-hero__eyebrow {
  margin: 0 0 18px;
  color: #c9e1d6;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.fahren-hero__title {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 70px);
  font-weight: 820;
  line-height: 1.14;
  letter-spacing: -0.055em;
}

.fahren-hero__lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: #e1e9e5;
  font-size: clamp(19px, 1.65vw, 22px);
  line-height: 1.85;
}

.fahren-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.fahren-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 750;
  text-decoration: none !important;
}

.fahren-service-icon {
  display: inline-flex;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  font-size: 19px;
  line-height: 1;
}

.fahren-button--primary {
  color: #fff !important;
  background: var(--fl-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.fahren-button--primary:hover {
  color: #fff !important;
  background: var(--fl-accent-dark);
  transform: translateY(-2px);
}

.fahren-button--secondary {
  color: #eff7f3 !important;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.26);
}

.fahren-button--secondary:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.42);
}

/* Amazonボタンは他サービスと高さを揃え、広告表示をリンク内で明瞭にします。 */
.fahren-button--amazon {
  white-space: nowrap;
}

.fahren-button__ad {
  padding: 3px 7px;
  color: #f7fbf9;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}

.fahren-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fahren-hero__tags span {
  padding: 8px 12px;
  color: #edf6f1;
  background: rgba(63, 122, 104, 0.3);
  border: 1px solid rgba(201, 225, 214, 0.32);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

/* Xwriteのプロフィール本文へ追加する外部メディアリンク。 */
.fahren-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fahren-profile-links a {
  display: inline-flex;
  min-height: 42px;
  flex: 1 1 112px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  color: var(--fl-brand) !important;
  background: var(--fl-surface-soft);
  border: 1px solid var(--fl-border-strong);
  border-radius: 999px;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  text-decoration: none !important;
}

.fahren-profile-links .fahren-service-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  margin-right: 7px;
  font-size: 17px;
}

.fahren-profile-links a:hover {
  color: #fff !important;
  background: var(--fl-accent);
  border-color: var(--fl-accent);
}

.fahren-profile-links a:hover img.fahren-service-icon {
  filter: invert(1);
}

/* =========================================================
   4. Main layout / cards
   ========================================================= */
.main {
  min-width: 0;
}

@media (min-width: 992px) {
  .sidebar-right .contents > .container,
  .sidebar-left .contents > .container {
    display: flex;
    align-items: flex-start;
    gap: var(--fl-layout-gap) !important;
  }

  /*
   * 親テーマの比率指定を解除し、残り幅を記事カラムへ割り当てます。
   * これにより、ワイド画面でも記事だけが細く見える状態を避けます。
   */
  .sidebar-right .main,
  .sidebar-left .main {
    width: auto !important;
    max-width: none !important;
    flex: 1 1 0;
  }

  .side {
    width: var(--fl-sidebar-width) !important;
    max-width: var(--fl-sidebar-width) !important;
    flex: 0 0 var(--fl-sidebar-width) !important;
  }
}

.block,
.articleContainer,
.side .widget,
.side .wp-block-group,
.widget-area .wp-block-group {
  border-radius: var(--fl-radius-md);
}

.single .articleContainer,
.page .articleContainer,
.archive .articleContainer,
.search .articleContainer {
  padding: clamp(28px, 3.5vw, 40px) !important;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  box-shadow: var(--fl-shadow-sm);
}

.articleHeader__title,
.contentsHeader__caption {
  color: var(--fl-brand) !important;
  font-size: clamp(32px, 2.6vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.035em;
}

.articleHeader__info,
.articleHeader__info a,
.breadcrumbs,
.breadcrumbs a {
  color: var(--fl-muted) !important;
  font-size: var(--fl-font-small);
  line-height: 1.7;
}

/* 記事上部のカテゴリラベルは、青い背景に白文字を合わせて判読性を確保します。 */
.article-meta .article-category .list-label a,
.article-meta .article-category .list-label a:hover,
.article-meta .article-category .list-label a:focus-visible {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: none;
}

.post-thumbnail img {
  border-radius: var(--fl-radius-md);
}

/* =========================================================
   5. Post list
   ========================================================= */
.articleListContainer {
  margin-top: 26px !important;
}

.articleList {
  gap: 22px !important;
}

.articleList__item {
  overflow: hidden;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-md);
  box-shadow: var(--fl-shadow-sm);
  transition: transform var(--fl-transition), box-shadow var(--fl-transition), border-color var(--fl-transition);
}

.articleList__item:hover {
  border-color: color-mix(in srgb, var(--fl-accent) 32%, var(--fl-border));
  box-shadow: var(--fl-shadow-md);
  transform: translateY(-4px);
}

.articleList .xw-article-media:hover {
  opacity: 1 !important;
}

.articleList__item--fig {
  overflow: hidden;
  background: linear-gradient(145deg, #e9efeb, #f8faf9);
}

.articleList__item--fig img {
  transition: transform 360ms ease;
}

.articleList__item:hover .articleList__item--fig img {
  transform: scale(1.025);
}

.articleList .xw-article-media__body {
  padding: 22px 22px 24px !important;
}

.articleList .xw-article-media__body--title {
  color: var(--fl-brand);
  font-size: 22px;
  font-weight: 780;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.articleList .xw-article-media__body--text {
  margin-top: 12px;
  color: var(--fl-muted);
  font-size: var(--fl-font-ui);
  line-height: 1.85;
}

/* =========================================================
   6. Article typography
   ========================================================= */
.articleBody {
  color: #2f3d38;
  font-size: var(--fl-font-reading);
  line-height: 1.88;
}

.articleBody > :where(p, ul, ol, blockquote, table, pre, .wp-block-group, .wp-block-columns) {
  max-width: var(--fl-reading-width);
  margin-right: auto;
  margin-left: auto;
}

.articleBody h2 {
  max-width: var(--fl-reading-width);
  margin: 3.2em auto 1.25em !important;
  padding: 0 0 0.72em !important;
  color: var(--fl-brand) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid var(--fl-border-strong) !important;
  font-size: clamp(27px, 2.6vw, 33px) !important;
  font-weight: 800 !important;
  line-height: 1.45;
  letter-spacing: -0.025em;
}

.articleBody h2::before {
  display: inline-block;
  width: 8px;
  height: 0.9em;
  margin-right: 12px;
  content: "";
  vertical-align: -0.04em;
  background: var(--fl-accent);
  border-radius: 2px;
}

.articleBody h3 {
  max-width: var(--fl-reading-width);
  margin: 2.5em auto 1em !important;
  padding-left: 16px !important;
  color: var(--fl-brand) !important;
  border-left: 3px solid var(--fl-accent) !important;
  font-size: clamp(22px, 2.1vw, 25px) !important;
  font-weight: 780 !important;
  line-height: 1.5;
}

.articleBody h4 {
  max-width: var(--fl-reading-width);
  margin: 2em auto 0.8em;
  color: var(--fl-brand);
  font-weight: 750;
}

.articleBody blockquote {
  position: relative;
  padding: 24px 26px 24px 30px;
  color: #4a5d55;
  background: #f5f8f6;
  border: 1px solid var(--fl-border);
  border-left: 4px solid var(--fl-accent);
  border-radius: 0 var(--fl-radius-sm) var(--fl-radius-sm) 0;
}

.articleBody ul,
.articleBody ol {
  padding-left: 1.4em;
}

.articleBody li + li {
  margin-top: 0.55em;
}

.articleBody table {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-sm);
  box-shadow: 0 4px 14px rgba(38, 60, 50, 0.035);
}

.articleBody th {
  color: var(--fl-brand);
  background: #edf3ef;
  font-weight: 750;
}

.articleBody th,
.articleBody td {
  padding: 13px 15px;
  border-color: var(--fl-border) !important;
}

.articleBody code {
  padding: 0.16em 0.4em;
  color: #1e4f78;
  background: #edf4fa;
  border-radius: 5px;
  font-size: 0.9em;
}

.articleBody pre {
  padding: 22px;
  overflow: auto;
  color: #e2ede7;
  background: #20302a;
  border-radius: var(--fl-radius-sm);
}

.articleBody pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.wp-block-button__link,
.articleBody .button,
.articleBody input[type="submit"] {
  color: #fff !important;
  background: var(--fl-accent) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 22px rgba(63, 122, 104, 0.18);
  font-weight: 750;
}

.wp-block-button__link:hover,
.articleBody .button:hover,
.articleBody input[type="submit"]:hover {
  background: var(--fl-accent-dark) !important;
  transform: translateY(-1px);
}

/* =========================================================
   7. Sidebar / widgets
   ========================================================= */
.side {
  margin-top: 0 !important;
}

.side .widget {
  padding: 24px !important;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  box-shadow: var(--fl-shadow-sm);
}

/* ブロックウィジェット内のGroupは、外側widgetと二重カードにしません。 */
.side .widget > .wp-block-group {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.side .widget + .widget {
  margin-top: 22px;
}

.side .widget-title,
.side .wp-block-heading,
#secondary .widget-title,
#secondary .wp-block-heading {
  margin: 0 0 18px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 0 12px !important;
  width: auto !important;
  color: var(--fl-brand) !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--fl-border) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
}

.side p,
.side li,
.side a {
  font-size: var(--fl-font-ui);
  line-height: 1.8;
}

.side ul {
  padding-left: 0;
  list-style: none;
}

.side li + li {
  margin-top: 10px;
}

.side a {
  color: #4f6159;
  text-decoration: none;
}

.side a:hover {
  color: var(--fl-accent);
}

/* =========================================================
   8. Advertisement slots
   ========================================================= */
.fahren-ad-slot {
  width: min(calc(100% - 48px), var(--fl-content-width));
  margin: 28px auto;
  text-align: center;
}

.articleContainer .fahren-ad-slot {
  width: 100%;
  max-width: var(--fl-reading-width);
  margin: 30px auto;
}

.fahren-ad-slot__label {
  margin-bottom: 8px;
  color: #839089;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.fahren-ad-slot__body {
  min-height: 72px;
  padding: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px dashed var(--fl-border-strong);
  border-radius: var(--fl-radius-sm);
}

.fahren-ad-slot__body > :first-child {
  margin-top: 0 !important;
}

.fahren-ad-slot__body > :last-child {
  margin-bottom: 0 !important;
}

.fahren-ad-slot img,
.fahren-ad-slot iframe {
  max-width: 100%;
}

/* =========================================================
   9. Forms / comments / pagination
   ========================================================= */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  color: var(--fl-ink);
  background: #fff;
  border: 1px solid var(--fl-border-strong) !important;
  border-radius: var(--fl-radius-sm) !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--fl-accent) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fl-accent) 12%, transparent);
}

.nav-links .page-numbers {
  border-radius: 999px !important;
}

.nav-links .page-numbers.current {
  color: #fff !important;
  background: var(--fl-accent) !important;
}

/* =========================================================
   10. Footer
   ========================================================= */
.footer {
  color: #dfe9e4 !important;
  background: var(--fl-brand) !important;
  border-top: 0 !important;
}

.footer a,
.footer .widget-title,
.footer .wp-block-heading {
  color: #f0f6f3 !important;
}

.footer a:hover {
  color: #b9ddcd !important;
}

.footer,
.footer p,
.footer li,
.footer a {
  font-size: var(--fl-font-small);
  line-height: 1.75;
}

.container-footer-area {
  padding-top: 54px;
  padding-bottom: 42px;
}

.fahren-amazon-associate-disclosure {
  max-width: 920px;
  margin: 0 auto 10px;
  color: #dfe9e4;
  font-size: 14px !important;
  line-height: 1.7;
  text-align: center;
}

.siteNavList--footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pagetop a {
  color: #fff !important;
  background: var(--fl-accent) !important;
  box-shadow: 0 10px 28px rgba(38, 60, 50, 0.23);
}

/* =========================================================
   11. Responsive
   ========================================================= */
@media (max-width: 991.98px) {
  .fahren-hero__container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .side {
    margin-top: 34px !important;
  }
}

@media (max-width: 767.98px) {
  /* スマホでは暗い左側を中心に表示し、文字のコントラストを保ちます。 */
  .fahren-hero {
    background-position: center center, 32% center;
  }

  .container {
    width: min(calc(100% - 28px), var(--fl-content-width)) !important;
  }

  .fahren-ai-disclosure .container {
    width: min(calc(100% - 20px), var(--fl-content-width)) !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .fahren-ai-disclosure p {
    font-size: 12.5px;
    line-height: 1.6;
  }

  .contents {
    padding-top: 28px !important;
    padding-bottom: 48px !important;
  }

  .header .headerInfo,
  .header-fix .headerInfo {
    min-height: 64px;
  }

  .fahren-hero__container {
    width: min(calc(100% - 34px), var(--fl-content-width)) !important;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .fahren-hero__title {
    font-size: clamp(34px, 11vw, 52px);
  }

  /* 小型画面では英字を1行に保ちつつ、PCより少しだけ抑えます。 */
  .fahren-hero__eyebrow {
    font-size: 18px;
    letter-spacing: 0.13em;
  }

  .fahren-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .fahren-button {
    width: auto;
    padding: 0 14px;
    font-size: 15px;
  }

  /* 3つ目のAmazon導線は1行分を使い、長い文言を潰さず表示します。 */
  .fahren-button--amazon {
    grid-column: 1 / -1;
  }

  .single .articleContainer,
  .page .articleContainer,
  .archive .articleContainer,
  .search .articleContainer {
    padding: 25px 20px !important;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .articleBody {
    font-size: 18px;
    line-height: 1.9;
  }

  /* スマホでも本文18pxを保ち、カード内の余白だけを圧縮します。 */
  .articleList .xw-article-media__body--title {
    font-size: 20px;
  }

  .articleList .xw-article-media__body--text,
  .side p,
  .side li,
  .side a {
    font-size: 17px;
  }

  .articleBody h2 {
    margin-top: 2.7em !important;
    font-size: 28px !important;
  }

  .articleBody h3 {
    font-size: 23px !important;
  }

  .fahren-ad-slot {
    width: min(calc(100% - 28px), var(--fl-content-width));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
