@charset "utf-8";
/* CSS Document */

/* --------------------------------------------------
all
-------------------------------------------------- */
.pc-block {
  display: block;
}
.sp-block {
  display: none;
}
@media screen and (max-width: 700px) {
  .pc-block {
    display: none;
  }
  .sp-block {
    display: block;
  }
}
figcaption {
  font-size: 1.3rem;
  margin-top: .8rem;
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------
food-mv
-------------------------------------------------- */
.food-mv {
  background: none;
  font-size: 1.6rem;
  text-align: left;
  padding: 6.4rem 0;
  position: relative;
}
.food-mv:not(.food02) > .wrapper {
  display: grid;
  grid-template-areas: "txt pht" "list pht";
  grid-template-columns: 1fr 50rem;
  gap: 4rem;
  align-items: end;
}
.food-mv-txt {
  grid-area: txt;
}
.food-mv-pht {
  grid-area: pht;
}
.food-mv-list {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.food-mv-list img,
.food-mv-pht img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.food-mv .feature-label {
  font-size: 1.6rem;
  letter-spacing: .2em;
  color: #8b7a72;
}
.food-mv .main-ttl {
  margin-bottom: 1.6rem;
}
.food-mv .main-ttl img {
  width: 100%;
  max-width: 520px;
  height: auto;
}
.food-mv .lead {
  font-size: 1.6rem;
  line-height: 2.2;
}
.food-mv .lead img {
  width: 100%;
  max-width: 640px;
  height: auto;
}
/* 背景画像なしのMV（index02） */
.food-mv.food02 {
  padding-bottom: 6.4rem 0;
  text-align: center;
  border-top: 2px dashed #d8ced4;
}
.food-mv.food02 .lead img {
  max-width: none;
}
@media screen and (max-width: 1040px) {
  .food-mv {
    padding-top: 4rem;
  }
  .food-mv:not(.food02) > .wrapper {
    grid-template-columns: 1fr 40rem;
    gap: 2.4rem;
  }
}
@media screen and (max-width: 700px) {
  .food-mv-pht {
    width: 31rem;
    margin: 0 auto;
  }
  .food-mv {
    padding-top: 3.2rem;
  }
  .food-mv:not(.food02) > .wrapper {
    grid-template-areas: "txt" "pht" "list";
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .food-mv-list {
    gap: 1.6rem;
  }
  .food-mv .feature-label {
    font-size: 1.4rem;
  }
  .food-mv .main-ttl {
    margin-bottom: 1.6rem;
  }
  .food-mv .main-ttl img {
    max-width: 300px;
  }
  .food-mv .lead {
    font-size: 1.4rem;
    line-height: 2;
  }
  .food-mv.food02 {
    padding: 3.2rem 0;
  }
  .food-mv.food02 .lead {
    text-align: left;
  }
}

/* --------------------------------------------------
contents
-------------------------------------------------- */
#contents {
  margin: 0 0 8rem;
}

/* --------------------------------------------------
food-block
-------------------------------------------------- */
.food-block {
  padding: 6.4rem 0;
  margin: 0;
  border-top: 2px dashed #cfc0c8;
}
.food-block.is-science {
  --accent-bg: #eef7f5;
}
.food-block.is-seminar {
  padding-top: 0;
  border: none;
}
@media screen and (max-width: 700px) {
  .food-block.is-seminar {
    padding-bottom: 0;
  }
}

/* --------------------------------------------------
background
-------------------------------------------------- */
.food-block.is-maizuru,
.food-block.is-sanae,
.food-block.is-primary {
  position: relative;
}
.food-block.is-maizuru::before,
.food-block.is-sanae::before,
.food-block.is-primary::before {
  content: "";
  background: no-repeat center center / contain;
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.food-block.is-maizuru > .wrapper,
.food-block.is-sanae > .wrapper,
.food-block.is-primary > .wrapper {
  position: relative;
  z-index: 1;
}
.food-block.is-maizuru::before {
  background-image: url("img/deco_food-circle01.svg");
  width: 50rem;
  height: 50rem;
  top: 35%;
  right: -10rem;
}
.food-block.is-sanae::before {
  background-image: url("img/deco_food-circle02.svg");
  width: 40rem;
  height: 40rem;
  top: 25%;
  left: 10rem;
}
.food-block.is-primary::before {
  background-image: url("img/deco_food-circle03.svg");
  width: 25rem;
  height: 25rem;
  top: 25%;
  right: 10rem;
}

.food-head {
  margin-bottom: 3.2rem;
}
.food-head .school {
  margin-bottom: 3.2rem;
}
.food-head .school img {
  height: 4rem;
  width: auto;
  display: block;
}
.food-head .food-ttl-sub {
  margin-bottom: 2.4rem;
}
.food-head .food-ttl-sub img {
  height: 6rem;
  width: auto;
  display: block;
}
.food-head .food-ttl {
  font-size: 3rem;
  font-weight: bold;
  line-height: 1.5;
}

/* --------------------------------------------------
food-main
-------------------------------------------------- */
.food-main {
  display: flex;
  gap: 4rem;
  margin-bottom: 4rem;
}
.food-main.is-center {
  align-items: center;
}
.food-main > .txt-part {
  flex: 1;
  min-width: 0;
}
.food-block .txt-part > p + p {
  margin-top: 1.2rem;
}
.food-main > .pht-part {
  width: 31rem;
  flex-shrink: 0;
}
.food-main > .pht-part li + li {
  margin-top: 2.4rem;
}
.food-main + .food-grid {
  margin-top: 0;
}
@media screen and (max-width: 700px) {
  .food-main > .pht-part {
    display: flex;
    width: 100%;
    gap: 1.6rem;
  }
  .food-main > .pht-part li {
    flex: 1;
  }
  .food-main > .pht-part li + li {
    margin: 0;
  }
}

/* --------------------------------------------------
food-grid
-------------------------------------------------- */
.food-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 4rem;
  margin-top: 4rem;
}
.food-grid + .food-grid {
  margin-top: 4rem;
}
.food-grid.g2 {
  grid-template-columns: repeat(2, minmax(0, 42rem));
}
.food-grid.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.food-grid > li {
  min-width: 0;
}
.food-grid:has(.span-cap) {
  gap: .8rem 4rem;
}
.food-grid > li.span-cap {
  grid-column: 1 / -1;
}
.food-grid > li.span-cap p {
  font-size: 1.3rem;
  margin-top: .8rem;
  text-align: center;
  text-wrap: balance;
}
.is-small {
  max-width: 320px;
}
.is-cutout {
  margin: 0 auto;
}
.is-maizuru .food-grid .is-cutout {
  max-width: 260px;
}
@media screen and (min-width: 701px) {
  .food-block.is-dorm .food-grid.g3 > li:nth-child(2) figcaption {
    width: calc(200% + 4rem);
  }
}
@media screen and (max-width: 700px) {
  .food02 .food-block.is-primary .food-grid.g2 > li:last-child figure,
  .food02 .food-block.is-primary .food-grid.g2 > li:last-child figure img {
    height: 100%;
  }
  .food-grid.g3 > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 1.6rem) / 2);
    justify-self: center;
  }
  .food-grid.g3 > li:last-child:has(.is-small) {
    width: 70%;
  }
  .food-grid:has(.span-cap) {
    gap: .8rem 1.6rem;
  }
  .food-grid > li.span-cap,
  .food-grid.g3 > li.span-cap:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: 100%;
    justify-self: stretch;
  }
  .food-block.is-science .food-grid.g3 > li:nth-child(3) {
    grid-column: 1 / -1;
    width: 70%;
    justify-self: center;
  }
  .food-grid .is-small {
    max-width: none;
  }
  .food-block.is-seminar .food-grid.g3 > li:first-child {
    grid-column: 1 / -1;
    width: 100%;
  }
  .food-block.is-seminar .food-grid.g3 > li:last-child:nth-child(odd) {
    grid-column: auto;
    width: auto;
    justify-self: stretch;
  }
}

