:root {
  --primary-blue: #4a90e2;
  --light-blue: #87ceeb;
  --soft-blue: #e6f3ff;
  --accent-yellow: #ffe066;
  --warm-orange: #ff9f43;
  --success-green: #2ecc71;
  --error-red: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --white: #ffffff;
  --background: #f8fbff;
  --shadow-light: rgba(74, 144, 226, 0.1);
  --shadow-medium: rgba(74, 144, 226, 0.2);
  --shadow-heavy: rgba(74, 144, 226, 0.3);
  --sun-gradient: linear-gradient(135deg, #ffeb3b 0%, #ff9800 100%);
  --trust-blue: #4a90e2;
  --trust-green: #2ecc71;
  --trust-orange: #ff9f43;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--background);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700;800&display=swap');

.pop-font {
  font-family: 'M PLUS Rounded 1c', "Noto Sans JP", sans-serif;
}

/* ヒーローセクション */
.hero-section {
  height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #87ceeb 0%, #e6f3ff 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  animation: slowZoom 20s ease-in-out infinite alternate;
  background: linear-gradient(135deg, #87ceeb 0%, #e6f3ff 100%);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(135, 206, 235, 0.1) 0%,
    rgba(230, 243, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.1) 100%
  );
  backdrop-filter: blur(0.5px);
}

/* ヒーロー内ロゴ */
.hero-logo {
  position: absolute;
  top: 2rem;
  left: 2rem;
  z-index: 4;
  background: transparent;
  border-radius: 15px;
  padding: 0.5rem;
  animation: slideInLeft 1s ease-out;
}

.hero-logo-img {
  height: 80px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2)) brightness(1.1) contrast(1.2);
  background: transparent !important;
  background-color: transparent !important;
  object-fit: contain;
  /* 白い背景を透明にする */
  mix-blend-mode: screen;
}

.hero-logo:hover .hero-logo-img {
  transform: scale(1.05);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* メインキャッチコピー - 左中段 */
.catchcopy-main {
  position: absolute;
  left: 5%;
  top: 45%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInLeft 1s ease-out 0.5s both;
  max-width: 500px;
}

.main-catchcopy {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: var(--text-dark);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.zero-yen {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--warm-orange);
  display: inline-block;
  transform: scale(1.2);
  text-shadow: 3px 3px 5px rgba(255, 159, 67, 0.3);
  position: relative;
  animation: pulse 2s infinite;
  margin: 0 0.4em;
}

@keyframes pulse {
  0% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1.2);
  }
}

/* サブキャッチコピー - 右下 */
.catchcopy-sub {
  position: absolute;
  right: 5%;
  top: 15%;
  background: linear-gradient(135deg, rgba(255, 235, 59, 0.1) 0%, rgba(255, 152, 0, 0.2) 100%), rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(255, 152, 0, 0.15);
  border: 1px solid rgba(255, 235, 59, 0.3);
  animation: slideInRight 1s ease-out 1s both;
  max-width: 400px;
  overflow: hidden;
}

.catchcopy-sub::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 235, 59, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.sub-catchcopy {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-dark);
  line-height: 1.4;
  font-weight: 600;
}

.trust-indicators {
  position: absolute;
  bottom: 5%;
  right: 10%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  animation: slideInUp 1s ease-out 1.5s both;
}

.trust-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.trust-item:hover {
  transform: translateY(-5px);
}

.trust-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.trust-item:nth-child(1) .trust-number {
  color: var(--trust-blue);
}

.trust-item:nth-child(2) .trust-number {
  color: var(--trust-green);
}

.trust-item:nth-child(3) .trust-number {
  color: var(--trust-orange);
}

.trust-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* パーティクルエフェクト */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, var(--accent-yellow) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.particle:nth-child(2) {
  top: 60%;
  left: 20%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(3) {
  top: 30%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 9s;
}

.particle:nth-child(4) {
  bottom: 40%;
  right: 25%;
  animation-delay: 3s;
  animation-duration: 6s;
}

.particle:nth-child(5) {
  top: 70%;
  left: 60%;
  animation-delay: 4s;
  animation-duration: 8s;
}

.particle:nth-child(6) {
  top: 15%;
  left: 70%;
  animation-delay: 5s;
  animation-duration: 7s;
}

.particle:nth-child(7) {
  bottom: 20%;
  left: 40%;
  animation-delay: 6s;
  animation-duration: 9s;
}

.particle:nth-child(8) {
  top: 50%;
  right: 40%;
  animation-delay: 7s;
  animation-duration: 6s;
}

/* アニメーション */
@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) translateX(10px) scale(1.2);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) translateX(-5px) scale(0.8);
    opacity: 0.5;
  }
  75% {
    transform: translateY(-30px) translateX(15px) scale(1.1);
    opacity: 0.8;
  }
}

