/* ============================================================
   株式会社スターフィールド サイトスタイル
   方針: 福祉=温かみ・安心 / 技術=確実・シャープ の両立
   ============================================================ */

/* カラー・余白などの基本変数 */
:root {
  --warm: #c9784a;          /* 温かみのアクセント（福祉） */
  --warm-dark: #a85f37;
  --warm-soft: #f3e6da;     /* 淡い背景 */
  --sharp: #1f3a5f;         /* シャープなアクセント（技術） */
  --sharp-dark: #15293f;
  --bg: #fbf8f3;            /* 温かみのあるオフホワイト */
  --surface: #ffffff;
  --text: #33302b;
  --muted: #6f665b;
  --border: #e7ded2;
  --max-width: 1080px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(51, 48, 43, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--sharp); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: min(100% - 40px, var(--max-width)); margin-inline: auto; }

h1, h2, h3 { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; line-height: 1.4; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.brand-name { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.brand-en { font-size: 0.7rem; letter-spacing: 0.15em; color: var(--warm); }

.site-nav ul { display: flex; gap: 26px; list-style: none; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; padding-bottom: 4px; }
.site-nav a:hover { text-decoration: none; color: var(--warm); }
.site-nav a.active { color: var(--warm); border-bottom: 2px solid var(--warm); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* ---------- 共通セクション ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .en { display: block; color: var(--warm); letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.section-head h2 { font-size: 1.9rem; }
.section-head p { color: var(--muted); margin-top: 12px; }

.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px;
  font-weight: 700; transition: 0.2s; border: 2px solid transparent;
}
.btn-primary { background: var(--warm); color: #fff; }
.btn-primary:hover { background: var(--warm-dark); text-decoration: none; }
.btn-outline { border-color: var(--sharp); color: var(--sharp); }
.btn-outline:hover { background: var(--sharp); color: #fff; text-decoration: none; }

/* ---------- ヒーロー ---------- */
.hero {
  background: linear-gradient(135deg, var(--warm-soft) 0%, #fbf8f3 60%);
  padding: 96px 0;
}
.hero-inner { max-width: 720px; }
.hero h1 { font-size: 2.6rem; margin-bottom: 20px; }
.hero h1 .accent { color: var(--warm); }
.hero p { font-size: 1.1rem; color: var(--muted); margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 事業カード ---------- */
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.business-card {
  background: var(--surface); border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border-top: 4px solid var(--warm);
  display: flex; flex-direction: column;
}
.business-card.sharp { border-top-color: var(--sharp); }
.business-card .cat { font-size: 0.8rem; color: var(--warm); font-weight: 700; letter-spacing: 0.1em; }
.business-card.sharp .cat { color: var(--sharp); }
.business-card h3 { font-size: 1.3rem; margin: 6px 0 14px; }
.business-card p { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.business-card .more { margin-top: 18px; font-weight: 700; color: var(--warm); }
.business-card.sharp .more { color: var(--sharp); }

/* ---------- お知らせ（トップ） ---------- */
.news-list { list-style: none; max-width: 760px; margin-inline: auto; }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list a { display: flex; gap: 20px; padding: 18px 4px; color: var(--text); align-items: baseline; }
.news-list a:hover { text-decoration: none; background: var(--warm-soft); border-radius: 8px; padding-inline: 12px; }
.news-list .date { color: var(--muted); font-size: 0.85rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- 汎用ページ ---------- */
.page-hero { background: var(--sharp); color: #fff; padding: 64px 0; }
.page-hero .en { color: #9db8d6; letter-spacing: 0.2em; font-size: 0.8rem; font-weight: 700; }
.page-hero h1 { font-size: 2.2rem; margin-top: 8px; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 16px; padding-left: 14px; border-left: 5px solid var(--warm); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--sharp); }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 1.4em; }
.prose li { margin-bottom: 6px; }

/* 事業詳細ブロック */
.service-block { background: var(--surface); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); margin-bottom: 32px; }
.service-block .cat { color: var(--warm); font-weight: 700; letter-spacing: 0.1em; font-size: 0.85rem; }
.service-block.sharp .cat { color: var(--sharp); }
.service-block h2 { font-size: 1.6rem; margin: 6px 0 6px; border: none; padding: 0; }
.service-block .catch { color: var(--muted); margin-bottom: 20px; }
.badge { display: inline-block; background: var(--warm-soft); color: var(--warm-dark); font-size: 0.8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin-left: 8px; }
.service-photo { width: 100%; border-radius: 10px; margin: 8px 0 20px; display: block; }

/* 利用の流れ STEP */
.steps { counter-reset: step; list-style: none; margin-top: 16px; }
.steps li { position: relative; padding: 14px 0 14px 56px; border-bottom: 1px dashed var(--border); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--warm); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* 施設詳細（写真＋情報の2カラム） */
.facility-detail {
  display: grid; grid-template-columns: 300px 1fr; gap: 28px;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; margin-bottom: 28px; align-items: start;
}
.facility-photo { border-radius: 10px; overflow: hidden; }
/* 写真は縦横が混在するため、枠を固定して中央トリミングし、サイズを揃える */
.facility-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: center; display: block; }
.facility-photo.ph { aspect-ratio: 3/4; background: var(--warm-soft); display: flex; align-items: center; justify-content: center; color: var(--warm-dark); font-weight: 700; }
.facility-info h3 { font-size: 1.4rem; margin-bottom: 12px; color: var(--sharp); }
.facility-info .info-table th { width: 28%; }

@media (max-width: 720px) {
  .facility-detail { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .facility-photo { max-width: 320px; margin: 0 auto; }
}

/* 施設の館内ギャラリー（小さめサムネイルで自動折り返し） */
.facility-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin: -8px 0 32px; }
.facility-gallery figure { margin: 0; background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.facility-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.facility-gallery figcaption { padding: 8px 12px; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* 施設カード */
.facility-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.facility-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facility-card .ph { aspect-ratio: 16/9; background: var(--warm-soft); display: flex; align-items: center; justify-content: center; color: var(--warm-dark); font-weight: 700; }
.facility-card .body { padding: 22px 24px; }
.facility-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.facility-card p { color: var(--muted); font-size: 0.92rem; }

/* お問い合わせ */
.contact-targets { list-style: none; display: grid; gap: 12px; max-width: 640px; margin: 24px auto 0; }
.contact-targets li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; font-weight: 500; }
.contact-note { max-width: 640px; margin: 28px auto 0; background: var(--warm-soft); border-radius: 10px; padding: 20px 24px; color: var(--warm-dark); font-size: 0.92rem; }

.info-table { width: 100%; max-width: 640px; margin: 0 auto; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.info-table th { width: 34%; color: var(--sharp); font-weight: 700; }

.alt-bg { background: var(--warm-soft); }
.cta { text-align: center; }
.cta .btn { margin-top: 8px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--sharp-dark); color: #cdd6e2; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 56px 0 32px; flex-wrap: wrap; }
.footer-name { font-family: "Zen Maru Gothic", sans-serif; font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer-tagline { font-size: 0.9rem; margin-top: 8px; }
.footer-nav ul { list-style: none; display: grid; gap: 10px; }
.footer-nav a { color: #cdd6e2; font-size: 0.9rem; }
.footer-nav a:hover { color: #fff; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.12); text-align: center; padding: 18px 0; font-size: 0.8rem; color: #8fa0b5; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: 0.3s; box-shadow: var(--shadow);
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 0; padding: 8px 20px; }
  .site-nav li { border-bottom: 1px solid var(--border); }
  .site-nav a { display: block; padding: 16px 0; }

  .business-grid, .facility-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 56px 0; }
  .service-block { padding: 28px 22px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}
