/*
Theme Name: TOPLUS Corporate
Theme URI: https://www.toplus-mie.co.jp/
Author: 株式会社サーブ
Author URI: https://servenet.co.jp/
Description: 株式会社トプラス コーポレートサイト専用テーマ。明朝体ベースの縦の流れに、白黒ロゴの透かしを背景モチーフとして用いたデザイン。トップ／会社紹介／事業紹介／採用情報／お知らせに対応します。
Version: 1.9.7
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Proprietary
License URI: https://servenet.co.jp/
Text Domain: toplus
Tags: business, custom-logo, custom-menu, featured-images, translation-ready, right-sidebar

デザイン実装：株式会社サーブ
このテーマのレイアウトCSSは css/common.css / css/top.css / css/subpages.css に分割されています。
本ファイルには WordPress 必須のテーマ情報と、WordPress 固有要素のスタイルのみを記述しています。
*/

/* ============================================================
   WordPress 必須クラス
============================================================ */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 12px 20px;
  background: #fff;
  color: #141929;
  z-index: 10000;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10001;
  background: #fff;
  color: #141929;
  padding: 12px 20px;
  font-size: 0.9rem;
}
.skip-link:focus { top: 16px; }

/* 管理バー表示時のヘッダー位置調整 */
body.admin-bar .l-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .l-header { top: 46px; }
}

/* エディタ整列クラス */
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.alignwide, .alignfull { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text,
.wp-block-image figcaption {
  font-size: 0.82rem;
  color: #6b7280;
  letter-spacing: 0.06em;
  margin-top: 10px;
  text-align: center;
}
.wp-block-image img { display: block; height: auto; }
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }

/* 記事本文内の WordPress 標準ブロック（お知らせ詳細） */
.p-nd-single__body ul,
.p-nd-single__body ol {
  list-style: revert;
  padding-left: 1.6em;
  margin: 0 0 1.8em;
}
.p-nd-single__body li { margin-bottom: 0.4em; }
.p-nd-single__body a {
  color: #e8501a;
  text-decoration: underline;
  text-underline-offset: 0.24em;
}
.p-nd-single__body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid #d7e0ec;
  color: #6b7280;
}
.p-nd-single__body figure { margin: 2.4em 0; }
.p-nd-single__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.92rem;
}
.p-nd-single__body th,
.p-nd-single__body td {
  border: 1px solid #d7e0ec;
  padding: 12px 16px;
  text-align: left;
}
.p-nd-single__body th { background: #eff4fb; font-weight: 600; }

/* ============================================================
   ヘッダー：WordPress カスタムロゴ
============================================================ */
.l-header__brand .custom-logo-link { display: flex; align-items: center; }
.l-header__brand .custom-logo {
  height: 42px;
  width: auto;
  max-width: none;
  display: block;
}
@media (max-width: 920px) {
  .l-header__brand .custom-logo { height: 34px; }
}

/* ============================================================
   HERO：スクロールガイド
============================================================ */
.p-hero__scroll {
  position: absolute;
  z-index: 3;
  right: 56px;
  bottom: 152px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: heroFadeUp 1.2s cubic-bezier(0.22, 0.61, 0.36, 1) 1.1s forwards;
}
.p-hero__scroll-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.82);
  writing-mode: vertical-rl;
}
.p-hero__scroll-line {
  position: relative;
  width: 1px;
  height: 76px;
  background: rgba(255, 255, 255, 0.26);
  overflow: hidden;
}
.p-hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: #e8501a;
  animation: toplusScrollDrop 2.6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
@keyframes toplusScrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(330%); }
}
@media (max-width: 1080px) {
  .p-hero__scroll { display: none; }
}

