.car-ogata-layout {
  --ogata-navy: #26343a;
  --ogata-gold: #c89a2b;
  --ogata-gold-pale: #fff9e6;
  --ogata-blue-pale: #eef5f7;
  --ogata-border: #e3e7e8;
}

.car-ogata-page {
  padding-bottom: 84px;
}

.ogata-hero {
  position: relative;
  min-height: 330px;
  padding: 0;
  overflow: hidden;
  background: var(--ogata-navy);
  border-bottom: 0;
}

.ogata-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 39, 44, 0.97) 0%, rgba(27, 39, 44, 0.82) 47%, rgba(27, 39, 44, 0.18) 100%);
  content: "";
}

.ogata-hero > img {
  width: 100%;
  height: 330px;
  object-fit: cover;
}

.ogata-hero__copy {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: clamp(24px, 6vw, 54px);
  width: min(72%, 620px);
  transform: translateY(-50%);
  color: #fff;
}

.ogata-hero .ogata-eyebrow {
  margin: 0 0 14px;
  color: #e8c66f;
  font-family: Poppins, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ogata-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.7rem, 4.2vw, 2.65rem);
  line-height: 1.45;
}

/* H1の補足（料金・期間・校数）。guide-common.css の
   .guide-page-header h1 span は #744d56 なので、紺色ヒーローの上では
   読めない。ここで金色に上書きする（/car/ogata/ と /car/ogata2/ で共用）。 */
.ogata-hero h1 span {
  display: block;
  margin-top: 8px;
  color: #e8c66f;
  font-size: 0.46em;
  font-weight: 700;
  line-height: 1.6;
}

.ogata-nowrap {
  white-space: nowrap;
}

.ogata-hero__copy > p:last-child {
  margin: 16px 0 0;
  font-weight: 700;
}

.car-ogata-guide {
  color: var(--ogata-navy);
}

.ogata-intro {
  padding: clamp(24px, 4vw, 38px);
  background: #fff;
  border: 1px solid #d6dfe2;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(38, 52, 58, 0.08);
}

.ogata-intro > p:not(.guide-intro__definition) {
  margin-bottom: 0;
}

