/* ==============================
   ROOT / DESIGN TOKENS
============================== */
:root {
  --clr-bg:      #ffffff;
  --clr-surface: #ffffff;
  --clr-text:    #1a1a1a;
  --clr-muted:   #6b7280;
  --clr-border:  #e5e7eb;
  --clr-accent:  #d32f2f;
  --clr-accent-h:#b71c1c;

  --font-body:    'BIZ UDPGothic', sans-serif;
  --font-heading: 'Shippori Mincho B1', serif;

  --header-h: 70px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==============================
   RESET / BASE
============================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { font-size: 16px; scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ==============================
   HEADER
============================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ヘッダー内レイアウト：左端ロゴ ← 余白 → 右端ナビ+CTA */
.header-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding-inline-start: 2rem; /* ロゴ側の左余白のみ。右はCTAが端まで伸びる */
}

/* ── ロゴ（左端） ── */
.header-logo {
  display: flex;
  align-items: center;
}
.header-logo-link {
  display: flex;
  align-items: center;
}
/* カスタムロゴ画像 */
.header-logo-link img {
  height: 40px;
  width: auto;
  display: block;
}
/* テキストフォールバック（ロゴ未設定時） */
.logo-text-fallback {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1;
}
.logo-label {
  font-size: 0.62rem;
  color: var(--clr-muted);
  letter-spacing: 0.12em;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: 0.06em;
}

/* ── SEOタグライン（ロゴ右・PC のみ） ── */
.logo-tagline {
  display: none; /* モバイルでは非表示 */
}
@media (min-width: 901px) {
  .logo-tagline {
    display: block;
    font-size: 0.68rem;
    color: var(--clr-muted);
    letter-spacing: 0.06em;
    line-height: 1;
    padding-left: 1rem;
    margin-left: 1rem;
    border-left: 1px solid var(--clr-border);
    white-space: nowrap;
  }
}

/* ── ナビ＋CTA（右端） ── */
.header-right {
  display: flex;
  align-items: stretch;
}

.header-nav {
  display: flex;
  align-items: center;
}
.nav-list {
  display: flex;
  align-items: center;
}
.nav-list li a {
  display: block;
  padding: 0 0.85rem;
  font-size: 0.83rem;
  color: var(--clr-muted);
  height: 100%;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}
.nav-list li a:hover { color: var(--clr-accent); }
.nav-list li a:hover::after,
.nav-list .current-menu-item a::after { transform: scaleX(1); }
.nav-list .current-menu-item a { color: var(--clr-accent); }

/* ── CTAボタン：ヘッダー全高・右端フラッシュ ── */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 1.75rem;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  align-self: stretch;
  transition: background 0.2s;
  margin-inline-start: 1.25rem;
  /* margin-inline-end なし → 右端まで隙間なく伸びる */
}
.header-cta:hover { background: var(--clr-accent-h); }
.cta-icon { flex-shrink: 0; }

/* ── ハンバーガー ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-self: center;
  padding: 6px;
  margin-inline-end: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==============================
   モバイルドロワー
============================== */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.75rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-list li a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 0;
  font-size: 1rem;
  color: var(--clr-muted);
  border-bottom: 1px solid var(--clr-border);
  transition: color 0.2s, gap 0.25s var(--ease-out);
}
.mobile-nav-list li a:hover {
  color: var(--clr-accent);
  gap: 1.1rem;
}

/* SVG デコレーティブ・ブレット */
.mobile-nav-list li a::before {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  /* ひし形（diamond）SVG — アクセントカラーのアウトライン */
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='9' viewBox='0 0 9 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='1.5' y='1.5' width='6' height='6' rx='0.5' transform='rotate(45 4.5 4.5)' stroke='%23d32f2f' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.mobile-nav-list li a:hover::before { opacity: 1; }

.mobile-menu-footer {
  margin-top: 2.5rem;
  text-align: center; /* ← inline-flex の中央揃えはtext-alignで確実に効かせる */
}
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  background: var(--clr-accent);
  color: #fff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.mobile-cta:hover { background: var(--clr-accent-h); }

/* ==============================
   FV（ファーストビュー）
============================== */
.fv {
  position: relative;
  height: 100svh;
  overflow: hidden;
  background: #111;
}

/* 背景スライダー */
.fv-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.fv-slide-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 画像未設定時のプレースホルダー */
  background-color: #1a2133;
}

/* フェード時の暗幕オーバーレイ */
.fv-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

/* ── 左下：赤い縦長角丸ブロック ── */
.fv-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  background: var(--clr-accent);
  border-radius: 0 16px 0 0;   /* 右上だけ角丸・左下は端に合わせる */
  padding: 2.5rem 2.75rem 4rem 2.75rem;
  min-width: 280px;
}

.fv-line {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  /* GSAP初期状態 */
  opacity: 0;
  transform: translateY(32px);
}
.fv-line + .fv-line { margin-top: 0.1em; }

