/*
Theme Name: エヌズ税理士事務所
Theme URI: https://enuz-tax.com
Author: Enuz Tax Accountant Office
Description: エヌズ税理士事務所のオリジナルWordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: enuz-theme
*/

/* =======================
   CSS Variables
========================== */
:root {
  --color-bg: #F0EDE6;
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-border: #c8c2b8;
  --color-accent: #1a1a1a;
  --font-ja: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif;
  --font-en: 'EB Garamond', Georgia, serif;
  --max-width: 1120px;
  --section-padding: 100px 20px;
}

/* =======================
   Reset & Base
========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-y: scroll; /* スクロールバーを常時表示（ローディング中のガタツキ防止） */
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

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

ul {
  list-style: none;
}

/* =======================
   Container
========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* メニューオープン時：スクロール禁止（scrollbar-gutterでスペースは維持） */
html.menu-open {
  overflow: hidden;
}

/* SP限定表示 */
.sp-only { display: none; }

/* =======================
   Header
========================== */
#site-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 3000;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background-color: transparent;
  /* shadow不要のためbox-shadowなし */
  pointer-events: none; /* ヘッダー自体はクリック透過 */
}

/* クリッカブルな要素はpointer-eventsを復活 */
#site-header .header-logo,
#site-header .header-nav,
#site-header .header-contact-btn,
#site-header .header-menu-btn {
  pointer-events: auto;
}

/* メニューオープン時：ヘッダー背景を透明に */
html.menu-open #site-header {
  background-color: transparent;
  box-shadow: none;
}

/* scrolled クラスがついてもshadowなし */
#site-header.scrolled {
  box-shadow: none;
}

.header-logo {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* PC：logo-pcのみ表示（60px）、logo-sp非表示 */
.logo-pc { display: block; height: 60px; width: auto; }
.logo-sp { display: none; }

/* SP：logo-spのみ表示（サイズ変更なし）、logo-pc非表示 */
@media (max-width: 768px) {
  .logo-pc { display: none; }
  .logo-sp { display: block; width: 30px; height: auto; }
}

/* ===== TOPページ：ヘッダーロゴの出現制御 =====
   .is-front-page クラスをbodyに付与（JSで制御）
   初期状態は非表示。FVロゴが見切れたらJSで .header-logo-visible をbodyに付与
*/
body.is-front-page .header-logo {
  opacity: 0;
  visibility: hidden;
}

body.is-front-page.header-logo-visible .header-logo {
  opacity: 1;
  visibility: visible;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  /* ContactとMenuをまとめて固定表示・最前面 */
  position: fixed;
  right: 40px;
  height: 70px;
  z-index: 3000;
}

.header-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 26px;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  position: relative;
  color: var(--color-text);
  transition: color 0.2s ease;
}

/* 斜めカット枠：1px細線を2枚重ねで表現 */
.header-contact-btn::before,
.header-contact-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(8px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 8px);
  transition: background 0.2s ease;
}

/* 外側（枠色） */
.header-contact-btn::before {
  background: var(--color-text);
  z-index: -1;
}

/* 内側（背景色で1px削る → 枠線に見せる） */
.header-contact-btn::after {
  inset: 1px;
  clip-path: polygon(7px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 7px);
  background: var(--color-bg);
  z-index: -1;
}

.header-contact-btn:hover::after {
  background: var(--color-text);
}

.header-contact-btn:hover {
  color: var(--color-bg);
  opacity: 1;
}

.header-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.15em;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-en);
  color: var(--color-text);
  transition: color 0.3s ease;
}

/* メニューオープン時：ボタン文字を白に */
html.menu-open .header-menu-btn {
  color: #fff;
}

/* メニューオープン時：ヘッダーロゴを非表示 */
html.menu-open .header-logo {
  opacity: 0;
  visibility: hidden;
}

/* メニューオープン時：Contactボタンを非表示 */
html.menu-open .header-contact-btn {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hamburger {
  width: 12.86px;
  height: 10px;
  background: var(--color-text);
  flex-shrink: 0;
  transition: background 0.3s ease;
  position: relative;
}

.hamburger span {
  display: none;
}

/* メニューオープン時：■を×に */
html.menu-open .hamburger {
  background: transparent;
}

html.menu-open .hamburger::before,
html.menu-open .hamburger::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 1px;
  background: #fff;
}

html.menu-open .hamburger::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

html.menu-open .hamburger::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* =======================
   Fullscreen Menu
========================== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: #1D1D1C;
  z-index: 2000;
  display: flex;
  align-items: center;
  /* 初期状態：非表示 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.fullscreen-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* × Close ボタン：#menuToggle に統合したため非表示 */
.fullscreen-menu-close {
  display: none;
}

/* 左：ロゴ */
.fullscreen-menu-logo {
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
}
.fullscreen-menu-logo img { width: 160px; filter: invert(1) brightness(2); }
.fullscreen-menu-logo .custom-logo { width: 160px; filter: invert(1) brightness(2); }

/* 中央右：ナビ */
.fullscreen-menu-nav {
  margin-left: 50%;
}

.fullscreen-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fullscreen-nav-link {
  font-family: var(--font-en);
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.05em;
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.fullscreen-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.fullscreen-nav-link:hover {
  color: #fff;
  opacity: 1;
}

.fullscreen-nav-link:hover::after,
.fullscreen-nav-link.is-active::after {
  width: 100%;
}

.fullscreen-nav-link.is-active {
  color: #fff;
}

/* 右下：Contact */
.fullscreen-menu-contact {
  position: absolute;
  bottom: 48px;
  right: 60px;
}

.fullscreen-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.15em;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.fullscreen-contact-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  opacity: 1;
}

/* 左下：フッター */
.fullscreen-menu-footer {
  position: absolute;
  bottom: 32px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

.fullscreen-menu-footer a {
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
}

.fullscreen-menu-footer a:hover { color: rgba(255,255,255,0.8); }
.fullscreen-menu-sep { opacity: 0.4; }

/* SP用メニュー調整 */
@media (max-width: 768px) {
  .fullscreen-menu-logo {
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
  }
  .fullscreen-menu-logo img,
  .fullscreen-menu-logo .custom-logo { width: 110px; }

  /* ナビ：ロゴの右・縦中央 */
  .fullscreen-menu-nav {
    margin-left: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-20%, -50%);
    padding: 0;
    width: auto;
  }

  .fullscreen-nav-list { gap: 4px; }

  .fullscreen-nav-link {
    font-size: 22px !important;
    letter-spacing: 0.05em;
  }

  /* Contact：右下 */
  .fullscreen-menu-contact {
    bottom: 48px;
    right: 24px;
  }
  .fullscreen-contact-btn {
    width: 100px;
    height: 100px;
    font-size: 12px;
  }

  /* コピーライト：SP非表示 */
  .fullscreen-menu-footer {
    display: none;
  }
}

