/* =========================================================
   JPress Renewal Mock — Sub-page components
   (loads after style.css)
   ========================================================= */

/* Header nav active state
--------------------------------------------------------- */
.nav a[aria-current] {
  color: var(--theme);
  position: relative;
}

.nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--theme);
}

/* Page hero (lower pages)
--------------------------------------------------------- */
.page-hero {
  background:
    radial-gradient(circle at 88% -20%, rgba(31, 56, 100, .10), transparent 42%),
    linear-gradient(135deg, #fff 0%, #f5f7fb 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 48px 0 44px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--color-muted);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb li + li::before {
  content: "/";
  color: #c4c9d2;
}

.breadcrumb a {
  color: var(--color-muted);
  transition: color .2s;
}

.breadcrumb a:hover {
  color: var(--theme);
}

.breadcrumb [aria-current] {
  color: var(--color-text);
  font-weight: 600;
}

.page-hero__en {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--theme);
  margin-bottom: 10px;
}

.page-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: .03em;
}

.page-hero__lead {
  margin: 14px 0 0;
  max-width: 680px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.9;
}

/* Section anchor nav (chips)
--------------------------------------------------------- */
.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  transition: border-color .2s, color .2s;
}

.anchor-nav a::after {
  content: "↓";
  font-size: 11px;
  color: var(--theme);
}

.anchor-nav a:hover {
  border-color: var(--theme);
  color: var(--theme);
}

/* Media tabs (advertising pages)
--------------------------------------------------------- */
.media-tabs {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.media-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: #555;
  transition: all .2s;
}

.media-tabs a:hover {
  border-color: var(--theme);
  color: var(--theme);
}

.media-tabs a[aria-current] {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff;
}

/* Content blocks
--------------------------------------------------------- */
.block {
  padding: 64px 0;
}

.block--white {
  background: #fff;
}

/* Two-column page layout (main + side menu)
--------------------------------------------------------- */
.page-body {
  padding: 56px 0 72px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}

.page-main {
  min-width: 0;
}

.content-block {
  margin-bottom: 56px;
}

.content-block:last-child {
  margin-bottom: 0;
}

.page-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 20px;
}

.side-menu {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.side-menu__title {
  margin: 0;
  padding: 14px 20px;
  background: var(--theme);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .05em;
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side-menu li + li {
  border-top: 1px solid var(--color-border);
}

.side-menu a {
  display: block;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
  transition: background .15s, color .15s;
}

.side-menu a:hover {
  color: var(--theme);
  background: #f8f9fc;
}

.side-menu a[aria-current] {
  color: var(--theme);
  background: var(--theme-soft);
}

.side-menu ul ul {
  border-top: 1px solid var(--color-border);
  background: #f8f9fc;
}

.side-menu ul ul a {
  padding: 10px 20px 10px 34px;
  font-size: 12px;
  font-weight: 500;
  position: relative;
}

.side-menu ul ul a::before {
  content: "−";
  position: absolute;
  left: 20px;
  color: var(--theme);
}

/* Spec card inside narrow main column: table drops below */
.page-main .spec-card--media {
  grid-template-columns: 260px 1fr;
}

.page-main .spec-card--media .spec-card__table {
  grid-column: 1 / -1;
  border-left: 0;
  border-top: 1px solid var(--color-border);
}

.page-main .note-grid {
  grid-template-columns: repeat(2, 1fr);
}

.block__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 28px;
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: .03em;
}

.block__title::before {
  content: "";
  align-self: stretch;
  width: 4px;
  border-radius: 2px;
  background: var(--theme);
}

.block__lead {
  margin: -16px 0 28px;
  color: var(--color-muted);
}

/* Info table (会社概要)
--------------------------------------------------------- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: 15px;
}

.info-table th,
.info-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: 0;
}

.info-table th {
  width: 200px;
  background: #f8f9fc;
  color: var(--theme);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.info-table ul {
  margin: 0;
  padding-left: 1.2em;
}

/* Timeline (沿革)
--------------------------------------------------------- */
.timeline {
  position: relative;
  padding-left: 36px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: #d8deea;
}

.timeline__era {
  position: relative;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 36px;
  align-items: start;
  padding: 0 0 8px;
}

.timeline__year {
  position: relative;
  margin: 4px 0 16px;
  font-size: 24px;
  font-weight: 700;
  color: var(--theme);
  line-height: 1.3;
}

.timeline__year small {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
  margin-left: 8px;
}

.timeline__year::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--theme);
  box-sizing: border-box;
}

