/*
  最終更新日時: 2026-07-26 21:30 JST
  バージョン: v0.6.8
  変更概要: 土曜演習会中止のお知らせ画面用の表示調整を追加。
*/
:root {
  --color-base: #f6fbff;
  --color-white: #fff;
  --color-text: #24313d;
  --color-muted: #61717d;
  --color-primary: #176fbb;
  --color-primary-dark: #0f48a6;
  --color-green: #179d43;
  --color-green-dark: #087734;
  --color-yellow: #ffe58f;
  --color-yellow-soft: #fff4bd;
  --color-orange: #f28a17;
  --color-border: #d7e7ef;
  --shadow: 0 14px 36px rgba(37, 95, 128, 0.11);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-base);
  color: var(--color-text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

main,
.site-footer {
  width: min(var(--max-width), calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.site-hero {
  padding: 40px 16px 28px;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 229, 143, 0.82) 0 72px, transparent 74px),
    radial-gradient(circle at 92% 16%, rgba(23, 157, 67, 0.12) 0 110px, transparent 114px),
    linear-gradient(135deg, #eefaff 0%, #ffffff 72%);
}

.hero-inner {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: 36px 32px;
  border: 1px solid rgba(23, 111, 187, 0.16);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--color-green-dark);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  color: var(--color-primary-dark);
  font-size: clamp(2.05rem, 5.4vw, 3.55rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.lead {
  margin: 0 auto 20px;
  max-width: 760px;
  color: var(--color-text);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 800;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-yellow);
  color: #684300;
  font-weight: 800;
}

.hero-badges span:nth-child(2) {
  background: #dff6ed;
  color: var(--color-green-dark);
}

.hero-badges span:nth-child(3) {
  background: #ffe8cf;
  color: #914e00;
}

.hero-badges span:nth-child(4) {
  background: #e8f5fb;
  color: var(--color-primary-dark);
}

.panel,
.info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel {
  margin: 26px 0;
  padding: clamp(22px, 4vw, 36px);
}


/* v0.6.8: イベント中止のお知らせ画面用 */
.cancel-hero .hero-badges span:first-child {
  background: #fff0f0;
  color: #9c2626;
}

.cancel-panel {
  border-color: rgba(183, 41, 41, 0.24);
}

.cancel-message-box {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid #f2c7c7;
  border-radius: var(--radius-md);
  background: #fffafa;
}

.cancel-message-box p {
  margin: 0;
  font-weight: 800;
}

.cancel-message-box p:first-child {
  color: #9c2626;
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
}

.cancel-date-card {
  border-color: rgba(183, 41, 41, 0.24);
}

.cancel-status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff0f0;
  color: #9c2626;
  font-weight: 900;
}

.section-head {
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  color: var(--color-primary-dark);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.35;
}

.sp-only-break {
  display: none;
}

h3 {
  margin-bottom: 12px;
  color: var(--color-primary-dark);
  font-size: 1.14rem;
  line-height: 1.4;
}

.intro-panel p {
  font-weight: 700;
}

.intro-panel p:last-child {
  margin-bottom: 0;
}

.highlight-lines {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
}

.highlight-lines p {
  justify-self: center;
  margin: 0;
  padding: 0 0.28em;
  background: linear-gradient(transparent 46%, var(--color-yellow-soft) 46% 88%, transparent 88%);
  color: #111;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0;
}

.info-card {
  padding: 24px;
}

.info-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.info-card h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-green);
}

.info-card p:last-child,
.info-card ul:last-child {
  margin-bottom: 0;
}

.important-card {
  border-color: rgba(23, 111, 187, 0.28);
}

.important-card strong {
  font-size: 1.04rem;
}

.recommend-card {
  border-color: rgba(23, 157, 67, 0.28);
}

.line-card {
  border-color: rgba(23, 157, 67, 0.28);
}

.venue-card {
  border-color: rgba(23, 111, 187, 0.28);
}

.info-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li,
.check-list li {
  position: relative;
  padding-left: 1.55em;
  font-weight: 700;
}

.info-list li + li,
.check-list li + li {
  margin-top: 6px;
}

.info-list li::before,
.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 900;
}

.info-list li::before {
  content: "・";
}

.check-list li::before {
  content: "✓";
}

.note,
.small-note,
.help {
  color: var(--color-muted);
  font-size: 0.92rem;
}

.sub-button,
.line-button,
.main-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sub-button {
  background: #e8f5fb;
  color: var(--color-primary-dark);
}

.line-button {
  background: var(--color-green);
  color: #fff;
}

.main-button {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 111, 187, 0.24);
}

.back-button {
  background: #edf3f7;
  color: var(--color-text);
}

