/* ==============================
   共通
============================== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  color: #fff;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

/* ==============================
   レイアウト
============================== */
.container {
  display: flex;
  height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
}

/* ==============================
   左パネル
============================== */
.left-panel {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.left-panel h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin: 0;
}

.left-panel .ruby {
  display: block;
  font-size: 1rem;
  color: #aaa;
  margin-top: 0.2rem;
}

.left-panel hr {
  width: 60%;
  border-color: #555;
  margin: 1rem 0;
}

.author {
  margin-bottom: 1rem;
}

/* SNS */
.social {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ==============================
   nav（PC：左パネル下）
============================== */
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  border-bottom: 1px solid #333;
}

.nav a {
  display: block;
  padding: 10px 20px;
  transition: background 0.2s;
}

.nav a:hover {
  background: #444;
}

/* ==============================
   右パネル
============================== */
.right-panel {
  width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ==============================
   スライドショー
============================== */
.slideshow {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 画像＋ボタンの基準 */
.slide-wrapper {
  position: relative;
  display: inline-block;
}

/* 画像 */
.slide-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
}

/* ボタン */
.btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 14px;
}

/* 左右配置 */
.prev {
  left: -60px;
}

.next {
  right: -60px;
}

/* ==============================
   ハンバーガー
============================== */
.hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
}

/* ==============================
   スマホ対応
============================== */
@media screen and (max-width: 768px) {

  .container {
    flex-direction: column;
    padding: 1rem;
  }

  .left-panel,
  .right-panel {
    width: 100%;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
  }

  /* nav：上から下にスライド */
  .nav {
    position: fixed;
    inset: 0;
    background: #000;

    display: flex;
    justify-content: center;
    align-items: center;

    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
  }

  .nav.open {
    transform: translateY(0);
  }

  .nav ul {
    width: 100%;
  }

  .nav li {
    width: 100%;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 1.4rem;
  }

  /* SPではボタンを少し内側に */
  .prev {
    left: 0;
  }

  .next {
    right: 0;
  }
}