/* =====================================================================
   /eposter.html（eポスター等公開プラットフォーム）専用
   RA協議会で配布したA4チラシ（posaco/21/flyer_ura_A4_20260914）と同じ紙面の言語でつくる。
   - ユサコのトンマナ：支配色 BLUE #064797／アクセント CYAN #58D0E3／四角は色相環から等間隔の5色
   - 紙面の言語＝45°（ユサコのEマーク）。45°に倒した正方形、45°で右下の角を落とした枠線の箱、
     45°の折れ線3本の矢印
   - ベタ塗りを使わない。地は白のまま、領域は枠線で示す
   本文から <link> で読み込む（/lp/autumn-2026.html と同じ方式）。クラスはすべて .epu の下に置く。
   ページ：MT.net ウェブページ ID 3351528（page.mtml で LP レイアウト）。
   ===================================================================== */

.epu {
  --epu-blue: #064797;
  --epu-cyan: #58D0E3;
  --epu-sumi: #231815;
  --epu-text: #2D3748;
  --epu-sub: #5A6577;
  --epu-rule: #CBD5E0;
  --epu-max: 1120px;
  color: var(--epu-text);
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}
.epu *, .epu *::before, .epu *::after { box-sizing: border-box; }
.epu p { margin: 0; }
.epu a { color: var(--epu-blue); }

.epu-wrap {
  max-width: var(--epu-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

/* ---------------------------------------------------------------- 45°の正方形（単位の印・項目の印） */
.epu-dia {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--epu-cyan);
  transform: rotate(45deg);
  flex: none;
}
.epu-dia--sm { width: 9px; height: 9px; border-width: 1.5px; }

/* ---------------------------------------------------------------- 45°で右下の角を落とした枠線の箱
   外側を線の色で切り抜き、内側を白で同じ形に切り抜いて、枠線だけを残す */
.epu-cut {
  --cut: 44px;
  --bw: 2px;
  --line: var(--epu-blue);
  background: var(--line);
  padding: var(--bw);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.epu-cut > .epu-cut__in {
  background: #fff;
  height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut) + var(--bw) * 0.59), calc(100% - var(--cut) + var(--bw) * 0.59) 100%, 0 100%);
}
.epu-cut--rule { --line: var(--epu-rule); --bw: 1.5px; --cut: 32px; }
.epu-cut--cyan { --line: var(--epu-cyan); --cut: 28px; }

/* ---------------------------------------------------------------- 見出し */
.epu-sec { padding: 72px 0 0; }
.epu-sec:last-child { padding-bottom: 96px; }
.epu-h2 {
  color: var(--epu-blue);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 8px;
}
.epu-h2-sub { color: var(--epu-sub); font-size: 0.95rem; margin-bottom: 32px !important; }

/* ---------------------------------------------------------------- ボタン（45°で角を落とす） */
.epu-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--epu-blue);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.4;
  padding: 16px 40px 16px 32px;
  text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  transition: background 0.2s;
}
.epu-btn:hover, .epu-btn:focus-visible { background: #04336d; color: #fff; }
.epu-btn .material-symbols-outlined { font-size: 1.3em; }
.epu-chev { display: inline-flex; gap: 2px; }
.epu-chev svg { width: 26px; height: 16px; }

/* ---------------------------------------------------------------- 天（ファーストビュー）
   右上＝発表物の網（中の空いた菱形を閉じた環で結ぶ）、その下＝研究者の後ろ姿（写真）。
   チラシと同じく、網は上端で切れ、写真は右端へ抜ける */
.epu-hero {
  position: relative;
  padding: 184px 0 72px;           /* 固定ナビ（PCで2段・132px）の下から始める */
  min-height: 720px;
  overflow: hidden;
}
.epu-hero__net {
  position: absolute;
  top: 140px;
  right: max(2vw, calc((100vw - var(--epu-max)) / 2 - 40px));
  width: 340px;
  height: auto;
  pointer-events: none;
}
.epu-hero__photo {
  position: absolute;
  right: 0;
  top: 372px;
  width: min(48vw, 680px);
  pointer-events: none;
}
.epu-hero__photo img { display: block; width: 100%; height: auto; }
.epu-hero__text { position: relative; max-width: 540px; }
.epu-logo { display: block; width: 168px; height: auto; margin-bottom: 40px; }
.epu-sub { color: var(--epu-blue); font-size: 1.3rem; letter-spacing: 0.06em; margin-bottom: 20px !important; }
.epu-h1 {
  color: var(--epu-sumi);
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
}
.epu-lead { font-size: 1.05rem; line-height: 2; margin-bottom: 40px !important; max-width: 34em; }
.epu-hero__note { color: var(--epu-sub); font-size: 0.9rem; margin-top: 16px !important; }

/* ---------------------------------------------------------------- 4つの単位 */
.epu-units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px;
}
.epu-unit .epu-dia { margin: 0 0 18px 3px; }
.epu-unit h3 { color: var(--epu-blue); font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; line-height: 1.5; }
.epu-unit__scene { color: var(--epu-sub); font-size: 0.82rem; margin-bottom: 10px !important; }
.epu-unit p:last-child { font-size: 0.95rem; }

