/*
Theme Name: EN CIRCLE
Theme URI:
Author: Numanou
Author URI:
Description: EN CIRCLE 様 コーポレートサイト用オリジナルテーマ。ワイヤーフレーム（TOP / About Us / News / Company）に忠実に構築。
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: encircle
*/

/* =========================================================
   Design tokens
   ※「まずは忠実に」＝ワイヤー通りの構成・ニュートラル配色。
   　ブランドカラー（赤/紺）は後で --color-accent を差し替えるだけで反映。
   ========================================================= */
:root {
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-bg: #ffffff;
  /* 2026-08-10 sametwo.co.jpを実機解析した結果、セクション背景の色分けは無く全面白だった。
     「暗い」への対応はヒーロー演出とヘッダー/フッター以外を白で統一する方向に変更 */
  --color-bg-alt: #ffffff;
  --color-line: #e5e5e5;
  /* ロゴ（ゴールド×濃紺）はヘッダー/フッターの背景としてのみ残す。UI差し色は赤に統一 */
  --color-navy: #0e1527;        /* 見出しテキスト・ヘッダー/フッター背景 */
  --color-navy-soft: #1e2a47;
  --color-navy-deep: #0e1527;   /* フッター */
  /* ブランドカラー：2026-07-27 クライアントフィードバックにより赤ベースへ変更
     （参考サイト sametwo.co.jp の見出し色文字と同じ使い方、色のみ赤に） */
  --color-accent: #d1273c;      /* 赤＝差し色（見出し・ボタン・下線） */
  --color-red: #d1273c;
  --color-red-dark: #a81f30;    /* ホバー・押下時 */
  --color-red-soft: #ff7a86;    /* 濃紺の上で使う明るい赤（ナビホバー等） */

  --container: 1080px;
  --gutter: 24px;
  --radius: 4px;

  /* 参考サイト sametwo.co.jp と同系の Noto Sans JP を基本書体に */
  --font-base: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-en: "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;

  --header-h: 72px;
}

/* =========================================================
   Base / reset
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { opacity: .7; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { list-style: none; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Section heading（英語見出し＋和名のサブ） */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
}
.section-head .ja {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--color-muted);
}
.section-head .en::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: 20px auto 0;
}
/* 英字ラベル内の1文字だけを差し色にする（参考サイト sametwo.co.jp と同じ手法） */
.accent-letter { color: var(--color-red); }
/* 左寄せ見出し（会社概要ページ等） */
.section-head--left { text-align: left; margin-bottom: 32px; }
.section-head--left .en { font-size: clamp(22px, 3.4vw, 30px); }
.section-head--left .ja { display: block; margin-top: 0; margin-bottom: 6px; color: var(--color-red); font-weight: 700; }
.section-head--left .en::after { margin: 16px 0 0; }

.section { padding: clamp(64px, 10vw, 112px) 0; }
.section--alt { background: var(--color-bg-alt); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border: 1px solid var(--color-red);
  color: var(--color-red);
  font-size: 14px;
  letter-spacing: .1em;
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--color-red); color: #fff; opacity: 1; }
.btn--accent { border-color: var(--color-accent); color: var(--color-accent); }
.btn--accent:hover { background: var(--color-accent); color: #fff; }

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .12em;
}
.more-link::after { content: "→"; }

/* =========================================================
   Header
   ========================================================= */
/* ヘッダーは濃紺。ゴールドのロゴは白地だとコントラスト1.73:1で視認できないため
   （紺地なら11.4:1）。ロゴ本来の背景色と同じで最も自然に見える。 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 21, 39, .95);
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 2px solid var(--color-red); /* 差し色の赤ライン */
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo { font-weight: 700; letter-spacing: .06em; font-size: 20px; font-family: var(--font-en); line-height: 1; }
.site-logo a { display: block; }
/* ロゴ画像（横型ロックアップ）。ヘッダー高さに対して自然に収まるサイズ */
.site-logo img,
.site-logo .custom-logo {
  height: clamp(30px, 4.6vw, 42px);
  width: auto;
  max-width: min(260px, 52vw);
  object-fit: contain;
  display: block;
}

.global-nav ul { display: flex; gap: 36px; align-items: center; }
.global-nav a {
  font-size: 14px;
  letter-spacing: .08em;
  position: relative;
  color: #f2f3f5; /* 濃紺ヘッダー上 */
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--color-red-soft); transform: scaleX(0);
  transform-origin: left; transition: transform .25s;
}
.global-nav a:hover { opacity: 1; color: var(--color-red-soft); }
.global-nav a:hover::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 2px;
  background: #f2f3f5; transition: .3s;
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* =========================================================
   Hero (TOP)
   ========================================================= */
