:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 18%, rgba(255, 230, 150, 0.45) 0%, transparent 42%),
    radial-gradient(circle at 88% 14%, rgba(255, 188, 208, 0.34) 0%, transparent 40%),
    radial-gradient(circle at 74% 86%, rgba(186, 230, 196, 0.4) 0%, transparent 38%),
    radial-gradient(circle at 40% 8%, rgba(198, 216, 255, 0.28) 0%, transparent 34%);
  background-attachment: fixed;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header-main {
  justify-self: start;
}

.site-header-tagline {
  font-size: 0.9rem;
}

.site-header-logo-link {
  display: inline-block;
  line-height: 0;
  cursor: pointer;
}
.site-header-logo-link:hover { opacity: 0.85; }
.site-header-logo {
  width: auto;
  max-width: min(240px, 40vw);
  max-height: 64px;
  height: auto;
  display: block;
  justify-self: center;
  object-fit: contain;
}

.site-header-action {
  justify-self: end;
}

.site-header-actions {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

h1, h2, p {
  margin: 0;
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-header-main,
  .site-header-action {
    justify-self: center;
  }

  .site-header-logo {
    width: min(320px, 80vw);
  }

  .site-header-actions {
    justify-self: center;
    justify-content: center;
  }
}

.muted {
  color: var(--muted);
  font-size: 0.92rem;
}

.container {
  width: min(1100px, 92vw);
  margin: 24px auto 40px;
}

.hero-heading {
  margin: 6px 0 16px;
  text-align: center;
}

.hero-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.hero-nav {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.guide-page .panel + .panel {
  margin-top: 16px;
}

.guide-intro p {
  margin-top: 10px;
  line-height: 1.65;
}

.guide-list {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  line-height: 1.65;
}

.guide-list li + li {
  margin-top: 8px;
}

.guide-note {
  margin-top: 12px;
}

.guide-steps {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  line-height: 1.65;
}

.guide-steps li + li {
  margin-top: 10px;
}

.guide-actions-wrap {
  margin-top: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.filter-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.location-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}

.location-actions .muted {
  margin-left: 2px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
}

label small.muted {
  line-height: 1.4;
}

input, select, textarea, button {
  font: inherit;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  box-sizing: border-box;
  max-width: 100%;
}

select {
  text-overflow: ellipsis;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

@media (max-width: 480px) {
  select {
    font-size: 13px;
    padding: 9px 28px 9px 10px;
  }
  input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], textarea {
    font-size: 16px; /* iOS zoom prevention */
  }
}

.list-header {
  margin: 26px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 8px;
}
.list-header > * { flex-shrink: 0; }
.list-header h2 { white-space: nowrap; }
@media (max-width: 480px) {
  .list-header { flex-direction: column; align-items: stretch; }
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.card h3 {
  margin: 0;
  font-size: 1rem;
}

.school-link {
  color: #1d4ed8;
  text-decoration: none;
}

.school-link:hover {
  text-decoration: underline;
}

.detail-link {
  color: #1d4ed8;
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

.url-link {
  color: #1d4ed8;
  text-decoration: none;
  word-break: normal;
  white-space: nowrap;
  display: inline-block;
}

.url-link:hover {
  text-decoration: underline;
}

.card-image {
  width: 100%;
  aspect-ratio: 12 / 7;
  height: auto;
  object-fit: cover;
  background: #e5e7eb;
}

.card-image-link {
  display: block;
  overflow: hidden;
  cursor: pointer;
}
.card-image-link .card-image {
  transition: transform .35s ease, opacity .2s ease;
}
.card-image-link:hover .card-image,
.card-image-link:focus-visible .card-image {
  transform: scale(1.03);
  opacity: .92;
}
.card-image-link:focus-visible {
  outline: 3px solid #ef8fa0;
  outline-offset: 2px;
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.chip {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 2px 8px;
}

.chip.photo-ready {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.chip.photo-waiting {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--primary);
}

.button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: #374151;
}

.button.ghost {
  background: transparent;
  color: #374151;
  border: 1px solid #9ca3af;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-grid {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.actions > .button,
.actions > a.button {
  white-space: nowrap;
}

.verify-toolbar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  align-items: end;
}

.verify-summary {
  padding: 8px 0;
}

.verifier-stats {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.export-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-import-label {
  position: relative;
  overflow: hidden;
}

.source-meta-panel {
  margin-top: 4px;
}

.source-meta-panel h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.source-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px 10px;
}

#auditLogList {
  max-height: 220px;
  overflow: auto;
  line-height: 1.5;
}

.thumbnail-batch {
  margin-top: 12px;
}

.thumbnail-batch h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  font-size: 0.92rem;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 2px 8px;
  font-size: 0.78rem;
}

.status-pill.done {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

.status-pill.pending {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.status-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 20px;
}

.detail-layout {
  display: grid;
  gap: 14px;
}

.detail-image {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.site-footer {
  margin: 48px 0 0;
  width: 100%;
  background: #f6f6f6;
  border-top: 1px solid #e9e9e9;
  text-align: center;
  padding: 64px 20px 48px;
  font-size: 1rem;
  display: block;
}
.site-footer__logo img {
  width: 240px;
  margin: 0 auto 32px;
  display: block;
}
.site-footer__nav--grouped {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 48px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.site-footer__col h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #4a3a30;
  border-bottom: 1px solid #e9d7cf;
  padding-bottom: 10px;
}
.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__col li { margin: 0; }
.site-footer__col a {
  color: #6b5548;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.5;
  padding: 4px 0;
  font-weight: 500;
  display: inline-block;
}
.site-footer__col a:hover {
  color: #e58273;
  text-decoration: underline;
}
.site-footer small {
  display: block;
  font-size: 15px;
  color: #8b6f60;
  margin-top: 16px;
}
.site-footer > a {
  color: #6b5548;
  text-decoration: none;
  padding: 6px 4px;
  font-weight: 500;
}
.site-footer > a:hover { text-decoration: underline; }

.applicant-status-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.applicant-status-card .actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.applicant-revision-note {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 20px 22px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.modal-panel h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.modal-textarea {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
  min-height: 160px;
  box-sizing: border-box;
}

.modal-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-gate-screen {
  min-height: 70vh;
  padding: clamp(16px, 4vw, 40px) clamp(12px, 4vw, 24px);
  align-items: flex-start;
  justify-content: center;
}
.admin-gate-screen:not([hidden]) { display: flex; }
[hidden] { display: none !important; }

.admin-gate-inner {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.admin-gate-panel-card {
  padding: clamp(16px, 4vw, 28px);
}

.admin-gate-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 12px 0 4px;
  border-bottom: 1px solid #e5e7eb;
}

.admin-gate-tab {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  font-size: clamp(0.85rem, 2.6vw, 0.95rem);
  font-weight: 600;
  color: #6b7280;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, background 120ms ease;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.admin-gate-tab:hover { color: #111827; background: #f3f4f6; }
.admin-gate-tab.is-active {
  color: #111827;
  border-bottom-color: #2563eb;
}
.admin-gate-tab:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 4px;
}

.admin-gate-hint { margin-top: 12px; }

.admin-gate-body {
  margin-top: 10px;
}

.admin-gate-form {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-gate-migrate {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
}

.admin-gate-note {
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .admin-gate-tabs { gap: 2px; }
  .admin-gate-tab { padding: 9px 8px; font-size: 0.82rem; }
  .admin-gate-form label { font-size: 0.95rem; }
  .admin-gate-form input { font-size: 16px; }
}

.admin-gate-footer-links {
  margin-top: 16px;
}

.admin-gate-check {
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.admin-gate-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #ef8fa0;
  margin: 0;
}
.sl-hits {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.sl-hits:empty { display: none; }
.sl-picked {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #d6cfc2;
  border-radius: 10px;
  background: #fbf7f1;
}

.admin-gate-reset {
  margin-top: 4px;
  font-size: 0.85rem;
}

.admin-shortcut-hint {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.admin-accounts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.admin-accounts-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-subheading {
  font-size: 1rem;
  margin: 0.75rem 0 0.5rem;
}

.admin-notify-lead {
  margin-bottom: 12px;
  line-height: 1.55;
}

.admin-notify-fields {
  margin-bottom: 8px;
}

.admin-notify-subject {
  font-size: 0.95rem;
}

.admin-notify-body {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.5;
}

.admin-notify-footnote {
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 10px 0 0;
}

.admin-notify-actions {
  flex-wrap: wrap;
}

.admin-notify-modal-panel {
  max-width: 40rem;
}

.pta-admin-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pta-admin-section code {
  font-size: 0.85em;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
}

.pta-admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.pta-page-wrap {
  padding-bottom: 48px;
}

.pta-root {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pta-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  background: #e5e7eb;
}
a.pta-hero--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
a.pta-hero--link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.18);
}
a.pta-hero--link:hover .pta-hero-img {
  transform: scale(1.02);
}
.pta-hero-img { transition: transform .4s ease; }
.pta-hero-cta {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #fef3c7;
  opacity: 0.95;
}

.pta-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.pta-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.pta-hero-badge {
  margin: 0 0 8px;
  font-size: 0.85rem;
  opacity: 0.95;
  letter-spacing: 0.06em;
}

.pta-hero-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
}

.pta-section h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.pta-section h4.pta-subheading {
  margin: 20px 0 10px;
  font-size: 1rem;
  color: var(--text);
}

.pta-stats {
  margin: 0 0 12px;
  font-weight: 600;
  color: #166534;
}

.pta-intro-body {
  line-height: 1.75;
}

.pta-wish {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pta-wish-label {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pta-wish-text {
  margin: 0;
  line-height: 1.65;
}

.pta-blog-row {
  margin: 0 0 12px;
}

.pta-blog-block {
  margin: 0 0 18px;
}

.pta-blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.pta-blog-btn {
  flex-shrink: 0;
}

.pta-blog-teasers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  max-width: min(100%, 280px);
}

.pta-blog-teasers li {
  margin: 0;
  padding: 0;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
}

.pta-blog-teaser-img {
  display: block;
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  object-fit: cover;
  object-position: center center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3f4f6;
}

.pta-blog-teaser-note {
  margin: 8px 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.pta-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.pta-report-photo-note {
  margin: 4px 0 14px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.pta-post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.pta-post-media {
  position: relative;
  width: 100%;
  height: 168px;
  flex-shrink: 0;
  background: #e5e7eb;
  display: block;
  overflow: hidden;
}
a.pta-post-media { cursor: pointer; }
a.pta-post-media:hover .pta-post-img { transform: scale(1.03); }
.pta-post-img { transition: transform .3s ease; }
.pta-post-title-link { color: inherit; text-decoration: none; }
.pta-post-title-link:hover { text-decoration: underline; }
.pta-post-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.pta-post-external { color: #64748b; }

.pta-post-card--fallback-img .pta-post-media::after {
  content: "参考";
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  pointer-events: none;
}

.pta-post-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pta-post-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pta-post-meta {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.pta-post-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.pta-post-excerpt {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #374151;
}

.pta-lead {
  margin: 0 0 14px;
}

.pta-needs-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.pta-need-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid var(--line);
}

.pta-need-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.pta-need-label {
  font-size: 0.95rem;
  line-height: 1.45;
}

.pta-need-placeholder .pta-need-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.pta-sponsor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.pta-sponsor-link {
  font-weight: 600;
  color: #166534;
}

.pta-benefits-body {
  line-height: 1.7;
  white-space: pre-wrap;
}

.pta-benefits-list {
  margin: 0 0 12px;
  padding-left: 1.2em;
  line-height: 1.65;
}

.sample-school-card { position: relative; }
.sample-school-badge {
  position: absolute; top: 10px; left: 10px;
  background: #db2777; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(219, 39, 119, 0.35);
  letter-spacing: 0.04em;
}

.pta-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 12px 0 18px;
}
.pta-tier-card {
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  padding: 18px 16px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(25, 35, 55, 0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pta-tier-card--entry    { border-top: 4px solid #94a3b8; }
.pta-tier-card--standard {
  position: relative;
  border: 2px solid #3b82f6;
  border-top: 6px solid #3b82f6;
  background: linear-gradient(180deg,#eff6ff 0%,#fff 55%);
  box-shadow: 0 8px 22px rgba(59,130,246,0.15);
}
.pta-tier-card--standard .pta-tier-badge {
  background: #3b82f6;
}
.pta-tier-card--premium  { border-top: 4px solid #f59e0b; background: linear-gradient(180deg,#fffaf0 0%,#fff 60%); }
.pta-tier-card--special  { border-top: 4px solid #db2777; background: linear-gradient(180deg,#fff0f6 0%,#fff 60%); }
.pta-tier-card--featured {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 1.5rem;
  border: 2px solid #f59e0b;
  border-top: 6px solid #f59e0b;
  border-radius: 14px;
  background: linear-gradient(180deg,#fffbeb 0%,#fff 40%);
  box-shadow: 0 8px 24px rgba(245,158,11,0.15);
}
.pta-tier-badge {
  display: inline-block;
  padding: 4px 12px;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #f59e0b;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.pta-tier-card--featured .pta-tier-name {
  font-size: 1.25rem;
  color: #92400e;
  margin: 0.25rem 0 0.5rem;
}
.pta-tier-tag {
  font-weight: 600;
  color: #b45309;
  margin: 0 0 0.75rem;
}
.pta-tier-desc { margin: 0 0 1rem; line-height: 1.7; }
.pta-tier-example {
  background: #fff7ed;
  border-left: 3px solid #f59e0b;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  border-radius: 0 6px 6px 0;
}
.pta-tier-example__label { margin: 0 0 0.25rem; font-weight: 600; }
.pta-tier-example ul { margin: 0; padding-left: 1.2rem; }
.pta-tier-features { margin: 0 0 1rem; }
.pta-tier-features h5 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #92400e;
  border-bottom: 1px dashed #fbbf24;
  padding-bottom: 0.25rem;
}
.pta-tier-features ol, .pta-tier-features ul { margin: 0; padding-left: 1.3rem; line-height: 1.7; }
.pta-tier-features li { margin-bottom: 0.5rem; }
.pta-tier-calc {
  background: #fef3c7;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin: 0 0 1rem;
  text-align: center;
}
.pta-tier-calc__lead { margin: 0 0 0.5rem; font-weight: 700; color: #92400e; }
.pta-tier-calc__formula {
  margin: 0.5rem 0;
  font-size: 1.05rem;
}
.pta-tier-calc__formula strong { color: #db2777; font-size: 1.2rem; }
.pta-tier-calc__note { margin: 0.25rem 0; font-size: 0.9rem; color: #6b7280; }
.pta-tier-calc__reach { margin: 0.75rem 0 0; padding-top: 0.5rem; border-top: 1px solid #fbbf24; }
.pta-tier-value h5 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #92400e;
}
.pta-tier-value ul { margin: 0 0 1rem; padding-left: 1.3rem; line-height: 1.8; }
.pta-tier-message {
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg,#f59e0b 0%,#db2777 100%);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.8;
  text-align: center;
  border: none;
}
.pta-tier-grid__label {
  margin: 1rem 0 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}
.pta-tier-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pta-tier-price {
  margin: 0;
  font-size: 0.95rem;
  color: #334155;
}
.pta-tier-price strong {
  font-size: 1.35rem;
  color: #111827;
  margin-right: 2px;
}
.pta-tier-price span {
  color: #64748b;
  font-size: 0.85rem;
}
.pta-tier-feat {
  margin: 4px 0 0;
  padding-left: 1.1em;
  line-height: 1.6;
  font-size: 0.92rem;
  color: #374151;
}
.pta-tier-feat li { margin: 2px 0; }
.pta-cta-wrap--tiers {
  padding: 8px 0 4px;
}
.button.pta-cta-btn--support {
  background: #db2777;
}
.button.pta-cta-btn--support:hover {
  background: #be185d;
}

.pta-cta-wrap {
  text-align: center;
  padding: 24px 16px;
}

.button.pta-cta-btn {
  background: #16a34a;
  font-size: 1.05rem;
  padding: 14px 28px;
}

.button.pta-cta-btn:hover {
  background: #15803d;
}

.pta-first-supporter {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #fff8e1 0%, #fef3cd 100%);
  border: 1px solid #f2d88a;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(162, 134, 79, 0.12);
  text-align: left;
}
.pta-first-supporter__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #8a6a1c;
  background: #fff;
  border: 1px solid #e5c76b;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.pta-first-supporter__title {
  margin: 0 0 12px;
  font-size: 17px;
  color: #5d4413;
  line-height: 1.55;
}
.pta-first-supporter__list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pta-first-supporter__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #3f2f12;
  line-height: 1.6;
}
.pta-first-supporter__list li::before {
  content: "★";
  position: absolute;
  left: 2px;
  top: 0;
  color: #d9a62b;
  font-size: 13px;
}
.pta-first-supporter__note {
  margin: 6px 0 0;
  font-size: 12px;
}

.pta-cta-wrap--dual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pta-cta-wrap--dual .pta-cta-btn {
  min-width: 280px;
}

.button.pta-cta-btn--support {
  background: #a2864f;
}
.button.pta-cta-btn--support:hover {
  background: #8a6f3a;
}

@media (min-width: 640px) {
  .pta-cta-wrap--dual {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

.pta-cta-note {
  margin: 14px 0 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.88rem;
}

.pta-back-link {
  text-align: center;
  margin: 8px 0 0;
}

.card-body .school-link-secondary {
  display: inline-block;
  margin-top: 8px;
  margin-left: 0;
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .pta-hero-img {
    height: 220px;
  }

  .pta-needs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pta-operator-policy .pta-operator-lead {
  line-height: 1.7;
  margin: 0 0 14px;
}

.pta-operator-actions {
  margin: 0 0 8px;
}

.pta-operator-fineprint {
  font-size: 0.88rem;
  margin: 0;
}

.pta-contact-supplement {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px dashed var(--line);
}

.pta-contact-supplement-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 6px;
}

.detail-operator-panel {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.detail-operator-heading {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.detail-operator-panel p {
  margin: 0 0 12px;
  line-height: 1.65;
}

.detail-operator-actions {
  margin: 0;
}

.detail-phone-note {
  font-size: 0.88rem;
}

.request-intro {
  line-height: 1.65;
  margin-bottom: 18px;
}

/* 会社概要ページ */
.about-page {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}
.about-hero {
  position: relative;
  padding: 56px 40px 48px;
  margin-bottom: 48px;
  background: linear-gradient(135deg, #fbf7f1 0%, #f6ece0 100%);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}
.about-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(239,143,160,.25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.about-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(167,205,150,.22), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.about-hero__eyebrow {
  position: relative;
  display: inline-block;
  font-size: 12px;
  letter-spacing: .24em;
  font-weight: 700;
  color: #c06f5e;
  margin-bottom: 16px;
}
.about-hero__eyebrow::before,
.about-hero__eyebrow::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #c06f5e;
  vertical-align: middle;
  margin: 0 12px;
}
.about-hero__title {
  position: relative;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.55;
  color: #3d2e25;
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: .02em;
}
.about-hero__lead {
  position: relative;
  font-size: 15px;
  line-height: 1.9;
  color: #6b5548;
  margin: 0;
}

.about-block {
  margin-bottom: 36px;
}
.about-block__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  padding-left: 4px;
}
.about-block__num {
  font-size: 28px;
  font-weight: 700;
  font-style: italic;
  color: #efb59b;
  letter-spacing: .04em;
  line-height: 1;
}
.about-block__head h3 {
  font-size: 19px;
  font-weight: 700;
  color: #3d2e25;
  margin: 0;
  letter-spacing: .02em;
}
.about-block__head h3::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #ef8fa0, #f29a38);
  border-radius: 2px;
  margin-top: 8px;
}

.about-card {
  background: #fff;
  border: 1px solid #eadccf;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,.03);
}
.about-card--prose p {
  line-height: 2;
  margin: 0 0 14px;
  color: #4a3a30;
  font-size: 15px;
}
.about-card--prose p:last-child { margin-bottom: 0; }

.about-info {
  margin: 0;
}
.about-info__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed #eadccf;
}
.about-info__row:first-child { padding-top: 0; }
.about-info__row:last-child { padding-bottom: 0; border-bottom: none; }
.about-info__row dt {
  font-weight: 700;
  color: #8b6f60;
  font-size: 13px;
  letter-spacing: .06em;
  padding-top: 3px;
}
.about-info__row dd {
  margin: 0;
  line-height: 1.75;
  color: #3d2e25;
  font-size: 15px;
}
.about-info__row dd a {
  color: #c06f5e;
  text-decoration: none;
  border-bottom: 1px solid #c06f5e;
  padding-bottom: 1px;
  transition: opacity .2s;
}
.about-info__row dd a:hover { opacity: .7; }
.about-info__row dd .muted {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: #8b6f60;
}

.about-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.about-steps li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed #eadccf;
}
.about-steps li:first-child { padding-top: 0; }
.about-steps li:last-child { padding-bottom: 0; border-bottom: none; }
.about-steps__idx {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef8fa0, #f29a38);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(239,143,160,.35);
}
.about-steps__title {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: #3d2e25;
  font-weight: 600;
}
.about-steps__sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #8b6f60;
}

.about-back {
  margin-top: 48px;
  text-align: center;
}

@media (max-width: 600px) {
  .about-page { padding: 24px 14px 40px; }
  .about-hero { padding: 40px 22px 36px; margin-bottom: 36px; }
  .about-hero__title { font-size: 20px; }
  .about-hero__lead { font-size: 14px; }
  .about-card { padding: 22px 18px; }
  .about-info__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }
  .about-info__row dt { font-size: 12px; }
  .about-block__head { gap: 12px; }
  .about-block__num { font-size: 24px; }
  .about-block__head h3 { font-size: 17px; }
  .about-steps li { gap: 14px; padding: 14px 0; }
  .about-steps__idx { width: 32px; height: 32px; font-size: 14px; }
}

/* 料金プラン（特典ページ） */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.plan-card {
  background: #fff;
  border: 1.5px solid #eadccf;
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.plan-card--featured {
  border-color: #ef8fa0;
  background: linear-gradient(180deg, #fff, #fff6f6);
  box-shadow: 0 4px 18px rgba(239,143,160,.15);
}
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef8fa0, #f29a38);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: .05em;
  box-shadow: 0 2px 8px rgba(239,143,160,.35);
}
.plan-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #6b5548;
  margin: 0 0 12px;
  letter-spacing: .04em;
}
.plan-card__price {
  margin: 0 0 14px;
  color: #3d2e25;
  line-height: 1;
}
.plan-card__price strong {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.plan-card__price span {
  font-size: 14px;
  margin-left: 4px;
  color: #8b6f60;
}
.plan-card__desc {
  font-size: 13px;
  line-height: 1.75;
  color: #6b5548;
  margin: 0;
}
@media (max-width: 700px) {
  .plan-grid { grid-template-columns: 1fr; gap: 14px; }
  .plan-card { padding: 24px 18px; }
}

/* ページ下部ナビゲーション（全サブページ共通） */
.page-nav {
  max-width: 1080px;
  margin: 48px auto 24px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}
.page-nav__link {
  flex: 1 1 280px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 24px;
  background: #fff;
  border: 1.5px solid #eadccf;
  border-radius: 14px;
  color: #4a3a30;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s, background .18s;
}
.page-nav__link:hover {
  transform: translateY(-2px);
  border-color: #ef8fa0;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  background: #fffaf7;
}
.page-nav__arrow {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef8fa0, #f29a38);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .page-nav { margin: 32px auto 16px; padding: 0 14px; gap: 10px; }
  .page-nav__link { flex: 1 1 100%; padding: 14px 18px; font-size: 14px; }
}

/* 掲載申請ページ */
.apply-page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}
.apply-hero {
  position: relative;
  padding: 48px 40px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #fff4f4 0%, #fdfdeb 60%, #f0f9ec 100%);
  border-radius: 20px;
  text-align: center;
  overflow: hidden;
}
.apply-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(239,143,160,.22), transparent 70%);
  border-radius: 50%;
}
.apply-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(167,205,150,.22), transparent 70%);
  border-radius: 50%;
}
.apply-hero__eyebrow {
  position: relative;
  display: inline-block;
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 700;
  color: #c06f5e;
  margin: 0 0 14px;
}
.apply-hero__eyebrow::before,
.apply-hero__eyebrow::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: #c06f5e;
  vertical-align: middle;
  margin: 0 14px;
}
.apply-hero__title {
  position: relative;
  font-size: clamp(24px, 3.8vw, 36px);
  line-height: 1.5;
  margin: 0 0 18px;
  color: #3d2e25;
  letter-spacing: .02em;
  font-weight: 700;
}
.apply-hero__lead {
  position: relative;
  font-size: 16px;
  line-height: 1.9;
  color: #5a4738;
  margin: 0;
}
.apply-hero__free {
  display: inline-block;
  padding: 2px 12px;
  background: #ef8fa0;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin: 0 4px;
}

.apply-guide {
  margin-bottom: 48px;
}
.apply-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.apply-guide__card {
  background: #fff;
  border: 1px solid #eadccf;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.apply-guide__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.apply-guide__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #ef8fa0, #f29a38);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  font-style: italic;
  box-shadow: 0 4px 12px rgba(239,143,160,.3);
}
.apply-guide__card h3 {
  font-size: 17px;
  color: #3d2e25;
  margin: 0 0 10px;
  font-weight: 700;
}
.apply-guide__card p {
  font-size: 14px;
  line-height: 1.75;
  color: #6b5548;
  margin: 0;
}

.apply-form-wrap {
  background: #fff;
  border: 1px solid #eadccf;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  margin-bottom: 40px;
}
.apply-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px dashed #eadccf;
  flex-wrap: wrap;
}
.apply-form-header h2 {
  font-size: 22px;
  color: #3d2e25;
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
}
.apply-form-header h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 22px;
  background: linear-gradient(180deg, #ef8fa0, #f29a38);
  border-radius: 2px;
  margin-right: 12px;
  vertical-align: -4px;
}
.apply-form-open {
  font-size: 14px;
  padding: 10px 18px;
  background: #ef8fa0;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity .2s;
  white-space: nowrap;
}
.apply-form-open:hover { opacity: .85; }

.apply-form-embed {
  position: relative;
  width: 100%;
  background: #fbf7f1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eadccf;
}
.apply-form-iframe {
  width: 100%;
  min-height: 1400px;
  border: 0;
  display: block;
  background: #fff;
}
.apply-form-note {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: #8b6f60;
}
.apply-form-note a {
  color: #c06f5e;
  text-decoration: underline;
}

.apply-contact {
  text-align: center;
  padding: 32px 24px;
  background: #fbf7f1;
  border-radius: 16px;
  border: 1px solid #eadccf;
}
.apply-contact h3 {
  font-size: 17px;
  color: #3d2e25;
  margin: 0 0 12px;
  font-weight: 700;
}
.apply-contact p {
  font-size: 14px;
  line-height: 1.8;
  color: #6b5548;
  margin: 0 0 16px;
}
.apply-contact__actions { margin: 20px 0 0; }

@media (max-width: 900px) {
  .apply-guide__grid { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .apply-page { padding: 20px 14px 40px; }
  .apply-hero { padding: 36px 20px; margin-bottom: 28px; }
  .apply-hero__title { font-size: 22px; }
  .apply-hero__lead { font-size: 14px; }
  .apply-hero__eyebrow::before,
  .apply-hero__eyebrow::after { width: 20px; margin: 0 8px; }
  .apply-guide__card { padding: 22px 18px; }
  .apply-form-wrap { padding: 22px 18px; border-radius: 16px; }
  .apply-form-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .apply-form-header h2 { font-size: 18px; }
  .apply-form-iframe { min-height: 1600px; }
  .apply-contact { padding: 24px 18px; }
}

/* --- ブログティーザー小画像は非表示（ヒーロー・活動レポート画像は表示） --- */
.pta-blog-teaser-img {
  display: none !important;
}
.pta-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* カード画像のプレースホルダー枠を明示 */
.card-image {
  background: #eef4fb;
  object-fit: cover;
}
.detail-image {
  background: #eef4fb;
  object-fit: cover;
}

/* --- ネイティブフォーム（supporter-apply 等）の見栄え --- */
.apply-form-wrap .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
  margin-top: 8px;
}
.apply-form-wrap .form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #3d2e25;
}
.apply-form-wrap .form-grid label:has(textarea),
.apply-form-wrap .form-grid label[data-full],
.apply-form-wrap .form-grid > label:nth-child(7),
.apply-form-wrap .form-grid > label:last-of-type,
.apply-form-wrap .form-grid > .actions,
.apply-form-wrap .form-grid > p#saMsg {
  grid-column: 1 / -1;
}
.apply-form-wrap .form-grid input[type="text"],
.apply-form-wrap .form-grid input[type="email"],
.apply-form-wrap .form-grid input[type="tel"],
.apply-form-wrap .form-grid select,
.apply-form-wrap .form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2d3c5;
  border-radius: 10px;
  background: #fbf7f1;
  font-size: 15px;
  font-family: inherit;
  color: #3d2e25;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.apply-form-wrap .form-grid input:focus,
.apply-form-wrap .form-grid select:focus,
.apply-form-wrap .form-grid textarea:focus {
  outline: none;
  border-color: #ef8fa0;
  box-shadow: 0 0 0 3px rgba(239,143,160,.18);
}
.apply-form-wrap .form-grid textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.apply-form-wrap .form-grid .actions {
  margin-top: 8px;
  justify-content: flex-end;
}
.apply-form-wrap .form-grid .required {
  color: #d94848;
  font-size: 12px;
  margin-left: 4px;
}
@media (max-width: 700px) {
  .apply-form-wrap .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 掲載依頼内容 section — elderly-friendly, large tap targets */
.apply-form-wrap .form-grid .form-section-head {
  grid-column: 1 / -1;
  margin: 24px 0 4px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #fff2f5 0%, #ffe4ea 100%);
  border-left: 6px solid #ef8fa0;
  border-radius: 12px;
}
.apply-form-wrap .form-grid .form-section-head h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #b73e5a;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.apply-form-wrap .form-grid .form-section-head p {
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #6b4a50;
}
.apply-form-wrap .form-grid .form-fieldset {
  grid-column: 1 / -1;
  border: 1px solid #e4dcd0;
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.apply-form-wrap .form-grid .form-fieldset > legend {
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0 10px;
  color: #3d2e25;
  line-height: 1.5;
}
.apply-form-wrap .form-fieldset .required,
.apply-form-wrap .form-grid .required {
  color: #fff;
  background: #e66060;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: .05em;
}
.apply-form-wrap .optional {
  color: #fff;
  background: #8a99a6;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 700;
  letter-spacing: .05em;
}
.apply-form-wrap .choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.apply-form-wrap .form-grid label.choice-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  border: 2px solid #d6cfc2;
  border-radius: 14px;
  padding: 18px 20px;
  min-height: 64px;
  cursor: pointer;
  background: #fbf7f1;
  transition: border-color .15s, background .15s, transform .1s;
  font-size: 1.02rem;
  font-weight: 600;
  color: #3d2e25;
  user-select: none;
}
.apply-form-wrap .form-grid label.choice-box:hover {
  border-color: #ef8fa0;
  background: #fff;
}
.apply-form-wrap .form-grid label.choice-box:has(input:checked) {
  border-color: #ef8fa0;
  background: #fff2f5;
  box-shadow: 0 0 0 3px rgba(239,143,160,.25);
}
.apply-form-wrap .form-grid label.choice-box input[type="radio"],
.apply-form-wrap .form-grid label.choice-box input[type="checkbox"] {
  margin: 0;
  width: 24px;
  height: 24px;
  accent-color: #ef8fa0;
  flex-shrink: 0;
  cursor: pointer;
}
.apply-form-wrap .form-grid label.choice-box span {
  flex: 1;
  line-height: 1.4;
}
.apply-form-wrap .form-hint {
  display: block;
  font-size: 0.88rem;
  color: #776a5a;
  line-height: 1.7;
  margin-top: 4px;
  font-weight: 400;
}
.apply-form-wrap .form-hint-note {
  background: linear-gradient(90deg, #e8f4ff 0%, #d7ecff 100%);
  color: #11476a;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin: 6px 0 0;
  line-height: 1.6;
  border-left: 4px solid #5aa6d4;
}
.apply-form-wrap .form-grid label.agree-box {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border: 2px solid #d6cfc2;
  border-radius: 14px;
  padding: 20px 24px;
  min-height: 72px;
  cursor: pointer;
  background: #fbf7f1;
  transition: border-color .15s, background .15s;
  font-size: 1.02rem;
  font-weight: 600;
  color: #3d2e25;
  line-height: 1.6;
}
.apply-form-wrap .form-grid label.agree-box:hover {
  border-color: #ef8fa0;
  background: #fff;
}
.apply-form-wrap .form-grid label.agree-box:has(input:checked) {
  border-color: #ef8fa0;
  background: #fff2f5;
  box-shadow: 0 0 0 3px rgba(239,143,160,.25);
}
.apply-form-wrap .form-grid label.agree-box input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #ef8fa0;
  cursor: pointer;
}
.apply-form-wrap .form-grid label.agree-box span {
  flex: 1;
}
.apply-form-wrap .form-grid label.agree-box a {
  color: #2a6a8c;
  text-decoration: underline;
  font-weight: 700;
}

.apply-form-wrap .file-upload {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: #fff;
  border: 2px dashed #d6cfc2;
  border-radius: 14px;
  transition: border-color .15s, background .15s;
}
.apply-form-wrap .file-upload:hover {
  border-color: #ef8fa0;
  background: #fffafc;
}
.apply-form-wrap .file-upload .file-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: #3d2e25;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.apply-form-wrap input[type="file"] {
  padding: 14px;
  background: #fbf7f1;
  border: 1px solid #d6cfc2;
  border-radius: 10px;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  min-height: 56px;
}
.apply-form-wrap input[type="file"]::file-selector-button {
  padding: 10px 20px;
  margin-right: 14px;
  border: 0;
  border-radius: 8px;
  background: #ef8fa0;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .15s;
}
.apply-form-wrap input[type="file"]::file-selector-button:hover {
  background: #d97289;
}
/* bigger text inputs, larger tap targets for elderly */
.apply-form-wrap .form-grid input[type="text"],
.apply-form-wrap .form-grid input[type="email"],
.apply-form-wrap .form-grid input[type="tel"],
.apply-form-wrap .form-grid input[type="url"],
.apply-form-wrap .form-grid select,
.apply-form-wrap .form-grid textarea {
  font-size: 1.02rem;
  padding: 14px 16px;
  min-height: 52px;
}
.apply-form-wrap .form-grid label {
  font-size: 1rem;
}
.apply-form-wrap .form-grid .actions button {
  min-height: 60px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 40px;
}
@media (max-width: 700px) {
  .apply-form-wrap .choice-grid {
    grid-template-columns: 1fr;
  }
  .apply-form-wrap .form-grid .form-fieldset {
    padding: 16px 14px;
  }
  .apply-form-wrap .form-grid .form-section-head {
    padding: 14px 16px;
  }
}

/* PTA catalog — もっと見る button and activity feed */
.pta-more-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}
.pta-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: 1px solid #c9bda4;
  border-radius: 999px;
  background: #fff;
  color: #3a2f1a;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .1s ease;
}
.pta-more-btn:hover { background: #fbf7ef; border-color: #b09a6f; }
.pta-more-btn:active { transform: translateY(1px); }
.pta-more-arrow { font-size: 16px; line-height: 1; }

.feed-section {
  margin-top: 48px;
}
.feed-section > .list-header { margin-bottom: 16px; }
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feed-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ece6da;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feed-card:hover {
  box-shadow: 0 8px 24px rgba(80, 60, 20, .08);
  transform: translateY(-2px);
}
.feed-card__img {
  aspect-ratio: 16 / 10;
  background: #f4efe5;
  overflow: hidden;
}
.feed-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed-card__body { padding: 14px 16px 18px; }
.feed-card__meta { margin: 0 0 6px; font-size: 12px; color: #8a7f6b; }
.feed-card__title { margin: 0 0 8px; font-size: 16px; line-height: 1.4; color: #2c2416; }
.feed-card__text { margin: 0; font-size: 13px; line-height: 1.6; color: #5c5240; }

/* ============================================================
   Admin Shell — left sidebar + main content layout
   ============================================================ */
.admin-shell {
  --admin-sidebar-w: 240px;
  display: grid;
  grid-template-columns: var(--admin-sidebar-w) 1fr;
  gap: 0;
  align-items: start;
  max-width: 1320px;
  margin: 24px auto 48px;
  padding: 0 20px;
  min-height: calc(100vh - 180px);
}
.admin-shell__sidebar {
  position: sticky;
  top: 16px;
  background: #fff;
  border: 1px solid #ece6da;
  border-radius: 14px;
  padding: 14px 10px;
  box-shadow: 0 2px 10px rgba(80,60,20,.04);
}
.admin-shell__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px 14px;
  border-bottom: 1px solid #f1ecdf;
  margin-bottom: 10px;
}
.admin-shell__brand-title { font-size: 14px; font-weight: 700; color: #2c2416; margin: 0; }
.admin-shell__brand-sub   { font-size: 12px; color: #8a7f6b; margin: 0; }
.admin-shell__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-shell__nav-heading {
  padding: 12px 12px 6px;
  font-size: 11px;
  font-weight: 700;
  color: #a79778;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.admin-shell__nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #3d3220;
  font-size: 14px;
  text-align: left;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.admin-shell__nav-btn:hover { background: #fbf7ef; color: #1f1a10; }
.admin-shell__nav-btn.is-active {
  background: linear-gradient(180deg, #b89a5f, #a2864f);
  color: #fff;
  box-shadow: 0 3px 10px rgba(162,134,79,.25);
}
.admin-shell__nav-btn .admin-shell__nav-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3ecdb;
  border-radius: 6px;
  font-size: 13px;
}
.admin-shell__nav-btn.is-active .admin-shell__nav-icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.admin-shell__nav-btn .admin-shell__nav-badge {
  margin-left: auto;
  background: #e9453b;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  padding: 1px 6px;
  text-align: center;
}
.admin-shell__nav-btn.is-active .admin-shell__nav-badge { background: #fff; color: #a2864f; }

.admin-shell__main {
  min-width: 0;
  padding: 0 0 0 24px;
}
.admin-shell__topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #ece6da;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(80,60,20,.04);
}
.admin-shell__topbar-title { margin: 0; font-size: 18px; font-weight: 700; color: #2c2416; }
.admin-shell__topbar-sub   { margin: 0; font-size: 12px; color: #8a7f6b; }
.admin-shell__topbar-spacer { flex: 1; }

.admin-shell__view { display: none; }
.admin-shell__view.is-active { display: block; }
.admin-shell__view > .panel:first-child { margin-top: 0; }

.req-card { background: #fff; border: 1px solid #ece6da; border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; }
.req-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 10px; }
.req-card__title { font-size: 16px; margin: 0 0 4px; color: #1f1a10; }
.req-card__sub { font-size: 12px; margin: 0; }
.req-card__status { font-size: 12px; font-weight: 700; white-space: nowrap; }
.req-card__body { font-size: 14px; line-height: 1.7; color: #3c3425; }
.req-card__body p { margin: 4px 0; }
.req-card__body code { background: #faf5e8; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.req-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.req-card__approved { background: #f7fbf4; border: 1px solid #d8e8cc; border-radius: 8px; padding: 10px 12px; margin: 10px 0 0; }

.admin-shell__mobile-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #ece6da;
  border-radius: 10px;
  background: #fff;
  color: #2c2416;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .admin-shell {
    grid-template-columns: 1fr;
    padding: 0 14px;
  }
  .admin-shell__sidebar {
    position: static;
    margin-bottom: 14px;
  }
  .admin-shell__sidebar[hidden] { display: none !important; }
  .admin-shell__main { padding-left: 0; }
  .admin-shell__mobile-toggle { display: inline-flex; margin-bottom: 12px; }
}

/* ===== Global Nav (catalog / orgs-catalog) ===== */
.global-nav {
  position: sticky;
  top: 72px;
  z-index: 9;
  background: #ffffffea;
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid #e7e7ea;
}
.global-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.global-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.global-nav__list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #2b2b32;
  text-decoration: none;
  background: #f3f3f6;
  transition: background .18s, color .18s, transform .18s;
}
.global-nav__list a:hover { background: #e7e7ef; transform: translateY(-1px); }
.global-nav__list a.is-current { background: #111; color: #fff; }
@media (max-width: 720px) {
  .global-nav { top: 0; }
  .global-nav__list a { font-size: 12px; padding: 7px 12px; }
}

/* ===== PC/SP 切り替え（全ページ共通） =====
   2026-05-12: iPad 対応のため詳細制御は下部 (line 3000 以降) のレスポンシブ
   ブレイクポイントで実施。ここは default 値のみ。 */
.pc-only { display: block; }
.sp-only { display: none; }

/* ===== もっと見るボタン（カタログ等の追加読み込み用） ===== */
.pta-more-wrap {
  text-align: center;
  margin: 32px 0 8px;
}
.pta-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 999px;
  background: #fff;
  color: #4a3220;
  border: 2px solid #f2a7a7;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(242,167,167,.18);
}
.pta-more-btn:hover {
  background: #f2a7a7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(242,167,167,.3);
}
.pta-more-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}
.pta-more-arrow {
  font-size: 16px;
  font-weight: 700;
}
.pta-more-count {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: #888;
  font-weight: 500;
}

/* ===== カタログ絞り込みボタン（catalog.html）===== */
.filter-action-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.filter-action-buttons .button {
  min-width: 200px;
}
.filter-action-buttons .button.ghost {
  min-width: 140px;
}
@media (max-width: 380px) {
  .filter-action-buttons .button { min-width: 100%; }
  .filter-action-buttons .button.ghost { min-width: 100%; }
}

/* ===== 長文オーバーフロー対策（カード崩れ防止） ===== */
/* 学校名・企業名が極端に長くてもカードレイアウトが崩れないようにする */

/* カタログカード（catalog.html） */
.card-grid .card .name,
.card-grid .school-card .name,
.card-grid .catalog-card .name {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* サポーターカード（catalog 内・supporter-detail等） */
.sd-name,
.supporter-card .name {
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* PTA編集系・申請系 */
.pta-card-name,
.pt-card .name,
.org-card__name {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 紹介文（intro）系: 5行で省略 */
.org-card__intro,
.pta-card-intro,
.supporter-card .intro {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 一般的なテーブル・リスト内のテキスト */
.muted, .form-hint {
  overflow-wrap: break-word;
}

/* 申請一覧テーブル等 */
table td {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ===== 🛡 ロゴサイズ強制制約（多重防御 / 2026-05-06） ===== */
/* 旧 <h1> 構造、新 <div class="site-header__logo-wrap"> 構造の両方をカバー */
.site-header img,
.site-header h1 img,
.site-header__logo-wrap img {
  max-width: 150px !important;
  width: 150px !important;
  height: auto !important;
  display: block;
}
.site-footer__logo img {
  max-width: 240px !important;
  width: 240px !important;
  height: auto !important;
  display: block;
  margin: 0 auto 32px;
}
@media (max-width: 767px) {
  .site-header img,
  .site-header h1 img,
  .site-header__logo-wrap img {
    max-width: 128px !important;
    width: 128px !important;
  }
  .site-footer__logo img {
    max-width: 200px !important;
    width: 200px !important;
  }
}

/* ========================================================
   🛡 Public site-header (LP-style) for pages loading styles.css
   2026-05-06: 40 ページが styles.css のみ読み込み、.gnav 等が無スタイル箇条書きで表示される問題を解消
   ======================================================== */

/* 新構造（site-header__logo-wrap）が含まれている site-header だけを flex に強制 */
.site-header:has(.site-header__logo-wrap) {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 28px;
  background: #f6f6f6;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.site-header__logo-wrap {
  display: flex;
  align-items: center;
}
.site-header__logo-wrap a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* gnav の箇条書きを横並びボタンスタイルに */
.gnav ul {
  list-style: none !important;
  display: flex !important;
  flex-wrap: nowrap;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: flex-end;
  align-items: center;
}
.gnav li {
  margin: 0 !important;
  padding: 0 !important;
}
.gnav a {
  font-size: 13px;
  font-weight: 700;
  color: #6d5b4d;
  text-decoration: none;
  white-space: nowrap;            /* 文字単位の改行を禁止（最重要修正） */
}
.gnav a:hover { color: #4a3a30; }

/* 予約ボタン（緑ピル） */
.gnav-reserve-btn {
  background: #6abf4b !important;
  color: #fff !important;
  padding: 7px 16px !important;
  border-radius: 999px;
  font-size: 13px !important;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.gnav-reserve-btn:hover {
  background: #4ea732 !important;
  transform: translateY(-1px);
}

/* ========================================================
   レスポンシブ ブレイクポイント
   - PC (≥ 1280px):       現行PCナビ（gap 18px, font 13px）
   - iPad横 (1024-1279px): コンパクト1行ナビ（gap 10px, font 12px）
   - iPad縦以下 (≤ 1023px): ハンバーガーメニュー（SP用ナビ流用）
   ======================================================== */
.pc-only { display: block; }
.sp-only { display: none; }

/* --- iPad横（1024-1199px）: 超コンパクト1行ナビ --- */
@media (min-width: 1024px) and (max-width: 1199px) {
  .site-header:has(.site-header__logo-wrap) {
    padding: 0 14px;
  }
  .site-header__logo-wrap img {
    width: 130px !important;
    max-width: 130px !important;
  }
  .gnav ul {
    gap: 8px !important;
  }
  .gnav a {
    font-size: 11px;
  }
  .gnav-reserve-btn {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }
}
/* --- 小型ノートPC（1200-1365px）: コンパクト1行ナビ --- */
@media (min-width: 1200px) and (max-width: 1365px) {
  .site-header:has(.site-header__logo-wrap) {
    padding: 0 18px;
  }
  .gnav ul {
    gap: 14px !important;
  }
  .gnav a {
    font-size: 12px;
  }
  .gnav-reserve-btn {
    font-size: 12px !important;
    padding: 6px 12px !important;
  }
}

/* --- iPad縦以下（≤ 1023px）: ハンバーガー or 超コンパクトナビ --- */
@media (max-width: 1023px) {
  .site-header:has(.site-header__logo-wrap) {
    height: 64px;
    padding: 0 14px;
  }
  /* ハンバーガーHTML(#navArea)がある場合のみ、PCナビを隠してハンバーガーを出す */
  body:has(#navArea) .gnav.pc-only { display: none !important; }
  body:has(#navArea) #navArea.sp-only { display: block !important; }
  /* ハンバーガーHTMLが無いページでは gnav を維持しつつ超コンパクトに */
  body:not(:has(#navArea)) .gnav.pc-only { display: block; }
}

/* --- iPad縦 / モバイル広め（768〜1023px）: gnav 超コンパクト化 + 2行折返し許可 --- */
@media (min-width: 768px) and (max-width: 1023px) {
  body:not(:has(#navArea)) .site-header:has(.site-header__logo-wrap) {
    padding: 8px 12px;
    height: auto !important;
    min-height: 64px;
    flex-wrap: wrap !important;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
  }
  body:not(:has(#navArea)) .site-header__logo-wrap img {
    width: 130px !important;
    max-width: 130px !important;
  }
  body:not(:has(#navArea)) .gnav.pc-only {
    width: 100%;
    flex-basis: 100%;
    margin-top: 6px;
  }
  body:not(:has(#navArea)) .gnav ul {
    gap: 6px 10px !important;
    flex-wrap: wrap !important;
    justify-content: center;
  }
  body:not(:has(#navArea)) .gnav a {
    font-size: 11px;
  }
  body:not(:has(#navArea)) .gnav-reserve-btn {
    font-size: 11px !important;
    padding: 5px 10px !important;
  }
}

/* --- モバイル（≤ 767px） --- */
@media (max-width: 767px) {
  /* このサイズでは #navArea を持たないページは gnav を完全に隠す（旧来の挙動を維持） */
  body:not(:has(#navArea)) .gnav.pc-only { display: none !important; }
}
