/* =============================================
   岡山県産業看護部会 共通スタイル
   ============================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

/* リセット & ベース */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #1a2e5a;
  --navy-mid:   #2c4a7c;
  --navy-light: #4a6fa5;
  --accent:     #2B8C96;       /* ティール（画像の青緑） */
  --accent-orange: #E8762B;    /* オレンジ（画像の歯車） */
  --accent-teal-light: #3AABB5; /* ティール明るめ */
  --warm-gray:  #B8A48C;       /* ウォームグレー */
  --bg-light:   #f5f6f4;
  --bg-white:   #ffffff;
  --text-dark:  #1e2d4a;
  --text-mid:   #4a5568;
  --text-light: #718096;
  --border:     #ddd9d5;
  --gradient:   linear-gradient(135deg, #1a2e5a 0%, #2c4a7c 50%, #4a6fa5 100%);
  /* フォント */
  --font-mincho: 'Shippori Mincho', 'Yu Mincho', '游明朝', 'HG明朝E', serif;
  --font-gothic: 'Segoe UI', 'Noto Sans JP', 'Meiryo', 'メイリオ', 'Hiragino Kaku Gothic ProN', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-gothic);
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.8;
  font-size: 16px;
}

/* =============================================
   ヘッダー
   ============================================= */
header {
  background: var(--gradient);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(26, 46, 90, 0.3);
}

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

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.header-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  object-fit: cover;
  background: white;
}

.header-title {
  display: flex;
  flex-direction: column;
}

.header-title .main-title {
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.header-title .sub-title {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ナビゲーション */
nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

nav ul li a {
  display: block;
  padding: 8px 18px;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

/* ハンバーガーメニュー（SP） */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s;
}

/* =============================================
   ヒーローセクション（トップのみ）
   ============================================= */
.hero {
  margin: 0;
  padding: 0;
  width: 100%;
  line-height: 0;  /* 画像下の隙間を除去 */
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* =============================================
   ページヘッダー（サブページ共通）
   ============================================= */
.page-header {
  background: var(--gradient);
  padding: 48px 24px 52px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-mincho);
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.08em;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  font-size: 0.95rem;
}

/* =============================================
   メインコンテンツ
   ============================================= */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* =============================================
   カード・セクション
   ============================================= */
.section {
  margin-top: 52px;
}

.section-title {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  border-left: 4px solid var(--accent-orange);
  padding-left: 14px;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}

.card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(26, 46, 90, 0.08);
  border: none;
}

/* =============================================
   News リスト
   ============================================= */
.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
  font-size: 0.9rem;
  min-width: 110px;
}

.news-text {
  color: var(--text-mid);
}

/* =============================================
   ナビカード（トップの3ボタン）
   ============================================= */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.nav-card {
  background: #e8e6e3;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.nav-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #ddd9d5;
}

.nav-card .icon {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--accent);
}

.nav-card .icon svg {
  width: 32px;
  height: 32px;
}

/* 各カードに個別のアクセント色 */
.nav-card:nth-child(1) .icon { color: var(--accent-orange); }
.nav-card:nth-child(2) .icon { color: var(--accent); }
.nav-card:nth-child(3) .icon { color: var(--accent-orange); }

.nav-card .label {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-card .desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* =============================================
   会長挨拶
   ============================================= */
.greeting-section {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.greeting-photo {
  flex-shrink: 0;
  width: 160px;
  text-align: center;
}

.greeting-photo img,
.greeting-photo .photo-placeholder {
  width: 140px;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--border);
}

.greeting-photo .photo-placeholder {
  background: var(--bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.8rem;
  gap: 8px;
}

.greeting-photo .photo-placeholder span {
  font-size: 2rem;
}

.greeting-photo .caption {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 8px;
}

.greeting-text {
  flex: 1;
}

.greeting-text p {
  font-family: var(--font-mincho);
  color: var(--text-mid);
  font-size: 0.97rem;
  margin-bottom: 14px;
  line-height: 2.0;
}

.greeting-sig {
  font-family: var(--font-mincho);
  text-align: right;
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* =============================================
   活動内容 - タイムライン
   ============================================= */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item:nth-child(even)::before {
  background: var(--accent-orange);
  box-shadow: 0 0 0 2px var(--accent-orange);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-card {
  background: var(--bg-white);
  border-radius: 10px;
  padding: 20px 24px;
  border: none;
  box-shadow: 0 1px 8px rgba(26, 46, 90, 0.06);
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-card .meta {
  font-size: 0.88rem;
  color: var(--text-mid);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.timeline-card .meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tag {
  display: inline-block;
  background: rgba(43, 140, 150, 0.1);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* =============================================
   入会案内
   ============================================= */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.member-type-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}

.member-type-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.member-type-card .badge {
  display: inline-block;
  background: var(--navy);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.member-type-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.member-type-card p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

.fee-box {
  background: linear-gradient(135deg, #fdf3ec, #f5ebe3);
  border-radius: 12px;
  padding: 24px 28px;
  border-left: 5px solid var(--accent-orange);
  margin-bottom: 28px;
}

.fee-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.fee-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.fee-amount small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-mid);
}

.bylaw-section details {
  background: var(--bg-white);
  border-radius: 10px;
  border: none;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  margin-bottom: 10px;
  overflow: hidden;
}

.bylaw-section details summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.97rem;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.bylaw-section details summary::before {
  content: '▶';
  font-size: 0.7rem;
  color: var(--accent-orange);
  transition: transform 0.2s;
}

.bylaw-section details[open] summary::before {
  transform: rotate(90deg);
}

.bylaw-section details .detail-body {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.9;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 0;
}

.bylaw-section details .detail-body ol {
  padding-left: 20px;
}

.bylaw-section details .detail-body li {
  margin-bottom: 6px;
}

/* =============================================
   問い合わせ
   ============================================= */
.contact-box {
  text-align: center;
  padding: 48px 24px;
}

.contact-box .icon-large {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.contact-box h2 {
  font-family: var(--font-mincho);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-box p {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.9;
}

.btn-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient);
  color: white;
  padding: 14px 36px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(26, 46, 90, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-mail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 46, 90, 0.4);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 16px;
}

/* =============================================
   フッター
   ============================================= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
}

footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

footer .footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

footer .footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.3);
}

footer .footer-name {
  font-family: var(--font-mincho);
  font-size: 1rem;
  color: white;
  font-weight: 600;
  letter-spacing: 0.06em;
}

footer .footer-links {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

footer .footer-links-sub {
  margin-bottom: 16px;
  font-size: 0.82rem;
}

footer .footer-links-sub a {
  opacity: 0.7;
}

footer .footer-links-sub a:hover {
  opacity: 1;
}

footer .copyright {
  font-family: var(--font-gothic);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  nav {
    display: none;
    width: 100%;
    padding: 10px 0;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 2px;
  }

  nav ul li a {
    padding: 10px 12px;
  }

  .menu-toggle {
    display: flex;
  }

  /* ヒーローはフル幅画像のみなので追加調整不要 */

  .nav-cards {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
  }

  .membership-grid {
    grid-template-columns: 1fr;
  }

  .greeting-section {
    flex-direction: column;
    align-items: center;
  }

  .greeting-photo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 1.2rem;
  }

  main {
    padding: 0 16px 48px;
  }
}
