/* ============================================================
   ずっともカンパニー 公式サイト — 共通スタイル
   自社サイト制作用テンプレート。テキスト・画像は要差し替え。
   ============================================================ */

/* -------- 1. デザインシステム(CSS変数) -------- */
:root {
  --c-primary: #3D2E1F;
  --c-secondary: #A88859;
  --c-accent: #C7A45A;
  --c-bg-light: #F8F4ED;
  --c-bg-base: #FFFFFF;
  --c-bg-dark: #1F1A14;
  --c-text: #2A241D;
  --c-muted: #8A7F73;
  --c-border: #E5DDD0;
  --c-white: #FFFFFF;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --shadow-soft: 0 4px 24px rgba(61, 46, 31, 0.08);
  --shadow-hover: 0 12px 32px rgba(61, 46, 31, 0.14);
  --shadow-deep: 0 20px 48px rgba(31, 26, 20, 0.18);

  --font-mincho: 'Shippori Mincho', 'Noto Serif JP', 'Yu Mincho', serif;
  --font-en-serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-gothic: YakuHanMP_Noto, 'Zen Kaku Gothic New', 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-en-sans: 'Barlow', system-ui, sans-serif;
}

/* -------- 2. ベースリセット & タイポ -------- */
* { box-sizing: border-box; }

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--c-text);
  background: var(--c-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--c-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4 {
  font-family: var(--font-mincho);
  font-weight: 600;
  color: var(--c-primary);
  margin: 0;
  text-wrap: balance;
  line-break: strict;
}

h1 { font-size: 46px; line-height: 1.4; letter-spacing: -0.02em; }
h2 { font-size: 32px; line-height: 1.5; letter-spacing: -0.01em; }
h3 { font-size: 22px; line-height: 1.6; }
h4 { font-size: 18px; line-height: 1.6; }

p { margin: 0 0 24px; }

@media (max-width: 1023.98px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  h4 { font-size: 17px; }
}

@media (max-width: 767.98px) {
  body { font-size: 15px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  h3 { font-size: 18px; }
  h4 { font-size: 16px; }
  p { margin: 0 0 20px; }
}

/* -------- 3. コンテナ -------- */
.container, .container-narrow {
  width: 100%;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}
.container { max-width: 1200px; }
.container-narrow { max-width: 1080px; }
.container-tight { max-width: 720px; margin: 0 auto; }

/* -------- 4. eyebrow / section-title -------- */
.eyebrow {
  display: block;
  font-family: var(--font-en-serif);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.18em;
  color: var(--c-secondary);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  padding: 40px 0 32px;
}
.section-title .eyebrow { margin-bottom: 12px; }
.section-title h2 {
  margin: 0 0 16px;
}
.section-title h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-accent);
  margin: 16px auto 0;
}
.section-title .lead {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* セクション共通余白 */
.section { padding: 100px 0; }
.section--light { background: var(--c-bg-light); }
.section--dark { background: var(--c-bg-dark); color: var(--c-white); }

@media (max-width: 767.98px) {
  .section { padding: 60px 0; }
  .section-title { padding: 24px 0 24px; }
}

/* -------- 5. ボタン -------- */
.btn-primary-custom,
.btn-outline-custom {
  display: inline-block;
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.05em;
  padding: 16px 32px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-primary);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
}
.btn-primary-custom {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-primary-custom:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-white);
}
.btn-outline-custom {
  background: transparent;
  color: var(--c-primary);
}
.btn-outline-custom:hover {
  background: var(--c-primary);
  color: var(--c-white);
}
.btn-outline-custom--white {
  border-color: var(--c-white);
  color: var(--c-white);
}
.btn-outline-custom--white:hover {
  background: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-white);
}

.link-arrow {
  display: inline-block;
  font-family: var(--font-gothic);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  color: var(--c-primary);
  position: relative;
  padding-right: 22px;
  transition: color 0.2s ease;
}
.link-arrow::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}
.link-arrow:hover { color: var(--c-accent); }
.link-arrow:hover::after { transform: translateX(4px); color: var(--c-accent); }