.hero {
  position: relative;
  min-height: clamp(480px, 78vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, #2b2f38, #4a4f5a);
  z-index: -2;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
/* スライド（2枚目以降）。1枚目はheader_image（.hero__bg直下のimg）をそのまま使う */
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { /* 写真の上に白文字を置くための最小限のオーバーレイ（暗すぎない程度に） */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(15, 17, 23, .18) 0%, rgba(15, 17, 23, .38) 100%);
  z-index: -1;
}
/* ドットは白文字のヒーロー上に置くため半透明の白。アクティブのみ差し色の赤 */
.hero-dots {
  position: absolute; left: 50%; bottom: 35px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 1;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: #fff; opacity: .5; padding: 0; cursor: pointer;
}
.hero-dots button.is-active { background: var(--color-red); opacity: 1; }
/* 見出しは白文字＋他の見出しと同じ「1文字だけ差し色」（.accent-letter）を使用 */
.hero__copy {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(30px, 5.5vw, 60px);
  line-height: 1.2;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero__sub {
  margin-top: 20px;
  font-size: 14px;
  letter-spacing: .18em;
  color: #fff;
}

/* =========================================================
   TOP: News
   ========================================================= */
.news-list { display: grid; gap: 4px; max-width: 820px; margin: 0 auto; }
.news-item {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 8px;
  border-bottom: 1px solid var(--color-line);
}
.news-item time { font-family: var(--font-en); color: var(--color-muted); font-size: 14px; }
.news-cat {
  justify-self: start;
  font-size: 11px; letter-spacing: .1em;
  border: 1px solid var(--color-line);
  padding: 3px 12px; color: var(--color-muted);
}
.news-item .ttl { font-size: 15px; }
.section-foot { text-align: center; margin-top: 48px; }

/* =========================================================
   TOP: Access
   ========================================================= */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.access-info { padding: 0; }
.access-info h3 { font-size: 20px; margin-bottom: 12px; }
.access-info .note { color: var(--color-muted); font-size: 14px; margin-top: 12px; }
.access-info .outline-table { margin: 0; }
.access-map { position: relative; min-height: 340px; background: var(--color-line); }
/* 会社概要ページ：地図の背後に色枠を覗かせる（他ページと同じ手法） */
.access-map::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 16%;
  bottom: -20px;
  left: -20px;
  right: 20%;
  background: linear-gradient(120deg, rgba(209, 39, 60, .14), rgba(209, 39, 60, .3));
}
.access-map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* =========================================================
   News カード（TOP 3枚 / 一覧グリッド）
   ========================================================= */
.news-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.news-grid  { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); max-width: 100%; }
.news-card { display: block; }
.news-card__thumb {
  aspect-ratio: 4 / 3; overflow: hidden; background: #bfe0e2; /* WFの水色プレースホルダ */
}
.news-card__thumb.is-empty { background: #bfe0e2; }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__thumb img { transform: scale(1.05); }
.news-card time { display: block; margin-top: 14px; font-family: var(--font-en); font-size: 13px; color: var(--color-muted); }
.news-card__ttl { margin-top: 4px; font-size: 15px; line-height: 1.6; transition: color .2s; }
.news-card:hover { opacity: 1; }
.news-card:hover .news-card__ttl { color: var(--color-accent); }

/* =========================================================
   実績 Works（6枚グリッド）
   ========================================================= */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
.works-item { aspect-ratio: 4 / 3; background: var(--color-line); overflow: hidden; }
.works-item img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   フィーチャーパネル（大きな写真を全面に敷き込み、テキストを隣に配置）
   参考サイト sametwo.co.jp の事業案内/会社概要セクションと同じ構成。
   About Us（TOP）／コンセプト各ブロックで使用。
   ========================================================= */
.feature-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: clamp(360px, 44vw, 540px);
}
.feature-panel + .feature-panel { margin-top: clamp(48px, 8vw, 96px); }
.feature-panel__media { position: relative; overflow: hidden; background: var(--color-line); }
.feature-panel__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.feature-panel__body {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 5vw, 64px);
}
.feature-panel__body h2 { font-size: clamp(18px, 2.3vw, 26px); line-height: 1.6; margin-bottom: 18px; word-break: keep-all; overflow-wrap: break-word; }
.feature-panel__body h2::before {
  content: ""; display: inline-block; width: 20px; height: 3px;
  background: var(--color-accent); vertical-align: middle; margin-right: 8px;
}
.feature-panel__body p { color: #333; margin-bottom: 28px; }
/* 交互配置（画像を左に） */
.feature-panel--reverse .feature-panel__media { order: 2; }
.feature-panel--reverse .feature-panel__body { order: 1; }

/* =========================================================
   写真コラージュ（Photo stack）
   参考サイト sametwo.co.jp の about-thumb.jpg と同じ「縦長の写真3枚を
   高さをずらして重ねる」構成。回転（rotate）は使わない＝すべて水平垂直の
   まっすぐな矩形のまま重ねる。
   ========================================================= */
.feature-panel__media--stack { overflow: visible; background: none; }
.photo-stack { position: relative; width: 100%; height: 100%; }
.photo-stack__item {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
  background: var(--color-line);
}
.photo-stack__item img { width: 100%; height: 100%; object-fit: cover; }
/* 縦長の写真を高さを揃えずにずらして重ねる（回転はしない） */
/* 3枚とも幅38%で統一。高さ（上下位置）だけをずらし、重なりは隣同士7%程度に抑える */
.photo-stack__item:nth-child(1) { inset: 8% 62% 4% 0%; z-index: 1; }
.photo-stack__item:nth-child(2) { inset: 20% 31% 18% 31%; z-index: 2; }
.photo-stack__item:nth-child(3) { inset: 0% 0% 26% 62%; z-index: 3; }
/* 1枚しか設定されていない場合は通常表示（重ね合わせ効果は無し） */
.photo-stack--single .photo-stack__item { inset: 0; box-shadow: none; }

/* =========================================================
   画像＋テキスト 横並び（コンセプトページ）
   2026-08-10：当初のワイヤーフレーム通りの構成（小さめの画像枠＋テキスト）に戻し、
   参考サイト sametwo.co.jp/works/ の `.works-img::after` と同じ「写真の背後に
   色付きの矩形を覗かせる」装飾を追加（実測：top32%・bottom/left -30px・幅は画像の約8割）
   ========================================================= */
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.media-row + .media-row { margin-top: clamp(48px, 8vw, 96px); }
.media-row__img { position: relative; aspect-ratio: 4 / 3; background: var(--color-line); }
.media-row__img img { width: 100%; height: 100%; object-fit: cover; }
.media-row__img::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 32%;
  bottom: -24px;
  left: -24px;
  right: 18%;
  background: linear-gradient(120deg, rgba(209, 39, 60, .14), rgba(209, 39, 60, .3));
}
.media-row__body h2 { font-size: clamp(20px, 2.6vw, 28px); line-height: 1.5; margin-bottom: 18px; }
.media-row__body p { color: #333; margin-bottom: 24px; }
/* 交互配置（画像を左に）。装飾の覗く向きも合わせて左右反転 */
.media-row--reverse .media-row__body { order: 2; }
.media-row--reverse .media-row__img { order: 1; }
.media-row--reverse .media-row__img::after { left: 18%; right: -24px; }
.media-row--about .media-row__body h2 { padding-left: 14px; border-left: 4px solid var(--color-accent); }

/* =========================================================
   Page (下層共通)
   ========================================================= */
.page-hero {
  padding: clamp(56px, 9vw, 96px) 0 clamp(40px, 6vw, 64px);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-line);
}
.page-hero .ja { display: block; font-size: 13px; letter-spacing: .2em; color: var(--color-red); font-weight: 700; }
.page-hero .en {
  display: block; margin-top: 6px; font-family: var(--font-en);
  font-size: clamp(30px, 6vw, 52px); font-weight: 700; letter-spacing: .04em; line-height: 1.1;
}

