@charset "UTF-8";
/* ==========================================================================
   株式会社D&J コーポレートサイト
   style.css
   制作：イータイム
   ==========================================================================
   カラー定義
     ネイビー（メイン）  #0f3f7a
     ネイビー（ホバー）  #1663c4
     ペールブルー        #9fc2ee
     本文                #16181c / #2b3138 / #4a5058
     グレー（補助）      #8a9099 / #b0b6bd
     罫線                #e6e8ec
     背景（薄）          #f6f8fa
     フッター背景        #12181f
   ========================================================================== */

:root {
  --navy: #0f3f7a;
  --navy-hover: #1663c4;
  --pale: #9fc2ee;
  --text: #16181c;
  --text-2: #2b3138;
  --text-3: #4a5058;
  /* 補助テキスト用のグレー。
     以前は #8a9099 だったが、13px の注記や日付に使うとコントラストが 3.0:1 程度で
     読みにくかったため、WCAG AA（4.5:1）を満たす濃さに変更している。
     白背景 4.83:1 ／ 薄グレー背景（--bg-soft）4.54:1 */
  --gray: #6b7280;
  /* 「（詳細テキスト調整中）」など仮テキストの目印に使う色。
     --gray より少しだけ明るいが、読める濃さ（白背景 4.59:1）を確保している。
     ※正式なテキストに差し替える際は、この目印ごと削除してください。 */
  --gray-light: #6f7680;
  --line: #e6e8ec;
  --bg-soft: #f6f8fa;
  --footer-bg: #12181f;
  --inner: 1240px;
}

/* --------------------------------------------------------------------------
   1. ベース
   -------------------------------------------------------------------------- */

html,
body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

