@charset "UTF-8";
/* ====================================================================
   top.css — トップページ専用
   ==================================================================== */

/* ==================== First view ==================== */
.fv {
  position: relative;
  z-index: 1;
}

.fv-stage {
  position: relative;
  height: clamp(620px, 100vh, 1000px);
  height: clamp(620px, 100svh, 1000px);
}

.fv-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream);
  /* 写真の下端そのものを消す。アニメーション中の写真と白いグラデーションの端が
     小数点のピクセルでずれると、下端に細い線が見えるため */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent calc(100% - 2px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent calc(100% - 2px));
}

/* 上部ロゴ周りと下端を白くなじませる */
.fv-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse max(440px, 32vw) max(400px, 32vw) at 0 0, rgba(255, 255, 255, 0.95) 55%, rgba(255, 255, 255, 0) 100%), linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0.3) 20%, rgba(255, 255, 255, 0) 34%), linear-gradient(to top, #fff 0, rgba(255, 255, 255, 0) 12%);
}

.fv-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.fv-slide.is-active {
  opacity: 1;
  z-index: 2;
  transition: opacity 1.8s ease;
}

.fv-slide.is-leaving {
  opacity: 1;
  z-index: 1;
}

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

/* 参考サイトと同じ Ken Burns：12秒かけて 1.5 → 1 */
.fv-slide.is-active img,
.fv-slide.is-leaving img {
  animation: fv-kenburns 12s ease-out forwards;
}

@keyframes fv-kenburns {
  from {
    transform: scale(1.5);
  }
  to {
    transform: scale(1);
  }
}

/* 店名ロゴ画像：参考サイトと同じ 2秒のフェード（テキストは alt に持たせる） */
.fv-title {
  position: absolute;
  z-index: 5;
  top: 45%;
  left: 74.3vw;
  width: 36.6vw;
  transform: translate(-50%, -50%);
}

.fv-title__img {
  display: block;
  width: 100%;
  opacity: 0;
  animation: fv-title-up 2s ease 0.6s forwards;
}

/* 画面外にある間はアニメーションを止めておき、戻ってきたら最初から再生する */
.js .fv:not(.is-inview) .fv-title__img,
.js .fv:not(.is-inview) .fv-feature,
.js .fv-links:not(.is-inview) .fv-link {
  animation: none;
}

@keyframes fv-title-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fv-botanical {
  position: absolute;
  left: 0;
  bottom: -3%;
  z-index: 4;
  width: clamp(150px, 15vw, 260px);
  pointer-events: none;
}

/* 特徴の丸（背景は指定色の透明度80%） */
.fv-features {
  position: absolute;
  left: clamp(30px, 5.4vw, 100px);
  bottom: 0;
  z-index: 6;
  display: flex;
  gap: clamp(2px, 0.4vw, 8px);
}

.fv-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: clamp(150px, 15vw, 225px);
  aspect-ratio: 1;
  min-height: 0; /* 中身に合わせて縦に伸びる（楕円になる）のを防ぐ */
  overflow: hidden;
  container-type: inline-size;
  padding: 0; /* 余白は丸の幅（cqi）で中身に持たせる */
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(255, 255, 255, 0.75);
  color: #fff;
  text-align: center;
  opacity: 0;
  animation: fv-feature-in 1.4s ease 0.6s forwards; /* 文字・バナーと同時に表示 */
}

.fv-feature--1 {
  background: rgba(229, 195, 60, 0.8);
}
.fv-feature--2 {
  background: rgba(229, 150, 60, 0.8);
}
.fv-feature--3 {
  background: rgba(221, 107, 36, 0.8);
}
.fv-feature--4 {
  background: rgba(184, 111, 111, 0.8);
}

@keyframes fv-feature-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fv-feature img {
  width: 42%;
  margin-bottom: 3cqi;
}

/* 文字の大きさは丸の幅（cqi）に比例させる */
.fv-feature p {
  padding-inline: 10cqi;
  font-size: 6.5cqi;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(120, 80, 10, 0.35);
}

.fv-feature strong {
  display: block;
  font-size: 8cqi;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 関連サイト：丸の後に下から上へ */
.fv-links {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 6;
  display: grid;
  gap: 2px;
  width: clamp(180px, 15vw, 250px);
}

.fv-link {
  position: relative;
  opacity: 0;
  animation: fv-link-up 1.2s ease 0.6s forwards; /* 文字・特徴の丸と同時に表示 */
}

.fv-links a {
  display: block;
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(255, 255, 255, 0.75);
  transition: filter 0.3s ease;
}

/* バナーを閉じるボタン（top.js で .fv-link ごと削除する。下側を閉じると上側が下へ詰まる） */
.fv-link__close {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
}

.fv-link__close span,
.fv-link__close span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8.4px;
  height: 1.2px;
  margin: -0.6px 0 0 -4.2px;
  background: #2d1002;
  border-radius: 2px;
  transform: rotate(45deg);
}

