/*
Theme Name: bsp_theme
Author: Crossroad Co., Ltd.
*/
@charset "utf-8";
/* -------------------------------------------------------------
   1. DESIGN SYSTEM VARIABLES (デザインシステム定義)
------------------------------------------------------------- */
:root {
  /* カラーポリフォニー */
  --bg-color: #FFFFFF;           /* 70% Base: 白（抜け感と余白） */
  --main-color: #251F1C;         /* 25% Main: 少し茶色がかった黒（重厚感・ブランド色） */
  --accent-color: #C5A880;       /* 5% Accent: シャンパンゴールド（高級感） */
  --accent-color-hover: #A3865E; /* アクセントカラーのホバー時 */
  --text-muted: #6C635F;         /* 補助テキスト：柔らかいグレー */
  --border-color: #E6E1DF;       /* 線の細い境界線 */
  --bg-light: #FBF9F8;           /* 補助的な超薄茶ベージュ背景 */

  /* タイポグラフィ */
  --font-serif: 'Cinzel', 'Noto Serif JP', Didot, 'Georgia', serif;
  --font-sans: 'Montserrat', 'Inter', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;

  /* アニメーション & インタラクション */
  --transition-slow: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -------------------------------------------------------------
   2. RESET & BASE LAYOUT (リセット & ベース - モバイルファースト)
------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--main-color);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* タイポグラフィ基本定義 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  transition: var(--transition-smooth);
}

/* -------------------------------------------------------------
   3. STRUCTURAL ELEMENTS (WordPress互換・No Bootstrap Classes)
------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition-smooth);
}

/* スクロール時のヘッダースタイル（白背景・細い線） */
header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

/* ヘッダー内部コンテナ */
header > div {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 0.75rem; /* 左右の余白を 1.25rem から 0.75rem に縮めてロゴを左端に寄せる */
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled > div {
  padding: 1rem 0.75rem;
}

/* ロゴエリア */
header > div > a {
  display: block;
  width: 240px; /* スマホではロゴを240pxにしてメニューボタンとの間隔を空ける */
  height: auto;
  transition: var(--transition-smooth);
}

header.scrolled > div > a {
  width: 240px;
}

/* ロゴの切り替え (白抜き / ダーク) */
header > div > a img.logo-dark {
  display: none;
}
header.scrolled > div > a img.logo-dark {
  display: block; /* スクロールしてヘッダーが白背景になった時点でロゴを表示する */
}

/* メニュー展開時（ロゴは非表示にする） */
header.menu-open {
  background-color: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}
header.menu-open > div > a img.logo-dark {
  display: none !important; /* メニューオープン時は非表示 */
}

/* 下層ページ用のヘッダー (最初から白背景) */
header.header-sub {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
}
header.header-sub > div {
  padding: 1rem 0.75rem; /* スマホ用余白 */
}
header.header-sub > div > a {
  width: 240px; /* スマホ用ロゴサイズ */
}
header.header-sub > div > a img.logo-dark {
  display: block;
}

/* ナビゲーションメニュー */
.site-header nav {
  display: none; /* スマホではハンバーガーメニューへ */
}

.site-header nav ul {
  display: flex;
  list-style: none;
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 5px;
}

.site-header nav ul li a {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #FFFFFF; /* デフォルトは白 (ヒーロー用) */
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
}

/* ヘッダースクロール時 ＆ 下層ページヘッダーのナビゲーションリンクの色 */
header.scrolled nav ul li a,
header.header-sub nav ul li a {
  color: var(--main-color);
}

.site-header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.site-header nav ul li a:hover {
  color: var(--accent-color) !important;
}

.site-header nav ul li a:hover::after {
  width: 100%;
}

/* スマホ用ハンバーガーメニューボタン */
.menu-trigger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.menu-trigger span {
  width: 100%;
  height: 1px;
  background-color: #FFFFFF;
  transition: var(--transition-smooth);
}

header.scrolled .menu-trigger span,
header.header-sub .menu-trigger span {
  background-color: var(--main-color);
}

/* スマホ用ドロワーメニュー */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--main-color);
  z-index: 1050;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.mobile-nav ul li a {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: #FFFFFF;
  letter-spacing: 0.2em;
}

.mobile-nav ul li a:hover {
  color: var(--accent-color);
}

