@charset "UTF-8";
/*
Theme Name: デジタルハーツ韓国
Theme URI:
Author:
Author URI:
Description: DIGITAL HEARTS Seoul向けオリジナルWordPressテーマです。TOPページ、お知らせ（投稿）一覧・詳細、固定ページ（会社概要・サービス紹介・お問い合わせ等）に対応しています。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dhk-theme
*/

:root{
  --ink:#14181f;
  --ink-doubble-soft: #4e4e4e;
  --ink-soft:#4a505c;
  --paper:#ffffff;
  --paper-soft:#f6f6f8;
  --line:#e6e6ea;
  --accent:#e0293e;
  --accent-dark:#b91f30;
  --radius:14px;
}

/* ==========================================================================
   基本設定
   ========================================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Poppins', "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body {
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
body.is-transitioning {
    opacity: 0;
    transform: translateY(-40px); /* 上方向に20px移動しながらフェードアウト */
}

a {
  color: var(--ink-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.container,
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* .container の中に .wrap（またはその逆）がネストされているページでは、
   左右のpaddingが二重にかかって幅が狭くなりすぎるため、内側の要素のpaddingだけ打ち消す。
   前後関係に関わらず動作するよう両方向を指定（.wrap単体で使われているfront-page.phpの
   サービス・ニュース実績・お問い合わせセクションなどには影響しません） */
.container .wrap,
.wrap .container {
  padding-left: 0;
  padding-right: 0;
}

.eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   パンくずリスト（全ページ共通。functions.php の dhk_theme_breadcrumbs() で出力）
   ========================================================================== */
.breadcrumbs {
  padding: 16px 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--ink-soft);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(ink-soft);
}

.breadcrumbs a {
  color: var(--ink-soft);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs li[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   ヘッダー（全ページ共通 / header.php）
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  flex-wrap: wrap;
}

.site-title {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.site-title a {
  color: var(--ink);
  display: flex;
  align-items: center;
}

.site-title span {
  color: var(--accent);
}

.site-logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.global-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 36px;
  flex-wrap: wrap;
}

.global-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease;
}

.global-nav a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   ボタン
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover {
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .5);
}

/* ==========================================================================
   ヒーロー（TOPページ上部）
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("images/top.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transform-origin: center center;
  will-change: transform;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 31, .5);
}

/*
.hero-bg::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(224, 41, 62, .55), rgba(224, 41, 62, 0) 70%);
}
*/
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  padding: 120px 0;
}

.hero .eyebrow {
  color: #ff8d98;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.25;
  margin: 20px 0 24px;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero p {
  font-size: 17px;
  color: #e0e1e2;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* 区切り線（見出しと本文の間の赤いライン。下にスクロールすると分かれて消えます） */
.hero-divider {
  height: 3px;
  width: 64px;
  background: var(--accent);
  border-radius: 2px;
  margin: 4px 0 28px;
  transform-origin: center;
}

/* ==========================================================================
   セクション共通
   ========================================================================== */

/* TOPページの <section> タグ全般の上下余白（クラス指定のない場合） */
section {
  padding: 100px 0;
}

/* about/service/news/contact/policy等の各ページで使う共通クラス */
.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  font-size: 24px;
  margin: 0 0 20px;
  border-left: 6px solid var(--accent);
  padding-left: 12px;
}

.page-content h1 {
  font-size: 28px;
  margin: 0 0 24px;
  border-left: 6px solid var(--accent);
  padding-left: 12px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 20px;
}

.section-head .eyebrow {
  margin-bottom: 14px;
  display: block;
}

.section-head h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
}

.soft {
  background: var(--paper-soft);
}

/* ==========================================================================
   会社情報テーブル（page-about.phpの.about-intro内などで使用）
   ========================================================================== */
.info-table {
  border-top: 1px solid var(--line);
}

.info-row {
  display: flex;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}

