/* ベースリセット */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: sans-serif;
  background: #f9fafa;
}

/* 全要素にbox-sizing適用 */
*, *::before, *::after {
  box-sizing: inherit;
}

/* 中央に収めるコンテナ */
.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 20px;
}

/* 各ステップの共通デザイン */
.step-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ヘッダー画像中央寄せ */
.header-image {
  text-align: center;
}

.header-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ボタン配置グループ */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ボタン基本スタイル */
.button-group button {
  padding: 10px 15px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 4px;
  transition: 0.2s;
  user-select: none;
  flex: 1 1 calc(25% - 20px);
  max-width: 250px;
  min-width: 120px;
}

/* アクティブなボタン */
.button-group button.active {
  background-color: #5dd3db;
  color: white;
  border-color: #5dd3db;
}

/* 「次へ」や「結果表示」ボタン */
button#next-button,
button#show-result,
button#next-button-1,
button#next-button-2,
button#next-button-3 {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 4px;
  border: none;
  background-color: #5dd3db;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}

/* ホバー効果 */
button:hover {
  background-color: #48b2bb;
}

/* 結果画像がある場合のスタイル */
.result-image-link img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px auto;
}

/* ----------------------------- */
/* レスポンシブ対応: スマホ用   */
/* ----------------------------- */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .button-group button {
    flex: 1 1 48%;
    max-width: 100%;
  }

  .header-image img {
    width: suto;
    height: auto;
  }

  .step-section {
    margin: 10px;
  }
}



.hero {
  background-color: #ffffff;
  color: #000000;
  text-align: center;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.hero .sub {
  font-size: 1rem;
  margin-bottom: 20px;
}



.container {
    width: 100%;
  
    margin: auto;
    text-align: center;
}
.heros {
  background: url('main.png');
  background-color: #009cb8;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  color: #ffffff;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  min-height: 300px;
}
.features {
  display: flex;
  justify-content: space-around;
  padding: 20px;
  background-color: #ffffff;
  text-align: center;
  color: #000000;
}

.feature-item {
  flex: 1;
  padding: 10px;
}

.feature-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}
.anr {
  background-color: #fd6805;
  color: white;
  padding: 20px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
}
.anr button {
  background-color: #ffffff;
  color: #fd6805;
  border: 2px solid #ffffff;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.anr button:hover {
  background-color: #fff3e6;
}

.official-link a {
  color: #ffffff;
  text-decoration: underline;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: break-word;
}