/*
Theme Name: MBAJ
Description: 一般社団法人食事補助推進協会（MBAJ）公式サイト用テーマ。07_ブランド/website-mockup/ のデザインモックアップを移植したもの。
Author: 山本祐也
Version: 1.0.0
*/

/* 一般社団法人食事補助推進協会 — カラーテーマ: フレッシュガーデン (#00A87E) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

:root {
  --primary:      #00A87E;
  --primary-dark: #006446;
  --accent:       #F0B820;
  --bg:           #ffffff;
  --bg-alt:       #F0FBF7;
  --text:         #0A1C14;
  --text-weak:    #3A6050;
  --line:         #C0DDD4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ヘッダー */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-abbr {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--primary);
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand-divider {
  width: 1px;
  height: 30px;
  background: var(--line);
  flex-shrink: 0;
}
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name-ja {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand-name-en { font-size: 9px; color: var(--text-weak); letter-spacing: 0.07em; }

.global-nav ul { display: flex; list-style: none; gap: 2px; }
.global-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.global-nav a:hover,
.global-nav a.current,
.global-nav .current-menu-item > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ヒーロー */
.hero {
  background: linear-gradient(112deg, #00A87E 0%, #20C090 55%, #50D8B0 100%);
  color: #fff;
  padding: 96px 24px 88px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  line-height: 1.6;
}
.hero-sub { font-size: 16px; max-width: 540px; opacity: 0.92; line-height: 1.9; }

/* ページタイトル帯 */
.page-title { background: linear-gradient(112deg, #007050 0%, #00A87E 100%); color: #fff; padding: 44px 24px; }
.page-title-inner { max-width: 1100px; margin: 0 auto; }
.page-title h1 { font-size: 24px; letter-spacing: 0.08em; font-weight: 600; }
.page-title .en { font-size: 11px; opacity: 0.6; letter-spacing: 0.1em; margin-top: 5px; }

/* セクション共通 */
.section { padding: 72px 24px; }
.section.alt { background: var(--bg-alt); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.section h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  line-height: 1.5;
}
.section h2.ruled { border-left: 4px solid var(--primary); padding-left: 14px; }
.section h3 { font-size: 18px; color: var(--primary-dark); margin: 32px 0 10px; font-weight: 600; }
.section p { margin-bottom: 16px; line-height: 1.9; }

/* ニュースカード */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.news-card {
  border: 1px solid var(--line);
  padding: 24px;
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s;
}
.news-card:hover { border-color: var(--primary); text-decoration: none; }
.news-card-date { font-size: 12px; color: var(--text-weak); margin-bottom: 8px; }
.news-card-title { font-size: 15px; font-weight: 600; line-height: 1.6; }

/* お知らせリスト */
.news-list { list-style: none; }
.news-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.news-list time { color: var(--text-weak); min-width: 110px; font-size: 14px; }

/* 2カラムレイアウト */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.rev { direction: rtl; }
.two-col.rev > * { direction: ltr; }
.col-img-placeholder {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-weak);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.president-role { font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: 0.1em; margin-bottom: 4px; }
.president-name { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.president-tagline {
  font-size: 14px;
  color: var(--text-weak);
  margin-bottom: 24px;
  line-height: 1.6;
  padding-left: 12px;
  border-left: 3px solid var(--line);
}

/* 会員企業カード */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.member-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  padding: 24px;
  display: block;
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s, box-shadow .18s;
}
.member-card:hover { box-shadow: 0 2px 12px rgba(240,80,42,.12); text-decoration: none; }
.member-card-name { font-size: 15px; font-weight: 600; color: var(--primary-dark); margin-bottom: 6px; }
.member-card-url { font-size: 12px; color: var(--text-weak); }

/* テーブル */
.info-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.info-table th, .info-table td {
  border: 1px solid var(--line);
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}
.info-table th {
  background: var(--bg-alt);
  color: var(--primary-dark);
  font-weight: 600;
  width: 180px;
  white-space: nowrap;
}

/* ガイドライン・本文（.entry-content = WordPress管理画面で入力した本文の共通枠） */
.guideline-body, .entry-content { max-width: 800px; }
.guideline-issued { font-size: 13px; color: var(--text-weak); text-align: right; margin-bottom: 40px; }
.guideline-body p, .entry-content p { font-size: 15px; line-height: 1.9; margin-bottom: 16px; }
.guideline-body ol, .entry-content ol { padding-left: 22px; margin-bottom: 16px; }
.guideline-body ol li, .entry-content ol li { font-size: 15px; line-height: 1.85; margin-bottom: 12px; }
.guideline-body ul, .entry-content ul { padding-left: 18px; margin-bottom: 16px; }
.guideline-body ul li, .entry-content ul li { font-size: 15px; line-height: 1.85; margin-bottom: 8px; }
.guideline-def {
  background: var(--bg-alt);
  border-left: 3px solid var(--line);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
}
.guideline-def dt { font-weight: 600; color: var(--primary-dark); margin-bottom: 4px; }
.guideline-def dd { margin: 0 0 10px 0; color: var(--text-weak); line-height: 1.7; }
.guideline-body h3, .entry-content h3 {
  font-size: 17px;
  color: var(--primary-dark);
  margin: 40px 0 12px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
}
.entry-content h2 { font-size: 20px; font-weight: 700; margin: 32px 0 12px; color: var(--text); }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 24px; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 14px 18px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--bg-alt); color: var(--primary-dark); font-weight: 600; }
.sub-items { list-style: none; padding-left: 0; margin: 8px 0 16px; }
.sub-items li { font-size: 14px; line-height: 1.8; margin-bottom: 6px; }

/* フォーム */
.form-wrap { max-width: 640px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.req {
  display: inline-block;
  font-size: 9.5px;
  background: var(--primary);
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  font-weight: 500;
  vertical-align: middle;
}
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(240,80,42,.12);
}

/* ボタン */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 13px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.btn:hover { opacity: 0.88; text-decoration: none; }
.more-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
  letter-spacing: 0.05em;
}
.note {
  font-size: 13px;
  color: var(--text-weak);
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 10px 16px;
  margin: 16px 0;
}

/* フッター */
.site-footer {
  background: linear-gradient(160deg, #004428 0%, #006446 55%, #00A87E 100%);
  color: rgba(255,255,255,0.88);
  padding: 52px 24px 28px;
  font-size: 13px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-abbr { font-family: 'Playfair Display', serif; font-size: 22px; color: #fff; letter-spacing: 0.04em; margin-bottom: 4px; }
.footer-ja { font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.footer-en { font-size: 10px; opacity: 0.6; letter-spacing: 0.08em; margin-bottom: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 0; margin-bottom: 8px; }
.footer-nav a { color: rgba(255,255,255,0.82); margin-right: 20px; font-size: 13px; }
.footer-nav a:hover { text-decoration: underline; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; margin-top: 16px; font-size: 11px; opacity: 0.55; }

/* 執筆中プレースホルダー */
.wip-block {
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 12px 0 24px;
  color: var(--text-weak);
  font-size: 14px;
}
.wip-label {
  display: inline-block;
  background: var(--line);
  color: var(--text-weak);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.guideline-ref {
  margin-top: 36px;
  padding: 16px 20px;
  border-left: 3px solid var(--line);
  font-size: 13px;
  color: var(--text-weak);
}

/* レスポンシブ */
@media (max-width: 800px) {
  .header-inner { height: auto; padding: 14px 16px; flex-wrap: wrap; }
  .brand-name { display: none; }
  .hero { padding: 64px 16px 56px; }
  .hero h1 { font-size: 26px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col.rev { direction: ltr; }
  .section { padding: 48px 16px; }
  .info-table th { width: 120px; font-size: 13px; }
  .info-table td { font-size: 14px; }
}
