@import url("https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;500&display=swap");

/* =====================================================
   CSS Variables / Design Tokens
   ===================================================== */
:root {
  --c-text: #3a3a3a;
  --c-bg-alt: #fafafa;
  --c-btn-border: #bababa;
  --c-card-border: #eaeaea;
  --c-divider: #d9d9d9;
  --c-deco-pink: #d29f9f;
  --font: "Zen Old Mincho", serif;
}

/* =====================================================
   Reset / Base
   ===================================================== */
body {
  margin: 0;
}
img {
  width: 100%;
  height: auto;
}
.terrace-page *,
.terrace-page *::before,
.terrace-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.terrace-page {
  position: relative;
  z-index: 1;
  /* padding-bottom: 160px; */
  font-family: var(--font);
  color: var(--c-text);
  background: #fff;
  width: 100%;
  overflow-x: hidden;
}
.terrace-page p {
  margin: 0;
}
.terrace-page img {
  display: block;
}

/* =====================================================
   Shared Utility
   ===================================================== */
.tp-wrap {
  max-width: 1400px;
  margin: 0 auto;
}

/* "詳しく見る" Button */
.btn-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 236px;
  height: 84px;
  border: 1px solid var(--c-btn-border);
  text-decoration: none;
  color: var(--c-text);
  font-size: 14px;
  line-height: 30px;
  background-color: transparent;
  transition:
    background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-detail:hover {
  background-color: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}
.btn-detail:hover .btn-detail__icon {
  filter: invert(1);
}
.btn-detail__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section header image + text overlay */
.sec-header {
  position: relative;
  width: 100%;
  height: 845px;
  overflow: hidden;
}
.sec-header__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sec-header__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}
.sec-header__text {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 358px;
  white-space: nowrap;
  color: #fff;
  font-size: 40px;
  line-height: normal;
  text-align: left;
}

/* Content Item (02 / 03 sections) */
.content-item {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.content-item + .content-item {
  margin-top: 100px;
}
.content-item__header {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.content-item__title-row {
  display: flex;
  align-items: center;
  gap: 30px;
}
.content-item__title {
  font-size: 34px;
  line-height: 1.8;
  white-space: nowrap;
  flex-shrink: 0;
}
.content-item__line {
  flex: 1;
  height: 1px;
  background: var(--c-divider);
  min-width: 0;
}
.content-item__desc {
  font-size: 14px;
  line-height: 30px;
  width: 400px;
}
.content-item__photo-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-item__caption {
  font-size: 16px;
  line-height: 30px;
  color: var(--c-text);
}
.content-item__photo {
  width: 800px;
  height: 640px;
  overflow: hidden;
  position: relative;
}
.content-item__photo img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content item splide slider pagination dots */
.content-item__splide .splide__pagination,
.content-item__photo-wrap > .splide__pagination {
  position: static;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
}
.content-item__splide .splide__pagination__page,
.content-item__photo-wrap > .splide__pagination .splide__pagination__page {
  width: 8px;
  height: 8px;
  background: var(--c-divider);
  opacity: 1;
  border-radius: 50%;
  transform: none;
  transition: background 0.2s;
}
.content-item__splide .splide__pagination__page.is-active,
.content-item__photo-wrap > .splide__pagination .splide__pagination__page.is-active {
  background: #cb5852;
  transform: none;
}

/* Content item splide slider */
.content-item__splide {
  width: 800px;
  position: relative;
}
.content-item__splide .splide__track {
  height: 640px;
}
.content-item__splide .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-item__splide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}
.content-item__splide-arrow--prev {
  left: 16px;
  transform: translateY(-50%) rotate(180deg);
}
.content-item__splide-arrow--next {
  right: 16px;
  transform: translateY(-50%);
}
.content-item__thumbnail-strip {
  width: 800px;
}
.content-item__thumbnail-strip .splide__slide {
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s;
  height: 116px;
  overflow: hidden;
}
.content-item__thumbnail-strip .splide__slide.is-active {
  opacity: 1;
  border: none !important;
}
.content-item__thumbnail-strip .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Link Cards (2-row nav) */
.link-cards {
  background: var(--c-bg-alt);
  margin-top: 176px;
  padding: 100px 0;
}
.link-cards__inner {
  max-width: 797px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.link-cards__inner .btn-detail {
  align-self: flex-end;
}
.link-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--c-card-border);
  height: 171px;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
}
.link-card__img-wrap {
  width: 233px;
  height: 255px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.link-card__img-wrap img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.link-card__body {
  flex: 1;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
}
.link-card__label {
  font-size: 20px;
  line-height: normal;
}
.link-card__arrow {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
}

/* in-view animation */
.in-view {
}
.in-view[data-effect="slideup"] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.in-view[data-effect="slideup"].is-view {
  opacity: 1;
  transform: translateY(0);
}

.in-view[data-effect="rollup"] {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  animation: none;
}
.in-view[data-effect="rollup"].is-view {
  animation: rollup 1.3s cubic-bezier(0.19, 1, 0.22, 1) 0.5s both;
}
@keyframes rollup {
  0% {
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% -1%, 100% 101%, 0 100%);
  }
}