.sub-button:hover,
.line-button:hover,
.main-button:hover,
.back-button:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.form-lead {
  margin-bottom: 22px;
  font-weight: 700;
}

.application-form {
  display: grid;
  gap: 24px;
}

.form-block {
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfdff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.form-grid > label {
  align-self: start;
}

label,
fieldset {
  display: grid;
  gap: 8px;
}

.message-label {
  margin-top: 22px;
}

label > span,
legend {
  color: var(--color-text);
  font-weight: 800;
}

legend small {
  margin-left: 8px;
}

em {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fff1d6;
  color: #925200;
  font-size: 0.74rem;
  font-style: normal;
  vertical-align: 1px;
}

small {
  color: var(--color-muted);
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9dce6;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  padding: 12px 13px;
  font: inherit;
  line-height: 1.45;
  outline: none;
}

textarea {
  min-height: 126px;
  resize: vertical;
}

.help {
  display: block;
  margin: 2px 0 0;
  line-height: 1.65;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(23, 111, 187, 0.14);
}

.checkbox-group {
  border: 0;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.date-group,
.study-group {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.study-group {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-group legend {
  grid-column: 1 / -1;
}

.checkbox-group label,
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
}

.checkbox-group input,
.consent-check input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.35em;
  accent-color: var(--color-primary);
}

/* v0.5.1: 参加希望日は、折り返しで読みにくくならないよう日付と時間を2段で表示 */
.date-choice-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.45;
}

.date-choice-date,
.date-choice-time {
  display: block;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.date-choice-date {
  font-weight: 900;
}

.date-choice-time {
  color: var(--color-text);
  font-weight: 800;
}

.notice-block {
  background: #fffaf0;
  border-color: #ffe1a3;
}

.notice-block ul {
  margin: 0 0 18px;
  padding-left: 1.25em;
}

/* v0.5.1: 確認チェック欄を注意文の下に独立して配置し、エラー文が横並びにならないよう調整 */
.consent-area {
  display: grid;
  gap: 8px;
  max-width: 100%;
}

.consent-check {
  align-items: center;
  min-height: 58px;
}

.consent-check span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.consent-check span em {
  margin-left: 0;
}

.consent-area.has-error .consent-check,
.checkbox-group.has-error {
  border-color: #d84c4c;
  box-shadow: 0 0 0 4px rgba(216, 76, 76, 0.08);
}

.form-actions {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.form-actions.two-buttons,
.thanks-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.confirm-list {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.confirm-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fbfdff;
}

.confirm-item dt {
  font-weight: 800;
  color: var(--color-primary-dark);
}

.confirm-item dd {
  margin: 0;
  white-space: pre-wrap;
}

/* v0.5.1: 確認画面は入力欄の下に足されるのではなく、入力画面から切り替わった印象にする */
.confirm-panel {
  margin-top: 26px;
}

.is-hidden {
  display: none !important;
}

.error-message {
  margin: 8px 0 0;
  color: #b52a2a;
  font-weight: 700;
  font-size: 0.92rem;
}

.checkbox-group .error-message {
  grid-column: 1 / -1;
}

.consent-area .error-message {
  margin: 0;
  padding-left: calc(1.1rem + 10px);
}

.has-error input,
.has-error select,
.has-error textarea {
  border-color: #d84c4c;
  box-shadow: 0 0 0 4px rgba(216, 76, 76, 0.12);
}

.site-footer {
  margin: 34px auto 48px;
  padding: 22px 0 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  text-align: center;
}



/* v0.5.0: PHP/DB実装後の完了画面用スタイル */
.compact-hero {
  padding-bottom: 18px;
}

.completion-panel {
  margin-top: 28px;
}

.application-summary .confirm-list {
  margin-top: 12px;
}

.confirm-item dd {
  white-space: pre-line;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 640px) {
  .thanks-actions {
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .sp-only-break {
    display: block;
  }

  main,
  .site-footer {
    width: min(100% - 22px, var(--max-width));
  }

  .site-hero {
    padding: 22px 11px 18px;
  }

  .hero-inner {
    padding: 26px 18px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .info-grid,
  .form-grid,
  .date-group,
  .study-group {
    grid-template-columns: 1fr;
  }

  .panel,
  .info-card,
  .form-block {
    padding: 20px;
  }

  .highlight-lines {
    text-align: left;
  }

  .highlight-lines p {
    justify-self: start;
  }

  .confirm-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .main-button,
  .back-button,
  .line-button,
  .sub-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  main,
  .site-footer {
    width: min(100% - 18px, var(--max-width));
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    flex: 1 1 calc(50% - 8px);
    padding: 8px 10px;
  }

  .panel,
  .info-card,
  .form-block {
    padding: 18px;
  }

  .checkbox-group label,
  .consent-check {
    padding: 11px 12px;
  }
}
