:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f9;
  --card-bg: #ffffff;
  --accent: #ff6b81;
  --accent-soft: rgba(255, 107, 129, 0.12);
  --text-main: #333;
  --text-sub: #666;
  --border-soft: #e2e2e8;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
  --max-width: 1080px;
  --transition-fast: 0.18s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo a {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--text-main);
  text-decoration: none;
}

.logo-sub {
  display: block;
  font-size: 0.7rem;
  color: var(--text-sub);
  margin-top: 2px;
}

/* PC Navigation */
.main-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--text-sub);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.main-nav a:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-main);
}

/* ------------------------------
   ハンバーガーメニュー
------------------------------ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* 開閉アニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* スマホ用メニュー */
@media (max-width: 800px) {
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 0;
  }
}

/* Hero */
.hero {
  padding: 40px 0 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin: 0 0 10px;
}

.hero-desc {
  margin: 0 0 18px;
  color: var(--text-sub);
}

.btn-primary {
  display: inline-flex;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6b81, #ff9f7b);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 107, 129, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(255, 107, 129, 0.35);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: #f0f0f5;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.hero-image-placeholder span {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #777;
}

/* Sections */
.section {
  padding: 32px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.section-header p {
  margin: 0 0 18px;
  color: var(--text-sub);
}

/* Grid */
.grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* Article Cards */
.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  margin: 0 0 8px;
}

.article-card h3 a {
  color: var(--text-main);
  text-decoration: none;
}

.article-card h3 a:hover {
  text-decoration: underline;
}

.article-meta {
  margin: 0 0 8px;
  font-size: 0.78rem;
  color: var(--text-sub);
}

.article-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* Contact SNS */
.contact-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* SNS Buttons */
.sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease-out;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.sns-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.sns-btn:hover .sns-icon {
  filter: invert(1);
}

.sns-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 16px 0 20px;
  background: #fafafa;
}

.footer-inner {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* Footer 1-row layout */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-sub);
}

.footer-logo {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: block;
}

.footer-sns {
  display: flex;
  gap: 10px;
}

.footer-sns .sns-btn {
  padding: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner,
  .grid-2col,
  .grid-3col {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-sub);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-sub);
}

/* Hero Image */
.hero-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.article-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* =========================================
   スマホ横スクロール防止・微調整
========================================= */

/* 全体の横スクロールを封じる */
html, body {
  overflow-x: hidden;
}

/* grid のはみ出し防止 */
.hero-inner,
.grid-2col,
.grid-3col {
  overflow-x: hidden;
}

/* スマホ時の hero レイアウトを強制的に1カラムに */
@media (max-width: 900px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}