@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Noto+Sans+JP:wght@300;400;500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* 基本色は theme.json (sitemeister/theme@2) から theme-loader.js が実行時に上書きする。
     ここの値は theme.json 読込前の初期表示用デフォルト。管理画面で色を変えると
     theme.json が更新され、リロードで反映される (再ビルド不要)。 */
  --color-primary:       #28af60;
  --color-secondary:     #c1e1ce;
  --color-accent:        #27ae60;
  --color-bg:            #f5f5f5;
  --color-text:          #2c3e50;
  /* 派生色は var() 参照にして、--color-primary / --color-bg の上書きが連鎖するようにする */
  --color-text-muted:    color-mix(in srgb, var(--color-text) 55%, var(--color-bg));
  --color-primary-light: color-mix(in srgb, var(--color-primary) 12%, var(--color-bg));
  --color-primary-dark:  color-mix(in srgb, var(--color-primary) 80%, #000);
  /* ブランド色ベタ塗り面の上に乗せる文字色(輝度から自動決定。背景色と文字の同化を防ぐ) */
  --color-on-primary:    #111111;
  --color-on-secondary:  #111111;
  --color-on-accent:     #111111;
  --font-heading: 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  /* smfix: 英字ラベル用。theme-loader は --font-heading/--font-body しか上書きしないので
     ここで定義した欧文書体は管理画面のフォント変更に影響されず残る。 */
  --font-en: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  --radius: 0px;
  --radius-btn: 999px;
  --radius-card: 0px;
  --shadow: 0 18px 40px rgba(11,26,15,0.18);
  --shadow-card: none;
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: var(--font-body); background: var(--color-bg); color: var(--color-text); line-height: 1.7; overflow-x: hidden; max-width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.8; }
h1,h2,h3,h4 { font-family: var(--font-heading); line-height: 1.3; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-title { font-size: clamp(1.5rem, 4vw, 2.2rem); color: var(--color-primary); margin-bottom: 2.5rem; text-align: center; }
.section-title::after { content: ''; display: block; width: 3rem; height: 3px; background: var(--color-primary); margin: 0.75rem auto 0; border-radius: 2px; }
.btn { display: inline-block; padding: 1rem 2.4rem; background: var(--color-primary); color: var(--color-on-primary); border-radius: var(--radius-btn); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; transition: var(--transition); border: 2px solid var(--color-primary); cursor: pointer; }
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; opacity: 1; }
.btn-outline { background: transparent; color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: var(--color-on-primary); }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 100; isolation: isolate; background: #ffffff; background: var(--color-bg, #ffffff); border-bottom: 1px solid var(--color-primary-light); transition: var(--transition); }
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.site-nav ul { display: flex; flex-wrap: nowrap; align-items: center; gap: 0.75rem; list-style: none; }
.site-nav a { font-size: 0.82rem; font-weight: 500; color: var(--color-text); padding: 0.25rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav .sm-langswitch { display: flex; gap: 0.5rem; }
.site-nav a:hover, .site-nav a.active { color: var(--color-primary); border-bottom-color: var(--color-primary); opacity: 1; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: var(--transition); display: block; }
/* ナビ オートたたみ(B): 横並びが実測で container に収まらない時、common.js が .nav-collapsed を付与し
   画面幅に関わらずハンバーガー化する(=ラベル長/項目数に依存せず見切れを防ぐ安全網)。@media のモバイル挙動と同型。 */
.site-header.nav-collapsed .hamburger { display: none !important; }
.site-header.nav-collapsed .site-nav { display: block !important; position: static !important; background: transparent !important; padding: 0 !important; border: none !important; box-shadow: none !important; }
.site-header.nav-collapsed .site-nav ul { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 0.75rem !important; }
.site-header.nav-collapsed .site-nav a { display: inline !important; padding: 0.25rem 0 !important; border-bottom: 2px solid transparent !important; min-height: auto !important; white-space: nowrap !important; }
.site-header.nav-collapsed .site-nav .sm-langswitch { gap: 0.5rem !important; padding: 0 !important; }

/* フッター */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.85); padding: 3rem 0 1.5rem; }
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer .footer-name { font-family: var(--font-heading); font-size: 1.25rem; color: #fff; margin-bottom: 0.75rem; }
.site-footer .footer-info p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.site-footer .footer-nav ul { list-style: none; }
.site-footer .footer-nav li { margin-bottom: 0.4rem; }
.site-footer .footer-nav a { font-size: 0.9rem; }
.site-footer .footer-sns { display: flex; gap: 0.85rem; margin-top: 1rem; align-items: center; }
.site-footer .footer-sns a { display: inline-flex; padding: 0; border: none; opacity: 0.85; transition: var(--transition); }
.site-footer .footer-sns a:hover { opacity: 1; transform: translateY(-2px); }
.site-footer .footer-sns img { width: 28px; height: 28px; object-fit: contain; display: block; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ヒーロー */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 780px; margin: 0 auto; padding: 2rem; text-align: center; }
.hero-eyebrow { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-bottom: 0.75rem; }
.hero-title { font-size: clamp(2.4rem, 8vw, 4.6rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 2rem; line-height: 1.8; }

/* ══════════════════════════════════════════
   シネマティックヒーロー
══════════════════════════════════════════ */
.hero--cinematic {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* 多層オーバーレイ */
.hero-overlay--cinematic {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.38) 55%, rgba(0,0,0,0.18) 100%),
    linear-gradient(to top, rgba(11,26,15,0.65) 0%, transparent 50%);
  z-index: 1;
}

/* 装飾ライン */
.hero-deco-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-deco-line {
  position: absolute;
  background: rgba(255,255,255,0.07);
}
.hero-deco-line--1 {
  top: 0; bottom: 0;
  left: 38%;
  width: 1px;
}
.hero-deco-line--2 {
  left: 0; right: 0;
  bottom: 18%;
  height: 1px;
}

/* インナーレイアウト */
.hero-cinematic-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* 左コンテンツ */
.hero-cinematic-content {
  flex: 1 1 0;
  max-width: 640px;
}

/* アイブロウ */
.hero-eyebrow--cinematic {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  margin-bottom: 1.4rem;
  font-family: var(--font-en);
  font-weight: 500;
}
.hero-eyebrow-en { white-space: nowrap; }
.hero-eyebrow-sep { color: var(--color-primary); opacity: 0.9; }
.hero-eyebrow-jp {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
}
.hero-eyebrow-bar {
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--color-primary);
  flex-shrink: 0;
}