.info-row dt {
  width: 110px;
  flex: 0 0 110px;
  margin: 0;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ブラウザ標準のdd要素にはmargin-inline-start(左マージン)が最初から付いており、
   これを打ち消さないとスマホなど狭い画面でdd（値側）だけ右にずれて見える。
   （会社概要ページの会社情報テーブル・お問い合わせ情報・スマホメニュー内の連絡先で発生） */
.info-row dd {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-weight: 600;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ==========================================================================
   お知らせ（ニュース）一覧・詳細（page-news.php / home.php / single.php）
   ========================================================================== */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}

.news-date {
  color: var(--ink-soft);
  min-width: 100px;
}

/* 詳細ページ（single.php）：日付とバッジを横並びに */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.entry-meta .badge {
  margin-bottom: 0;
}

/* 詳細ページ（single.php）：タイトル下のサムネイル画像 */
.entry-thumb {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.entry-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.entry-content {
  margin-top: 20px;
}

.entry-content img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}

.entry-content figure {
  margin-bottom: 40px;
  width: 100% !important;
}

.entry-content p {
  line-height: 2em;
}

/* 投稿本文の画像ギャラリー（画像を2枚以上入れると自動表示。メイン画像＋サムネイル切り替え） */
.entry-gallery {
  margin-bottom: 32px;
}

.entry-gallery-main {
  overflow: hidden;
  background: var(--paper-soft);
  margin-bottom: 12px;
  aspect-ratio: 16 / 9;
}

.entry-gallery .entry-gallery-main img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0;
}

.entry-gallery .entry-gallery-main video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  margin: 0;
}

/* サムネイルは最大5枚まではメイン画像の幅いっぱいに均等に並び、
   6枚目以降は同じ幅のまま横スライド（横スクロール）で見られるようにしています */
.entry-gallery-thumbs-wrap {
  position: relative;
}

.entry-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.entry-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.entry-gallery-thumb {
  position: relative;
  flex: 0 0 calc((100% - (var(--entry-gallery-thumb-count, 5) - 1) * 10px) / var(--entry-gallery-thumb-count, 5));
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 2px solid transparent;
  overflow: hidden;
  background: none;
  cursor: pointer;
  transition: border-color .15s ease;
}

.entry-gallery .entry-gallery-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* 動画サムネイル：ポスター画像が無い場合の代替背景と、常時表示される再生アイコン */
.entry-gallery-thumb-video-fallback {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #4a4f57;
}

.entry-gallery-thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(20, 24, 31, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.entry-gallery-thumb-play::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff;
}

.entry-gallery-thumb.is-active,
.entry-gallery-thumb:hover {
  border-color: var(--accent);
}

/* サムネイルが5枚を超えて隠れているときだけ表示される「＜」「＞」ボタン（JSでdisplay制御） */
.entry-gallery-thumbs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 6px rgba(20, 24, 31, .25);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background .15s ease;
}

.entry-gallery-thumbs-nav:hover {
  background: #fff;
}

.entry-gallery-thumbs-nav:disabled {
  opacity: .35;
  cursor: default;
}

.entry-gallery-thumbs-prev {
  left: 6px;
}

.entry-gallery-thumbs-next {
  right: 6px;
}

/* 投稿本文内のテーブル（Gutenbergのテーブルブロック）。左＝タイトル、右＝説明のナンバードインデックス。
   CSSカウンターで行番号を自動採番（JS不使用）。テーブル全体を1枚のカードにし、行同士は横線で区切る。 */
.entry-content .wp-block-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 24px;
  box-shadow: 0 10px 24px -18px rgba(20, 24, 31, .35);
}

.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content .wp-block-table tbody {
  counter-reset: dhk-row;
}

.entry-content .wp-block-table tr {
  counter-increment: dhk-row;
  border-bottom: 1px solid var(--line);
}

.entry-content .wp-block-table tr:last-child {
  border-bottom: none;
}

.entry-content .wp-block-table td,
.entry-content .wp-block-table th {
  /* Gutenbergの初期スタイル（.wp-block-table td/th { border: 1px solid; }）を明示的に解除 */
  border: none;
  padding: 24px 18px;
  vertical-align: top;
  text-align: left;
}

.entry-content .wp-block-table td:first-child,
.entry-content .wp-block-table th:first-child {
  position: relative;
  width: 30%;
  padding-left: 54px;
  font-weight: 600;
  color: var(--ink);
}

.entry-content .wp-block-table td:first-child::before,
.entry-content .wp-block-table th:first-child::before {
  content: counter(dhk-row, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 19px;
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--line);
  transition: color .18s ease;
}

.entry-content .wp-block-table td:last-child,
.entry-content .wp-block-table th:last-child {
  color: var(--ink-soft);
}

.entry-content .wp-block-table tr:hover td:first-child::before,
.entry-content .wp-block-table tr:hover th:first-child::before {
  color: var(--accent);
}

