/* =====================================================
   TREND NOTE v3 — light editorial (knap.jp blog 準拠)
   白地×黒文字 / KV写真+白タイトル / 本文18px・行間2.0
   H2 32px / 目次・シェアは #f0f0f0 / フッター黒
   ===================================================== */
:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-paper: #f0f0f0;
  --c-gray: #646464;
  --c-gray-l: #979797;
  --c-line: #d1d1d1;
  --c-accent: #ff262e;
  --font-en: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --w-max: 120rem;      /* 1200px コンテナ */
  --w-content: 85rem;   /* 850px 本文欄 */
  --header-h: 14.5rem;  /* ヘッダー帯の高さ（大ロゴ+余白） */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; scroll-padding-top: 16rem; }
body {
  font-family: var(--font-jp);
  font-size: 1.6rem;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--c-black); color: var(--c-white); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--c-black); color: var(--c-white); padding: 1rem 2rem; }
.skip-link:focus { left: 0; }

.p-inner { width: min(100% - 4rem, var(--w-max)); margin-inline: auto; }

/* ---------------- header（黒・大ロゴ＋ハンバーガーのみ） ---------------- */
.p-header {
  position: fixed; top: 0; left: 0; z-index: 100; width: 100%;
  background: var(--c-black);
  transition: background 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.p-header__inner {
  width: min(100% - 8rem, var(--w-max)); margin-inline: auto;
  padding: 4.8rem 0 4.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  transition: padding 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.p-header.is-scrolled .p-header__inner { padding: 2rem 0 1.8rem; }
.p-header__logo { display: flex; flex-direction: column; line-height: 1.1; transform-origin: left center; transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.p-header.is-scrolled .p-header__logo { transform: scale(0.55); }
.p-header__logo-en { font-family: var(--font-en); font-weight: 700; font-size: 3.6rem; letter-spacing: 0.02em; color: var(--c-white); }
.p-header__logo-jp { font-size: 1.1rem; font-weight: 500; letter-spacing: 0.3em; color: var(--c-gray-l); margin-top: 0.6rem; }

.p-header__btn { display: flex; flex-direction: column; justify-content: center; gap: 1rem; width: 4.2rem; height: 4.2rem; border-radius: 50%; transition: background 0.3s ease; }
.p-header__btn-line { display: block; width: 100%; height: 2px; background: var(--c-white); transition: transform 0.3s ease, background 0.3s ease; }
body.is-menu-open .p-header__btn { background: var(--c-white); }
body.is-menu-open .p-header__btn-line { background: var(--c-black); }
body.is-menu-open .p-header__btn-line:nth-child(1) { transform: translateY(0.6rem) rotate(45deg); }
body.is-menu-open .p-header__btn-line:nth-child(2) { transform: translateY(-0.6rem) rotate(-45deg); }

/* ---------------- fullscreen menu（左寄せ・タイトル+説明の行） ---------------- */
.p-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--c-black); color: var(--c-white);
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
}
.p-menu.is-open { opacity: 1; visibility: visible; }
.p-menu__nav { width: min(100% - 8rem, var(--w-max)); margin-inline: auto; }
.p-menu__list { display: grid; row-gap: 4rem; }
.p-menu__list a {
  display: flex; align-items: baseline; gap: 3rem; flex-wrap: wrap;
  opacity: 0; transform: translateY(1.4rem);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.p-menu.is-open .p-menu__list a { opacity: 1; transform: none; }
.p-menu.is-open .p-menu__list li:nth-child(1) a { transition-delay: 0.08s; }
.p-menu.is-open .p-menu__list li:nth-child(2) a { transition-delay: 0.16s; }
.p-menu.is-open .p-menu__list li:nth-child(3) a { transition-delay: 0.24s; }
.p-menu.is-open .p-menu__list li:nth-child(4) a { transition-delay: 0.32s; }
.p-menu.is-open .p-menu__list li:nth-child(5) a { transition-delay: 0.4s; }
.p-menu.is-open .p-menu__list li:nth-child(6) a { transition-delay: 0.48s; }
.p-menu.is-open .p-menu__list li:nth-child(7) a { transition-delay: 0.56s; }
.p-menu__ttl { font-size: 2.6rem; font-weight: 700; letter-spacing: 0.06em; }
.p-menu__desc { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.05em; color: var(--c-white); }

/* ---------------- KV（記事） ---------------- */
.p-kv {
  position: relative; margin-top: var(--header-h);
  height: min(calc(100svh - var(--header-h)), 80rem); min-height: 52rem; overflow: hidden;
}
.p-kv__img { position: absolute; inset: 0; }
.p-kv__img img { width: 100%; height: 100%; object-fit: cover; }
.p-kv__img::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.p-kv__content {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  width: min(100% - 4rem, var(--w-max)); margin-inline: auto;
  padding-bottom: 7rem; color: var(--c-white);
}
.p-kv__date { font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.p-kv__ttl {
  margin-top: 2rem; max-width: 100rem;
  font-size: clamp(2.6rem, 3vw, 3.8rem); font-weight: 500; line-height: 1.5;
}
.p-kv__tags { margin-top: 2.4rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.p-kv__chip {
  display: inline-block; background: var(--c-white); color: var(--c-black);
  font-size: 1.2rem; font-weight: 700; padding: 0.3rem 1.4rem; border-radius: 10rem;
}
.p-kv__author { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.2rem; }
.p-kv__avatar { width: 4.4rem; height: 4.4rem; border-radius: 50%; overflow: hidden; background: var(--c-white); display: block; }
.p-kv__author-name { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.08em; }
.p-kv__heart { color: var(--c-accent); font-size: 1.8rem; }

/* ---------------- トップ: スライダー＋記事一覧（白テーマ） ---------------- */
.top-slider-wrap { margin-top: var(--header-h); padding: 2rem 0 1rem; overflow: hidden; }
.top-slider {
  display: flex; gap: 4rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2rem max(calc((100vw - 100rem) / 2), 2rem) 4rem;
  scrollbar-width: none;
}
.top-slider::-webkit-scrollbar { display: none; }
.top-card {
  flex: 0 0 auto; scroll-snap-align: center;
  width: min(100rem, 92vw); aspect-ratio: 100 / 49;
  position: relative; overflow: hidden; background: var(--c-paper);
}
.top-card__img { position: absolute; inset: 0; }
.top-card__img img { width: 100%; height: 100%; object-fit: cover; }
.top-card__img::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); transition: background 0.4s ease; }
.top-card__link:hover .top-card__img::after { background: rgba(0, 0, 0, 0.3); }
.top-card__content {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  padding: 0 4rem 3.6rem; color: var(--c-white); max-width: 90%;
}
.top-card__date { font-size: 1.4rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.top-card__ttl {
  margin-top: 1.2rem; font-size: clamp(2.2rem, 2.4vw, 3.2rem); font-weight: 700;
  line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.top-card__author { margin-top: 1.6rem; display: flex; align-items: center; gap: 1.2rem; }
.top-card__avatar { width: 4rem; height: 4rem; border-radius: 50%; overflow: hidden; background: var(--c-white); display: block; }
.top-card__author-name { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.08em; }
.top-card__heart { color: var(--c-accent); font-size: 1.6rem; }
.top-card__tags { margin-top: 1.8rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.top-card__chip {
  display: inline-block; background: var(--c-white); color: var(--c-black);
  font-size: 1.2rem; font-weight: 700; padding: 0.3rem 1.4rem; border-radius: 10rem;
}

/* フィルターpills（白地・黒枠） */
.top-filter {
  display: flex; align-items: center; justify-content: center; gap: 2.4rem; flex-wrap: wrap;
  padding: 1rem 4rem 3rem; border-bottom: 1px solid var(--c-line);
}
.top-filter__all {
  font-family: var(--font-en); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--c-black); padding: 0.8rem 0.4rem;
}
.top-filter__pill {
  border: 2px solid var(--c-black); border-radius: 10rem; color: var(--c-black);
  font-size: 1.4rem; font-weight: 700; padding: 1.2rem 3.6rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.top-filter__pill:hover, .top-filter__all:hover { opacity: 0.6; }
.top-filter__pill.is-active { background: var(--c-black); color: var(--c-white); }

/* ---------------- sections ---------------- */
.p-section { padding: 10rem 0 4rem; }
.p-section--about { padding-bottom: 12rem; }
.p-section__ttl {
  font-size: clamp(2.4rem, 2.6vw, 3.2rem); font-weight: 700; line-height: 1.5;
  margin-bottom: 5.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--c-line);
}

/* ---------------- card grid（白地） ---------------- */
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5rem 3rem; }
.p-card__link { display: flex; flex-direction: column; height: 100%; }
.p-card__thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-paper); }
.p-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.p-card__link:hover .p-card__thumb img { transform: scale(1.05); }
.p-card__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.p-card__cat { font-size: 1.2rem; font-weight: 700; color: var(--c-accent); letter-spacing: 0.06em; }
.p-card__date { font-size: 1.3rem; color: var(--c-gray); font-variant-numeric: tabular-nums; }
.p-card__title { font-size: 1.6rem; font-weight: 500; line-height: 1.5; margin-top: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__foot { margin-top: auto; padding-top: 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.p-card__read { font-size: 1.2rem; color: var(--c-gray); }
.p-card__more { transition: transform 0.3s ease; }
.p-card__link:hover .p-card__more { transform: translateX(0.5rem); }

/* ---------------- breadcrumb（右寄せ・ハイフン区切り） ---------------- */
.p-article-layout { padding-top: 4rem; }
.p-breadcrumb { margin-bottom: 4rem; }
.p-breadcrumb ol { display: flex; justify-content: flex-end; flex-wrap: wrap; font-size: 1.2rem; letter-spacing: 0.07em; line-height: 1.2; color: var(--c-black); }
.p-breadcrumb li { white-space: nowrap; }
.p-breadcrumb li:not(:last-child)::after { content: "-"; margin: 0 1rem; }
.p-breadcrumb li:last-child { pointer-events: none; }
.p-breadcrumb a:hover { opacity: 0.6; }

/* ---------------- article body（白地・850px） ---------------- */
.p-article {
  width: min(100%, var(--w-content)); margin-inline: auto;
  color: var(--c-black);
}
.p-source {
  background: var(--c-paper); padding: 2.4rem 2.8rem; margin-bottom: 6rem;
  font-size: 1.4rem; border-left: 4px solid var(--c-black);
}
.p-source__label { font-weight: 700; font-size: 1.2rem; letter-spacing: 0.08em; }
.p-source__q { margin-top: 0.8rem; line-height: 1.9; }
.p-source__link { margin-top: 0.8rem; color: var(--c-gray); font-size: 1.2rem; }
.p-source__link a { text-decoration: underline; }

/* ---------------- TOC（#f0f0f0） ---------------- */
.p-toc { background: var(--c-paper); padding: 3.2rem 3.6rem; margin-bottom: 7rem; }
.p-toc__ttl { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; }
.p-toc__list { display: grid; gap: 1.6rem; }
.p-toc__item { font-size: 1.8rem; font-weight: 500; line-height: 2; display: flex; align-items: baseline; gap: 1.6rem; }
.p-toc__num {
  flex-shrink: 0; width: 2.8rem; height: 2.8rem; border-radius: 50%;
  background: var(--c-black); color: var(--c-white);
  font-family: var(--font-en); font-size: 1.3rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  transform: translateY(0.5rem);
}
.p-toc__item a { text-decoration: underline; text-underline-offset: 0.35em; text-decoration-thickness: 1px; }
.p-toc__item a:hover { text-decoration-thickness: 2px; }

/* ---------------- 本文タイポ（実測準拠） ---------------- */
.p-article__body { font-size: 1.8rem; font-weight: 500; line-height: 2; counter-reset: h2; }
.p-article__body > p { margin: 0 0 3.6rem; }
.p-article__body h2 {
  counter-increment: h2;
  font-size: clamp(2.4rem, 2.4vw, 3.2rem); font-weight: 700; line-height: 1.5;
  margin: 10rem 0 4.8rem; padding-bottom: 1.6rem; position: relative;
}
.p-article__body > h2:first-child { margin-top: 0; }
.p-article__body h2::before {
  content: counter(h2);
  display: inline-flex; align-items: center; justify-content: center;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: var(--c-black); color: var(--c-white);
  font-family: var(--font-en); font-size: 1.7rem; font-weight: 700;
  margin-right: 1.6rem; vertical-align: 0.4rem;
}
.p-article__body h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--c-black);
}
.p-article__body h3 { font-size: 2.2rem; font-weight: 700; margin: 6.4rem 0 2.4rem; }
.p-article__body h4 { font-size: 1.9rem; font-weight: 700; margin: 4.8rem 0 2rem; }
.p-article__body ul, .p-article__body ol { margin: 0 0 3.6rem; display: grid; gap: 1rem; }
.p-article__body ul li { padding-left: 2rem; position: relative; }
.p-article__body ul li::before { content: ""; position: absolute; left: 0.2rem; top: 1.5rem; width: 0.8rem; height: 0.8rem; background: var(--c-black); }
.p-article__body ol { counter-reset: ol; }
.p-article__body ol li { padding-left: 3.2rem; position: relative; counter-increment: ol; }
.p-article__body ol li::before {
  content: counter(ol); position: absolute; left: 0;
  font-family: var(--font-en); font-weight: 700; color: var(--c-accent);
}
.p-article__body .li-nest { margin-left: 1.6rem; }
.p-article__body blockquote {
  margin: 0 0 3.6rem; padding: 2rem 2.8rem;
  border-left: 4px solid var(--c-line); background: var(--c-paper);
  font-size: 1.6rem;
}
.p-article__body a { text-decoration: underline; text-underline-offset: 0.3em; }
.p-article__body hr { border: 0; border-top: 1px solid var(--c-line); margin: 6.4rem 0; }
.p-article__body code { font-family: Consolas, Monaco, monospace; font-size: 0.85em; background: var(--c-paper); padding: 0.1em 0.5em; }
.p-article__body pre { margin: 0 0 3.6rem; padding: 2.4rem; background: var(--c-black); color: var(--c-white); overflow-x: auto; font-size: 1.4rem; line-height: 1.8; }
.p-article__body pre code { background: none; color: inherit; padding: 0; }
strong { background: linear-gradient(transparent 62%, #ffe100 62% 92%, transparent 92%); font-weight: 700; }

/* 本文内画像 */
.body-img { margin: 0 0 3.6rem; }
.body-img img { width: 100%; border-radius: 0.4rem; }
.body-img figcaption { font-size: 1.3rem; color: var(--c-gray); line-height: 1.8; padding-top: 0.8rem; text-align: center; }

/* YouTube埋め込み */
.video-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 3.6rem; background: var(--c-black); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* boxes */
.box { margin: 0 0 4.8rem; border: 2px solid var(--c-black); }
.box-label { display: flex; align-items: baseline; gap: 1.2rem; padding: 1.2rem 2rem; background: var(--c-black); color: var(--c-white); }
.box-label-en { font-family: var(--font-en); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.14em; }
.box-label-txt { font-size: 1.4rem; font-weight: 700; }
.box-body { padding: 2.4rem 2.8rem; }
.box-body p { margin: 0 0 1.2rem; font-size: 1.6rem; }
.box-body p:last-child { margin-bottom: 0; }
.box-check .box-label { background: #ffe100; color: var(--c-black); }
.box-warn { border-color: var(--c-accent); }
.box-warn .box-label { background: var(--c-accent); }

/* table */
.table-wrap { margin: 0 0 4.8rem; overflow-x: auto; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 1.5rem; line-height: 1.8; }
.table-wrap th, .table-wrap td { border: 1px solid var(--c-black); padding: 1.4rem 1.8rem; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--c-black); color: var(--c-white); font-weight: 700; white-space: nowrap; }
.table-wrap tr:nth-child(even) td { background: var(--c-paper); }

/* FAQ */
.faq-item { border: 1px solid var(--c-black); margin-bottom: 2rem; }
.faq-q { display: flex; align-items: baseline; gap: 1.4rem; padding: 2rem 2.8rem; font-weight: 700; font-size: 1.7rem; cursor: pointer; position: relative; list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-mark { font-family: var(--font-en); font-weight: 700; color: var(--c-accent); font-size: 1.9rem; flex-shrink: 0; }
.faq-icon { position: absolute; right: 2.4rem; top: 50%; width: 1.4rem; height: 1.4rem; border-right: 2px solid var(--c-black); border-bottom: 2px solid var(--c-black); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s ease; }
.faq-item[open] .faq-icon { transform: translateY(-30%) rotate(225deg); }
.faq-a { display: flex; gap: 1.4rem; padding: 2rem 2.8rem 2.4rem; font-size: 1.6rem; border-top: 1px dashed var(--c-line); }
.faq-mark-a { color: var(--c-black); }
.faq-a-body p { margin: 0 0 1.2rem; }
.faq-a-body p:last-child { margin-bottom: 0; }

/* ---------------- シェア領域（knap準拠: 全幅#f0f0f0帯+アバター+SNSアイコン） ---------------- */
.p-sns {
  position: relative;
  width: 100%;
  margin-top: 8rem;
  padding: 9rem 0 6rem;
  background: var(--c-paper);
  text-align: center;
}
.p-sns_avatar {
  position: absolute; top: 0; left: 50%;
  translate: -50% -50%;
}
.p-sns_avatar_img { width: 12rem; height: 12rem; border-radius: 50%; overflow: hidden; }
.p-sns_avatar_img img { width: 100%; height: 100%; object-fit: cover; }

/* シェアアイコン */
.p-sns_txt { margin-top: 0; font-size: 1.6rem; line-height: 1; letter-spacing: 0.03em; }
.p-sns_list { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; }
.p-sns_list_item { transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.p-sns_list_item:hover { opacity: 0.6; }
.p-sns_list_item_img { width: 3rem; height: auto; }

/* ---------------- 関連記事（白地） ---------------- */
.p-connection { padding: 8rem 0 16rem; }
.p-connection__ttl { font-size: 3.8rem; font-weight: 700; line-height: 1.5; }
.p-connection__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5rem; margin-top: 4rem; }
.p-arc__thumb { aspect-ratio: 1 / 1; overflow: hidden; background: var(--c-paper); }
.p-arc__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.p-arc__link:hover .p-arc__thumb img { transform: scale(1.05); }
.p-arc__ttl {
  font-size: 1.5rem; font-weight: 500; line-height: 1.5; margin-top: 1.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p-arc__meta { font-size: 1.3rem; color: var(--c-gray); margin-top: 0.8rem; }

/* ---------------- カテゴリ / 検索 / 404 ---------------- */
.p-section--head { padding: calc(var(--header-h) + 4rem) 0 0; }
.p-cat-ttl { font-size: clamp(2.6rem, 3vw, 3.8rem); font-weight: 700; }
.p-cat-count { margin-top: 1.2rem; color: var(--c-gray); font-size: 1.4rem; }
.p-empty { color: var(--c-gray); font-size: 1.5rem; }
.p-search-form { display: flex; max-width: 56rem; border: 1px solid var(--c-black); }
.p-search-form input { flex: 1; border: 0; outline: none; background: transparent; color: var(--c-black); font-family: inherit; font-size: 1.5rem; padding: 1.2rem 1.6rem; }
.p-search-form button { background: var(--c-black); color: var(--c-white); font-weight: 700; padding: 0 2.8rem; }
.p-404__ttl { font-size: 2.8rem; font-weight: 700; margin-bottom: 1.6rem; }
.p-404__txt { color: var(--c-gray); margin-bottom: 2.4rem; }
.c-btn { display: inline-block; background: var(--c-black); color: var(--c-white); font-weight: 700; font-size: 1.4rem; padding: 1.2rem 3.2rem; }
.c-btn:hover { opacity: 0.8; }

/* ---------------- フッター（黒） ---------------- */
.p-footer { background: var(--c-black); color: var(--c-white); }
.p-footer__inner { width: min(100% - 8rem, var(--w-max)); margin-inline: auto; padding: 8rem 0 3.2rem; }
.p-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4rem; flex-wrap: wrap; }
.p-footer__brand { max-width: 46rem; }
.p-footer__logo { font-size: 3.2rem; font-weight: 900; letter-spacing: 0.06em; line-height: 1.2; }
.p-footer__chips { margin-top: 2.4rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.p-footer__chip {
  display: inline-block; background: var(--c-white); color: var(--c-black);
  font-size: 1.2rem; font-weight: 700; padding: 0.3rem 1.4rem; border-radius: 10rem;
}
.p-footer__nav { display: grid; gap: 1.2rem; font-size: 1.4rem; }
.p-footer__nav a:hover { opacity: 0.6; }
.p-footer__search { display: flex; width: min(100%, 36rem); background: var(--c-white); }
.p-footer__search input { flex: 1; border: 0; outline: none; color: var(--c-black); font-family: inherit; font-size: 1.4rem; padding: 1.1rem 1.4rem; }
.p-footer__search button { padding: 0 1.4rem; font-size: 1.4rem; color: var(--c-black); }
.p-footer__address { margin-top: 6.4rem; font-size: 1.3rem; font-weight: 700; }
.p-footer__bottom { margin-top: 2.4rem; }
.p-footer__copy { font-size: 1.2rem; color: var(--c-gray-l); letter-spacing: 0.06em; }
.p-footer__note { margin-top: 4rem; font-size: 1.2rem; color: var(--c-gray-l); line-height: 2; max-width: 76rem; }

/* ---------------- to top ---------------- */
.p-totop {
  position: fixed; right: 2.4rem; bottom: 2.4rem; z-index: 80;
  width: 4.8rem; height: 4.8rem; background: var(--c-black); color: var(--c-white);
  font-size: 1.8rem; display: grid; place-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.p-totop:hover { transform: translateY(-0.4rem); opacity: 1; }
.p-totop[hidden] { display: none; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .p-grid, .p-connection__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  :root { --header-h: 8rem; }
  body { font-size: 1.6rem; } /* 実測: 本文16px/行間32px */
  .p-inner { width: min(100% - 4rem, var(--w-max)); } /* 実測: 側面パディング20px */

  /* ヘッダー: 実測 内高さ40px / ロゴ小さめ / ハンバーガーの線は15px */
  .p-header__inner { width: min(100% - 4rem, var(--w-max)); padding: 1.8rem 0 1.6rem; }
  .p-header__logo-en { font-size: 2rem; }
  .p-header__logo-jp { font-size: 0.9rem; }
  .p-header__btn { width: 4rem; height: 4rem; gap: 0.6rem; }
  .p-header__btn-line { width: 1.5rem; margin-inline: auto; }
  body.is-menu-open .p-header__btn-line:nth-child(1) { transform: translateY(0.3rem) rotate(45deg); }
  body.is-menu-open .p-header__btn-line:nth-child(2) { transform: translateY(-0.3rem) rotate(-45deg); }

  /* メニュー: タイトルと説明を縦に積む */
  .p-menu { padding: calc(var(--header-h) + 3rem) 0 4rem; }
  .p-menu__nav { width: min(100% - 4rem, var(--w-max)); }
  .p-menu__list { row-gap: 3rem; }
  .p-menu__list a { flex-direction: column; gap: 0.5rem; }
  .p-menu__ttl { font-size: 2.2rem; }
  .p-menu__desc { font-size: 1.2rem; }

  /* KV: 実測は横幅いっぱいのスクエア(375px)・タイトル20.8px・日付10px */
  .p-kv { height: 100vw; min-height: 0; margin-top: calc(var(--header-h) - 2rem); }
  .p-kv__content { padding-bottom: 4rem; }
  .p-kv__date { font-size: 1rem; }
  .p-kv__ttl { font-size: 2.1rem; line-height: 1.5; margin-top: 1.5rem; }
  .p-kv__author { margin-top: 1.6rem; }
  .p-kv__avatar { width: 3.2rem; height: 3.2rem; }
  .p-kv__author-name { font-size: 1.2rem; }
  .p-kv__tags { margin-top: 1.6rem; }
  .p-kv__chip { font-size: 1rem; padding: 0.25rem 1.1rem; }

  /* トップスライダー: カードは幅92vw・縦長気味 */
  .top-slider { gap: 2.4rem; padding: 2rem 1.6rem 3rem; }
  .top-card { width: 92vw; aspect-ratio: 100 / 72; }
  .top-card__content { padding: 0 2.4rem 2.4rem; }
  .top-card__ttl { font-size: 2.1rem; }
  .top-card__author-name { font-size: 1.2rem; }
  .top-filter { gap: 1.6rem; padding: 1.6rem 2rem 3rem; }
  .top-filter__pill { font-size: 1.3rem; padding: 1rem 2.6rem; }

  .p-section { padding: 6.4rem 0 2.4rem; }
  .p-grid, .p-connection__grid { grid-template-columns: 1fr; gap: 4rem; }

  /* 記事本文: 実測 16px/32px, H2 28px/42px margin 80/60 */
  .p-article-layout { padding-top: 6rem; }
  .p-breadcrumb { margin-bottom: 4rem; }
  .p-article__body { font-size: 1.6rem; line-height: 2; }
  .p-article__body h2 { font-size: 2.8rem; line-height: 1.5; margin: 8rem 0 6rem; }
  .p-article__body h2::before { width: 3rem; height: 3rem; font-size: 1.5rem; margin-right: 1.2rem; }
  .p-article__body h3 { font-size: 2rem; }
  .p-toc { padding: 2.4rem 2rem; }
  .p-toc__item { font-size: 1.6rem; }

  /* シェア: 実測 padding 65/70px, アバター90px */
  .p-sns { margin-top: 6.4rem; padding: 6.5rem 0 7rem; }
  .p-sns_avatar_img { width: 9rem; height: 9rem; }
  .p-sns_list_item_img { width: 2.7rem; }
  .p-connection { padding: 6rem 0 8rem; }
  .p-connection__ttl { font-size: 2.8rem; }

  .p-footer__inner { width: min(100% - 4rem, var(--w-max)); padding: 6.4rem 0 3.2rem; }
  .p-footer__top { flex-direction: column; }
  .p-footer__logo { font-size: 2.6rem; }
  /* 表はスマホで積み上げカード化（見出しセルがラベルになる） */
  .table-wrap { overflow-x: visible; }
  .table-wrap table { font-size: 1.4rem; }
  .table-wrap thead { display: none; }
  .table-wrap tr {
    display: block; margin: 0 0 1.4rem; border: 1px solid var(--c-black);
  }
  .table-wrap td {
    display: block; border: 0; padding: 0.9rem 1.4rem; border-bottom: 1px dashed var(--c-line);
  }
  .table-wrap td:last-child { border-bottom: 0; }
  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block; font-size: 1.15rem; font-weight: 700; color: var(--c-gray);
    margin-bottom: 0.1rem;
  }
}
