/*
  © 2025 MasakeyArt
  このスタイルシートの著作権はMasakeyArtにあります。
  デザインや構造の無断転用・改変を禁止します。
  お問い合わせ: info@masakeyart.net
*/

/* リセットCSS */
/* Eric Meyer’s Reset CSS v2.0 (改良版) */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  /* font: inherit; */
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  /* 文字をなめらかに */
  -moz-osx-font-smoothing: grayscale;

}

a:hover,
a:link,
a:visited {
  text-decoration: none;
  color: #000;
}



ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote::before,
blockquote::after,
q::before,
q::after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a:focus {
  outline: none;
}

/* ボックスサイズをborder-boxに統一 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 画像やメディアをレスポンシブに */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  all: unset;
  cursor: pointer;
}

/* フォントの基本設定 */
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
  overflow-x: hidden;
  background-color: #fff8e1;
  /* クリーム色 */
  margin: 0;
  padding: 0;

}

.wave-section {
  position: relative;
  width: 100%;
  /* height: 800px; */
  overflow: hidden;
}

.wave-wrapper {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  animation: waveLoop 12s ease-in-out infinite;
}

.wave-img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes waveLoop {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(-100%);
  }
}

.title {
  animation: titleview 3s ease-in-out;
  animation-delay: 3s;
  animation-fill-mode: both;
  /* ← 遅延中の見た目を制御（後述） */
  width: 70%;
  margin: 0 auto;
}

@keyframes titleview {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.container {
  position: relative;
  z-index: 0;
}

#glb-container-ukiwa,
#glb-container-starfish,
#glb-container-shell,
#glb-container-wakame {
  position: absolute;
  top: 0;
  width: 350px;
  height: 350px;
  pointer-events: auto;
  z-index: 10;
  cursor: pointer;
}

#glb-container-ukiwa {
  left: 70%;
  animation: oceanitem 12s ease-in-out forwards;
}

#glb-container-starfish {
  left: 10%;
  animation: oceanitem 12s ease-in-out forwards;
}

#glb-container-shell {
  left: 55%;
  /* starfishより右側 */
  animation: oceanitem2 12s ease-in-out forwards;
}

#glb-container-wakame {
  left: 25%;
  animation: oceanitem2 12s ease-in-out forwards;
}

@keyframes oceanitem {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0%);
  }
}

@keyframes oceanitem2 {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(100%);
  }
}



#glb-container-ukiwa canvas,
#glb-container-starfish canvas,
#glb-container-shell canvas,
#glb-container-wakame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.maintext {
  text-align: center;
}

.maintext_copy {
  /* font-weight: 500; */
  position: relative;
  /* font-size: 40px; */
  display: block;
  width: 100%;
  margin: 90px auto 60px;
}

.maintext_honbun {
  font-size: 22px;
  line-height: 1.6;
}

.spon {
  display: none;
}

.surfbtn {
  width: 50%;
  max-width: 480px;
  text-align: center;
  display: block;
  margin: 60px auto 30px;
}

.surfbtn img {
  display: block;
  animation: floatUpDown 3s ease-in-out infinite;
}


@keyframes floatUpDown {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.flower {
  position: fixed;
  /* 画面全体を基準 */
  width: 100px;
  height: 100px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.5);
  z-index: 9999;
  transition: opacity 0.3s ease;
}

@keyframes bounceFlower {
  0% {
    transform: scale(0.5) translateY(0);
  }

  30% {
    transform: scale(1.2) translateY(-10px);
  }

  50% {
    transform: scale(1) translateY(0);
  }

  70% {
    transform: scale(1.05) translateY(-5px);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

.board {
  width: 100%;
  height: 1000px;
  margin: 0 auto;

  background-image:
    /* 1枚目の背景画像のパス */
    url('../images/l.png'),
    /* 2枚目の背景画像のパス */
    url('../images/r.png');

  background-position:
    /* 1枚目の背景画像の表示位置 */
    left 0 center,
    /* 2枚目の背景画像の表示位置 */
    right 0 center;

  background-repeat:
    /* 1枚目の背景画像の設定 */
    no-repeat,
    /* 2枚目の背景画像の設定 */
    no-repeat;

  background-size:
    /* 1、2枚目の背景画像の共通サイズ */
    410px, 400px;

  opacity: 0;
  /* 初期は透明 */
  transition: opacity 2s ease;
  /* フェード用 */
}

.board.visible {
  opacity: 1;
  /* クラスが付いたら表示 */
}



.boardtext {
  font-size: 24px;
  font-weight: 600;
}

.whitebg {
  width: 100%;
  background-color: #fff;
}

.bluebg {
  width: 100%;
  background-color: #a4d4ee;
}

.maintext_copy2 {
  /* font-weight: 500; */
  /* line-height: 1.8;
  font-size: 40px; */
  display: block;
  margin: 0 auto 60px;
}

.maintext_copy img {
  margin: 0 auto;
}

.maintext_copy2 img {
  margin: 0 auto;
}

.tcontainer {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 3rem;
  box-sizing: border-box;
  flex-wrap: wrap;
  align-items: stretch;
}

.itemtextbox {
  background-color: #fff;
  padding: 20px;
}

.titem {
  border: 4px #37D2E7 solid;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s, transform 0.3s;
  flex: 0 0 calc(25% - 20px);
  /* 14px は見た目合わせの微調整 */
}

.titem:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
  transform: translate(0, -8px);
}

.ttext {
  font-size: 14px;
  line-height: 1.8;
}

.tbtn {
  display: block;
  padding: 0.75rem 0.75rem;
  background-color: #37D2E7;
  color: #fff;
  border-radius: 30px;
  width: 150px;
  font-size: 18px;
  margin: 20px auto;
}

.logo {
  display: inline-block;
  text-align: center;
}

footer {
  padding: 1rem;
  font-size: 12px;
  text-align: center;
  padding:10px;
}

.caution {
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  padding: 20px;
}

.pr {
  margin: 30px auto;
  max-width: 760px;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}
.pr img {
    border-radius: 15px;
}

@media screen and (max-width: 480px) {

  /*****************************************************************
     480px以下に適用されるCSS（スマホ用） **********************************************************************************/


  .title,
  .maintext_copy,
  .maintext_copy2,
  .caution {
    padding: 0 20px 0;
  }

  #glb-container-ukiwa,
  #glb-container-starfish,
  #glb-container-shell,
  #glb-container-wakame {
    width: 130px;
    height: 130px;
  }

  #glb-container-ukiwa {
    left: 70%;
  }

  #glb-container-starfish {
    left: 0;
  }

  #glb-container-shell {
    left: 45%;
    /* starfishより右側 */
  }

  #glb-container-wakame {
    left: 15%;
  }

  .maintext_honbun {
    font-size: 16px;
  }

  .surfbtn {
    width: 90%;
    max-width: 480px;
    text-align: center;
    display: block;
    margin: 30px auto 30px;
  }

  .spon {
    display: block;
  }

  .board {
    width: 100%;
    height: 300px;
    margin: 0 auto;

    background-size:
      /* 1、2枚目の背景画像の共通サイズ */
      100px, 100px;
  }


  .maintext_copy2 {
    margin: 0 auto 30px;
  }

  .tcontainer {
    flex-direction: column;
    gap: 20px;
    padding: 1.5rem;
  }

  .titem {
    flex: 0 0 calc(100% - 20px);
    /* 14px は見た目合わせの微調整 */
  }

  .ttext {
    font-size: 18px;
  }

  .logo {
    padding: 2rem;
  }

  footer {
    padding:10px;
  }

  .caution {
    font-size: 8px;
padding: 10px;
  }


}