/* CSS Document */

article h1{
background: none;
box-shadow: none;
color: #005596;
text-shadow: none;
font-size: 250%;
font-weight: 700;
text-align: center;
}


section h2{
background: none;
box-shadow: none;
color: #333;
text-shadow: none;
margin-top: 3em;
font-size: 225%;
font-weight: 700;
text-align: center;
}

section .intro h2 br{
display: none;
}

section p,
section ul,
section p:first-child{
font-weight: 500;
}

section p,
section ul{
font-size: 150%;
}

section .intro p{
text-align: center;
}

section .intro > p:first-child{
background-color: #00B0F0;
color: #fff;
padding: 1.5em;
}

section .intro > p:first-child span{
font-size: 1.125em;
}

section .notice{
margin-top: 3rem;
color: #f00;
font-weight: bold;
}

.exam-flow-wrap {
  --arrow-gap: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin:3rem auto 0 auto;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.exam-flow {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--arrow-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================================
   上段：旧受験制度（モダンなイエロー・アンバー系で強調）
   ========================================= */
.exam-flow.is-old {
  --box-bg: #fef9c3;         /* 柔らかく明るいクリームイエロー */
  --box-border: #facc15;     /* 輪郭を出す鮮やかなイエロー */
  --box-text: #422006;       /* 黒より馴染む深いダークブラウン */
  --head-bg: linear-gradient(135deg, #f59e0b 0%, #eab308 100%); /* 視線を集めるゴールド系グラデ */
  --head-text: #ffffff;
  --arrow-color: #eab308;
  --note-bg: #ffffff;
  --note-border: #f59e0b;
  --note-text: #422006;
  --accent-text: #dc2626;    /* 「同年に受験」はパッと目に入るレッド */
}

/* =========================================
   下段：新受験制度（落ち着いたブルーグレー系）
   ========================================= */
.exam-flow.is-new {
  --box-bg: #f1f5f9;         /* 淡いブルーグレー */
  --box-border: #cbd5e1;     /* 控えめなスレート枠線 */
  --box-text: #334155;       /* 落ち着いたダークスレート */
  --head-bg: #526881;        /* 彩度を抑えたブルーグレー */
  --head-text: #ffffff;
  --arrow-color: #7c90a8;
  --note-bg: #ffffff;
  --note-border: #94a3b8;
  --note-text: #334155;
  --accent-text: #dc2626;    /* 「実務経験が必要」の警告レッド */
}

/* 各liの共通設定 */
.exam-flow li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border-radius: 10px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* メインボックス（2・4番目：検定） */
.exam-flow li.flow-box {
  flex: 1;
  min-height: 104px;
  padding: 16px;
  background: var(--box-bg);
  color: var(--box-text);
  border: 1.5px solid var(--box-border);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
}

/* 1番目の「制度名」ボックス */
.exam-flow li.flow-box:first-child {
  flex: 1.25;
  background: var(--head-bg);
  color: var(--head-text);
  border: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* 旧制度の1番目だけ少し影を強くして存在感をアップ */
.exam-flow.is-old li.flow-box:first-child {
  box-shadow: 0 6px 16px rgba(234, 179, 8, 0.28);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); /* 白文字の視認性を確保 */
}

/* 3番目の条件ボックス */
.exam-flow li.flow-note {
  flex: 1.1;
  min-height: 104px;
  padding: 14px 12px;
  background-color: var(--note-bg);
  color: var(--note-text);
  border: 1.5px dashed var(--note-border);
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 700;
  box-shadow: none;
}

.exam-flow .text-red {
  color: var(--accent-text);
  font-size: 1.08em;
}

/* =========================================
   矢印の描画（▶）
   ========================================= */
.exam-flow li:not(:last-child)::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: calc(100% + (var(--arrow-gap) / 2));
  transform: translate(-50%, -50%);
  color: var(--arrow-color);
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 750px){

article h1{
font-size: 5vw !important;
text-align: center;
}

article h1 br{
display: block;
}

.matome + p{
font-size: 4.5vw;
}

article h2{
padding-right: 0;
padding-left: 0;
font-size: 4.85vw !important;
}
.exam-flow-wrap {
    --arrow-gap: 32px;
    gap: 36px;
  }

  .exam-flow {
    flex-direction: column;
  }

  .exam-flow li,
  .exam-flow li.flow-box:first-child,
  .exam-flow li.flow-note {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 16px 14px;
  }

  .exam-flow li.flow-box {
    font-size: 18px;
  }

  .exam-flow li.flow-note {
    font-size: 14px;
  }

  .exam-flow li:not(:last-child)::after {
    top: calc(100% + (var(--arrow-gap) / 2));
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-size: 16px;
  }
}