/* タイトル */
.hero-title--cinematic {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5.6vw, 4.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.14;
  margin-bottom: 1.6rem;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
/* アイポイント: 見出しの1語だけをブランド色の帯で抜き、視線が最初に止まる点をつくる */
.hero-title--cinematic em {
  font-style: normal;
  color: #fff;
  position: relative;
  display: inline-block;
  padding: 0 0.18em;
  z-index: 0;
}
.hero-title--cinematic em::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.42em;
  background: var(--color-primary);
  z-index: -1;
  transform-origin: left center;
  animation: smfix-hero-mark 1s cubic-bezier(0.19,1,0.22,1) 0.35s both;
}
@keyframes smfix-hero-mark {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* サブタイトル */
.hero-subtitle--cinematic {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  font-family: var(--font-body);
}

/* ボタン群 */
.hero-cinematic-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  border: 2px solid var(--color-primary);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(40,175,96,0.4);
  text-decoration: none;
}
.hero-btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(40,175,96,0.5);
  opacity: 1;
  color: #fff;
}
.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.hero-btn-ghost:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
  opacity: 1;
  color: #fff;
}
.hero-btn-ghost svg {
  transition: transform 0.25s ease;
}
.hero-btn-ghost:hover svg {
  transform: translateX(4px);
}

/* 右側バッジ */
.hero-cinematic-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 260px;
}
.hero-badge-row {
  display: flex;
  gap: 0.75rem;
}
.hero-badge-row .hero-badge { flex: 1 1 0; min-width: 0; padding: 0.9rem 0.75rem; }
/* 主役パネル: ブランド色ベタ塗り = ファーストビューでいちばん強い面 */
.hero-badge--featured {
  background: var(--color-primary);
  border-color: var(--color-primary);
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: 0 18px 44px rgba(40,175,96,0.42);
}
.hero-badge--featured:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}
.hero-badge-en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.45rem;
}
.hero-badge--featured .hero-badge-num { font-size: 3.4rem; letter-spacing: -0.02em; }
.hero-badge--featured .hero-badge-num small { color: #fff; font-size: 1rem; }
.hero-badge--featured .hero-badge-label { color: rgba(255,255,255,0.92); font-size: 0.7rem; }
.hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  text-align: center;
  min-width: 130px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.hero-badge:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.hero-badge-num {
  display: block;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hero-badge-num small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-secondary);
}
.hero-badge-label {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.08em;
  font-family: var(--font-body);
}