/* -------- 6. ヘッダー -------- */
#header.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 40px;
  transition: height 0.3s ease;
}
#header .logo {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 22px;
  color: var(--c-primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
#header .nav-desktop ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}
#header .nav-desktop a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-primary);
  padding: 8px 0;
  position: relative;
}
#header .nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
#header .nav-desktop a:hover::after,
#header .nav-desktop a.is-current::after {
  transform: scaleX(1);
}
#header .nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
}
#header .nav-toggle span {
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--c-primary);
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease;
}
#header .nav-toggle span:nth-child(1) { top: 14px; }
#header .nav-toggle span:nth-child(2) { top: 21px; }
#header .nav-toggle span:nth-child(3) { top: 28px; }
#header .nav-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
#header .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
#header .nav-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 12px rgba(61, 46, 31, 0.06);
}
#header.header-scrolled .header-inner { height: 68px; }

/* モバイルナビパネル(<body> 直下配置) */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

.nav-mobile-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 86vw;
  max-width: 360px;
  height: 100%;
  background: var(--c-bg-light);
  z-index: 1200;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s ease;
  padding: 80px 28px 40px;
  overflow-y: auto;
}
.nav-mobile-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}
.nav-mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-panel li {
  border-bottom: 1px solid var(--c-border);
}
.nav-mobile-panel a {
  display: block;
  padding: 18px 4px;
  min-height: 56px;
  font-family: var(--font-mincho);
  font-size: 17px;
  color: var(--c-primary);
}
.nav-mobile-panel a:hover { color: var(--c-accent); }
.nav-mobile-panel .panel-en {
  font-family: var(--font-en-serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-secondary);
  display: block;
  margin-top: 4px;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  #header .header-inner { height: 60px; padding: 0 20px; }
  #header.header-scrolled .header-inner { height: 56px; }
  #header .nav-desktop, #header .lang-switch, #header .nav-cta,
  #header .logo-en, #header .logo-sub, #header .logo-subtitle,
  #header .header-search { display: none !important; }
  #header .nav-toggle { display: block; }
  #header .logo { white-space: nowrap; font-size: 18px; }
  #header { min-height: 0; }
}

/* モバイルナビパネル含むブロック事故予防 */
@media (max-width: 767.98px) {
  #header.header, header.header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
  }
}

/* -------- 7. ヒーロー -------- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 0 100px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--c-white);
  overflow-x: clip;
  max-width: 100%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.55) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}
.hero h1 {
  color: var(--c-white);
  margin: 0 0 24px;
  font-size: 46px;
  line-height: 1.5;
  text-wrap: balance;
}
.hero__lead {
  font-size: 16px;
  line-height: 2;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

@media (min-width: 768px) {
  .hero { padding-top: 120px; }
}
@media (max-width: 767.98px) {
  .hero {
    min-height: 70vh !important;
    max-height: 88vh !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 100px 20px 60px !important;
  }
  .hero h1 { font-size: 30px; line-height: 1.5; }
  .hero__lead { font-size: 14px; line-height: 1.9; }
}

/* PC専用 br(ヒーロー h1/h2 のみ許容) */
.pc-only { display: inline; }
@media (max-width: 767.98px) {
  .pc-only { display: none; }
}

/* -------- 8. サブページヒーロー -------- */
.subpage-hero {
  position: relative;
  height: 320px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-white);
  margin-top: 0;
  padding-top: 82px;
  overflow-x: clip;
  max-width: 100%;
}
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 0;
}
.subpage-hero > * { position: relative; z-index: 1; }
.subpage-hero .eyebrow { color: rgba(255, 255, 255, 0.85); }
.subpage-hero h1 {
  color: var(--c-white);
  font-size: 38px;
  margin: 8px 0 0;
}
@media (max-width: 767.98px) {
  .subpage-hero { height: 220px; padding-top: 60px; }
  .subpage-hero h1 { font-size: 26px; }
}

/* -------- 9. パンくず -------- */
.breadcrumb-bar {
  background: var(--c-bg-light);
  padding: 16px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--c-border);
}
.breadcrumb-bar ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb-bar a { color: var(--c-muted); }
.breadcrumb-bar a:hover { color: var(--c-primary); }
.breadcrumb-bar .sep { color: var(--c-muted); }
.breadcrumb-bar .current { color: var(--c-primary); font-weight: 500; }

/* -------- 10. カード(services-preview) -------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.services-grid > * { min-width: 0; }

.card-custom {
  background: var(--c-bg-base);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card-custom:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-custom .card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.card-custom .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-custom .card-body {
  padding: 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-custom h4 {
  margin: 0 0 12px;
  font-size: 18px;
}
.card-custom p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
  margin: 0 0 20px;
  flex: 1;
}

@media (max-width: 1023.98px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
  .services-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-custom .card-body { padding: 24px; }
}

/* -------- 11. 2カラム(画像+テキスト) -------- */
.two-col-image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col-image-text > * { min-width: 0; }
.two-col-image-text--reverse > .col-image { order: 2; }
.two-col-image-text--reverse > .col-text { order: 1; }