.breadcrumb { font-size: 12px; color: var(--color-muted); padding: 16px 0; }
.breadcrumb a:hover { color: var(--color-accent); }

.entry { max-width: 820px; margin: 0 auto; padding: clamp(56px,8vw,88px) var(--gutter); }
.entry p { margin-bottom: 1.6em; }
.entry h2 { font-size: 24px; margin: 2em 0 .8em; padding-left: 14px; border-left: 4px solid var(--color-accent); }
.entry h3 { font-size: 19px; margin: 1.6em 0 .6em; }
.entry img { margin: 1em 0; }

/* Company outline table */
.outline-table { width: 100%; border-collapse: collapse; max-width: 820px; margin: 0 auto; border: 1px solid var(--color-line); }
.outline-table th, .outline-table td { text-align: left; padding: 18px 20px; vertical-align: top; font-size: 15px; }
.outline-table th { width: 30%; font-weight: 600; color: #333; white-space: nowrap; border-right: 1px solid var(--color-line); }
/* 行ごとに白とグレーを交互にしてメリハリをつける */
.outline-table tr:nth-child(even) { background: #f4f4f4; }

/* News archive / single */
.archive-list { max-width: 820px; margin: 0 auto; }
.archive-item {
  display: grid; grid-template-columns: 140px 120px 1fr; gap: 20px;
  padding: 26px 8px; border-bottom: 1px solid var(--color-line); align-items: baseline;
}
.archive-item time { font-family: var(--font-en); color: var(--color-muted); font-size: 14px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--color-line); font-family: var(--font-en); font-size: 14px; }
.pagination .current { background: var(--color-text); color: #fff; border-color: var(--color-text); }

.single-entry { max-width: 760px; margin: 0 auto; padding: clamp(48px,7vw,80px) var(--gutter); }
.single-entry .meta { display: flex; gap: 16px; align-items: center; color: var(--color-muted); font-size: 14px; margin-bottom: 12px; }
.single-entry h1 {
  font-size: clamp(22px, 3.4vw, 32px); line-height: 1.5;
  margin-bottom: 28px; padding-bottom: 24px;
  border-bottom: 1px solid var(--color-line);
}
/* アイキャッチと本文の間に十分な余白を確保 */
.single-entry figure { margin: 0 0 clamp(32px, 5vw, 48px); }
.single-entry figure img { width: 100%; height: auto; }
.single-entry .entry-content { line-height: 2; }
.single-entry .entry-content > * + * { margin-top: 1.6em; }
.single-entry .entry-content h2 { font-size: 22px; margin-top: 2em; padding-left: 14px; border-left: 4px solid var(--color-accent); }
.single-entry .entry-content h3 { font-size: 18px; margin-top: 1.8em; }
.single-entry .entry-content img { margin: 1.2em 0; }
.back-link { text-align: center; margin-top: 56px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-navy-deep);
  color: #b9bfcd;
  padding: 64px 0 28px;
  border-top: 3px solid var(--color-red); /* ブランドの赤ライン */
}
.site-footer a:hover { color: var(--color-red-soft); opacity: 1; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand .logo { font-family: var(--font-en); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: .06em; }
.footer-brand .footer-logo-img { height: 46px; width: auto; max-width: 260px; object-fit: contain; }
.footer-brand address { font-style: normal; margin-top: 14px; font-size: 13px; line-height: 1.9; color: #9aa0ac; }
.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-family: var(--font-en); font-size: 13px; letter-spacing: .08em; }
.sns { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.sns__link {
  font-size: 13px; letter-spacing: .06em;
  border: 1px solid rgba(209, 39, 60, .55);
  padding: 7px 16px;
  transition: background .2s, color .2s;
}
.sns__link:hover { background: var(--color-red); color: #fff; opacity: 1; }

/* =========================================================
   公式LINE フローティングバナー
   （ヒアリング：公式LINEが問い合わせの受け皿のため常時表示）
   ========================================================= */
.line-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 16px;
  background: #06c755;           /* LINEブランドカラー */
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  transition: transform .2s, box-shadow .2s;
}
.line-float:hover {
  opacity: 1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .34);
}
.line-float__icon { display: inline-flex; }

@media (max-width: 720px) {
  .line-float {
    right: 14px;
    bottom: 14px;
    padding: 12px 18px 12px 14px;
    font-size: 12px;
  }
}
@media (max-width: 359px) {
  /* 極小画面のみアイコン表示（375px以上のスマホでは文言を出す） */
  .line-float { padding: 14px; gap: 0; }
  .line-float__text { display: none; }
}
.copyright { text-align: center; margin-top: 48px; font-family: var(--font-en); font-size: 12px; color: #7b8395; letter-spacing: .08em; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .news-cards, .news-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .access-grid, .feature-panel, .feature-panel--reverse, .media-row, .media-row--reverse { grid-template-columns: 1fr; }
  .feature-panel { min-height: auto; }
  .feature-panel__media { aspect-ratio: 4 / 3; }
  /* 横並びブロックはモバイルで画像を上に */
  .feature-panel__media, .media-row__img { order: -1; }
  .feature-panel--reverse .feature-panel__body,
  .feature-panel--reverse .feature-panel__media,
  .media-row--reverse .media-row__body,
  .media-row--reverse .media-row__img { order: 0; }
  .feature-panel--reverse .feature-panel__media,
  .media-row--reverse .media-row__img { order: -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }

  .nav-toggle { display: block; z-index: 120; }

  /* .global-nav の position:fixed は本来ビューポート基準で全画面になるはずだが、
     祖先の .site-header に backdrop-filter があると「containing block」がヘッダーの
     箱に変わってしまい、フルスクリーンにならず高さがヘッダー分に潰れる（CSS仕様上の既知の挙動）。
     モバイル時だけ無効化して回避する。デスクトップの見た目には影響しない。 */
  .site-header { backdrop-filter: none; }

  .global-nav {
    position: fixed; inset: 0;
    background: var(--color-navy);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
  }
  body.nav-open .global-nav { opacity: 1; visibility: visible; pointer-events: auto; }
  .global-nav ul { flex-direction: column; gap: 32px; text-align: center; }
  .global-nav a { font-size: 18px; }
  .global-nav a::after { display: none; }

  .archive-item { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 560px) {
  .news-cards, .news-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .outline-table th, .outline-table td { display: block; width: 100%; border-right: 0; }
  .outline-table th { border-bottom: 0; padding-bottom: 0; }
}