/* ============================================================
   TOP：品質方針（経営理念とともに背景ロゴをまたぐ）
============================================================ */
.p-policy-block .p-policy-statement { background: #eff4fb; }
.p-policy-statement { padding: 140px 0; }
.p-policy-statement__inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: 76px 64px;
  background: rgba(239, 244, 251, 0.88);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: 1px solid #d7e0ec;
}
.p-policy-statement__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: #e8501a;
  margin-bottom: 26px;
}
.p-policy-statement__mark {
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.34em;
  color: #041e4d;
  border: 1px solid #041e4d;
  padding: 11px 24px 11px 32px;
  margin-bottom: 44px;
}
.p-policy-statement__text {
  font-size: 0.98rem;
  line-height: 2.4;
  letter-spacing: 0.06em;
  color: #2a3041;
  margin-bottom: 30px;
}
.p-policy-statement__text:last-of-type { margin-bottom: 0; }
.p-policy-statement__sign {
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid #d7e0ec;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  color: #6b7280;
}
@media (max-width: 768px) {
  .p-policy-statement { padding: 96px 0; }
  .p-policy-statement__inner { padding: 48px 24px; }
  .p-policy-statement__text { font-size: 0.9rem; line-height: 2.2; }
  .p-policy-statement__text br { display: none; }
  .p-policy-statement__sign { align-items: flex-start; }
}

/* ============================================================
   代表挨拶ビジュアル
   ・会社紹介ページのアイキャッチ画像があればその写真
   ・未設定ならロゴマークのパネル
============================================================ */
.p-visual-photo,
.p-visual-photo img { width: 100%; height: 100%; }
.p-visual-photo img { object-fit: cover; }

