/* =========================================================
   Unicorn
   PDF layout reproduction
   - 1ページ目：ビジュアル＋Service＋Contact
   - 2ページ目：施設概要
========================================================= */

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

html {
  margin: 0;
  padding: 0;
  background: #ddd;
}

body {
  margin: 0;
  padding: 0;
  background: #ddd;
  color: #111;
  font-family:
    Arial,
    "Helvetica Neue",
    "Noto Sans JP",
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}


/* =========================================================
   PAGE
========================================================= */

.unicorn {
  width: 100%;
}

.page {
  width: min(100%, 1200px);
  margin: 0 auto;
  background: #fff;
}

.page-01 {
  min-height: 100vh;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  position: relative;
  aspect-ratio: 1016 / 535;
  min-height: 480px;
  overflow: hidden;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, .38),
      rgba(0, 0, 0, .04) 75%
    ),
    linear-gradient(
      0deg,
      rgba(0, 0, 0, .32),
      transparent 55%
    );
}

.hero-copy {
  position: absolute;
  inset: 0;
  padding: 6.5% 5.5% 5.5%;
  display: flex;
  flex-direction: column;
}

.hero-en {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.35vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 {
  margin: auto 0 3.8%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(80px, 12vw, 170px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.04em;
}

.hero-message {
  margin: 0;
  font-size: clamp(16px, 1.85vw, 27px);
  font-weight: 700;
  line-height: 1.45;
}


/* =========================================================
   SERVICE AREA
========================================================= */

.service-area {
  display: grid;
  grid-template-columns: 27.5% 72.5%;
  min-height: 780px;
}


/* LEFT PHOTOS */

.service-gallery {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  min-height: 780px;
  overflow: hidden;
}

.gallery-item {
  margin: 0;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}


/* RIGHT SERVICE */

.service-panel {
  padding: 8% 6.5% 6.5%;
  background: #fff;
}

.service-panel h2 {
  margin: 0 0 9%;
  text-align: center;
  font-size: clamp(35px, 4vw, 55px);
  line-height: 1;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid #999;
  border-left: 1px solid #999;
}

.service-card {
  min-height: 295px;
  padding: 38px 20px 28px;
  text-align: center;
  border-right: 1px solid #999;
  border-bottom: 1px solid #999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card h3 {
  margin: 0 0 28px;
  font-size: clamp(23px, 2.6vw, 34px);
  line-height: 1.15;
  font-weight: 700;
}

.service-card p {
  margin: 0;
  min-height: 54px;
  font-size: clamp(15px, 1.7vw, 22px);
  line-height: 1.45;
  white-space: nowrap;
}

.service-icon {
  width: 82px;
  height: 82px;
  margin-top: auto;
  object-fit: contain;
}


/* =========================================================
   CONTACT
========================================================= */

.contact {
  background: #8b8b8b;
  color: #fff;
}

.contact-inner {
  min-height: 125px;
  padding: 18px 9%;
  display: flex;
  align-items: center;
  gap: 45px;
}

.contact-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 3.3vw, 45px);
  line-height: 1;
  white-space: nowrap;
}

.qr {
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  background: #fff;
  padding: 6px;
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: clamp(15px, 1.75vw, 23px);
  line-height: 1.4;
}


/* =========================================================
   PAGE 02 / FACILITY TABLE
========================================================= */

.page-02 {
  background: #fff;
}

.facility-table {
  width: 100%;
}