/* スクロール誘導 */
.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: hero-scroll-pulse 2s ease-in-out infinite;
}
@keyframes hero-scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}
.hero-scroll-text {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-en);
  font-weight: 500;
}
/* 背景をゆっくり寄せて静止画のままでも動きを出す (ケンバーンズ) */
.hero-bg--kenburns {
  animation: smfix-kenburns 22s ease-in-out infinite alternate;
  transform-origin: 55% 45%;
}
@keyframes smfix-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg--kenburns { animation: none; }
  .hero-title--cinematic em::after { animation: none; }
}

/* モバイル対応 */
@media (max-width: 900px) {
  .hero-cinematic-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 5rem;
    padding-bottom: 6rem;
  }
  /* smfix: 縦積みバッジと "SCROLL" 表示が重なるため、この幅では非表示にする */
  .hero-scroll-hint { display: none; }
  .hero-cinematic-badges {
    flex-direction: column;
    width: 100%;
  }
  .hero-badge {
    min-width: 90px;
    padding: 0.8rem 0.75rem;
  }
  .hero-badge--featured { padding: 1.1rem 1.25rem; }
  .hero-badge--featured .hero-badge-num { font-size: 2.6rem; }
  .hero-badge-num { font-size: 1.5rem; }
  .hero-deco-line--1 { display: none; }
}
@media (max-width: 600px) {
  .hero--cinematic { min-height: 90vh; }
  .hero-title--cinematic { font-size: clamp(1.8rem, 7vw, 2.6rem); }
  .hero-subtitle--cinematic { font-size: 0.88rem; }
  .hero-cinematic-actions { gap: 1rem; }
  .hero-btn-primary, .hero-btn-ghost { font-size: 0.85rem; padding: 0.75rem 1.25rem; }
  .hero-cinematic-badges { gap: 0.6rem; }
  .hero-badge { padding: 0.65rem 0.5rem; }
  .hero-badge-num { font-size: 1.25rem; }
  .hero-badge--featured { padding: 1rem 1.1rem; }
  .hero-badge--featured .hero-badge-num { font-size: 2.2rem; }
  .hero-eyebrow--cinematic { font-size: 0.7rem; letter-spacing: 0.2em; gap: 0.5rem; }
  .hero-scroll-hint { bottom: 1.5rem; }
}

/* ヒーロー・アーキタイプ (hero_style 由来。3案で構造そのものを変えてファーストビューの同質化を防ぐ) */
/* full-bleed: 上の基本(.hero-bg 全面 + 重ね文字)がそのまま該当。明示クラスは中央寄せの保険のみ。 */
.hero--full-bleed .hero-content { background: transparent; }
/* centered-overlay: 全面背景の上に、中央の半透明カードへ文字を収める */
.hero--centered-overlay { align-items: center; justify-content: center; text-align: center; }
.hero--centered-overlay .hero-overlay { background: rgba(0,0,0,0.28); }
.hero--centered-overlay .hero-content { max-width: 640px; margin: 0 auto; text-align: center;
  background: rgba(18,16,14,0.42); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-card);
  padding: clamp(2rem,4vw,3.25rem) clamp(1.75rem,4vw,3.5rem); backdrop-filter: blur(3px); }
/* stacked-minimal: 重ねずに「文字ブロック(明色面)＋下に写真帯」を縦積み。DOMは共通・order で並べ替え */
.hero--stacked { flex-direction: column; align-items: stretch; justify-content: flex-start;
  background: var(--color-bg); padding-top: clamp(2.5rem,5vw,4.5rem); }
.hero--stacked .hero-overlay { display: none; }
.hero--stacked .hero-content { order: 0; color: var(--color-text); max-width: 920px; width: 100%;
  margin: 0 auto; padding: 0 clamp(1.25rem,4vw,2.5rem) clamp(1.75rem,4vw,2.75rem); text-align: left; }
.hero--stacked .hero-bg { position: relative; inset: auto; order: 1; width: 100%; height: auto;
  flex: 1 1 auto; min-height: 38vh; border-radius: var(--radius); }