/* ハンバーガー開閉時のアニメーション */
.menu-trigger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background-color: #FFFFFF !important;
}
.menu-trigger.active span:nth-child(2) {
  opacity: 0;
}
.menu-trigger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background-color: #FFFFFF !important;
}

/* メイン領域 */
main {
  width: 100%;
  overflow-x: hidden;
}

/* フッター */
footer {
  background-color: var(--main-color);
  color: #FFFFFF;
  padding: 6rem 1.5rem 4rem 1.5rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer > div {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  width: 150px;
  margin-bottom: 1.5rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-company-name {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.footer-links-group{
  padding-right: 5px;
}

.footer-links-group h3 {
  font-family: var(--font-serif);
  font-size:1.1rem;
  color: var(--accent-color);
  margin-bottom: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-group ul li a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.footer-links-group ul li a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

/* 下層記事レイアウト用 (article) */
article {
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem 1.5rem;
}

article h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--main-color);
}

article h2 {
  font-size: 1.35rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--main-color);
}

article h3 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--main-color);
}

article p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  color: var(--main-color);
  text-align: justify;
}
.page-thanks article{
  padding: 0 1.5rem;
}
/* -------------------------------------------------------------
   4. COMPONENT & SECTION CONTENT (Bootstrap 5 を利用可能)
------------------------------------------------------------- */

/* 意図的な余白設計のためのセクション間マージン */
section {
  padding: 4rem 0; /* モバイルの標準余白 */
}

@media (min-width: 768px) {
  section {
    padding: 6rem 0; /* PC・タブレットの標準余白 */
  }
}

/* ヒーローセクション */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  text-align: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(37, 31, 28, 0.4), rgba(37, 31, 28, 0.65)), url('./img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  transition: transform 12s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.05);
}

.hero-section:hover .hero-bg {
  transform: scale(1);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 1.5rem;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(0.75rem, 3.2vw, 1.3rem); /* スマホで1行に収まるよう画面幅に応じて縮小、最大1.3rem */
  white-space: nowrap; /* 1行で表示 */
  font-weight: 500;
  text-transform: none; /* 大文字強制を解除 */
  letter-spacing: 0.1em; /* 文字数が多いため間隔を調整 */
  color: var(--accent-color);
  margin-bottom: 2.5rem; /* ボタンとの余白 */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards; /* ディレイを0.3sに */
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem; /* サブタイトルとの余白 */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards; /* ディレイをなしに */
}

/* セクション共通見出し */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-color);
  letter-spacing: 0.3em;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 1.6rem;
  color: var(--main-color);
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 1px;
  background-color: var(--accent-color);
  transform: translateX(-50%);
}

/* ABOUT US */
.about-section {
  background-color: var(--bg-color);
}

.about-img-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.about-img-wrapper img {
  width: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.about-img-wrapper:hover img {
  transform: scale(1.03);
}

.about-text-content {
  padding: 1.5rem 0;
}

.about-lead {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--main-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  text-align: justify;
}

/* SERVICES */
.services-section {
  background-color: var(--bg-light);
}

/* サービス左右交互配置レイアウト */
.service-row {
  margin-bottom: 4rem;
  align-items: center;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-img-wrapper {
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.service-img-wrapper img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.service-row:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-content-wrapper {
  padding: 2rem 1rem;
}

.service-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: rgba(197, 168, 128, 0.4);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.service-item-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--main-color);
}

.service-item-title span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-color);
  display: block;
  letter-spacing: 0.2em;
  margin-top: 0.25rem;
  text-transform: uppercase;
}

.service-item-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* NEWS */
.news-section {
  background-color: var(--bg-color);
}

.news-list {
  border-top: 1px solid var(--border-color);
}

.news-item {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-fast);
}

.news-item-link {
  display: block;
  padding: 1.75rem 1rem;
}

.news-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.news-date {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--accent-color);
  letter-spacing: 0.1em;
}

.news-category {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.6rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  width: fit-content;
  color: var(--text-muted);
}

.news-item-title {
  font-size: 1rem;
	margin-bottom: 0;
  color: var(--main-color);
  font-weight: 400;
  transition: var(--transition-fast);
}

.news-item:hover {
  background-color: var(--bg-light);
}

.news-item:hover .news-item-title {
  color: var(--accent-color);
  padding-left: 0.5rem;
}

