@font-face {
  font-family: 'Underwood319';
  src: url('/assets/font/Underwood319.ttf') format('truetype');
}

html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
  background: #fff;
}

.parallax-bg {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('/assets/img/sky.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: scroll;
  background-size: cover;
  z-index: 0;
}

.trademark {
  position: fixed;
  z-index: 0;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  pointer-events: none;
  max-width: 220px;
  min-width: 220px;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
}

.trademark img {
  width: 100%;
  height: auto;
  display: block;
}

.content {
  position: relative;
  z-index: 1;
  margin-top: 100vh;
  background: #fff;
  min-height: 300vh;
}

.content::after {
  content: "";
  position: fixed;
  bottom: 0;
  right: 0;
  width: 90vw;
  height: auto;
  background-image: url('/assets/img/hibinami_mark.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom right;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 1.2s ease;
}

.content.show-watermark::after {
  opacity: 0.1;
}

.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px;
}

.card {
  width: 90vw;
  max-width: 640px;
  height: auto;
  background-color: #fff;
  border-radius: 10px;
  /*box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 16px;
}

.icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
}

.icon-wrapper img {
  width: 100%;
  height: 100%;
  opacity: 0.6;
  transition: opacity 0.3s;
  cursor: pointer;
}

.icon-wrapper:hover img,
.icon-wrapper:focus-within img {
  opacity: 1;
}

@keyframes fadeInTooltip {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.tooltip {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgb(82 79 79 / 92%);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  text-align: left;
  min-width: 180px;
  max-width: 240px;
  white-space: normal;
  word-break: break-word;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  pointer-events: none;
  opacity: 0;
  animation: fadeInTooltip 0.25s ease-out forwards;
}
.tooltip img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  opacity: 0.85;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}
.tooltip p {
  margin: 0;
  padding-top: 4px;
  line-height: 1.5;
}
.icon-wrapper:hover .tooltip,
.icon-wrapper:focus-within .tooltip {
  display: block;
}

.google-map-container {
  border-radius: 10px;
  margin: 5px;
  max-width: 100%!important;
  min-height:250px!important;
  position: relative;
  z-index: 1;
}

.google-map-container iframe {
  display: block;
  margin:0;
  border-radius: 10px;
  width: auto;
  height: 200px;
  border: none;
}

@media screen and (min-width: 375px) and (max-width: 376px) and (orientation: portrait) {
  .trademark {
    top: 7vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 150px;
    min-width: 150px;
  }
  .card {
    width: 80vw;
    max-width: 480px;
  }
  .google-map-container {
    width:50%;
  }
}
@media screen and (min-width: 376px) and (max-width: 668px) and (orientation: landscape) {
  .trademark {
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 150px;
    min-width: 150px;
  }
  .about-button-wrapper {
    top: 60%!important;
  }
  .card {
    width: 80vw;
    max-width: 480px;
  }
  .google-map-container {
    width:60%;
  }
}


@media screen and (min-width: 766px) and (max-width: 1026px) and (orientation: portrait) {
  .trademark {
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 150px;
    min-width: 150px;
  }
  .card {
    width: 80vw;
    max-width: 480px;
  }
  .google-map-container {
    width:60%;
  }
}

@media screen and (min-width: 766px) and (max-width: 1026px) and (orientation: landscape) {
  .trademark {
    top: 6vh;
    left: 50%;
    transform: translateX(-50%);
    max-width: 150px;
    min-width: 150px;
  }
  .trademark,
  .about-button-wrapper {
    z-index: 10; /* モーダルより低く設定 */
  }
  .card {
    width: 75vw;
    max-width: 520px;
  }
  .google-map-container {
    width:50%;
  }
}
@media screen and (max-width: 480px) {
  .about-modal-content {
    max-width: 90vw;
    max-height: 85vh;
    padding: 16px;
    font-size: 0.9em;
  }
}
.fujiyama-syndrome {
  display: flex;
  flex-direction: row;
  height:200px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 0px;
  flex-wrap: wrap;

}
.fujiyama-syndrome img {
  width: 128px;
  height: 128px;
}
.fujiyama-text {
  font-family: 'Underwood319', monospace;
  font-size: 1.4em;
  color: #333;
  line-height: 0.98em;
  white-space: normal;
}  
.fujiyama-syndrome p {
  font-size: 1.5em;
  margin-top: 16px;
  color: #444;
  line-height: 1.6;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.section-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%; /* セクションの余白 */
}
.section-stack > * {
  width: 100%;
  max-width: 800px;
}

