@charset "UTF-8";

/* ---------- 基本設定 ---------- */
:root {
  color-scheme: light;
  --text-color: #fff;
  --shadow: 0 2px 14px rgb(0 0 0 / 58%);
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

body {
  margin: 0;
  color: #222;
  font-family: "Kiwi Maru", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.7;
  background: linear-gradient(to bottom,
      #3cb7ff 0%,
      #40f2ff 100%);
  line-height: 2;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("img/揺らめき.png");
  opacity: 0.15;
  animation: waterMove 25s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes waterMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 400px 200px;
  }
}

.align-center {
  text-align: center;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  line-height: 1.55;
  font-weight: 500;
  text-wrap: balance;
}

.logo {
  width: 100%;
  border-style: outset;
  border-color: #b5b5b5;
  border-width: 5px;
  margin: 10px auto;
  display: inline-block;
}

.logo:hover {
  transform: translateY(3px);
}

/* ---------- 画像セクション共通 ---------- */
.tag-img {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: #182b35;
  color: var(--text-color);
}

.scene-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #182b35;
}

.scene-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgb(0 0 0 / 12%) 0%,
      transparent 35%,
      rgb(0 0 0 / 25%) 100%);
  pointer-events: none;
}

.scene-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.honbun {
  z-index: 1;
  align-self: center;
  padding: clamp(1.5rem, 5vw, 5rem);
  line-height: 2;
}

.honbun h2 {
  max-width: 17em;
}

.kino {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.8);
}

.moji02 {
  align-self: start;
  justify-self: center;
  padding-top: clamp(4rem, 10vh, 8rem);
  text-align: center;
  color: #050505;
}

.moji03 {
  justify-self: start;
  text-align: center;
}

.moji04 {
  justify-self: center;
  text-align: center;
  color: #ffffff;
}

.moji05 {
  align-self: start;
  justify-self: center;
  padding-top: clamp(4rem, 10vh, 8rem);
  text-align: center;
}

.moji06 {
  justify-self: end;
  text-align: right;
}

/* ---------- 01：トップ ---------- */
.tag1-img {
  min-height: 100svh;
  text-align: center;
}

.hero-media img {
  animation: hero-zoom 16s ease-out both;
  will-change: transform;
}

.tag1-img .scene-media::after {
  background: linear-gradient(180deg,
      rgb(0 0 0 / 28%) 0%,
      rgb(0 0 0 / 8%) 35%,
      rgb(0 0 0 / 28%) 100%);
}

.lang-select {
  position: absolute;
  z-index: 2;
  top: 1.25rem;
  right: clamp(1rem, 3vw, 2.5rem);
}

.lang-select a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
}

.hero-copy {
  align-self: center;
  justify-self: center;
  padding: 5rem 1.25rem 7rem;
  animation: copy-in 1.1s ease-out both;
}

.title {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  font-weight: 500;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-shadow: var(--shadow);
}

.hukudai {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  letter-spacing: 0.08em;
  text-shadow: var(--shadow);
}

.hero-scroll {
  position: absolute;
  right: 0;
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  left: 0;
  z-index: 2;
}

.down,
.downl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #fff;
  text-decoration: none;
  text-shadow: var(--shadow);
}

.back {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: #fff;
  text-decoration: none;
  text-shadow: var(--shadow);
  background-color: #2222223b;
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 5px 8px;
}

.down {
  font-size: 0.9rem;
}

.scroll-label {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.scroll-arrow {
  display: block;
  font-size: 1.7rem;
  line-height: 1.2;
  animation: arrow-bob 1.8s ease-in-out infinite;
}

.pconly {
  display: inline;
}

.sponly,
.br-sp {
  display: none;
}

.br-pc {
  display: initial;
}

/* 各セクション下部の次へ進むリンク */
.section-next {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 1.5rem;
  left: 0;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.55rem 1rem 0.35rem;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 22%);
  backdrop-filter: blur(3px);
}

/* 画像上の文字を読みやすくする控えめな影 */
.tag2-img .scene-media::after,
.tag3-img .scene-media::after,
.tag4-img .scene-media::after,
.tag5-img .scene-media::after,
.tag6-img .scene-media::after {
  background: linear-gradient(90deg,
      rgb(0 0 0 / 8%) 0%,
      transparent 38%,
      rgb(0 0 0 / 18%) 100%);
}