/* ── 右下：スクロールインジケーター ── */
.fv-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}
.fv-scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.fv-scroll-bar {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}
.fv-scroll-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  animation: scrollBar 2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollBar {
  0%   { transform: scaleX(0); opacity: 1; }
  50%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* SP */
@media (max-width: 600px) {
  .fv-copy {
    padding: 2rem 2rem 3.5rem;
    min-width: 0;
    width: calc(100% - 2rem); /* 右側に少し余白 */
    border-radius: 0 12px 0 0;
  }
  .fv-line {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  .fv-scroll { right: 1.25rem; bottom: 1.5rem; }
}

/* ==============================
   事業概要セクション
   （containerなし・セクション個別幅）
============================== */
/* ==============================
   ABOUT セクション
============================== */
.about-section {
  padding: 6rem 0 8rem;
  background: #fff;
  position: relative;
  overflow: hidden;
}
/* 透かし文字 */
.about-section::before {
  content: 'ABOUT';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(7rem, 16vw, 15rem);
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.045;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ABOUTセクション下端：斜めカット */
.about-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--clr-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 1;
}
/* 使っていた border-bottom を疑似要素で代替するため削除 */
.about-section-dummy {
  border-bottom: 1px solid var(--clr-border);
}
.about-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-label { margin-bottom: 1rem; }
.about-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--clr-text);
  margin-bottom: 1.5rem;
}
.about-body {
  font-size: 0.9rem;
  color: var(--clr-muted);
  line-height: 2;
  margin-bottom: 2rem;
}
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--clr-accent);
  border-bottom: 1.5px solid var(--clr-accent);
  padding-bottom: 0.2rem;
  transition: gap 0.25s var(--ease-out);
}
.about-link:hover { gap: 0.85rem; }

/* 数字カード */
.about-numbers {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.about-num-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.about-num-item:first-child { border-top: 1px solid var(--clr-border); }
.num-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
}
.num-value small { font-size: 1rem; margin-left: 0.2em; }
.num-label { font-size: 0.82rem; color: var(--clr-muted); }

@media (max-width: 800px) {
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 600px) {
  .about-section { padding: 4rem 0; }
  .about-inner { padding-inline: 1.25rem; }
}

/* ==============================
   ギャラリースライダー
============================== */
.gallery-section {
  overflow: hidden;
  background: #f5f5f5;
  padding: 0;
  line-height: 0;
}
.gallery-swiper {
  width: 100%;
  pointer-events: none;
  user-select: none;
}
/* linear で一定速度を保証 */
.gallery-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}
/* desktop: 固定幅 */
.gallery-slide {
  width: 480px;
}
.gallery-slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}
@media (max-width: 720px) {
  /* slidesPerView: 2.5 を JS で指定しているので幅指定不要 */
  .gallery-slide img { height: 200px; }
}

/* ==============================
   選ばれる理由セクション（白ベース）
============================== */
.reason-section {
  padding: 6rem 0;
  background: #fff;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 48px,
    rgba(211, 47, 47, 0.028) 48px,
    rgba(211, 47, 47, 0.028) 49px
  );
}
.reason-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}
.section-title-light {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
}
.reason-section .section-head { margin-bottom: 3.5rem; }
.reason-section .section-label { color: var(--clr-accent); }

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.reason-item {
  position: relative;
  padding: 2.5rem 2rem 2.5rem;
  border: 1px solid var(--clr-border);
  border-top: 3px solid var(--clr-accent); /* 赤いトップアクセント */
  border-radius: 0 0 8px 8px;
  background: #fff;
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  overflow: hidden;
}
.reason-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}
/* 背景に薄い大数字 */
.reason-item::before {
  content: attr(data-num);
  position: absolute;
  bottom: -0.2em;
  right: 0.5rem;
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.reason-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--clr-accent);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.reason-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}
.reason-desc {
  font-size: 0.83rem;
  color: var(--clr-muted);
  line-height: 1.9;
}

@media (max-width: 800px) {
  .reason-grid { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .reason-section { padding: 4rem 0; }
  .reason-inner { padding-inline: 1.25rem; }
}

/* タブセクション：PC・スマホ両方で表示 */
.tab-section { display: block; }

@media (max-width: 720px) {
  .col-grid { grid-template-columns: 1fr; }
}

/* ==============================
   タブセクション
============================== */
.tab-section {
  padding: 5rem 0 6rem;
  background: var(--clr-accent);
  position: relative;
  overflow: hidden;
}
/* 透かし文字 */
.tab-section::before {
  content: 'Topics';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 800;
  color: #fff;
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
.tab-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
  position: relative;
  z-index: 1;
}

/* タブナビ */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(255,255,255,0.3);
  margin-bottom: 2.5rem;
}
.tab-btn {
  padding: 0.85rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.04em;
}
.tab-btn:hover { color: #fff; }
.tab-btn.is-active {
  color: #fff;
  border-bottom-color: #fff;
}

/* タブパネル */
.tab-pane { animation: tabFadeIn 0.3s var(--ease-out); }
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* お知らせリスト */
.news-list { display: flex; flex-direction: column; }
.news-item { border-bottom: 1px solid rgba(255,255,255,0.2); }
.news-item:first-child { border-top: 1px solid rgba(255,255,255,0.2); }
.news-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0.25rem;
  color: #fff;
  transition: opacity 0.2s;
}
.news-link:hover { opacity: 0.75; }
.news-title {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #fff;
}

