@charset "UTF-8";

/* ==========================================================================
   ABOUT Page (団体情報トップ専用)
   ========================================================================== */

/* --- 1. グリッドレイアウト --- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* PCは2列 */
  gap: 30px;
  margin-top: 40px;
}

/* --- 2. カードコンポーネント (about専用) --- */
.about-card {
  position: relative;
  height: 320px; /* PCでの存在感ある高さ */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 背景画像 */
.about-card__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: 1;
}

/* 紺色のオーバーレイ */
.about-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 45, 84, 0.4); /* 初期状態：少し透過 */
  z-index: 2;
  transition: background 0.4s ease;
}

/* コンテンツエリア */
.about-card__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px;
  width: 100%;
  transition: transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-card__content .sub {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.9;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.about-card__content .title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

/* --- 3. 詳細ボタン（ホバーで出現） --- */
.about-card-btn {
  margin-top: 25px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;

  /* ボタンの装飾 */
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  padding: 10px 20px 10px 25px;
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.85rem;
}

.about-card-btn .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fff;
  color: var(--jilaf); /* common.cssのメイン紺 */
  border-radius: 50%;
  font-size: 0.8rem;
}

/* --- 4. ホバーアクション --- */
.about-card:hover .about-card__bg {
  transform: scale(1.1); /* 画像ズーム */
}

.about-card:hover .about-card__overlay {
  background: rgba(15, 45, 84, 0.85); /* 濃い紺色に */
}

.about-card:hover .about-card__content {
  transform: translateY(-10px);
}

.about-card:hover .about-card-btn {
  opacity: 1;
  transform: translateY(0);
}

/* --- 5. レスポンシブ対応 --- */

/* タブレット・スマホ共通 (1024px以下) */
@media screen and (max-width: 1024px) {
  .about-grid {
    gap: 20px;
  }
  /* スマホ・タブレットは最初からボタンを出しておく */
  .about-card-btn {
    opacity: 1;
    transform: translateY(0);
    width: 180px;
  }
}

/* スマホ (768px以下) */
@media screen and (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr; /* 1列 */
  }
  .about-card {
    height: 250px; /* 高さを少し詰める */
  }
  .about-card__content .title {
    font-size: 1.3rem;
  }
}

/* --- 事業紹介カードのレイアウト調整 --- */
.project-headers-row {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.p-header {
  flex: 1;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
  border-radius: 10px;
}

.p-header:hover {
  transform: translateY(-5px);
}

/* 画像エリア */
.p-header__img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

/* テキストを包む要素（余白を統一） */
.p-header__inner {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-top: 5px solid transparent; /* 色の線用 */
}

.p-header__en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.p-header__jp {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: block;
}

.p-header__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
  flex-grow: 1; /* テキスト量にかかわらずボタンの位置を揃える */
}

/* 各事業のアクセントカラー（ボーダー） */
.p-header--labor {
  border-top-color: var(--color-labor);
}
.p-header--grassroots {
  border-top-color: var(--color-grassroots);
}
.p-header--training {
  border-top-color: var(--color-training);
}
.p-header--pr {
  border-top-color: var(--color-pr);
}

/* スマホ対応 */
@media (max-width: 900px) {
  .project-headers-row {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .p-header__inner {
    padding: 20px 15px;
  }

  .p-header__jp {
    font-size: 1.1rem;
    margin-bottom: 12px;
  }

  .p-header__desc {
    font-size: 0.875rem;
  }
}

/* ==========================================================================
   HISTORY Timeline (沿革)
   ========================================================================== */

.history-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0 20px 20px;
}

/* 縦線（タイムラインの軸） */
.history-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 7px; /* ドットの中心に合わせる */
  width: 2px;
  height: 100%;
  background: #e0e6ed;
}

/* 各年代のブロック */
.history-item {
  position: relative;
  padding-left: 40px; /* 左側の余白（年号エリア） */
  margin-bottom: 40px;
}

/* タイムライン上のドット */
.history-item::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 16px;
  height: 16px;
  background: #fff;
  border: 3px solid var(--jilaf); /* ブランドカラー */
  border-radius: 50%;
  z-index: 1;
}

/* 年号 */
.history-date {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--jilaf);
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 8px;
}

/* 内容 */
.history-body p {
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
  color: #333;
}

/* 強調したいイベント（設立や周年など） */
.history-event {
  font-size: 1.05rem;
  margin-bottom: 5px !important;
  color: #000;
}

/* マイルストーン（周年などの特別な年）のデザイン */
.item-milestone::before {
  background: var(--jilaf); /* ドットを塗りつぶす */
  box-shadow: 0 0 0 4px rgba(22, 88, 160, 0.2); /* ふわっとした影 */
}

