/* ============================================
   東京都医療安全推進地方会 - メインスタイル（小池グリーンVer.）
   style.css
   ============================================ */

/* ------------------------------------------
   CSS変数（カラーパレット・共通値）
   ------------------------------------------ */
:root {
  /* ── 小池グリーン（Yuriko Green）系 ── */
  --green-dark: #005a30;
  /* ナビゲーションバー・重厚な緑 */
  --green-main: #008a4b;
  /* 見出し・メインカラー（百合子グリーン） */
  --green-mid: #14a661;
  /* ホバー・アクセント */
  --green-light: #e8f5ed;
  /* 非常に薄い緑背景 */
  --green-text: #005a30;
  /* テキスト用濃緑 */

  /* ── Blue系（アクセント用として一部残す、または補色として運用） ── */
  --blue-dark: #1a4f7a;
  --blue-main: #2575b7;
  --blue-mid: #3a87c8;
  --blue-light: #d6e8f5;
  --blue-text: #1a4f7a;

  /* ── 旧Green系（元からあったパーツ用） ── */
  /* メインと被るため、少し明るい黄緑寄りに調整 */
  --sub-green-main: #4a9a5e;
  --sub-green-dark: #3a7d4c;
  --sub-green-light: #f0f9f2;

  /* ── Neutral系 ── */
  --white: #ffffff;
  --bg-light: #f4f7f6;
  /* 少しだけ緑寄りのグレーに */
  --gray-border: #d8e2dc;
  --gray-light: #f1f5f3;
  --text-main: #2c2c2c;
  --text-sub: #5c6660;
  --text-label: #99a39e;

  /* ── サイズ・余白 ── */
  --container-width: 1100px;
  --nav-height: 48px;
  --radius-sm: 4px;
  --radius-md: 8px;

  /* ── シャドウ ── */
  --shadow-sm: 0 1px 4px rgba(0, 40, 20, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 40, 20, 0.12);

  /* ── トランジション ── */
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family:
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic",
    "YuGothic", Meiryo, sans-serif;
  color: var(--text-main);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green-main);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--green-mid);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  list-style: none;
}

/* ------------------------------------------
   コンテナ
   ------------------------------------------ */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------
   ヘッダー
   ------------------------------------------ */
.site-header {
  background-color: var(--white);
  border-bottom: 2px solid var(--green-main);
  /* 下線を少し強調 */
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo .name-ja {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.header-logo .name-en {
  font-size: 0.8rem;
  color: var(--text-sub);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-left: auto;
}

.header-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-dark);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.05em;
  min-width: 54px;
  text-align: center;
}

.header-info-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.4;
  flex: none;
  text-align: left;
}

.header-info-text strong {
  font-size: 1.1rem;
  font-weight: 700;
}

.header-info-address {
  font-size: 0.78rem;
  color: var(--text-sub);
}

/* ------------------------------------------
   ナビゲーションバー
   ------------------------------------------ */
.site-nav {
  background-color: var(--green-dark);
  height: var(--nav-height);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: stretch;
  position: relative;
}

.nav-list {
  display: flex;
  height: 100%;
  align-items: stretch;
  flex: 1;
}

.nav-list li {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-list li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.25);
}

.nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background-color var(--transition);
  padding: 0 8px;
  text-align: center;
}

.nav-list a:hover {
  background-color: var(--green-mid);
  text-decoration: none;
}

.nav-list a:visited {
  color: var(--white);
}

.nav-list a:focus {
  background-color: transparent;
  outline: none;
}

/* ハンバーガーメニューボタン */
.hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 10px 12px;
  flex-direction: column;
  gap: 6px;
  border-radius: var(--radius-md);
  transition:
    background-color var(--transition),
    border-color var(--transition);
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.hamburger:focus {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--white);
  border-radius: 2px;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

/* ------------------------------------------
   ヒーローセクション
   ------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  line-height: 0;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  /* 緑のグラデーションに変更 */
  /* background: linear-gradient(to right,
            rgba(0, 90, 48, 0.55) 0%,
            rgba(0, 90, 48, 0.20) 60%,
            transparent 100%); */
  display: flex;
  align-items: center;
}

