/* common.css */

/* リセット */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* フォントと基本設定 */
html, body {
  height: 100%;
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
  /* overflow-x: hidden; */
}

/* ドロワー用オーバーレイ */
#drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}
#drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* サイドドロワーメニュー */
nav#drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 100%;
  background: navy;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding-top: 60px;
  z-index: 1000;
}
nav#drawer.open {
  transform: translateX(0);
}
nav#drawer a {
  display: block;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  white-space: normal;
}
nav#drawer a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ロゴコンテナ（index専用） */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: #fff;
}
.logo-container img {
  max-width: 80%;
  height: auto;
}

/* コンテンツエリア共通 */
.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-height: 100vh;
  text-align: left;
  padding: 80px 20px 20px;
}
.section {
  width: 100%;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.9);
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ハンバーガーアイコン */
.hamburger-menu {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1001;
  background: white;
  border: 2px solid #222;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.hamburger-menu span {
  width: 36px;
  height: 4px;
  background: navy;
  margin: 4px 0;
}

/* リンクボタン・補足テキスト */
.link-button {
  display: inline-block;
  padding: 8px 16px;
  border: 2px solid navy;
  border-radius: 5px;
  text-decoration: none;
  color: navy;
  font-size: 0.9em;
  margin: 8px;
}
.link-button:hover {
  background: navy;
  color: #fff;
}
.note {
  font-size: 0.8em;
  margin-top: 8px;
}

/* フォーム項目を２カラムに揃えるグリッド */
form {
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-row-gap: 1em;
  grid-column-gap: 1em;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1em;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
form > div {
  display: contents;
}
form label {
  justify-self: start;
  align-self: start;
  font-weight: bold;
  white-space: normal;
  margin-bottom: 0.5em;
}
form textarea,
form input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
form button[type="submit"] {
  grid-column: 1 / span 2;
  justify-self: start;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border: 2px solid navy;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
}
form button[type="submit"]:hover {
  background: navy;
  color: #fff;
}

/* ── レスポンシブ調整 ── */
@media (max-width: 768px) {
  .container {
    padding: 20px;
  }
  form {
    grid-template-columns: 1fr;
  }
  form label {
    justify-self: start;
    margin-bottom: 0.5em;
  }
  form button[type="submit"] {
    justify-self: center;
  }
  .hamburger-menu {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
  nav#drawer {
    width: 80%;
  }
}


/* ——— はみ出し防止 ——— */
form {
  box-sizing: border-box;
  overflow-wrap: break-word;
}
form textarea,
form input[type="date"],
form input[type="text"],
form input[type="email"] {
  max-width: 100%;
  box-sizing: border-box;
}

/* レスポンシブ余白調整 */
@media (max-width: 600px) {
  form {
    padding: 0.8em;
    margin-bottom: 1.5em;
  }
}


/* ─────────────────────
   PA／レコーディング案内 用スタイル
───────────────────── */
.pa-guide {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.pa-guide__ttl {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.pa-guide__subttl {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.pa-guide__label {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.pa-guide__block {
  margin-bottom: 1.5rem;
}

.pa-guide__rule {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

.pa-guide p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.pa-guide__note {
  font-size: 0.9rem;
  color: #666;
  margin-top: -1rem;
}

.pa-guide__list {
  list-style: none;
  margin: 0 0 1rem 0;
  padding: 0;
}

.pa-guide__list li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.pa-guide__list--number {
  counter-reset: li;
}

.pa-guide__list--number li {
  padding-left: 2em;
}

.pa-guide__list--number li::before {
  counter-increment: li;
  content: counter(li) '.';
  position: absolute;
  left: 0;
  color: #7C7FEC;
  font-weight: bold;
}

.pa-guide__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.2em;
  color: #7C7FEC; /* アクセントカラーに */
  font-size: 1.2em;
  line-height: 1;
}


/* ── スマホ最適化: 600px 以下 ── */
@media (max-width: 850px) {
  /* 全体の余白を詰めて幅を確保 */
  .container {
    padding: 1em;
  }
  .section {
    /* セクション自体を画面いっぱいに広げつつ、左右に余白 */
    max-width: 100%;
    margin: 0;
    padding: 1em;
  }

  /* 見出しを少し小さめに */
  .section h1,
  .section h2 {
    font-size: 1.3em;
  }
  .section h3 {
    font-size: 1.1em;
  }

  /* テキスト行間をゆったりめに */
  .section p,
  .section li {
    line-height: 1.6;
    font-size: 0.95em;
  }

  /* ハンバーガー位置と大きさ */
  .hamburger-menu {
    width: 50px;
    height: 50px;
    bottom: 12px;
    right: 12px;
  }
  .hamburger-menu span {
    width: 30px;
    height: 3px;
  }

  /* ドロワー（サイドメニュー）の幅 */
  nav#drawer {
    width: 80%;
  }

  /* スクロールバーが出ないように */
  html, body {
    overflow-x: hidden;
  }
}
