/*
 * 会社概要ページ スタイルシート
 * 対象: 北区シアター☆ラボ / NPO法人Palette Works
 *
 * ⚠ WordPress移植時の注意:
 *   .pw-container など "pw-" プレフィックスを使用しています。
 *   テーマや他プラグインの .container クラスとの衝突を避けるためです。
 *   Elementor や Bootstrap が入っている環境ではセレクタ特異度に注意してください。
 */

/* ============================================================
   CSS カスタムプロパティ（変数）
   ============================================================ */
:root {
  /* --- カラーパレット --- */
  --color-navy-dark:   #00102e;  /* ページタイトル、大見出し */
  --color-navy-mid:    #1c244b;  /* 英語ヒーロー見出し、リンク */
  --color-navy-light:  #324a6d;  /* 日本語ヒーロー見出し */
  --color-navy-accent: #20314b;  /* 活動サブ見出し */
  --color-text:        #333333;  /* 本文テキスト */
  --color-bg:          #ffffff;
  --color-border:      #e8e8e8;  /* テーブル区切り線 */

  /* --- フォント --- */
  --font-body:       'M PLUS Rounded 1c', -apple-system, YuGothic, '游ゴシック',
                     'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN',
                     'Helvetica Neue', Arial, Meiryo, sans-serif;
  --font-heading-en: 'Poppins', sans-serif;
  --font-heading-ja: Arial, sans-serif;

  /* --- レイアウト --- */
  --container-max:  900px;
  --container-pad:  1.25rem;   /* 20px / モバイル余白 */
  --section-gap:    3rem;      /* 48px / セクション間余白 */
  --policy-max:     720px;     /* プライバシーポリシー本文の最大幅 */
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
}

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

a {
  color: var(--color-navy-mid);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ============================================================
   共通コンテナ
   ⚠ WordPress移植時: .container と競合する場合は .pw-container をそのまま使用
   ============================================================ */
.pw-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   HEADER
   WordPress移植時: このブロック全体は header.php が担当するため不要
   ============================================================ */
.site-header {
  background-color: var(--color-bg);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;  /* ヘッダーは広めに */
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-body);
  font-size: 1.375rem;   /* 22px */
  font-weight: 700;
  color: var(--color-navy-dark);
  line-height: 1.2;
  display: block;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.8;
}

.site-tagline {
  font-size: 0.75rem;   /* 12px */
  color: var(--color-navy-light);
  margin-top: 0.125rem;
}

/* ナビゲーション */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  justify-content: flex-end;
}

.site-nav a {
  font-size: 0.875rem;   /* 14px */
  color: var(--color-navy-dark);
  white-space: nowrap;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom: 2px solid var(--color-navy-mid);
  text-decoration: none;
}

/* ============================================================
   SECTION 1: ヒーロー
   ============================================================ */
.section-hero {
  padding-block: var(--section-gap);
  text-align: center;
}