.timeline__items {
  display: grid;
  gap: 14px;
  margin-bottom: 40px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: start;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}

.timeline__month {
  font-size: 13px;
  font-weight: 700;
  color: var(--theme);
  background: var(--theme-soft);
  border-radius: 6px;
  text-align: center;
  padding: 4px 0;
}

.timeline__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
}

.timeline__thumb {
  display: block;
  width: 140px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: opacity .2s;
}

.timeline__thumb:hover {
  opacity: .8;
}

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

/* Prose (プライバシーポリシー等)
--------------------------------------------------------- */
.prose {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 48px 56px;
  font-size: 15px;
  line-height: 2;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 20px;
  line-height: 1.5;
  margin: 44px 0 14px;
  padding-top: 8px;
}

.prose h2 .num {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme);
  background: var(--theme-soft);
  border-radius: 6px;
  padding: 2px 10px;
}

.prose p {
  margin: 0 0 14px;
}

.prose .meta {
  color: var(--color-muted);
  font-size: 13px;
  text-align: right;
  margin-bottom: 28px;
}

.prose .contact-box {
  margin: 18px 0 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #f8f9fc;
  padding: 22px 26px;
}

.prose .contact-box h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--theme);
}

.prose .contact-box p {
  margin: 0;
  font-size: 14px;
}

/* Price tables (広告掲載)
--------------------------------------------------------- */
.spec-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.spec-card__body {
  padding: 32px 36px;
}

.spec-card__body h3 {
  margin: 10px 0 12px;
  font-size: 22px;
  line-height: 1.5;
}

.spec-card__body p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.9;
}

.spec-card__table {
  border-left: 1px solid var(--color-border);
}

.spec-card__table table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-card__table th,
.spec-card__table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.spec-card__table tr:last-child th,
.spec-card__table tr:last-child td {
  border-bottom: 0;
}

.spec-card__table th {
  width: 96px;
  background: #f8f9fc;
  color: var(--theme);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.price-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.price-note h3 {
  margin: 0;
  font-size: 18px;
}

.price-note .unit {
  font-size: 12px;
  color: var(--color-muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag--color {
  background: var(--theme);
  color: #fff;
}

.tag--mono {
  background: #555;
  color: #fff;
}

.price-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: #fff;
  margin-bottom: 36px;
}

.price-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.price-table th,
.price-table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--color-border);
  text-align: right;
  white-space: nowrap;
}

.price-table thead th {
  background: var(--theme);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-bottom: 0;
}

.price-table thead th:first-child {
  text-align: left;
  border-radius: 0;
}

.price-table tbody th {
  text-align: left;
  background: #f8f9fc;
  color: var(--color-text);
  font-weight: 700;
  font-size: 13px;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table tbody tr:hover td {
  background: #fbfcfe;
}

/* Ad size samples (広告サイズ)
--------------------------------------------------------- */
.size-list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.size-list li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px;
}

.size-list img {
  display: block;
  max-height: 180px;
  width: auto;
}

/* Spec card with paper image */
.spec-card--media {
  grid-template-columns: 280px 1.1fr 1fr;
}

.spec-card__image {
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f8f9fc;
  border-right: 1px solid var(--color-border);
}

.spec-card__image img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

/* Media spec cards stacked (会社概要・メディア紹介) */
.media-spec-list {
  display: grid;
  gap: 28px;
}

