/**
 * 元静的HTMLの <style> を集約（ページ固有は assets/css/pages/ へ）
 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-to-main:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  clip: auto;
  overflow: visible;
  background: #fff;
  border: 2px solid #d07662;
  border-radius: 0.5rem;
  color: #6a342b;
  font-weight: 700;
}

html {
  scroll-behavior: smooth;
}
body {
  background-color: #fbfaf8;
  color: #6a342b;
}
h1, h2, h3, h4, h5, h6, .font-round {
  font-family: 'Zen Maru Gothic', sans-serif;
}

/* 統計数字（about 等）— 静的HTMLではインライン定義済み。未定義だと数字が本文色・ゴシックのままになる */
.stat-number {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  color: #d07662;
}

/* 手書き風サイン（Yomogi）。tailwind-config に無いと utility が生成されないためここでも保証 */
.font-handwriting {
  font-family: 'Yomogi', cursive;
}

/* スクロール連動フェードイン（IntersectionObserver で is-visible を付与） */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease-out, transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wave-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
}
.wave-bottom svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.wave-bottom .shape-fill {
  fill: #fbfaf8;
}

.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.wave-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}
.wave-top .shape-fill {
  fill: #fbfaf8;
}

/* トップヒーロー：背面の薄い写真レイヤー */
.hero-main-back-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url('/assets/images/main_back_layer.jpg') center / cover no-repeat;
  opacity: 0.22;
}

.organic-radius {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

/* 法令・会社概要系：文字色の同化防止 */
.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.custom-table th {
  background-color: #faefe9;
  color: #803c31 !important;
  font-family: 'Zen Maru Gothic', sans-serif;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid #f3dcd5;
}
.custom-table td {
  color: #6a342b !important;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f3dcd5;
  background-color: #ffffff;
}
.custom-table tr:last-child td {
  border-bottom: none;
}

.text-safe {
  color: #6a342b !important;
  -webkit-text-fill-color: #6a342b !important;
}
.text-safe-bold {
  color: #803c31 !important;
  font-weight: 700 !important;
}
.text-safe-light {
  color: #9a4738 !important;
  -webkit-text-fill-color: #9a4738 !important;
}

/* トップ H1 キッカー（layout_end の #famille-tailwind-text-fallback と併用） */
.hero-seo-kicker {
  color: #9a4738 !important;
  -webkit-text-fill-color: #9a4738 !important;
}
.terms-list {
  padding-left: 1.5rem;
  list-style-type: decimal;
}
.terms-sublist {
  padding-left: 1.5rem;
  list-style-type: disc;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.terms-item {
  margin-bottom: 0.75rem;
}

/* フォーム共通 */
.form-input {
  width: 100%;
  background-color: #ffffff;
  border: 2px solid #faefe9;
  border-radius: 1rem;
  padding: 0.875rem 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #6a342b;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: #df9e8e;
  box-shadow: 0 0 0 4px rgba(223, 158, 142, 0.15);
}
.form-input::placeholder {
  color: #d1d5db;
}
.form-label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #803c31;
}
.badge-req {
  background-color: #d07662;
  color: #ffffff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.badge-opt {
  background-color: #faefe9;
  color: #d07662;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.error-text {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}
.has-error .form-input {
  border-color: #ef4444;
  background-color: #fef2f2;
}
.has-error .error-text {
  display: block;
}

/* フォーム全体エラー（同意チェックなど） */
.form-global-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  text-align: center;
}

.custom-radio {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}
.custom-radio input {
  display: none;
}
.radio-mark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #df9e8e;
  border-radius: 50%;
  margin-right: 0.5rem;
  position: relative;
  background-color: white;
  transition: all 0.2s;
}
.custom-radio input:checked + .radio-mark {
  border-color: #d07662;
}
.custom-radio input:checked + .radio-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.6rem;
  height: 0.6rem;
  background-color: #d07662;
  border-radius: 50%;
}

/* フォーム進行ステッパー（/contact/*）：番号円の text-white が兄弟へ波及しないよう独立 */
.form-flow-stepper ol > li {
  color: #6a342b;
}

/* 確認画面 .contact-confirm-panel：Tailwind CDN より後の上書きは layout_end #famille-tailwind-text-fallback */
.contact-confirm-panel dl.grid dd {
  color: #6a342b !important;
  -webkit-text-fill-color: #6a342b !important;
}
.contact-confirm-panel .confirm-subcard {
  color: #6a342b !important;
  -webkit-text-fill-color: #6a342b !important;
}

/* マルチステップ：フォーカス管理用（スキップリンク） */
.skip-to-main:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 2px solid #d07662;
  border-radius: 0.5rem;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}
