/* リセット */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e0f7fa;
  background: linear-gradient(#0b1a2a, #050d18);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;

  background: url("background.jpg");
  opacity: 0.25;

  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  ackdrop-filter: blur(2px);
  background: radial-gradient(

    ellipse at center,
    rgba(0,0,0,0) 65%,
    rgba(0,10,30,0.6) 100%
  );
}


/* ===== ヒーロー ===== */
.hero {
   position: relative;
  background: linear-gradient(90deg, #0b2a4a, #0a1f36);
  padding: 40px 10% 20px;
  overflow: hidden;
}


.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;

}

.left {
  max-width: none;
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.right {
  position: static;
  z-index: 1;
}

.right img {
  position: absolute;
  top: 50%;
  left: 70%;  /* 画像と文字のかぶり具合 */
  transform: translate(-50%, -50%);
  width: 60vw;
  max-width: none;
  height: auto;
  z-index: 1;
}

h1 {
  font-size: 52px;
  margin: 0 0 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1.15;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.4),
    0 0 6px rgba(255, 255, 255, 0.2);
}

.subtitle {
  margin-bottom: 50px;
  font-size: 16px;
  color: #dcebf2;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.3),
    0 0 4px rgba(255, 255, 255, 0.15);
}

.synopsis {
  margin-bottom: 50px;
　padding: 0 5px 20px;
  font-size: 12px;
  color: #dcebf2;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.3),
    0 0 4px rgba(255, 255, 255, 0.15);
    width: 30vw;
}



/* ===== リンクエリア ===== */
.section {
  margin-bottom: 24px;
}

.label {
  margin-bottom: 10px;
  font-size: 16px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4fdcff;
  border-radius: 50%;
  margin-right: 8px;

  box-shadow:
   0 0 3px rgba(79, 220, 255, 0.9),
   0 0 8px rgba(79, 220, 255, 0.6),
   0 0 16px rgba(79, 220, 255, 0.3);
}

/* リスト */
ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 16px;
}

li {
  margin-bottom: 4px;
  font-size: 14px;
}

/* リンク */
a {
  color: #e0f7fa;
  text-decoration: underline;
  text-decoration-color: rgba(0, 234, 255, 0.3);
}

a:hover {
  color: #ffffff;
}


/* ===== 矢印 ===== */

.toggle {
  background: none;
  border: none;
  font-size: 16px;
  color: #00eaff;
  text-shadow:
    0 0 4px rgba(79, 220, 255, 0.8),
    0 0 10px rgba(79, 220, 255, 0.5),
    0 0 18px rgba(79, 220, 255, 0.3);
  cursor: pointer;
  margin-top: 60px;
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.3s;
}

.toggle.open {
  transform: rotate(180deg);
}


/* ===== 画像 ===== */
.right img {
  max-width: 400px;
  height: auto;
}

/* ===== 下のエリア ===== */
.info {
  background: #f5f5f5;
  color: #112f4f;
  padding: 10px 10% 40px;
}


.info a{
  color: #112f4f;
  text-decoration-color: rgba(11, 26, 42, 0.3);
}

.info .content ul {
  list-style: none;
  padding-left: 0;
}

.content {
  display: none;
  margin-top: 20px;
}

.content.open {
  display: block;
  margin-top: 20px;
}

.content ul {
  list-style: disc;
  margin-left: 20px;
}

ul {
  list-style: none;
  padding-left: 0;
}

li::before {
  content: " ";
  display: inline-block;
  width: 0;
  height: 0;

  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #112f4f;

  margin-right: 8px;
}


/* ===== ギャラリー部分 ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列 */
  gap: 10px; /* 余白 */
  max-width: 800px; /* 全体の幅（調整OK） */
  margin: 40px auto; /* 中央寄せ */
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* トリミングして綺麗に */
  transition: transform 0.3s ease;
}

.gallery a:hover img {
  transform: scale(1.05);
}


/* 非アクティブを弱める */
.gallery.dimmed .item {
  opacity: 0.4;
  filter: blur(1px);
  transition: 0.3s;
}

.gallery.dimmed .item.active {
  opacity: 1;
  filter: none;
}

.item {
  position: relative;
}


/* オーバーレイ */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 20, 40, 0.6);
  color: #cfe9ff;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  letter-spacing: 0.05em;
  opacity: 0;
  transition: 0.3s;

}

/* 表示状態 */
.item.active .overlay {
  opacity: 1;
}



/* ↓ここに追加していく */

@media (max-width: 768px) {

  .hero::before {
    background: linear-gradient(
      to right,
      rgba(10, 30, 50, 0.95) 0%,
      rgba(10, 30, 50, 0.8) 40%,
      rgba(10, 30, 50, 0.4) 65%,
      rgba(10, 30, 50, 0) 85%
    );
  }

  .hero {
    min-height: 70vh;
  }

  .hero-inner {
    display: flex;
    flex-direction: row; /*  */
    text-align: left;        
  }

 .left {
    max-width: 90%;
  }

 .right {
    width: 80%;
    display: flex;
    justify-content: flex-end; /* ←右に寄せる */
  }

  .right img {
　  position: absolute;
    top: 50%;
    left: 55%; 
    transform: translate(-45%, -55%) translateX(20%); /* ←右にはみ出す・上にずらす※ min-height: 70vh;と連動しているので注意 */
    width: 130vw;   /* はみ出す量の大きさ */
    max-width: none;
    height: auto;
  }

  .label {
    font-size: 15px;
  }

  h1 {
    font-size: 40px;
    line-height: 1.2;
    white-space: normal;
  }

  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
   margin: 40px auto; 
  }
}

  .sp-only {
    display: inline;
    display: none;
  }

  .pc-only {
    display: none;
  }
