/* site.css — シンプルなレスポンシブレイアウト */
:root {
  --container-width: 1200px;
  --accent: #76b4a1;
  --muted: #666;
  --logo: #dcdbdb;
  --nomal: #ddeedf;
}

* {
  box-sizing: border-box
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  margin: 0;
  color: #222;
  line-height: 1.6
}

/* 全体のリンクをボタン風にする（デフォルトは primary） */
a {
  text-decoration: none;
  display: inline-block;
  color: #272626;
  background: var(--nomal);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background .16s ease, transform .08s ease, color .12s ease;
}

.half-item {
  flex: 1 1 50%;
  /* 50%を基準にしつつ、入りきらなければ伸縮する */
  min-width: 300px;
  /* 極端に狭くなるのを防ぐ防波堤 */
}

/* ボタンバリエーション */
.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #f0f0f0;
  color: var(--muted);
  border-color: rgba(0, 0, 0, 0.06);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: none;
  box-shadow: none;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover,
a:hover {
  transform: translateY(-1px);
}


.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px
}

.container .logo {
  background: var(--logo);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px
}

.logo img {
  height: 96px;
  width: auto
}

.nav-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 8px 12px;
  border-radius: 4px
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px
}

/* nav 基本 */
.site-nav {
  z-index: 1100;
}

/* nav 内のリンクはデフォルトで primary 見た目に揃える */
.site-nav a {
  border: 1px solid;
}

#houwa-links ul li {
  list-style-type: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #f0f0f0;
  /* add icon */
  background: url("../image/ICO_347.GIF") no-repeat left center;
  padding-left: 24px;
  /* space for icon */
}

#houwa-links ul li a {
  color: #000;
  background: #fff;
}

.hero {
  position: relative;
  height: 320px;
  overflow: hidden
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.45))
}

.hero-overlay h1 {
  font-size: 2rem;
  margin: 0
}

.site-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  padding: 24px 16px
}

.intro .links {
  display: flex;
  gap: 12px;
  margin-bottom: 12px
}

.main-photo {
  width: 100%;
  height: auto;
  border-radius: 6px
}

.sidebar .card {
  background: #fff;
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 12px
}

.partners img {
  height: 36px;
  margin-right: 8px
}

.content article {
  background: #fff;
  padding: 16px;
  border-radius: 6px
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none
}

.quotes blockquote {
  margin: 16px 0;
  padding: 12px;
  background: #f8f8f8;
  border-left: 4px solid var(--accent)
}

.site-footer {
  background: #111;
  color: #ddd;
  padding: 16px 0;
  margin-top: 24px
}

.site-footer p {
  margin: 0
}

/* メディアクエリ */
@media (max-width: 900px) {
  .site-main {
    grid-template-columns: 1fr 280px
  }

  .hero {
    height: 260px
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: inline-block;
    cursor: pointer
  }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 16px;
    background: #fff;
    border: 1px solid #ddd;
    display: none;
    width: 240px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 4px
  }

  .site-nav.open {
    display: block
  }

  /* 開いたときのリンクは横幅いっぱいにし、タップしやすくする */
  .site-nav.open a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
  }

  .site-nav.open a:hover {
    background: #f8f8f8;
    color: var(--accent);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0
  }

  .site-nav li {
    border-bottom: 1px solid #f0f0f0;
    /* add icon */
    background: url("../image/ICO_347.GIF") no-repeat left center;
    padding-left: 24px;
    /* space for icon */
  }

  .site-nav li:last-child {
    border-bottom: none
  }

  .site-nav a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    background: var(--accent);
    border-radius: 6px;
    text-decoration: none;
  }

  .site-nav a:hover {
    background: #24483d;
    color: #fff;
  }

  .site-main {
    grid-template-columns: 1fr;
    padding: 12px
  }

  .hero {
    height: 200px
  }

  .logo img {
    height: 48px
  }
}

@media (max-width:400px) {
  .hero-overlay h1 {
    font-size: 1.25rem
  }
}