.fv-link__close span::before {
  content: "";
  top: 0;
  left: 0;
  margin: 0;
  transform: rotate(90deg);
}

.fv-links a:hover {
  filter: brightness(1.06) drop-shadow(0 3px 8px rgba(74, 58, 32, 0.28));
}

@keyframes fv-link-up {
  from {
    opacity: 0;
    transform: translateY(44px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==================== News ==================== */
.top-news {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 50px);
  width: min(1000px, 90%);
  margin: 0 auto;
  padding: clamp(60px, 7vw, 100px) 0 clamp(40px, 5vw, 70px);
}

.top-news__en {
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
  margin-bottom: 5px;
}

.top-news__ja {
  margin-bottom: 14px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.top-news__list li + li {
  margin-top: 2px;
}

.top-news__item {
  display: grid;
  grid-template-columns: 7.5em 8.5em minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  transition: color 0.25s ease;
}

.top-news__item:hover {
  color: var(--gold-deep);
}
.top-news__date {
  color: var(--gold-deep);
}

.top-news__type span {
  display: inline-block;
  padding: 1px 10px;
  border: 1px solid var(--gold);
  border-radius: 2px;
  font-size: 0.7rem;
  color: var(--gold-deep);
  white-space: nowrap;
}

.top-news__deco {
  position: absolute;
  right: -5%;
  bottom: 8px;
  width: clamp(110px, 12vw, 170px);
  pointer-events: none;
}

/* ==================== Mission ==================== */
.top-mission {
  position: relative;
  background: #fffdf7;
}

.top-mission__scene {
  position: relative;
  height: clamp(520px, 68vw, 1100px);
  overflow: hidden;
}

/* デザインに合わせて子どもを左側に配置（左右反転） */
.top-mission__photo {
  -webkit-mask-image: var(--photo-edge-fade);
  mask-image: var(--photo-edge-fade);
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scaleX(-1);
}

.top-mission__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #fff 0, rgba(255, 255, 255, 0) 16%, rgba(255, 253, 247, 0) 80%, #fffdf7 100%);
}

.top-mission__catch {
  position: absolute;
  top: clamp(30px, 6vw, 110px);
  right: clamp(0px, 12vw, 240px);
  z-index: 2;
  font-size: clamp(1.35rem, 3.05vw, 3rem);
}

.top-mission .vertical-catch {
  text-shadow:
    2px 2px 15px #999999,
    2px 2px 15px rgb(23 77 44 / 55%);
}

.top-mission__card {
  position: relative;
  z-index: 3;
  width: min(1000px, 90%);
  margin: calc(clamp(60px, 9.5vw, 170px) * -1) auto 0;
  padding: clamp(46px, 5vw, 76px) clamp(26px, 5.4vw, 84px) clamp(70px, 8vw, 110px);
  background: #bf9a0ec7;
  color: #fff;
}

.top-mission__script {
  position: absolute;
  top: 0;
  left: clamp(-30px, -3vw, -6px);
  font-family: var(--font-script);
  font-size: clamp(3rem, 6.8vw, 6.25rem);
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-62%);
  text-shadow: 0 1px 8px rgba(74, 58, 32, 0.4);
  font-weight: 400;
}

.top-mission__girl {
  position: absolute;
  right: clamp(-46px, -2.5vw, -8px);
  bottom: calc(100% - 26px);
  width: clamp(100px, 11vw, 160px);
  pointer-events: none;
}

.top-mission__card h3 {
  margin-bottom: clamp(18px, 2vw, 30px);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.875rem);
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.top-mission__card p:not(.top-mission__script) + p {
  margin-top: 1.3em;
}
.top-mission__card .link-more {
  margin-top: 24px;
}

.top-mission__flowers {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: clamp(240px, 42vw, 560px);
  transform: translateY(32%);
  pointer-events: none;
}

/* ==================== Services ==================== */
.top-services {
  width: var(--container);
  margin: 0 auto;
  background: #fffdf7;
  box-shadow: 0 0 0 100vmax #fffdf7;
  clip-path: inset(0 -100vmax);
  padding: calc(var(--section-space) + 30px) 0 var(--section-space);
}

.top-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.3vw, 18px);
  margin-top: clamp(30px, 4vw, 50px);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: clamp(160px, 16vw, 230px);
  padding: 26px 8px 22px;
  background: var(--cream);
  border-radius: 2px;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.service-card:hover {
  background: var(--gold-soft);
  transform: translateY(-3px);
}