/* ============================================================
   透過イラストを使う枠（採用ティーザー / Lifestyle）
============================================================ */
.p-recruit-teaser__visual--illust {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 24px 0;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.p-recruit-teaser__visual--illust img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}
.p-r-lifestyle__visual--illust {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 56px 32px 0;
  background: linear-gradient(180deg, #eff4fb 0%, #dfe9f6 100%);
}
.p-r-lifestyle__visual--illust img {
  width: auto;
  max-width: 86%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* ============================================================
   お知らせ詳細：アイキャッチ画像
============================================================ */
.p-nd-single__thumb { margin: 0 0 52px; }
.p-nd-single__thumb img { width: 100%; height: auto; }

/* ============================================================
   アニメーションを控える設定を尊重
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .p-hero__scroll-line::after { animation: none; }
  .p-hero__scroll { animation: none; opacity: 1; }
}

/* ============================================================
   お知らせ一覧：ページネーション
============================================================ */
.c-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 72px;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.1em;
}
.c-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #d7e0ec;
  color: #2a3041;
  font-size: 1rem;
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.c-pagination .page-numbers:hover { border-color: #0b3a8c; color: #0b3a8c; }
.c-pagination .page-numbers.current {
  background: #0b3a8c;
  border-color: #0b3a8c;
  color: #fff;
}
.c-pagination .page-numbers.dots { border: 0; min-width: 24px; }

/* お知らせ0件時 */
.c-empty {
  text-align: center;
  padding: 80px 0 40px;
  color: #6b7280;
  letter-spacing: 0.08em;
}

/* ============================================================
   横スクロール防止（装飾要素のはみ出し対策）
============================================================ */
html { overflow-x: hidden; }
body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* ============================================================
   代表挨拶ビジュアル：はみ出しフレームの代わりのコーナー装飾
============================================================ */
.p-message-teaser__visual,
.p-c-message__visual { overflow: hidden; }
.p-message-teaser__visual::after,
.p-c-message__visual::after {
  content: '';
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-top: 2px solid #e8501a;
  border-right: 2px solid #e8501a;
  pointer-events: none;
}

/* ============================================================
   拠点情報（写真なし・横並び3列）
============================================================ */
.p-c-factories { padding: 120px 0; }
.p-c-fac__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.p-c-fac__card {
  position: relative;
  background: #fff;
  border: 1px solid #d7e0ec;
  padding: 38px 30px 34px;
  overflow: hidden;
}
.p-c-fac__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 54px;
  height: 2px;
  background: #e8501a;
}
.p-c-fac__num {
  position: absolute;
  top: 8px;
  right: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.6rem;
  line-height: 1;
  color: #041e4d;
  opacity: 0.08;
  pointer-events: none;
}
.p-c-fac__en {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: #e8501a;
  margin: 0 0 10px;
}
.p-c-fac__name {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #141929;
  margin: 0;
}
.p-c-fac__rule {
  display: block;
  width: 30px;
  height: 1px;
  background: #0b3a8c;
  margin: 20px 0 20px;
}
.p-c-fac__info { margin: 0; font-size: 0.86rem; }
.p-c-fac__info dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #6b7280;
  margin-bottom: 3px;
}
.p-c-fac__info dd {
  margin: 0 0 14px;
  color: #2a3041;
  letter-spacing: 0.03em;
  line-height: 1.85;
}
.p-c-fac__info dd:last-child { margin-bottom: 0; }
.p-c-fac__info a { color: #0b3a8c; }
.p-c-fac__info a:hover { color: #e8501a; }
@media (max-width: 900px) {
  .p-c-factories { padding: 88px 0; }
  .p-c-fac__grid { grid-template-columns: 1fr; gap: 18px; }
  .p-c-fac__card { padding: 30px 24px 28px; }
  .p-c-fac__num { font-size: 3rem; }
}

/* ============================================================
   採用：Lifestyle（前後のセクションと分けるため紺地＋斜線パターン）
============================================================ */
.p-r-lifestyle {
  position: relative;
  background: #041e4d;
  overflow: hidden;
}
.p-r-lifestyle::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px,
    transparent 1px, transparent 10px
  );
  pointer-events: none;
}
.p-r-lifestyle__inner { position: relative; z-index: 1; }
.p-r-lifestyle__label { color: #f5a173; }
.p-r-lifestyle__title {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.22);
}
.p-r-lifestyle__text { color: rgba(255, 255, 255, 0.82); }
.p-r-lifestyle__visual--illust {
  aspect-ratio: auto;
  margin: 72px 0 72px 72px;
  padding: 40px 28px 0;
  background: radial-gradient(circle at 50% 46%, #ffffff 0%, #f4f8fd 58%, #dde7f4 100%);
  min-height: 420px;
}
.p-r-lifestyle__visual--illust img {
  max-width: 78%;
  max-height: 460px;
}
@media (max-width: 900px) {
  .p-r-lifestyle__visual--illust {
    margin: 48px 24px 0;
    min-height: 320px;
    padding: 28px 20px 0;
  }
  .p-r-lifestyle__visual--illust img { max-height: 300px; }
}

/* ============================================================
   採用：応募のご案内（電話CTA）
============================================================ */
.p-r-cta { padding: 120px 0; background: #eff4fb; }
.p-r-cta__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.p-r-cta__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  color: #e8501a;
  margin-bottom: 20px;
}
.p-r-cta__title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: 0.08em;
  color: #141929;
  margin: 0 0 20px;
  word-break: keep-all;
}
.p-r-cta__text {
  font-size: 0.94rem;
  line-height: 2.1;
  color: #2a3041;
  margin: 0 0 40px;
}
.p-r-cta__tel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 64px;
  background: #fff;
  border: 1px solid #d7e0ec;
  transition: border-color 0.4s, transform 0.4s;
}
.p-r-cta__tel:hover { border-color: #0b3a8c; transform: translateY(-3px); }
.p-r-cta__tel-label {
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: #6b7280;
}
.p-r-cta__tel-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.3rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  color: #041e4d;
}
.p-r-cta__tel-hour {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: #6b7280;
}
@media (max-width: 768px) {
  .p-r-cta { padding: 80px 0; }
  .p-r-cta__tel { padding: 26px 32px; width: 100%; }
  .p-r-cta__tel-num { font-size: 1.9rem; }
}

/* ============================================================
   ロゴストーリー
   ・背景は鉄骨トラスの線画＋製図の方眼（CSSのSVG。画像ファイル不要）
   ・ステージは和紙風の額装に変更
============================================================ */
.p-c-logo-story { position: relative; overflow: hidden; }
.p-c-logo-story__bg-en { display: none; }

/* 背景パターンは使わない（前後のセクションとの対比はステージ側で作る） */
.p-c-logo-story::before,
.p-c-logo-story::after { content: none; }

/* 動画と由来を横並びに */
.p-c-logo-story__grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: stretch;
}

