:root {
  --color-text: #333;
  --color-muted: #646464;
  --color-bg: #fff;
  --color-surface: #fff;
  --color-accent: #bc360a;
  --color-accent-soft: #e05d22;
  --color-nav-active: #ea9629;
  --color-contact: #a45c5a;
  --color-line: #e8e5ce;
  --color-top-band: #b64f70;
  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --max-width: 1080px;
  --header-max: 1100px;
  --header-offset: 140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  padding: 0.5rem 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pc-only {
  display: inline-block;
}

.sp-only {
  display: none;
}

/* Header（幅100%・スティック） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--color-surface);
  border-top: 4px solid var(--color-top-band);
  border-bottom: 1px solid var(--color-line);
}

/* スティックヘッダー分、アンカー着地を下げる */
#main [id] {
  scroll-margin-top: var(--header-offset);
}

.site-header__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem 2rem 0;
}

.site-header__tagline,
.site-header__bar,
.site-nav {
  width: 100%;
}

.site-header__tagline {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  color: #9f8583;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand img {
  display: block;
  width: min(320px, 70vw);
  height: auto;
}

.site-header__contact img {
  display: block;
  height: auto;
  max-height: 40px;
  width: auto;
}

.site-header__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  background: #fff;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.site-header__toggle span:first-child,
.site-header__toggle span:first-child::before,
.site-header__toggle span:first-child::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #333;
  margin: 0 auto;
  position: relative;
}

.site-header__toggle span:first-child::before {
  position: absolute;
  top: -6px;
  left: 0;
}

.site-header__toggle span:first-child::after {
  position: absolute;
  top: 6px;
  left: 0;
}

.site-nav {
  margin-top: 0.75rem;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-line);
}

.site-nav__item {
  position: relative;
}

.site-nav__item > a {
  display: block;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 3px solid transparent;
}

.site-nav__item.is-active > a,
.site-nav__item > a[aria-current="page"] {
  color: var(--color-nav-active);
  border-bottom-color: var(--color-nav-active);
}

.site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  z-index: 40;
}

.site-nav__item.has-children:hover > .site-nav__sub,
.site-nav__item.has-children:focus-within > .site-nav__sub {
  display: block;
}

.site-nav__sub a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  color: #555;
}

.site-nav__sub a:hover {
  background: #faf8f0;
  color: var(--color-accent);
}

/* Hero */
.hero {
  background: #111;
}

.hero a,
.hero img {
  display: block;
  width: 100%;
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section__head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.section__head img {
  max-width: 100%;
  height: auto;
}

.section__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #2a2218;
}

.section__rule {
  width: 60px;
  height: 2px;
  background: var(--color-accent);
  margin: 0.75rem auto 0;
  border: 0;
}

.lead-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  background: #fff;
  padding: 1.75rem;
  border: 1px solid var(--color-line);
}

.lead-panel p {
  margin: 0 0 1rem;
}

.btn-read {
  display: inline-block;
}

.btn-read img {
  height: 36px;
  width: auto;
}

/* トップ：認定資格（本番同様：枠なし・丸画像） */
.cert-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 1.5rem 1.75rem;
  margin-top: 1.25rem;
}

.cert-row--3 .cert-item {
  width: calc((100% - 3.5rem) / 3);
  max-width: 280px;
}

.cert-row--2 .cert-item {
  width: calc((100% - 1.75rem) / 2);
  max-width: 280px;
}

.cert-item a {
  display: block;
  color: inherit;
}

.cert-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 0.85rem;
}

.cert-item__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
}

/* トップ：実績（枠なし） */
.feature-row {
  display: flex;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 1.25rem;
}

.feature-item {
  width: calc((100% - 1.75rem) / 2);
  max-width: 420px;
  text-align: center;
}

.feature-item a {
  display: block;
  color: inherit;
}

.feature-item img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
}

.feature-item__label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.news {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.25rem 1.5rem;
}