@media (max-width: 600px) {
  .entry-content .wp-block-table {
    padding: 4px 16px;
  }

  .entry-content .wp-block-table table,
  .entry-content .wp-block-table tbody,
  .entry-content .wp-block-table tr,
  .entry-content .wp-block-table td,
  .entry-content .wp-block-table th {
    display: block;
    width: 100%;
  }

  .entry-content .wp-block-table tr {
    margin-bottom: 0;
  }

  .entry-content .wp-block-table tr:last-child {
    margin-bottom: 0;
  }

  .entry-content .wp-block-table td:first-child,
  .entry-content .wp-block-table th:first-child {
    width: 100%;
    padding-bottom: 4px;
  }

}

/* ニュース投稿だけは、カード・数字を使わない通常の罫線テーブルに戻す。
   実績投稿側は上のナンバードインデックスのまま。
   .entry-content-news は single.php 側で $dhk_theme_is_case（has_category('cases')）が
   false のときに付与している（カテゴリー未設定の投稿でも確実にニュース扱いにするため、
   body_class() の category-* クラスではなくこちらを使っている）。 */
.entry-content-news .wp-block-table {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.entry-content-news .wp-block-table tr {
  border-bottom: none;
}

.entry-content-news .wp-block-table td,
.entry-content-news .wp-block-table th {
  border: 1px solid var(--line);
  padding: 14px 18px;
}

.entry-content-news .wp-block-table td:first-child,
.entry-content-news .wp-block-table th:first-child {
  width: 30%;
  padding-left: 18px;
  background: var(--paper-soft);
}

.entry-content-news .wp-block-table td:first-child::before,
.entry-content-news .wp-block-table th:first-child::before {
  content: none;
}

@media (max-width: 600px) {
  .entry-content-news .wp-block-table {
    padding: 0;
  }

  .entry-content-news .wp-block-table td:first-child,
  .entry-content-news .wp-block-table th:first-child {
    border-bottom: none;
  }
}

.back-link {
  margin-top: 40px;
  text-align: center;
}

/* お知らせ一覧ページの「全て／ニュース／実績」絞り込みセレクト */
.news-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
}

.news-filter label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.news-filter select {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
}

.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.pagination .page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ==========================================================================
   サービス（TOPページのサービスカード。/service/ページの.service-itemとは別物）
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 32px 24px;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  transition: transform .15s ease;
}

.service-card:hover { transform: translateY(-4px); }

/* サービスカードの背景画像（<img>で埋め込み。background-imageは使わない）。
   カード自体の背景色（nth-childで指定）を上からうっすら重ねて見せるため、
   画像には opacity をかけている。差し替えは front-page.php 内の画像パスを変更してください。 */
.service-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .5;
  z-index: 0;
}

/* 背景画像の上にテキストなどを重ねて表示するため、前面に出す要素だけ z-index を上げる */
.service-top,
.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-num {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  opacity: .6;
}

.service-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: .9;
}

.service-card h3 {
  font-size: 20px;
  margin-top: 10px;
}

.service-card p {
  font-size: 13.5px;
  opacity: .85;
}

/* ==========================================================================
   実績（カード）
   ========================================================================== */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

/* ==========================================================================
   関連ニュース・実績（投稿詳細ページ／single.phpの「一覧に戻る」の下）
   ========================================================================== */
.related-news {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   お知らせ・実績スライダー（TOPページ／js/news-slider.js）
   ========================================================================== */
.news-slider {
  position: relative;
  padding: 0 56px;
}

.news-slider-viewport {
  overflow: hidden;
}

.news-slider-track {
  display: flex;
  gap: 24px;
  transition: transform .45s ease;
  will-change: transform;
}

.news-slider-track .case-card {
  flex: 0 0 calc((100% - 24px * 2) / 3);
  max-width: calc((100% - 24px * 2) / 3);
}

.news-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s ease, color .15s ease;
}

.news-slider-btn:hover {
  background: var(--ink);
  color: #fff;
}

.news-slider-prev {
  left: 0;
}

.news-slider-next {
  right: 0;
}

.news-slider.is-single .news-slider-btn {
  display: none;
}

.case-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(20, 24, 31, .08);
  color: inherit;
  text-decoration: none;
}

/* 投稿のアイキャッチ画像をサムネイルとして表示（インラインstyleのbackground-imageで指定）。
   アイキャッチが無い投稿は背景色のみになり、中央に「NO IMAGE」の文字が表示されます。 */