/* 新しいアニメーション */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* メインコンテンツ */
.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 500px;
}

.form-wrapper {
  width: 100%;
}

/* フォームコンテナ */
.form-container {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px var(--shadow-light);
  border: 1px solid var(--light-blue);
  min-height: 400px;
  position: relative;
}

/* ステップ */
.step {
  display: none;
  animation: slideInUp 0.4s ease-out;
}

.step.active {
  display: block;
}

.step-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 16px var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.step-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.8s ease;
}

.step-title:hover::before {
  left: 100%;
}

.step-number {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* フォームグループ */
.form-group {
  margin-bottom: 1.5rem;
}

/* 名前入力フィールドの下余白を削除 */
#step1 .form-group {
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1.1rem;
}

.required {
  color: var(--error-red);
  margin-left: 0.2rem;
}

.form-input {
  width: 100%;
  border: 2px solid var(--light-blue);
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: var(--soft-blue);
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-input:invalid {
  border-color: var(--error-red);
}

.form-input[readonly] {
  background: #f5f5f5;
  color: var(--text-light);
}

.input-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* オプションカード */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.option-card {
  background: linear-gradient(135deg, var(--soft-blue) 0%, var(--white) 100%);
  border: 2px solid var(--light-blue);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
  position: relative;
  text-align: center;
}

.option-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px var(--shadow-medium);
}

.option-card.selected {
  border-color: var(--primary-blue);
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
  color: var(--white);
  transform: translateY(-4px);
}