.hero--stacked .hero-eyebrow { color: var(--color-primary); }
.hero--stacked .hero-title { color: var(--color-primary); }
.hero--stacked .hero-subtitle { color: var(--color-text-muted); }
/* split-text-image: 文字(明色面)を左、写真を右に 50/50 で並べる */
.hero--split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--color-bg); }
.hero--split .hero-overlay { display: none; }
.hero--split .hero-content { order: 1; align-self: center; color: var(--color-text); max-width: none;
  margin: 0; padding: clamp(2rem,5vw,4.5rem) clamp(1.5rem,4vw,3.5rem); text-align: left; }
.hero--split .hero-bg { position: relative; inset: auto; order: 2; width: 100%; height: 100%; }
.hero--split .hero-eyebrow { color: var(--color-primary); }
.hero--split .hero-title { color: var(--color-primary); }
.hero--split .hero-subtitle { color: var(--color-text-muted); }
/* side-by-side-rounded: 文字＋角丸写真を左右に。余白広め・温かいブロック構図 */
.hero--side-rounded { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(1.5rem,4vw,3.5rem);
  align-items: center; background: var(--color-bg); padding: clamp(2rem,5vw,4.5rem) clamp(1.5rem,5vw,4rem); }
.hero--side-rounded .hero-overlay { display: none; }
.hero--side-rounded .hero-content { order: 1; color: var(--color-text); max-width: none; margin: 0; padding: 0; text-align: left; }
.hero--side-rounded .hero-bg { position: relative; inset: auto; order: 2; width: 100%; height: auto;
  aspect-ratio: 4/5; border-radius: calc(var(--radius-card) * 1.6); box-shadow: var(--shadow); }
.hero--side-rounded .hero-eyebrow { color: var(--color-accent); }
.hero--side-rounded .hero-title { color: var(--color-primary); }
.hero--side-rounded .hero-subtitle { color: var(--color-text-muted); }
@media (max-width: 720px) {
  .hero--split, .hero--side-rounded { grid-template-columns: 1fr; }
  .hero--split .hero-bg, .hero--side-rounded .hero-bg { min-height: 40vh; aspect-ratio: 16/10; }
}

/* カード */
/* minmax は 220px。container実効幅~1036pxで 4枚(4×220+gap)が1行に収まる。260pxだと3列になり4枚目が下に落ちた(3+1)。 */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
/* ちょうど4枚のグリッドは確実に4列(タブレットで2列, モバイルで1列)。3+1崩れ防止。 */
@media (min-width: 901px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 641px) and (max-width: 900px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border-radius: var(--radius-card); border: none; overflow: hidden; box-shadow: var(--shadow-card); transition: var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.14); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card-body { padding: 1.25rem; }
.card-title { font-size: 1.05rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.5rem; }
.card-text { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.7; }

/* 2カラムレイアウト */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius); width: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* フォーム */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--color-text); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--color-primary-light); border-radius: var(--radius); font-size: 0.95rem; font-family: var(--font-body); background: #fff; transition: var(--transition); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-light); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ページヒーロー（サブページ用） */
.page-hero { position: relative; height: 280px; display: flex; align-items: center; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.page-hero-content { position: relative; z-index: 1; color: #fff; text-align: center; width: 100%; padding: 1rem; }
.page-hero-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
.page-hero-breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-top: 0.5rem; }

/* CTA セクション */
.cta-section { position: relative; padding: 5rem 0; text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.cta-content { position: relative; z-index: 1; color: #fff; }
.cta-content h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.cta-content p { margin-bottom: 1.75rem; font-size: 1.05rem; color: rgba(255,255,255,0.9); }

/* ── 背景画像/背景色の上のテキスト可読性 (透過・同化の防止) ── */
/* .over-image: hero/cta 以外の任意の「背景写真の上にテキスト」セクションに付ける汎用スクリム。
   親に付け、子(テキスト)は自動で前面(z-index)に出る。下を濃く=テキスト帯を読みやすく。 */
.over-image { position: relative; isolation: isolate; }
.over-image > * { position: relative; z-index: 1; }
.over-image::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.45) 40%, rgba(0,0,0,0.20) 100%);
}
/* 中央寄せ構図用の均一スクリム */
.over-image-center::before { background: rgba(0,0,0,0.50); }
/* 最終保険: テキスト自体に影を付け、明るい写真の上でも輪郭を残す */
.text-on-image { text-shadow: 0 1px 3px rgba(0,0,0,0.6), 0 2px 14px rgba(0,0,0,0.4); }
/* ブランド色でベタ塗りした面: 背景色とセットで自動可読な文字色になる。背景色と文字の同化を防ぐ */
.on-primary   { background: var(--color-primary);   color: var(--color-on-primary); }
.on-secondary { background: var(--color-secondary); color: var(--color-on-secondary); }
.on-accent    { background: var(--color-accent);    color: var(--color-on-accent); }
.on-primary :where(h1,h2,h3,h4,h5,h6,p,a,li,span,strong),
.on-secondary :where(h1,h2,h3,h4,h5,h6,p,a,li,span,strong),
.on-accent :where(h1,h2,h3,h4,h5,h6,p,a,li,span,strong) { color: inherit; }