.case-thumb {
  height: 170px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #8a8f99;
  letter-spacing: .05em;
  background-color: var(--paper);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;
}

.case-body {
  padding: 22px;
}

/* 「NEWS」「実績」のバッジ。投稿のカテゴリー */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.badge-news {
  background: #fdeaec;
  color: var(--accent);
}

.badge-case {
  background: var(--ink);
  color: #fff;
}

/* 今月（当月）投稿された記事にだけ表示される「NEW」バッジ。
   .case-meta内でmargin-left:autoにより、日付と同じ行の右端に配置されます */
.badge-new {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 4px 10px;
  margin-left: auto;
  color: var(--accent);
}

/* バッジ・日付・NEWを横並びにし、NEWだけ右端に寄せるための行 */
.case-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.case-meta .badge,
.case-meta .case-tag {
  margin-bottom: 0;
}

.case-tag {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 8px;
  margin-left: 8px;
  display: inline-block;
}

.case-body h3 {
  font-size: 16.5px;
  margin-bottom: 8px;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ==========================================================================
   採用CTA
   ========================================================================== */
.recruit {
  background-image: url("images/img_recruit_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  border-radius: 24px;
  padding: 56px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.recruit h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.recruit p {
  color: #b6b9c0;
  font-size: 14.5px;
}

/* ==========================================================================
   お問い合わせ（TOPページのフォーム見本／page-contact.phpのCF7調整）
   ========================================================================== */
#contact {
  overflow-x: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  width: 100%;
}

/* グリッドの子要素はデフォルトで min-width:auto のため、
   中の住所テキストやマップ・フォーム部品が縮みきれず、
   contact-grid ごと親要素の外へはみ出すことがある。0にして縮めるようにする。 */
.contact-grid > .contact-info,
.contact-grid > .form-card {
  min-width: 0;
}

.contact-info dl {
  margin-top: 28px;
}

.contact-info .info-row dt {
  width: 90px;
  flex: 0 0 90px;
}

.contact-map {
  height: 220px;
  background: var(--paper-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8abb2;
  font-size: 13px;
  margin-top: 28px;
}

/* .about-map iframeと同様に明示指定（HTMLのwidth/height="100%"属性だけに頼らない） */
.contact-map iframe {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
}

.form-card {
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 15px;
}

.form-row {
  margin-bottom: 15px;
}

.wpcf7-form p {
  margin-bottom: 28px;
}

/* このフォームは <p> ではなく <label>見出し<br>[tag]</label> という構成のため、
   段落の余白だけでなく label 自体にも余白を持たせて項目間を離しています */
.wpcf7-form label {
  display: block;
}

.wpcf7-form label input,
.wpcf7-form label select,
.wpcf7-form label textarea {
  margin-top: 10px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
}

.wpcf7-list-item {
  display: inline-block;
  margin: 0;
}

.wpcf7-form input[type="submit"] {
  display: block;
  margin: 0 auto;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background: var(--accent-dark);
}

@media (max-width: 600px) {
  .wpcf7-form input[type="submit"] {
    width: 100%;
  }
}

/* form-card内のCF7送信ボタン */
.form-card .wpcf7-form input[type="submit"] {
  width: 100%;
  margin-top: 4px;
}

/* CF7のエラーメッセージ・送信結果メッセージ */
.form-card .wpcf7-not-valid-tip {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--accent);
}

.form-card .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  border: 1px solid var(--line);
}

.form-center {
  text-align: center;
}

.wpcf7-spinner {
  display: none;
}

/* CF7のセレクトボックス（[select* service-select ...]）*/
.wpcf7-form select,
.wpcf7-form .wpcf7-select {
  width: 100%;
  padding: 10px 36px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.wpcf7-form .wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

/* service-selectは他の入力欄より幅を狭く（親要素の約30%）します。
   display:block にして、狭くても後ろの項目が横に回り込まないようにしています。 */
.wpcf7-form .wpcf7-form-control-wrap[data-name="service-select"] {
  display: block;
  width: 30%;
  min-width: 140px;
  margin-bottom: 28px;
}

.wpcf7-form .wpcf7-form-control-wrap[data-name="service-select"]::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.wpcf7-response-output {
    display: none !important;
}
/* ==========================================================================
   お問い合わせページ（page-contact.php）
   ========================================================================== */
.contact-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.contact-card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 48px 40px;
}

@media (max-width: 600px) {
  .contact-card {
    padding: 32px 24px;
  }
}

/* ==========================================================================
   フッター（全ページ共通 / footer.php）
   ========================================================================== */
.site-footer {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 64px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}

.footer-col .site-logo-img {
  margin-bottom: 12px;
}

.footer-col h4 {
  color: var(--ink);
  font-size: 13.5px;
  margin-bottom: 18px;
  letter-spacing: .03em;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: #9098a3;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   会社概要ページ（page-about.php）
   ========================================================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
  margin: 40px 0 48px;
}

.about-logo {
  display: block;
  margin: 0 auto;
}

.about-map {
  height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 56px;
}

.about-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* グループ会社一覧（page-about.php #gurop）。写真と情報が左右交互になる並びです */
.group-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin: 40px 0 24px;
}

