/* ============================================================
   合同会社ルーナ WordPressテーマ メインCSS
   ブランドカラー：
     ダークブラウン #2C1810
     ベージュ      #C4A882
     砂色          #B8956A
     クリーム      #F8F2EA
============================================================ */

:root {
  --brown:   #2C1810;
  --beige:   #C4A882;
  --sand:    #B8956A;
  --cream:   #F8F2EA;
  --white:   #FFFFFF;
  --gray:    #555555;
  --lgray:   #DDDDDD;
  --font:    -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Noto Sans JP', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--gray); background: #fff; line-height: 1.7; padding-bottom: 60px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- レイアウト ---- */
.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ---- セクション共通 ---- */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--beige); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700;
  color: var(--brown); margin-bottom: 16px; line-height: 1.3;
}
.section-desc { color: #777; max-width: 600px; margin-bottom: 48px; }

/* ============================================================
   ヘッダー
============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--brown);
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px; height: 64px;
}
.header-logo a { display: flex; flex-direction: column; gap: 2px; }
.logo-main { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: .03em; }
.logo-sub  { font-size: 9px; color: var(--beige); letter-spacing: .05em; }

.header-nav { margin-left: auto; }
.header-nav ul { display: flex; gap: 32px; list-style: none; }
.header-nav a { font-size: 14px; color: rgba(255,255,255,.85); transition: color .2s; }
.header-nav a:hover { color: var(--beige); }

.header-tel {
  display: flex; align-items: center; gap: 8px;
  background: var(--beige); color: var(--brown);
  font-size: 14px; font-weight: 700;
  padding: 8px 16px; border-radius: 6px;
  white-space: nowrap; transition: background .2s;
}
.header-tel:hover { background: var(--sand); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

.mobile-nav { display: none; background: var(--brown); padding: 16px 24px; }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-nav a { display: block; padding: 14px 0; color: rgba(255,255,255,.9); font-size: 15px; }
.mobile-tel { color: var(--beige) !important; font-weight: 700; }

/* ============================================================
   ヒーロー
============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 64px;
}
.hero-bg, .hero-bg-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg-placeholder { background: linear-gradient(135deg, var(--brown) 0%, #4a2e1a 100%); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(44,24,16,.55) 0%, rgba(44,24,16,.7) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; color: #fff; padding: 24px;
}
.hero-badge {
  display: inline-block; background: var(--beige); color: var(--brown);
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 8vw, 64px); font-weight: 700;
  line-height: 1.2; margin-bottom: 20px; text-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.hero-desc { font-size: 15px; opacity: .85; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-hero {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 160px; padding: 24px 16px; border-radius: 12px;
  font-size: 15px; font-weight: 700; transition: transform .2s, opacity .2s;
}
.btn-hero:hover { transform: translateY(-2px); opacity: .9; }
.btn-trouble { background: var(--beige); color: var(--brown); }
.btn-exit    { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(4px); }

/* ============================================================
   業務内容
============================================================ */
.services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
  background: #fff; border-radius: 16px; padding: 32px 28px;
  border: 1px solid rgba(196,168,130,.3);
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(44,24,16,.1); transform: translateY(-2px); }
.service-icon { font-size: 36px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; color: var(--brown); margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: #777; line-height: 1.8; }

/* ============================================================
   お問い合わせフォーム
============================================================ */
.contact-section { background: #fff; }
.contact-section.alt { background: var(--cream); }
.contact-form { max-width: 640px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--brown); margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--lgray);
  border-radius: 8px; font-size: 15px; font-family: var(--font);
  background: var(--cream); transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--beige);
  box-shadow: 0 0 0 3px rgba(196,168,130,.2);
}
.required { color: var(--sand); }
.btn-submit {
  width: 100%; padding: 14px; background: linear-gradient(135deg, var(--sand), var(--beige));
  color: #fff; font-size: 16px; font-weight: 700; border: none;
  border-radius: 8px; cursor: pointer; transition: opacity .2s;
}
.btn-submit:hover { opacity: .9; }
.form-success { background: #f0fff4; border: 1px solid #a3d9b1; border-radius: 8px; padding: 20px; color: #2d6a4f; }

/* ============================================================
   新築実績
============================================================ */
.constructions-preview { background: var(--brown); }
.constructions-preview .section-label,
.constructions-preview .section-title { color: var(--beige); }
.constructions-preview .section-title { color: #fff; }
.constructions-preview .section-desc  { color: rgba(255,255,255,.6); }

.constructions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.construction-card {
  background: rgba(255,255,255,.06); border-radius: 16px; overflow: hidden;
  border: 1px solid rgba(196,168,130,.2); transition: transform .2s;
}
.constructions-preview .construction-card:hover { transform: translateY(-4px); }
.archive-list .construction-card { background: var(--cream); border: 1px solid rgba(196,168,130,.3); }
.archive-list .construction-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(44,24,16,.1); }

.card-thumb img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; }
.card-body h2, .card-body h3 {
  font-size: 18px; margin-bottom: 6px;
  color: #fff;
}
.archive-list .card-body h2 { color: var(--brown); }
.card-area { font-size: 12px; color: var(--beige); margin-bottom: 14px; }
.card-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.card-stats span { display: flex; flex-direction: column; font-size: 15px; font-weight: 700; color: var(--beige); }
.archive-list .card-stats span { color: var(--sand); }
.card-stats small { font-size: 10px; font-weight: 400; opacity: .7; margin-top: 2px; }