/* ---------- 07：詳細ページ ---------- */
.detail-section {
  min-height: 100svh;
  align-items: center;
}

.detail-section .scene-media::after {
  background: rgb(0 0 0 / 38%);
}

.detail-content {
  width: min(100% - 2rem, var(--content-width));
  margin: auto;
  padding: 4rem 0 6rem;
  text-align: center;
}

.detail-heading {
  padding: 0 1rem 2rem;
}

.tenji {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2.5vw, 2rem);
  align-items: stretch;
}

.tenji-t {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 2.5vw, 2rem);
  align-items: stretch;
  max-width: 800px;
  margin: 20px auto;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  border-radius: 0.65rem;
  background: rgb(255 255 255 / 94%);
  color: #222;
  text-decoration: none;
  box-shadow: 0 8px 28px rgb(0 0 0 / 20%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.container img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.container span {
  padding: 0 0.75rem 1rem;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 500;
}

.container:hover,
.container:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgb(0 0 0 / 30%);
}

.author-link {
  margin-top: 2.5rem;
}

/* 現在のページ */
.container.opened {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;

}

/* クリック禁止 */
.container.opened a {
  pointer-events: none;
  cursor: not-allowed;
}

/* 禁止マーク */
.container.opened img {
  border: 4px solid #0099ff;
  box-shadow: 0 0 15px rgba(0, 153, 255, .6);
  cursor: not-allowed;
}

/* hover無効 */
.container.opened img:hover {
  transform: none;
}

/* ---------- 作成者情報 ---------- */
.creator-section {
  padding: clamp(3rem, 7vw, 6rem) 1.25rem 1.5rem;
  background: #f5f3ef;
}

.wrapper {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.back-alltenji {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 1rem;
  background: #ffffff4e;
  max-width: 1100px;
  margin: auto;
}

.back-alltenji>h2 {
  margin-bottom: 2rem;
  text-align: center;
}


/*作成者*/
.creator-info {
  text-align: center;
}

.creator-name {
  margin-bottom: 0.8rem;
}

.creator-name-large {
  font-size: 2.3rem;
  letter-spacing: 0.12em;
}

.creator-profile {
  margin: 1.5rem auto;
}

.creator-contact a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.share-buttons p {
  flex-basis: 100%;
  margin-bottom: 0.25rem;
  text-align: center;
}

.share-btn,
.insta-btn {
  display: inline-block;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
}

/* X */
.share-btn.x {
  background: #000;
}

/* LINE */
.share-btn.line {
  background: #06C755;
}

/* Instagram風 */
.insta-btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 30px;
  text-decoration: none;
  color: white;
  font-weight: bold;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  transition: 0.3s;
}

.align-center {
  text-align: center;
}

.btn-yoko {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.creator-link {
  border-radius: 0.5rem;
  overflow: hidden;
}

.creator-link a {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem;
  color: #222;
  text-decoration: none;
}

.creator-link a:hover {
  transform: translateY(2px);
  box-shadow: none;
}

.creator-link-home {
  background: #8ddbe7;
}

.creator-link-urara {
  background: #d8edff;
}

.creator-link-wakayama {
  background: #ceffce;
}

.creator-link-shikoku {
  background: #c8ddfe;
}

.creator-link-sanin {
  background: #eddfff;
}

.creator-link-worldheritage {
  background: #ddf8ff;
}

.creator-link-kodai {
  background: #fff0cb;
}

.btn-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.btn-p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.update-dates {
  width: min(100%, var(--content-width));
  margin: 1.5rem auto 0;
  color: #666;
  font-size: 0.75rem;
  text-align: right;
}

.update-dates p {
  margin: 0.2rem 0;
}

/* ---------- フッター・法的表記 ---------- */
.site-footer {
  padding: 3rem max(1.25rem, calc((100% - var(--content-width)) / 2));
  background: #222;
  color: #eee;
}

.site-footer h2 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.site-footer h3 {
  margin: 2rem 0 0.5rem;
  font-size: 1rem;
}

.site-footer h4 {
  margin: 1rem 0 0.4rem;
  font-size: 0.9rem;
}

.site-footer p {
  font-size: 0.8rem;
  line-height: 1.9;
}

.legal {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.legal p {
  font-size: 0.75rem;
}

.back-tenji {
  max-width: 650px;
  margin: 0 auto;

}

.back-tenji p {
  font-size: large;
  color: #000;
  font-size: 18px;
  line-height: 4;
}


.region-story {
  width: 100%;
  max-width: 900px;
  margin: 30px auto 0;
  border-radius: 28px;
  box-shadow:
    0 15px 15px rgba(0, 0, 0, 0.20);
  overflow: hidden;
  color: #fff;
}

.asset-modal-01 {
  position: relative;
  background-color: #1c79ca;
  /* 藍色 */
  overflow: hidden;
}

.asset-modal-01::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/青海波.jpg");
  background-size: cover;
  opacity: 0.08;
  pointer-events: none;
}

.asset-modal-01>* {
  position: relative;
  z-index: 1;
}

.asset-modal-01 h3 {
  color: #a4f2ff;
  line-height: 1.8;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  font-size: 30px;
  font-weight: 500;
}

.asset-modal-02 {
  position: relative;
  background-color: #468148;
  /* 抹茶色 */
  overflow: hidden;
}

.asset-modal-02::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/麻の葉.png");
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}