/* ボタン（洗練された高級感・ラインの拡張） */
.btn-premium {
  display: inline-block;
  padding: 1rem 3rem;
  border: 1px solid var(--main-color);
  background: transparent;
  color: var(--main-color);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-smooth);
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--main-color);
  z-index: -1;
  transition: var(--transition-smooth);
}

.btn-premium:hover {
  color: #FFFFFF;
}

.btn-premium:hover::before {
  width: 100%;
}

.btn-accent {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.btn-accent::before {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  color: #FFFFFF;
}

/* COMPANY PROFILE (テーブルレイアウト) */
.company-section {
  background-color: var(--bg-light);
}

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

.profile-table tr {
  border-bottom: 1px solid var(--border-color);
}

.profile-table tr:first-child {
  border-top: 1px solid var(--border-color);
}

.profile-table th {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 400;
  width: 30%;
  padding: 1.5rem 1rem;
  color: var(--main-color);
  text-align: left;
  vertical-align: top;
  letter-spacing: 0.1em;
}

.profile-table td {
  font-size: 0.95rem;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.profile-table td a {
  color: var(--accent-color);
  border-bottom: 1px solid transparent;
  transition: var(--transition-fast);
}

.profile-table td a:hover {
  border-bottom: 1px solid var(--accent-color);
}

/* CONTACT (お問い合わせフォーム) */
.wpcf7-turnstile {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.contact-section {
  background-color: var(--bg-color);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--main-color);
  margin-bottom: 0.5rem;
  letter-spacing: 0.1em;
}

.form-label .required-badge {
  color: #D32F2F;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.form-label .optional-badge {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  color: var(--main-color);
  font-family: var(--font-sans);
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* ラジオボタンの洗練されたカスタムUI */
.radio-group, .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.radio-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.radio-option input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.radio-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #555;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  transition: var(--transition-fast);
}

.radio-checkmark::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--accent-color);
  border-radius: 50%;
  transform: scale(0);
  transition: var(--transition-fast);
}

.radio-option input[type="radio"]:checked ~ .radio-checkmark {
  border-color: var(--accent-color);
}

.radio-option input[type="radio"]:checked ~ .radio-checkmark::after {
  transform: scale(1);
}

.radio-option input[type="radio"]:checked ~ span {
  color: var(--main-color);
}

/* プライバシーポリシー インナーロール */
.privacy-box {
  height: 150px;
  overflow-y: scroll;
  border: 1px solid var(--border-color);
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.8;
  background-color: var(--bg-light);
  margin-bottom: 1.5rem;
}

/* スクロールバーのカスタマイズ */
.privacy-box::-webkit-scrollbar {
  width: 6px;
}
.privacy-box::-webkit-scrollbar-track {
  background: var(--bg-light);
}
.privacy-box::-webkit-scrollbar-thumb {
  background: var(--border-color);
}

.agreement-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  cursor: pointer;
}

.agreement-wrapper input[type="checkbox"] {
  position: absolute;
}

/* CF7向け ネイティブラジオボタン＆チェックボックスのカスタムUI化 */
.wpcf7-list-item label {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
}
.wpcf7-list-item input[type="radio"],
.wpcf7-list-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #555;
  position: relative;
  margin-right: 0.5rem;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  background-color: transparent;
  padding: 0;
  background-position: center;
  background-repeat: no-repeat;
  transition: var(--transition-fast);
}