/* アコーディオン（FAQ） */
.accordion { border: 1px solid var(--color-primary-light); border-radius: var(--radius); overflow: hidden; }
.accordion-item { border-bottom: 1px solid var(--color-primary-light); }
.accordion-item:last-child { border-bottom: none; }
.accordion-btn { width: 100%; text-align: left; padding: 1.1rem 1.25rem; background: none; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; color: var(--color-text); display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); }
.accordion-btn::after { content: '+'; font-size: 1.3rem; color: var(--color-primary); transition: var(--transition); }
.accordion-btn.open::after { content: '−'; }
.accordion-body { display: none; padding: 1rem 1.25rem 1.25rem; color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.8; }

/* テーブル */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table th { background: var(--color-primary); color: #fff; padding: 0.75rem 1rem; text-align: left; font-family: var(--font-heading); }
.price-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--color-primary-light); }
.price-table tr:hover td { background: var(--color-primary-light); }
.price-table .price-cell { text-align: right; font-weight: 600; color: var(--color-primary); }

/* ギャラリーグリッド */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* ── 写真の並べ方バリエーション ── */
/* design-plan が weight に応じてセクション毎に割当。modifier クラスを足すだけで配置が変わる。 */
/* 非対称: 先頭を大きく(重み高いギャラリーの主役見せ) */
.gallery-grid.is-asym { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 1rem; }
.gallery-grid.is-asym > .gallery-item { grid-column: span 2; aspect-ratio: 4/3; }
.gallery-grid.is-asym > .gallery-item:first-child { grid-column: span 4; grid-row: span 2; aspect-ratio: 16/10; }
/* masonry: 高さバラバラ(写真の自然比を活かす) */
.gallery-grid.is-masonry { display: block; column-count: 3; column-gap: 1rem; grid-template-columns: none; }
.gallery-grid.is-masonry > .gallery-item { display: block; width: 100%; margin: 0 0 1rem; break-inside: avoid; aspect-ratio: auto; }
.gallery-grid.is-masonry > .gallery-item img { height: auto; }
/* 横スクロール1列(カルーセル風・大判を流す) */
.gallery-grid.is-rail { display: flex; overflow-x: auto; gap: 1rem; grid-template-columns: none; scroll-snap-type: x mandatory; padding-bottom: 0.5rem; }
.gallery-grid.is-rail > .gallery-item { flex: 0 0 min(80%, 420px); scroll-snap-align: start; aspect-ratio: 4/3; }
/* 全幅写真バンド(内容セクションを写真主役に。重み高いセクション向け) */
.media-band { position: relative; min-height: 56vh; display: flex; align-items: center; overflow: hidden; }
.media-band > img, .media-band .media-band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.media-band .media-band-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 70%); z-index: 1; }
.media-band .media-band-content { position: relative; z-index: 2; color: #fff; max-width: 680px; padding: clamp(2rem,5vw,4rem); }
/* 交互メディア行: 子の .two-col を自動で左右反転(写真と文を互い違いに積む) */
.media-alt > .two-col { margin-bottom: clamp(2rem,5vw,4rem); }
.media-alt > .two-col:last-child { margin-bottom: 0; }
.media-alt > .two-col:nth-child(even) { direction: rtl; }
.media-alt > .two-col:nth-child(even) > * { direction: ltr; }
/* カード列数の明示指定(密度を weight で変える) */
@media (min-width: 901px) { .card-grid.cols-2 { grid-template-columns: repeat(2,1fr); } .card-grid.cols-3 { grid-template-columns: repeat(3,1fr); } }
/* 大判フィーチャー画像(重み最大セクションの主役写真) */
.feature-img { width: 100%; border-radius: var(--radius); object-fit: cover; aspect-ratio: 16/9; }
.feature-img.tall { aspect-ratio: 3/4; }
@media (max-width: 720px) {
  .gallery-grid.is-asym { grid-template-columns: 1fr 1fr; }
  .gallery-grid.is-asym > .gallery-item, .gallery-grid.is-asym > .gallery-item:first-child { grid-column: span 1; grid-row: auto; aspect-ratio: 4/3; }
  .gallery-grid.is-masonry { column-count: 2; }
}

/* スタッフカード */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
/* smfix: 名前+資格タグのみのコンパクトカード (7名分。写真・役職紹介文は指示になく仮置きしない) */
.staff-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}
.staff-card--compact {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-text) 12%, #fff);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.staff-card--compact:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}
.staff-card--compact .staff-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}
.staff-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin: 0 0.15rem 0.3rem;
}
.staff-tag--role {
  color: #fff;
  background: var(--color-primary);
  font-weight: 700;
}