/* コラム・施工事例グリッド */
.col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.col-card {
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.col-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.col-card-link { display: block; }
.col-thumb { aspect-ratio: 4/3; overflow: hidden; }
.col-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.col-card:hover .col-thumb img { transform: scale(1.04); }
.col-body { padding: 0.85rem 1rem 1rem; }
.col-body h3 { font-size: 0.85rem; font-weight: 700; line-height: 1.6; margin-top: 0.3rem; color: var(--clr-text); }
.col-card:hover .col-body h3 { color: var(--clr-accent); }

.tab-empty {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
  text-align: center;
}

/* もっと見るボタン */
.tab-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}
.tab-more-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8em 2em 0.8em 2.25em;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, color 0.3s;
}
/* 背景が左からスライドイン */
.tab-more-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.tab-more-btn:hover::before { transform: translateX(0); }
.tab-more-btn:hover {
  border-color: #fff;
  color: var(--clr-accent);
}
.tab-more-btn span,
.tab-more-btn svg { position: relative; z-index: 1; }
/* 矢印アイコン：ホバーで右にスライド */
.tab-more-arrow {
  transition: transform 0.3s var(--ease-out);
}
.tab-more-btn:hover .tab-more-arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .col-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tab-section { padding: 3.5rem 0 4.5rem; }
  .tab-inner { padding-inline: 1.25rem; }
  .tab-btn { padding: 0.75rem 1rem; font-size: 0.82rem; }
  .col-grid { gap: 1rem; }
  /* タブナビをスマホで均等幅・余白なし */
  .tab-nav { width: 100%; }
  .tab-btn { flex: 1; text-align: center; }
}

/* ==============================
   フッター
============================== */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 3.5rem 2rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem 4rem;
  align-items: start;
}

/* ブランド：ロゴ＋タグライン＋住所 */
.footer-brand .logo-text-fallback { display: flex; align-items: baseline; gap: 0.3rem; }
.footer-brand .logo-label { font-size: 0.62rem; color: rgba(255,255,255,0.4); letter-spacing: 0.12em; }
.footer-brand .logo-name  { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: #fff; }
.footer-tagline { font-size: 0.75rem; margin-top: 0.6rem; color: rgba(255,255,255,0.4); letter-spacing: 0.04em; }
.footer-address {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* ナビ */
.footer-nav-heading {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.footer-nav-list { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-nav-list a { font-size: 0.82rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-nav-list a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 1.25rem 1rem;
}
.footer-copy { font-size: 0.72rem; color: rgba(255,255,255,0.3); }

/* ==============================
   ページトップへ戻るボタン
============================== */
.pagetop {
  position: fixed;
  right: 1.75rem;
  bottom: 2rem;
  z-index: 900;

  width: 48px;
  height: 48px;
  background: var(--clr-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  /* 初期状態：非表示・右下から沈む */
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out),
              transform 0.35s var(--ease-out),
              background 0.2s;
}
/* 工業感：左上の角だけ大きく面取り */
.pagetop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 10px 0 0;
  border-color: rgba(255,255,255,0.2) transparent transparent transparent;
}
.pagetop.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.pagetop:hover {
  background: var(--clr-accent-h);
}
/* ホバーで矢印が少し上へ */
.pagetop:hover svg {
  transform: translateY(-2px);
  transition: transform 0.25s var(--ease-out);
}
.pagetop svg {
  transition: transform 0.25s var(--ease-out);
}

@media (max-width: 600px) {
  .pagetop {
    right: 1rem;
    bottom: 1.25rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

.business-section {
  padding: 5rem 0 6rem;
  background: var(--clr-bg);
}
/* このセクション専用の幅 */
.business-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ── 見出し：左揃え ── */
.section-head { margin-bottom: 2.5rem; }
.section-lead {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--clr-muted);
  margin-bottom: 0.3rem;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
}

/* ── カードグリッド（デスクトップ：2列） ── */
@media (min-width: 720px) {
  .business-swiper.swiper { overflow: visible; }
  .business-swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    transform: none !important;
    width: auto !important;
  }
  .business-swiper .swiper-slide   { width: auto !important; margin: 0 !important; }
  .business-swiper .swiper-pagination { display: none; }
}

/* ── カード ── */
.business-card         { background: transparent; }
.business-card-link    { display: flex; flex-direction: column; }

/* 画像エリア：横長 16:9 */
.business-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--clr-border);
}
.business-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.business-card:hover .business-card-image img { transform: scale(1.04); }

/* テキストエリア（画像の下・背景なし） */
.business-card-body {
  padding: 1rem 0.1rem 0;
  display: flex;
  flex-direction: column;
}
.card-category {
  font-size: 0.7rem;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.4;
  margin-bottom: 0.6rem;
}
.card-desc {
  font-size: 0.855rem;
  color: var(--clr-muted);
  line-height: 1.9;
  margin-bottom: 1.1rem;
}

/* 「詳しく見る」ボタン：角丸の四角 */
.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--clr-accent);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-accent);
  transition: background 0.25s, color 0.25s;
}
.business-card:hover .card-arrow {
  background: var(--clr-accent);
  color: #fff;
}