/* =====================================================
   SECTION 1: TOP
   ===================================================== */

/* --- Hero --- */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  height: 100vh;
  overflow: hidden;
}
.hero-splide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-splide .splide__track,
.hero-splide .splide__list,
.hero-splide .splide__slide {
  height: 100%;
}
@keyframes hero-zoom-out {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  will-change: transform;
}

.hero__img.is-zooming {
  animation: hero-zoom-out 9s ease-out forwards;
}
.hero__logo {
  position: absolute;
  left: 80px;
  top: 118px;
  color: #fff;
  line-height: 1;
}
.hero__subtitle {
  display: block;
  font-size: 30px;
  margin-bottom: 4px;
}
.hero__title {
  display: block;
  margin-top: 15px;
  font-size: 80px;
  letter-spacing: -8px;
  text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.4);
}

/* --- Welcome --- */
.welcome {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(416px, 1fr);
  gap: calc(68 / 1400 * 100%);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.welcome__deco {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 178px;
}
.welcome__deco--img01 {
  width: calc(254 / 599 * 100%);
  margin-left: calc(83 / 599 * 100%);
}
.welcome__deco--img02 {
  width: calc(417 / 599 * 100%);
  margin-left: calc(182 / 599 * 100%);
}
.welcome__text {
  margin-top: 149px;
}
.welcome__heading {
  font-size: 40px;
  font-weight: 500;
  line-height: normal;
  margin-bottom: 68px;
}
.welcome__body {
  font-size: 16px;
  line-height: 30px;
}

/* --- Top Content Blocks --- */
/* Each block: image overlaps from top, fafafa band below */
.tpc-block {
  position: relative;
  max-width: 1400px;
  margin: 140px auto 0;
  padding-bottom: 77px;
}

.tpc-block__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  height: 80%;
  background: var(--c-bg-alt);
}

.tpc-block__img {
  width: calc(1099 / 1400 * 100%);
}
.tpc-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tpc-block__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-end;
  width: calc(800 / 1400 * 100%);
  margin: 70px 0 0 calc(300 / 1400 * 100%);
}
.tpc-block__text-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 42px;
}
.tpc-block__heading {
  margin: 0;
  font-size: 40px;
  line-height: normal;
}
.tpc-block__body {
  font-size: 16px;
  line-height: 30px;
}

/* =====================================================
   SECTION 2: 食 (02)
   ===================================================== */

/* Header: 2×2 image grid */
.sec02-header {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.sec02-header__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
  width: 100%;
}
.sec02-header__grid::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.sec02-header__text {
  position: absolute;
  top: 50%;
  left: calc(303 / 1400 * 100%);
  transform: translateY(-50%);
  z-index: 2;
  white-space: nowrap;
  color: #fff;
  font-size: 40px;
  line-height: normal;
  text-align: left;
}