/* --------------------------------------------------
voice
-------------------------------------------------- */
.voice {
  background: var(--accent-bg);
  border-radius: 20px;
  display: flex;
  gap: 1.6rem;
  padding: 5.6rem 4rem 4rem;
  margin-top: 8rem;
  position: relative;
}
.voice::before {
  content: "";
  background: url("img/ttl_voice.svg") no-repeat center center / contain;
  position: absolute;
  top: -35px;
  left: 20px;
  width: 130px;
  height: 80px;
  z-index: 1;
}
.voice .voice-pht {
  width: 48%;
  flex-shrink: 0;
  display: flex;
  gap: 1.6rem;
}
.voice .voice-lead {
  font-size: 1.9rem;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.voice .voice-name {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-top: 1.6rem;
}
.voice .voice-name .name {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: .8rem;
}

/* --------------------------------------------------
teacher
-------------------------------------------------- */
.teacher {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
}
.teacher .pht {
  width: 150px;
  flex-shrink: 0;
}
.teacher .teacher-txt .belong {
  font-size: 1.4rem;
  line-height: 1.6;
}
.teacher .teacher-txt .name {
  font-size: 2rem;
  font-weight: bold;
  margin-top: .4rem;
}

/* --------------------------------------------------
index01
-------------------------------------------------- */
.food01 figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}
.food01 .is-cutout img,
.food01 .is-duo img {
  aspect-ratio: auto;
  object-fit: fill;
  height: auto;
  border-radius: 0;
}