/* Swiper ページネーション */
.business-swiper { padding-bottom: 2.5rem; }
.swiper-pagination-bullet        { background: #d1d5db; opacity: 1; width: 8px; height: 8px; }
.swiper-pagination-bullet-active { background: var(--clr-accent); }

/* ==============================
   GSAP アニメーション 初期状態
============================== */
.js-fade-up               { opacity: 0; transform: translateY(24px); }
.js-stagger .swiper-slide { opacity: 0; transform: translateY(24px); }

/* ==============================
   RESPONSIVE
============================== */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hamburger  { display: flex; }
  .header-inner { padding-inline: 1.25rem; }
}
@media (max-width: 720px) {
  .business-section { padding: 3.5rem 0 4.5rem; }
  .business-inner { padding-inline: 1.25rem; }
}
@media (max-width: 600px) {
  .section-head { margin-bottom: 2rem; }
}

/* ==============================
   採用バナー
============================== */
.recruit-banner {
  background: #fff;
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #ebebeb;
}
/* 斜めストライプ装飾（薄い赤） */
.recruit-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 48px,
    rgba(211, 47, 47, 0.03) 48px,
    rgba(211, 47, 47, 0.03) 49px
  );
  pointer-events: none;
}
/* 右下の大きな赤い斜め帯 */
.recruit-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: var(--clr-accent);
  opacity: 0.04;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
/* 透かし文字 */
.recruit-banner .recruit-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 14vw, 13rem);
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.04;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.recruit-banner-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.recruit-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}
.recruit-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #111;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.recruit-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}
.recruit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.9em 2.5em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.recruit-btn:hover {
  background: var(--clr-accent-h);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .recruit-banner { padding: 4.5rem 1.25rem; }
  /* 透かし文字：SP非表示 */
  .about-section::before,
  .tab-section::before,
  .recruit-banner .recruit-watermark { display: none; }
}

/* ==============================
   共通：ページヒーロー
============================== */
.page-hero {
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 3rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ebebeb;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--header-h);
  width: 4px;
  height: calc(100% - var(--header-h));
  background: var(--clr-accent);
}
.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.page-hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
@media (max-width: 600px) {
  .page-hero-inner { padding-inline: 1.25rem; }
}

/* ==============================
   業務内容ページ (page-service.php)
============================== */

/* イントロ */
.service-intro {
  background: #fff;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid #ebebeb;
}
.service-intro-inner {
  max-width: 800px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.service-intro-lead {
  font-size: 1.05rem;
  line-height: 2;
  color: #444;
  text-align: center;
}

/* サービスブロック共通 */
.service-block {
  padding: 7rem 0;
  background: #fff;
  position: relative;
  /* overflow: hidden を外さないと sticky が効かない */
}
.service-block--alt {
  background: #fafafa;
}
.service-block-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 2rem;
}

/* 番号＋タイトルヘッダー */
.service-block-header {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}
.service-block-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--clr-accent);
}
.service-num {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.12;
  line-height: 1;
  flex-shrink: 0;
}
.service-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.35rem;
}
.service-block-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.service-block-sub {
  font-size: 0.6em;
  color: #888;
  font-weight: 400;
  margin-left: 0.5rem;
}

/* 本文レイアウト */
.service-block-body {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: start;
}
.service-block-body--rev {
  grid-template-columns: 400px 1fr;
}
.service-block-body--rev .service-block-text { order: 2; }
.service-block-body--rev .service-block-image { order: 1; }

.service-desc {
  font-size: 0.95rem;
  line-height: 1.95;
  color: #444;
  margin-bottom: 2.5rem;
}
.service-detail-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  padding: 0.5rem 0.75rem;
  background: #f5f5f5;
  border-left: 3px solid var(--clr-accent);
  margin-bottom: 1rem;
  margin-top: 2rem;
}

/* 対応内容リスト */
.service-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.7;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
}

/* お悩みリスト */
.service-trouble-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.service-trouble-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: #444;
  line-height: 1.7;
}
.trouble-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 0.1em;
}

/* 画像：スクロール追従 */
.service-block-image {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
  align-self: start; /* grid内でstickyを有効にするために必要 */
}
.service-img-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #bbb;
  font-size: 0.78rem;
  border: 2px dashed #e0e0e0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0, transparent 8px,
    rgba(0,0,0,0.02) 8px, rgba(0,0,0,0.02) 9px
  );
}