/* =======================
   Hero Section
========================== */
.hero {
  width: 100%;
  height: 100svh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: visible;
}

.hero-logo {
  margin-bottom: 0;
}

.hero-logo img {
  width: 270px;
  margin: 0 auto;
}

.hero-scroll {
  position: absolute;
  bottom: -100px; /* ラインの下端がFV底面より100pxはみ出るよう設定 */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  z-index: 10;
}

.hero-scroll-line {
  position: relative;
  width: 1px;
  height: 200px; /* PC: 100pxがFV内に見え、100pxが見切れる */
}

/* レール（固定・薄い線） */
.hero-scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--color-border);
}

/* アニメーション線（濃い・動く） */
.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: var(--color-text);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =======================
   Section Heading
========================== */
.section-heading {
  font-family: var(--font-en);
  font-size: clamp(48px, 8vw, 62px);
  font-weight: 400;
  color: rgba(26,26,26,0.08);
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1;
  position: relative;
  margin-bottom: 80px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-heading .inner-text {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(12px);
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
  white-space: nowrap;
  letter-spacing: 0.1em;
  opacity: 0;
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.section-heading.is-visible .inner-text {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* =======================
   About / Concept Section
========================== */
.about-section {
  padding: var(--section-padding);
  text-align: center;
}

.about-section .main-copy {
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.05em;
  margin-bottom: 48px;
  margin-top: 120px;
}

.about-section .description {
  font-size: 13px;
  line-height: 2.2;
  margin: 0 auto 20px;
}

/* =======================
   Features Section (3 columns)
========================== */
.features-section {
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  line-height: 1.6;
}

.feature-title em {
  font-style: normal;
  font-size: 15px;
  display: block;
}

.feature-desc {
  font-size: 13px;
  line-height: 2;
}

/* =======================
   Service Section
========================== */
.service-section {
  padding: var(--section-padding);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 1120px;
  margin: 0 auto 48px;
}

/* ========================================
   service-item：TOPとRecruitで共通のカードコンポーネント
   ・バッジ行 / タイトル / イラスト / テキスト の並びが同一
   ・左右paddingのみここで指定。上下paddingは各グリッドのコンテキストで追加
======================================== */
.service-item {
  position: relative;
  text-align: center;
  padding-left: 30px;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  margin-bottom: 40px
}

/* 縦線：top/heightで位置と長さを調整 */
.service-item:first-child::after {
  content: '';
  position: absolute;
  right: 0;
  width: 1px;
  height: 80%;
  background: rgba(26, 26, 26, 0.15);
  top: 20%;
}

.service-badge-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.service-badge {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 11px;
  letter-spacing: 0.15em;
  padding: 4px 12px;
  font-family: var(--font-en);
  white-space: nowrap;
  flex-shrink: 0;
}

.service-badge-line {
  display: block;
  flex: 1;
  height: 1px;
  background: #121212;
}

.service-title {
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  line-height: 1.6;
  min-height: calc(24px * 1.6 * 2);
}

.service-image {
  width: 160px;
  height: 140px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-desc {
  font-size: 13px;
  line-height: 2.2;
}

.view-all-wrap {
  text-align: center;
}

.view-all-btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

/* =======================
   News Section
========================== */
.news-section {
  padding: var(--section-padding);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 48px;
}

.news-item {
  padding: 32px 32px 32px 0;
  display: flex;
}

.news-item:not(:nth-child(3n)) {
  border-right: 1px solid #E2E0CF;
  padding-right: 32px;
}

.news-item:nth-child(3n) {
  padding-left: 32px;
  padding-right: 0;
}

.news-item:nth-child(3n-1) {
  padding-left: 32px;
}

.news-category {
  display: none;
}

.news-date {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-top: auto;
}

.news-title {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
}

.news-item-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  color: var(--color-text);
  text-decoration: none;
}

.news-excerpt {
  font-size: 12px;
  line-height: 2;
  color: #6B6A61;
}


/* =======================
   Contact Section
========================== */
.contact-section {
  padding: var(--section-padding);
  text-align: center;
}

.contact-section .section-heading {
  margin-bottom: 30px;
}

.contact-desc {
  font-size: 13px;
  margin-bottom: 80px;
}

.contact-section .contact-desc {
  margin-bottom: 70px;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-buttons-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.contact-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 0;
}

.contact-hours {
  margin-top: 12px;
  font-size: 11px;
  text-align: center;
  width: 50%;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 52px;
  padding: 10px;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: color 0.2s ease;
  z-index: 1;
  box-sizing: border-box;
}

/* 斜めカット枠 */
.contact-btn::before,
.contact-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(12px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 12px);
  transition: background 0.2s ease;
}

.contact-btn::before {
  background: var(--color-text);
  z-index: -1;
}

.contact-btn::after {
  inset: 1px;
  clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 11px);
  background: var(--color-bg);
  z-index: -1;
}

.contact-btn:hover {
  color: var(--color-bg);
  opacity: 1;
}

.contact-btn:hover::after {
  background: var(--color-text);
}

.contact-btn.phone {
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.05em;
}


/* =======================
   Footer
========================== */
#site-footer {
  padding: 60px 80px 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-left {
  display: flex;
  gap: 110px;
}

.footer-office-name {
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-info address {
  font-style: normal;
  font-size: 12px;
  line-height: 2;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0 60px;
  align-items: start;
  justify-content: start;
}

.footer-nav-col h4 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-family: var(--font-en);
}

.footer-nav-col ul li {
  margin-bottom: 8px;
}

.footer-nav-col ul li a {
  font-size: 14px;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-contact-btn {
  position: fixed;
  bottom: 48px;
  right: 60px;
  z-index: 4000;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid var(--color-text);
  background: transparent;
  font-family: var(--font-en);
  font-size: 17px;
  letter-spacing: 0.1em;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}


.menu-open .footer-contact-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: none;
}

.menu-open .footer-contact-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.modal-open .footer-contact-btn {
  opacity: 0;
  pointer-events: none;
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 11px;
  padding-top: 24px;
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-copy::before {
  content: '|';
  margin-right: 16px;
}

/* =======================
   Contact Modal
========================== */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: #E2E0CF;
}

.contact-modal-box {
  position: relative;
  background-color: #F1EFE4;
  border: 1px solid var(--color-text);
  padding: 80px 100px 80px;
  width: calc(100% - 120px);
  max-width: 900px;
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.4s ease;
}

.contact-modal.is-open .contact-modal-box {
  transform: translateY(0);
}

/* 閉じるボタン：右上角の内側に */
.contact-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-bg);
  border: none;
  border-left: 1px solid var(--color-text);
  border-bottom: 1px solid var(--color-text);
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  transition: opacity 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
}