/* --------------------------------------------------
index02
-------------------------------------------------- */
.food02 figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
}
.food02 .food-grid img {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.food02 .is-junior .food-grid img {
  object-fit: cover;
}
.food02 .voice-pht > li {
  flex: 1 1 0;
  min-width: 0;
}
.food02 .food-block.is-primary::before {
  content: none;
}

/* --------------------------------------------------
responsive
-------------------------------------------------- */
@media screen and (max-width: 700px) {
  #contents {
    margin-bottom: 4rem;
  }
  .food-block {
    padding: 3.2rem 1.6rem;
  }
  .food-block.is-dorm {
    padding-bottom: 8rem;
  }
  .food-main {
    flex-direction: column;
    gap: 2.4rem;
    margin-bottom: 1.6rem;
  }
  .food-main > figure {
    width: 100%;
    margin: 0 auto;
  }
  .food-head {
    margin-bottom: 2.4rem;
  }
  .food-head .school img {
    height: 3rem;
  }
  .food-head .food-ttl-sub img {
    height: 6rem;
  }
  .food-head .food-ttl {
    font-size: 2.2rem;
  }
  .food-block.is-maizuru::before,
  .food-block.is-sanae::before,
  .food-block.is-primary::before {
    width: 18rem;
    height: 18rem;
  }
  .food-block.is-maizuru::before {
    right: -5rem;
  }
  .food-block.is-sanae::before {
    bottom: -5rem;
    left: -6rem;
  }
  .food-block.is-primary::before {
    right: -6rem;
  }
  .food-grid {
    gap: 1.6rem;
  }
  .food-grid + .food-grid {
    margin-top: 1.6rem;
  }
  .food-grid,
  .food-grid.g2,
  .food-grid.g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .voice {
    flex-direction: column;
    border-radius: 1rem;
    padding: 3rem 2rem 2rem;
  }
  .voice::before {
    width: 86px;
    height: 60px;
    top: -40px;
    left: 0;
  }
  .voice .voice-lead {
    font-size: 1.6rem;
  }
  .voice .voice-pht {
    width: 100%;
  }
  .teacher {
    justify-content: flex-start;
  }
  .teacher .pht {
    width: 90px;
  }
  .teacher .teacher-txt .name {
    font-size: 1.8rem;
  }
  .food02 figure img {
    border-radius: .8rem;
  }
}