/* 対応フロー */
.flow-section {
  padding: 7rem 0;
  background: #fff;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 48px,
    rgba(211, 47, 47, 0.028) 48px,
    rgba(211, 47, 47, 0.028) 49px
  );
}
/* 透かし文字 */
.flow-section::before {
  content: 'Flow';
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .flow-section::before { display: none; }
}
.flow-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.flow-list {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.flow-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2.5rem;
}
/* 縦の接続線 */
.flow-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--clr-accent) 0, var(--clr-accent) 6px,
    transparent 6px, transparent 12px
  );
  opacity: 0.3;
}
.flow-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.flow-body { padding-top: 0.6rem; }
.flow-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}
.flow-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.85;
}

/* CTA */
.service-cta {
  background: var(--clr-accent);
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 48px,
    rgba(255,255,255,0.04) 48px, rgba(255,255,255,0.04) 49px
  );
  pointer-events: none;
}
.service-cta-inner { position: relative; z-index: 1; }
.service-cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.service-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.service-cta-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.85;
  margin-bottom: 2.5rem;
}
.service-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--clr-accent);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.9em 2.5em;
  border-radius: 4px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.service-cta-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* レスポンシブ */
@media (max-width: 900px) {
  .service-block-body,
  .service-block-body--rev {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .service-block-body--rev .service-block-text { order: 1; }
  .service-block-body--rev .service-block-image { order: 2; }
  /* 1カラムになったら追従不要 */
  .service-block-image { position: static; top: auto; }
}
@media (max-width: 600px) {
  .service-block { padding: 4.5rem 0; }
  .service-block-inner,
  .flow-inner { padding-inline: 1.25rem; }
  .service-block-header { gap: 1rem; margin-bottom: 2rem; }
  .service-num { font-size: 3.5rem; }
  .flow-section { padding: 4.5rem 0; }
}

/* ==============================
   会社概要ページ (page-about.php)
============================== */

/* ── 代表挨拶 ── */
.greeting-section {
  padding: 6rem 0;
  background: #fff;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px,
    transparent 48px,
    rgba(211, 47, 47, 0.025) 48px,
    rgba(211, 47, 47, 0.025) 49px
  );
}
/* 右上の太い赤い斜めライン装飾 */
.greeting-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border: 28px solid var(--clr-accent);
  opacity: 0.06;
  transform: rotate(45deg);
  pointer-events: none;
}
/* 左下の細い斜めライン */
.greeting-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 160px;
  height: 160px;
  border: 16px solid var(--clr-accent);
  opacity: 0.05;
  transform: rotate(45deg);
  pointer-events: none;
}
.greeting-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}
.greeting-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #111;
  margin: 0.4rem 0 1.75rem;
}
.greeting-body p {
  font-size: 0.95rem;
  line-height: 2;
  color: #444;
  margin-bottom: 1.2rem;
}
.greeting-sign {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.8;
  text-align: right;
}
.greeting-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}
/* 写真フレーム */
.greeting-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid #ebebeb;
}
.greeting-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.greeting-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: #bbb;
  font-size: 0.8rem;
}

/* ── 会社概要テーブル ── */
.company-section {
  padding: 6rem 0;
  background: #fafafa;
}
.company-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.company-table tr {
  border-bottom: 1px solid #e8e8e8;
}
.company-table tr:first-child {
  border-top: 1px solid #e8e8e8;
}
.company-table th {
  width: 200px;
  padding: 1.1rem 1.5rem 1.1rem 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: 0.04em;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}
.company-table td {
  padding: 1.1rem 0;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.7;
}
.company-table td a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.company-table td a:hover { color: var(--clr-accent); }

/* ── Google Maps ── */
.map-section {
  padding: 6rem 0 0;
  background: #fff;
}
.map-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: 2rem;
  margin-bottom: 2.5rem;
}
.map-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.5rem;
}
.map-address svg { color: var(--clr-accent); flex-shrink: 0; }
.map-embed {
  width: 100%;
  aspect-ratio: 16 / 6;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .greeting-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .greeting-photo { order: -1; }
  .greeting-photo-frame {
    aspect-ratio: 3 / 2;
    max-width: 360px;
    margin: 0 auto;
  }
  .map-embed { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .greeting-section,
  .company-section,
  .map-section { padding: 4rem 0; }
  .greeting-inner,
  .company-inner,
  .map-inner { padding-inline: 1.25rem; }
  .company-table th { width: 130px; font-size: 0.78rem; }
  .company-table td { font-size: 0.85rem; }
  .map-embed { aspect-ratio: 1 / 1; }
}

/* ==============================
   採用ページ (page-recruit.php)
============================== */

/* 採用メッセージ */
.rc-message {
  padding: 7rem 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.rc-message::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 48px,
    rgba(211,47,47,0.025) 48px, rgba(211,47,47,0.025) 49px
  );
  pointer-events: none;
}
/* 右下の大きな斜め帯 */
.rc-message::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 40%; height: 100%;
  background: var(--clr-accent);
  opacity: 0.03;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
  pointer-events: none;
}
.rc-message-inner {
  max-width: 860px;
  margin: 0 auto;
  padding-inline: 2rem;
  position: relative;
  z-index: 1;
}
.rc-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  border-bottom: 2px solid var(--clr-accent);
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}
.rc-message-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #111;
  line-height: 1.45;
  margin-bottom: 2rem;
}
.rc-message-body {
  font-size: 1rem;
  line-height: 2;
  color: #444;
  max-width: 680px;
}