.contact-modal-close:hover { opacity: 0.5; }

.contact-modal-close-icon {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.contact-modal-close-icon::before,
.contact-modal-close-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 141%;
  height: 1px;
  background: var(--color-text);
  transform-origin: center;
  translate: -50% 0;
}

.contact-modal-close-icon::before { transform: rotate(45deg); }
.contact-modal-close-icon::after  { transform: rotate(-45deg); }

.contact-modal-en {
  font-family: var(--font-en);
  font-size: 32px;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}

.contact-modal-ja {
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 40px;
}

.contact-modal-desc {
  font-size: 13px;
  margin-bottom: 40px;
  line-height: 2;
}

.contact-modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
}
.contact-modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  flex: 1;
  text-align: center;
  position: relative;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.contact-modal-btn::before,
.contact-modal-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(12px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 12px);
  transition: background 0.2s ease;
}

.contact-modal-btn::before {
  background: var(--color-text);
  z-index: -1;
}

.contact-modal-btn::after {
  inset: 1px;
  clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 11px);
  background: var(--color-bg);
  z-index: -1;
}

.contact-modal-btn:hover { opacity: 1; color: var(--color-bg); }
.contact-modal-btn:hover::after { background: var(--color-text); }

.contact-modal-btn--phone {
  font-family: var(--font-en);
  font-size: 22px;
  letter-spacing: 0.05em;
}

.contact-modal-hours {
  font-size: 11px;
  margin-top: 16px;
  text-align: left;
}

/* =======================
   Floating Contact Button
========================== */
.floating-contact {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 500;
}

.floating-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 1px solid var(--color-text);
  font-size: 11px;
  letter-spacing: 0.05em;
  background: var(--color-bg);
  transition: background 0.2s ease, color 0.2s ease;
  text-align: center;
  line-height: 1.4;
}

.floating-contact-btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
  opacity: 1;
}



/* =======================
   Fade In Animation
========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =======================
   Responsive (SP: max-width 768px)
========================== */


/* =======================
   About Page Styles
   （style.css の末尾に追記）
========================== */

/* ページヒーロー共通 */
.page-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
}

.page-hero-heading {
  position: relative;
  display: inline-block;
  padding: 0 20px;
}

.page-hero-bg-text {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(60px, 12vw, 62px);
  font-weight: 400;
  color: rgba(26, 26, 26, 0.07);
  letter-spacing: -0.02em;
  line-height: 1;
  user-select: none;
}

.page-hero-title {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: clamp(15px, 3vw, 18px);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.15em;
  white-space: nowrap;
}

/* セクションタイトル（中央寄せ）*/
.section-title {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-align: center;
  margin-bottom: 30px;
}

/* =======================
   代表あいさつ
========================== */
.greeting-section {
  padding: 60px 20px 100px;
}

.greeting-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 60px;
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

.greeting-image {
  padding-top: 20px;
}

.greeting-image img {
  width: 100%;
  height: auto;
}

.greeting-lead {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.greeting-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.greeting-text p {
  font-size: 13px;
  line-height: 2.2;
}

.greeting-signature {
  padding-top: 20px;
}

.greeting-role {
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.greeting-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.greeting-name-en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 400;
  color: #6B6A61;
}
.greeting-name-age {
    font-family: var(--font-en);
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text);
}
/* =======================
   事務所概要
========================== */
.office-section {
  padding: 60px 20px 100px;
}

.office-table-wrap {
  max-width: 700px;
  margin: 0 auto;
}

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

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

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

.office-table th,
.office-table td {
  padding: 20px 16px;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.office-table th {
  width: 160px;
  white-space: nowrap;
}

.office-table td {
  color: var(--color-text);
}

.office-table td a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.office-table td a:hover {
  opacity: 0.6;
}

/* =======================
   Responsive
========================== */


/* =======================
   Service Page Styles
========================== */

.service-tab-nav {
  padding: 0 20px 60px;
}

.service-tab-inner {
  display: flex;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.service-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: var(--color-text);
  text-align: center;
  z-index: 1;
  box-sizing: border-box;
  transition: color 0.2s ease;
}

/* 斜めカット枠 */
.service-tab-btn::before,
.service-tab-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(12px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 12px);
  z-index: -1;
  transition: background 0.2s ease;
}

.service-tab-btn::before { background: var(--color-text); }
.service-tab-btn::after {
  inset: 1px;
  clip-path: polygon(11px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 11px);
  background: var(--color-bg);
}

.service-tab-btn:hover {
  color: var(--color-bg);
  opacity: 1;
}

.service-tab-btn:hover::after {
  background: var(--color-text);
}

.service-detail-section {
  padding: 60px 20px 100px;
}

.service-detail-section .container {
  max-width: 900px;
  box-sizing: content-box;
}

.service-detail-header {
  text-align: center;
  margin-bottom: 60px;
}