.asset-modal-02>* {
  position: relative;
  z-index: 1;
}

.asset-modal-02 h3 {
  color: #c1ff71;
  line-height: 1.8;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  font-size: 30px;
  font-weight: 500;
}

.asset-modal-03 {
  position: relative;
  background-color: #906e00;
  /* 白よりの水色 */
  overflow: hidden;
}

.asset-modal-03::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/モザイク模様.jpg");
  background-size: cover;
  opacity: 0.2;
  pointer-events: none;
}

.asset-modal-03>* {
  position: relative;
  z-index: 1;
}

.asset-modal-03 h3 {
  color: #ffe79d;
  line-height: 1.8;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  font-size: 30px;
  font-weight: 500;
}

/* スマホでは画像 → 文章 */

.story-image {
  width: 100%;
}

.story-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}


/* 文章 */

.story-text {
  padding: 35px 25px 40px;
}

.story-text h2 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.4;
}

.story-text p {
  font-size: 16px;
  margin: 30px 0;
}

.highlight {
  margin-top: 30px;
  padding: 20px;
  border-left: 5px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.10);
  font-size: 18px;
  font-weight: 400;
}

.exhibition-gallery {
  position: relative;
  max-width: 900px;
  margin: 30px auto;
  padding: 0 5px;
  margin-inline: auto;
  border-radius: 5px;
}

.exhibition-gallery__grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.exhibition-gallery__grid::-webkit-scrollbar {
  display: none;
}

.exhibition-gallery__item {
  flex: 0 0 220px;
  min-width: 0;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  scroll-snap-align: start;
}

.exhibition-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.exhibition-gallery__item:hover img {
  transform: scale(1.04);
}

/* 左右の操作ボタン */
.exhibition-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  color: #333;
  font-size: 24px;

  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.exhibition-gallery__arrow--prev {
  left: 8px;
}

.exhibition-gallery__arrow--next {
  right: 8px;
}

.exhibition-gallery__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.exhibition-gallery__arrow:focus-visible {
  outline: 2px solid #967291;
  outline-offset: 3px;
}

.exhibition-gallery__item:focus-visible,
.exhibition-gallery__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}


/* ========================================
   拡大モーダル
======================================== */

.exhibition-gallery__modal[hidden],
.exhibition-gallery__caption[hidden] {
  display: none;
}

.exhibition-gallery__modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.exhibition-gallery__modal-inner {
  position: relative;
  width: min(100%, 1000px);
  max-height: 100%;
  margin: auto;
  padding: 44px 0 24px;
}

.exhibition-gallery__close {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  z-index: 10;
  cursor: pointer;
}

.exhibition-gallery__modal-image {
  display: block;
  width: 100%;
  max-height: 65vh;
  margin: 0 auto;

  object-fit: contain;
}

.exhibition-gallery__caption {
  margin-top: 20px;
  color: #fff;
  text-align: left;
}

.exhibition-gallery__modal-title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.exhibition-gallery__modal-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.exhibition-gallery__modal-inner {
  position: relative;
  width: min(100%, 1000px);
  margin: auto;
  padding: 44px 0 24px;
}

.exhibition-gallery__modal-arrow {
  position: absolute;
  top: 35%;
  z-index: 2;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 25px;
  cursor: pointer;
}

.exhibition-gallery__modal-arrow--prev {
  left: 8px;
}

