/* =========================================================
   top.css（index.html 専用）
   common.css を先に読み込んだ上で使用してください。
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */
@charset "utf-8";

.hero {
  position: relative;
  height: 640px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* ▼画像未差し替え時の仮の背景色（海をイメージしたグラデーション） */
  background-color: #9FC6D8;
  background-image:
    linear-gradient(180deg, rgba(20, 40, 40, .12), rgba(20, 40, 40, .02) 40%),
    linear-gradient(120deg, #cfe6ee 0%, #9fc6d8 45%, #6fa6c2 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, 0) 30%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
}

.hero-copy-en {
  font-family: var(--font-en);
  font-style: italic;
  font-weight: 500;
  font-size: 52px;
  line-height: 1.15;
  color: var(--color-heading);
  margin: 0 0 16px;
  text-shadow: 0 2px 18px rgba(255, 255, 255, .35);
}

.hero-copy-jp {
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--color-heading);
  margin: 0;
}

/* ▼装飾指示：波形の下端。単色SVGで表現。イラレ側で作る場合はこのdivをbackground-image差し替えでOK */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 70px;
  background: var(--color-bg);
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,40 C240,100 480,0 720,30 C960,60 1200,10 1440,50 L1440,100 L0,100 Z'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'><path d='M0,40 C240,100 480,0 720,30 C960,60 1200,10 1440,50 L1440,100 L0,100 Z'/></svg>");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* =========================================================
   CONCEPT（TOPの海と風〜セクション）
   ========================================================= */
.concept-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas:
    "text media"
    "links media";
  gap: 30px 60px;
}

.concept-text {
  grid-area: text;
  align-self: start;
}

.concept-media {
  grid-area: media;
}

.concept-links {
  grid-area: links;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-self: end;
}

.concept-photo {
  width: 100%;
  aspect-ratio: 16/10.5;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  background-color: #DCE7E2;
  /* 仮色 */
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-white);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 8px 24px rgba(60, 50, 30, .06);
}

.mini-card-photo {
  width: 78px;
  height: 60px;
  flex: none;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-color: #CFE0D6;
  /* 仮色 */
}

.mini-card-label {
  font-size: 13.5px;
  color: var(--color-heading);
  font-weight: 500;
}

.mini-card-label small {
  display: block;
  font-size: 11px;
  color: var(--color-text);
  font-weight: 400;
  margin-top: 2px;
}

/* =========================================================
   FACILITIES ICON LIST（TOPの施設・サービス紹介）
   ========================================================= */
.icon-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px 16px;
  background: var(--color-white);
  border-radius: 20px;
  padding: 34px 40px;
  box-shadow: 0 12px 34px rgba(60, 50, 30, .06);
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--color-heading);
}

.icon-sm {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.icon-sm svg {
  width: 14px;
  height: 14px;
}

.wave {
  position: relative;
  height: 200px;
  /*何も表示されない場合は各波の親要素に高さを持たせましょう。*/
}

.wave-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* 波紋の上にマウスが乗ってもリンク操作を邪魔しないように */
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1080px) {
  .hero-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

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

@media (max-width:860px) {
  .hero {
    height: 560px;
  }

  .hero-copy-en {
    font-size: 38px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "media"
      "links";
  }

  .concept-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:520px) {
  .hero-copy-en {
    font-size: 30px;
  }

  .icon-list {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}