.group-row {
  display: flex;
  gap: 48px;
}

.group-row:nth-child(even) {
  flex-direction: row-reverse;
}

.group-photo {
  position: relative;
  flex: 1 1 45%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-soft);
}

.group-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.group-photo-fallback {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  color: #8a8f99;
}

.group-info {
  flex: 1 1 55%;
}

.group-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.group-name {
  font-size: 22px;
  margin: 0 0 14px;
}

.group-line {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

/* グループ会社（エンターテイメント事業）。ロゴ枠＋情報のカードを横並びグリッドで表示します
   .entertainment-card は subgrid で「ロゴ／会社名／詳細」の3行を親グリッドの行に揃えています。
   これにより、同じ横並びペアの中でだけ高さが揃い（会社名が2行になっても隣の1行のカードが
   引っ張られるのはそのペアだけ）、他のペアの短い会社名にまで余白が広がることはありません。 */
.entertainment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  row-gap: 0;
  margin: 40px 0 24px;
}

.entertainment-card {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}

.entertainment-logo-box {
  position: relative;
  aspect-ratio: 2 / 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  margin-bottom: 20px;
}

.entertainment-logo-box img {
  /* 固定の300pxだと、スマホ幅では.entertainment-logo-boxのpaddingを差し引いた
     内側の幅より広くなり、ロゴ画像が親要素からはみ出してしまうため、
     画面が狭いときは親要素の幅を超えないようにする */
  max-width: min(300px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.entertainment-logo-fallback {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  color: #8a8f99;
}

.entertainment-name {
  font-size: 22px;
  margin: 0 0 14px;
  align-self: start;
}

.entertainment-details {
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .group-row,
  .group-row:nth-child(even) {
    flex-direction: column;
    gap: 24px;
  }

  .group-photo {
    width: 100%;
  }

  .entertainment-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   サービス紹介ページ（page-service.php）
   ========================================================================== */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-item {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.service-item h2 {
  font-size: 18px;
  margin: 0 0 10px;
}

/* ==========================================================================
   ポリシー系ページ（page-policy.php / page-privacy.php / page-security.php）
   h1はページ独立の見出し（.page-content h1）のまま、それ以外（.policy-text）は
   薄いグレーの背景ボックスにまとめています。中のh2は装飾（左の赤いボーダー）無しです。
   ========================================================================== */
.policy-text {
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 40px;
  margin-top: 32px;
}

.policy-text h2 {
  font-size: 18px;
  margin: 32px 0 12px;
  border-left: none;
  padding-left: 0;
}

.policy-text h2:first-of-type {
  margin-top: 0;
}

.policy-date {
  margin-top: 40px;
  color: var(--ink-soft);
  text-align: right;
}

@media (max-width: 600px) {
  .policy-text {
    padding: 28px 24px;
  }
}

/* ==========================================================================
   フッターを常にブラウザ最下部に固定（コンテンツが少ないページ用）
   ========================================================================== */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
}

.site-header,
.site-footer {
  flex-shrink: 0;
}

/* ==========================================================================
   ハンバーガーメニュー（スマホ表示・全ページ共通）
   ========================================================================== */

/* PC表示ではボタンを非表示 */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ボタンを押すと「×」に変形 */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ×表示中にホバーすると、もう少し回転する（参考サイトのクローズボタン挙動） */
@media (any-hover: hover) {
  .menu-toggle.is-active:hover span:nth-child(1) {
    transform: translateY(9.5px) rotate(135deg);
  }

  .menu-toggle.is-active:hover span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-135deg);
  }
}

/* ロゴとお問い合わせ情報は、スマホのフルスクリーンメニュー内でのみ表示する */
.global-nav-logo,
.menu-contact {
  display: none;
}

@media (max-width: 768px) {
  /* ハンバーガーボタンを表示。.container の内側padding幅に関係なく、
     画面の右端から一定の距離の位置に固定表示する（開閉どちらの状態でも同じ位置） */
  .menu-toggle {
    display: flex;
    position: fixed;
    top: 27px;
    right: 20px;
  }

  /* 通常は画面外に隠しておき、開いたときだけ全画面オーバーレイで表示 */
  .global-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--paper);
    display: flex;
    justify-content: center;
    padding: 132px 32px 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    z-index: 1050;
  }

  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .global-nav-inner {
    width: 100%;
    max-width: 420px;
  }

  /* メニュー内、最も左上に固定表示するロゴ */
  .global-nav-logo {
    position: absolute;
    top: 10px;
    left: 32px;
    display: inline-flex;
    align-items: center;
  }

  .global-nav-logo img {
    display: block;
    height: 50px;
    width: auto;
  }

  .global-nav ul {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: nav-item;
  }

  /* 各項目はメニューが開くと一つずつ時間差でフェード・スライドインする */
  .global-nav li {
    counter-increment: nav-item;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .global-nav.is-open li {
    opacity: 1;
    transform: translateY(0);
  }

  .global-nav.is-open li:nth-child(1) { transition-delay: 0.08s; }
  .global-nav.is-open li:nth-child(2) { transition-delay: 0.16s; }
  .global-nav.is-open li:nth-child(3) { transition-delay: 0.24s; }
  .global-nav.is-open li:nth-child(4) { transition-delay: 0.32s; }
  .global-nav.is-open li:nth-child(5) { transition-delay: 0.4s; }

  /* ナンバリングや大きな文字組みはナビの項目リンクだけに適用する（ロゴ・お問い合わせ内のリンクには適用しない） */
  .global-nav ul a {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 22px 0;
    border-bottom: none;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  /* 参考サイトと同じ、連番を振った小さなナンバリング表示 */
  .global-nav ul a::before {
    content: counter(nav-item, decimal-leading-zero);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    color: var(--accent);
  }

  .global-nav ul a:hover {
    color: var(--accent);
    text-decoration: none;
  }

  /* メニュー下部のお問い合わせ情報（サイト共通の.contact-infoとは別クラスにして衝突を避ける） */
  .menu-contact {
    display: block;
    margin-top: 40px;
    padding-bottom: 32px;
  }

  .menu-contact .info-row dt {
    width: 90px;
    flex: 0 0 90px;
  }

  .menu-contact dd a {
    color: var(--ink);
  }

  .menu-contact dd a:hover {
    color: var(--accent);
  }

  .menu-contact-map {
    margin-top: 24px;
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
  }

  .menu-contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
  }

  /* メニュー表示中は背面のスクロールを止める */
  body.nav-open {
    overflow: hidden;
  }
}