.ogata-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.ogata-quick-links a {
  display: grid;
  min-height: 52px;
  padding: 10px;
  place-items: center;
  background: var(--btn-plain-bg, #fff);
  border: 1px solid var(--btn-plain-border, #d8dcdd);
  border-radius: 8px;
  color: var(--btn-plain-text, #2d3436);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.ogata-quick-links a:last-child {
  background: var(--btn-order-bg, #ff6b35);
  border-color: transparent;
  color: var(--btn-order-text, #fff);
}

.car-ogata-guide .guide-section {
  border-bottom: 1px solid #ebebeb;
}

.ogata-vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.ogata-vehicle-card {
  padding: 26px;
  border: 1px solid var(--ogata-border);
  border-radius: 14px;
}

.ogata-vehicle-card--can {
  background: #f2f8f4;
  border-top: 5px solid #3c8b61;
}

.ogata-vehicle-card--caution {
  background: #fff7f4;
  border-top: 5px solid #c76b50;
}

.ogata-vehicle-card h3 {
  margin: 0 0 15px;
  font-size: 1.15rem;
}

.ogata-vehicle-card ul {
  margin: 0;
  padding-left: 1.25em;
}

.ogata-spec-list {
  margin: 20px 0 0;
  border-top: 1px solid #cedbd3;
}

.ogata-spec-list > div {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  justify-content: space-between;
  border-bottom: 1px solid #cedbd3;
}

.ogata-spec-list dt {
  font-size: 0.82rem;
  font-weight: 700;
}

.ogata-spec-list dd {
  margin: 0;
  font-weight: 800;
}

.ogata-merit-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.ogata-merit-list li {
  padding: 18px 20px;
  background: var(--ogata-blue-pale);
  border-radius: 10px;
}

.ogata-merit-list li strong {
  display: block;
  margin-bottom: 6px;
}

.ogata-merit-list li p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
}

.ogata-merit-list li a {
  color: #245c72;
  font-weight: 700;
}

.ogata-flow-steps {
  display: grid;
  margin: 26px 0 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.ogata-flow-steps li {
  display: grid;
  padding: 18px 20px;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--ogata-border);
  border-radius: 12px;
}

.ogata-flow-steps__num {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--ogata-navy);
  border-radius: 50%;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-weight: 700;
}

.ogata-flow-steps h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.ogata-flow-steps p {
  margin: 0;
  color: var(--guide-muted);
}

.ogata-important-box,
.ogata-benefit-note,
.ogata-special-rule {
  margin-top: 24px;
  padding: 24px;
  background: var(--ogata-gold-pale);
  border-left: 5px solid var(--ogata-gold);
  border-radius: 0 12px 12px 0;
}

.ogata-important-box p,
.ogata-benefit-note p,
.ogata-special-rule p {
  margin: 0;
}

.ogata-important-box p + p,
.ogata-benefit-note p + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eadcae;
}

.ogata-benefit-note h3,
.ogata-special-rule h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.ogata-price-source-note,
.ogata-school-notice {
  margin: 24px 0;
  padding: 18px 20px;
  background: #f5f7f8;
  border-left: 4px solid #87969d;
  border-radius: 0 10px 10px 0;
}

.ogata-price-source-note strong {
  display: block;
  margin-bottom: 6px;
}

.ogata-price-source-note p,
.ogata-school-notice p {
  margin: 0;
  color: var(--guide-muted);
  font-size: 0.88rem;
}

.ogata-price-table {
  min-width: 650px;
}

.ogata-price-table thead th {
  background: #2d3436;
  color: #fff;
}

.ogata-price-table tbody tr:nth-child(even) th,
.ogata-price-table tbody tr:nth-child(even) td {
  background: #f7f9f9;
}

.ogata-price-table td {
  white-space: nowrap;
}

.ogata-link-row,
.ogata-official-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ogata-link-row {
  margin-top: 20px;
}

.ogata-link-row a,
.ogata-official-links a {
  color: #245c72;
  font-weight: 700;
  text-underline-offset: 3px;
}

.ogata-school-region {
  border: 1px solid var(--ogata-border);
  border-radius: 8px;
  overflow: hidden;
}

.ogata-school-region + .ogata-school-region {
  margin-top: 16px;
}

.ogata-school-region > summary {
  display: flex;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--ogata-navy);
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.ogata-school-region > summary::-webkit-details-marker {
  display: none;
}

.ogata-school-region > summary::after {
  flex-shrink: 0;
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
}

.ogata-school-region[open] > summary::after {
  content: "\2212";
}

.ogata-school-region__label {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ogata-school-region__label h3 {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
}

.ogata-school-region__count {
  color: #cfd8da;
  font-size: 0.78rem;
  font-weight: 700;
}

.ogata-school-region > .ogata-school-grid {
  padding: 18px;
}

.ogata-school-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ogata-school-card {
  display: flex;
  min-width: 0;
  padding: 22px;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--ogata-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(38, 52, 58, 0.07);
}

.ogata-school-card__prefecture {
  align-self: flex-start;
  margin: 0 0 10px !important;
  padding: 4px 9px;
  background: var(--ogata-blue-pale);
  border-radius: 999px;
  color: #536970;
  font-size: 0.72rem;
  font-weight: 800;
}

.ogata-school-card h4 {
  margin: 0 0 14px;
  font-size: 1.06rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ogata-school-card__note {
  margin: 0 0 16px !important;
  color: var(--guide-muted);
  font-size: 0.78rem;
}

.ogata-school-card .guide-button {
  width: 100%;
  margin-top: auto;
}

.ogata-requirement-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.ogata-requirement-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 16px;
  background: var(--ogata-blue-pale);
  border-radius: 10px;
}

.ogata-requirement-list dt {
  font-weight: 800;
}

.ogata-requirement-list dd {
  margin: 0;
}

.ogata-official-links {
  margin-top: 18px;
  font-size: 0.82rem;
}

.ogata-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.ogata-related-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ogata-border);
  border-radius: 14px;
}

.ogata-related-grid h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.ogata-related-grid p {
  margin: 0 0 14px;
}

.ogata-related-grid a {
  color: #245c72;
  font-weight: 700;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .ogata-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ogata-hero,
  .ogata-hero > img {
    height: 360px;
  }

  .ogata-hero > img {
    object-position: 64% center;
  }

  .ogata-hero::after {
    background: linear-gradient(0deg, rgba(27, 39, 44, 0.98) 0%, rgba(27, 39, 44, 0.76) 62%, rgba(27, 39, 44, 0.18) 100%);
  }

  .ogata-hero__copy {
    top: auto;
    right: 22px;
    bottom: 28px;
    left: 22px;
    width: auto;
    transform: none;
  }

  .ogata-vehicle-grid,
  .ogata-school-grid,
  .ogata-requirement-list,
  .ogata-related-grid {
    grid-template-columns: 1fr;
  }

  .ogata-vehicle-card,
  .ogata-important-box,
  .ogata-benefit-note,
  .ogata-special-rule,
  .ogata-school-card,
  .ogata-related-grid article {
    padding: 20px;
  }

  .ogata-school-region + .ogata-school-region {
    margin-top: 14px;
  }

  .ogata-school-region > .ogata-school-grid {
    padding: 16px;
  }

  .ogata-requirement-list > div {
    grid-template-columns: 78px 1fr;
  }

  .ogata-flow-steps li {
    padding: 16px;
    grid-template-columns: 34px 1fr;
  }

  .ogata-flow-steps__num {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 420px) {
  .ogata-hero h1 {
    font-size: 1.55rem;
  }

  .ogata-hero__copy > p:last-child {
    font-size: 0.86rem;
  }

  .ogata-quick-links {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ogata-quick-links a {
    min-height: 46px;
  }

  .ogata-spec-list > div {
    display: block;
  }

  .ogata-spec-list dd {
    margin-top: 3px;
  }
}