.exhibition-gallery__modal-arrow--next {
  right: 8px;
}

.exhibition-gallery__counter {
  margin-top: 2px;
  color: #aaa;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.exhibition-gallery__current {
  color: #fff;
}

.exhibition-gallery__modal-arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ========================================
   立地・費用
======================================== */
.economy-menu a {
  color: #000;
  font-weight: bold;
}

.economy-menu a:hover {
  color: #3d76c1;
}

.asset-modal-04 {
  position: relative;
  background-color: #183b5f;
  /* 藍色 */
  overflow: hidden;
}

.asset-modal-04::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/魚アイコン.png");
  background-size: contain;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.asset-modal-04>* {
  position: relative;
  z-index: 1;
}

.asset-modal-04 h3 {
  color: #b2cae1;
  line-height: 1.8;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  font-size: 30px;
  font-weight: 500;
}

.asset-modal-05 {
  position: relative;
  background-color: #183b5f;
  /* 藍色 */
  overflow: hidden;
}

.asset-modal-05::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("img/地下鉄のフリーアイコン.png");
  background-size: contain;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
}

.asset-modal-05>* {
  position: relative;
  z-index: 1;
}

.asset-modal-05 h3 {
  color: #b2cae1;
  line-height: 1.8;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  font-size: 30px;
  font-weight: 500;
}

/*Q&A*/
.qa-section-ex {
  position: relative;
  overflow: hidden;
  margin: 0 auto 150px;
}

.qa-section {
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  margin: auto;
}

/* 流水紋風背景 */
.qa-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  animation: flow 20s linear infinite;
  z-index: 0;
}

@keyframes flow {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.qa-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
}

.qa-item {
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.qa-item.show {
  opacity: 1;
  transform: translateY(0);
}

.qa-q {
  font-size: 20px;
  letter-spacing: 0.1em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding-left: 20px;
  color: #000;
  margin-bottom: 5px;
  font-family: "Kiwi Maru", serif;
  font-weight: 300;
  font-style: normal;
  text-decoration: underline;
  text-align: center;
}

.qa-q::before {
  content: "Q";
  margin-right: 8px;
  font-size: 20px;
}

.qa-a {
  margin: 10px auto 0;
  max-width: 450px;
  padding-left: 32px;
  font-size: 16px;
  line-height: 2;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s ease;
  color: #000;
  position: relative;
  font-family: "Kiwi Maru", serif;
  font-weight: 300;
  font-style: normal;
}

.qa-a.open {
  opacity: 0.95;
  max-height: 1000px;
}

.qa-a::before {
  content: "A.";
  position: absolute;
  transform: translateX(-30px);
  margin-right: 8px;
  font-size: 16px;
}

/* 水紋エフェクト */
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: radial-gradient(circle,
      rgba(255, 255, 255, 0.25) 0%,
      rgba(255, 255, 255, 0.1) 40%,
      transparent 70%);
  animation: ripple-effect 1.2s ease-out;
  /* ←ゆっくりに */
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(5);
    /* ←広がりも大きく */
    opacity: 0;
  }
}

.map-area {
  position: relative;
  flex: 1;
}

.map {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

/* =======================
   アイコン（スマホ）
======================= */
/* アイコンを地図上に戻す */
.icons {
  position: absolute;
  inset: 0;
  display: block;
  background: none;
  width: 100%;
}

.icon {
  position: absolute;
  z-index: 1;
  width: 40%;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  cursor: pointer;
  animation: float-sp 4s ease-in-out infinite;
}

.icon:hover {
  z-index: 100;
}

.icon1 {
  --x: 15%;
  --y: 30%;
}

.icon2 {
  --x: 20%;
  --y: 70%;
}

.icon3 {
  --x: 50%;
  --y: 20%;
}

.icon4 {
  --x: 55%;
  --y: 77%;
}

.icon5 {
  --x: 79%;
  --y: 26%;
}

.icon6 {
  --x: 85%;
  --y: 70%;
}

.icon:nth-child(2) {
  animation-delay: 0.3s;
}

.icon:nth-child(3) {
  animation-delay: 0.75s;
}

.icon:nth-child(4) {
  animation-delay: 0.1s;
}

.icon:nth-child(5) {
  animation-delay: 0.5s;
}

.icon:nth-child(6) {
  animation-delay: 1s;
}

@keyframes float-sp {

  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  50% {
    transform: translate(-50%, -60%);
  }
}

.icon img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
}