/* Content area wrapper (centering 800px) */
.sec-content {
  padding: 176px 0 0;
}

/* =====================================================
   SECTION 3: 季節 (03)
   ===================================================== */
/* Uses .sec-header for header, .content-item for items */

/* =====================================================
   Responsive: SP (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    height: 528px;
  }
  .hero__logo {
    left: 20px;
    top: 100px;
  }
  .hero__subtitle {
    font-size: 18px;
  }
  .hero__title {
    font-size: 48px;
    letter-spacing: -4px;
  }

  /* Welcome */
  .welcome {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
  }
  .welcome__deco {
    gap: 30px;
    margin-top: 0;
  }
  .welcome__deco--img01 {
    width: calc(179 / 375 * 100vw);
    margin-left: calc(30 / 375 * 100vw);
  }
  .welcome__deco--img02 {
    width: calc(276 / 375 * 100vw);
    margin-left: calc(86 / 375 * 100vw);
  }
  .welcome__text {
    width: 100%;
    margin-top: 0;
    padding: calc(48 / 375 * 100vw);
  }
  .welcome__heading {
    font-size: 32px;
    margin-bottom: 24px;
  }
  .welcome__body {
    font-size: 14px;
  }

  /* Top content blocks */
  .tpc-block {
    height: auto;
    margin-top: 0;
    position: static;
  }
  .tpc-block__bg {
    position: static;
    height: auto;
  }
  .tpc-block__img {
    position: static;
    width: 100%;
    height: 260px;
  }
  .tpc-block__img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }
  .tpc-block__text {
    position: static;
    gap: 32px;
    width: auto;
    margin: 0;
    padding: 48px;
    align-items: flex-start;
  }
  .tpc-block--1,
  .tpc-block--2,
  .tpc-block--3 {
    margin-top: 0;
  }
  .tpc-block--1 .tpc-block__bg,
  .tpc-block--2 .tpc-block__bg,
  .tpc-block--3 .tpc-block__bg {
    top: 0;
    height: auto;
  }
  .tpc-block__heading {
    font-size: 32px;
    font-weight: 500;
  }
  .tpc-block__body {
    font-size: 14px;
  }

  /* Section headers */
  .sec-header {
    height: 260px;
  }
  .sec-header__text {
    font-size: 22px;
    top: 80px;
    white-space: normal;
    width: 90%;
    left: 5%;
    transform: none;
  }

  /* Sec02 header grid */
  .sec02-header {
    height: auto;
  }
  .sec02-header__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    width: 100%;
  }
  .sec02-header__text {
    font-size: 20px;
  }

  /* Content items */
  .content-item {
    max-width: 100%;
    padding: 40px 24px 0;
    gap: 32px;
  }
  .content-item__title {
    font-size: 22px;
    white-space: normal;
  }
  .content-item__desc {
    width: 100%;
  }
  .content-item__photo {
    width: 100%;
    height: 220px;
  }
  .content-item__photo img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  .content-item__splide {
    width: 100%;
  }
  .content-item__splide .splide__track {
    height: 220px;
  }
  .content-item__thumbnail-strip {
    width: 100%;
  }
  .content-item__thumbnail-strip .splide__slide {
    height: 64px;
  }

  /* Link cards */
  .link-cards {
    padding: 48px 24px;
  }
  .link-cards__inner {
    max-width: 100%;
  }
  .link-card {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .link-card__img-wrap {
    width: 100%;
    height: 140px;
  }
  .link-card__img-wrap img {
    width: 100%;
    height: 140px;
  }
  .link-card__body {
    padding: 20px;
  }
  .link-card__label {
    font-size: 16px;
  }

  /* Btn */
  .btn-detail {
    width: 180px;
    height: 60px;
    font-size: 13px;
  }
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  display: grid;
  place-items: center;
  gap: 16px;
  padding: 24px 0;
  text-align: center;
}
.footer__logo {
  width: 150px;
}
.footer__copyright {
  font-size: 10px;
  color: var(--c-text);
}