.item-milestone .history-date {
  font-size: 1.3rem; /* 年号を大きく */
  color: var(--orange); /* アクセントカラーに変更 */
}

.item-milestone .history-event {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
  padding-bottom: 3px;
}

/* 注釈など */
.history-body small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 0.85rem;
}

/* --- PCレイアウト（左右配置風）の調整 --- */
@media screen and (min-width: 769px) {
  .history-timeline {
    padding-left: 0;
  }

  /* 縦線を少し右にずらす（レイアウトによる）が、
       今回はシンプルに左寄せデザインを採用し、
       年号と本文のバランスを整えます */

  .history-item {
    display: flex; /* 横並びにする */
    align-items: baseline;
    padding-left: 30px;
  }

  .history-item::before {
    left: 0;
    top: 5px;
  }

  /* タイムラインの線を調整 */
  .history-timeline::before {
    left: 7px;
  }

  .history-date {
    flex: 0 0 80px; /* 年号の幅を固定 */
    font-size: 1.2rem;
  }

  .history-body {
    flex: 1;
    padding-left: 20px;
    border-left: 1px solid #eee; /* 薄い区切り線 */
    margin-left: 10px;
  }
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  .history-date {
    font-size: 1.1rem;
  }
  .history-item {
    margin-bottom: 10px;
  }
  .history-body {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-top: 5px;
  }
}

/* ==========================================================================
   TEIKAN Page (定款専用スタイル)
   ========================================================================== */

/* --- 目次 --- */
.teikan-toc {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 4px;
  border: 1px solid #eee;
}

.toc-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--jilaf);
  display: inline-block;
  padding-bottom: 5px;
}

.toc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列表示 */
  gap: 10px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li::before {
  content: none !important; /* アイコンの中身を空にする */
  display: none !important; /* 要素自体を非表示にする */
}

.toc-list li {
  padding-left: 0 !important; /* アイコン用の左余白もリセット */
  background: none !important; /* もし背景画像でアイコンを出している場合用 */
}

.toc-list a {
  color: var(--jilaf);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc-list a:hover {
  text-decoration: underline;
}

/* --- 章ごとの区切り --- */
.teikan-chapter {
  margin-bottom: 60px;
}

.chapter-title {
  font-size: 1.6rem;
  color: #fff !important;
  background: var(--jilaf); /* 章のタイトルは背景色付きで区切りを明確に */
  padding: 10px 20px;
  margin-bottom: 30px;
  border-radius: 4px;
}

/* --- 条文ブロック --- */
.article-block {
  margin-bottom: 30px;
  border-bottom: 1px solid #eee; /* 条ごとの区切り線 */
  padding-bottom: 20px;
}

.article-block:last-child {
  border-bottom: none;
}

.article-head {
  font-size: 1.1rem;
  color: #333;
  background: #f0f4f8; /* 薄いグレー背景で見出しっぽく */
  padding: 8px 15px;
  border-left: 4px solid #b0bec5;
  margin-bottom: 15px;
  display: inline-block; /* 文字幅に合わせる */
  border-radius: 0 4px 4px 0;
}

/* --- 条文リスト (dl/dt/dd) --- */
.article-item {
  display: grid;
  grid-template-columns: 80px 1fr; /* 左:条数(80px) 右:本文 */
  gap: 10px 20px;
  margin: 0;
}

.article-item dt {
  font-weight: 700;
  color: var(--jilaf);
  text-align: right; /* 条数は右寄せ */
  padding-top: 2px; /* ベースライン調整 */
}

.article-item dd {
  margin: 0;
  line-height: 1.8;
  color: #333;
  font-size: 0.95rem;
}

/* 箇条書きリスト (ol) */
.article-list-ol {
  margin: 10px 0 0 20px;
  padding: 0;
  list-style-type: decimal;
}

.article-list-ol li {
  margin-bottom: 5px;
}

/* --- スマホ対応 --- */
@media screen and (max-width: 768px) {
  .chapter-title {
    font-size: 1.3rem;
    padding: 8px 15px;
  }

  .history-body p {
    font-size: 0.875rem;
  }

  .toc-list {
    grid-template-columns: 1fr; /* 目次は1列 */
  }
  .article-block {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee; /* 条ごとの区切り線 */
    padding-bottom: 10px;
  }

  .article-item {
    grid-template-columns: 50px 1fr; /* 条数エリアを少し狭く */
    gap: 10px;
  }

  .article-item dt {
    font-size: 0.9rem;
  }
}