.two-col-image-text .col-image img {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-text .eyebrow,
.message-text .eyebrow,
.about-text .eyebrow {
  margin-bottom: 12px;
}
.service-text h3,
.message-text h3 {
  margin: 0 0 16px;
}
.service-text h3::after,
.message-text h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--c-accent);
  margin: 16px 0 24px;
}
.service-text p,
.message-text p,
.about-text p {
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text);
}
.message-text .signature {
  margin-top: 16px;
  text-align: right;
  font-family: var(--font-mincho);
  font-size: 16px;
  color: var(--c-primary);
}

@media (max-width: 767.98px) {
  .two-col-image-text {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .two-col-image-text--reverse > .col-image,
  .two-col-image-text--reverse > .col-text { order: initial; }
}

/* services.html service-block 個別 */
.service-block { padding: 80px 0; }
.service-block + .service-block { padding-top: 80px; }
.service-block--alt { background: var(--c-bg-light); }
@media (max-width: 767.98px) {
  .service-block { padding: 50px 0; }
}

/* -------- 12. about-preview / about-intro -------- */
.about-intro-text {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.about-intro-text p { color: var(--c-text); }
.about-intro-text p.lead.text-center {
  font-size: 17px;
  line-height: 2;
  color: var(--c-text);
  margin-bottom: 24px;
}
.about-intro-text .supplement {
  text-align: left;
  font-size: 15px;
  line-height: 1.95;
  color: var(--c-text);
  max-width: 640px;
  margin: 0 auto;
}

/* -------- 13. company-info -------- */
.company-info-list {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 32px;
  max-width: 720px;
  margin: 32px auto 0;
}
.company-info-list > * { min-width: 0; }
.company-info-list dt,
.company-info-list dd {
  padding: 18px 0;
  border-bottom: 1px solid var(--c-border);
  margin: 0;
  font-size: 15px;
}
.company-info-list dt {
  font-weight: 700;
  color: var(--c-primary);
  font-family: var(--font-mincho);
}
.company-info-list dd { color: var(--c-text); }

@media (max-width: 767.98px) {
  .company-info-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .company-info-list dt {
    padding: 14px 0 4px;
    border-bottom: 0;
  }
  .company-info-list dd {
    padding: 0 0 14px;
  }
}

/* -------- 14. CTAバナー -------- */
.cta-banner {
  background: var(--c-bg-dark);
  color: var(--c-white);
  text-align: center;
  padding: 80px 0;
}
.cta-banner h3 {
  color: var(--c-white);
  font-size: 28px;
  margin: 0 0 16px;
}
.cta-banner .cta-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 auto 32px;
  max-width: 520px;
  text-wrap: pretty;
}
@media (max-width: 767.98px) {
  .cta-banner { padding: 60px 0; }
  .cta-banner h3 { font-size: 22px; }
}

/* -------- 15. フッター -------- */
#footer {
  background: var(--c-bg-dark);
  color: var(--c-white);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.footer-grid > * { min-width: 0; }
.footer-brand .logo {
  font-family: var(--font-mincho);
  font-weight: 600;
  font-size: 22px;
  color: var(--c-white);
  display: inline-block;
  margin-bottom: 16px;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.footer-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 24px;
  max-width: 420px;
  text-wrap: pretty;
}
.footer-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
}
.footer-info-list li {
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 8px;
}
.footer-info-list li .label {
  color: var(--c-secondary);
  font-family: var(--font-en-serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-width: 64px;
  padding-top: 4px;
}
.footer-info-list a {
  color: rgba(255, 255, 255, 0.85);
}
.footer-info-list a:hover { color: var(--c-accent); }

.footer-nav h5 {
  font-family: var(--font-en-serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav li { margin: 0 0 12px; }
.footer-nav a {
  color: var(--c-white);
  font-size: 15px;
  font-family: var(--font-mincho);
}
.footer-nav a:hover { color: var(--c-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  text-align: center;
}

@media (max-width: 767.98px) {
  #footer { padding: 56px 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* -------- 16. お問い合わせフォーム -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}
.contact-grid > * { min-width: 0; }

.contact-form .form-group { margin-bottom: 24px; }
.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.contact-form .required {
  color: #C04C2D;
  font-size: 12px;
  margin-left: 8px;
  font-weight: 700;
}
.contact-form .form-control,
.contact-form input:not([type="checkbox"]):not([type="radio"]),
.contact-form select,
.contact-form textarea,
form .form-control,
form input:not([type="checkbox"]):not([type="radio"]),
form select,
form textarea {
  width: 100%;
  min-height: 52px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  font-family: var(--font-gothic);
  color: var(--c-text);
  background: var(--c-bg-base);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form .form-control:focus,
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
form .form-control:focus,
form input:focus,
form select:focus,
form textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(199, 164, 90, 0.18);
}
form textarea, .contact-form textarea {
  min-height: 160px !important;
  resize: vertical;
}
form select, .contact-form select {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%233D2E1F' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  -webkit-appearance: none;
  appearance: none;
}
.contact-form .form-actions { text-align: center; margin-top: 16px; }
.contact-form .form-note {
  margin-top: 24px;
  padding: 14px 16px;
  background: var(--c-bg-light);
  border-left: 3px solid var(--c-accent);
  font-size: 13px;
  line-height: 1.8;
  color: var(--c-muted);
}

.contact-info-box {
  background: var(--c-bg-light);
  border-radius: var(--radius-md);
  padding: 32px;
}
.contact-info-box h4 {
  margin: 0 0 20px;
  font-size: 18px;
}
.contact-info-box dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 0;
}
.contact-info-box dt {
  font-family: var(--font-en-serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-secondary);
  text-transform: uppercase;
  margin: 0 0 4px;
}
.contact-info-box dd {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--c-text);
  line-height: 1.7;
}
.contact-info-box dd a { color: var(--c-primary); font-weight: 500; }
.contact-info-box dd a:hover { color: var(--c-accent); }

@media (max-width: 767.98px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-info-box { padding: 24px; }
}

/* -------- 17. ユーティリティ -------- */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 32px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 32px !important; }

/* リード/導入文 */
.lead {
  font-size: 17px;
  line-height: 2;
  color: var(--c-text);
}

/* -------- 18. モバイル必須CSS -------- */

/* (1) 横スクロール防止 — 既に上部で指定済み */

/* (2) 左右端余白 */
@media (max-width: 767.98px) {
  .container, .container-fluid, .container-narrow, [class*="container"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* (3) 2カラム→縦積み時のタイトル中央寄せ(本文 p は左寄せ維持) */
@media (max-width: 767.98px) {
  .about-text > .eyebrow, .about-text > h2, .about-text > h3,
  .message-text > .eyebrow, .message-text > h2, .message-text > h3,
  .service-text > .eyebrow, .service-text > h2, .service-text > h3,
  .block-text > .eyebrow, .block-text > h2, .block-text > h3 {
    text-align: center;
  }
  .about-text > h2::after, .about-text > h3::after,
  .message-text > h2::after, .message-text > h3::after,
  .service-text > h2::after, .service-text > h3::after,
  .block-text > h2::after, .block-text > h3::after {
    margin-left: auto; margin-right: auto;
  }
}

/* (4) 2カラム→縦積み時の CTA ボタン中央寄せ */
@media (max-width: 767.98px) {
  .about-text > .btn, .about-text > a[class*="btn"], .about-text > a.link-arrow,
  .message-text > .btn, .message-text > a[class*="btn"], .message-text > a.link-arrow,
  .service-text > .btn, .service-text > a[class*="btn"], .service-text > a.link-arrow,
  .block-text > .btn, .block-text > a[class*="btn"], .block-text > a.link-arrow {
    display: block;
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .message-text .signature { text-align: center; }
}

/* -------- 19. 日本語改行ルール(2026年版・改訂) -------- */
/* 約物ぶら下げ(Safari/iOS で実効、他は無視・副作用なし) */
body { hanging-punctuation: allow-end last; }

/* 本文系: 禁則処理 + 単語折返しのみ(text-wrap は指定しない=auto)
   → 行末まで詰めて自然に改行・右側隙間を防ぐ */
body, p, li, dt, dd, figcaption, blockquote, td, th {
  line-break: strict;
  word-break: normal;
  overflow-wrap: break-word;
}

/* リード/導入文のみ pretty で「1文字孤立行」を防ぐ
   ※ 短い導入文限定。本文段落 (.about-text p / .message-text p 等) には付与しない */
.lead, .section-lead, .hero__lead, .footer-desc {
  text-wrap: pretty;
}

/* 見出し: balance で短文の行バランス調整 */
h1, h2, h3, h4 {
  text-wrap: balance;
  line-break: strict;
}

/* mailto/tel リンクは改行禁止 */
a[href^="mailto:"], a[href^="tel:"] {
  word-break: keep-all;
  white-space: nowrap;
}


/* ============================================================
   VBA自動付与: モバイルヘッダー圧縮(safety net)
   モバイル(<768px)では「ロゴ1行 + ハンバーガー」のみに圧縮
   英字社名・サブタイトル・デスクトップCTA等は非表示
   ============================================================ */
@media (max-width: 767.98px) {
  #header .logo-en,
  #header .logo-sub,
  #header .logo-subtitle,
  #header .nav-cta,
  #header .nav-desktop,
  #header .lang-switch,
  #header .header-search,
  header .logo-en,
  header .logo-sub,
  header .nav-cta {
    display: none !important;
  }
  #header .logo,
  #header .logo-jp,
  header .logo,
  header .logo-jp {
    white-space: nowrap;
  }
}


/* ============================================================
   VBA自動付与: モバイルナビパネルescape(safety net)
   <header> に backdrop-filter / filter / transform があると、
   子の .nav-mobile-panel { position: fixed; inset: 0 } が
   viewport基準でなく <header> 枠(高さ60px)基準になり、
   ドロップダウンの最初の1項目しか見えない事故を起こす。
   モバイル時のみ <header> からそれらを解除して viewport基準に戻す。
   ※ .nav-mobile-panel のジオメトリは Pass 2 の意図設計を尊重し
      上書きしない(ドロワー幅/高さ/translateX 等を破壊しない)。
   ============================================================ */
@media (max-width: 767.98px) {
  #header,
  #header.header,
  header.header,
  header#header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    filter: none !important;
    transform: none !important;
    perspective: none !important;
    contain: none !important;
  }
}


/* ============================================================
   VBA自動付与: ヒーロークリアランス(safety net)
   固定ヘッダーとヒーロー先頭テキストが重なる事故を防ぐため、
   .hero / #hero に padding-top を強制適用
   detected fixed header: yes
   ============================================================ */
@media (min-width: 768px) {
  .hero,
  #hero,
  section.hero {
    padding-top: 120px;
  }
}
@media (max-width: 767.98px) {
  .hero,
  #hero,
  section.hero {
    padding-top: 80px;
  }
}


/* ============================================================
   VBA自動付与: ヒーローオーバーレイ + モバイル位置補正(safety net)
   (1) Pexels写真背景の上にダークオーバーレイで文字可読性確保
   (2) モバイルでは下寄せ解除 → 中央寄せ + 高さ抑制
   ============================================================ */
.hero,
#hero,
section.hero {
  position: relative;
}
.hero::before,
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
  pointer-events: none;
}
.hero > *,
#hero > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 767.98px) {
  .hero,
  #hero,
  section.hero {
    min-height: 70vh !important;
    max-height: 88vh !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 100px 20px 60px !important;
  }
  .hero .hero__inner,
  #hero .hero__inner,
  .hero .hero__catch,
  #hero .hero__catch {
    justify-content: center !important;
    align-items: flex-start !important;
  }
}


/* ============================================================
   VBA自動付与: 横スクロール防止(safety net)
   モバイルでヒーロー等が幅を超えても横スクロールしないよう封じる
   ============================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
.hero,
#hero,
section.hero,
.subpage-hero {
  overflow-x: clip;
  max-width: 100%;
}


/* ============================================================
   VBA自動付与: Grid overflow防止(safety net)
   grid-template-columns に % を使うと gap 分だけ overflow するため、
   よくあるセレクタに対して fr ユニットで強制上書きする。
   さらに grid 子要素に min-width: 0 で auto 押し広げを防ぐ。
   ============================================================ */
/* 代表挨拶: 画像40%/テキスト60% を fr で表現(% + gap の overflow 解消) */
.message-grid {
  grid-template-columns: 2fr 3fr !important;
}
/* 2カラム系の grid 子要素は min-width: 0 で列押し広げ防止 */
.message-grid > *,
.two-col > *,
.grid-2col > *,
.about-grid > *,
.service-grid > *,
.split-grid > * {
  min-width: 0 !important;
}
@media (min-width: 768px) {
  /* タブレット以上で grid 全般の overflow を念押し */
  .message-grid, .two-col, .grid-2col, .about-grid, .split-grid {
    max-width: 100%;
    overflow-x: clip;
  }
}


/* ============================================================
   VBA自動付与: 日本語改行品質向上v2(safety net)
   方針:
   - 本文段落 (p, li, dd 等) には text-wrap を指定しない
     → 行末まで詰めて自然改行(右側隙間防止)
   - リード/導入文のみ text-wrap: pretty で1文字孤立行防止
   - body に hanging-punctuation: allow-end last
   - 見出しは text-wrap: balance(短文向け)
   - word-break: auto-phrase / overflow-wrap: anywhere は禁止
   ============================================================ */
body {
  hanging-punctuation: allow-end last;
}
/* 本文系: 禁則処理 + 単語折返しのみ(text-wrap は指定しない) */
body, p, li, dt, dd, figcaption, blockquote, td, th,
.about-text p, .message-text p, .block-text p, .intro-inner p,
.card-z p, .philosophy-card p, .contact-info-card p, .cta-banner p {
  line-break: strict !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
/* リード/導入文のみ pretty 適用(短文向け・孤立行防止) */
.lead, .section-lead, .hero__lead, .footer-desc,
[class*="lead"], [class*="__lead"] {
  text-wrap: pretty !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
/* 見出し: balance で短文の行バランス調整 */
h1, h2, h3, h4 {
  text-wrap: balance !important;
  line-break: strict !important;
  word-break: normal !important;
}
a[href^="mailto:"],
a[href^="tel:"] {
  word-break: keep-all !important;
  white-space: nowrap !important;
}


/* ============================================================
   VBA自動付与: モバイル2カラムタイトル中央寄せ(safety net)
   PC版で2カラム(画像+テキスト)構成のセクションがモバイル縦積み
   になるとき、画像は中央配置なのにタイトルだけ左寄せだと不自然。
   eyebrow + h2/h3 + 装飾線のみ中央寄せ(本文 <p> は左寄せ維持)
   ============================================================ */
@media (max-width: 767.98px) {
  .about-text > .eyebrow,
  .about-text > h2,
  .about-text > h3,
  .message-text > .eyebrow,
  .message-text > h2,
  .message-text > h3,
  .service-text > .eyebrow,
  .service-text > h2,
  .service-text > h3,
  .block-text > .eyebrow,
  .block-text > h2,
  .block-text > h3 {
    text-align: center !important;
  }
  /* h2/h3 の ::after 装飾線も中央寄せ */
  .about-text > h2::after,
  .about-text > h3::after,
  .message-text > h2::after,
  .message-text > h3::after,
  .service-text > h2::after,
  .service-text > h3::after,
  .block-text > h2::after,
  .block-text > h3::after {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* 末尾のボタン/リンクも中央配置(タイトル中央でボタン左の不整合防止) */
  .about-text > .btn,
  .about-text > a[class*="btn"],
  .about-text > a.link-arrow,
  .message-text > .btn,
  .message-text > a[class*="btn"],
  .message-text > a.link-arrow,
  .service-text > .btn,
  .service-text > a[class*="btn"],
  .service-text > a.link-arrow,
  .block-text > .btn,
  .block-text > a[class*="btn"],
  .block-text > a.link-arrow {
    display: block !important;
    width: fit-content !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* ============================================================
   VBA自動付与: モバイル端余白 20px 強制(safety net)
   .container 系の左右 padding がモバイルで詰まって
   本文が画面端に張り付く事故を防ぐ。
   2026年版: 16px → 20px に増量(視覚的余白を確保)。
   ============================================================ */
@media (max-width: 767.98px) {
  .container,
  .container-fluid,
  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container-narrow,
  [class*="container"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}


/* ============================================================
   VBA自動付与: フォーム入力枠サイズ強制(safety net)
   - 高さ不足/iOS自動ズーム/select矢印重なりを根絶
   - font-size 16px は iOS Safari ズーム防止のため必須
   ============================================================ */
.contact-form .form-control,
.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
.contact-form select,
.contact-form textarea,
form .form-control,
form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
form select,
form textarea {
  min-height: 52px !important;
  padding: 14px 16px !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}
form textarea, .contact-form textarea {
  min-height: 160px !important;
  padding: 14px 16px !important;
}
form select, .contact-form select {
  padding-right: 40px !important;
}