.staff-card { text-align: center; }
.staff-card img { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; border: 4px solid var(--color-primary-light); }
.staff-card .staff-name { font-size: 1.05rem; font-weight: 700; color: var(--color-primary); }
.staff-card .staff-role { font-size: 0.85rem; color: var(--color-text-muted); margin: 0.25rem 0 0.75rem; }
.staff-card .staff-msg { font-size: 0.9rem; line-height: 1.7; }

/* フェードイン */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* レスポンシブ */
/* デスクトップ: ハンバーガー非表示・テキストナビ表示 */
.hamburger { display: none !important; }
.site-nav { display: block !important; position: static !important; background: transparent !important; padding: 0 !important; border: none !important; box-shadow: none !important; max-height: none !important; overflow: visible !important; }
.site-nav ul { flex-direction: row !important; flex-wrap: wrap !important; align-items: center !important; gap: 0.75rem !important; }
.site-nav a { padding: 0.25rem 0 !important; border-bottom: 2px solid transparent !important; min-height: auto !important; white-space: nowrap !important; display: inline !important; }

/* モバイル: ハンバーガーメニュー */
@media (max-width: 768px) {
  .hamburger { display: flex !important; z-index: 200; }
  .site-nav {
    display: none !important;
    position: fixed !important;
    top: 68px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: var(--color-bg, #f5f5f5) !important;
    padding: 1.5rem !important;
    border-top: 1px solid var(--color-primary-light) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    overflow-y: auto !important;
    z-index: 150 !important;
    flex-direction: column !important;
  }
  .site-nav.open { display: block !important; }
  .site-nav ul {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  .site-nav ul li { border-bottom: 1px solid var(--color-primary-light); }
  .site-nav ul li:last-child { border-bottom: none; }
  .site-nav a {
    display: block !important;
    padding: 1rem 0.5rem !important;
    font-size: 1rem !important;
    border-bottom: none !important;
    min-height: 48px !important;
    white-space: normal !important;
    line-height: 1.5 !important;
  }
  /* ハンバーガーアイコン アニメーション */
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 768px) {
  /* ヒーロー */
  .hero { min-height: 50vh; }
  .hero-content { padding: 1.5rem; max-width: 100%; }

  /* セクション */
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .section-title { margin-bottom: 1.5rem; }

  /* グリッド */
  .two-col { grid-template-columns: 1fr; gap: 1.5rem; }
  .two-col.reverse { direction: ltr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .staff-grid { grid-template-columns: 1fr; }

  /* フッター */
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 2rem 0 1rem; }

  /* ページヒーロー */
  .page-hero { height: 180px; }

  /* ボタン: タッチターゲット確保 */
  .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.5rem; }
}

/* 言語切り替えボタン非表示 */
.sm-langswitch-li { display: none !important; }

/* 施工事例 無限スライダー */
.jisseki-slider-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 2.5rem;
  cursor: grab;
  user-select: none;
}
.jisseki-slider-wrap:active { cursor: grabbing; }
.jisseki-slider-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
  animation: jisseki-scroll 28s linear infinite;
}
.jisseki-slider-wrap:hover .jisseki-slider-track { animation-play-state: paused; }
.jisseki-slide {
  flex: 0 0 calc(33.333% - 0.67rem);
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.jisseki-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  pointer-events: none;
}
.jisseki-slide:hover img { transform: scale(1.05); }
@keyframes jisseki-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50%  - 0.5rem)); }
}
@media (max-width: 768px) {
  .jisseki-slide { flex: 0 0 calc(80% - 0.5rem); }
}