img { border: 0; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

a:hover { color: var(--navy-hover); }

@keyframes djFade {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.l-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.l-main { flex: 1; }

/* 共通インナー */
.l-inner {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 32px;
}

/* 見出しの小ラベル（英字） */
.c-eyebrow {
  margin: 0 0 12px;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--gray);
}

/* 明朝見出し */
.c-serif {
  font-family: 'Zen Old Mincho', serif;
  font-weight: 500;
  letter-spacing: .04em;
}

/* 写真の差し込み予定エリア（グレーの斜線プレースホルダー） */
.c-photo {
  background: repeating-linear-gradient(135deg, #eef1f5 0 16px, #e7ebf1 16px 32px);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.c-photo--soft {
  background: repeating-linear-gradient(135deg, #e9edf2 0 16px, #e2e7ee 16px 32px);
}

.c-photo__note {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: #7d8894;
  letter-spacing: .06em;
}

.c-photo--h460 { height: 460px; }
.c-photo--h340 { height: 340px; }
.c-photo--h320 { height: 320px; padding: 16px; }
.c-photo--h300 { height: 300px; padding: 16px; }
.c-photo--h280 { height: 280px; }

/* 実画像を入れる場合（プレースホルダーの枠をそのまま使う） */
.c-photo--img {
  padding: 0;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}

.c-photo--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 人物写真：顔が中央に来るよう表示位置を上寄りに */
.c-photo--face img { object-position: center 15%; }

/* テキストリンク（矢印つき） */
.c-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 6px;
}

.c-more span { font-size: 15px; }

/* --------------------------------------------------------------------------
   2. ヘッダー
   -------------------------------------------------------------------------- */

.l-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.l-header__inner {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 32px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.p-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ヘッダーはロゴマークのみ（社名テキストは削除済み） */
.p-logo__img {
  height: 46px;
  width: auto;
  display: block;
}

/* グローバルナビ */
.p-gnav {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 78px;
}

.p-gnav__link {
  display: flex;
  align-items: center;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .04em;
  border-bottom: 2px solid transparent;
}

.p-gnav__link:hover,
.p-gnav__link.is-current {
  border-bottom: 2px solid var(--navy);
  color: var(--navy);
}

.p-gnav__cta {
  display: flex;
  align-items: center;
  margin-left: 16px;
  padding: 0 26px;
  background: var(--navy);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
}

.p-gnav__cta:hover {
  background: var(--navy-hover);
  color: #ffffff;
}

/* ハンバーガー */
.p-burger {
  display: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.p-burger__bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}

.p-burger__bars span {
  display: block;
  height: 1.5px;
  background: var(--navy);
}

.p-burger__label {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--navy);
}

/* ドロワー（SP）
   ※ .l-header は backdrop-filter を持つため position:fixed の包含ブロックになる。
      ドロワーは必ず header の外に置くこと（中に入れると高さが潰れる）。 */
.p-drawer {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  overflow-y: auto;
  z-index: 70;
  border-top: 1px solid var(--line);
  animation: djFade .25s ease both;
}

.p-drawer.is-open { display: block; }

.p-drawer__inner {
  display: flex;
  flex-direction: column;
  padding: 8px 18px 48px;
}

.p-drawer__head {
  margin: 24px 0 8px;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--gray);
}

.p-drawer__head + .p-drawer__link { margin-top: 0; }

.p-drawer__head:not(:first-child) { margin-top: 32px; }

.p-drawer__link {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}

.p-drawer__cta {
  margin-top: 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #ffffff;
  font-size: 15px;
  letter-spacing: .08em;
}

.p-drawer__cta:hover { color: #ffffff; background: var(--navy-hover); }

/* --------------------------------------------------------------------------
   3. トップページ
   -------------------------------------------------------------------------- */

/* メインビジュアル */
.p-hero {
  position: relative;
  height: clamp(420px, 62vh, 560px);
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* メインビジュアルの写真（PC＝横長／SP＝縦長を picture で出し分け） */
.p-hero__media {
  position: absolute;
  inset: 0;
  display: block;
}

.p-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 見出しの可読性を確保しつつ、写真を潰さないためのオーバーレイ
   ※見出し2行目の末尾（画面幅の約50%）が倉庫の採光部と重なり白飛びするため、
     56%までは濃度を保ち、そこから一気に抜いている。
     この設定で見出し部分の最小コントラストは 3.3:1（大文字AA基準の3:1をクリア）、
     リード文・ラベルは 14:1 以上。 */
.p-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(15, 63, 122, .60) 0%,
    rgba(15, 63, 122, .58) 40%,
    rgba(15, 63, 122, .55) 56%,
    rgba(15, 63, 122, .20) 70%,
    rgba(15, 63, 122, .05) 85%,
    rgba(15, 63, 122, 0) 100%);
}

.p-hero__body {
  position: relative;
  max-width: var(--inner);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  animation: djFade .8s ease both;
}

/* メインビジュアルは見出しのみ（SINCE 1952・リード文は削除済み） */
.p-hero__title {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.4;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: .04em;
  text-wrap: pretty;
}

/* トップのニュース */
.p-home-news {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 92px 32px 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.p-home-news__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-home-news__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--navy);
}

.p-home-news__title {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .04em;
}

.p-home-news__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

/* ニュース一覧（共通） */
.p-newslist {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.p-newslist--page { border-top: 1px solid var(--text); }

.p-newsrow {
  display: grid;
  grid-template-columns: 120px 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.p-newslist--page .p-newsrow {
  grid-template-columns: 130px 100px 1fr;
  padding: 32px 12px;
}

.p-newsrow:hover {
  background: var(--bg-soft);
  color: var(--navy);
}

.p-newsrow__date {
  font-size: 13px;
  color: var(--gray);
  letter-spacing: .04em;
}

.p-newsrow__tag {
  font-size: 11px;
  text-align: center;
  padding: 5px 0;
  border: 1px solid var(--navy);
  color: var(--navy);
  letter-spacing: .06em;
}

.p-newsrow__title {
  font-size: 15px;
  line-height: 1.7;
}

.p-newsrow__sub {
  margin-left: 10px;
  font-size: 11px;
  color: var(--gray-light);
}

/* 3カード */
.p-cards {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 96px 32px 0;
}

.p-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.p-card {
  position: relative;
  background: #ffffff;
  padding: 44px 34px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text);
}

.p-card:hover {
  background: var(--navy);
  color: #ffffff;
}

.p-card__title {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: .06em;
}

.p-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: inherit;
  opacity: .7;
}