.icon:hover img {
  transform: scale(1.1);
}

.icon.active {
  pointer-events: auto;
}

.icon::after {
  content: attr(data-text);
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  transition: 0.3s;
  white-space: nowrap;
}

.icon.active:hover::after {
  opacity: 1;
}

.modal-data {
  display: none;
}

/* 背景 */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  z-index: 9999;

}

/* 表示時 */

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 本体 */

.modal-content {
  width: min(90%, 700px);
  max-height: 80vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  font-family: "Kiwi Maru", serif;
  font-weight: 300;
  font-style: normal;
  animation: modalIn .3s ease;
}

.voice {
  border-radius: 48%;
  border: #000 1.5px solid;
  padding: 20px;
  margin: 2px;
  animation: float-v 6s ease-in-out infinite;
}

@keyframes float-v {

  0%,
  100% {
    transform: translate(0%, 0%);
  }

  50% {
    transform: translate(0%, -10%);
  }
}

/* 閉じる */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: none;
  font-size: 2rem;
  cursor: pointer;
}

/* アニメーション */

@keyframes modalIn {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

/*費用*/
.cost-card {
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 30px 20px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .1);
  text-align: center;
}

.cost-card p {
  font-family: "Kiwi Maru", serif;
  font-weight: 300;
  font-style: normal;
}

.cost-price {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: bold;
  color: #0084c8;
  margin-bottom: 10px;
}

.cost-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.cost-text {
  line-height: 2;
}

.cost-list {
  display: inline-block;
  text-align: left;
  line-height: 2.2;
  padding-left: 20px;
}

.pdf-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #0084c8;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  transition: .3s;
}

.pdf-btn:hover {
  transform: translateY(-3px);
}