/* ==========================================================================
   レスポンシブ（TOPページのグリッド類・スマホ/タブレット対応）
   ========================================================================== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .news-slider-track .case-card {
    flex: 0 0 calc((100% - 24px) / 2);
    max-width: calc((100% - 24px) / 2);
  }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 80px 20px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .contact-cta {
    padding: 80px 0;
  }

  .contact-cta h2 {
    font-size: 28px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .news-slider {
    padding: 0 44px;
  }

  .news-slider-track .case-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .cases-grid {
    grid-template-columns: 1fr;
  }

  .recruit {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 28px;
    margin: 0 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-item {
    flex-direction: column;
    gap: 4px;
  }
}

/* ================= 採用ページ (recruit) ================= */

.recruit-page { padding: 0 !important; }

.rc-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

/* 共通：写真＋フォールバック */
.rc-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  overflow: hidden;
}

.rc-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: flex;
  align-items: center;
  transition: transform .5s ease;
}

.rc-photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1c2029 0%, #2c3140 60%, #3a2530 100%);
  color: rgba(255,255,255,.35);
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
  padding: 0 12px;
}

/* Hero */
.rc-hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
}

.rc-hero-media { position: absolute; inset: 0; }

.rc-hero-overlay {
  position: absolute;
  inset: 0;
  background-image: url("images/recruit/recruit_bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.rc-hero-copy { position: relative; z-index: 1; padding: 0 6vw 90px; }

.rc-hero-copy h1 {
  font-size: clamp(32px, 6vw, 68px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}

.rc-scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 20px;
  background: transparent;
  cursor: pointer;
  z-index: 1;
}

.rc-scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: rcScrollCue 1.6s ease-in-out infinite;
}

@keyframes rcScrollCue {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}

/* Story */
.rc-story {
  padding: 120px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.rc-story-text {
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
}

.rc-story-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

/* Culture Pillars */
.rc-pillars {
  padding: 60px 0 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.rc-pillar {
  padding: 32px 24px;
  border-top: 3px solid var(--accent);
  background: var(--paper-soft);
  border-radius: 4px;
}

.rc-pillar-num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 16px;
}

.rc-pillar h3 { font-size: 18px; margin-bottom: 8px; }
.rc-pillar p  { font-size: 14px; color: var(--ink-soft); }

/* Gallery */
.rc-gallery { padding: 60px 0 120px; }
.rc-gallery-head { margin-bottom: 40px; }
.rc-gallery-head h2 { font-size: 32px; }

.rc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 12px;
}

.rc-gallery-item { position: relative; border-radius: 8px; overflow: hidden; }
.rc-gallery-item--tall { grid-row: span 2; }
.rc-gallery-item--wide { grid-column: span 2; }
.rc-gallery-item:hover .rc-photo img { transform: scale(1.06); }

/* Team */
.rc-team { padding: 60px 0 120px; }

.rc-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rc-team-card { border-radius: var(--radius); overflow: hidden; background: var(--paper-soft); }
.rc-team-photo { position: relative; }

.rc-team-info { padding: 20px; }
.rc-team-info b { display: block; margin-bottom: 8px; font-size: 15px; }
.rc-team-info p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }

/* CTA */
.rc-cta {
  padding: 140px 0;
  text-align: center;
  background-image: url("images/recruit/recruit_img1.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  border-radius: var(--radius);
  margin: 0 0 100px;
}
.rc-cta h2 { font-size: clamp(24px, 3vw, 36px); margin-bottom: 32px; line-height: 1.4; }

/* ==========================================================================
   お問い合わせCTA（TOPページ最下部／フッター直上）
   ========================================================================== */
.contact-cta {
  position: relative;
  margin: 0;
  padding: 140px 0;
  text-align: center;
  color: #fff;
  background-image: url("images/contact.webp");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 31, .5);
}

.contact-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.contact-cta .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--accent);
}

.contact-cta h2 {
  font-size: 36px;
  margin: 0 0 16px;
  color: #fff;
}

.contact-cta p {
  font-size: 16px;
  color: #dfe1e6;
  margin-bottom: 36px;
}

/* ===== scroll reveal ===== */
.js-reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal.is-visible { opacity: 1; transform: translateY(0); }

.rc-pillars .js-reveal:nth-child(1) { transition-delay: 0s; }
.rc-pillars .js-reveal:nth-child(2) { transition-delay: .1s; }
.rc-pillars .js-reveal:nth-child(3) { transition-delay: .2s; }
.rc-pillars .js-reveal:nth-child(4) { transition-delay: .3s; }
.rc-team-grid .js-reveal:nth-child(1) { transition-delay: 0s; }
.rc-team-grid .js-reveal:nth-child(2) { transition-delay: .12s; }
.rc-team-grid .js-reveal:nth-child(3) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .js-reveal { opacity: 1; transform: none; transition: none; }
  .rc-scroll-cue span { animation: none; }
}

@media (max-width: 900px) {
  .rc-story { grid-template-columns: 1fr; }
  .rc-pillars { grid-template-columns: repeat(2, 1fr); }
  .rc-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .rc-hero { min-height: 80vh; }
  .rc-pillars { grid-template-columns: 1fr; }

  /* スマホは1列で縦に積み、幅は親要素(.containerなどのpaddingを保った内側の幅)いっぱいに広げる */
  .rc-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .rc-gallery-item--tall,
  .rc-gallery-item--wide {
    grid-column: auto;
    grid-row: auto;
  }

}

/* ===== ポリシー系 Table ===== */
.pps-table {
  border-collapse: collapse;
  width: 100%;
}
 
.pps-table th,
.pps-table td {
  border: 1px solid #333;
  padding: 8px 12px;
  text-align: left;
  background-color: transparent;
}
 
.pps-table th {
  font-weight: bold;
}

.pps-list {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.pps-list li::before {
  content: "・";
  margin-right: 2px;
}