/* トップの代表メッセージ */
.p-home-msg {
  margin-top: 96px;
  background: var(--bg-soft);
}

.p-home-msg__inner {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 88px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* 写真を入れない場合は1カラムにして、本文が間延びしないよう幅を抑える */
.p-home-msg__inner--noimg {
  grid-template-columns: 1fr;
  max-width: 900px;
}

.p-home-msg__title {
  margin: 0 0 28px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 32px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: .05em;
  text-wrap: pretty;
}

.p-home-msg__text {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text-3);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   4. 下層ページ共通（ページヘッダー・パンくず・サイドナビ）
   -------------------------------------------------------------------------- */

.p-pagehead {
  background: var(--navy);
  padding: 64px 32px;
}

.p-pagehead__inner {
  max-width: var(--inner);
  margin: 0 auto;
}

.p-pagehead__label {
  margin: 0 0 10px;
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--pale);
}

.p-pagehead__title {
  margin: 0;
  font-family: 'Zen Old Mincho', serif;
  font-size: 40px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: .08em;
}

.p-breadcrumb { border-bottom: 1px solid var(--line); }

.p-breadcrumb__inner {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--gray);
}

.p-breadcrumb__inner a { color: var(--gray); }

.p-breadcrumb__inner a:hover { color: var(--navy); }

.p-breadcrumb__current { color: var(--text); }

/* サイドナビつき2カラム */
.l-side {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 72px 32px 96px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 72px;
  align-items: start;
}

.p-sidenav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--text);
}

.p-sidenav__link {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
}

.p-sidenav__link:hover { color: var(--navy); }

.p-sidenav__link.is-current {
  color: var(--navy);
  font-weight: 500;
}

/* 1カラム（幅いっぱい） */
.l-narrow {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 72px 32px 96px;
}

.l-article {
  max-width: 840px;
  margin: 0 auto;
  padding: 72px 32px 112px;
}

/* --------------------------------------------------------------------------
   5. 会社概要
   -------------------------------------------------------------------------- */

.p-profile {
  width: 100%;
  border-collapse: collapse;
}

.p-profile tr { border-top: 1px solid var(--line); }

.p-profile tr:last-child { border-bottom: 1px solid var(--line); }