.service-detail-title {
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.service-detail-subtitle {
  font-size: 16px;
  letter-spacing: 0.05em;
}

.service-intro {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto 70px;
  align-items: center;
}

.service-intro-image img { width: 100%; height: auto; }

.service-intro-lead {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-intro-text {
  font-size: 13px;
  line-height: 2.2;
}

.service-content-heading {
  text-align: center;
  margin-bottom: 30px;
}

.service-content-title {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.service-plus-boxes {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto 50px;
}

.service-plus-box {
  flex: 1;
  border: 1px solid var(--color-text);
  padding: 18px 24px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.service-plus-sign {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  font-size: 22px;
  font-family: var(--font-en);
}

.service-checklist-wrap {
  max-width: 900px;
  margin: 0 auto;
}

.service-checklist-inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px 40px;
  padding: 32px 36px;
  align-items: start;
  background-color: #ECEBDF;
}

.service-checklist-label {
  font-size: 15px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  padding-top: 4px;
}

.service-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-checklist li {
  font-size: 13px;
  line-height: 1.8;
  padding-left: 20px;
  position: relative;
}

.service-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: bold;
}

.service-checklist-note {
  font-size: 12px;
  margin-top: 16px;
  letter-spacing: 0.05em;
  text-align: center;
}



/* =======================
   Recruit Page Styles
========================== */

/* イントロ */
.recruit-intro {
  padding: 20px 20px 80px;
}

.recruit-intro-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.recruit-intro-lead {
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

.recruit-intro-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recruit-intro-body p {
  font-size: 13px;
  line-height: 2.2;
  text-align: left;
}

/* 当事務所の特徴
   グリッドは .service-grid と同クラスを使用するため定義不要
   縦区切り線のみ recruit-features-section コンテキストで指定 */
.recruit-features-section {
  padding: 60px 20px 100px;
}

.recruit-features-section .service-item:nth-child(odd) {
  position: relative;
}
.recruit-features-section .service-item:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  width: 1px;
  height: 80%;
  background: rgba(26, 26, 26, 0.15);
}

/* 募集要項テーブル */
.recruit-requirements-section {
  padding: 60px 20px 100px;
}

.recruit-table-wrap {
  max-width: 720px;
  margin: 0 auto;
}

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

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

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

.recruit-table th,
.recruit-table td {
  padding: 20px 16px;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
  line-height: 1.9;
}

.recruit-table th {
  width: 130px;
  white-space: nowrap;
}

/* お問い合わせフォーム */
.recruit-form-section {
  padding: 60px 20px 100px;
}

.recruit-form-section .container {
  max-width: 900px;
}

.recruit-form-lead {
  text-align: center;
  font-size: 16px;
  margin-bottom: 32px;
  line-height: 2;
}

.recruit-tel {
  text-align: center;
  margin-bottom: 48px;
}

.recruit-tel-label {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.recruit-tel-number {
  display: block;
  font-family: var(--font-en);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 8px;
  transition: opacity 0.2s;
}

.recruit-tel-number:hover { opacity: 0.6; }

.recruit-tel-hours {
  font-size: 12px;
}

.recruit-form-desc {
  text-align: center;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 48px;
}

/* フォーム本体 */
.recruit-form {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.recruit-form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}

.recruit-form-row:first-of-type {
  border-top: none;
}

.recruit-form-label {
  font-size: 13px;
  color: var(--color-text);
  padding-top: 10px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recruit-form-label--required::before {
  content: '必須';
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 12px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.recruit-form-input,
.recruit-form-textarea {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 12px 16px;
  font-family: var(--font-ja);
  font-size: 12px;
  color: var(--color-text);
  outline: none;
  transition: box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  border: none;
}

.recruit-form-input:focus,
.recruit-form-textarea:focus {
  box-shadow: 0 0 0 1px var(--color-text);
}

.recruit-form-textarea {
  resize: none;
  min-height: 160px;
}

.recruit-form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}

.recruit-form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.recruit-form-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-text);
  cursor: pointer;
}

/* プライバシー・送信 */
.recruit-form-privacy {
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
}

.recruit-form-privacy-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.recruit-form-privacy-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--color-text);
  cursor: pointer;
}

.recruit-form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.recruit-form-submit {
  text-align: center;
  margin-top: 8px;
}

.recruit-submit-btn {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  padding: 18px 80px;
  font-family: var(--font-ja);
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
  max-width: 400px;
}

.recruit-submit-btn:hover {
  opacity: 0.75;
}

/* Responsive */


/* =======================
   Contact Page Styles
========================== */

/* ご利用の流れ */
.contact-flow-section {
  padding: 40px 20px 100px;
}

.contact-flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
}