/* 仕事の魅力 */
.rc-appeal {
  padding: 6rem 0;
  background: #fafafa;
}
.rc-appeal-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.rc-appeal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.rc-appeal-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-top: 3px solid var(--clr-accent);
  border-radius: 0 0 8px 8px;
  padding: 2rem 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.rc-appeal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.07);
}
.rc-appeal-icon {
  width: 52px;
  height: 52px;
  background: #fff5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  margin-bottom: 1.25rem;
}
.rc-appeal-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.rc-appeal-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.85;
}

/* 募集職種 */
.rc-jobs {
  padding: 6rem 0;
  background: #fff;
}
.rc-jobs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.rc-job-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.rc-job-card {
  position: relative;
  padding: 2.5rem 2rem;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rc-job-card:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 8px 28px rgba(211,47,47,0.08);
}
.rc-job-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.07;
  line-height: 1;
  pointer-events: none;
}
.rc-job-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.rc-job-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  line-height: 1.45;
  margin-bottom: 1rem;
}
.rc-job-title span { font-size: 0.75em; color: #888; font-weight: 400; }
.rc-job-desc {
  font-size: 0.875rem;
  color: #555;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.rc-job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
}
.rc-job-tags li {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-accent);
  border: 1px solid var(--clr-accent);
  padding: 0.2em 0.75em;
  border-radius: 100px;
}

/* 募集要項 */
.rc-requirements {
  padding: 6rem 0;
  background: #fafafa;
}
.rc-requirements-inner {
  max-width: 900px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.rc-table small {
  font-size: 0.78rem;
  color: #888;
}

/* 一日の流れ */
.rc-day {
  padding: 6rem 0;
  background: #fff;
  position: relative;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 48px,
    rgba(211,47,47,0.025) 48px, rgba(211,47,47,0.025) 49px
  );
}
.rc-day::before {
  content: 'Day';
  position: absolute;
  right: -1rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
@media (max-width: 720px) { .rc-day::before { display: none; } }
.rc-day-inner {
  max-width: 700px;
  margin: 0 auto;
  padding-inline: 2rem;
  position: relative;
  z-index: 1;
}
.rc-timeline {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
  position: relative;
}
/* 縦の軸線 */
.rc-timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-accent), rgba(211,47,47,0.1));
}
.rc-tl-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  position: relative;
}
.rc-tl-time {
  width: 60px;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-accent);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
  text-align: right;
}
/* 軸上のドット */
.rc-tl-item::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clr-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--clr-accent);
}
.rc-tl-body {
  padding-left: 1rem;
}
.rc-tl-body h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.4rem;
}
.rc-tl-body p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.8;
}

/* 応募CTA */
.rc-apply {
  padding: 7rem 2rem;
  background: var(--clr-accent);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rc-apply::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 48px,
    rgba(255,255,255,0.04) 48px, rgba(255,255,255,0.04) 49px
  );
  pointer-events: none;
}
.rc-apply-inner { position: relative; z-index: 1; }
.rc-apply-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}
.rc-apply-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.rc-apply-desc {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .rc-appeal-grid { grid-template-columns: 1fr; }
  .rc-job-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rc-message, .rc-appeal, .rc-jobs,
  .rc-requirements, .rc-day { padding: 4.5rem 0; }
  .rc-message-inner, .rc-appeal-inner, .rc-jobs-inner,
  .rc-requirements-inner, .rc-day-inner { padding-inline: 1.25rem; }
  .rc-timeline::before { left: 52px; }
  .rc-tl-item::before { left: 48px; }
  .rc-tl-time { width: 44px; font-size: 0.72rem; }
}

/* ==============================
   お問い合わせページ (page-contact.php)
============================== */
.contact-section {
  padding: 5rem 0 7rem;
  background: #fafafa;
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.contact-lead {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 3rem;
  text-align: center;
}
.contact-form-wrap {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 8px;
  padding: 3rem;
}

/* ── CF7 フォーム要素リセット＆スタイリング ── */

/* CF7 が出力する余計な p タグを無効化 */
.wpcf7 form p { margin: 0; }
.wpcf7 br { display: none; }

/* フィールドラッパー */
.cf7-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}
.cf7-field:last-of-type { margin-bottom: 0; }