/* ══════════════════════════════════════════
   新ヘッダー (site-header--new)
══════════════════════════════════════════ */
.site-header--new {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: none;
  border-bottom: none;
  transition: box-shadow 0.3s ease;
}
.site-header--new.scrolled {
  box-shadow: 0 4px 24px rgba(40, 175, 96, 0.10), 0 1px 4px rgba(0,0,0,0.06);
}

/* 上部細帯 */
.header-topbar {
  background: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0;
  height: 34px;
  display: flex;
  align-items: center;
}
.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.header-topbar-tagline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.92);
  font-family: var(--font-body);
}
.header-topbar-tagline svg { flex-shrink: 0; opacity: 0.85; }
.header-topbar-sns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
  opacity: 1;
}
.header-sns-link:hover {
  background: rgba(255,255,255,0.30);
  transform: translateY(-1px);
  opacity: 1;
}

/* メインヘッダー */
.header-main {
  background: #fff;
  border-bottom: 2px solid var(--color-primary-light);
}
.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* ロゴ */
.site-logo--new {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-primary);
  flex-shrink: 0;
  opacity: 1;
  transition: opacity 0.2s ease;
}
.site-logo--new:hover { opacity: 0.8; }
.site-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}
.site-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.2rem;
}
.site-logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  line-height: 1;
}
.site-logo-sub {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  line-height: 1;
}

/* ナビ (新) */
.site-nav--new ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.site-nav--new ul li a {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4rem 0.7rem;
  position: relative;
  white-space: nowrap;
  border-bottom: none !important;
  transition: color 0.2s ease;
  font-family: var(--font-body);
}
.site-nav--new ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  border-radius: 1px;
}
.site-nav--new ul li a:hover,
.site-nav--new ul li a.active {
  color: var(--color-primary);
  opacity: 1;
}
.site-nav--new ul li a:hover::after,
.site-nav--new ul li a.active::after {
  transform: scaleX(1);
}

/* お問い合わせCTAボタン */
.nav-cta-item { margin-left: 0.5rem; }
.nav-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.2rem !important;
  background: var(--color-primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  font-family: var(--font-heading) !important;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
  white-space: nowrap;
  border-bottom: none !important;
  box-shadow: 0 2px 10px rgba(40,175,96,0.25);
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover {
  background: var(--color-primary-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(40,175,96,0.35) !important;
  opacity: 1 !important;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .header-topbar { display: none; }
  .header-main-inner { height: 64px; }
  .site-logo-name { font-size: 1.1rem; }
  .site-logo-icon svg { width: 26px; height: 26px; }
  .site-nav--new {
    display: none !important;
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: #fff !important;
    padding: 1.5rem !important;
    border-top: 2px solid var(--color-primary-light) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    overflow-y: auto !important;
    z-index: 150 !important;
  }
  .site-nav--new.open { display: block !important; }
  .site-nav--new ul {
    flex-direction: column !important;
    gap: 0 !important;
    align-items: stretch !important;
  }
  .site-nav--new ul li { border-bottom: 1px solid var(--color-primary-light); }
  .site-nav--new ul li:last-child { border-bottom: none; }
  .site-nav--new ul li a {
    display: block !important;
    padding: 1rem 0.5rem !important;
    font-size: 1rem !important;
    min-height: 48px !important;
    white-space: normal !important;
    line-height: 1.5 !important;
  }
  .site-nav--new ul li a::after { display: none; }
  .nav-cta-item { margin-left: 0; margin-top: 1rem; }
  .nav-cta-btn {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0.9rem 1.5rem !important;
    font-size: 1rem !important;
    border-radius: 999px !important;
  }
}

/* JS共通 */

/* sm-widget-theme-bridge:start (auto-generated — 手で編集しないでください) */
:root {
  --sm-widget-primary: var(--color-primary, #3c83f6);
  --sm-widget-ink: var(--color-text, #0f1729);
  --sm-widget-font: var(--font-body, sans-serif);
}
[data-sm-widget="news"],
[data-sm-widget="column"],
[data-sm-widget="contact"] {
  --color-primary: var(--sm-widget-primary);
  --color-foreground: var(--sm-widget-ink);
  --color-muted-foreground: color-mix(in srgb, var(--sm-widget-ink) 62%, transparent);
  --color-border: color-mix(in srgb, var(--sm-widget-ink) 14%, transparent);
  font-family: var(--sm-widget-font);
}
/* sm-widget-theme-bridge:end */