.service-card__no {
  position: absolute;
  top: 9px;
  left: 12px;
  font-family: var(--font-title);
  font-size: 0.8125rem;
  color: var(--gold);
}

.service-card__arrow {
  position: absolute;
  right: 11px;
  bottom: 6px;
  font-size: 0.875rem;
  color: var(--gold);
}

.service-card h3 {
  font-size: clamp(0.875rem, 1.1vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  letter-spacing: 0.06em;
}

.top-services__action {
  margin-top: clamp(30px, 4vw, 50px);
  text-align: center;
}

/* ==================== Service area ==================== */
.top-area {
  position: relative;
  padding-top: clamp(150px, 14vw, 230px);
  padding-bottom: 1px;
  padding-left: clamp(26px, 5.4vw, 84px);
}

.top-area__scene {
  position: absolute;
  inset: 0 0 0 0;
  overflow: hidden;
  background: #fffdf7;
}

/* デザインに合わせて女の子を右側に配置（左右反転） */
.top-area__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% top;
  transform: scaleX(-1);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 8px, #000 14%, #000 calc(100% - 14px), transparent calc(100% - 2px));
  mask-image: linear-gradient(to bottom, transparent 0, transparent 8px, #000 14%, #000 calc(100% - 14px), transparent calc(100% - 2px));
}

.top-area__scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, #fffdf7 0, rgba(255, 255, 255, 0), #fff 100%);
}

.top-area__catch {
  position: absolute;
  top: clamp(36px, 3.6vw, 60px);
  right: clamp(20px, 15vw, 200px);
  z-index: 2;
  font-size: clamp(1.25rem, 2.9vw, 2.875rem);
}

.top-area__panel {
  position: relative;
  left: 47%;
  transform: translateX(-100%);
  z-index: 3;
  width: min(600px, 44vw);
  padding: clamp(26px, 3.4vw, 50px) clamp(22px, 3vw, 44px) clamp(24px, 2.6vw, 40px);
  background: rgba(255, 255, 255, 0.9);
}

.top-area__panel .section-heading__en {
  letter-spacing: 0.2em;
}
.top-area__panel .section-heading__ja {
  margin-bottom: 14px;
}

.top-area__map {
  position: relative;
  max-width: 470px;
  margin: 6px auto 0;
}

.top-area__legend {
  position: absolute;
  right: 0;
  bottom: 4%;
  display: grid;
  gap: 3px;
  width: fit-content;
}

.top-area__legend li {
  padding: 1px 15px 1px 10px;
  font-size: 1.5rem;
  font-family: var(--font-title);
  font-weight: 700;
  color: #fff;
  line-height: 1.7;
}

.top-area__legend li::before {
  content: "✓";
  margin-right: 4px;
}

.top-area__legend .is-nagasaki {
  background: #f4cf80;
  color: var(--brown);
}
.top-area__legend .is-togitsu {
  background: #6daebf;
}
.top-area__legend .is-nagayo {
  background: #c1924f;
}
.top-area__legend .is-isahaya {
  background: #c96f52;
}

.top-area__girl {
  position: absolute;
  left: clamp(-100px, -3.5vw, -35px);
  bottom: 0;
  width: clamp(90px, 11vw, 165px);
  pointer-events: none;
}

@media (max-width: 1460px) {
  .top-area__catch {
    right: clamp(20px, 15vw, 100px);
  }
}

/* ==================== Concerns ==================== */
.top-concerns {
  padding: var(--section-space) 0 clamp(40px, 5vw, 70px);
  background: linear-gradient(to bottom, #fff 0, #fffdf7 50%, #fffdf7 100%);
  overflow: hidden;
}

.top-concerns__stage {
  position: relative;
  width: min(1125px, 94%);
  aspect-ratio: 1125 / 660;
  margin: clamp(10px, 2vw, 30px) auto 0;
}

.top-concerns__bubble {
  position: absolute;
  width: 35%;
}

.top-concerns__bubble--1 {
  left: 8%;
  top: 0;
}
.top-concerns__bubble--2 {
  left: 58%;
  top: 0;
}
.top-concerns__bubble--3 {
  left: 33%;
  top: 14%;
}
.top-concerns__bubble--4 {
  left: 3%;
  top: 35%;
}
.top-concerns__bubble--5 {
  left: 63%;
  top: 33%;
}

.top-concerns__family {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 67%;
  transform: translateX(-50%);
  opacity: 0.75;
}

.top-concerns__bridge {
  margin-top: clamp(16px, 2vw, 30px);
  padding-inline: 5%;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  line-height: 1.8;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--gold-deep);
}

/* ==================== Responsive ==================== */
@media (max-width: 1100px) {
  .top-area__panel {
    width: min(560px, 54vw);
    left: 0;
    transform: inherit;
  }
}