/* ラベル */
.cf7-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
}
.cf7-required {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--clr-accent);
  color: #fff;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.cf7-optional {
  font-size: 0.65rem;
  font-weight: 700;
  background: #e0e0e0;
  color: #666;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* テキスト・tel・email 入力 */
.cf7-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.cf7-input:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}
.cf7-input::placeholder { color: #bbb; }

/* テキストエリア */
.cf7-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: #333;
  background: #fff;
  resize: vertical;
  min-height: 160px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cf7-textarea:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}
.cf7-textarea::placeholder { color: #bbb; }

/* 送信ボタン */
.cf7-submit {
  margin-top: 2rem;
}
.cf7-submit .wpcf7-submit {
  display: block;
  width: 100%;
}
.cf7-btn {
  display: block;
  width: 100%;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 1em 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: background 0.2s, transform 0.2s;
}
.cf7-btn:hover {
  background: var(--clr-accent-h);
  transform: translateY(-2px);
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  font-size: 0.75rem;
  color: var(--clr-accent);
  margin-top: 0.3rem;
  display: block;
}
.wpcf7-not-valid .cf7-input,
.wpcf7-not-valid .cf7-textarea {
  border-color: var(--clr-accent);
}

/* 送信結果メッセージ */
.wpcf7-response-output {
  margin-top: 1.5rem !important;
  padding: 0.85rem 1.25rem !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
  border: none !important;
}
.wpcf7-mail-sent-ok {
  background: #e8f5e9;
  color: #2e7d32;
}
.wpcf7-mail-sent-ng,
.wpcf7-spam-blocked,
.wpcf7-validation-errors {
  background: #fff5f5;
  color: var(--clr-accent);
}

@media (max-width: 600px) {
  .contact-inner { padding-inline: 1.25rem; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
}

/* ==============================
   404ページ
============================== */
.notfound-page {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: calc(var(--header-h) + 2rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.notfound-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -55deg,
    transparent 0px, transparent 48px,
    rgba(211,47,47,0.025) 48px, rgba(211,47,47,0.025) 49px
  );
  pointer-events: none;
}
.notfound-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.notfound-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 800;
  color: var(--clr-accent);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: -0.2em;
  user-select: none;
}
.notfound-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
}
.notfound-desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.notfound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--clr-accent);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.85em 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.notfound-btn:hover {
  background: var(--clr-accent-h);
  transform: translateY(-2px);
}

/* ==============================
   記事一覧ページ (archive.php)
============================== */

/* ヒーロー */
.archive-hero {
  padding-top: calc(var(--header-h) + 3.5rem);
  padding-bottom: 3.5rem;
  background: #fff;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #ebebeb;
}
.archive-hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--header-h);
  width: 4px;
  height: calc(100% - var(--header-h));
  background: var(--clr-accent);
}
.archive-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 2rem;
}
.archive-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: 0.6rem;
}
.archive-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.archive-desc {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* ボディ */
.archive-body {
  background: #fafafa;
  padding: 4rem 0 6rem;
}
.archive-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 2rem;
}

/* グリッド */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 3.5rem;
}

/* カード */
.archive-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ebebeb;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.archive-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.08);
}
.archive-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.archive-card-thumb {
  aspect-ratio: 40 / 21;
  overflow: hidden;
  background: #f0f0f0;
}
.archive-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.archive-card:hover .archive-card-thumb img { transform: scale(1.04); }
.archive-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.archive-card-body {
  padding: 1.1rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.archive-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-accent);
}
.archive-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
  color: #111;
  flex: 1;
}
.archive-card:hover .archive-card-title { color: var(--clr-accent); }
.archive-card-date {
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.05em;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ページネーション */
.archive-pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.archive-pagination .page-numbers:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}
.archive-pagination .page-numbers.current {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}
.archive-pagination .page-numbers.dots {
  border-color: transparent;
  pointer-events: none;
}

/* 記事なし */
.archive-empty {
  font-size: 0.9rem;
  color: #999;
  text-align: center;
  padding: 4rem 0;
}

/* レスポンシブ */
@media (max-width: 900px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 600px) {
  .archive-grid { grid-template-columns: 1fr; gap: 1rem; }
  .archive-hero-inner,
  .archive-inner { padding-inline: 1.25rem; }
  .archive-body { padding: 2.5rem 0 4rem; }
}

/* ==============================
   記事詳細ページ (single.php)
============================== */

/* 読了プログレスバー */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--clr-accent);
  z-index: 9999;
  transition: width 0.08s linear;
}

/* ─── ポストヒーロー ─── */
.post-hero {
  padding-top: calc(var(--header-h) + 4rem);
  background: #fff;
  position: relative;
  overflow: hidden;
}
/* 左上の大きな赤い装飾ライン */
.post-hero::before {
  content: '';
  position: absolute;
  top: var(--header-h);
  left: 0;
  width: 4px;
  height: calc(100% - var(--header-h));
  background: var(--clr-accent);
}

.post-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 2.5rem;
}