.about-button-wrapper {
  position: fixed;
  top: 50%; /* トレードマークの下に配置 */
  left: 50%;
  transform: translateX(-50%);
  z-index: 11;
  pointer-events: auto;
  transition: opacity 0.5s ease;
}

.about-button-wrapper.hidden {
  opacity: 0;
}

.about-button {
  background: rgba(255, 255, 255, 0.3);
  color: #000;
  border: 0px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 20px 32px;
  font-size:1.5em;
  font-family: 'Underwood319', sans-serif;      
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.about-button:hover {
  background: rgba(255, 255, 255, 0.7);
}
.trademark,
.about-button-wrapper {
  opacity: 0; /* ← 初期状態を非表示に */
}
.about-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  transition: opacity 0.5s ease;
}

.about-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  font-family: sans-serif;
  animation: fadeInModal 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.about-modal.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.about-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  padding: 30px;
  position: relative;
  font-family: sans-serif;
  animation: fadeInModal 0.5s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-message {
  margin-top: 10px;
  text-align: center;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.about-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition: opacity 0.2s;
  z-index: 1;
}

.about-modal-close:hover {
  opacity: 0.6;
}

.about-message {
  margin-top: 10px;
  text-align: center;
}
.about-message h1 {
  font-size: 1.4em;
  margin-bottom: 0.5em;
  
}
.about-message p {
  font-size: 1em;
  line-height: 1.6;
}
/**
  * 波情報のスタイル
  */
.weather-wave-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  border-radius: 10px;
  background:rgb(255, 255, 255);
  margin-bottom: 0px;
  margin-top: 50px;
}
.wave-icons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.wave-icon {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}
.wave-condition img {
  height: 64px;
  width: auto;
}
.wave-icons:only-child {
  justify-content: center;
}
.wave-icons:has(img:nth-child(2)) {
  justify-content: center;
}
/* 天気アイコンの1個1個の表示調整 */
.weather-icon {
  font-size: 24px;
  line-height: 1;
  text-align: center;
  cursor: default;
}
/* 天気バー全体の表示枠 */
.weather-bar {
  display: flex;
  gap: 8px;
  padding: 8px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow-x: auto;
  white-space: nowrap;
}
/* 時間表示部分 */
.weather-icon .small {
  font-size: 12px;
  color: #333;
  margin-top: 2px;
}
.villa-maps-card {
  margin: 30px auto 0 auto;
  padding: 18px 16px 22px 16px;
  max-width: 720px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #0001;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.villa-title {
  font-size: 1.3em;
  margin-bottom: 2px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.05em;
}
.villa-desc {
  font-size: 1em;
  color: #555;
  text-align: center;
  margin-bottom: 6px;
}
.villa-map-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.villa-map-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}
.villa-map-label {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 2px;
  color: #286f7a;
  text-align: center;
  width: 100%;
}
.villa-map-item iframe {
  display: block;
  margin: 0 auto;
  width: 100%;
  min-height: 170px;
  height: 480px;
  max-width: 520px;
  border-radius: 10px;
  border: none;
  background: #f4f8fa;
}
@media (max-width: 768px) {
  .villa-maps-card { padding: 8px 2vw 12px 2vw; }
  .villa-map-item iframe { min-height: 140px; height: 140px; }
}
/* 風向アイコンのサイズ・表示調整 */
.wind-arrow {
  width: 48px;       /* 必要に応じて変更 */
  height: 48px;
  display: inline-block;
  transform-origin: 50% 50%;
  vertical-align: middle;
}

/* 文字コントラスト微調整（任意） */
#wave-detail-dialog b { color:#111827; }