/* ===== FDM Asian Association - 共通スタイル ===== */

:root {
  --color-primary: #8B0000;
  --color-primary-dark: #6B0000;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F8F5F0;
  --color-border: #E5E0D5;
  --color-accent: #C9A961;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* ===== ヘッダー ===== */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo .site-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

/* ===== ナビゲーション ===== */
.nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-text);
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.nav a:hover,
.nav a.active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
}

/* ===== ヒーロー（トップページ） ===== */
.hero {
  position: relative;
  background: var(--color-bg-soft);
  padding: 80px 24px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 220px;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

.hero-image {
  max-width: 720px;
  margin: 32px auto 0;
  border-radius: 4px;
  overflow: hidden;
}

/* ===== セクション共通 ===== */
.section {
  padding: 64px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.section-bg-soft {
  background: var(--color-bg-soft);
}

/* ===== ページタイトル（下層ページ） ===== */
.page-title {
  background: var(--color-bg-soft);
  padding: 60px 24px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-title h1 {
  font-size: 2rem;
  color: var(--color-primary);
  letter-spacing: 0.1em;
}

.page-title .breadcrumb {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ===== コンテンツブロック ===== */
.content-block {
  margin-bottom: 48px;
}

.content-block h2 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
}

.content-block h3 {
  font-size: 1.15rem;
  color: var(--color-text);
  margin: 24px 0 12px;
}

.content-block p {
  margin-bottom: 16px;
}

.content-block ul,
.content-block ol {
  margin: 16px 0 16px 24px;
}

.content-block li {
  margin-bottom: 8px;
}

/* ===== カードグリッド ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-image {
  aspect-ratio: 16 / 10;
  background: var(--color-bg-soft);
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card-body h3 {
  color: var(--color-primary);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.card-body p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* ===== 連絡先ボックス ===== */
.contact-box {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 32px;
  margin: 32px 0;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-label {
  font-weight: bold;
  color: var(--color-primary);
  min-width: 100px;
}

/* ===== 告知バー ===== */
.notice {
  background: var(--color-primary);
  color: white;
  text-align: center;
  padding: 12px 24px;
  font-size: 0.95rem;
}

.notice a {
  color: white;
  text-decoration: underline;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  background: var(--color-primary);
  color: white;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-center {
  text-align: center;
  margin: 32px 0;
}

/* ===== フッター ===== */
.site-footer {
  background: #1A1A1A;
  color: #CCCCCC;
  padding: 48px 24px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.footer-section p,
.footer-section li {
  font-size: 0.9rem;
  color: #999999;
  margin-bottom: 6px;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: #CCCCCC;
}

.footer-section a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #333;
  font-size: 0.85rem;
  color: #777;
}

/* ===== タイムライン（歴史ページ用） ===== */
.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-date {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.timeline-content h3 {
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 12px;
  font-weight: bold;
}

.timeline-content p {
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

.timeline-item.highlight {
  background: var(--color-bg-soft);
  padding: 20px 24px;
  border-radius: 4px;
  border-left: 4px solid var(--color-accent);
  border-bottom: none;
}

.timeline-item.highlight-red {
  background: #FFF5F5;
  padding: 20px 24px;
  border-radius: 4px;
  border-left: 4px solid var(--color-primary);
  border-bottom: none;
}

/* ===== メニューカードグリッド（ホームページの8項目用） ===== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.menu-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  padding: 24px 16px;
  min-height: 110px;
  color: var(--color-text);
  text-decoration: none;
  transition: all 0.2s;
}

.menu-card:hover {
  border-color: var(--color-primary);
  background: var(--color-bg-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.1);
  opacity: 1;
}

.menu-card-title {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.menu-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.menu-card.menu-card-external {
  background: linear-gradient(to bottom right, #FAFAFA, #F0EDE6);
}

.external-icon {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-left: 4px;
}

/* ===== テキスト配置ユーティリティ ===== */
.text-right {
  text-align: right;
}

/* ===== ステップボックス（入会の流れ用） ===== */
.step-box {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}

.step-number {
  background: var(--color-primary);
  color: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 8px;
  text-align: center;
  min-height: 60px;
}

.step-content h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-weight: bold;
}

.step-content p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.step-content p:last-child {
  margin-bottom: 0;
}

/* ===== 費用テーブル ===== */
.fee-table {
  background: var(--color-bg-soft);
  border-radius: 4px;
  padding: 24px;
  margin: 16px 0;
}

.fee-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
}

.fee-row:last-child {
  border-bottom: none;
}

.fee-label {
  font-size: 1rem;
}

.fee-value {
  font-weight: bold;
  color: var(--color-primary);
  font-size: 1.05rem;
}

.fee-row-total {
  padding-top: 16px;
  margin-top: 8px;
  border-top: 2px solid var(--color-primary) !important;
  border-bottom: none;
}

.fee-row-total .fee-label,
.fee-row-total .fee-value {
  font-size: 1.15rem;
  font-weight: bold;
}

/* ===== コールアウト（情報・警告） ===== */
.callout-info {
  background: #F0F8FF;
  border-left: 4px solid #4A90E2;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 4px;
}

.callout-info p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.callout-info p:last-child {
  margin-bottom: 0;
}

.callout-info ol {
  margin: 8px 0 0 24px;
  font-size: 0.95rem;
}

.callout-warning {
  background: #FFF7E6;
  border-left: 4px solid #E89B0E;
  padding: 16px 20px;
  margin: 16px 0;
  border-radius: 4px;
}

.callout-warning p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.callout-warning p:last-child {
  margin-bottom: 0;
}

/* ===== フォーム CTA ボックス ===== */
.form-cta-box {
  background: linear-gradient(to bottom, var(--color-bg-soft), #F0EDE6);
  border: 2px solid var(--color-accent);
  border-radius: 8px;
  padding: 32px;
  margin: 24px 0;
  text-align: center;
}

.form-cta-box p {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.form-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 12px;
}

.btn-large {
  font-size: 1.1rem;
  padding: 16px 40px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
  .hero {
    padding: 48px 20px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero .subtitle {
    font-size: 1rem;
  }
  .section {
    padding: 48px 20px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .page-title h1 {
    font-size: 1.5rem;
  }
  .nav {
    gap: 14px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
  .header-inner {
    padding: 12px 20px;
  }
  .contact-item {
    flex-direction: column;
    gap: 4px;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .timeline-date {
    font-size: 0.9rem;
  }
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .menu-card {
    padding: 16px 12px;
    min-height: 90px;
  }
  .menu-card-title {
    font-size: 0.95rem;
  }
  .menu-card-desc {
    font-size: 0.78rem;
  }
  .step-box {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .step-number {
    min-height: auto;
    padding: 8px 16px;
  }
}