.post-meta-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.post-cat-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
  padding: 0.25em 0.85em;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.post-cat-label:hover {
  background: var(--clr-accent);
  color: #fff;
}

.post-date {
  font-size: 0.78rem;
  color: #aaa;
  letter-spacing: 0.06em;
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.45;
  color: #111;
  margin-bottom: 2.5rem;
}

/* タイトル下の赤いアクセントライン */
.post-hero-inner::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--clr-accent);
  margin-bottom: 2.5rem;
}

/* アイキャッチ */
.post-hero-thumb {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 2.5rem;
  padding-bottom: 3.5rem;
}
.post-hero-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* ─── 本文エリア ─── */
.post-body-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3.5rem 2.5rem 5rem;
}

.post-content {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.95;
  color: #333;
}

/* h2 */
.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin: 3rem 0 1.25rem;
  padding: 0.75rem 1.25rem;
  background: #fafafa;
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 4px 4px 0;
  line-height: 1.55;
}

/* h3 */
.post-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8e8e8;
  position: relative;
}
.post-content h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 2.5rem;
  height: 2px;
  background: var(--clr-accent);
}

/* p */
.post-content p { margin-bottom: 1.6rem; }

/* ul / ol */
.post-content ul,
.post-content ol {
  margin-bottom: 1.6rem;
  padding-left: 1.25rem;
}
.post-content ul { list-style: none; padding-left: 0; }
.post-content ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}
.post-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  background: var(--clr-accent);
  border-radius: 50%;
}
.post-content ol li { margin-bottom: 0.6rem; }

/* blockquote */
.post-content blockquote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem 1.5rem 2rem;
  background: #fff5f5;
  border-left: 4px solid var(--clr-accent);
  border-radius: 0 8px 8px 0;
  color: #555;
  position: relative;
}
.post-content blockquote::before {
  content: '\201C';
  font-size: 5rem;
  color: var(--clr-accent);
  opacity: 0.12;
  position: absolute;
  top: -0.75rem;
  left: 0.5rem;
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* img */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
  display: block;
}

/* a */
.post-content a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── 記事フッター ─── */
.post-footer {
  border-top: 1px solid #ebebeb;
  background: #fafafa;
  padding: 3rem 0 5rem;
}
.post-footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding-inline: 2.5rem;
}

/* カテゴリタグ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.post-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #777;
  border: 1px solid #ddd;
  padding: 0.3em 1em;
  border-radius: 100px;
  transition: border-color 0.2s, color 0.2s;
}
.post-tag:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* 前後ナビ */
.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.post-nav-item:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 6px 20px rgba(211, 47, 47, 0.08);
  transform: translateY(-3px);
}
.post-nav-empty {
  /* 片側だけ記事がない場合のスペーサー */
}
.post-nav-next { text-align: right; }
.post-nav-dir {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--clr-accent);
  text-transform: uppercase;
}
.post-nav-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 一覧へ戻る */
.post-back { text-align: center; }
.post-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  border: 1px solid #ddd;
  padding: 0.65em 1.75em;
  border-radius: 100px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.post-back-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ─── レスポンシブ ─── */
@media (max-width: 720px) {
  .post-hero-inner,
  .post-hero-thumb,
  .post-body-wrap,
  .post-footer-inner {
    padding-inline: 1.25rem;
  }
  .post-nav-grid {
    grid-template-columns: 1fr;
  }
  .post-nav-next { text-align: left; }
}

/* ==============================
   RIGHT SIDE FLOATING NAV
============================== */
.side-nav {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}

.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── 各リンク：アイコンのみ表示、ラベルは absolute で左にスライド ── */
.side-nav-link {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  text-decoration: none;
}

/* ── アイコン：常に右端・z-index 高めで手前に ── */
.side-nav-icon {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: #666;
  z-index: 1;
  box-shadow: -2px 2px 8px rgba(0,0,0,.08);
  transition: background 0.26s var(--ease-out), color 0.26s var(--ease-out), border-color 0.26s var(--ease-out);
}

/* ── ラベル：アイコンの裏から左へスライドアウト ── */
.side-nav-label {
  position: absolute;
  right: 44px;          /* アイコン左端に揃える */
  top: 0;
  height: 44px;
  line-height: 44px;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--clr-accent);
  padding: 0 1em;
  border-radius: 4px 0 0 4px;
  z-index: 0;
  /* 初期：自身の幅だけ右へ → アイコンの裏に隠れる */
  transform: translateX(100%);
  transition: transform 0.34s var(--ease-out);
  pointer-events: none;
}

/* ── ホバー ── */
.side-nav-link:hover .side-nav-icon {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  box-shadow: -3px 3px 14px rgba(211,47,47,.3);
}

.side-nav-link:hover .side-nav-label {
  transform: translateX(0);
  pointer-events: auto;
}

/* ── 現在ページ ── */
.side-nav-link.is-current .side-nav-icon {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

/* ── SP では非表示 ── */
@media (max-width: 1024px) {
  .side-nav { display: none; }
}
