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

:root {
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-text: #1a1f24;
  --color-text-muted: #5c6670;
  --color-border: #e2e5e8;
  --color-accent: #1d4e5f;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.main-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* スマホ幅ではヘッダーの横並びメニューを非表示にし、ハンバーガーのドロワーに一本化 */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
}

/* ハンバーガーボタン：PC・スマホともに常時表示 */
.hamburger {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- スライドインドロワー ---------- */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 150;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 80vw);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  padding: 24px;
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-close {
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  display: block;
  margin-left: auto;
  margin-bottom: 32px;
}

.drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
}

.drawer-nav a:hover {
  color: var(--color-accent);
}

.drawer-nav-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- メインコンテンツ ---------- */

main {
  flex: 1 0 auto;
  width: 100%;
  padding: calc(var(--header-height) + 56px) 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- フッター ---------- */

.site-footer {
  flex-shrink: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 20px 24px;
  text-align: center;
}

.copyright {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
}

.subtitle {
  margin-top: 12px;
  margin-bottom: 56px;
  color: var(--color-text-muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  text-align: center;
}

.cards {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  width: 320px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

.card-label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  z-index: 1;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--color-border);
}

.card-body {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
}

.card-btn {
  display: inline-block;
  padding: 10px 32px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-surface);
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  width: 100%;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.card:hover .card-btn {
  background: var(--color-surface);
  color: var(--color-accent);
}
