/* 公立高校入試日程（38・38b）。Worker が作るページ（worker/nyushi/page.ts）の見た目。design/sp/Nyushi*.html・design/pc/PcNyushi*.html の値のとおり */
/* スマホを先に書き、1024px 以上を PC にする（アプリと同じ切り替え） */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: #fefbf3;
  color: #3e2a1e;
  font-family: "Zen Maru Gothic", sans-serif;
}
a {
  color: #5c3d2a;
  text-decoration: none;
}
a:hover {
  color: #3e2a1e;
}
img {
  display: block;
}
h1,
h2,
p,
dl,
dd,
ul,
ol {
  margin: 0;
}
.ny-icon {
  flex: none;
}
.only-pc {
  display: none;
}

.ny-page {
  min-height: 100vh;
  background: #fefbf3;
}

/* ---- ヘッダー ---- */
.ny-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 10px 16px;
  background: #fefbf3;
  border-bottom: 1px solid #eadfcf;
}
.ny-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ny-logo-icon {
  width: 34px;
  height: 34px;
}
.ny-logo-type {
  height: 24px;
  width: 64px;
}
.ny-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ny-login,
.ny-signup {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.ny-login {
  padding: 0 12px;
}
.ny-signup {
  padding: 0 16px;
  border-radius: 999px;
  background: #5c3d2a;
  color: #fff7ec;
}
.ny-signup:hover {
  color: #fff7ec;
}

/* ---- 本文 ---- */
.ny-main {
  padding: 16px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ny-intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ny-crumbs {
  font-size: 13px;
  color: #6b5444;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ny-crumbs a {
  color: #6b5444;
}
.ny-intro h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.45;
}
.ny-h1-year {
  font-size: 17px;
}
.ny-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #5c4636;
}
.ny-notice {
  font-size: 13px;
  line-height: 1.8;
  color: #6b5444;
}
section h2 {
  font-size: 18px;
  font-weight: 700;
}

/* 地方のチップ（全国） */
.ny-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ny-chip,
.ny-pref-chip {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dccdb8;
  background: #ffffff;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}
.ny-pref-chip {
  color: #5c3d2a;
}
.ny-pref-chip.is-current {
  background: #5c3d2a;
  color: #fff7ec;
}

/* ---- 38 全国：地方ごと ---- */
.ny-region {
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-margin-top: 16px;
}
.ny-region h2 {
  font-size: 17px;
}
.ny-list {
  padding: 0;
  list-style: none;
  border-radius: 16px;
  border: 1px solid #eadfcf;
  background: #ffffff;
  overflow: hidden;
}
.ny-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 14px;
  color: #3e2a1e;
}
.ny-list li + li .ny-row {
  border-top: 1px solid #f1e8db;
}
.ny-row-name {
  width: 72px;
  flex: none;
  font-size: 15px;
  font-weight: 700;
}
.ny-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ny-row-main {
  font-size: 14px;
  font-weight: 700;
}
.ny-row-sub {
  font-size: 12px;
  color: #6b5444;
}
.ny-row-arrow {
  color: #6b5444;
}
.ny-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #eadfcf;
  background: #ffffff;
}
.ny-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.6;
}
.ny-table thead tr {
  background: #f3e6d3;
  text-align: left;
}
.ny-table thead th {
  padding: 10px 12px;
}
.ny-table .ny-col-pref {
  width: 120px;
}
.ny-table .ny-col-announce {
  width: 160px;
}
.ny-table tbody tr {
  border-top: 1px solid #f1e8db;
}
.ny-table tbody th {
  padding: 12px;
  text-align: left;
  font-weight: 700;
}
.ny-table td {
  padding: 12px;
}
.ny-table .ny-table-early {
  font-size: 13px;
  color: #5c4636;
}

/* ---- 38b 県 ---- */
.ny-cols,
.ny-col-main,
.ny-col-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
/* スマホ：左右の段をほどいて、一般・推薦など・注意・案内・相談・ながれ・ほかの県 の順に */
.ny-col-main,
.ny-col-side,
.ny-order-last {
  display: contents;
}
.ny-order-last > * {
  order: 1;
}