/* 901〜1000px：First view の高さを固定 */
@media (min-width: 901px) and (max-width: 1000px) {
  .fv-stage {
    height: 600px;
  }

}

/* 1000px 以下：関連リンクのバナーは表示しない */
@media (max-width: 1000px) {
  .fv-links {
    display: none;
  }

  .top-news__deco {
    position: static;
    grid-column: 1 / -1;
    margin: 10px 0 0 auto;
  }

  .top-mission .vertical-catch {
    right: clamp(20px, 5vw, 70px);
  }
}

/* タブレット：丸は1列のまま写真の外へ */
@media (max-width: 900px) {
  .fv-stage {
    height: clamp(620px, 100vh, 760px);
  }

  .fv-title {
    top: calc(50% + 80px);
    left: 50%;
    width: min(560px, 78vw);
  }

  /* 丸の列（写真の下に 60px 重なる。高さは丸の幅 = 96vw の 24%）と下端をそろえる */
  .fv-botanical {
    bottom: calc(60px - 27vw);
    left: 5px;
    z-index: 7;
  }

  .top-news__item {
    grid-template-columns: 6em 6em minmax(0, 1fr);
  }

  .fv-features {
    position: relative;
    left: auto;
    bottom: auto;
    justify-content: center;
    margin-top: -60px;
    padding-inline: 2%;
  }

  .fv-feature {
    width: 24%;
  }

  /* 見出しを解いて並べ替える：1行目 News・新着情報／2行目 一覧／3行目 see more と飾り */
  .top-news {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }
  .top-news__head {
    display: contents;
  }
  .top-news__en,
  .top-news__ja {
    grid-row: 1;
    align-self: baseline;
  }
  .top-news__ja {
    margin: 0;
  }
  .top-news__list {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .top-news__head .link-more {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    align-self: baseline;
  }
  .top-news__deco {
    position: static;
    grid-column: 2;
    grid-row: 3;
    margin: 0 0 0 auto;
  }

  .top-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-card {
    min-height: 170px;
  }
  .service-card .service-icon {
    width: 72px;
  }

  .top-area {
    padding: 0;
  }
  .top-area__scene {
    position: relative;
    height: 520px;
  }
  .top-area .vertical-catch {
    top: 50%;
    right: 50%;
    padding-bottom: 0;
    transform: translate(50%, -50%);
  }
  .top-area__panel {
    left: 0;
    transform: none;
    width: 90%;
    margin: -70px auto 0;
  }
  .top-area__girl {
    left: 2%;
    bottom: auto;
    top: -96px;
    width: 80px;
  }

  /* 吹き出しは文字が読める大きさで千鳥に並べる */
  .top-concerns__stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
  }
  .top-concerns__bubble {
    position: relative;
    left: auto;
    top: auto;
    width: min(440px, 76%);
    margin-block: -5%;
  }
  .top-concerns__bubble:nth-child(odd) {
    align-self: flex-start;
  }
  .top-concerns__bubble:nth-child(even) {
    align-self: flex-end;
  }
  .top-concerns__family {
    position: relative;
    left: auto;
    width: 100%;
    margin-top: 4%;
    transform: none;
  }
}

@media (max-width: 600px) {
  /* 2段に並ぶ丸（42vw×2＋隙間4px、写真の下に 44px 重なる）と下端をそろえる */
  .fv-botanical {
    bottom: calc(20px - 84vw);
    width: 120px;
  }

  .fv-features {
    display: grid;
    grid-template-columns: repeat(2, 42vw);
    gap: 4px;
    justify-content: center;
    margin-top: -44px;
  }

  .fv-feature {
    width: 42vw;
  }

  .top-news__item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .top-news__title {
    grid-column: 1 / -1;
  }
  .top-mission__scene {
    height: 560px;
  }
  .top-mission__catch {
    right: -6px;
    font-size: 145%;
    margin-top: 20px;
  }

  .top-mission__girl {
    bottom: calc(100% - 12px);
    width: 76px;
  }
  .top-mission__script {
    left: -6px;
    font-size: 2.75rem;
  }
  .top-mission__card h3 {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .top-area__scene {
    height: 520px;
  }
  .top-area__photo {
    object-position: 30% 50%;
  }
  .top-area__catch {
    font-size: 1.25rem;
  }
  .top-area__legend {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 8px;
  }
  .top-area__girl {
    top: -100px;
    left: -10px;
    width: 72px;
  }

  .top-concerns__bridge {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
  }
}

@media (max-width: 400px) {
  .top-mission__catch {
    font-size: 125%;
  }
}

/* ==================== 角丸の統一 ==================== */
.fv-links img,
.top-mission__card,
.service-card,
.top-area__panel,
.top-area__legend li {
  border-radius: 2px;
}
