/* ===== フォント ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400&display=swap');

/* ===== リセット・ベース ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* 通常の img のみ対象（SNSウィジェット内は除外） */
img:not([class*="fb"]):not([style]) { max-width: 100%; height: auto; }

/* Facebook・X ウィジェット内の img はリセットで上書きされないよう保護 */
#fb-root img,
.fb-page img,
iframe img {
  max-width: none;
  height: auto;
}

/* ===== h2 見出し ===== */
h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: #888;
  letter-spacing: 0.05em;
  margin: 1em 0 0.4em;
  text-align: left;
}

#container {
  width: 90%;
  margin: 0 auto;
  text-align: center;
}

#container h2 {
  text-align: left;
}

/* ===== スライダー ===== */
.slider-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.slider {
  position: relative;
  width: 100%;
}

.slide {
  display: none;
  width: 100%;
}
.slide.active { display: block; }

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slider-dots {
  text-align: center;
  padding: 8px 0;
  background: rgba(0,0,0,0.5);
}
.slider-dots button {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #888;
  margin: 0 4px;
  cursor: pointer;
  padding: 0;
}
.slider-dots button.active { background: #fff; }

/* ===== ロゴ行 ===== */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  margin-top: 20px;
}
.h2o-cell { text-align: center; }

/* ===== セクション共通 ===== */
.section-block {
  margin: 0 0 30px;
  text-align: left;
}
.section-block h2 {
  text-align: center;
}

/* ===== 準備中ボックス ===== */
.tbc-box {
  background: #fff8dc;
  border: 2px dashed #cca;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
  font-size: 1.05rem;
}

/* ===== NEWS ===== */
.toppagebox { margin: 10px 0; }
.toppagenews {
  background: #eee;
  border-left: 4px solid #253692;
  padding: 10px 14px;
  font-size: 1rem;
  text-align: left;
}

/* ===== クイックナビ ===== */
.quicknav {
  background: #ff9;
  padding: 8px 12px;
  margin: 20px 0;
  font-size: 0.95rem;
  text-align: center;
  line-height: 2;
}

/* ===== 規定ドキュメント ===== */
.docs-block {
  background: #ccc;
  padding: 20px;
  text-align: left;
  margin: 0 0 30px;
}
.docs-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  overflow: hidden;
}
.doc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  min-width: 200px;
  flex: 1;
  font-size: 1.1rem;
}
.doc-list li {
  border-bottom: 1px dotted #999;
  padding: 4px 0;
}
.note {
  font-size: 0.8em;
  color: #555;
}

#henko {
  background: #ddd;
  padding: 14px 18px;
  margin-top: 16px;
  font-size: 0.95rem;
  text-align: left;
}
#henko h4 { margin: 10px 0 4px; }
#henko h5 { margin: 8px 0 2px; }
#henko ul { margin: 0 0 8px; padding-left: 1.5em; }
#henko li { margin-bottom: 2px; }

/* ===== エントリー ===== */
.entry-box {
  padding: 10px 0;
}
.entry-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 12px;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.15s;
  font-weight: bold;
}
.entry-btn:hover {
  opacity: 0.85;
  transform: translateX(4px);
}
.entry-btn__label {
  font-size: 0.78rem;
  font-weight: bold;
  padding: 4px 12px;
  white-space: nowrap;
  border-radius: 3px;
}
.entry-btn__text {
  font-size: 1.15rem;
  flex: 1;
}
.entry-btn__arrow {
  font-size: 1.4rem;
  margin-left: auto;
}

/* WEM（鉛/FC）：濃紺ベース */
.entry-btn--wem {
  background: #253692;
  color: #fff;
  border: 2px solid #253692;
}
.entry-btn--wem .entry-btn__label {
  background: #ffda00;
  color: #253692;
}

/* WEM-LIGHT：ライトのイメージカラー #e84192 */
.entry-btn--light {
  background: #e84192;
  color: #fff;
  border: 2px solid #c0306e;
}
.entry-btn--light .entry-btn__label {
  background: #fff;
  color: #e84192;
}

.entry-note {
  font-size: 0.85rem;
  color: #555;
  margin-top: 8px;
  padding: 0 4px;
}

/* ===== ご後援 ===== */
.supporters-box {
  border: 1px solid #999;
  background: #eee;
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
  line-height: 2;
}
.supporters-title {
  font-size: 1.3rem;
  color: #6d6d6d;
}

/* ===== お問い合わせ ===== */
#indexbox {
  text-align: left;
  width: 90%;
  margin: 0 auto 20px;
  font-size: 0.95rem;
  line-height: 1.9;
}
#indexbox h3 { text-align: left; }

/* ===== SNS エリア ===== */
.sns-wrap {
  background: #ffda00;
  border-top: 5px solid #253692;
  padding: 16px;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
#sidebar, #mainContent {
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}
#sidebar h2, #mainContent h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Xタイムライン：幅を明示して表示を安定させる */
#sidebar .twitter-timeline {
  width: 100% !important;
  min-width: 280px;
}

/* Facebook：img の max-width リセットが内部に影響しないよう保護 */
.fb-page span,
.fb-page iframe,
.fb-page img {
  max-width: none !important;
  border: none !important;
  outline: none !important;
}

/* ===== レスポンシブ（600px以下） ===== */
@media (max-width: 600px) {
  .logo-row { gap: 10px; }

  .quicknav {
    font-size: 0.9rem;
    line-height: 2.2;
  }

  .docs-inner { flex-direction: column; }
  .doc-list { font-size: 1rem; }

  .supporters-box { font-size: 0.88rem; }

  #indexbox { width: 100%; }

  .sns-wrap { flex-direction: column; }
  #sidebar, #mainContent { max-width: 100%; }
}