.p-profile th {
  width: 200px;
  text-align: left;
  vertical-align: top;
  padding: 22px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.p-profile td {
  padding: 22px 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.p-profile .is-tbd { color: var(--gray-light); }

.p-profile + .c-photo,
.p-profile + .c-map { margin-top: 56px; }

/* Googleマップ埋め込み用
   ※ 現在どのページでも使用していません（会社概要ページから地図を削除したため）。
     再度地図を載せる場合は <div class="c-map"><iframe …></iframe></div> で使えます。 */
.c-map {
  height: 320px;
  overflow: hidden;
  background: var(--bg-soft);
}

.c-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 役員一覧（会社概要テーブル内） */
.p-officers { margin: 0; }

.p-officers__row {
  display: flex;
  gap: 20px;
  padding: 6px 0;
}

.p-officers__row:first-child { padding-top: 0; }

.p-officers__row:last-child { padding-bottom: 0; }

/* 役職名は氏名と同じ文字色に揃える */
.p-officers__row dt {
  flex: 0 0 200px;
  font-size: 14px;
  color: var(--text);
}

.p-officers__row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   6. 代表メッセージ
   -------------------------------------------------------------------------- */

.p-message { max-width: 780px; }

.p-message__title {
  margin: 0 0 48px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 34px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: .05em;
  text-wrap: pretty;
}

.p-message p {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 2.3;
  color: var(--text-2);
  text-wrap: pretty;
}

.p-message p:last-of-type { margin-bottom: 0; }

.p-message__last { margin-bottom: 48px !important; }

/* 署名（役職・管掌・氏名の三段組み。氏名だけ大きく見せる） */
.p-message__sign {
  clear: both;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  text-align: right;
}

.p-signer {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.p-signer__title,
.p-signer__role {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-3);
  letter-spacing: .04em;
}

.p-signer__name {
  margin-top: 6px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: .08em;
  color: var(--text);
}

/* --------------------------------------------------------------------------
   6-2. 各拠点
   -------------------------------------------------------------------------- */

.p-bases {
  display: flex;
  flex-direction: column;
}

.p-base-item {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.p-bases > .p-base-item:last-child { border-bottom: 1px solid var(--line); }

/* 事業区分（包装資材卸売事業 など）
   ※ .c-eyebrow（10px・グレー）は英字の装飾ラベル用のため、
     日本語の本文情報であるここでは使わず、読みやすい大きさ・濃さにしている */
.p-base-item__cat {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--navy);
}

.p-base-item__name {
  margin: 0 0 14px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
}

.p-base-item__addr {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}

.p-base-item__cat + .p-base-item__addr { margin-top: 14px; }

/* --------------------------------------------------------------------------
   6-3. グループ会社
   -------------------------------------------------------------------------- */

.p-group-item__name {
  margin: 0 0 24px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .04em;
}

.p-group-item__addr {
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 2;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   7. 沿革
   -------------------------------------------------------------------------- */

.p-history__note {
  margin: 0 0 40px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.9;
}

.p-history__row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.p-history__year {
  font-family: 'Zen Old Mincho', serif;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: .04em;
}

.p-history__text {
  font-size: 15px;
  line-height: 2;
  color: var(--text-2);
}

/* 1つの年に複数の出来事がある場合のリスト
   ※ 行頭記号・インデントは付けず、1件だけの年（.p-history__text）と
     同じ見た目（文字サイズ・行間・色）に揃えている */
.p-history__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-history__list li {
  font-size: 15px;
  line-height: 2;
  color: var(--text-2);
}

/* 年をまたがず前の年の続きとなる行（罫線を引かずに間隔を詰める） */
.p-history__row--cont {
  border-top: 0;
  padding-top: 0;
  margin-top: -14px;
}

/* --------------------------------------------------------------------------
   8. 事業内容
   -------------------------------------------------------------------------- */

.p-biztabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  margin-bottom: 88px;
}

.p-biztabs a {
  background: #ffffff;
  padding: 24px 20px;
  font-size: 14px;
  color: var(--text);
  text-align: center;
}

.p-biztabs a:hover {
  background: var(--navy);
  color: #ffffff;
}

.p-biz {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
  scroll-margin-top: 100px;
}

.p-biz:last-of-type { margin-bottom: 0; }

.p-biz__title {
  margin: 0 0 28px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .05em;
}

.p-biz__text {
  margin: 0;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text-3);
  text-wrap: pretty;
}

.p-biz__text .is-tbd { color: var(--gray-light); }

/* --------------------------------------------------------------------------
   9. ニュースリリース
   -------------------------------------------------------------------------- */

.p-newsfilter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.p-newsfilter span,
.p-newsfilter a {
  padding: 10px 22px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--text-3);
}

.p-newsfilter a:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.p-newsfilter span.is-current,
.p-newsfilter a.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.p-pager {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.p-pager span,
.p-pager a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--text-3);
}

.p-pager a:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.p-pager span.is-current,
.p-pager a.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

/* 記事詳細 */
.p-article__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.p-article__date {
  font-size: 14px;
  color: var(--gray);
  letter-spacing: .04em;
}

.p-article__tag {
  font-size: 11px;
  text-align: center;
  padding: 5px 18px;
  border: 1px solid var(--navy);
  color: var(--navy);
  letter-spacing: .06em;
  white-space: nowrap;
}

.p-article__title {
  margin: 0 0 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--text);
  font-family: 'Zen Old Mincho', serif;
  font-size: 30px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: .04em;
  text-wrap: pretty;
}

.p-article__body p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 2.3;
  color: var(--text-2);
  text-wrap: pretty;
}

.p-article__box {
  margin: 0 0 28px;
  padding: 32px;
  background: var(--bg-soft);
}

