/*
 * 盛岡大通校ページ用：閉校案内・教室一覧
 * 水色を基調に、余白を広めに取ったすっきりしたデザイン
 * .yes-morioka-redirect 配下にスタイルを限定しています。
 */
.yes-morioka-redirect {
  --yes-blue: #42a9d6;
  --yes-blue-dark: #187da9;
  --yes-blue-pale: #eef9fd;
  --yes-blue-line: #ccebf6;
  --yes-text: #344b56;
  --yes-muted: #657b85;
  box-sizing: border-box;
  width: 100%;
  margin: 30px auto;
  color: var(--yes-text);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
}
.yes-morioka-redirect *,
.yes-morioka-redirect *::before,
.yes-morioka-redirect *::after { box-sizing: border-box; }

.yes-morioka-redirect p { margin: 0 0 12px; }

.yes-morioka-redirect__notice {
  padding: 30px;
  background: linear-gradient(135deg, #f1fbff 0%, #e6f7fd 100%);
  border: 1px solid var(--yes-blue-line);
  border-radius: 12px;
}
.yes-morioka-redirect__eyebrow {
  margin: 0 0 7px !important;
  color: var(--yes-blue-dark);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.yes-morioka-redirect h2 {
  margin: 0 0 16px;
  color: #244b5c;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.45;
  font-weight: 700;
}
.yes-morioka-redirect h3 {
  margin: 0 0 5px;
  color: #244b5c;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.5;
  text-align: center;
}
.yes-morioka-redirect h4 {
  margin: 0;
  color: #2d4e5c;
  font-size: 1.12rem;
  line-height: 1.5;
}
.yes-morioka-redirect__primary-link,
.yes-morioka-redirect__trial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--yes-blue);
  border-radius: 6px;
  background: var(--yes-blue);
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease;
}
.yes-morioka-redirect__primary-link { margin-top: 5px; }
.yes-morioka-redirect__primary-link:hover,
.yes-morioka-redirect__trial-link:hover {
  background: var(--yes-blue-dark);
  border-color: var(--yes-blue-dark);
  color: #fff !important;
}
.yes-morioka-redirect__schools { margin-top: 32px; }
.yes-morioka-redirect__lead {
  margin: 0 0 22px !important;
  color: var(--yes-muted);
  text-align: center;
}
.yes-morioka-redirect__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.yes-morioka-redirect__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 23px 19px;
  border: 1px solid #dcecf2;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(42, 111, 139, .045);
}
.yes-morioka-redirect__card-head { margin-bottom: 10px; }
.yes-morioka-redirect__tag {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--yes-blue-pale);
  color: var(--yes-blue-dark);
  font-size: .82rem;
  font-weight: 700;
}
.yes-morioka-redirect__card p {
  flex: 1;
  margin-bottom: 15px;
  color: #536a75;
  font-size: .96rem;
}
.yes-morioka-redirect__card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7f1f5;
  color: var(--yes-blue-dark) !important;
  font-weight: 700;
  text-decoration: none !important;
}
.yes-morioka-redirect__card a:hover { text-decoration: underline !important; }
.yes-morioka-redirect__footer {
  margin-top: 22px;
  padding: 24px 18px;
  border: 1px solid #e0eff5;
  border-radius: 9px;
  background: #f7fcfe;
  text-align: center;
}
.yes-morioka-redirect__footer p {
  margin-bottom: 14px;
  color: #3f5965;
  font-weight: 700;
}
.yes-morioka-redirect a:focus-visible {
  outline: 3px solid #f1bd55;
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .yes-morioka-redirect { margin: 22px auto; font-size: 16px; }
  .yes-morioka-redirect__notice { padding: 22px 18px; }
  .yes-morioka-redirect__grid { grid-template-columns: 1fr; gap: 12px; }
  .yes-morioka-redirect__card { padding: 18px; }
  .yes-morioka-redirect__primary-link,
  .yes-morioka-redirect__trial-link { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .yes-morioka-redirect__primary-link,
  .yes-morioka-redirect__trial-link { transition: none; }
}