.news__heading {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news__list li {
  border-top: 1px solid var(--color-line);
}

.news__list a {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  font-size: 0.92rem;
}

.news__date {
  color: var(--color-muted);
}

.news__more {
  margin: 0.85rem 0 0;
  text-align: right;
  font-size: 0.88rem;
}

.news__more a {
  color: var(--color-accent);
}

.news__more a:hover {
  text-decoration: underline;
}

.news--page {
  margin-top: 1.5rem;
}

.news-article__date {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.92rem;
}

.news-article__body {
  margin-top: 1rem;
  line-height: 1.9;
}

.news-article__body img {
  display: block;
  max-width: min(480px, 100%);
  height: auto;
  margin: 1rem auto;
}

.news-article__body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.news-article__body figure {
  margin: 1rem 0;
}

.news-article__back {
  margin-top: 2rem;
}

.news-article__back a {
  color: var(--color-accent);
}

/* Page content */
.page-banner {
  width: 100%;
  background: #c9d9a5;
  border-bottom: 1px solid #b7c88f;
  scroll-margin-top: var(--header-offset);
}

.page-banner__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem 2rem;
}

.page-banner h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #3f6b2f;
}

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
}

.page-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 1.25rem;
}

.page-hero h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.content-block {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.content-heading,
.content-block > h2,
.content-block h2 {
  margin: 0 0 1rem;
  padding: 0.1rem 0 0.65rem 0.65rem;
  border-left: 8px solid #e45a8c;
  border-bottom: none;
  color: #e45a8c;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1.4;
  /* 左バーと下線の接点を切り離す */
  background-image: linear-gradient(#e45a8c, #e45a8c);
  background-size: calc(100% - 14px) 1px;
  background-position: right bottom;
  background-repeat: no-repeat;
}

.content-block h2 + h2,
.content-block h2:not(:first-child) {
  margin-top: 2.5rem;
}

.content-block h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.05rem;
  color: #5a3a2a;
}

.content-block p,
.content-block li {
  font-size: 0.95rem;
}

.content-block ul {
  padding-left: 1.25rem;
}

.content-photo {
  margin: 1.75rem 0 2rem;
}

.content-photo img {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
}

.address-list {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.55rem 1rem;
  margin: 1rem 0 0;
}

.address-list dt {
  margin: 0;
  font-weight: 700;
  color: #5a3a2a;
}

.address-list dd {
  margin: 0;
}

.googlemap {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 920px;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #f3f3f3;
}

.googlemap iframe {
  display: block;
  width: 100%;
  height: 350px;
}

.content-figure {
  margin: 1.25rem 0;
}

.content-figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

.content-figure--right {
  display: flex;
  justify-content: flex-end;
}

.content-figure--right img {
  max-width: min(360px, 100%);
}

.food-edu-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 720px;
}

.food-edu-pair img {
  display: block;
  width: 100%;
  height: auto;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.5rem;
  margin-top: 1.75rem;
}

.school-item {
  text-align: left;
}

.school-item__image {
  display: block;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.school-item__image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.school-item__body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: #444;
}

.school-item__name {
  color: #e05d22;
  font-weight: 700;
  font-size: 0.95rem;
}

.school-item__name:hover {
  color: var(--color-accent);
}

.school-list {
  display: grid;
  gap: 1rem;
}

.school-card {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.25rem 1.4rem;
}

.school-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.school-card p {
  margin: 0;
  color: #555;
  font-size: 0.92rem;
}

/* Gallery */
.gallery-section {
  margin-bottom: 2.5rem;
}

.gallery-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery-grid a {
  display: block;
  background: #fff;
  border: 1px solid var(--color-line);
  overflow: hidden;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

.gallery-grid figcaption {
  padding: 0.45rem 0.6rem 0.6rem;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.4;
}

/* Contact */
.contact-note {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--color-line);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d0cdb8;
  border-radius: 2px;
  background: #fffcf5;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font: inherit;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--color-accent-soft);
}

/* Home slider */
.home-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.home-slider a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-line);
  background: #fff;
}

.home-slider img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-slider a:hover img {
  transform: scale(1.03);
}

/* Footer — match WP theme (bg photo + white logo/info) */
.site-footer {
  margin: 2rem auto 0;
  max-width: 1200px;
  width: 100%;
  background: url("/images/theme/bg-01.jpg") 0 0 no-repeat;
  background-size: 100% 100%;
  color: #000;
}