.section-more { text-align: center; margin-top: 40px; }
.btn-more {
  display: inline-block; padding: 12px 32px;
  border: 2px solid var(--beige); color: var(--beige);
  border-radius: 6px; font-weight: 600; transition: background .2s, color .2s;
}
.btn-more:hover { background: var(--beige); color: var(--brown); }
.archive-list .btn-more { border-color: var(--sand); color: var(--sand); }
.archive-list .btn-more:hover { background: var(--sand); color: #fff; }

/* ============================================================
   会社情報
============================================================ */
.company { background: var(--cream); }
.company-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.company-table table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td { padding: 14px 16px; border-bottom: 1px solid rgba(196,168,130,.3); font-size: 14px; vertical-align: top; }
.company-table th { width: 120px; font-weight: 700; color: var(--brown); white-space: nowrap; }
.company-table a { color: var(--sand); text-decoration: underline; }
.company-map iframe { border-radius: 12px; }

/* ============================================================
   フッター
============================================================ */
.site-footer { background: var(--brown); color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px;
}
.footer-logo .logo-main { color: #fff; font-size: 18px; margin-bottom: 4px; }
.footer-logo .logo-sub  { color: var(--beige); font-size: 10px; }
.footer-info p  { font-size: 13px; line-height: 2; }
.footer-info a  { color: var(--beige); }
.footer-nav ul  { list-style: none; }
.footer-nav li  { margin-bottom: 10px; }
.footer-nav a   { font-size: 13px; color: rgba(255,255,255,.7); transition: color .2s; }
.footer-nav a:hover { color: var(--beige); }
.footer-copy { max-width: 1100px; margin: 0 auto; padding: 20px 24px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; text-align: center; }

/* ============================================================
   固定 CTAバー
============================================================ */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: linear-gradient(90deg, var(--sand), var(--beige));
}
.cta-bar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  color: #fff; font-size: 15px; font-weight: 700;
  padding: 14px; letter-spacing: .05em;
}

/* ============================================================
   単体ページ（新築実績詳細）
============================================================ */
.single-hero { position: relative; height: 50vh; overflow: hidden; }
.single-hero img { width: 100%; height: 100%; object-fit: cover; }
.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,.8) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 40px; color: #fff;
}
.single-badge { display: inline-block; background: var(--beige); color: var(--brown); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.single-hero-overlay h1 { font-size: clamp(24px, 5vw, 40px); }
.single-header { background: var(--brown); padding: 64px 0 40px; }
.single-header .section-title { color: #fff; }
.spec-bar {
  display: flex; gap: 24px; flex-wrap: wrap;
  background: var(--cream); border-radius: 12px;
  padding: 28px; margin-bottom: 48px;
}
.spec-item { display: flex; flex-direction: column; align-items: center; }
.spec-val   { font-size: 20px; font-weight: 700; color: var(--brown); }
.spec-label { font-size: 11px; color: #888; margin-top: 4px; }
.entry-content { font-size: 15px; line-height: 1.9; color: var(--gray); }
.single-back { margin-top: 48px; }

/* ============================================================
   アーカイブ
============================================================ */
.archive-header { background: var(--brown); padding: 100px 0 60px; }
.archive-header .section-title { color: #fff; }
.archive-header .section-desc  { color: rgba(255,255,255,.6); }
.archive-list { background: #fff; }
.no-posts { color: #888; font-size: 15px; }
.pagination { margin-top: 48px; text-align: center; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 4px; border: 1px solid var(--lgray); border-radius: 6px; color: var(--gray); }
.pagination .current { background: var(--beige); color: #fff; border-color: var(--beige); }

/* ============================================================
   レスポンシブ
============================================================ */
@media (max-width: 768px) {
  .header-nav, .header-tel { display: none; }
  .hamburger { display: flex; margin-left: auto; }

  .company-grid   { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 24px; }
  .hero-buttons   { flex-direction: column; align-items: center; }
  .btn-hero       { width: 200px; flex-direction: row; }
  section         { padding: 56px 0; }
}
