/* =============================================
   1010house 共通スタイルシート
   style.css
   ============================================= */

/* ===== カラー変数 ===== */
:root {
  --white:       #FFFFFF;
  --offwhite:    #F8F6F2;
  --border:      #E0D9D0;
  --dark-brown:  #3D2B1F;
  --brown-mid:   #6b5e52;
  --text:        #1A1410;
  --text-light:  #6b5e52;
  --sky:         #5BB8D4;
  --charcoal:    #3A3A3A;
  --yellow:      #FFD700;
  --error:       #A32D2D;
  --success:     #1D9E75;
}

/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== タイポグラフィ ===== */
.serif { font-family: 'Noto Serif JP', serif; }
h1, h2, h3, h4 { font-family: 'Noto Serif JP', serif; font-weight: 500; line-height: 1.4; }
h1 { font-size: clamp(24px, 5vw, 40px); }
h2 { font-size: clamp(20px, 3.5vw, 28px); }
h3 { font-size: clamp(16px, 2.5vw, 20px); }
p  { font-size: 14px; line-height: 1.8; }

/* ===== セクション共通 ===== */
.section { padding: 64px 24px; }
.section-off { background: var(--offwhite); }
.section-inner { max-width: 960px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 8px; color: var(--text); }
.section-lead  { text-align: center; font-size: 13px; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }

/* ===== グリッド ===== */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }

/* ===== カード ===== */
.card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(61,43,31,0.08); }
.card-accent { border-left: 3px solid var(--dark-brown); }
.card-icon { font-size: 24px; color: var(--dark-brown); margin-bottom: 10px; }
.card-title { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.card-body { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Noto Sans JP', sans-serif;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, transform 0.2s;
  border: none;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-dark         { background: var(--dark-brown); color: #fff; }
.btn-white        { background: #fff; color: var(--dark-brown); }
.btn-outline      { background: transparent; color: var(--dark-brown); border: 1px solid var(--dark-brown); }
.btn-outline:hover { background: var(--offwhite); }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; text-align: center; }
.btn-lg { padding: 16px 40px; font-size: 15px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row-center { justify-content: center; }

/* ===== バッジ ===== */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 3px;
}
.badge-brown  { background: var(--offwhite); color: var(--dark-brown); border: 0.5px solid var(--dark-brown); }
.badge-blue   { background: #E6F1FB; color: #185FA5; }
.badge-green  { background: #E1F5EE; color: #0F6E56; }
.badge-red    { background: #FCEBEB; color: #A32D2D; }

/* ===== フォーム ===== */
.form-group { margin-bottom: 20px; }
.form-label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 6px; }
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: 'Noto Sans JP', sans-serif;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--dark-brown); }

/* ===== CTA帯 ===== */
.cta-banner { background: var(--dark-brown); padding: 88px 40px; text-align: center; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p  { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 40px; line-height: 2; }
.cta-btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== 注記ボックス ===== */
.note-box {
  background: #FFF8EC;
  border: 1px solid #E8C86A;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 12px;
  color: #633806;
  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; }

/* ===== ユーティリティ ===== */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.bg-offwhite { background: var(--offwhite); }

/* ===== フッター ===== */
.site-footer {
  background: #2A1D14;
  color: rgba(255,255,255,0.5);
  padding: 48px 40px;
  text-align: center;
  font-size: 12px;
  line-height: 2.2;
}
.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  color: #fff;
  display: block;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}
.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav-title {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-nav-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav-col a:hover { color: #fff; }

/* ===== LINEフローティングボタン ===== */
.line-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 150;
  background: #06C755;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 28px;
  box-shadow: 0 4px 16px rgba(6,199,85,0.35);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.line-float i { font-size: 20px; }
.line-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6,199,85,0.45);
  opacity: 1;
}

/* ===== モバイルナビ（全ページ共通） ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 250;
  pointer-events: none;
}
.mobile-nav.open {
  display: block;
  pointer-events: auto;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .site-footer { padding: 40px 20px; }
  .cta-banner { padding: 64px 20px; }
  .cta-btn-row { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; max-width: 320px; text-align: center; }
  .line-float { bottom: 20px; right: 20px; }
  .line-float span { display: none; }
  .line-float { border-radius: 50%; width: 52px; height: 52px; padding: 0; justify-content: center; }
}
@media (max-width: 599px) {
  .section { padding: 48px 16px; }
  .btn-row { flex-direction: column; }
  .btn { width: 100%; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .grid3, .grid4 { grid-template-columns: repeat(2, 1fr); }
}