.site-footer__nav {
  display: flex;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: 972px;
  width: 100%;
  padding: 0 3% 20px;
  font-size: 16px;
}

.site-footer__nav dl {
  text-align: left;
  margin: 85px auto;
}

.site-footer__nav dl:first-of-type {
  width: 20%;
}

.site-footer__nav dl:nth-of-type(2) {
  width: 25%;
}

.site-footer__nav dl:nth-of-type(3) {
  width: 35%;
}

.site-footer__nav dt {
  margin: 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.8;
  color: #000;
}

.site-footer__nav dd + dt {
  margin-top: 2em;
}

.site-footer__nav dd {
  margin: 0 0 0 1.5em;
  font-size: 13px;
  line-height: 1.8;
}

.site-footer__nav a {
  color: #1a3a8c;
}

.site-footer__nav a:hover {
  color: #ea9629;
  text-decoration: underline;
}

.site-footer__logo {
  display: flex;
  justify-content: center;
  margin: 30px auto 10px;
  max-width: 972px;
  width: 100%;
  text-align: center;
}

.site-footer__logo img {
  display: block;
  max-width: min(320px, 90%);
  height: auto;
}

.site-footer__hr {
  height: 0;
  border: 0;
  border-top: 1px solid #b3a3a1;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
}

.site-footer__info {
  margin: 0 auto 20px;
  max-width: 972px;
  width: 100%;
  padding: 0 1rem;
}

.site-footer__copy,
.site-footer__notice {
  margin: 0.55rem 0 0;
  text-align: center;
  line-height: 1.2;
  font-size: 10px;
  color: #000;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.25rem;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 矢印位置を画像幅に依存させない固定スロット */
  width: min(860px, 94vw);
  max-width: 94vw;
  padding: 0 3.25rem;
  box-sizing: border-box;
}

.lightbox__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  max-width: 100%;
  width: fit-content;
  background: #111;
  padding: 0.75rem 0.75rem 0.65rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(62vh, 520px);
  object-fit: contain;
}

.lightbox__caption {
  margin: 0;
  color: #fff;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.4;
}

.lightbox__close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav--prev {
  left: 0.15rem;
}

.lightbox__nav--next {
  right: 0.15rem;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 720px) {
  .lightbox__frame {
    width: 96vw;
    max-width: 96vw;
    padding: 0 2.6rem;
  }

  .lightbox__stage {
    padding: 0.5rem;
  }

  .lightbox img {
    max-height: min(55vh, 420px);
  }

  .lightbox__nav {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 1.35rem;
  }
}

@media (max-width: 900px) {
  .card-grid--3,
  .gallery-grid,
  .home-slider,
  .school-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__nav {
    flex-wrap: wrap;
    padding: 1.5rem 1rem 1rem;
  }

  .site-footer__nav dl {
    margin: 1.25rem 5%;
    width: 40% !important;
  }

  .cert-row--3 .cert-item,
  .cert-row--2 .cert-item {
    width: calc((100% - 1.25rem) / 2);
  }

  .feature-row {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
    max-width: 420px;
  }

  .lead-panel {
    grid-template-columns: 1fr;
  }

  .news__list a {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 720px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline-block;
  }

  .food-edu-pair {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .content-figure--right {
    justify-content: center;
  }

  .site-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    margin: 0.75rem -1.25rem 0;
    border-top: 1px solid var(--color-line);
    background: #fff;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    border-top: 0;
  }

  .site-nav__item > a {
    border-bottom: 1px solid var(--color-line);
  }

  .site-nav__sub {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    background: #faf8f0;
  }

  .card-grid--3,
  .card-grid--2,
  .gallery-grid,
  .home-slider,
  .school-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__nav {
    display: block;
    padding: 1.25rem 1rem 0.5rem;
  }

  .site-footer__nav dl {
    width: 100% !important;
    margin: 1rem 0 1.5rem;
  }

  .site-footer__nav dt {
    font-size: 1.05rem;
  }

  .site-footer__nav dd {
    font-size: 12px;
  }

  .cert-row--3 .cert-item,
  .cert-row--2 .cert-item {
    width: 100%;
    max-width: 320px;
  }
}