/* 英語サブタイトル "Discover Our Story" */
.hero-en {
  font-family: var(--font-heading-en);
  font-size: 1.9375rem;   /* 31px */
  font-weight: 600;
  color: var(--color-navy-mid);
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* 日本語メインキャッチ */
.hero-ja {
  font-family: var(--font-heading-en);
  font-size: 1.9375rem;   /* 31px */
  font-weight: 600;
  color: var(--color-navy-light);
  line-height: 1.4;
  margin-bottom: 3.5rem;  /* 元サイトのスペーサー分を余白で再現 */
}

/* ロゴ画像ラッパー */
.hero-logo {
  display: flex;
  justify-content: center;
}

.hero-logo img {
  width: 300px;
  height: auto;
}

/* ============================================================
   SECTION 2: 会社概要テーブル
   ============================================================ */
.section-company-info {
  padding-block: var(--section-gap);
}

/* dl > div > dt + dd の定義リスト */
.company-table {
  max-width: 620px;
  margin-inline: auto;
}

.company-table__row {
  display: grid;
  grid-template-columns: 7em 1fr;
  gap: 0 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
}

.company-table__row:first-child {
  border-top: 1px solid var(--color-border);
}

.company-table dt {
  font-weight: 500;
  color: var(--color-navy-dark);
  text-align: right;
  padding-right: 0.5rem;
}

.company-table dd {
  color: var(--color-text);
}

/* ============================================================
   SECTION 3: 活動紹介
   ============================================================ */
.section-activities {
  padding-block: var(--section-gap);
}

/* セクション大見出し（活動・沿革共通） */
.section-heading {
  font-family: var(--font-heading-ja);
  font-size: 2rem;   /* 32px */
  font-weight: 600;
  color: var(--color-navy-dark);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* 沿革は左揃え */
.section-heading--left {
  text-align: left;
}

/* 活動ブロック（2カラムグリッド） */
.activity-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.activity-block:last-child {
  margin-bottom: 0;
}

/* 画像を最大幅いっぱいに */
.activity-block__image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* 活動サブ見出し（italic スタイル） */
.activity-heading {
  font-family: var(--font-heading-ja);
  font-size: 1.5625rem;   /* 25px */
  font-weight: 600;
  font-style: italic;
  color: var(--color-navy-accent);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.activity-block__text p {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.activity-block__text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   SECTION 4: 沿革
   ============================================================ */
.section-history {
  padding-block: var(--section-gap);
  padding-bottom: calc(var(--section-gap) * 1.5);
}

.history-org {
  font-weight: 700;
  color: var(--color-navy-dark);
  margin-bottom: 0.75rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.history-list li {
  display: flex;
  gap: 1.5rem;
}

.history-list time {
  flex-shrink: 0;
  min-width: 9em;
  color: var(--color-navy-mid);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ============================================================
   FOOTER
   WordPress移植時: footer.php が担当するため不要
   ============================================================ */
.site-footer {
  background-color: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
}

/* ============================================================
   レスポンシブ対応（タブレット以下: max-width 768px）
   ============================================================ */
@media (max-width: 768px) {

  /* ヘッダー: 縦積みレイアウト */
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav ul {
    justify-content: flex-start;
    gap: 0.25rem 0.75rem;
  }

  .site-nav a {
    font-size: 0.8125rem;
  }

  /* ヒーロー: フォントサイズ縮小 */
  .hero-en,
  .hero-ja {
    font-size: 1.375rem;   /* 22px */
  }

  /* 会社概要: 2カラムから1カラムへ */
  .company-table__row {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }

  .company-table dt {
    text-align: left;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-navy-mid);
    padding-right: 0;
    padding-bottom: 0.125rem;
  }

  /* 活動ブロック: 1カラムへ */
  .activity-block {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
  }

  /* img-right ブロック: モバイルでは画像を下に */
  .activity-block--img-right .activity-block__text {
    order: 1;
  }
  .activity-block--img-right .activity-block__image {
    order: 2;
  }

  /* セクション見出し: フォントサイズ縮小 */
  .section-heading {
    font-size: 1.5rem;   /* 24px */
  }

  .activity-heading {
    font-size: 1.25rem;   /* 20px */
  }

  /* 沿革: 縦積み */
  .history-list li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .history-list time {
    min-width: auto;
    font-size: 0.875rem;
  }
}

/* ============================================================
   レスポンシブ対応（スマートフォン: max-width 480px）
   ============================================================ */
@media (max-width: 480px) {

  .hero-en,
  .hero-ja {
    font-size: 1.125rem;   /* 18px */
  }

  .hero-logo img {
    width: 220px;
  }

  .section-heading {
    font-size: 1.25rem;   /* 20px */
  }

  .activity-heading {
    font-size: 1.125rem;   /* 18px */
  }

  .section-activities,
  .section-company-info,
  .section-hero,
  .section-history {
    padding-block: 2rem;
  }
}

/* ============================================================
   プライバシーポリシーページ専用スタイル
   ============================================================ */

/* ページ全体のレイアウト */
.policy-layout {
  max-width: var(--policy-max);
  margin-inline: auto;
  padding-block: 3rem 4rem;
  padding-inline: 1.5rem;
}

/* ページタイトル (H1) */
.page-title {
  font-size: 2rem;           /* 元サイト: 48px → 視認性を保ちつつコンパクトに */
  font-weight: 600;
  color: var(--color-navy-dark);
  line-height: 1.4;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

/* ポリシー本文コンテナ */
.policy-content {
  color: #233452;            /* 元サイトの本文色 rgb(35,52,82) */
  font-size: 1rem;
  line-height: 1.9;
}

.policy-content > p {
  margin-bottom: 1.5rem;
}

/* セクションブロック（各条項） */
.policy-section {
  margin-bottom: 2rem;
}

/* 条項見出し (H2) */
.policy-heading {
  font-family: var(--font-body);
  font-size: 1rem;           /* 元サイトと同じ 16px ─ 段落と同サイズで番号付き */
  font-weight: 700;
  color: #233452;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

/* 番号付きリスト（利用目的・第三者提供除外等） */
.policy-list {
  list-style: decimal;
  padding-left: 1.5em;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.policy-list li {
  margin-bottom: 0.4rem;
  line-height: 1.8;
  color: #233452;
}

.policy-list li:last-child {
  margin-bottom: 0;
}

/* お問い合わせ先アドレスブロック */
.policy-contact {
  font-style: normal;
  background: #f7f8fa;
  border-left: 3px solid var(--color-navy-light);
  padding: 1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-top: 0.75rem;
  line-height: 2;
  color: #233452;
}

.policy-contact a {
  color: var(--color-navy-mid);
}

/* 制定日 */
.policy-date {
  margin-top: 2.5rem;
  color: #666;
  font-size: 0.875rem;
}

/* ============================================================
   レスポンシブ: プライバシーポリシーページ
   ============================================================ */
@media (max-width: 768px) {
  .page-title {
    font-size: 1.375rem;
  }

  .policy-layout {
    padding-block: 2rem 3rem;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 1.125rem;
  }
}