.contact-flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-flow-icon {
  width: 100%;
  height: 100px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-flow-icon img {
  max-width: 120px;
  max-height: 100%;
  width: auto;
  height: auto;
}

.contact-flow-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.contact-flow-badge span {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  font-family: var(--font-en);
  border-radius: 999px;
}

.contact-flow-step-desc {
  font-size: 13px;
  line-height: 2;
}

.contact-flow-arrow {
  flex-shrink: 0;
  padding: 0 16px;
  margin-top: 32px;
  display: flex;
  align-items: center;
}

.contact-flow-arrow img {
  width: 36px;
  height: auto;
  filter: brightness(0);
}

/* お問い合わせフォームセクション */
.contact-form-section {
  padding: 40px 20px 120px;
}

.contact-form-lead {
  text-align: center;
  font-size: 16px;
  line-height: 2;
  margin-bottom: 40px;
}

.contact-tel-block {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.contact-tel-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.contact-tel-label {
  font-family: var(--font-en);
  font-size: 28px;
  color: var(--color-text);
  letter-spacing: 0.08em;
}

.contact-tel-number {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--color-text);
  transition: opacity 0.2s;
}

.contact-tel-number:hover { opacity: 0.6; }

.contact-tel-hours {
  font-size: 16px;
}

/* 送信通知 */
.contact-notice {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 16px 24px;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.contact-notice--success {
  border: 1px solid #7a9e7a;
  color: #3a6b3a;
  background: #f0f7f0;
}

.contact-notice--error {
  border: 1px solid #c07070;
  color: #7a2020;
  background: #fdf0f0;
}

.contact-form-sub-lead {
  font-size: 16px;
  line-height: 2;
  margin: 0 auto 40px;
  max-width: 900px;
}

/* フォーム */
.contact-form {
  max-width: 900px;
  margin: 0 auto;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
}


.contact-form-row--radio,
.contact-form-row--textarea {
  align-items: start;
}

.contact-form-label {
  font-size: 13px;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
  padding-top: 2px;
}

.contact-form-label--required::before {
  content: '必須';
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 12px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1.6;
}

.contact-form-label--optional::before {
  content: '任意';
  display: inline-block;
  background: #fff;
  color: var(--color-text);
  font-size: 12px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  line-height: 1.6;
}

.contact-form-input {
  width: 100%;
  background: #fff;
  border: none;
  padding: 12px 14px;
  font-family: var(--font-ja);
  font-size: 12px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form-input:focus {
  border-color: var(--color-text);
}

.contact-form-textarea {
  width: 100%;
  background: #fff;
  border: none;
  padding: 12px 14px;
  font-family: var(--font-ja);
  font-size: 12px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s ease;
  resize: vertical;
  min-height: 160px;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  resize: none
}

.contact-form-textarea:focus {
  border-color: var(--color-text);
}

.contact-form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.contact-form-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.contact-form-radio input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0;
}

/* プライバシー・送信 */
.contact-form-privacy {
  margin-top: 36px;
  text-align: center;
}

.contact-privacy-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}

.contact-privacy-check {
  width: 16px;
  height: 16px;
  accent-color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0;
}

.contact-privacy-label a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-submit {
  text-align: center;
  margin-top: 24px;
}

.contact-submit-btn {
  display: inline-block;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  padding: 20px 40px;
  font-family: var(--font-ja);
  font-size: 15px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: opacity 0.2s ease;
  width: 100%;
  max-width: 300px;
}

.contact-submit-btn:hover { opacity: 0.75; }

/* Responsive */


/* =======================
   Completed Page Styles
========================== */

.completed-hero {
  padding-top: 120px;
  padding-bottom: 20px;
  text-align: center;
}

.completed-body {
  padding: 60px 20px 160px;
}

.completed-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.completed-title {
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.7;
  margin-bottom: 40px;
}

.completed-text {
  font-size: 13px;
  line-height: 2.4;
  margin-bottom: 60px;
}

.completed-back {
  text-align: center;
}

.completed-back-btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.completed-back-btn:hover {
  opacity: 0.5;
}



/* =======================
   404 Page Styles
========================== */

.not-found-body {
  padding: 60px 20px 120px;
}

.not-found-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.not-found-title {
  font-size: clamp(16px, 3vw, 24px);
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.not-found-text {
  font-size: 13px;
  line-height: 2.4;
  margin-bottom: 60px;
}

.not-found-back {
  text-align: center;
}


.recruit-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 50px;
}


/* ==================================================
   RESPONSIVE - SP (max-width: 768px) 全ページ共通
================================================== */
@media (max-width: 768px) {

  /* ---- 変数 ---- */
  :root { --section-padding: 48px 16px; }

  /* ---- ヘッダー ---- */
  #site-header { padding: 12px 16px; margin-top: 10px; height: 70px; top: 0px;}
  .container { padding: 0; }

  /* header-nav：SP用の位置調整 */
  .header-nav {
    right: 16px;
    gap: 24px;
  }

  /* ---- ヒーロー ---- */
  .hero {
    min-height: 100svh;
    padding-top: 0px;
    justify-content: center;
  }
  .hero-logo { margin-bottom: 0; }
  .hero-logo img { width: 200px; }

  /* ---- About コンセプト ---- */
  .about-section { padding: 48px 16px 56px; }
  .about-section .main-copy {
    font-size: 20px;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 28px;
    margin-top: 80px;
  }
  .about-section .description {
    font-size: 13px;
    text-align: center;
    line-height: 2.2;
    max-width: 100%;
  }

  /* ---- 特徴：アイコン上・タイトル下・テキスト下（縦並び） ---- */
  .features-section { padding: 48px 16px 56px; }
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    max-width: 100% !important;
  }
  .feature-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
  .feature-icon {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto 14px !important;
  }

  .feature-title {
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
    text-align: center !important;
  }
  .feature-title em {
    font-size: 15px !important;
    display: inline !important;
    font-size: inherit !important;
    color: inherit !important;
  }
  .feature-desc {
    font-size: 13px !important;
    line-height: 1.9 !important;
    text-align: center !important;
  }

  /* ---- セクション見出し ---- */
  .section-heading { font-size: 42px; margin-bottom: 40px; }
  .section-heading .inner-text { font-size: 17px; }

  /* ---- サービス：1列・画像大きく ---- */
  /* ---- サービス：service-grid内のみ適用（TOP・Recruit共通） ---- */
  .service-section { padding: 48px 16px 56px; }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: 100%;
    margin-bottom: 36px;
  }
  .service-grid .service-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center !important;
    padding: 0;
    margin: 0;
  }
  .service-grid .service-badge { margin-bottom: 0; }
  .service-grid .service-badge-row {
    justify-content: flex-start;
    width: 100%;
  }
  .service-grid .service-badge-line { display: block; }
  .service-grid .service-title { font-size: 15px; margin-bottom: 14px; text-align: center !important; min-height: auto; }
  .service-grid .service-image {
    width: 160px !important;
    height: 140px !important;
    margin: 0 auto 16px !important;
  }
  .service-grid .service-image img {
    width: auto !important;
    height: 100% !important;
  }
  .service-grid .service-desc { font-size: 13px; line-height: 2.1; text-align: center !important; }

  /* ---- News：タイトル＋日付・罫線なし ---- */
  .news-section { padding: 48px 16px 56px; }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 36px;
  }
  .news-item,
  .news-item:not(:nth-child(3n)),
  .news-item:nth-child(3n),
  .news-item:nth-child(3n-1) {
    padding: 24px 0;
    border: none;
    border-bottom: 1px solid #E2E0CF;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .news-category { display: none; }
  .news-title { font-size: 13px; line-height: 1.7; }
  .news-excerpt { font-size: 12px; line-height: 1.8; }
  .news-date { font-size: 11px; margin-top: 4px; }

  /* ---- Contact：幅100%ボタン縦並び ---- */
  .contact-section { padding: 48px 16px 72px; }
  .contact-desc { font-size: 13px; line-height: 1.9; margin-bottom: 20px;}
  .contact-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr !important;
  }
  .contact-section .contact-btn.phone { order: 2; }
  .contact-section .contact-btn:not(.phone) { order: 1; }
  .contact-btn {
    min-width: unset !important;
    width: 100% !important;
    height: 42px !important;
    font-size: 13px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .contact-btn.phone { font-size: 20px; }
  .contact-hours { text-align: center; font-size: 11px; margin-top: 8px; width: 100%;}
  .header-menu-btn {font-size: 13px;}

  /* ---- フッター ---- */
  #site-footer { padding: 40px 16px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-info address { font-size: 11px; margin-bottom: 30px;}
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .footer-nav-col ul li a { font-size: 12px; }
  .footer-contact { justify-content: flex-end; }
  .footer-contact-btn { width: 100px; height: 100px; font-size: 14px; bottom: 24px; right: 24px; }
  /* ここに追加 */
  .footer-left {
    display: block; /* flexを解除 */
  }
  .footer-office-name {
    font-size: 13px;
    margin-bottom: 24px; /* 下方向の間隔を調整 */
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: left !important;
    font-size: 11px;
    padding-top: 20px;
    align-items: flex-start !important;
  }

  .footer-nav-col h4{
    font-size: 13px;
  }
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-legal-copy::before {
    content: none;
  }

  /* ---- フローティングボタン ---- */
  .floating-contact { bottom: 20px; right: 16px; }
  .floating-contact-btn { width: 60px; height: 60px; font-size: 10px; }

  /* ---- About ページ Contact ボタン順序（メール上・電話下） ---- */
  .page-about .contact-btn.phone { order: 2; }
  .page-about .contact-btn:not(.phone) { order: 1; }
  .page-about .contact-buttons > div { order: 2; }
  .page-about .contact-buttons > a:not(.phone) { order: 1; }

  /* ---- About ページ ---- */
  .greeting-section { padding: 40px 16px 60px; }

  /* 画像上・テキスト下の縦並び */
  .greeting-inner {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  /* 画像：中央寄せ */
  .greeting-image {
    max-width: 200px !important;
    margin: 0 auto 24px !important;
    padding-top: 0 !important;
    order: 1;
  }

  /* 本文ブロック */
  .greeting-body {
    order: 2;
    display: flex;
    flex-direction: column;
  }

  /* 役職・名前をSP時は先頭に・中央寄せ */
  .greeting-signature {
    order: -1;
    border-top: none !important;
    padding-top: 0 !important;
    margin-bottom: 24px;
    text-align: center;
  }

  .greeting-lead {
    order: 0;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .greeting-text {
    order: 1;
  }

  .greeting-text p {
    font-size: 13px;
    line-height: 2.1;
  }

  .greeting-name {
    font-size: 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: center;
  }

  .greeting-name-en {
    font-size: 13px;
  }
.greeting-name-age{
  font-size: 13px;
}
  .greeting-role {
    font-size: 13px;
    margin-bottom: 4px;
  }

  /* 事務所概要テーブル */
  .office-section { padding: 40px 16px 60px; }
  .office-table th { width: 100px; font-size: 13px; white-space: nowrap; }
  .office-table td { font-size: 13px; }
  .office-table th{ font-size: 13px; }

  /* ---- Service ページ ---- */

  /* タブ：縦2列・幅100% */
  .service-tab-nav { padding: 0px 16px 60px; }
  .service-tab-inner {
    flex-direction: column !important;
    gap: 10px !important;
    max-width: 100% !important;
  }
  .service-tab-btn {
    border-right: none !important;
    border-bottom: none !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
  }

  /* サービス詳細 */
  .service-detail-section { padding: 0px 16px 60px; }
  .service-detail-header { margin-bottom: 32px; }
  .service-detail-title { font-size: 20px; }
  .service-detail-subtitle{font-size: 15px;}

  /* イントロ：画像上・中央 → テキスト下 */
  .service-intro {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 48px !important;
  }
  .service-intro-image {
    max-width: 220px !important;
    margin: 0 auto !important;
    order: 1;
  }
  .service-intro-body { order: 2; }
  .service-intro-lead {
    font-size: 15px !important;
    margin-bottom: 16px !important;
    text-align: center;
  }
  .service-intro-text { font-size: 13px !important; }

  /* サービス内容タイトル */
  .service-content-heading { margin-bottom: 20px; }
  .service-content-title { font-size: 16px; }

  /* +ボックス：縦並び */
  .service-plus-boxes {
    flex-direction: column !important;
    gap: 0 !important;
    max-width: 100% !important;
    margin-bottom: 36px !important;
  }
  .service-plus-box {
    width: 100% !important;
    font-size: 15px !important;
    padding: 16px 16px !important;
  }
  .service-plus-sign {
    text-align: center !important;
    width: 100% !important;
    padding: 8px 0 !important;
    font-size: 24px !important;
    transform: none !important;
  }

  /* チェックリスト：縦並び */
  .service-checklist-inner {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 20px 16px !important;
  }
  .service-checklist-label {
    font-size: 15px !important;
    padding-top: 0 !important;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 12px !important;
    text-align: center;
  }
  .service-checklist li { font-size: 13px !important; }
  .service-checklist-note { font-size: 11px !important; text-align:left ;}

  /* Contactボタン：メール上・電話下 */
  .page-service .contact-buttons > a:not(.phone) { order: 1; }
  .page-service .contact-buttons > div { order: 2; }
  .contact-section.page-service { padding: 48px 16px 72px; }

  /* ---- Recruit ページ ---- */

  /* イントロ */
  .recruit-intro { padding: 20px 16px 48px; }
  .recruit-intro-lead { font-size: 15px; text-align: left; }
  .recruit-intro-body p { font-size: 13px; }

  /* 当事務所の特徴：service-gridと同クラスのため追加指定なし */
  .recruit-features-section { padding: 48px 16px 56px; }

  /* 募集要項テーブル */
  .recruit-requirements-section { padding: 48px 16px 56px; }
  .recruit-table th {
    width: 90px !important;
    font-size: 13px !important;
    padding: 14px 8px !important;
    white-space: nowrap;
  }
  .recruit-table td {
    font-size: 13px !important;
    padding: 14px 8px !important;
  }

  /* フォームセクション */
  .recruit-form-section { padding: 48px 16px 60px; }
  .recruit-form-lead { font-size: 15px; }
  .recruit-tel-number { font-size: 30px !important; }
  .recruit-form-desc { font-size: 15px; }
  .recruit-tel-label {font-size: 18px;}
  .recruit-tel-hours{font-size: 15px;}
  .recruit-form-label--required::before {font-size: 11px;}
  .recruit-form-privacy {font-size: 13px;}

  /* フォーム：ラベル上・入力欄下 */
  .recruit-form-row {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .recruit-form-label {
    padding-top: 0 !important;
    font-size: 13px !important;
  }
  .recruit-form-input,
  .recruit-form-textarea { font-size: 14px !important; }

  /* 送信ボタン：幅100% */
  .recruit-submit-btn {
    width: 100% !important;
    padding: 18px 16px !important;
    font-size: 15px !important;
    max-width: 100% !important;
  }

  /* ---- Contact ページ ---- */

  /* ご利用の流れ：縦並び・中央寄せ */
  .contact-flow-section { padding: 32px 16px 56px; }
  .contact-flow-steps {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    max-width: 100% !important;
  }
  .contact-flow-step {
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    padding: 24px 0;
  }
  .contact-flow-icon {
    width: 140px !important;
    height: 120px !important;
    margin: 0 auto 16px !important;
  }
  .contact-flow-badge {
    justify-content: center;
    margin-bottom: 8px;
    font-size: 15px;
  }
  .contact-flow-step-desc {
    margin: 0 auto;
    text-align: center !important;
    font-size: 13px;
  }
  /* 矢印：↓ */
  .contact-flow-arrow {
    padding: 0 !important;
    margin: 0 !important;
    justify-content: center;
    width: 100%;
  }
  .contact-flow-arrow img {
    width: 28px !important;
    transform: rotate(90deg);
  }

  /* フォームセクション */
  .contact-form-section { padding: 40px 16px 80px; }
  .contact-form-lead { font-size: 15px; }

  /* 電話番号 */
  .contact-tel-number { font-size: 30px !important; }
  .contact-tel-label { font-size: 18px !important; }
  .contact-tel-hours { font-size: 15px !important; }
  .contact-form-sub-lead { font-size: 15px !important; }
  .contact-form-label--required::before { font-size: 11px !important; }
  .contact-form-radio { font-size: 13px !important; }
  .contact-privacy-label { font-size: 13px !important; }
  .contact-flow-badge span {font-size: 10px;}
  .contact-tel-block {
    margin-bottom: 40px !important;
    padding-top: 10px !important;
    padding-bottom: 20px !important;
  }

  /* フォーム：ラベル上・入力下・縦並び */
  .contact-form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 16px 0 !important;
  }
  .contact-form-label {
    padding-top: 0 !important;
    font-size: 13px !important;
  }
  .contact-form-input,
  .contact-form-textarea {
    font-size: 16px !important; /* iOS zoom防止 */
  }
  .contact-form-textarea { min-height: 140px !important; }

  /* 送信ボタン：幅100% */
  .contact-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px !important;
    font-size: 15px !important;
  }

  /* プライバシー */
  .contact-form-privacy { margin-top: 28px; }

  /* ---- ページヒーロー ---- */
  .page-hero { padding-top: 90px; padding-bottom:40px }
  .page-hero-bg-text { font-size: 42px; }
  .page-hero-title { font-size: 17px; }
  .section-title{ font-size: 20px; }

  /* ---- Completed ページ ---- */
  .completed-hero { padding-top: 80px; padding-bottom: 10px; }
  .completed-body { padding: 40px 16px 100px; }
  .completed-title {
    font-size: 20px !important;
    line-height: 1.7 !important;
    margin-bottom: 28px !important;
    text-align: center !important;
  }
  .completed-text {
    font-size: 15px !important;
    line-height: 2.2 !important;
    text-align: center !important;
    margin-bottom: 48px !important;
  }
  .completed-back { margin-top: 0; }

  /* ---- 404 ページ ---- */
  .not-found-body { padding: 40px 16px 60px; }
  .not-found-title {
    font-size: 20px !important;
    line-height: 1.7 !important;
    margin-bottom: 24px !important;
  }
  .not-found-text {
    text-align: center !important;
    line-height: 2.2 !important;
    margin-bottom: 40px !important;
  }

  .header-contact-btn {
    width: 80px;
    height: 20px;
    padding:10px;
    font-size: 13px;
  }

  .header-contact-btn::before,
  .header-contact-btn::after {
    clip-path: polygon(6px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 6px);
  }

  .header-contact-btn::after {
    clip-path: polygon(5px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 5px);
  }
  .contact-modal-close {
    width: 36px;
    height: 36px;
  }

  .contact-modal-box {
    padding: 48px 16px 40px;
    width: calc(100% - 32px);
  }

  .contact-modal-en { font-size: 20px; margin-bottom: 4px; }
  .contact-modal-ja { margin-bottom: 24px; font-size: 11px;}
  .contact-modal-desc { font-size: 13px; margin-bottom: 28px; }
  .sp-only { display: inline; }

  .contact-modal-box .contact-buttons {
    grid-template-columns: 1fr;
  }

  .contact-modal-box .contact-btn.phone { order: 2; }
  .contact-modal-box .contact-btn:not(.phone) { order: 1; }

  .contact-modal-btn {
    padding: 16px 20px;
    font-size: 14px;
  }
  .hero-scroll {font-size: 11px; bottom: -50px;}
  .hero-scroll-line { height: 100px; }
  .contact-modal-btn--phone { font-size: 18px; }

  .contact-modal-hours { text-align: center; }
  .view-all-btn {font-size: 13px;}
  .service-grid .service-item:first-child::after { display: none }
  .recruit-form .wpcf7-form { gap: 30px; }
}



/* ========================================
   プライバシーポリシー
======================================== */
.privacy-section {
  padding: 80px 20px 120px;
}

.privacy-inner {
  max-width: 700px;
}

.privacy-lead {
  font-size: 13px;
  line-height: 2;
  margin-bottom: 64px;
  color: var(--color-text);
}

.privacy-block {
  margin-bottom: 56px;
}

.privacy-heading {
  font-family: var(--font-ja);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-text);
}

