/* ===== カラーテーマ設定 ===== */
:root {
  --bg: #0e0e16;
  --card: #15151f;
  --text: #eaeaf0;

  --main: #7bdcff;
  --sub: #b388ff;
  --accent: #ffb3d9;
}

/* ===== 全体フォント ===== */
body {
  font-family: 'Kosugi Maru', sans-serif;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(123,220,255,0.12), transparent 40%),
    linear-gradient(180deg, #0e0e16 0%, #0b0b12 100%);
}

/* ===== 家マークボタン ===== */
.home-button {
  position: fixed;
  bottom: 20px;      /* 下からの距離 */
  right: 20px;       /* 右からの距離 */
  z-index: 1000;
  color: var(--main);
  background: rgba(21, 21, 31, 0.6); /* ← 半透明 */
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
}

.home-button:hover {
  transform: scale(1.1);
  filter: brightness(1.2);
  box-shadow: 0 6px 16px rgba(123,220,255,0.6);
}

.home-button svg {
  display: block;
}

/* スマホも右下固定にしたいのでメディアクエリで位置は変更しない */


/* ===== セクション ===== */
section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  scroll-margin-top: 80px; /* ヘッダー分のずれ防止 */
}

/* ===== 見出し ===== */
h1, h2, h3 {
  font-family: 'Kosugi Maru', sans-serif;
}

/* ===== ヒーロー ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.hero img {
  max-height: 60vh;
  filter: drop-shadow(0 0 30px rgba(123,220,255,0.35));
}

/* ===== プロフィールカード ===== */
.profile-card {
  position: relative;
  max-width: 960px;
  margin: 40px auto 0;
  padding: 40px;
  background: var(--card);
  border-radius: 20px;
  border-top: 4px solid var(--main);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.profile-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row;
}

.profile-image img {
  width: 240px;
  border-radius: 14px;
  filter: drop-shadow(0 0 25px rgba(123,220,255,0.35));
}

.profile-text {
  max-width: 520px;
  text-align: left;
  line-height: 1.8;
}

/* SNSリンク（ボタン風） */
.profile-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  justify-content: flex-start;
}

.profile-links a {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--main), var(--sub));
  color: #000;
  font-weight: normal;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.profile-links a:hover {
  filter: brightness(1.1);
}

/* ===== Credits Card ===== */
.credits-card {
  margin-top: 28px;
  padding: 18px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  border-left: 3px solid var(--main);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

.credits-card h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--main);
}

.credits-card p {
  margin: 0;
  opacity: 0.8;
}

/* ===== 動画16:9レスポンシブ ===== */
.movie-embed {
  position: relative;
  width: 80%;          /* PC版の幅 */
  max-width: 900px;    /* 最大幅 */
  margin: 100px auto 40px auto; /* 上下に余白を追加して家ボタンやフッターと重ならない */
  padding-top: 56.25%; /* 16:9比率 */
}

.movie-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
/* ===== ギャラリー ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 150px);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
  justify-content: center;
}

.gallery-grid img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #111;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-grid img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(123,220,255,0.35);
}

/* ===== ギャラリーモーダル ===== */
.gallery-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.gallery-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}

/* ===== リンクボタン ===== */
.links a {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--main), var(--sub));
  color: #000;
  text-decoration: none;
  border-radius: 6px;
  font-weight: normal;
}

.links a:hover {
  filter: brightness(1.1);
}

/* ===== ガイドライン ===== */
.guideline {
  background: linear-gradient(180deg, rgba(123,220,255,0.05), transparent);
  padding: 60px 20px;
  font-size: 0.9rem;
}

.guideline ul {
  max-width: 600px;
  margin: 20px auto;
  text-align: left;
}

.guideline .update {
  font-size: 0.85em;
  color: #666;
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Kosugi Maru', sans-serif;
}

.contact-form label {
  font-weight: bold;
  margin-bottom: 4px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: #1a1a27;
  color: var(--text);
  font-family: 'Kosugi Maru', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  background: linear-gradient(135deg, var(--main), var(--sub));
  color: #000;
  transition: 0.2s;
}

.contact-form button:hover {
  filter: brightness(1.1);
}

.contact-toggle {
  cursor: pointer;
  user-select: none;
}

.contact-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}


/* ===== モーダル ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 20px;
}

.modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.modal-content {
  background: var(--card);
  border-radius: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

#close-terms {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
}

/* ===== ヘッダー ===== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(21,21,31,0.95);
  backdrop-filter: blur(8px);
  z-index: 9998;
}

.header-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 16px;
}

/* ===== フッター ===== */
.site-footer {
  text-align: center;
  padding: 20px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  border-top: 2px solid var(--main);
}

/* ナビゲーション（PC） */
.global-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: normal;
}

/* PC */
@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .global-nav {
    display: flex;
    gap: 20px;
  }
}

/* スマホ */
@media (max-width: 767px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
  }
  .hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: 0.3s;
  }
  .global-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(21,21,31,0.95);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
  }
  .global-nav.active {
    display: flex;
  }
  .global-nav a {
    padding: 15px;
    border-bottom: 1px solid rgba(123,220,255,0.15);
    color: var(--text);
  }
  .movie-embed {
    width: 95%;
    margin: 80px auto 40px auto;
    padding-top: 56.25%;
  }
}

/* ===== スマホ対応その他 ===== */
@media (max-width: 768px) {
  section { padding: 60px 16px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }

  .hero img { max-height: 45vh; }

  .catch {
    font-size: 0.85rem;
    padding: 0 12px;
  }

  .profile-card { padding: 24px; }

  .profile-inner { flex-direction: column; }

  .profile-image { order: -1; }

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

  .profile-links { flex-direction: column; align-items: center; }

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