.media-spec {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items: start;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 36px;
}

.media-spec__image img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.media-spec__body h3 {
  margin: 12px 0 10px;
  font-size: 24px;
  line-height: 1.5;
}

.media-spec__body > p {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.9;
}

.media-spec .info-table {
  box-shadow: none;
  border: 1px solid var(--color-border);
  font-size: 14px;
}

.media-spec .info-table th {
  width: 140px;
}

.media-spec .info-table th,
.media-spec .info-table td {
  padding: 14px 20px;
}

@media (max-width: 768px) {
  .media-spec {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 20px;
  }

  .media-spec__image {
    max-width: 320px;
    margin: 0 auto;
  }

  .media-spec .info-table th {
    width: 90px;
    padding: 12px 14px;
  }

  .media-spec .info-table td {
    padding: 12px 14px;
  }

  .page-main .note-grid {
    grid-template-columns: 1fr;
  }

  .page-main .spec-card--media {
    grid-template-columns: 1fr;
  }
}

/* Note cards (制作費・その他)
--------------------------------------------------------- */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.note-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.note-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--theme);
}

.note-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

/* Placeholder notice (mock only) */
.mock-note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 24px;
  padding: 12px 18px;
  border: 1px dashed #d3a24a;
  border-radius: var(--radius-sm);
  background: #fdf6e9;
  color: #8a6320;
  font-size: 13px;
}

/* Contact CTA band
--------------------------------------------------------- */
.contact-band {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--theme);
  padding: 40px;
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.contact-band__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.8;
}

.contact-band__name {
  margin: 6px 0 14px;
  font-size: 22px;
  line-height: 1.6;
}

.contact-band__tel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 6px 0 2px;
}

.contact-band__tel .tel {
  display: block;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--theme);
  line-height: 1.2;
}

.contact-band__tel .tel small {
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}

.contact-band__tel p {
  margin: 0;
  padding-left: 28px;
  border-left: 1px solid var(--color-border);
  text-align: left;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.8;
}

.contact-band .button {
  margin-top: 20px;
  min-height: 52px;
  padding: 0 44px;
  font-size: 15px;
}

/* Form (お問い合わせ)
--------------------------------------------------------- */
.form-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 44px 52px;
}

/* CF7 が <p> で内容をラップするためマージンをリセット */
.form-card p {
  margin: 0;
}

/* CF7: input ラッパー span をブロックに変換して width:100% を有効化 */
.form-card .wpcf7-form-control-wrap {
  display: block;
}

/* CF7 出力: form-row__label の中身が <p> で包まれる場合も flex 維持 */
.form-row__label > p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* CF7 出力: form-pair__item の <p> 内 <br> を非表示（form-pair__sub とinput の間） */
.form-pair__item br {
  display: none;
}

/* CF7 出力: address-row の <p> をグリッドに変換して縦積みスタック */
.address-row > p {
  display: grid;
  gap: 10px;
}

.address-row > p br {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.form-row:first-child {
  padding-top: 0;
}

.form-row__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  font-size: 14px;
  font-weight: 700;
}

.req,
.opt {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
}

.req {
  background: #b8504229;
  color: #b85042;
}

.opt {
  background: #eee;
  color: #777;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid #d5d9e0;
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.form-row textarea {
  min-height: 180px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--theme);
  box-shadow: 0 0 0 3px var(--theme-soft);
}

.form-row .hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--color-muted);
}

.radio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* CF7 出力: p > span.wpcf7-form-control-wrap > span.wpcf7-radio > span.wpcf7-list-item > label */
.radio-chips .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-chips .wpcf7-list-item {
  flex: 0 0 auto;
}

.radio-chips label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #d5d9e0;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}

.radio-chips input {
  accent-color: var(--theme);
}

.radio-chips label:hover {
  border-color: var(--theme);
}

.radio-chips label:has(input:checked) {
  background: var(--theme-soft);
  border-color: var(--theme);
  color: var(--theme);
  font-weight: 700;
}