.privacy-block p {
  font-size: 13px;
  line-height: 2;
  margin-bottom: 12px;
}

.privacy-block p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.privacy-list li {
  font-size: 13px;
  line-height: 1.8;
  padding-left: 1em;
  position: relative;
}

.privacy-list li::before {
  content: '・';
  position: absolute;
  left: 0;
}

@media (max-width: 768px) {
  .privacy-section { padding: 48px 16px 80px; }
  .privacy-lead { font-size: 13px; margin-bottom: 40px; }
  .privacy-heading { font-size: 15px; }
  .privacy-block p,
  .privacy-list li { font-size: 13px; }
  .privacy-block { margin-bottom: 40px; }
}


/* ========================================
   News 一覧ページ（index.php）
======================================== */
.news-list-section {
  padding: 80px 20px 100px;
}

.news-list-inner {
  max-width: 800px;
}

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

.news-list-item {
  border-bottom: 1px solid #E2E0CF;
}

.news-list-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-list-link:hover {
  opacity: 0.6;
}

.news-list-date {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text);
  flex-shrink: 0;
  padding-top: 2px;
}

.news-list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-list-title {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 400;
}

.news-list-excerpt {
  font-size: 12px;
  line-height: 2;
  color: #6B6A61;
}

.news-list-pagination {
  margin-top: 60px;
  text-align: center;
}