.facility-row {
  display: grid;
  grid-template-columns: 23.5% 76.5%;
  margin: 0;
  border-left: 1px solid #aaa;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

.facility-label {
  display: flex;
  align-items: center;
  padding: 25px 28px;
  background: #ececec;
  border-right: 1px solid #aaa;
  font-size: clamp(17px, 1.8vw, 25px);
  font-weight: 700;
  line-height: 1.4;
}

.facility-value,
.facility-description {
  padding: 25px 28px;
  font-size: clamp(16px, 1.75vw, 24px);
  line-height: 1.55;
}


/* Intro row */

.facility-intro {
  min-height: 285px;
}

.facility-intro .facility-label {
  background: #fff;
}

.facility-description {
  font-size: clamp(16px, 1.65vw, 22px);
  line-height: 1.5;
}

.facility-description p {
  margin: 0 0 17px;
}

.facility-description p:last-child {
  margin-bottom: 0;
}


/* Regular rows */

.facility-row:not(.facility-intro) .facility-value {
  min-height: 100px;
  display: flex;
  align-items: center;
}

.facility-row:nth-child(odd):not(.facility-intro) .facility-value,
.facility-row:nth-child(odd):not(.facility-intro) .facility-label {
  background: #ececec;
}


/* Access */

.facility-value.access {
  display: block !important;
  padding-top: 21px;
  padding-bottom: 21px;
}

.access p {
  margin: 0 0 6px;
}

.access p:last-child {
  margin-bottom: 0;
}


/* Services */

.facility-value.services {
  display: grid !important;
  grid-template-columns: repeat(3, auto);
  gap: 8px 22px;
  align-content: center;
  font-size: clamp(14px, 1.45vw, 21px);
}

.services span {
  display: block;
}


/* Contact URL */

.contact-url {
  font-size: clamp(15px, 1.7vw, 23px);
  word-break: break-all;
}

.contact-url a {
  text-decoration: none;
}

.contact-url a:hover {
  text-decoration: underline;
}


/* =========================================================
   FOOTER
========================================================= */

.page-footer {
  min-height: 135px;
  padding: 15px 8%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  background: #8b8b8b;
  color: #fff;
}

.page-footer img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.page-footer span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 4.5vw, 60px);
  line-height: 1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .hero {
    min-height: 430px;
  }

  .service-area {
    grid-template-columns: 1fr;
  }

  .service-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 260px;
    min-height: 260px;
  }

  .service-panel {
    padding: 55px 6%;
  }

  .service-panel h2 {
    margin-bottom: 45px;
  }

  .facility-row {
    grid-template-columns: 27% 73%;
  }

  .facility-intro {
    min-height: auto;
  }

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


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  body {
    background: #fff;
  }

  .page {
    width: 100%;
  }

  .hero {
    aspect-ratio: auto;
    height: 500px;
    min-height: 0;
  }

  .hero-copy {
    padding: 28px 6% 30px;
  }

  .hero-en {
    font-size: 15px;
  }

  .hero h1 {
    margin-bottom: 28px;
    font-size: 76px;
  }

  .hero-message {
    font-size: 16px;
    line-height: 1.65;
  }


  /* Service */

  .service-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 190px);
  }

  .service-panel {
    padding: 45px 5%;
  }

  .service-panel h2 {
    margin-bottom: 35px;
    font-size: 38px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
    padding: 30px 15px;
  }

  .service-card h3 {
    margin-bottom: 15px;
    font-size: 25px;
  }

  .service-card p {
    min-height: 0;
    font-size: 15px;
    white-space: normal;
  }

  .service-icon {
    width: 65px;
    height: 65px;
    margin-top: 22px;
  }


  /* Contact */

  .contact-inner {
    min-height: 105px;
    padding: 15px 5%;
    gap: 15px;
  }

  .contact-title {
    font-size: 25px;
  }

  .qr {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
    padding: 4px;
  }

  .contact-address {
    font-size: 11px;
  }


  /* Facility */

  .facility-row {
    grid-template-columns: 31% 69%;
  }

  .facility-label {
    padding: 18px 13px;
    font-size: 14px;
  }

  .facility-value,
  .facility-description {
    padding: 18px 13px;
    font-size: 13px;
    line-height: 1.65;
  }

  .facility-intro {
    display: block;
  }

  .facility-intro .facility-label {
    border-right: 0;
    border-bottom: 1px solid #aaa;
  }

  .facility-intro .facility-description {
    padding-top: 20px;
  }

  .facility-row:not(.facility-intro) .facility-value {
    min-height: 72px;
  }

  .facility-value.services {
    display: block !important;
  }

  .services span {
    margin-bottom: 7px;
  }

  .services span:last-child {
    margin-bottom: 0;
  }

  .wide {
    display: none;
  }


  /* Footer */

  .page-footer {
    min-height: 100px;
    padding: 12px 6%;
    gap: 14px;
  }

  .page-footer img {
    width: 50px;
    height: 50px;
  }

  .page-footer span {
    font-size: 38px;
  }
}
