/* ==================================== */
/* common.css: 共通コンポーネント */
/* ==================================== */

/* --- 赤字・重要事項 --- */
.red-text { color: #e53935; font-weight: bold; }
.important-note {
  color: #e53935;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 5px;
  display: block;
}

/* --- 青字・重要事項 --- */
.blue-text { color: #1e5ae5; font-weight: bold; }


/* --- ハンバーガーメニュー実装 (スクロール改善版) --- */
#nav-input { display: none; }

.nav-open-btn {
  position: fixed;
  top: 15px;
  right: 15px;
  width: 54px;
  height: 54px;
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-open-btn span,
.nav-open-btn span::before,
.nav-open-btn span::after {
  content: '';
  display: block;
  height: 3px;
  width: 24px;
  border-radius: 3px;
  background: #2b2b2b;
  position: absolute;
  transition: all 0.3s;
}
.nav-open-btn span::before { bottom: 8px; }
.nav-open-btn span::after { top: 8px; }

#nav-input:checked ~ .nav-open-btn span { background: transparent; }
#nav-input:checked ~ .nav-open-btn span::before { bottom: 0; transform: rotate(45deg); }
#nav-input:checked ~ .nav-open-btn span::after { top: 0; transform: rotate(-45deg); }

.nav-content {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh; /* 旧ブラウザ用フォールバック */
  height: 100dvh; /* スマホのアドレスバーを考慮した高さ */
  background: var(--card);
  box-shadow: -4px 0 15px rgba(0,0,0,0.1);
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  
  /* スクロール設定 */
  overflow-y: auto; 
  -webkit-overflow-scrolling: touch; 
  padding: 80px 10px 100px; /* 下部に余白を設けて最後のエピソードを押しやすく */
  box-sizing: border-box;
}

#nav-input:checked ~ .nav-content { right: 0; }

.nav-close-layer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 998;
}
#nav-input:checked ~ .nav-close-layer { display: block; }

/* メニュー内のリンク装飾 物語 */
.nav-content .story-link-item {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.nav-content .story-link-item a {
  display: block;
  padding: 15px;
  color: #2b2b2b !important;
  text-decoration: none !important;
  font-size: 0.95em;
  line-height: 1.4;
}
.nav-content .story-link-item.current {
  background: var(--accent);
  border-left: 5px solid #0b8a3f;
}

/* メニュー内のリンク装飾 コラム　*/
.nav-content .column-link-item {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.nav-content .column-link-item a {
  display: block;
  padding: 15px;
  color: #2b2b2b !important;
  text-decoration: none !important;
  font-size: 0.95em;
  line-height: 1.4;
}
.nav-content .column-link-item.current {
  background: var(--accent);
  border-left: 5px solid #0b8a3f;
}

/* メニュー内のリンク装飾 STEP　*/
.nav-content .step-link-item {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.nav-content .step-link-item a {
  display: block;
  padding: 15px;
  color: #2b2b2b !important;
  text-decoration: none !important;
  font-size: 0.95em;
  line-height: 1.4;
}
.nav-content .step-link-item.current {
  background: var(--accent);
  border-left: 5px solid #0b8a3f;
}

/* --- カード & ボタン --- */
.card {
  background: var(--card);
  border-radius: var(--round);
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/*
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--leaf);
  color: #2b2b2b;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.2s;
  min-height: 44px;
}
*/

.btn {
  display: inline-flex;
  flex-direction: column; /* 縦並びにする */
  align-items: center;
  justify-content: center;
  background: var(--leaf);
  color: #2b2b2b;
  padding: 6px 8px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.2s;
  min-height: 44px;
  line-height: 1.4; /* 行間を少し広げて読みやすく */
  text-align: center; /* 中央揃え */
  text-decoration: none; /* 下線を消す */
  width: fit-content;  /* 念のため */
  min-height: unset;   /* 高さ固定を解除 */
}

/* サブテキスト（タイトル部分）を少し小さくする場合 */
.btn-sub {
  font-size: 0.85em;
  font-weight: normal;
  margin-top: 4px;
}

.btn:hover { background: #a9d4b8; box-shadow: 0 4px 10px rgba(0, 150, 0, 0.15); }


/* ボタンを左寄せにするためのコンテナ */
.btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

/* その中のボタンが中央寄せを継承している場合の打ち消し */
.btn-wrap .btn {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* --- 演出パーツ --- */
.scene {
  background: #fcfcfc;
  padding: 20px;
  border-left: 5px solid var(--accent);
  margin: 24px 0;
  font-style: italic;
  color: var(--muted);
}

.note {
  margin: 25px 0;
  padding: 20px;
  border: 1px solid #c8e6c9;
  border-radius: var(--round);
  background: #f7fff7;
}

.learning {
  margin: 25px 0;
  padding: 20px;
  border: 1px solid #f5b5c8;
  border-radius: var(--round);
  background: #fff5f8;
}

.email {
  background-color: #fcfcfc;
  border: 1px solid #e0e0e0;
  border-left: 5px solid var(--link-blue);
  padding: 15px;
  margin: 20px 0;
}
.email.mioa-sensei { border-left-color: #C71585; background-color: #fffafa; }

/* --- フッター --- */
footer { text-align: center; padding: 20px 0; border-top: 1px solid #ddd; color: #555; margin-top: 40px; }
footer .small { margin-top: 10px; line-height: 2.0; }
footer .small a {
  color: #0056b3 !important; 
  text-decoration: underline !important;
  margin: 0 10px !important;
  display: inline-block !important;
}

/* --- 投資リスク注釈 --- */
.risk-footer { border-top: 3px solid var(--accent); padding-top: 20px; margin-top: 40px; font-size: 0.9em; }

/* --- レスポンシブ微調整 --- */
@media (max-width: 500px) {
  footer .small a { display: block; padding: 12px 0; border-bottom: 1px dashed #eee; }
  footer .small a:last-child { border-bottom: none; }
  .card { padding: 18px; }
  .nav-content { width: 90%; } /* スマホではメニューを少し広めに */
}


/* --- サイドナビ：見出しをリストアイテムと完全に統一 --- */

.nav-content .nav-list-title {
  /* ブラウザのh2デフォルト余白をリセット */
  margin: -80px -10px 15px -10px; 
  font-weight: normal; 
}

/* step1〜6のクラスと同じルールを適用 */
.nav-content .nav-list-title {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.nav-content .nav-list-title a {
  display: block;
  padding: 15px; /* step-link-item a と同じ */
  color: #2b2b2b !important;
  text-decoration: none !important;
  font-size: 0.95em; /* step-link-item a と同じサイズに合わせる */
  line-height: 1.4;
}

/* アクティブ（Current）時のスタイルを統一 */
.nav-content .nav-list-title.current {
  background: var(--accent) !important;
  border-left: 5px solid #0b8a3f;
}


/* --- お問い合わせフォーム（Googleフォーム）の上下余白調整 --- */

/* フォームが入っているカード自体の上下の隙間を広げる */
.card:has(.google-form-iframe) {
  margin-top: 40px !important;
  margin-bottom: 50px !important;
}

/* フォームの上下に内側の余白を作り、高さが切れないようにする */
.google-form-iframe {
  display: block;
  margin: 20px 0; /* フォームのすぐ外側の上下余白 */
  min-height: 800px; /* PCでの高さ確保 */
}

/* iframeを囲む枠の高さ設定 */
.iframe-wrap {
  min-height: 800px;
}

/* スマホで見るときは入力欄が縦に伸びるため高さを自動調整 */
@media (max-width: 600px) {
  .google-form-iframe,
  .iframe-wrap {
    min-height: 1000px; 
  }
}

/* JavaScriptで要素を消すための設定 */
.hidden {
  display: none !important;
}

/* インラインがどうたらこうたら */
.mt-6 { margin-top: 6px; } 
.mt-8 { margin-top: 8px; } 
.mt-12 { margin-top: 12px; } 
.mt-40 { margin-top: 40px; } 
.text-muted { color: var(--muted); }


.mb-6 { margin-bottom: 6px; } 
.mb-8 { margin-bottom: 8px; } 
.mb-12 { margin-bottom: 12px; } 

.p-14 { padding: 14px; } 
.p-18 { padding: 18px; } 
.p-10-14 { padding: 10px 14px; }

.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-14 { font-size: 14px; }
.fs-17 { font-size: 17px; }
.fs-18 { font-size: 18px; }

.text-muted { color: var(--muted); }
.text-inherit { color: inherit; }

.flex { display: flex; }
.justify-between { justify-content: space-between; }
.gap-12 { gap: 12px; }


.border-accent-left {
  border-left: 6px solid var(--accent);
}

.hr-12 {
  border: none;
  height: 12px;
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* コラムでサイドバーの黒中点を消す */
.column-links-container {
  list-style: none; 
  padding-left: 0; 
}

/* STEPでサイドバーの黒中点を消す */
.step-links-container {
  list-style: none; 
  padding-left: 0; 
}

/* 物語でサイドバーの黒中点を消す */
.story-links-container {
  list-style: none; 
  padding-left: 0; 
}

/* policyとdisclaimerの日付 */
.policy_disclaimer-date { 
  margin-top: 24px; 
  font-size: 0.9em; 
  color: var(--muted); 
}

/* 画像のレスポンシブデザイン */
.story-image img,
img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* 表のレスポンシブデザイン */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 1rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
  text-align: left;
}

.compare-table th {
  background: #f5f5f5;
  font-weight: bold;
}

.compare-table tr:nth-child(even) {
  background: #fafafa;
}

/* スマホ対応（横スクロール） */
.compare-table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}


/* ボタンを囲むコンテナ用の設定 ヘッダー向け */
.nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* header内なら左寄せ、footer内なら中央寄せにするために justify-content は指定せず、個別に設定するのがコツです */
}



/* ボックス自体の設定 */
.note-box {
  background-color: #f9f9f9 !important; /* 強制適用 */
  border: 1px solid #ddd !important;
  padding: 10px !important;
  margin-bottom: 20px !important;
  display: block; /* 横幅をいっぱい（100%）に広げる */
  width: auto;
}

/* ボックスの中のリンク設定 */
.note-box a:not(.btn) {
  text-decoration: none !important; /* 下線を消す */
  color: #333 !important;           /* 文字色を黒っぽく */
  display: block;                  /* 枠内どこでも押せるようにする */
  width: 100%;
}

/* ◀前編を読む： の部分 */
.note-box strong {
  font-weight: bold;
}


/* 注釈・補足用テキストの設定 */
.note-text {
  text-align: center;
  color: #666;
  font-size: 0.9em;    /* 本文より少しだけ小さくすると「注釈感」が出て綺麗です */
  margin-top: 10px;
  margin-bottom: 10px;
}


/* AGM図解の外枠 */
.agm-figure {
    text-align: center;
    margin: 2em auto;
}

/* 画像のレスポンシブ対応 */
.agm-figure-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* キャプションのスタイル */
.agm-figure-caption {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5em;
}


/* 英語版リンク（トップページ用） */
.lang-switch {
  margin: 20px 0;
  text-align: right; /* 右寄せが自然。左寄せにしたい場合は left に変更 */
}

.lang-switch .btn.small {
  font-size: 0.85rem;
  padding: 6px 12px;
  opacity: 0.9;
}

.lang-switch .btn.small:hover {
  opacity: 1;
}

.card h3 {
  margin-top: 1.6em;
}


.agm-tags .tag {
  display: inline-block;
  background: #F5F5E9;
  color: #4CAF50;
  border: 1px solid #C8B89A;
  padding: 4px 10px;
  margin: 4px;
  border-radius: 20px;
  font-size: 0.9rem;
}





/* 横スクロール用のコンテナ（スマホ対策） */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
}

/* テーブル全体の共通スタイル */
.investment-table {
  width: 100%;
  border-collapse: collapse;
  line-height: 1.6;
}

/* 見出し（th）とセル（td）の共通の余白と線 */
.investment-table th,
.investment-table td {
  padding: 10px;
  border: 1px solid #ddd;
}

/* 一番上の見出し行（thead）の背景色と中央寄せ */
.investment-table thead tr {
  background-color: #f2f2f2;
}
.investment-table th {
  text-align: center; /* 見出しはすべてセンター寄せ */
}

/* 数値データ用の右寄せ（ライト）クラス */
.investment-table .num-right {
  text-align: right;
}

/* 日付とリスト用の左寄せ（レフト）クラス */
.investment-table .text-left {
  text-align: left;
}

/* 物語リストのスタイルリセット */
.investment-table .story-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}





/* 表全体をスクロール可能にする */
.table-scroll {
  overflow-y: auto;
  max-height: 500px; /* モバイルでは自動的に縮む */
  border: 1px solid #ddd;
}

/* ヘッダー固定 */
.table-scroll thead th {
  position: sticky;
  top: 0;
  background-color: #f2f2f2;
  z-index: 10;
}

/* モバイル最適化 */
@media (max-width: 600px) {
  .table-scroll {
    max-height: 350px; /* モバイルでは少し低めに */
  }

  table th, table td {
    padding: 6px; /* モバイルで読みやすく */
    font-size: 14px;
  }

  ul {
    padding-left: 10px;
  }
}




/* グラフを包む外側の枠（div）のスタイル */
.performance-chart-container {
    text-align: center;
    margin: 20px 0;
}

/* グラフ画像（img）自体のスタイル */
.performance-chart-img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}





/* aboutus-enのSDG4の画像のCSS*/

.sdg4-about {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
}

.sdg4-about h3 {
  margin-bottom: 12px;
}

.sdg4-about p {
  font-size: 1rem;
  margin-bottom: 24px;
}

.sdgs-logo {
  width: 220px; /* 推奨サイズ */
  height: auto;
}


