
/* =========================================================
   さくらハウス WEB 共通CSS（base.css）

   - 全ページ共通のレイアウト・タイポ・ヘッダー/フッター・ボタンなどを定義
   - ページ固有のスタイルは書かない（company.css, home.css などで管理）
   - クラス名の目安：
       共通レイアウト : .page, .page-inner, .wrapper, .two-cols
       ヘッダー       : .site-header, .header-inner, .global-nav, .header-contact ...
       ボタン         : .btn, .btn-primary, .btn-outline
========================================================= */

/* =========================================================
   1. ルート変数 / ベース
========================================================= */
/* =========================================================
   さくらハウス WEB 共通CSS（base.css）

   使用ルール：
   - 全ページで共通して使うスタイルだけを書く
   - ページ固有のスタイルは書かない（home.css, company.css などに分離）
   - クラス名のプレフィックス目安：
       ヘッダー・フッター・レイアウト共通：.site-*, .page-*, .wrapper など
       トップページ専用                 ：.hero-*, .cta-* などは home.css に
       会社情報ページ専用               ：.company-* は company.css に
========================================================= */


:root {
  --accent: #f3a7b5;
  --accent-dark: #cf6f83;
  --accent-soft: #ffeaf0;
  --bg-page: #f4f3f5;
  --text-main: #333;
  --text-muted: #777;
  --max-width: 980px;
  --radius-card: 18px;
  --shadow-soft: 0 12px 30px rgba(0,0,0,0.06);
}

/* ベース */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "YuGothic", "ヒラギノ角ゴ ProN W3", sans-serif;
  line-height: 1.7;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #fff7fb 0, #f4f3f5 45%, #eceff4 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.18s ease;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================================
   2. レイアウト共通
========================================================= */

.page {
  max-width: 1120px;
  margin: 18px auto 32px;
  padding: 0 16px;
}

.page-inner {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 2カラム共通レイアウト */
.two-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: flex-start;
  padding: 22px 0 10px;
}

/* =========================================================
   3. ヘッダー（header.php 用）
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0.75)
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

/* ロゴ画像 */
.logo-image {
  height: 32px;
  width: auto;
  display: block;
}

/* グローバルナビ */

.global-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.global-nav a {
  padding: 4px 10px 6px;
  border-radius: 999px;
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: translateX(-50%);
  transition: 0.2s ease;
  border-radius: 999px;
}

.global-nav a:hover::after {
  width: 70%;
}

/* 電話表示（header.php） */

.header-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}

.header-tel {
  margin: 0;
  font-weight: 700;
  color: #444;
}

.header-hours {
  margin: 2px 0 0;
}

/* 旧ヘッダー用（index.php 内の site-title / tel-small を暫定サポート） */

.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-title span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tel-small {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
  line-height: 1.4;
}

.tel-small strong {
  font-size: 0.95rem;
  color: #444;
}

/* =========================================================
   4. ボタン共通
========================================================= */

.btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: radial-gradient(circle at top left, #ffe1ea, var(--accent));
  color: #4a1e2a;
  box-shadow: 0 6px 15px rgba(207, 111, 131, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(207, 111, 131, 0.45);
}

.btn-outline {
  border: 1px solid var(--accent-dark);
  color: var(--accent-dark);
  background-color: #fff;
}

.btn-outline:hover {
  background-color: var(--accent-soft);
}

/* =========================================================
   5. メイン / セクション共通
========================================================= */

.site-main,
main {
  padding: 0 0 32px;
  background-color: #fff;
}

section {
  padding: 20px 0 4px;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.6;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.lead {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #444;
}

/* 箇条書き（行頭に丸） */

.list-dot {
  margin: 8px 0;
  padding-left: 1.1em;
  list-style: none;
  font-size: 0.9rem;
}

.list-dot li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.list-dot li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at top left, #ffe1ea, var(--accent-dark));
  position: absolute;
  left: 0;
  top: 0.55rem;
}

.section-footer {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-footer a {
  text-decoration: none;
}

/* =========================================================
   6. ヒーローエリア（トップページ）
========================================================= */

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 32px;
  align-items: center;
  padding: 32px 0 24px;
}

.hero-copy {
  padding-bottom: 8px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(243, 167, 181, 0.15);
  color: #a44f63;
  margin-bottom: 8px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 右側の写真枠 */

.hero-visual {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  aspect-ratio: 4 / 3;
}

/* 中の画像 */

.hero-visual .hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 将来使うかもしれないバナー版（今は未使用でもOK） */

.hero-banner-section {
  padding: 18px 0 8px;
}

.hero-banner-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: auto;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.hero-copy-block {
  padding-top: 12px;
}

/* =========================================================
   7. CTA（トップページ）
========================================================= */

.cta {
  text-align: center;
}

.cta p {
  margin: 6px 0;
  font-size: 0.9rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 6px;
}

.cta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* =========================================================
   8. フッター（footer.php 用）
========================================================= */

.site-footer {
  background-color: transparent;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #666;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px 4px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.footer-company {
  max-width: 70%;
}

.footer-name {
  margin: 0 0 2px;
  font-weight: 700;
}

.footer-info,
.footer-license {
  margin: 0;
  line-height: 1.5;
}

.footer-copy {
  margin: 0 0 0 auto;
  white-space: nowrap;
}

/* 追加のフッターナビ用（必要になれば） */

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-links a {
  color: #666;
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
}

.footer-links a:hover {
  color: var(--accent-dark);
}


/* =========================================================
   10. スマホレイアウト（〜768px）
========================================================= */

@media (max-width: 768px) {
  .page {
    margin: 8px auto 16px;
    padding: 0 8px;
  }

  .header-inner {
    padding: 8px 16px;
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .global-nav ul {
    justify-content: flex-start;
  }

  .header-contact,
  .tel-small {
    text-align: left;
  }

  .wrapper {
    padding-inline: 18px;
  }

  .hero-inner,
  .two-cols {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 480px;
    margin: 12px auto 0;
  }

  h1 {
    font-size: 1.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-copy {
    margin: 4px 0 0;
  }

}
/* 緊急・重要なお知らせ（全ページ共通） */
.global-alert {
  background: #ffe8dd;
  border-bottom: 1px solid #f3c2a6;
}

.global-alert .wrapper {
  padding-top: 6px;
  padding-bottom: 6px;
}

.global-alert-text {
  margin: 0;
  font-size: 0.85rem;
  color: #8c3e1f;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.global-alert-label {
  padding: 1px 8px;
  border-radius: 999px;
  background: #ffb799;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
}

.global-alert-link {
  text-decoration: underline;
  font-size: 0.85rem;
}
@media print {
  /* ヘッダーを普通のボックスにする */
  .site-header {
    position: static;
    top: auto;
    z-index: auto;
    backdrop-filter: none;
    background: #fff;
    border-bottom: 1px solid #ccc;
    margin-bottom: 8px;
  }

  .header-inner {
    padding: 6px 16px;
  }

  /* 印刷ではナビは邪魔なので消す（ロゴ＋TELだけ残す） */
  .global-nav {
    display: none;
  }

  /* アラートバーも印刷時はオフにしておく */
  .global-alert {
    display: none;
  }
}