.news-list-empty {
  font-size: 14px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .news-list-section { padding: 48px 16px 80px; }
  .news-list-link {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px 0;
  }
  .news-list-date { font-size: 11px; }
  .news-list-title { font-size: 13px; }
  .news-list-excerpt { font-size: 12px; }
}


/* ========================================
   News 一覧ページ（index.php）
======================================== */
.news-list-section {
  padding: 80px 20px 100px;
}

.news-list-inner {
  max-width: 800px;
}

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

.news-list-item {
  border-bottom: 1px solid #E2E0CF;
}

.news-list-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-list-link:hover {
  opacity: 0.6;
}

.news-list-date {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text);
  flex-shrink: 0;
  padding-top: 2px;
}

.news-list-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-list-title {
  font-size: 14px;
  line-height: 1.8;
  font-weight: 400;
}

.news-list-excerpt {
  font-size: 12px;
  line-height: 2;
  color: #6B6A61;
}

.news-list-pagination {
  margin-top: 60px;
  text-align: center;
}

.news-list-empty {
  font-size: 14px;
  padding: 40px 0;
}

@media (max-width: 768px) {
  .news-list-section { padding: 48px 16px 80px; }
  .news-list-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
  }
  .news-list-date {
    order: 3;
    font-size: 12px;
    margin-top: 4px;
  }
  .news-list-body {
    order: 1;
    gap: 6px;
  }
  .news-list-title { font-size: 13px; }
  .news-list-excerpt { font-size: 12px; }
}

/* ========================================
   News 詳細ページ（single.php）
======================================== */

.single-header {
  padding: 180px 20px 60px;
}

.single-header-inner {
  max-width: 700px;
  border-bottom: 1px solid #E2E0CF;
  padding-bottom: 40px;
}

.single-title {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}

.single-date {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.single-body {
  padding: 00px 20px 100px;
}

.single-body-inner {
  max-width: 700px;
}

.single-content {
  margin-bottom: 80px;
}

.single-content p {
  font-size: 12px;
  line-height: 2.2;
  margin-bottom: 2em;
  color: var(--color-text);
}

.single-content h2 {
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin-top: 3em;
  margin-bottom: 1.2em;
  padding-bottom: 10px;
}

.single-content h3 {
  font-family: var(--font-ja);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  margin-top: 2.5em;
  margin-bottom: 1em;
}

.single-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
}

.single-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-content ul li {
  font-size: 14px;
  line-height: 2;
  padding-left: 1.2em;
  position: relative;
}

.single-content ul li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-text);
}