.p-article__box p:last-child { margin-bottom: 0; }

.p-article__box-head {
  margin: 0 0 16px !important;
  font-size: 14px !important;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
}

.p-article__outro { margin-bottom: 56px !important; }

/* 記事本文中の見出し（管理画面の「見出し」ブロック） */
.p-article__heading {
  margin: 48px 0 20px;
  padding-left: 14px;
  border-left: 3px solid var(--navy);
  font-family: 'Zen Old Mincho', serif;
  font-size: 21px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text);
}

.p-article__body > *:first-child { margin-top: 0; }

/* 記事本文中の画像（管理画面の「画像」ブロック） */
.p-article__figure {
  margin: 40px 0;
}

.p-article__figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}

.p-article__figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--gray);
  text-align: center;
}

.p-article__body + .p-article__contact { margin-top: 56px; }

/* 記事が0件のときの表示 */
.p-news-empty {
  margin: 0;
  padding: 56px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-size: 15px;
  color: var(--gray);
}

.p-article__contact {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.p-article__contact p {
  margin: 0;
  font-size: 13px;
  line-height: 2.1;
  color: var(--gray);
}

.p-article__contact strong {
  color: var(--text-2);
  font-weight: 400;
}

.p-article__back {
  display: flex;
  justify-content: center;
  margin-top: 64px;
}

.c-btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  height: 56px;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-size: 14px;
  letter-spacing: .1em;
}

.c-btn-line:hover {
  background: var(--navy);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   10. お問い合わせ
   -------------------------------------------------------------------------- */

.p-contact__lead {
  margin: 0 0 48px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-3);
  text-wrap: pretty;
}

.p-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p-form__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.p-form__req {
  font-size: 10px;
  padding: 3px 8px;
  background: #c0392b;
  color: #ffffff;
}

.p-form input[type="text"],
.p-form input[type="email"],
.p-form input[type="tel"] {
  height: 52px;
  border: 1px solid #d7dbe0;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
  color: var(--text);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.p-form textarea {
  border: 1px solid #d7dbe0;
  padding: 16px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.9;
  resize: vertical;
  background: #ffffff;
  color: var(--text);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.p-form input:focus,
.p-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

/* チェックボックス（返信のご希望） */
.p-form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 4px;
}

.p-form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
}

.p-form__check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
  cursor: pointer;
}

.p-form__submit {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.c-btn {
  min-width: 280px;
  height: 60px;
  background: var(--navy);
  color: #ffffff;
  border: none;
  font-size: 15px;
  letter-spacing: .12em;
  font-family: inherit;
  cursor: pointer;
  transition: background-color .2s ease;
}

.c-btn:hover { background: var(--navy-hover); }

/* --------------------------------------------------------------------------
   10-2. プライバシーポリシー
   -------------------------------------------------------------------------- */

.p-policy__lead {
  margin: 0 0 56px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text-2);
  text-wrap: pretty;
}

.p-policy__sec { margin-bottom: 48px; }

.p-policy__sec:last-of-type { margin-bottom: 0; }

.p-policy__title {
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: 'Zen Old Mincho', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--navy);
}

.p-policy p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text-2);
  text-wrap: pretty;
}

.p-policy p:last-child { margin-bottom: 0; }

.p-policy ul,
.p-policy ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
}

.p-policy li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-2);
}

.p-policy li:last-child { margin-bottom: 0; }

.p-policy__box {
  margin-top: 20px;
  padding: 32px;
  background: var(--bg-soft);
}

.p-policy__date {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  text-align: right;
  font-size: 13px !important;
  line-height: 2 !important;
  color: var(--gray) !important;
}

/* --------------------------------------------------------------------------
   10-3. 確認画面（mail.php）／送信完了ページ（thanks.html）
   -------------------------------------------------------------------------- */

.p-confirm__lead {
  margin: 0 0 40px;
  font-size: 15px;
  line-height: 2.1;
  color: var(--text-3);
  text-align: center;
  text-wrap: pretty;
}