.hero-text {
  padding: 0 60px;
}

.hero-catch {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.04em;
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
  margin-top: 12px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.06em;
}

/* ------------------------------------------
   共通セクション
   ------------------------------------------ */
.section {
  padding: 56px 0;
}

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

.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-dark);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--green-main);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

/* ------------------------------------------
   新着情報
   ------------------------------------------ */
.news-section .container {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

.news-block {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}

.news-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.news-block-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.news-link-all {
  font-size: 0.85rem;
  color: var(--green-main);
}

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

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

.news-date {
  color: var(--text-sub);
  white-space: nowrap;
  font-size: 0.85rem;
  padding-top: 2px;
}

/* ------------------------------------------
   CTAカード（演題募集・参加登録）
   ------------------------------------------ */
.cta-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  transition:
    filter var(--transition),
    transform var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.cta-card:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

.cta-card-blue {
  background-color: var(--blue-mid);
}

.cta-card-green {
  background-color: var(--sub-green-main);
}

.cta-card-red {
  background: linear-gradient(135deg, #f5a962 0%, #ed9f58 100%);
  box-shadow: 0 4px 12px rgba(245, 169, 98, 0.3);
}

.cta-card-red:hover {
  box-shadow: 0 6px 16px rgba(245, 169, 98, 0.4);
}

.cta-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cta-card-body {
  flex: 1;
}

.cta-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.cta-card-period {
  font-size: 0.75rem;
  opacity: 0.9;
}

.cta-card-arrow {
  font-size: 1rem;
  opacity: 0.8;
}

/* ------------------------------------------
   情報グリッド（開催概要・プログラム・会場案内・協賛）
   ------------------------------------------ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

.info-card-icon {
  font-size: 2rem;
  color: var(--green-main);
  margin-bottom: 12px;
}

.info-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-main);
  margin-bottom: 8px;
}

.info-card-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ------------------------------------------
   ページ内共通：ページヘッダー
   ------------------------------------------ */
.page-header {
  background-color: var(--green-dark);
  color: var(--white);
  padding: 36px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.page-header p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 6px;
}

/* パンくずリスト */
.breadcrumb {
  background-color: var(--bg-light);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-border);
  font-size: 0.82rem;
  color: var(--text-sub);
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "›";
  color: var(--text-label);
}

.breadcrumb a {
  color: var(--green-main);
}

/* ------------------------------------------
   テーブル
   ------------------------------------------ */
.table-basic {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table-basic th,
.table-basic td {
  padding: 14px 20px;
  border: 1px solid var(--gray-border);
  vertical-align: top;
  line-height: 1.6;
}

.table-basic th {
  background-color: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
  width: 220px;
  text-align: left;
}

.table-basic tr:nth-child(even) td {
  background-color: var(--gray-light);
}

/* ------------------------------------------
   ボタン
   ------------------------------------------ */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  transition:
    background-color var(--transition),
    transform var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--green-main);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--green-dark);
  color: var(--white);
}

.btn-green {
  background-color: var(--sub-green-main);
  color: var(--white);
}

.btn-green:hover {
  background-color: var(--sub-green-dark);
  color: var(--white);
}

.btn-outline {
  background-color: transparent;
  color: var(--green-main);
  border: 2px solid var(--green-main);
}

.btn-outline:hover {
  background-color: var(--green-main);
  color: var(--white);
}

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

.site-footer {
  background-color: var(--green-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 30px;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
  flex: 0 0 320px;
}

.footer-logo .name-ja {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo .name-en {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 4px;
}

.footer-logo address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 15px;
  line-height: 1.8;
}

.footer-contact {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  padding: 24px 30px;
  border-radius: var(--radius-md);
}

.footer-contact-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-contact-org p {
  margin: 0;
  color: var(--white);
  font-size: 0.9rem;
}

.footer-contact-info {
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-contact-info a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.footer-contact-info a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-copyright {
  text-align: center;
  padding-top: 25px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ------------------------------------------
   ユーティリティ
   ------------------------------------------ */
.text-center {
  text-align: center;
}

/* 既存のクラス名に合わせて色を適用 */
.text-blue,
.text-green {
  color: var(--green-main);
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}