/* ステージ：紺のフレームに動画をはめ込む */
.p-c-logo-story__stage {
  max-width: none;
  margin: 0;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #08152e 0%, #0d2148 54%, #08152e 100%);
  box-shadow: 0 30px 68px rgba(4, 30, 77, 0.24);
}
/* フレーム内側にごく薄い方眼（製図板のような質感） */
.p-c-logo-story__stage::before {
  inset: 0;
  z-index: 0;
  border: 0;
  border-radius: 0;
  filter: none;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 40px);
}
/* 動画のまわりの細罫 */
.p-c-logo-story__stage::after {
  content: '';
  position: absolute;
  inset: 20px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  pointer-events: none;
}
.p-c-logo-story__video {
  position: relative;
  z-index: 1;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
@media (max-width: 1080px) {
  .p-c-logo-story__grid { grid-template-columns: 1fr; gap: 36px; }
  .p-c-naming__paper { padding: 68px 40px 56px; }
}
@media (max-width: 768px) {
  .p-c-logo-story__stage { padding: 18px; }
  .p-c-logo-story__stage::after { inset: 9px; }
}

/* ============================================================
   社名の由来（書のテイスト）
============================================================ */
.p-c-naming {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.p-c-naming__paper {
  position: relative;
  background: #ffffff;
  border: 1px solid #d9d2c0;
  padding: 76px 56px 68px;
  text-align: center;
}
/* 内側の細罫（色紙の二重枠） */
.p-c-naming__paper::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(11, 58, 140, 0.13);
  pointer-events: none;
}

/* 落款 */
.p-c-naming__seal {
  position: absolute;
  top: -16px;
  right: 44px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  width: 44px;
  height: 78px;
  background: #b8321a;
  color: #fff;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  box-shadow: 0 6px 16px rgba(184, 50, 26, 0.24);
}

.p-c-naming__lead {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem;
  line-height: 2.2;
  letter-spacing: 0.06em;
  color: #2a3041;
  margin: 0 0 44px;
}

/* 塗装 ＋ プラス */
.p-c-naming__equation {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 3.4vw, 52px);
}
.p-c-naming__term { display: flex; flex-direction: column; align-items: center; }
.p-c-naming__term-ja {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: #141929;
}
.p-c-naming__term-en {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d7e0ec;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  color: #6b7280;
}
.p-c-naming__op {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1;
  color: #b8321a;
  margin-top: clamp(12px, 2vw, 20px);
}

/* 落ちる朱の一本線（＝の代わり） */
.p-c-naming__drop {
  display: block;
  position: relative;
  width: 1px;
  height: 62px;
  margin: 34px auto 30px;
  background: linear-gradient(180deg, rgba(184, 50, 26, 0) 0%, #b8321a 100%);
}
.p-c-naming__drop::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: #b8321a;
  transform: translateX(-50%) rotate(45deg);
}

.p-c-naming__result { display: flex; flex-direction: column; align-items: center; }
.p-c-naming__result-en {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: #041e4d;
}
.p-c-naming__result-ja {
  margin-top: 18px;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #6b7280;
}

@media (max-width: 768px) {
  .p-c-naming__paper { padding: 60px 22px 52px; }
  .p-c-naming__seal { right: 20px; width: 38px; height: 68px; font-size: 0.86rem; }
  .p-c-naming__lead { font-size: 0.9rem; line-height: 2.1; margin-bottom: 40px; }
  .p-c-naming__lead br { display: none; }
  .p-c-naming__drop { height: 48px; margin: 30px auto 26px; }
}

