
/* ==========================
   星河魔導院は今日もゆるい
   CV募集サイト
   ========================== */

:root {
  --purple: #7960A8;
  --purple-dark: #51416F;
  --purple-light: #EAE2F4;
  --yellow: #F0CC70;
  --yellow-light: #FFF2CC;
  --cream: #FFF9F0;
  --white: #FFFFFF;
  --text: #40384A;
  --text-light: #716879;
  --border: #E8DFD4;
}

/* 全体 */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family:
    "Yu Gothic",
    "Hiragino Kaku Gothic ProN",
    Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.9;
}

/* ヘッダー */

header {
  padding: 64px 20px 56px;
  text-align: center;
  background: var(--purple);
  color: var(--white);
  border-bottom: 7px solid var(--yellow);
}

header h1 {
  margin: 0;
  font-size: clamp(25px, 5vw, 40px);
  line-height: 1.5;
  letter-spacing: 0.04em;
}

header p {
  margin: 12px 0 0;
  color: var(--yellow-light);
  font-size: 15px;
  letter-spacing: 0.15em;
}

/* メインコンテンツ */

main {
  width: min(100% - 32px, 820px);
  margin: 48px auto;
}

/* 各セクション */

section {
  margin-bottom: 28px;
  padding: 30px 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(81, 65, 111, 0.05);
}

section h2 {
  margin: 0 0 18px;
  padding: 0 0 10px;
  color: var(--purple-dark);
  font-size: 23px;
  line-height: 1.5;
  border-bottom: 2px solid var(--purple-light);
}

section h2::before {
  content: "✦ ";
  color: #C39A35;
}

section p {
  margin: 0;
}

/* フッター */

footer {
  padding: 28px 20px;
  text-align: center;
  background: var(--purple-dark);
  color: var(--white);
  font-size: 13px;
}

footer p {
  margin: 0;
}

/* スマートフォン */

@media (max-width: 600px) {
  header {
    padding: 44px 18px 38px;
  }

  main {
    width: calc(100% - 24px);
    margin: 28px auto;
  }

  section {
    padding: 22px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  section h2 {
    font-size: 20px;
  }
}


/* リスト共通 */

section ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

section ul li {
  position: relative;
  margin-bottom: 14px;
  padding: 14px 16px 14px 38px;
  background: #FFF9F0;
  border: 1px solid #F0E7DA;
  border-radius: 10px;
  line-height: 1.8;
}

/* 紫色のマーカー */

section ul li::before {
  content: "✦";
  position: absolute;
  top: 14px;
  left: 14px;
  color: #7960A8;
  font-size: 14px;
}

/* 最後の項目の余白を調整 */

section ul li:last-child {
  margin-bottom: 0;
}


/* 募集期間 */

.recruit-period {
  margin: 20px 0;
  padding: 16px;
  background: #FFF2CC;
  border: 1px solid #F0CC70;
  border-radius: 10px;
  color: #51416F;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}


/* キャラクター一覧・全表示レイアウト */

.character-card {
  display: block;
  margin: 28px 0;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #E8DFD4;
  border-top: 5px solid #7960A8;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(81, 65, 111, 0.05);
}

.character-heading {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #EAE2F4;
}

.character-heading img {
  flex-shrink: 0;
  width: 180px;
  max-height: 240px;
  object-fit: contain;
  object-position: top center;
}

.character-heading > div {
  flex: 1;
  min-width: 0;
}

.character-name {
  display: inline-block;
  color: #51416F;
  font-size: 24px;
  font-weight: bold;
}

.character-reading {
  display: inline-block;
  margin-left: 8px;
  color: #716879;
  font-size: 14px;
}

.character-content {
  padding-top: 4px;
}

.character-content h3 {
  margin-top: 28px;
  padding-bottom: 8px;
  color: #51416F;
  border-bottom: 1px solid #EAE2F4;
  font-size: 19px;
}

.character-content blockquote {
  margin: 10px 0 22px;
  padding: 14px 18px;
  background: #FFF9F0;
  border-left: 4px solid #F0CC70;
  border-radius: 0 8px 8px 0;
}

.character-content .acting-note {
  color: #716879;
  font-size: 14px;
}

.character-content a {
  color: #7960A8;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .character-card {
    padding: 18px;
  }

  .character-heading {
    display: block;
  }

  .character-heading img {
    width: 100%;
    max-width: 180px;
    max-height: 220px;
    margin-bottom: 16px;
  }

  .character-name {
    font-size: 21px;
  }

  .character-reading {
    margin-left: 4px;
  }
}


/* 応募フォーム */

.apply-section {
  text-align: center;
  padding: 36px 28px;
  background: #F5EFFA;
  border: 1px solid #E2D5F0;
}

.apply-section h2 {
  border-bottom: none;
}

.apply-section p {
  margin: 12px 0;
}

.apply-button-area {
  margin-top: 28px;
}

.apply-button {
  display: inline-block;
  max-width: 100%;
  padding: 16px 32px;
  border: 3px solid #F0CC70;
  border-radius: 999px;
  background: #7960A8;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 0 #51416F;
  transition: transform 0.2s, box-shadow 0.2s;
}

.apply-button[aria-disabled="true"] {
  opacity: 0.65;
  cursor: not-allowed;
}

.apply-notice {
  color: #716879;
  font-size: 13px;
}

@media (max-width: 600px) {
  .apply-button {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
  }
}


/* キャラクターへの想い */

#character-policy .policy-message {
  margin-top: 24px;
  padding: 18px 20px;
  background: #F5EFFA;
  border-left: 5px solid #7960A8;
  border-radius: 0 10px 10px 0;
  color: #51416F;
  font-weight: bold;
  text-align: center;
}


/* 応募から公開までの流れ */
.application-flow {
  margin: 48px auto;
  padding: 32px 24px;
  max-width: 900px;
  border: 2px solid #e8d8f3;
  border-radius: 20px;
}

.application-flow h2 {
  margin: 0 0 32px;
  color: #67429a;
  font-size: 1.7rem;
  text-align: center;
}

.flow-list {
  list-style: none;
  counter-reset: flow-step;
  margin: 0;
  padding: 0;
}

.flow-list li {
  counter-increment: flow-step;
  position: relative;
  margin: 0;
  padding: 0 0 28px 64px;
}

/* 紫色の番号 */
.flow-list li::before {
  content: counter(flow-step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: #8054b8;
  border: 3px solid #f4d76b;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
  box-sizing: border-box;
}

/* ステップをつなぐ線 */
.flow-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  left: 19px;
  bottom: 4px;
  width: 2px;
  background: #dfc9ed;
}

.flow-list h3 {
  margin: 0 0 8px;
  padding: 8px 12px;
  color: #56347f;
  background: #f5ebfc;
  border-left: 4px solid #f0cf55;
  border-radius: 4px;
  font-size: 1.05rem;
}

.flow-list p {
  margin: 0;
  padding: 0 12px;
  color: #51495a;
  line-height: 1.8;
}

/* スマートフォン向け */
@media (max-width: 600px) {
  .application-flow {
    margin: 32px 12px;
    padding: 24px 16px;
    border-radius: 16px;
  }

  .application-flow h2 {
    font-size: 1.4rem;
    margin-bottom: 28px;
  }

  .flow-list li {
    padding-left: 52px;
    padding-bottom: 24px;
  }

  .flow-list li::before {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .flow-list li:not(:last-child)::after {
    top: 40px;
    left: 17px;
  }

  .flow-list h3 {
    font-size: 1rem;
    padding: 8px;
  }

  .flow-list p {
    padding: 0 8px;
    font-size: 0.95rem;
  }
}
