/* ===============================
   基本設定
================================ */
:root {
  --main: #160094;
  --accent: #ffc400;
  --bg: #f5f6f8;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background: var(--bg);
  color: #222;
}

/* ===============================
   ヘッダー
================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    #080073 35%,
    #0062ff 70%,
    #ffffff 100%
  );
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.site-title {
  margin: 0;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

/* ハンバーガー */
.hamburger {
  display: none;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 8px;
}
.hamburger:hover {
  background: rgba(255,255,255,0.15);
}

/* ===============================
   レイアウト
================================ */
.layout {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(260px, 2.5fr);
  gap: 48px;
  align-items: start;
}


.layout:has(.content-area.no-card) {
  grid-template-columns: minmax(0, 9fr) minmax(260px, 2fr);
}

/* メイン */
.content-area {
  background: transparent;
  padding: 0;
}

/* ===============================
   共通カード
================================ */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 36px;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* ===============================
   トップ：ヒーローカード
================================ */
.home-top.card {
  background: linear-gradient(
    to bottom,
    rgb(22, 0, 83),
    rgb(47, 0, 255),
    rgb(186, 244, 255)
  );

  min-height: 360px;
  padding: 32px 40px;

  display: flex;
  align-items: center;

  color: #fff;
}


/* ヒーロー内文字 */
/* ヒーロー内：予約状況（最優先） */
.home-top.card .action-card.primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6); /* asideと同系 */
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(37,99,235,.35);
}

.home-top.card .action-card.primary strong,
.home-top.card .action-card.primary span {
  color: #fff;
}


.home-top.card .action-card {
  background: #fff;
  color: #222;
}

.home-top.card .action-card strong {
  color: #111;
}

.home-top.card .action-card span {
  color: #555;
}
/* ===============================
   トップ2カラム構成
================================ */
.home-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ===============================
   サービス説明
================================ */
.home-intro h2 {
  margin-top: 0;
}

.home-intro p {
  margin: 0 0 12px;
}

.lead {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 12px 0 20px;
}

/* ===============================
   ご利用の前に（アクション）
================================ */
.action-card {
  display: block;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid #eee;
  text-decoration: none;
  color: #222;
  transition: transform .15s ease, box-shadow .15s ease;
}

.action-card strong {
  display: block;
  font-size: 1rem;
}

.action-card span {
  display: block;
  margin-top: 4px;
  font-size: .85rem;
  color: #666;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

.action-card.primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  border: none;
  box-shadow: 0 8px 22px rgba(37,99,235,.35);
}

.action-card.primary span {
  color: #e0e7ff;
}

.action-card.tel {
  background: #f1f5f9;
}

/* ===============================
   お知らせ
================================ */
.home-news h2 {
  margin-top: 0;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 10px;
}

.news-date {
  font-size: .85rem;
  color: #666;
  margin-right: 8px;
}

.news-more {
  margin-top: 12px;
}

/* ===============================
   右カラム
================================ */
.side-actions {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-btn {
  padding: 16px;
  border-radius: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: #fff;
  color: #222;
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease;
}

.side-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}

.side-btn.primary {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
}

.side-btn.accent {
  background: var(--accent);
  color: #000;
}

.side-btn.tel {
  background: #f1f5f9;
}

.side-btn.recruit {
  background: #e6f7ef;
  color: #065f46;
}

/* ===============================
   フッター
================================ */
.site-footer {
  margin-top: auto;
  padding: 24px;
  text-align: center;
  font-size: .85rem;
  color: #666;
}

/* ===============================
   レスポンシブ
================================ */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .home-top-grid {
    grid-template-columns: 1fr;
  }

  .side-actions {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #f9fafb;
    padding: 100px 20px 20px;
    box-shadow: -4px 0 20px rgba(0,0,0,.2);
    transition: right .3s ease;
    z-index: 2000;
    padding-bottom: 40px;

    
    /* ★ これを追加 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .side-actions.open {
    right: 0;
  }

  .hamburger {
    display: block;
  }
}



/* ===== お知らせ ===== */
.news-item {
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-weight: 700;
  color: #2563eb;
  font-size: .9rem;
  margin-bottom: 6px;
}

.news-content {
  color: #333;
  line-height: 1.7;
}