.form-consent {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14px;
}

.form-consent a {
  color: var(--theme);
  text-decoration: underline;
}

.form-consent label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--theme);
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.form-submit .button,
.form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 64px;
  border-radius: 999px;
  background: var(--theme);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  border: 0;
  cursor: pointer;
  transition: opacity .2s;
}

.form-submit .button:hover,
.form-submit input[type="submit"]:hover {
  opacity: .88;
}

.form-submit .button:disabled,
.form-submit input[type="submit"]:disabled {
  background: #c2c8d2;
  cursor: not-allowed;
}

/* CF7: <p> ラッパー */
.form-submit p {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* CF7 スピナーをボタンの右外に絶対配置してボタン中央を維持 */
.form-submit .wpcf7-spinner {
  position: absolute;
  left: calc(50% + 90px);
  top: 50%;
  transform: translateY(-50%);
}

.form-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-pair__item label,
.form-pair__sub {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.address-row {
  display: grid;
  gap: 10px;
}

.form-row [name="postal"] {
  max-width: 220px;
}

.form-row [name="phone"] {
  max-width: 260px;
}

.form-done {
  text-align: center;
  padding: 48px 0 24px;
}

.form-done h3 {
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--theme);
}

.form-done p {
  color: var(--color-muted);
  margin: 0;
}

/* News list (お知らせ)
--------------------------------------------------------- */
.news-list {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.news-row {
  display: grid;
  grid-template-columns: 110px 110px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--color-border);
  transition: background .15s;
}

.news-row:last-child {
  border-bottom: 0;
}

.news-row:hover {
  background: #f8f9fc;
}

.news-row__date {
  color: var(--color-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.news-row__cat {
  justify-self: start;
}

.news-row__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.news-row__arrow {
  color: var(--theme);
  font-weight: 700;
  transition: transform .2s;
}

.news-row:hover .news-row__arrow {
  transform: translateX(4px);
}

.badge--news {
  background: var(--theme-soft);
  color: var(--theme);
}

.badge--press {
  background: #f3eee2;
  color: #8a6320;
}

.badge--media {
  background: #faece7;
  color: #b85042;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  transition: all .15s;
}

.pagination a:hover {
  border-color: var(--theme);
  color: var(--theme);
}

.pagination [aria-current] {
  background: var(--theme);
  border-color: var(--theme);
  color: #fff;
}

/* News article (詳細)
--------------------------------------------------------- */
.article {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 52px 60px;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.article__meta time {
  color: var(--color-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.article h1 {
  margin: 0 0 28px;
  font-size: 30px;
  line-height: 1.55;
  letter-spacing: .02em;
}

.article__figure {
  margin: 0 0 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 8;
  background: linear-gradient(135deg, #e3e7ef, #cfd6e2);
  background-size: cover;
  background-position: center;
}

.article__body {
  font-size: 16px;
  line-height: 2.1;
}

.article__body p {
  margin: 0 0 22px;
}

.article__body h2 {
  margin: 2.2em 0 .8em;
  padding: 10px 16px;
  font-size: 22px;
  line-height: 1.45;
  background: var(--theme-soft);
  border-left: 4px solid var(--theme);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article__body h3 {
  margin: 2em 0 .7em;
  padding-bottom: 8px;
  font-size: 19px;
  line-height: 1.5;
  border-bottom: 2px solid var(--theme);
}

.article__body h4 {
  margin: 1.8em 0 .6em;
  padding-left: 12px;
  font-size: 17px;
  border-left: 3px solid var(--theme);
}

.article__body h5 {
  margin: 1.6em 0 .5em;
  font-size: 15px;
  color: var(--theme);
}

.article__body h6 {
  margin: 1.6em 0 .5em;
  font-size: 15px;
  color: inherit;
  font-weight: 400;
}

.article__body ul {
  margin: 0 0 22px;
  padding-left: 1.4em;
}

.article__body li {
  margin-bottom: 6px;
}

.article__body a {
  color: var(--theme);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  margin-top: 28px;
}

.article-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  font-size: 13px;
  line-height: 1.6;
  transition: border-color .2s;
}

.article-nav a:hover {
  border-color: var(--theme);
}

.article-nav .article-nav__next {
  justify-content: flex-end;
  text-align: right;
}

.article-nav .article-nav__all {
  justify-content: center;
  font-weight: 700;
  color: var(--theme);
}

.article-nav .dir {
  color: var(--theme);
  font-weight: 700;
}

/* Access map
--------------------------------------------------------- */
.access-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.map-frame {
  min-height: 320px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(31, 56, 100, .04), rgba(31, 56, 100, .04)),
    repeating-linear-gradient(0deg, #eef0f4 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, #eef0f4 0 1px, transparent 1px 48px),
    #f4f5f8;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.map-frame .pin {
  display: grid;
  place-items: center;
  gap: 8px;
  color: var(--color-muted);
  font-size: 13px;
  text-align: center;
}

.map-frame .pin::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  background: var(--theme);
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(31, 56, 100, .35);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.access-info {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 32px;
}

.access-info h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.access-info dl {
  margin: 0;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.access-info dt {
  font-weight: 700;
  color: var(--theme);
  font-size: 12px;
}

.access-info dd {
  margin: 2px 0 8px;
  line-height: 1.8;
}

/* Media intro cards (会社概要内)
--------------------------------------------------------- */
.media-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.media-mini {
  display: grid;
  grid-template-columns: 132px 1fr;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.media-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.media-mini__image {
  background: linear-gradient(135deg, #dfe4ec, #c8d0dd);
  background-size: cover;
  background-position: center;
  min-height: 120px;
}

.media-mini__body {
  padding: 18px 22px;
}

.media-mini__body h3 {
  margin: 6px 0 6px;
  font-size: 17px;
  line-height: 1.5;
}

.media-mini__body p {
  margin: 0;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.8;
}

/* Responsive
--------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-side {
    position: static;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .spec-card,
  .spec-card--media {
    grid-template-columns: 1fr;
  }

  .spec-card__image {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .spec-card__table {
    border-left: 0;
    border-top: 1px solid var(--color-border);
  }

  .media-mini-grid {
    grid-template-columns: 1fr;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 36px 0 34px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .block {
    padding: 48px 0;
  }

  .block__title {
    font-size: 24px;
  }

  .prose {
    padding: 28px 22px;
  }

  .info-table th {
    width: 110px;
    padding: 16px 14px;
  }

  .info-table td {
    padding: 16px 14px;
  }

  .timeline__era {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .timeline__item {
    grid-template-columns: 48px 1fr;
  }

  .timeline__thumb {
    grid-column: 2;
    width: 130px;
  }

  .contact-band {
    gap: 20px;
    padding: 28px 24px;
  }

  .contact-band__tel {
    flex-direction: column;
    gap: 10px;
  }

  .contact-band__tel p {
    padding-left: 0;
    border-left: 0;
    text-align: center;
  }

  .form-card {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .form-row__label {
    justify-content: flex-start;
    padding-top: 0;
  }

  .news-row {
    grid-template-columns: 1fr auto;
    gap: 6px 14px;
    padding: 18px 18px;
  }

  .news-row__date {
    order: 1;
  }

  .news-row__cat {
    order: 2;
    justify-self: end;
  }

  .news-row__title {
    order: 3;
    grid-column: 1 / -1;
  }

  .news-row__arrow {
    display: none;
  }

  .article {
    padding: 28px 20px;
  }

  .article h1 {
    font-size: 22px;
  }

  .article__body h2 {
    font-size: 19px;
  }

  .article__body h3 {
    font-size: 17px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .media-tabs {
    width: 100%;
  }

  .media-tabs a {
    flex: 1;
    justify-content: center;
    padding: 0 12px;
    font-size: 13px;
  }
}