.fade-up {
  opacity: 0;
  transform: translateY(60px);
  transition: all .8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   関連プロジェクト
======================================== */

/* カード */
.content-card {
  background: #fff;
  border-radius: 25px;
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}

/* 画像 */
.card-image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* タイトル */
.card-text h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

/* 本文 */
.card-text p {
  font-size: 1rem;
  line-height: 1.8;
}

.modal-link {
  padding-left: 8px;
  padding-right: 8px;
  max-width: 100%;
}

.modal-link a {
  color: #000;
  background-color: #c3f2ff;
}

.modal-link a:hover {
  color: #fff;
  background-color: #587d87;
}

/* ---------- アニメーション ---------- */
@keyframes hero-zoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes arrow-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

/* ---------- スマートフォン ---------- */
@media (max-width: 720px) {
  .tag-img {
    height: 100svh;
  }

  .scene-media img {
    object-position: center;
  }

  .honbun {
    padding: 1.5rem 1.25rem;
  }

  .honbun h2 {
    max-width: 14em;
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .right-center {
    align-self: center;
    justify-self: end;
    max-width: 92%;
  }

  .left-bottom {
    padding-bottom: 7rem;
  }

  .right-top {
    padding-top: 5.5rem;
  }

  .top-center {
    padding-top: 5.5rem;
  }

  .title {
    font-size: clamp(2.5rem, 11vw, 4.2rem);
    line-height: 1.55;
  }

  .hukudai {
    font-size: 1rem;
    line-height: 1.9;
  }

  .pconly,
  .br-pc {
    display: none;
  }

  .sponly,
  .br-sp {
    display: initial;
  }

  .hero-scroll {
    bottom: 1.5rem;
  }

  .section-next {
    bottom: 1rem;
    font-size: 0.82rem;
  }

  .detail-content {
    width: min(100% - 1.5rem, 520px);
    padding: 0;
  }

  .detail-heading {
    padding-bottom: 1.5rem;
  }

  .tenji {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .tenji-t {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .container {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 0;
    text-align: left;
  }

  .container img {
    height: 88px;
    aspect-ratio: auto;
  }

  .container span {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .author-link {
    margin-top: 1.75rem;
  }

  .creator-section {
    padding: 2rem 0.75rem 1rem;
  }

  .back-alltenji {
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
  }

  .btn-yoko {
    grid-template-columns: 1fr;
  }

  .creator-link a {
    min-height: 68px;
  }

  .site-footer {
    padding: 2.5rem 1.1rem;
  }

}

/* ---------- デスクトップ ---------- */
@media (min-width:720px) {
  .logo {
    width: 700px;
  }

  .lang-select {
    font-size: medium;
  }

  .moji02 {
    justify-self: start;
    text-align: right;
  }

  .moji03 {
    justify-self: start;
    text-align: center;
  }

  .moji04 {
    align-self: start;
    justify-self: end;
    padding-top: clamp(4rem, 10vh, 8rem);
    text-align: right;
  }

  .moji05 {
    align-self: start;
    justify-self: center;
    padding-top: clamp(4rem, 10vh, 8rem);
    text-align: center;
  }

  .moji06 {
    justify-self: end;
    text-align: right;
  }

  .container {
    padding-left: 8px;
    padding-right: 8px;
    max-width: 450px;
    margin: 0;
  }

  .container img {
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 5px 5px 5px #8a8a8a;
  }

  .container-tenji {
    display: flex;
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
  }

  .region-story {
    display: grid;
    grid-template-columns:
      1fr 1fr;
    min-height: 500px;
    border-radius: 35px;
  }

  .story-image {
    height: 100%;
  }

  .story-image img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .story-text {
    display: flex;
    flex-direction: column;
    padding: 30px;
  }

  .story-text h3 {
    margin-bottom: 10%;
  }

  .story-text h2 {
    font-size: 38px;
  }

  .story-text p {
    font-size: 17px;
  }

  .exhibition-gallery__grid {
    gap: 20px;
  }

  .exhibition-gallery__modal {
    padding: 40px;
  }

  .exhibition-gallery__modal-image {
    max-height: 70vh;
    transform: translateY(-50px);
  }

  .exhibition-gallery__counter {
    transform: translateY(-30px);
  }

  .exhibition-gallery__modal-arrow--prev {
    left: -56px;
  }

  .exhibition-gallery__modal-arrow--next {
    right: -56px;
  }

  .exhibition-gallery__caption {
    transform: translateY(-35px);
  }

  /*立地・費用*/

  .story-05 .story-image {
    order: 2;
  }

  .story-05 .story-text {
    order: 1;
  }

  .railway {
    width: 50%;
    margin: auto;
  }

  .qa-q {
    padding-left: 7px;
  }

  .qa-section {
    padding: 80px 0 0;
  }

  /* アイコンを地図上に戻す */
  .icons {
    position: absolute;
    inset: 0;
    display: block;
    background: none;
  }

  .icon {
    position: absolute;
    z-index: 1;
    width: 25%;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    animation: float-pc 4s ease-in-out infinite;
  }

  .icon1 {
    --x: 30%;
    --y: 26%;
  }

  .icon2 {
    --x: 30%;
    --y: 70%;
  }

  .icon3 {
    --x: 50%;
    --y: 20%;
  }

  .icon4 {
    --x: 50%;
    --y: 77%;
  }

  .icon5 {
    --x: 70%;
    --y: 26%;
  }

  .icon6 {
    --x: 70%;
    --y: 70%;
  }

  .icon:hover {
    z-index: 100;
  }

  .icon:nth-child(2) {
    animation-delay: 0.3s;
  }

  .icon:nth-child(3) {
    animation-delay: 0.75s;
  }

  .icon:nth-child(4) {
    animation-delay: 0.1s;
  }

  .icon:nth-child(5) {
    animation-delay: 0.5s;
  }

  .icon:nth-child(6) {
    animation-delay: 1s;
  }

  @keyframes float-pc {

    0%,
    100% {
      transform: translate(-50%, -50%);
    }

    50% {
      transform: translate(-50%, -54%);
    }
  }

  .map {
    width: 60%;
    height: 60%;
    margin: auto;
  }

  .flex {
    display: flex;
  }

  .flex-l,
  .flex-r {
    width: 50%;
  }

  .flex-l {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /*関連プロジェクト*/
  .content-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 35px;
    gap: 40px;
  }

  .card-image {
    width: 35%;
    flex-shrink: 0;
  }

  .card-image img {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .card-text {
    width: 65%;
  }

  .card-text h2 {
    font-size: 2.5rem;
  }

  .card-text p {
    font-size: 1.15rem;
  }
}



/* 動きを控えたい端末ではアニメーションを止める */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .exhibition-gallery__grid {
    scroll-behavior: auto;
  }

  .exhibition-gallery__item img {
    transition: none;
  }
}