.option-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.option-text {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.option-description {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ナビゲーションボタン */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.nav-btn {
  background: var(--white);
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 1rem 2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.nav-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* エラーポップアップ */
.error-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.error-popup.show {
  display: flex;
}

.error-popup-content {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.3s ease-out;
}

.error-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-close-btn {
  background: var(--error-red);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.error-close-btn:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* フッター */
.site-footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #34495e 100%);
  color: var(--white);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue) 0%, var(--light-blue) 50%, var(--warm-orange) 100%);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.footer-logo {
  margin-bottom: 2rem;
  background: transparent !important;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  filter: brightness(1) contrast(1.1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
  background: transparent !important;
  background-color: transparent !important;
  object-fit: contain;
}

.footer-logo-img:hover {
  opacity: 1;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.footer-link:hover::before {
  left: 100%;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
  .catchcopy-main {
    left: 3%;
    max-width: 450px;
  }

  .catchcopy-sub {
    right: 3%;
    max-width: 350px;
  }

  .main-catchcopy {
    font-size: 2.5rem;
  }

  .sub-catchcopy {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 500px;
    padding: 0.5rem 0;
  }

  .hero-logo {
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.6rem;
  }

  .hero-logo-img {
    height: 60px;
  }

  .catchcopy-main {
    position: absolute;
    transform: none;
    margin: 2rem auto 1rem;
    width: 100%;
    bottom: 0;
    top: initial;
    left: 3%;
    display: block;
    max-width: 94%;
    text-align: center;
  }

  .catchcopy-sub {
    position: absolute;
    transform: none;
    margin: 1rem auto 2rem;
    max-width: 90%;
    top: -7px;
  }

  .trust-indicators {
    display: none;
  }

  .hero-content {
    justify-content: flex-start;
    padding-top: 3.5rem;
    padding-bottom: 1rem;
    position: absolute;
  }

  .main-catchcopy {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .zero-yen {
    font-size: 2.2rem;
    margin: 0 0.2em;
  }

  .sub-catchcopy {
    font-size: 1rem;
    line-height: 1.4;
  }

  .main-content {
    padding: 0.8rem;
  }

  .form-container {
    padding: 1.5rem;
    min-height: initial;
  }

  .step-title {
    font-size: 1.3rem;
    padding: 1.2rem 1.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .form-group label {
    font-size: 1rem;
  }

  .form-input {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .option-card {
    padding: 1.2rem;
  }

  .option-icon {
    font-size: 2rem;
  }

  .option-text {
    font-size: 1rem;
  }

  .option-description {
    font-size: 0.85rem;
  }

  .navigation-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
}

/* 370px付近での改行対策（モバイルのみ） */
@media (max-width: 400px) and (max-device-width: 768px) {
  .main-catchcopy {
    white-space: nowrap;
  }
}

@media (max-width: 375px) and (max-device-width: 768px) {
  .main-catchcopy {
    font-size: 1.3rem;
    white-space: nowrap;
  }

  .zero-yen {
    font-size: 1.5rem;
    margin: 0 0.2em;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: auto;
    min-height: 300px;
    padding: 0.3rem 0;
  }

  .hero-logo {
    top: 0.3rem;
    left: 0.3rem;
    padding: 0.4rem;
  }

  .hero-logo-img {
    height: 45px;
  }

  .catchcopy-main {
    position: absolute;
    top: initial;
    right: 3%;
    transform: none;
    margin: 0;
    max-width: 94%;
    padding: 0.8rem;
    bottom: 15px;
  }

  .catchcopy-sub {
    position: absolute;
    bottom: initial;
    left: initial;
    transform: translateX(-50%);
    margin: 0;
    max-width: 100%;
    padding: 0.8rem;
    top: 7px;
  }

  .main-catchcopy {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .zero-yen {
    font-size: 1.6rem;
    margin: 0 0.5em;
  }

  .sub-catchcopy {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .trust-indicators {
    display: none;
  }

  .hero-content {
    padding-top: 2.5rem;
    padding-bottom: 0.5rem;
  }

  .main-content {
    padding: 0.5rem;
  }

  .form-container {
    padding: 1rem;
    border-radius: 15px;
  }

  .step-title {
    font-size: 1.1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .step-number {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .form-input {
    font-size: 0.95rem;
    padding: 0.7rem;
    border-radius: 10px;
  }

  .input-help {
    font-size: 0.8rem;
  }

  .options-grid {
    gap: 0.6rem;
  }

  .option-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .option-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
  }

  .option-text {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .option-description {
    font-size: 0.8rem;
  }

  .navigation-buttons {
    margin-top: 1.5rem;
  }

  .nav-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 20px;
  }

  .error-popup-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .error-message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .error-close-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* さらに小さい画面サイズ対応 */
@media (max-width: 320px) {
  .hero-section {
    min-height: 250px;
  }

  .hero-logo-img {
    height: 40px;
  }

  .catchcopy-main {
    position: absolute;
    top: 2.5rem;
    right: 2%;
    transform: none;
    margin: 0;
    max-width: 55%;
    padding: 0.6rem;
  }

  .catchcopy-sub {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    max-width: 80%;
    padding: 0.6rem;
  }

  .main-catchcopy {
    font-size: 1.2rem;
    line-height: 1.1;
  }

  .zero-yen {
    font-size: 1.3rem;
    margin: 0 0.05em;
  }

  .sub-catchcopy {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .trust-indicators {
    display: none;
  }

  .hero-content {
    padding-top: 2rem;
    padding-bottom: 0.3rem;
  }

  .main-content {
    padding: 0.3rem;
  }

  .form-container {
    padding: 0.8rem;
    border-radius: 12px;
  }

  .step-title {
    font-size: 1rem;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
  }

  .step-number {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .form-input {
    font-size: 0.9rem;
    padding: 0.6rem;
    border-radius: 8px;
  }

  .input-help {
    font-size: 0.75rem;
  }

  .options-grid {
    gap: 0.5rem;
  }

  .option-card {
    padding: 0.8rem;
    border-radius: 10px;
  }

  .option-icon {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }

  .option-text {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .option-description {
    font-size: 0.75rem;
  }

  .navigation-buttons {
    margin-top: 1.2rem;
  }

  .nav-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 18px;
  }

  .error-popup-content {
    padding: 1.2rem;
    margin: 0.8rem;
  }

  .error-message {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .error-close-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* フォーカス表示の強化 */
.option-card:focus,
.form-input:focus,
.nav-btn:focus {
  outline: 3px solid var(--accent-yellow);
  outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0066cc;
    --text-dark: #000000;
    --text-light: #333333;
  }
}