.wpcf7-list-item input[type="radio"] {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.wpcf7-list-item input[type="radio"]:checked {
  border-color: var(--accent-color);
  background-image: radial-gradient(var(--accent-color) 40%, transparent 45%);
}

.wpcf7-list-item input[type="checkbox"] {
  width: 26px;
  height: 26px;
  border-radius: 3px;
  background-size: 14px;
}
.wpcf7-list-item input[type="checkbox"]:checked {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  /* 白いSVGチェックマーク */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2' d='M4 8.5l2.5 2.5 5-5'/%3E%3C/svg%3E");
}
.wpcf7-form-control.btn-accent:hover,.wpcf7-form-control.btn-accent:focus{
  color: #fff;
  background: var(--accent-color-hover);
}
/* バリデーションエラー表示 */
.error-message {
  color: #D32F2F;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

.has-error .form-control {
  border-color: #D32F2F;
}

.has-error .error-message {
  display: block;
}

/* -------------------------------------------------------------
   5. SUBPAGES (下層ページ専用スタイル)
------------------------------------------------------------- */
.subpage-hero {
  background-color: var(--bg-light);
  padding: 6rem 20px 2rem 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.subpage-title {
  font-size: 2rem;
  color: var(--main-color);
  margin-bottom: 0.5rem;
}

.subpage-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ページネーション */
.pagination-wrapper {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-wrapper .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  text-decoration: none;
  background-color: transparent;
  color: var(--text-color);
}

.pagination-wrapper .page-link.active,
.pagination-wrapper .page-link:hover {
  background-color: var(--main-color);
  color: #FFFFFF;
  border-color: var(--main-color);
}

/* お知らせ詳細ページの追加スタイル */
.article-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-sans);
}

.article-date {
  font-size: 1rem;
  color: var(--accent-color);
}

.article-img-area {
  margin: 3rem 0;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.article-img-area img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

/* サンクスページ */
.thanks-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.thanks-icon {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 2rem;
  font-family: var(--font-serif);
}

.thanks-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.thanks-message {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 2;
  margin-bottom: 3rem;
}

/* -------------------------------------------------------------
   6. MICRO-INTERACTIONS & ANIMATIONS (スクロール連動フェードインなど)
------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* スクロール連動アニメーション用クラス */
.reveal-el {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal-el.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------------------
   7. RESPONSIVE MEDIA QUERIES (レスポンシブ拡張)
------------------------------------------------------------- */
@media(min-width:580px){
  .footer-links {
    flex-direction: row;
  }
}
/* タブレット (768px以上) */
@media (min-width: 768px) {
  header > div {
    padding: 2rem 2.5rem; /* PC表示用の広い余白に戻す */
  }
  
  header.scrolled > div {
    padding: 1.25rem 2.5rem;
  }
  
  /* PC表示ではロゴ幅を320pxに戻す */
  header > div > a,
  header.scrolled > div > a,
  header.header-sub > div > a {
    width: 320px;
  }
  
  header.header-sub > div {
    padding: 1.25rem 2.5rem; /* PC表示用の余白に戻す */
  }
  
  .hero-title {
    font-size: 3.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.75rem; /* PC・タブレット用にフォントサイズを拡大 */
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-text-content {
    padding-left: 2rem;
  }
  
  .service-row {
    margin-bottom: 6rem;
  }
  
  .service-row:nth-child(even) {
    flex-direction: row-reverse;
  }
  
  .service-content-wrapper {
    padding: 2rem 3rem;
  }
  
  .news-item-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
  }
  
  .news-item-meta {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0;
    width: 25%;
  }
  
  .news-item-title {
    width: 75%;
  }
  
  .radio-group, .wpcf7-radio {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .footer-links {
    gap: 4rem;
  }
  
  .footer-links-group h3 {
    margin-bottom: 1.25rem; /* PC表示用の余白に復元 */
  }
  
  .footer-links-group ul {
    gap: 0.75rem; /* PC表示用の項目間隔に復元 */
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  .subpage-hero {
    padding: 8rem 1.5rem 4rem 1.5rem;
  }
  .thanks-icon {
    font-size: 3rem;
  }
  .thanks-title {
    font-size: 1.75rem;
  }
}
@media(min-width:992px){
  .site-header nav {
    display: flex;
    align-items: center; /* ヘッダー内で垂直中央に揃える */
  }
  
  .menu-trigger {
    display: none;
  }
  .menu-item-has-children.is-keyboard-open > .sub-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
/* PC大型モニター (1024px以上) */
@media (min-width: 1024px) {
  .hero-title {
    font-size: 4rem;
  }
  
  .hero-subtitle {
    font-size: 2rem; /* 大型PC用にフォントサイズを拡大 */
  }
  
  .about-text-content {
    padding-left: 4rem;
  }
  
  .service-img-wrapper img {
    height: 480px;
  }
  
  .service-content-wrapper {
    padding: 2rem 5rem;
  }
}

/* ==========================================
   Breadcrumb (パンくずリスト)
   ========================================== */
.breadcrumb-container {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  background-color: #fff;
}

.breadcrumb-nav {
  font-size: 13px;
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: '\003E';
  display: inline-block;
  margin: 0 0.75rem;
  color: #ccc;
  font-size: 11px;
}

.breadcrumb-item.active {
  color: var(--text-color);
  font-weight: 500;
}

@media (min-width: 992px) {
  .breadcrumb-nav {
    font-size: 14px;
  }
}