/* ---------------------------------------------------------------- 実証パイロット */
.epu-pilot .epu-cut__in { padding: 28px 56px 32px 36px; }
.epu-pilot h3 { color: var(--epu-blue); font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.epu-pilot p { color: var(--epu-sub); font-size: 0.95rem; }

/* ---------------------------------------------------------------- しくみ（つながる図） */
.epu-flow .epu-cut__in { padding: 32px 40px; }
.epu-flow svg { display: block; width: 100%; height: auto; }
.epu-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  margin-top: 24px;
}
.epu-step h3 { color: var(--epu-blue); font-size: 1.2rem; font-weight: 700; margin: 0 0 6px; line-height: 1.5; }
.epu-step p { font-size: 0.95rem; }

/* ---------------------------------------------------------------- 公開のしかた */
.epu-types { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.epu-type .epu-cut__in { padding: 28px 48px 32px 32px; }
.epu-type h3 { display: flex; align-items: center; gap: 14px; color: var(--epu-blue); font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.epu-type p { font-size: 0.95rem; }
.epu-note { color: var(--epu-sub); font-size: 0.9rem; margin-top: 20px !important; }

/* ---------------------------------------------------------------- カスタマイズ */
.epu-custom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--epu-rule);
}
.epu-custom > div {
  display: flex;
  gap: 14px;
  padding: 20px 16px 20px 4px;
  border-bottom: 1px solid var(--epu-rule);
}
.epu-custom .epu-dia { margin-top: 8px; }
.epu-custom h3 { font-size: 1rem; font-weight: 700; color: var(--epu-text); margin: 0 0 2px; line-height: 1.6; }
.epu-custom p { color: var(--epu-sub); font-size: 0.88rem; line-height: 1.7; }

/* ---------------------------------------------------------------- ご相談（地＝右下に四角の場） */
.epu-contact { position: relative; overflow: hidden; }
.epu-contact__corner {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 380px;
  height: auto;
  pointer-events: none;
}
.epu-contact .epu-cut__in { padding: 40px 48px 48px; }
.epu-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin: 8px 0 32px;
  padding: 0;
  list-style: none;
}
.epu-fields li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--epu-rule); font-size: 0.95rem; }
.epu-fields li .epu-dia { position: relative; top: -2px; }
.epu-fields li strong { flex: none; width: 8.5em; color: var(--epu-text); }
.epu-fields li span:last-child { color: var(--epu-sub); }
.epu-contact__call { color: var(--epu-blue); font-weight: 700; font-size: 1.05rem; margin-top: 28px !important; }
.epu-contact__org { color: var(--epu-sub); font-size: 0.88rem; margin-top: 8px !important; }

/* ---------------------------------------------------------------- 狭い画面 */
@media (max-width: 991.98px) {
  /* 文字を先に、写真をその下に。網は右上に残す */
  .epu-hero { display: flex; flex-direction: column; padding: 128px 0 40px; min-height: 0; }
  .epu-hero > .epu-wrap { order: 1; width: 100%; }
  .epu-hero__net { width: 220px; top: 96px; right: -32px; }
  .epu-hero__photo { order: 2; position: relative; top: auto; width: 100%; margin-top: 40px; }
  .epu-hero__text { max-width: none; }
  .epu-units { grid-template-columns: 1fr 1fr; }
  .epu-custom { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767.98px) {
  .epu-wrap { padding: 0 16px; }
  .epu-sec { padding-top: 56px; }
  .epu-hero { padding-top: 112px; }
  .epu-hero__net { width: 140px; top: 80px; right: -40px; }
  .epu-hero__photo { margin-top: 32px; }
  .epu-logo { width: 128px; margin-bottom: 28px; }
  .epu-sub { font-size: 1.05rem; }
  .epu-h1 { margin-bottom: 24px; }
  .epu-lead { font-size: 1rem; }
  .epu-units { grid-template-columns: 1fr; gap: 28px; }
  .epu-steps { grid-template-columns: 1fr; }
  .epu-types { grid-template-columns: 1fr; gap: 20px; }
  .epu-custom { grid-template-columns: 1fr; }
  .epu-fields { grid-template-columns: 1fr; }
  .epu-fields li strong { width: 7.5em; }
  .epu-cut { --cut: 28px; }
  .epu-pilot .epu-cut__in, .epu-type .epu-cut__in, .epu-contact .epu-cut__in { padding: 24px 24px 32px; }
  .epu-flow .epu-cut__in { padding: 20px 12px; }
  .epu-btn { width: 100%; justify-content: center; }
  .epu-contact__corner { width: 220px; }
}