.single-content ol {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  counter-reset: ol-counter;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single-content ol li {
  font-size: 12px;
  line-height: 2;
  padding-left: 1.8em;
  position: relative;
  counter-increment: ol-counter;
}

.single-content ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--color-text);
}

.single-content a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.single-content a:hover {
  opacity: 0.6;
}

.single-content a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 11'%3E%3Cpath d='M1 1h4v1H2v7h7V6h1v4H1V1zm5 0h4v4h-1V2.707L4.354 8.354l-.708-.708L9.293 2H6V1z' fill='%231a1a1a'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.single-content strong,
.single-content b {
  font-weight: 500;
}

.single-content u {
  text-underline-offset: 3px;
}

.single-back {
  text-align: center;
  padding-top: 40px;
}

.single-back-btn {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-text);
  transition: opacity 0.2s;
}

.single-back-btn:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .single-header { padding: 110px 16px 40px; }
  .single-title { font-size: 18px; }
  .single-body { padding: 0px 16px 80px; }
  .single-content p,
  .single-content ul li,
  .single-content ol li { font-size: 13px; }
  .single-content h2 { font-size: 15px; }
  .single-content h3 { font-size: 14px; }
}


/* ========================================
   外部リンクアイコン上書き
======================================== */
.single-content a[target="_blank"]::after {
  content: '↗';
  display: inline;
  font-size: 0.8em;
  margin-left: 3px;
  text-decoration: none;
  vertical-align: middle;
  font-style: normal;
}


/* 外部リンクアイコン：arrow.svg使用 */
.single-content a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-left: 4px;
  margin-bottom: 4px;
  background-image: url("data:image/svg+xml,%3Csvg height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m291 414v16h16v-16h-4.5v1h3.5v14h-14v-14h3.5v-1zm4.464466-2.045532-.707107-.707107 4.242641-4.242641 4.242641 4.242641-.707107.707107-3.037097-3.037097v13.082629h-.998437v-13.081066z' fill='%231a1a1a' transform='translate(-290 -406)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  text-decoration: none;
  position: static;
  top: auto;
}


/* 外部リンクアイコン：arrow.svg使用 */
.single-content a[target="_blank"]::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20128%20128%27%3E%3Cpath%20d%3D%27m124%208v36c0%202.211-1.789%204-4%204s-4-1.789-4-4v-26.344l-57.172%2057.172c-.781.781-1.805%201.172-2.828%201.172s-2.047-.391-2.828-1.172c-1.563-1.563-1.563-4.094%200-5.656l57.172-57.172h-26.344c-2.211%200-4-1.789-4-4s1.789-4%204-4h36c2.211%200%204%201.789%204%204zm-16%20104v-48c0-2.211-1.789-4-4-4s-4%201.789-4%204v48c0%202.207-1.793%204-4%204h-80c-2.207%200-4-1.793-4-4v-80c0-2.207%201.793-4%204-4h48c2.211%200%204-1.789%204-4s-1.789-4-4-4h-48c-6.617%200-12%205.383-12%2012v80c0%206.617%205.383%2012%2012%2012h80c6.617%200%2012-5.383%2012-12z%27%20fill%3D%27%231a1a1a%27%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
  text-decoration: none;
}


/* ページネーション */
.news-list-pagination .page-numbers {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-decoration: none;
  padding: 0 12px;
}

.news-list-pagination .page-numbers.current {
  opacity: 0.4;
}

.news-list-pagination .page-numbers:hover {
  opacity: 0.6;
}


/* =======================
   Loading Screen / FV ロゴアニメーション
   オーバーレイ不要。FV内のインラインSVGを直接アニメーション。
========================== */

/* --- FVロゴSVG全体 --- */
.fv-logo-svg {
  width: 270px;
  height: auto;
  display: block;
  margin: 0 auto;
  overflow: visible;
}

/* --- ブロックマーク（lb1〜lb6）：最初は全部非表示 ---
   初期位置：テキスト分だけ右にオフセットして「完全に中央」に配置
   ブロック出現完了後、is-revealed で左スライドして本来の位置へ
*/
.logo-blocks {
  transform: translateX(68px);
  transition: transform 0.65s cubic-bezier(0.76, 0, 0.24, 1);
}
.logo-blocks.is-revealed {
  transform: translateX(0);
}
.logo-blocks g {
  opacity: 0;
  transition: none; /* JSで個別にtransition付与 */
}

/* --- テキスト部分：本来の位置でそのままフェードインのみ ---
   マークのスライド(0.65s)が終わる頃から出始めるようdelayを設定
*/
.logo-text-group {
  opacity: 0;
  transition: opacity 0.5s ease 0.5s;
}
.logo-text-group.is-revealed {
  opacity: 1;
}

/* ローディング中：スクロール操作はJSの wheel/touchmove キャンセルで制御 */

/* --- TOPページ：ローディング中はヘッダー・コンテンツを非表示 ---
   インラインスクリプトで is-front-loading を即付与してフラッシュ防止
*/
body.is-front-loading #site-header,
body.is-front-loading .header-nav,
body.is-front-loading .header-contact-btn,
body.is-front-loading .header-menu-btn,
body.is-front-loading .footer-contact-btn {
  opacity: 0;
  transform: translateY(-8px);
  transition: none;
}
body.is-front-loading main > *:not(.hero) {
  opacity: 0;
  transition: none;
}
/* FV内の Scroll インジケーターも非表示 */
body.is-front-loading .hero-scroll {
  opacity: 0;
  transition: none;
}
/* ローディング中は .fade-in の IntersectionObserver 自動発火を抑制 */
body.is-front-loading .fade-in {
  transition: none !important;
}

/* ローディング完了 → ふわっと登場 */
body.is-page-revealed #site-header,
body.is-page-revealed .header-nav,
body.is-page-revealed .header-contact-btn,
body.is-page-revealed .header-menu-btn,
body.is-page-revealed .footer-contact-btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease 0.05s, transform 0.65s ease 0.05s;
}

/* TOPページのヘッダーロゴはObserverで制御するため、is-page-revealedで表示させない */
body.is-front-page.is-page-revealed .header-logo {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.is-front-page.is-page-revealed.header-logo-visible .header-logo {
  opacity: 1;
  visibility: visible;
}

body.is-page-revealed main > *:not(.hero) {
  opacity: 1;
  transition: opacity 0.65s ease 0.2s;
}
body.is-page-revealed .hero-scroll {
  opacity: 1;
  transition: opacity 0.65s ease 0.4s;
}

/* --- 下層ページ：ページ遷移時のふわっと登場 --- */
body.is-subpage-entry #site-header,
body.is-subpage-entry main {
  animation: subpage-fadein 0.55s ease both;
}
@keyframes subpage-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- SP対応 --- */
@media (max-width: 640px) {
  .fv-logo-svg {
    width: 200px;
  }
}