.ny-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #eadfcf;
}
.ny-band {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fbe6d8;
  color: #8a3f17;
  font-size: 15px;
  font-weight: 700;
}
.ny-ended {
  font-size: 15px;
  line-height: 1.8;
}
.ny-dl {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}
.ny-dl dt {
  color: #6b5444;
  font-weight: 700;
}
.ny-dl .ny-date {
  font-weight: 700;
  font-size: 17px;
}
.ny-source {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}
.ny-checked {
  font-size: 12px;
  color: #6b5444;
}
.ny-early {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #f3e6d3;
}
.ny-early .ny-early-title {
  font-size: 15px;
  font-weight: 700;
}
.ny-early p {
  font-size: 14px;
  line-height: 1.8;
}
.ny-dl-early {
  grid-template-columns: 48px 1fr;
  gap: 6px 12px;
  font-size: 14px;
}

/* 登録の案内 */
.ny-signup-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 20px;
  background: #5c3d2a;
  color: #fff7ec;
}
.ny-signup-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.ny-signup-box p {
  font-size: 14px;
  line-height: 1.8;
  color: #f3e6d3;
}
.ny-signup-button {
  align-self: flex-start;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: #c9662f;
  color: #ffffff;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
}
.ny-signup-button:hover {
  color: #ffffff;
}

/* 受験の相談 */
.ny-qa-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ny-qa-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ny-qa {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eadfcf;
  color: #3e2a1e;
}
.ny-qa-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ny-qa-meta {
  font-size: 12px;
  color: #6b5444;
}
.ny-qa-empty {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #eadfcf;
}
.ny-qa-empty p {
  font-size: 14px;
  line-height: 1.8;
}
.ny-qa-new {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid #dccdb8;
  background: #ffffff;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.ny-more {
  align-self: flex-start;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}

/* 中学3年生の1年のながれ */
.ny-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ny-timeline ol {
  padding: 0;
  list-style: none;
}
.ny-timeline li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid #f1e8db;
}
.ny-period {
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background: #e8efe1;
  color: #44603a;
  font-size: 12px;
  font-weight: 700;
}
.ny-tl-title {
  font-size: 15px;
  font-weight: 700;
}
.ny-timeline li p {
  font-size: 14px;
  line-height: 1.8;
  color: #5c4636;
}

/* ほかの都道府県 */
.ny-others {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ny-others-region {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ny-others-name {
  font-size: 13px;
  font-weight: 700;
  color: #6b5444;
}
.ny-others-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ---- フッター ---- */
.ny-footer {
  border-top: 1px solid #eadfcf;
}
.ny-footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px 16px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
  color: #6b5444;
}
.ny-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.ny-footer-links a:hover {
  text-decoration: underline;
}

/* ---- PC ---- */
@media (min-width: 1024px) {
  .only-pc {
    display: block;
  }
  .only-sp {
    display: none;
  }
  .ny-header {
    padding: 14px clamp(16px, 4vw, 40px);
  }
  .ny-logo-type {
    height: 28px;
    width: 74px;
  }
  .ny-main {
    max-width: 1160px;
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 40px) 48px;
    gap: 28px;
  }
  .ny-main-national {
    gap: 24px;
  }
  .ny-intro h1 {
    font-size: clamp(26px, 3vw, 34px);
  }
  .ny-h1-year {
    font-size: 20px;
  }
  .ny-region {
    gap: 10px;
  }
  .ny-region h2 {
    font-size: 18px;
  }
  .ny-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
  }
  .ny-col-main,
  .ny-col-side,
  .ny-order-last {
    display: flex;
    flex-direction: column;
  }
  .ny-col-main,
  .ny-order-last {
    gap: 28px;
  }
  .ny-col-side {
    gap: 24px;
  }
  .ny-card {
    padding: 24px;
  }
  .ny-dl {
    grid-template-columns: 160px 1fr;
  }
  .ny-dl-early {
    grid-template-columns: 48px 1fr;
  }
  .ny-signup-box {
    padding: 28px;
  }
  .ny-signup-title {
    font-size: 22px;
  }
}
