:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-deep: #f8f8f8;
  --surface: rgba(0, 0, 0, 0.04);
  --surface-strong: rgba(0, 0, 0, 0.08);
  --text: #1a1a1a;
  --muted: #666666;
  --primary: #b88f42;
  --primary-dark: #8f6f32;
  --accent: #d4b26f;
  --heading: #000000;
  --border: rgba(0, 0, 0, 0.08);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  /* clip は横はみ出しをクリップしつつスクロールコンテナを作らないため、
     position: sticky のヘッダ固定と、スクロール駆動アニメーション（view()）の
     両方を阻害しない（overflow:hidden だと両者が壊れる）。 */
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  color: var(--text);
}

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

.page-shell {
  position: relative;
  z-index: 1;
}

#page-bubbles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 25;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 60px;
  padding: 0 2rem;
  background: linear-gradient(225deg, #c41e3a 0%, #a01628 50%, #7a1220 100%);
  backdrop-filter: blur(18px);
}

.site-header .site-nav {
  margin-left: auto;
}

.site-header > .btn {
  margin-left: 32px;
  width: min(210px, 80%);
  padding: 0.95rem 1.2rem;
}

/* 言語切替（EN / JP） */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 24px;
  padding: 3px;
  border: 1px solid rgba(244, 215, 122, 0.5);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.12);
}
.lang-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 38px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f4d77a;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover {
  color: #fff;
}
.lang-btn-active {
  color: #5a0d14;
  background: linear-gradient(135deg, #f4d77a 0%, #d4af37 100%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 5px;
  background: linear-gradient(90deg, #8f6a1f 0%, #d4af37 25%, #f4d77a 50%, #d4af37 75%, #8f6a1f 100%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.logo {
  height: 95px;
  width: auto;
}

.brand span {
  letter-spacing: 0.35em;
  font-size: 0.95rem;
  color: #ffffff;
  text-transform: uppercase;
}

.brand span span {
  color: #d4b26f;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #ffffff;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #8f6a1f 0%, #c9a227 28%, #f4d77a 52%, #d4af37 74%, #9c7320 100%);
  color: #2b1d05;
  box-shadow: 0 6px 18px rgba(150, 110, 25, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9c7320 0%, #d4af37 28%, #fbe6a2 52%, #e0bb47 74%, #a87f23 100%);
  box-shadow: 0 8px 24px rgba(150, 110, 25, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-actions .btn-secondary {
  background: linear-gradient(135deg, #c41e3a 0%, #a01628 50%, #7a1220 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions .btn-secondary:hover {
  background: linear-gradient(135deg, #d04147 0%, #b12027 50%, #871316 100%);
}

.hero-actions .btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.hero-actions .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
}

.hero-actions .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 3rem 2rem;
  gap: max(30px, 2rem);
  overflow: hidden;
  background: linear-gradient(225deg, #c41e3a 0%, #a01628 50%, #7a1220 100%);
}

/* 浮遊する丸のアニメーション用キャンバス */
.bubbles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-copy,
.hero-figure {
  position: relative;
  z-index: 2;
  transition: opacity 2.4s ease-in-out, transform 2.6s ease-in-out;
}

.hero-copy {
  max-width: 620px;
  margin-left: 150px;
}

.eyebrow {
  margin: 0;
  color: #fef9c3;
  font-size: 1.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(2rem, 2.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #ffffff;
  white-space: nowrap;
}

:lang(ja) .hero h1 {
  font-size: clamp(3rem, 4.2vw, 5.1rem);
}

/* 英語は長文になりやすいので折り返し可にして地球との重なりを防ぐ */
:lang(en) .hero h1 {
  white-space: normal;
  max-width: 620px;
  overflow-wrap: break-word;
}

.hero-text {
  margin: 1rem 0 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: #fef9c3;
  font-size: 1.425rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-figure {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  margin-right: 250px;
}

.hero-figure img {
  width: clamp(240px, 42vw, 400px);
}

.section {
  padding: 5rem 2rem;
}

.section-content {
  max-width: 920px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section.about .section-label {
  color: var(--primary);
}

.section.about h2 {
  color: #1a1a1a;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.section p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.85;
}

.services {
  background: rgba(0, 0, 0, 0.02);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem;
  margin-top: 2.8rem;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.03);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  min-height: 260px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.card-wide {
  grid-column: 1 / -1;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.72) 100%);
  border-radius: inherit;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-number {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: rgba(212, 178, 111, 0.9);
  font-weight: 700;
}

.card h3 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.section.about {
  position: relative;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.94)), url('../images/globe01.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 25, 52, 0.24), rgba(212, 178, 111, 0.12) 35%, rgba(255,255,255,0.15) 75%);
  pointer-events: none;
}

.section.about .section-content,
.about-grid {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-details {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  padding: 2.4rem;
  border-radius: 32px;
  border: 3px solid transparent;
  background-image: linear-gradient(white, white), linear-gradient(135deg, #d4b26f 0%, #f4d77a 45%, #c41e3a 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

.about-details dl {
  margin: 0;
}

.about-details dt {
  font-weight: 700;
  margin-top: 1.5rem;
  color: var(--text);
}

.about-details dd {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.85;
}

.contact .section-content {
  max-width: 840px;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(184, 143, 66, 0.6);
  box-shadow: 0 0 0 4px rgba(184, 143, 66, 0.15);
}

textarea {
  resize: vertical;
}

.full-width {
  grid-column: 1 / -1;
}

.site-footer {
  position: relative;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #c41e3a 0%, #a01628 48%, #7a1220 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8f1d0;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4d77a, #d4af37, #f4d77a);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 80px;
  width: auto;
  flex-shrink: 0;
}

.footer-info {
  text-align: left;
}

.footer-company {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.footer-address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.9;
}

.footer-copy {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.9);
}

/* ── イントロオーバーレイ ── */

/* 背景レイヤー z-index:50 */
#intro-bg {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: linear-gradient(225deg, #c41e3a 0%, #a01628 50%, #7a1220 100%);
  transition: opacity 0.9s ease;
  pointer-events: none;
}

/* アニメーションcanvasはz-index:51で背景の上・ロゴの下に浮上 */
body.intro-loading #page-bubbles,
body.intro-loading .bubbles-canvas {
  z-index: 51;
}

/* .page-shell のスタッキングコンテキストから脱出させるため fixed に変更 */
body.intro-loading #shootingstars,
body.intro-loading #bubbles {
  position: fixed;
  inset: 0;
  z-index: 51;
}

/* ロゴレイヤー z-index:52 */
#intro-logo-wrap {
  position: fixed;
  inset: 0;
  z-index: 52;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

#intro-logo {
  width: clamp(180px, 32vw, 380px);
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ローディングアイコン（画像） */
#intro-spinner {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* ローディングアイコン（CSS版・画像未設定時） */
.intro-spinner-css {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(212, 175, 55, 0.25);
  border-top-color: #d4af37;
  border-radius: 50%;
  animation: intro-spin 0.8s linear infinite;
}

@keyframes intro-spin {
  to { transform: rotate(360deg); }
}

body.intro-loading {
  overflow: hidden;
}

body.intro-loading .hero-copy,
body.intro-loading .hero-figure {
  opacity: 0;
  transform: translateY(18px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══ PC: 地球を absolute 配置にしてテキスト幅を確保 (〜1400px) ══ */
@media (max-width: 1400px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-figure {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 0;
    min-height: auto;
    pointer-events: none;
    z-index: 1;
  }
  .hero-copy {
    position: relative;
    z-index: 2;
    margin-left: 150px;
    max-width: 620px;
  }
  #globe3d { width: 560px !important; height: 560px !important; }
}

/* ══ 1200px ══ */
@media (max-width: 1200px) {
  .hero-copy  { margin-left: 80px; max-width: 580px; }
  #globe3d { width: 480px !important; height: 480px !important; }
}

/* ══ PC 1024〜1280px: ヘッダーをコンパクトに ══ */
@media (min-width: 768px) and (max-width: 1280px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .logo {
    height: 64px;
  }

  .site-nav {
    gap: 0.9rem;
    flex-shrink: 1;
    flex-wrap: nowrap;
  }

  .site-nav a {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .lang-switch {
    margin-left: 8px;
    flex-shrink: 0;
  }

  .site-header > .btn {
    margin-left: 8px;
    width: auto;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

/* ══ 960px ══ */
@media (max-width: 767px) {
  /* ヒーロー */
  .hero-copy  { margin-left: 2rem; max-width: 520px; }
  #globe3d { width: 380px !important; height: 380px !important; }
  /* ヘッダー */
  .site-header {
    padding: 0.5rem 1.5rem;
    gap: 0.5rem;
  }

  .logo {
    height: 70px;
  }

  .site-nav {
    gap: 0.8rem;
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0.3rem 0;
  }

  .site-header > .btn {
    margin-left: auto;
  }

  /* セクション */
  .section {
    padding: 4rem 1.5rem;
  }

  .service-grid,
  .about-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  /* フッター */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }

  .footer-info {
    text-align: center;
  }
}

/* ══ ハンバーガーメニュー ══ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  flex-shrink: 0;
  margin-left: 0.4rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ══ 640px: スマートフォン ══ */
@media (max-width: 767px) {
  /* ── ハンバーガー表示 ── */
  .hamburger {
    display: flex;
  }

  /* ── ヘッダー: 横並び維持、コンパクト化 ── */
  .site-header {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    padding: 0 1rem;
    min-height: 56px;
    height: 56px;
    gap: 0;
  }

  .logo {
    height: 52px;
  }

  /* ナビ: ドロップダウン化 */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    order: unset;
    width: 100%;
    padding: 0;
    justify-content: flex-start;
    background: linear-gradient(180deg, #9a1422 0%, #6e0e1b 100%);
    border-top: 2px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    z-index: 100;
  }

  .site-nav.nav-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.95rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
    width: 100%;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a.nav-active {
    color: #f4d77a;
    background: rgba(255, 255, 255, 0.05);
  }

  /* お問い合わせボタン: 小さく */
  .site-header > .btn {
    margin-left: auto;
    width: auto;
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* ── ヒーロー ── */
  .hero {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100svh;
    padding: 3rem 1.2rem;
  }

  .hero-copy {
    margin-left: 0 !important;
    text-align: center;
    max-width: 100%;
  }

  .hero h1,
  :lang(ja) .hero h1,
  :lang(en) .hero h1 {
    white-space: normal !important;
    max-width: 100%;
    font-size: clamp(2rem, 7vw, 3.2rem) !important;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .hero-figure {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    order: -1;
    margin-right: 0 !important;
    min-height: auto;
    pointer-events: auto;
  }

  #globe3d {
    width: 240px !important;
    height: 240px !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* ── セクション ── */
  .section {
    padding: 3rem 1.2rem;
  }

  /* ── 新着情報 ── */
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  /* ── フッター ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-info {
    text-align: center;
  }
}

/* ===================================================
   事業内容ページ (services.html)
=================================================== */

.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-nav a.nav-active {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── ページヒーロー ── */
.page-hero {
  position: relative;
  padding: 7rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(225deg, #c41e3a 0%, #a01628 50%, #7a1220 100%);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 25%, #f4d77a 50%, #d4af37 75%, transparent 100%);
}

.page-label {
  display: inline-block;
  color: #fef9c3;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: #ffffff;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.25;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.page-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.85;
  font-size: 1.05rem;
}

.page-hero-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-nav-item {
  padding: 0.5rem 1.15rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s;
}

.hero-nav-item:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

/* ── サービス詳細セクション ── */
.services-full {
  background: #ffffff;
}

.service-detail {
  max-width: 1140px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-head {
  position: sticky;
  top: 80px;
  align-self: start;
}

.svc-num {
  display: block;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(196, 30, 58, 0.09);
  letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}

.service-detail-head h2 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin: 0 0 0.9rem;
  line-height: 1.15;
}

.svc-tag {
  display: inline-block;
  padding: 0.28rem 0.85rem;
  background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.svc-lead {
  font-size: 1.02rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  padding-left: 1.2rem;
  border-left: 3px solid #c41e3a;
}

.svc-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.svc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.svc-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: #f7f7f7;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.55;
}

.svc-list li::before {
  content: "▸";
  color: #c41e3a;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.process-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.step-label {
  padding: 0.45rem 1rem;
  background: linear-gradient(135deg, #c41e3a 0%, #a01628 100%);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
}

.step-arrow {
  color: #c41e3a;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── CTA ── */
.services-cta {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.services-cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #1a1a1a;
  margin: 0.5rem 0 1rem;
}

.services-cta p {
  max-width: 560px;
  margin: 0 auto 2.5rem;
  color: #666;
  line-height: 1.8;
}

/* ── services.html レスポンシブ ── */
@media (max-width: 767px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 1.5rem;
  }

  .service-detail-head {
    position: static;
  }

  .svc-list {
    grid-template-columns: 1fr;
  }

  .page-hero-nav {
    gap: 0.5rem;
  }

  .services-cta {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .page-hero {
    padding: 4.5rem 1.2rem 3rem;
  }

  .page-intro {
    font-size: 0.95rem;
  }

  .process-steps {
    gap: 0.3rem;
  }

  .step-label {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  .step-arrow {
    font-size: 0.85rem;
  }

  .svc-lead {
    font-size: 0.95rem;
  }

  .services-cta {
    padding: 3rem 1.2rem;
  }
}

/* ===================================================
   会社概要ページ (about.html)
=================================================== */

/* ── 企業理念 ── */
.philosophy-section {
  padding: 6rem 2rem;
  background: #ffffff;
  text-align: center;
}

.philosophy-inner {
  max-width: 780px;
  margin: 0 auto;
}

.philosophy-quote {
  margin: 2rem 0 2rem;
  padding: 2.2rem 2.4rem;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.05) 0%, rgba(212, 178, 111, 0.07) 100%);
  border-left: 4px solid #c41e3a;
  border-radius: 0 16px 16px 0;
  text-align: left;
}

.philosophy-quote p {
  margin: 0.5rem 0;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.65;
}

.philosophy-desc {
  color: #666;
  line-height: 1.9;
  font-size: 1rem;
  text-align: left;
  max-width: 780px;
  margin: 0 auto;
}

/* ── 会社概要テーブル ── */
.about-info-section {
  padding: 5.5rem 2rem;
  background: #f7f7f7;
}

.about-info-inner {
  max-width: 860px;
  margin: 0 auto;
}

.company-info-dl {
  margin: 1.8rem 0 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.ci-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ci-row:last-child {
  border-bottom: none;
}

.ci-row dt {
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.06), rgba(196, 30, 58, 0.02));
  font-weight: 700;
  font-size: 0.88rem;
  color: #c41e3a;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}

.ci-row dd {
  padding: 1.4rem 1.8rem;
  margin: 0;
  color: #444;
  line-height: 1.85;
  display: flex;
  align-items: center;
}

/* ── 強みセクション ── */
.strengths-section {
  padding: 5.5rem 2rem;
  background: #ffffff;
}

.strengths-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.strengths-inner h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #1a1a1a;
  margin: 0.5rem 0 2.5rem;
}

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.strength-card {
  padding: 2.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.strength-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(196, 30, 58, 0.1);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.strength-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.8rem;
  line-height: 1.45;
}

.strength-card p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.85;
  margin: 0;
}

/* ── about.html レスポンシブ ── */
@media (max-width: 767px) {
  .strength-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .philosophy-section {
    padding: 4rem 1.5rem;
  }

  .about-info-section {
    padding: 4rem 1.5rem;
  }

  .strengths-section {
    padding: 4rem 1.5rem;
  }
}

@media (max-width: 767px) {
  .strength-grid {
    grid-template-columns: 1fr;
  }

  .ci-row {
    grid-template-columns: 1fr;
  }

  .ci-row dt {
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0.8rem 1.2rem;
  }

  .ci-row dd {
    padding: 0.8rem 1.2rem 1.2rem;
  }

  .philosophy-quote {
    padding: 1.5rem 1.2rem;
  }

  .philosophy-section {
    padding: 3rem 1.2rem;
  }

  .about-info-section,
  .strengths-section {
    padding: 3rem 1.2rem;
  }
}

/* ===================================================
   新着情報セクション (index.html)
=================================================== */

.section.news {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 4rem 2rem;
}

.news-inner {
  max-width: 920px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.4rem;
  gap: 1rem;
}

.news-header h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  color: #1a1a1a;
  letter-spacing: 0.04em;
}

.news-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.06em;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid rgba(184, 143, 66, 0.4);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-all-link:hover {
  color: var(--primary-dark);
  border-color: var(--primary);
}

.news-all-arrow {
  transition: transform 0.2s;
}

.news-all-link:hover .news-all-arrow {
  transform: translateX(3px);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.news-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: background 0.2s;
}

.news-item:hover {
  background: rgba(184, 143, 66, 0.03);
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}

.news-date {
  font-size: 0.88rem;
  color: #999;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-tag {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.news-tag-info {
  background: rgba(26, 155, 220, 0.1);
  color: #1a6e9a;
}

.news-tag-service {
  background: rgba(184, 143, 66, 0.12);
  color: #8f6a1f;
}

.news-tag-press {
  background: rgba(196, 30, 58, 0.1);
  color: #a01628;
}

.news-title {
  font-size: 0.97rem;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.2s;
}

.news-title:hover {
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 1.1rem 0;
  }

  .news-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================
   新着情報一覧ページ (news.html)
=================================================== */

.news-page-section {
  padding: 5rem 2rem 7rem;
  background: #ffffff;
}

.news-page-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* ── カテゴリフィルター ── */
.news-filter {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.filter-btn {
  padding: 0.45rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
  background: rgba(184, 143, 66, 0.08);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.filter-btn-active {
  background: #c41e3a;
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}

.filter-btn-active:hover {
  background: #a8192f;
  color: #ffffff;
}

/* ── ニュース一覧 ── */
.news-page-list {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.news-page-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
  transition: background 0.2s;
  cursor: pointer;
}

.news-page-item:hover {
  background: rgba(184, 143, 66, 0.04);
}

.news-page-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex-shrink: 0;
  width: 130px;
}

.news-page-body {
  flex: 1;
  min-width: 0;
}

.news-page-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  line-height: 1.55;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.news-page-title::after {
  content: '';
  position: absolute;
  inset: 0;
}

.news-page-item:hover .news-page-title {
  color: var(--primary-dark);
}

.news-page-excerpt {
  margin: 0;
  font-size: 0.88rem;
  color: #777;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page-arrow {
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
}

.news-page-item:hover .news-page-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* ===================================================
   新着情報詳細ページ (news-001.html 等)
=================================================== */

/* ── パンくずリスト ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.breadcrumb span:last-child {
  color: #ffffff;
  font-weight: 700;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

/* ── 記事ヒーロー ── */
.article-hero {
  background: linear-gradient(225deg, #c41e3a 0%, #a01628 50%, #7a1220 100%);
  padding: 5rem 2rem 4.5rem;
  position: relative;
}

.article-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent 0%, #d4af37 25%, #f4d77a 50%, #d4af37 75%, transparent 100%);
}

.article-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-hero .news-tag {
  background: rgba(255, 255, 255, 0.92);
}

.article-hero .news-date {
  color: #f4d77a;
}

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.article-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

/* ── 記事本文 ── */
.article-body-section {
  background: #ffffff;
  padding: 5rem 2rem 6rem;
}

.article-body-inner {
  max-width: 800px;
  margin: 0 auto;
}

.article-content {
  color: #333;
  line-height: 1.95;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 3.5rem;
  margin-bottom: 3.5rem;
}

.article-content p {
  margin: 0 0 1.6rem;
}

.article-content h2 {
  font-size: 1.35rem;
  color: #1a1a1a;
  margin: 2.8rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid #c41e3a;
  line-height: 1.4;
}

.article-content h3 {
  font-size: 1.05rem;
  color: #1a1a1a;
  margin: 2rem 0 0.6rem;
  padding-left: 0.9rem;
  border-left: 3px solid rgba(196, 30, 58, 0.4);
  line-height: 1.5;
}

/* ── 記事内CTA ── */
.article-cta {
  margin-top: 2.5rem;
  padding: 2.4rem;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.04), rgba(212, 178, 111, 0.06));
  border-radius: 16px;
  text-align: center;
}

/* ── 前後ナビ ── */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.3rem 1.5rem;
  background: #f7f7f7;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.article-nav-link:hover {
  background: rgba(184, 143, 66, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.article-nav-link-next {
  text-align: right;
}

.article-nav-label {
  font-size: 0.75rem;
  color: #999;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-nav-title {
  font-size: 0.9rem;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-nav-arrow {
  font-size: 1rem;
  color: var(--primary);
}

/* ── 一覧に戻るボタン ── */
.article-back-wrap {
  text-align: center;
}

.article-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.8rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #555;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.article-back-btn:hover {
  background: #f0f0f0;
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.22);
}

/* ── 詳細ページ レスポンシブ ── */
@media (max-width: 767px) {
  .article-body-section {
    padding: 4rem 1.5rem 5rem;
  }
}

@media (max-width: 767px) {
  .article-hero {
    padding: 4rem 1.2rem 3rem;
  }

  .article-hero-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .article-body-section {
    padding: 3rem 1.2rem 4rem;
  }

  .article-content h2 {
    font-size: 1.15rem;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav-link-next {
    text-align: left;
  }

  .article-cta {
    padding: 1.8rem 1.2rem;
  }
}

/* ── news.html レスポンシブ ── */
@media (max-width: 767px) {
  .news-page-section {
    padding: 4rem 1.5rem 5rem;
  }

  .news-filter {
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  .news-page-section {
    padding: 3rem 1.2rem 4rem;
  }

  .news-page-item {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.2rem 0.5rem;
  }

  .news-page-meta {
    flex-direction: row;
    align-items: center;
    width: auto;
  }

  .news-page-arrow {
    display: none;
  }

  .filter-btn {
    font-size: 0.8rem;
    padding: 0.38rem 0.9rem;
  }
}

/* ===================================================
   お問い合わせページ (contact.html)
=================================================== */

.contact-page-section {
  padding: 5rem 2rem 7rem;
  background: #ffffff;
}

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

/* ── 3つのインフォカード ── */
.contact-info-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-bottom: 4rem;
}

.contact-info-card {
  padding: 1.8rem 1.5rem;
  background: #f7f7f7;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  text-align: center;
}

.contact-info-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 0.6rem;
}

.contact-info-icon-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: inline-block;
}

.contact-info-label {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
}

.contact-info-value {
  margin: 0;
  font-size: 0.92rem;
  color: #333;
  font-weight: 600;
  line-height: 1.5;
}

/* ── フォームラッパー ── */
.contact-form-wrap {
  padding: 3rem 3.2rem;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.contact-form-wrap h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: #1a1a1a;
  margin: 0.4rem 0 0.8rem;
}

.contact-form-desc {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0 0 2rem;
}

/* ── お問い合わせフォーム：入力欄の高さを揃える ── */
/* 「必須」バッジで必須項目のラベルが縦に伸びても、グリッドの自動ストレッチで
   会社名・電話番号の入力欄が引き伸ばされてズレないよう、各セルを上揃えにする */
.form-grid {
  align-items: start;
}

/* 「必須」バッジを項目名の右隣に横並び配置（赤い帯を1行使わない） */
.field-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

/* CF7フォーム全体を独自フォームと同じ間隔のグリッドに
   （form-grid・フルワイド項目・送信行の上下の余白を均等に揃える）
   grid-template-columns で全幅に固定（CF7入力欄の size="40" による幅縮みを防ぐ） */
.contact-form-wrap .wpcf7-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

/* CF7のローディングスピナーが送信ボタン右の余白を占有して
   ボタンを左へ押すため非表示に。これで送信ボタンが右端に揃う */
.form-submit-row .wpcf7-spinner {
  display: none;
}

/* ── セレクト ── */
select {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 1rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
  font: inherit;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  cursor: pointer;
}

select:focus {
  border-color: rgba(184, 143, 66, 0.6);
  box-shadow: 0 0 0 4px rgba(184, 143, 66, 0.15);
}

/* ── 必須バッジ ── */
.required-badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.1rem 0.5rem;
  background: #c41e3a;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

/* ── 送信行 ── */
.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.privacy-note {
  flex: 1;
  font-size: 0.8rem;
  color: #999;
  line-height: 1.65;
  margin: 0;
}

.form-submit-row .btn {
  flex-shrink: 0;
  width: auto;
  padding: 1rem 2.4rem;
  font-size: 1rem;
}

/* ===================================================
   サンクスページ (thank_you.html)
=================================================== */

.thankyou-section {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.thankyou-inner {
  max-width: 620px;
  width: 100%;
  text-align: center;
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8f6a1f 0%, #c9a227 40%, #f4d77a 100%);
  color: #2b1d05;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(150, 110, 25, 0.3);
}

.thankyou-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #1a1a1a;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.35;
}

.thankyou-text {
  font-size: 1.05rem;
  color: #333;
  line-height: 1.9;
  margin: 0 0 1.5rem;
}

.thankyou-note {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.85;
  margin: 0 0 2.5rem;
}

.thankyou-note a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thankyou-actions {
  display: flex;
  justify-content: center;
}

/* ── contact.html レスポンシブ ── */
@media (max-width: 767px) {
  .contact-page-section {
    padding: 4rem 1.5rem 5rem;
  }

  .contact-info-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-form-wrap {
    padding: 2.2rem 1.8rem;
  }
}

@media (max-width: 767px) {
  .contact-page-section {
    padding: 3rem 1.2rem 4rem;
  }

  .contact-info-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 1.8rem 1.2rem;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-submit-row .btn {
    text-align: center;
    width: 100%;
  }

  .privacy-note {
    font-size: 0.76rem;
  }
}

/* ── thank_you.html レスポンシブ ── */
@media (max-width: 767px) {
  .thankyou-section {
    padding: 3rem 1.2rem;
    align-items: flex-start;
  }

  .thankyou-title {
    font-size: 1.4rem;
  }

  .thankyou-note {
    font-size: 0.82rem;
  }

  .thankyou-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   スクロール連動マスク（JS不使用 / CSS animation-timeline）
   対象セクションに .svc-mask-reveal を付与すると、
   初期はヘッダと同じグラデーションのマスクで覆われ、
   スクロールに応じて中央から円形にマスクが外れ、
   背後のコンテンツ（カード等）がクリアに見えてくる。
   ============================================================ */

/* くり抜き半径を滑らかに補間するためのカスタムプロパティ */
@property --svc-reveal {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

.svc-mask-reveal {
  position: relative;
}

/* スクロール駆動アニメーション対応ブラウザのみマスクを生成。
   非対応ブラウザではこのオーバーレイ自体が作られないため、
   最初からコンテンツがクリアに見える（=フォールバック）。 */
@supports (animation-timeline: view()) {
  /* セクション本体（主ボックス）を subject とする名前付きビュータイムライン */
  .svc-mask-reveal {
    view-timeline: --svc-view block;
    /* 開き切る円の半径。セクションが入り終えた時点で可視領域を覆う大きさ。
       縦長になるモバイルでは大きめにして赤が残らないようにする。 */
    --svc-open: 70vmax;
  }
  @media (max-width: 767px) {
    .svc-mask-reveal { --svc-open: 200vmax; }
  }

  .svc-mask-reveal::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;                 /* 背後の要素を操作可能に保つ */
    /* ヘッダ背景と同じグラデーション */
    background: linear-gradient(225deg, #c41e3a 0%, #a01628 50%, #7a1220 100%);

    /* 中央の透明円（くり抜き）。半径 --svc-reveal までは透明＝オーバーレイ非表示、
       その外側は不透明＝オーバーレイ表示。2つの色停止を同じ位置にして
       境界をぼかさず、くっきりした円形エッジにする。 */
    -webkit-mask-image: radial-gradient(circle at 50% 50%,
        transparent var(--svc-reveal),
        #000 var(--svc-reveal));
    mask-image: radial-gradient(circle at 50% 50%,
        transparent var(--svc-reveal),
        #000 var(--svc-reveal));
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    /* セクションが下から入り始めた時点では覆われており、
       セクション全体が表示領域に入り終える（entry 100%）と同時に開き切る。
       ※ショートハンドは duration を 0s にしてしまうため、ロングハンドで指定。
         animation-duration は初期値 auto のまま＝タイムライン全体に広がる。 */
    animation-name: svc-mask-open;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --svc-view;
    animation-range: entry 0% entry 100%;
  }

  @keyframes svc-mask-open {
    to { --svc-reveal: var(--svc-open); }  /* 入り終えた時点で可視領域を覆い切る */
  }

  /* アクセシビリティ：視差・モーションを抑える設定では最初から開いた状態に */
  @media (prefers-reduced-motion: reduce) {
    .svc-mask-reveal::after { display: none; }
  }
}

/* ===================================================
   事業内容 各セクション 左右スライドイン
=================================================== */

.svc-el {
  opacity: 0;
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.svc-el.from-left  { transform: translateX(-64px); }
.svc-el.from-right { transform: translateX( 64px); }

.svc-el.svc-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================================
   プライバシーポリシーページ
=================================================== */

.privacy-section {
  padding: 80px 0 120px;
  background: #fff;
}

.privacy-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.privacy-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  border-left: 4px solid #c41e3a;
  padding-left: 14px;
  margin-bottom: 16px;
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.privacy-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  line-height: 1.7;
}

.privacy-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #c41e3a;
}

.privacy-contact {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 24px 28px;
  margin-top: 16px;
  line-height: 2;
}

.privacy-contact-link {
  display: inline-block;
  margin-top: 8px;
  color: #c41e3a;
  text-decoration: underline;
}

.privacy-contact-link:hover {
  opacity: 0.75;
}

.privacy-date {
  text-align: right;
  color: #888;
  font-size: 0.9rem;
  margin-top: 40px;
}

@media (max-width: 767px) {
  .privacy-section {
    padding: 48px 0 80px;
  }
  .privacy-heading {
    font-size: 1rem;
  }
}

/* ── 記事本文 言語切替 ── */
.content-en { display: none; }
:lang(en) .content-ja.has-en { display: none; }
:lang(en) .content-en { display: block; }

/* ── 事業内容ページ 提供サービス・プロセス 言語切替 ── */
.svc-list.lang-en,
.process-steps.lang-en { display: none; }
:lang(en) .svc-list.lang-ja,
:lang(en) .process-steps.lang-ja { display: none; }
:lang(en) .svc-list.lang-en { display: block; }
:lang(en) .process-steps.lang-en { display: flex; }

/* ── プライバシー 箇条書き 言語切替 ── */
.privacy-list.lang-en { display: none; }
:lang(en) .privacy-list.lang-ja { display: none; }
:lang(en) .privacy-list.lang-en { display: block; }

/* ── 会社情報テーブル 言語切替 ── */
.company-info-dl.lang-en { display: none; }
:lang(en) .company-info-dl.lang-ja { display: none; }
:lang(en) .company-info-dl.lang-en { display: block; }

/* ── 会社情報 多列テーブル（元デザイン踏襲：角丸カード・赤い項目列） ── */
.company-info-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  margin: 1.8rem 0 0;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
.company-info-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}
.company-info-table tr:last-child {
  border-bottom: none;
}
.company-info-table th {
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(196, 30, 58, 0.06), rgba(196, 30, 58, 0.02));
  font-weight: 700;
  font-size: 0.88rem;
  color: #c41e3a;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  width: 1%;
}
.company-info-table td {
  padding: 1.4rem 1.8rem;
  color: #444;
  line-height: 1.85;
  vertical-align: middle;
  white-space: nowrap;
  border-right: 1px solid rgba(0, 0, 0, 0.07);
}
/* 2列（項目｜値）のときは値列を折り返し可に、多列時は改行を抑制 */
.company-info-table[style*="--ci-cols:2"] td {
  white-space: normal;
}
.company-info-table td:last-child {
  border-right: none;
}
.company-info-table.lang-en { display: none; }
:lang(en) .company-info-table.lang-ja { display: none; }
:lang(en) .company-info-table.lang-en { display: table; }

@media (max-width: 767px) {
  .company-info-table th,
  .company-info-table td {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
    white-space: normal;
  }
}