/* ============================================================
   採用：先輩の声（丸アイコン）
============================================================ */
.p-r-voices__item { border: 1px solid #d7e0ec; }
.p-r-voices__visual {
  aspect-ratio: auto;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 46px 0;
  background: linear-gradient(180deg, #ffffff 0%, #e9f0fa 100%);
  border-bottom: 1px solid #d7e0ec;
}
/* アイコンは正円のマスクに収める。多重リングも同じ中心に描かれるためズレない */
.p-r-voices__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 146px;
  height: 146px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff9cc;
  box-shadow:
    0 0 0 1px rgba(4, 30, 77, 0.10),
    0 0 0 11px rgba(255, 255, 255, 0.85),
    0 0 0 12px rgba(4, 30, 77, 0.10),
    0 14px 26px rgba(4, 30, 77, 0.12);
}
.p-r-voices__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.p-r-voices__num {
  top: 18px;
  left: 22px;
  font-size: 2.5rem;
  color: #041e4d;
  opacity: 0.13;
  text-shadow: none;
}
@media (max-width: 900px) {
  .p-r-voices__list { grid-template-columns: 1fr; }
  .p-r-voices__visual { padding: 40px 0; }
  .p-r-voices__icon { width: 128px; height: 128px; }
}

/* ============================================================
   お知らせ一覧（トップページ・一覧ページ共通）
   ※ 一覧の見た目は subpages.css にしかなく、トップページでは
     読み込まれないため、共通で効くこちらに定義し直しています。
============================================================ */
.p-n-list__item { border-bottom: 1px solid var(--line); }
.p-n-list__item:first-child { border-top: 1px solid var(--ink); }

.p-n-list__link {
  position: relative;
  display: grid;
  grid-template-columns: 150px 128px 1fr 44px;
  gap: 28px;
  align-items: center;
  padding: 30px 10px;
  color: #141929;
  transition:
    background 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    padding 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.35s;
}
/* 左に走るオレンジのバー */
.p-n-list__link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #e8501a;
  transform: scaleY(0);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.p-n-list__link:hover,
.p-n-list__link:focus-visible {
  background: rgba(11, 58, 140, 0.055);
  padding-left: 26px;
  padding-right: 26px;
  box-shadow: 0 10px 26px rgba(4, 30, 77, 0.07);
}
.p-n-list__link:hover::before,
.p-n-list__link:focus-visible::before { transform: scaleY(1); }

.p-n-list__date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #141929;
}
.p-n-list__category {
  width: fit-content;
  font-size: 0.72rem;
  padding: 5px 14px;
  border: 1px solid #141929;
  color: #141929;
  letter-spacing: 0.16em;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.p-n-list__link:hover .p-n-list__category {
  background: #041e4d;
  border-color: #041e4d;
  color: #fff;
}
.p-n-list__title {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.8;
  color: #141929;
  transition: color 0.35s;
}
.p-n-list__link:hover .p-n-list__title { color: #0b3a8c; }
.p-n-list__arrow {
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: #6b7280;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.35s;
}
.p-n-list__link:hover .p-n-list__arrow {
  transform: translateX(7px);
  color: #e8501a;
}

@media (max-width: 900px) {
  .p-n-list__link { grid-template-columns: 1fr; gap: 8px; padding: 24px 10px; }
  .p-n-list__link:hover { padding-left: 16px; padding-right: 16px; }
  .p-n-list__arrow { display: none; }
}
/* タップ端末では押した瞬間だけ反応させる */
@media (hover: none) {
  .p-n-list__link:hover {
    background: transparent;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: none;
  }
  .p-n-list__link:hover::before { transform: scaleY(0); }
  .p-n-list__link:active { background: rgba(11, 58, 140, 0.06); }
}

/* ============================================================
   スマートフォン最適化
   ・装飾のはみ出しで本文が切れないようにする
   ・HEROの本文が下のバーに隠れないようにする
   ・縦の余白を詰めてスクロール量を減らす
============================================================ */

/* --- 装飾要素をセクション内に閉じ込める --- */
.p-hero,
.p-intro,
.p-contact,
.p-recruit-teaser,
.p-policy-block,
.p-c-philosophy,
.p-r-lifestyle { overflow: hidden; }

@media (max-width: 900px) {
  .l-container { padding-left: 20px; padding-right: 20px; }

  /* グリッド／フレックスの子が最小幅で突っ張り、行が切れるのを防ぐ */
  .l-container > *,
  [class*="__grid"] > *,
  [class*="__inner"] > *,
  [class*="__list"] > * { min-width: 0; }

  /* 見出しの禁則を緩めて必ず画面内に収める */
  .p-hero__title,
  .p-intro__quote,
  .p-philosophy-teaser__catch,
  .p-message-teaser__title,
  .p-recruit-teaser__title,
  .p-contact__title,
  .p-c-message__title,
  .p-c-philosophy__catch,
  .p-s-intro__catch,
  .p-s-detail__catch,
  .p-s-quality__title,
  .p-r-intro__catch,
  .p-r-lifestyle__title,
  .p-r-cta__title,
  .p-r-voices__quote {
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* 背景の書を画面サイズに合わせる */
  .p-furin { width: min(94%, 520px); }
  .p-philosophy__furin,
  .p-c-philosophy__furin { width: 94%; }
  .p-c-logo-story__bg-en { display: none; }
}

/* --- HERO：本文が下のバーに隠れないように --- */
@media (max-width: 1080px) {
  .p-hero__trio { grid-template-columns: repeat(3, 1fr); }
  .p-hero__trio-item {
    padding: 20px 16px;
    gap: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
  }
  .p-hero__trio-item:last-child { border-right: none; }
  .p-hero__trio-icon { width: 30px; height: 30px; }
}
@media (max-width: 900px) {
  .p-hero__inner {
    min-height: 100vh;
    min-height: 100svh;
    padding: 104px 20px 124px;
  }
  .p-hero__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
    gap: 12px;
  }
  .p-hero__eyebrow::before { width: 26px; }
  .p-hero__title {
    font-size: clamp(1.85rem, 8.4vw, 2.6rem);
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin-bottom: 24px;
  }
  .p-hero__lead { font-size: 0.85rem; line-height: 2.05; }

  /* 3つの実績バーは縦積みをやめてコンパクトな横並びに */
  .p-hero__trio-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 7px;
    padding: 13px 5px 14px;
  }
  .p-hero__trio-icon { width: 22px; height: 22px; }
  .p-hero__trio-label {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    margin-bottom: 0;
  }
  .p-hero__trio-value {
    font-size: 0.7rem;
    line-height: 1.5;
    letter-spacing: 0.01em;
  }
}

/* --- 縦の余白を圧縮してスクロール量を減らす --- */
@media (max-width: 768px) {
  .l-section,
  .p-intro,
  .p-philosophy-teaser,
  .p-policy-statement,
  .p-service-teaser,
  .p-message-teaser,
  .p-explore,
  .p-contact,
  .p-c-message,
  .p-c-philosophy,
  .p-c-logo-story,
  .p-c-profile,
  .p-c-factories,
  .p-s-intro,
  .p-s-detail__item,
  .p-s-quality,
  .p-r-intro,
  .p-r-voices,
  .p-r-cta,
  .p-n-list,
  .p-nd-single {
    padding-top: 68px;
    padding-bottom: 68px;
  }
  .p-recruit-teaser__inner { padding: 56px 20px; }
  .p-r-lifestyle__body { padding: 48px 20px 56px; }
  .p-r-lifestyle__visual--illust { margin: 44px 20px 0; min-height: 260px; }
  .p-r-lifestyle__visual--illust img { max-height: 240px; }
  .p-policy-statement__inner { padding: 40px 20px; }
  .p-c-naming__paper { padding: 52px 22px 44px; }
  .p-c-logo-story__grid { gap: 28px; }

  /* 見出しまわりの余白も詰める */
  .c-stitle { margin-bottom: 40px; }
  .p-section-cta { margin-top: 40px; }
}

@media (max-width: 480px) {
  .l-section,
  .p-intro,
  .p-philosophy-teaser,
  .p-policy-statement,
  .p-service-teaser,
  .p-message-teaser,
  .p-explore,
  .p-contact,
  .p-c-message,
  .p-c-philosophy,
  .p-c-logo-story,
  .p-c-profile,
  .p-c-factories,
  .p-s-intro,
  .p-s-detail__item,
  .p-s-quality,
  .p-r-intro,
  .p-r-voices,
  .p-r-cta,
  .p-n-list,
  .p-nd-single {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .l-container { padding-left: 18px; padding-right: 18px; }
}

/* --- 本文の可読性（行間と文字サイズ） --- */
@media (max-width: 768px) {
  .p-intro__text,
  .p-c-message__text,
  .p-s-detail__text,
  .p-s-quality__text,
  .p-r-intro__text,
  .p-r-lifestyle__text,
  .p-r-voices__text,
  .p-policy-statement__text,
  .p-nd-single__body p {
    font-size: 0.88rem;
    line-height: 2.05;
  }
  .p-c-message__text br,
  .p-intro__text br,
  .p-r-intro__text br,
  .p-s-intro__text br { display: none; }

  /* 代表挨拶・署名がはみ出さないように */
  .p-c-message__signature { font-size: 0.85rem; line-height: 2; }

  /* 拠点カード・お知らせを詰める */
  .p-c-fac__card { padding: 26px 20px 24px; }
  .p-n-list__link { padding: 20px 6px; }
  .p-n-list__link:hover { padding-left: 12px; padding-right: 12px; }
}

/* ============================================================
   スマートフォン：見出しの改行位置と行間
   ・独自の左右余白を持つブロックを画面幅に合わせる
   ・1行に収まる文字サイズまで落として、変な位置で折り返さないようにする
============================================================ */
@media (max-width: 900px) {
  /* .l-container とは別に padding を持つブロックを揃える */
  .p-intro__inner { padding-left: 20px; padding-right: 20px; }
  .p-contact__inner { padding-left: 0; padding-right: 0; }

  /* 小さい画面では見出しの真後ろに重なって読みにくいため出さない */
  .p-intro__bg-text { display: none; }
}

@media (max-width: 768px) {
  /* 大きな和文見出し：1行に収まるサイズへ */
  .p-intro__quote {
    font-size: 1.42rem;
    line-height: 1.85;
    letter-spacing: 0.04em;
    margin-bottom: 26px;
  }
  .p-intro__label { font-size: 1rem; margin-bottom: 14px; }
  .p-intro__line { margin: 0 auto 22px; }

  .p-philosophy-teaser__catch,
  .p-c-philosophy__catch { font-size: 1.42rem; line-height: 1.85; letter-spacing: 0.04em; }
  .p-recruit-teaser__title { font-size: 1.4rem; line-height: 1.85; letter-spacing: 0.04em; }
  .p-message-teaser__title,
  .p-c-message__title { font-size: 1.3rem; line-height: 1.9; letter-spacing: 0.03em; }
  .p-contact__title { font-size: 1.3rem; line-height: 1.9; letter-spacing: 0.03em; }
  .p-s-intro__catch,
  .p-r-intro__catch { font-size: 1.36rem; line-height: 1.9; letter-spacing: 0.03em; }
  .p-s-detail__catch { font-size: 1.22rem; line-height: 1.85; }
  .p-s-quality__title,
  .p-r-lifestyle__title { font-size: 1.36rem; line-height: 1.85; letter-spacing: 0.03em; }
  .p-r-cta__title { font-size: 1.28rem; line-height: 1.85; }
  .p-r-voices__quote { font-size: 1rem; line-height: 1.85; }
  .p-c-naming__lead { font-size: 0.88rem; line-height: 2; }
  .p-policy-statement__text { font-size: 0.86rem; line-height: 2; }

  /* 見出しブロック内の余白 */
  .p-philosophy-teaser__main { margin-bottom: 36px; }
  .p-message-teaser__grid,
  .p-c-message__grid { gap: 36px; }
  .p-explore__list,
  .p-service-teaser__list { gap: 24px; }
  .p-r-voices__list { gap: 20px; }
  .p-c-philosophy__statement { padding: 36px 20px; margin-bottom: 40px; }
  .p-c-philosophy__list { gap: 20px; }
}

/* 375px 前後の端末はもう一段小さく */
@media (max-width: 390px) {
  .p-intro__quote,
  .p-philosophy-teaser__catch,
  .p-c-philosophy__catch,
  .p-recruit-teaser__title,
  .p-s-intro__catch,
  .p-r-intro__catch,
  .p-s-quality__title,
  .p-r-lifestyle__title { font-size: 1.26rem; }
  .p-message-teaser__title,
  .p-c-message__title,
  .p-contact__title,
  .p-r-cta__title { font-size: 1.16rem; }
}

/* ============================================================
   背景の透かし
   風林火山の書は対外的に誤解を招くため、
   トプラスの白黒ロゴを薄く敷く形に変更。
   ロゴは面で塗られており書より主張が強いので、
   表示サイズと不透明度を下げています。
============================================================ */
.p-furin { width: min(430px, 50%); }
.p-furin__layer--white { opacity: 0.15; }
.p-furin__layer--dark { opacity: 0.065; }

.p-c-philosophy__furin {
  width: 34%;
  max-width: 380px;
  opacity: 0.085;
}

/* お問い合わせの背景も欧文「Contact」からロゴマークへ */
.p-contact__bg-kanji {
  font-size: 0;
  width: min(460px, 56%);
  color: transparent;
}
.p-contact__bg-kanji img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.05;
}

@media (max-width: 900px) {
  .p-furin { width: min(260px, 58%); }
  .p-furin__layer--white { opacity: 0.13; }
  .p-furin__layer--dark { opacity: 0.055; }
  .p-c-philosophy__furin { width: 52%; }
  .p-contact__bg-kanji { width: 62%; }
}

/* ============================================================
   写真の見え方を全ページで統一
   ・支給写真は現場のスナップのため、サイト側でも色調を重ねて
     ストック写真と質感を揃える
   ・番号バッジ（z-index:2）より下に敷くため z-index:1
============================================================ */
/* ストック写真だけ色調を合わせる。HEROとページ上部の写真は
   加工済み（色調整とグラデーションが焼き込み済み）のため対象外 */
.p-service-teaser__visual img,
.p-explore__visual img,
.p-s-detail__visual img {
  filter: saturate(0.94) contrast(1.03);
}

/* カードの写真に紺のグラデーションを重ねる */
.p-service-teaser__visual::after,
.p-s-detail__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 30, 77, 0) 46%, rgba(4, 30, 77, 0.46) 100%),
    linear-gradient(118deg, rgba(11, 58, 140, 0.22) 0%, rgba(11, 58, 140, 0) 52%);
}
.p-explore__visual::after {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 30, 77, 0) 46%, rgba(4, 30, 77, 0.44) 100%),
    linear-gradient(118deg, rgba(11, 58, 140, 0.18) 0%, rgba(11, 58, 140, 0) 52%);
}