/* mail.php の confirmOutput() が <tr><th>項目名</th><td>入力値</td></tr> を出力する */
.p-confirm-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--text);
}

.p-confirm-table th,
.p-confirm-table td {
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.p-confirm-table th {
  width: 220px;
  padding: 24px 16px 24px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.p-confirm-table td {
  padding: 24px 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  word-break: break-all;
}

.p-confirm__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* 入力エラー表示 */
.p-confirm__error {
  margin: 0 0 32px;
  padding: 28px 32px;
  background: #fdf3f2;
  border: 1px solid #e8c4bf;
}

.p-confirm__error-head {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  color: #c0392b;
}

.p-confirm__error-body {
  font-size: 14px;
  line-height: 2;
  color: var(--text-2);
}

/* 白抜きボタン（前画面に戻る用） */
.c-btn--ghost {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.c-btn--ghost:hover {
  background: var(--navy);
  color: #ffffff;
}

/* 送信完了ページ */
.p-thanks {
  text-align: center;
  padding-top: 24px;
}

.p-thanks__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 32px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-thanks__icon span {
  display: block;
  width: 26px;
  height: 13px;
  border-left: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: rotate(-45deg);
  margin-top: -6px;
}

.p-thanks__title {
  margin: 0 0 32px;
  font-family: 'Zen Old Mincho', serif;
  font-size: 30px;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: .05em;
  text-wrap: pretty;
}

.p-thanks__text {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 2.2;
  color: var(--text-2);
  text-wrap: pretty;
}

.p-thanks__note {
  margin: 48px auto 0;
  padding: 32px;
  background: var(--bg-soft);
  text-align: left;
  max-width: 640px;
}

/* 枠内は説明文・連絡先とも同じ文字色に揃える（グレーだと読みにくいため） */
.p-thanks__note p {
  margin: 0;
  font-size: 13px;
  line-height: 2.1;
  color: var(--text-2);
}

.p-thanks__note strong {
  color: var(--text-2);
  font-weight: 400;
}

.p-thanks__back {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* --------------------------------------------------------------------------
   11. ページトップへ戻る
   -------------------------------------------------------------------------- */

.p-pagetop {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: 64px;
  height: 64px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--navy);
  color: #ffffff;
}

.p-pagetop.is-visible {
  display: flex;
  animation: djFade .3s ease both;
}

.p-pagetop:hover {
  background: var(--navy-hover);
  color: #ffffff;
}

.p-pagetop__arrow {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 1.5px solid #ffffff;
  border-right: 1.5px solid #ffffff;
  transform: rotate(-45deg);
  margin-bottom: -2px;
}

.p-pagetop__label {
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   12. フッター
   -------------------------------------------------------------------------- */

.l-footer {
  background: var(--footer-bg);
  color: #ffffff;
  margin-top: 0;
}

.l-footer__inner {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 72px 32px 40px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

/* フッターの社名は名刺の字体に合わせてゴシック体（細め）にしている */
.p-fbrand__name {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: .12em;
}

.p-fbrand__addr {
  margin: 0;
  font-size: 13px;
  line-height: 2;
  color: rgba(255, 255, 255, .55);
}

.p-fnav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.p-fnav__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.p-fnav__head {
  font-size: 14px;
  color: #ffffff;
}

.p-fnav__link {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.p-fnav__head:hover,
.p-fnav__link:hover { color: var(--pale); }

/* 外部サイトへのリンク（パックマーケット） */
.p-fnav__ext {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.p-fnav__ext-icon {
  font-size: 10px;
  opacity: .7;
}

.l-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

.l-footer__copy {
  max-width: var(--inner);
  margin: 0 auto;
  padding: 22px 32px;
  font-size: 11px;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .45);
}

/* --------------------------------------------------------------------------
   13. レスポンシブ
       ブレークポイントはデザイン側の指定に合わせて 960 / 780 / 520px
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {

  .l-side,
  .p-home-msg__inner,
  .p-biz,
  .p-home-news,
  .l-footer__inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }

  /* サイドナビは横並び2列に */
  .p-sidenav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* ヘッダー */
  .l-header__inner {
    height: 64px !important;
    padding: 0 18px !important;
  }

  .p-gnav { display: none !important; }

  .p-burger { display: flex !important; }

  /* SPではロゴまわりを縮小して1行に収める */
  .p-logo { gap: 10px; }

  .p-logo__img { height: 34px; }


  /* トップのニュース */
  .p-home-news {
    gap: 28px !important;
    padding-top: 64px !important;
  }

  /* ニュース行を2段組みに */
  .p-newsrow,
  .p-newslist--page .p-newsrow {
    grid-template-columns: auto auto 1fr !important;
    grid-template-rows: auto auto;
    gap: 10px 14px !important;
    align-items: center !important;
    padding: 24px 8px !important;
  }

  .p-newsrow__date {
    grid-column: 1;
    grid-row: 1;
  }

  .p-newsrow__tag {
    grid-column: 2;
    grid-row: 1;
    width: 80px;
    padding: 3px 0 !important;
    font-size: 10px !important;
  }

  .p-newsrow__title {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 14px !important;
  }

  /* 事業内容の画像は文章の下へ */
  .p-biz .c-photo { order: 2; }
}

@media (max-width: 780px) {

  .p-cards__grid,
  .p-biztabs,
  .p-fnav {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .l-inner,
  .l-narrow,
  .l-article,
  .l-side,
  .p-cards,
  .p-home-news,
  .p-pagehead,
  .p-hero__body,
  .p-home-msg__inner,
  .l-footer__inner,
  .l-footer__copy,
  .p-breadcrumb__inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }


  .p-pagehead { padding-top: 48px; padding-bottom: 48px; }

  .p-pagehead__title { font-size: 30px; }

  .p-message__title { font-size: 26px; }

  .p-article__title { font-size: 24px; }

  .p-home-msg__title { font-size: 26px; }

  .p-biz__title { font-size: 25px; }

  .p-biztabs { margin-bottom: 56px; }

  .p-biz { margin-bottom: 64px; }

  /* SPは横位置のグラデーションが効かない（文字が全幅に広がる）ため縦位置に切り替える。
     文字が乗る中央帯を濃くして、ラベル12px・リード16pxでも 4.5:1 を満たす濃度にしている。 */
  .p-hero__overlay {
    background: linear-gradient(180deg,
      rgba(15, 63, 122, .50) 0%,
      rgba(15, 63, 122, .70) 25%,
      rgba(15, 63, 122, .70) 75%,
      rgba(15, 63, 122, .50) 100%);
  }

  .c-photo--h460 { height: 380px; }

  .c-map { height: 260px; }
}

@media (max-width: 520px) {

  .p-cards__grid,
  .p-biztabs,
  .p-fnav {
    grid-template-columns: 1fr !important;
  }

  .p-profile th,
  .p-profile td {
    display: block;
    width: auto;
    padding: 0;
  }

  .p-profile th { padding: 20px 0 6px; }

  .p-profile td { padding: 0 0 20px; }

  .p-officers__row {
    flex-direction: column;
    gap: 2px;
  }

  .p-officers__row dt { flex-basis: auto; }

  .p-history__row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .p-article__box { padding: 24px 20px; }

  .c-btn,
  .c-btn-line { min-width: 100%; }
}

/* 確認画面・完了ページのレスポンシブ */
@media (max-width: 780px) {

  /* 項目名と入力値を縦積みに */
  .p-confirm-table th,
  .p-confirm-table td {
    display: block;
    width: auto;
    border-bottom: 0;
  }

  .p-confirm-table th { padding: 20px 0 6px; }

  .p-confirm-table td {
    padding: 0 0 20px;
    border-bottom: 1px solid var(--line);
  }

  .p-confirm__actions {
    flex-direction: column-reverse;
    gap: 12px;
  }

  .p-confirm__actions .c-btn { width: 100%; }

  .p-confirm__error { padding: 22px 20px; }

  .p-thanks__title { font-size: 24px; }

  .p-thanks__note { padding: 24px 20px; }
}