/* 写真の縁に細い罫を入れて、スナップ感を抑える */
.p-service-teaser__visual::before,
.p-explore__visual::before,
.p-s-detail__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* ホバー時はグラデーションを少し引いて写真を見せる */
.p-service-teaser__link:hover .p-service-teaser__visual::after,
.p-explore__link:hover .p-explore__visual::after { opacity: 0.72; }
.p-service-teaser__visual::after,
.p-explore__visual::after { transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1); }

/* ============================================================
   HERO・ページ上部を明るく
   写真側が暗く仕上がっているため、サイト側の暗幕をさらに弱め、
   表示側でわずかに持ち上げる（画像ファイルは変更しない）
============================================================ */
/* HEROの3枚はいずれも明るく書き出された加工版のため、
   表示側での明るさ補正は行わない（写真そのままを見せる） */

/* スマホは縦長で横が大きく切られ、意図しない部分が主役になるため、
   専用の縦トリミング画像に差し替える。
   カスタムプロパティ経由なので !important が不要 */
.p-hero__slide { background-image: var(--hero-bg); }
@media (max-width: 900px) {
  .p-hero__slide { background-image: var(--hero-bg-sp, var(--hero-bg)); }
}

.p-hero::after {
  background: linear-gradient(180deg,
    rgba(4, 30, 77, 0.16) 0%,
    rgba(20, 25, 41, 0.04) 42%,
    rgba(4, 30, 77, 0.32) 100%);
}
/* 文字が乗る左側だけ、読みやすさのために薄く重ねる */
.p-hero__inner::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -8vw;
  width: 74vw;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg,
    rgba(4, 30, 77, 0.42) 0%,
    rgba(4, 30, 77, 0.18) 44%,
    rgba(4, 30, 77, 0) 76%);
}
@media (max-width: 900px) {
  .p-hero::after {
    background: linear-gradient(180deg,
      rgba(4, 30, 77, 0.24) 0%,
      rgba(20, 25, 41, 0.10) 42%,
      rgba(4, 30, 77, 0.42) 100%);
  }
  .p-hero__inner::before { inset: 0 auto 0 -20vw; width: 130vw; }
}

/* ページ上部のビジュアル
   元は「写真の不透明度40%」＋「紺の暗幕80%/60%」の二重で暗すぎたため、
   写真をしっかり見せる値に引き上げる（白文字の可読性は確保） */
.p-pageheader__bg img {
  opacity: 0.68;
  filter: brightness(1.08) saturate(1.03);
}
.p-pageheader::after {
  background: linear-gradient(135deg,
    rgba(4, 30, 77, 0.48) 0%,
    rgba(20, 25, 41, 0.34) 100%);
}
