/* --- 共通設定 --- */
:root {
  /* オレンジ色のメインカラー (読売カラーに近い鮮やかなオレンジ) */
  --main-color: #f39c12; 
  /* ホバー時の少し濃い色 */
  --hover-color: #e67e22; 
  /* 薄い背景色 */
  --bg-light: #fff8ec;
}

/* --- 1. グローバルスタイル (全体共通) --- */
html {
  /* ページ内リンクで飛んだ時、ヘッダーの高さ分(80px)ずらして表示する */
  scroll-padding-top: 90px; /* ヘッダー高さ+少し余白 */
  scroll-behavior: smooth; /* スムーズスクロール */
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  /*background-color: #f4f7f9;*/
  background-color: #fff;
  color: #333;
  margin: 0;
  /*padding: 0;*/
  padding: 80px 0 0 0;
  display: flex;
  flex-direction: column; /* 子要素を縦並びにする */
  min-height: 100vh;      /* 最低でも画面の高さ100%を確保する */
}
body.auth-loading {
  opacity: 0;
  visibility: hidden;
}

main {
  display: block;
  flex: 1; /* 余白がある場合、自動的に伸びて埋める設定 */
}

h2 {
  font-size: 1.8rem;
  color: #F57C00;
  /*border-bottom: 2px solid #e0e0e0;*/
  padding-bottom: 10px;
  margin-bottom: 25px;
}

a {
  color: #F57C00;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.pc-br {
  display: inline;
}

.sp-br {
  display: none;
}

/* --- ページトップへ戻るボタン --- */
.page-top-btn {
  position: fixed;
  bottom: 50px;
  right: 50px;
  z-index: 1000; /* 他の要素より手前に */

  width: 50px;
  height: 50px;
  background-color: #F57C00;
  border-radius: 50%;
  text-decoration: none;

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow: 0 2px 10px rgba(0,0,0,0.2);

  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none; 
  transition: all 0.3s ease;
}

.page-top-btn img {
/*
  width: 30px;
  height: auto;
*/
  display: block;
  pointer-events: none;
}

/* 表示時のスタイル */
.page-top-btn.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto; /* クリック可能にする */
}

/* ホバー時のスタイル */
.page-top-btn:hover {
  background-color: #E65100; /* 少し濃いオレンジ */
  color: #fff;
  transform: translateY(-5px); /* 少し浮き上がる */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

input[readonly],
textarea[readonly] {
  background-color: #f2f2f2;
  color: #555;
  cursor: not-allowed;
  border-color: #ccc;
}

@media (max-width: 768px) {
  .pc-br {
    display: none;
  }

  .sp-br {
    display: inline;
  }

  .page-top-btn {
    width: 26px;
    height: auto;
    bottom: calc(40px + env(safe-area-inset-bottom)); 
    right: calc(40px + env(safe-area-inset-right));
  }
}

/* --- 2. フォーム共通スタイル --- */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
}

.form-step .form-group label,
#temp-register-form .form-group label,
#verify-form .form-group label,
#change-form .form-group label {
  font-size: 1.31rem;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group input[type='password'],
.form-group input[type='tel'],
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #989596;
  border-radius: 6px;
  box-sizing: border-box; /* paddingを含めて幅100%にする */
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
}

.help-text {
  font-size: 12px;
  color: #666;
  font-weight: normal;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .form-step .form-group label,
  #temp-register-form .form-group label,
  #verify-form .form-group label,
  #change-form .form-group label {
    font-size: 1.25rem;
  }
}


/* --- 3. ボタン共通スタイル --- */

.cta-button {
  display: inline-block;
  width: 100%;
  padding: 15px;
  background-color: #F57C00;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.cta-button:hover {
  background-color: #E65100;
  text-decoration: none;
}

/* --- 4. ログイン画面 (.login-container) --- */

.login-options {
  margin: 20px 0;
  display: flex;
  align-items: center;
}
.login-options input[type='checkbox'] {
  margin-right: 8px;
}

.password-reset,
.signup-link {
  text-align: center;
  margin-top: 20px;
}

.social-login {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}
.social-login p {
  font-weight: bold;
  color: #777;
}
.social-button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  font-size: 1rem;
  /* (実際は各ブランドのロゴや色を設定) */
}

/* --- 5. 新規登録画面 (.register-container) --- */

div#captcha-container {
  margin: 16px 0px;
  display: block;
  margin-bottom: 30px;
  padding: 10px;
  display: flex;
  justify-content: center;
  overflow-x: auto; 
  box-sizing: border-box;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}
.step-indicator li {
  flex-grow: 1;
  text-align: center;
  padding: 10px;
  color: #555;
  /*border-bottom: 3px solid #eee;*/
}
.step-indicator li.active {
  color: #F57C00;
  border-bottom-color: #F57C00;
  font-weight: bold;
}

.terms-agreement {
  margin-top: 30px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 4px;
  text-align: center;
}
.terms-agreement .terms-text {
  margin-bottom: 15px;
}
.terms-agreement input[type='checkbox'] {
  margin-right: 8px;
}

@media screen and (max-width: 375px) {
  div#captcha-container {
    padding: 0px;
    transform: scale(0.9);
    transform-origin: top center;
    margin: 15px 0px;
    margin-bottom: -20px;
  }
}


/* --- 6. マイページ (.mypage-container) --- */
.auth-page-bg.mypage {
  padding-bottom: 0;
}

.mypage-support.full-width-bg {
  background-color: #fff;
  padding-top: 40px;
  padding-bottom: 80px;
  margin-top: 40px;
  margin-left: -20px;
  margin-right: -20px;
}

.welcome-message {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 30px;
}

.mypage-nav ul {
  list-style: none;
  padding: 0;
}
.mypage-nav li {
  border-bottom: 1px solid #eee;
}
.mypage-nav li:last-child {
  border-bottom: none;
}
.mypage-nav a {
  display: block;
  padding: 18px 10px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.mypage-nav a:hover {
  background-color: #f9f9f9;
  text-decoration: none;
}

.info-section {
  margin-top: 40px;
  border-top: 1px dashed #ccc;
  padding-top: 20px;
}
.info-section h3 {
  font-size: 1.3rem;
  color: #333;
}
.info-section ul {
  list-style: none;
  padding: 0;
}
.info-section li {
  padding: 8px 0;
}

/* グリッドの枠組み */
.mypage-grid-menu {
  display: grid;
  /* PC: 3列 (1fr 1fr 1fr) */
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 20px; /* カード間の隙間 */
  margin-bottom: 140px;
}

/* カード自体のスタイル */
.mypage-card {
  padding: 40px 10px;
  height: 100%; /* 高さを揃える */

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

/* ホバー時の動き */
.mypage-card:hover {
  transform: translateY(-5px); /* 少し浮き上がる */
  box-shadow: 0 8px 15px rgba(0,0,0,0.1);
  border-color: #F57C00;
  text-decoration: none;
}

/* 画像エリア */
.card-icon {
  margin-bottom: 15px;
  width: 60px;  /* 画像の表示幅 */
  height: 60px; /* 画像の表示高さ */

  /* 画像がない場合に備えて中央寄せの準備 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* 見出し */
.card-title {
  font-size: 1.31rem;
  font-weight: bold;
  color: #F57C00;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* 補足テキスト */
.card-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .auth-page-bg.mypage {
    padding: 0;
  }

  .mypage-support.full-width-bg {
    margin-left: 0;
    margin-right: 0;
  }

  .mypage-grid-menu {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 60px;
  }

  .mypage-card {
    flex-direction: row; 
    align-items: center;
    text-align: left;
    padding: 20px 20px;
    min-height: auto;
  }

  .card-icon {
    margin-bottom: 0;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }

  .card-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .card-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }

  .card-desc {
    font-size: 0.81rem;
    line-height: 1.3;
  }
}


/* --- 7. 企画一覧 (.project-list-container) --- */
/* コンテンツの中身を中央寄せにする共通ラッパー */
.content-wrapper {
  max-width: 1000px; /* カードやテキストの最大幅 */
  margin: 0 auto;      /* 左右中央寄せ */
  padding: 0 20px;    /* 画面端の余白 */
}

/* 企画一覧セクション */
.project-section {
  padding: 60px 0;
  /*background-color: #f4f7f9; */
  background-color: #fff;
}

/* お知らせセクション (info-section-top) のスタイル調整 */
.info-section-top {
  padding: 60px 0;
  background-color: #ffffff; /* 背景色 (白) */
  margin-top: 0; /* 既存のmargin-topをリセット */
}

.project-list {
  display: grid;
  /* 画面幅に応じて列数を変える (レスポンシブ対応) */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.project-card {
  display: block;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden; /* カードの角丸を画像に適用 */
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.project-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 180px; /* 高さを固定 */
  object-fit: cover; /* 画像の比率を保ったままトリミング */
  display: block;
}

.card-content {
  padding: 20px;
  background-color: #ffb300;
  height: 100%;
  color: #555555;
}
.card-content h3 {
  font-size: 1.31rem;
  margin: 0 0 10px 0;
  /*color: #F57C00;*/
}
.card-content .date {
  font-size: 0.93rem;
  /*color: #777;*/
  margin-bottom: 10px;
}
.card-content .summary {
  font-size: 1rem;
  color: #555;
}

/* --- 8. 応募画面 (.apply-container) --- */

.project-detail h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.project-detail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}
.project-detail p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.apply-form-section {
  margin-top: 40px;
  border-top: 2px solid #eee;
  padding-top: 30px;
}

.login-prompt {
  text-align: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 8px;
}
.login-prompt p {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 20px;
}
/* ログインボタン (CTAボタン) をそのまま流用 */

/* --- 9. ヘッダースタイル --- */

.site-header {
  width: 100%;
  background-color: #ffffff;

/*
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); 
  border-bottom: 1px solid #e0e0e0;
*/
  box-shadow: none; 
  border-bottom: 1px solid transparent;

  padding: 15px 0;
  position: fixed;
  top: 0;
  z-index: 2000;

  transition: box-shadow 0.3s ease, border-bottom-color 0.3s ease;
}

.site-header.nav-open {
  background-color: #ffffff;
}

.site-header.is-scrolled {
  /* スクロールしたら影と線を表示 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e0e0e0;
}

.header-container {
  /* mainの最大幅 (800px) よりは広く取る */
  max-width: 1100px; 
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between; /* 両端に寄せる */
  align-items: center; /* 垂直方向中央揃え */
  position: relative;
/*
  z-index: 2100;
  background-color: #ffffff;
*/
}

/* ロゴ */
.logo a {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.logo a img {
  height: 50px; /* ロゴの高さを調整 */
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}
.logo a:hover img {
  opacity: 0.8;
}

/* 中央のナビゲーション */
.global-nav {
  margin-left: auto;
  margin-right: 30px;
}

.global-nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 30px; /* メニュー間の隙間 */
}

.global-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  text-decoration: none;
  padding-bottom: 5px; /* ホバー時の下線用 */
  transition: color 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent; /* ホバー時の下線用スペース確保 */
}
.global-nav a:hover {
  color: #F57C00;
  border-bottom-color: #F57C00;
}

/* 右側のユーザーアクションエリア */
.user-actions {
  display: flex;
  align-items: center;
  gap: 15px; /* ボタン間の隙間 */
}

.header-button {
  display: inline-block;
  padding: 8px 16px;
  /*border-radius: 4px;*/
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ログインボタン */
.header-button.login {
  /*background-color: #fff;*/
  background-color: #ffb300;
  /*border: 1px solid #F57C00;*/
  /*color: #F57C00;*/
  color: #555;
}
.header-button.login:hover {
  /*background-color: #FFF8F0;*/
  background-color: #ffa000;
  color: #333;
  text-decoration: none;
}

/* 新規登録ボタン (前回のCTAボタンを流用) */
.cta-button-header {
  /* 前回の .cta-button スタイルを継承 */
  padding: 9px 16px; /* ヘッダー用に少しパディング調整 */
  font-size: 0.95rem;
  width: auto; /* width: 100% を上書き */
  background-color: #F57C00;
  color: #ffffff;
}
.cta-button-header:hover {
  background-color: #E65100;
  color: #ffffff;
  text-decoration: none;
}

/* --- ログイン時 --- */
.welcome-user {
  font-size: 0.95rem;
  color: #555;
  margin-right: 10px;
}

.header-button.mypage {
  /* 新規登録ボタンと同じスタイル */
  background-color: #F57C00;
  color: #ffffff;
}
.header-button.mypage:hover {
  background-color: #E65100;
  text-decoration: none;
}

.header-button.logout {
  /* ログインボタンと同じスタイル */
  background-color: #fff;
  border: 1px solid #aaa;
  color: #555;
}
.header-button.logout:hover {
  background-color: #f5f5f5;
  text-decoration: none;
}

@media (max-width: 768px) {
  .global-nav {
    display: none !important;
  }

  .logo a img {
    height: 24px;
  }

  .user-actions {
    display: flex !important;
    gap: 8px;
    margin-right: 5px;
    margin-left: auto;
  }

  .header-button {
    font-size: 0.81rem;
    border-radius: 6px;
    padding: 6px 10px;
    white-space: nowrap;  /* 文字を折り返さない */
  }

  .header-button.logout {
    display: none;
  }
}

/* --- 10. フッタースタイル --- */

.site-footer-main {
  width: 100%;
  background-color: #ffecbe;
  color: #555555;
  padding-top: 30px;
  padding-bottom: 20px;
  /*margin-top: 60px;*/
  position: relative;
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-logo {
  margin-bottom: 20px;
}
.footer-logo img {
  height: 84px;
  width: auto;
  vertical-align: bottom;
}
.footer-logo a {
  display: inline-block;
  opacity: 1;
  transition: opacity 0.3s;
}
.footer-logo a:hover {
  opacity: 0.7;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.footer-nav li {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.footer-nav li:not(:last-child)::after {
  content: '';
  color: #666;
  font-size: 0.8rem;
  margin: 0 15px;
}

.footer-nav a {
  color: #555555;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.footer-nav a:hover {
  text-decoration: underline;
  opacity: 1;
  color: #F57C00;
}

.copyright {
  font-size: 0.85rem;
  color: #555555;
}

#footer-placeholder {
  margin-top: auto;
}

/*@media (max-width: 768px) {*/
@media (max-width: 930px) {
  .site-footer-main {
    padding: 30px 0;
  }

  .footer-nav a {
    text-decoration: underline;
    text-decoration-thickness: from-font;
    text-underline-offset: 12px;
    font-size: 1rem;
    /*font-weight: normal;*/
  }

  .footer-nav ul {
    display: flex;
    flex-wrap: wrap;       /* 画面幅が狭い場合は折り返す */
    justify-content: center;
    gap: 10px 20px;        /* 縦10px 横20px の間隔を空ける */
  }

  /* スマホでは縦棒(|)を消す */
  .footer-nav li:not(:last-child)::after {
    content: none;
  }

  .copyright {
    margin-top: 20px;
    font-size: 0.75rem;
  }
}

/* --- 11. トップページ お知らせ --- */

.info-section-top {
  margin-top: 60px; /* 企画一覧ブロックとの余白 */
  margin-bottom: 60px;
}

/* h2 は既存のスタイルが適用されるはずですが、念のため定義 */
.info-section-top h2 {
  font-size: 1.8rem;
  color: #F57C00;
  padding-bottom: 10px;
  margin-bottom: 25px;
}

.info-list-top {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee; /* 上線 */
}

.info-list-top li {
  border-bottom: 1px solid #eee; /* 下線 */
}

.info-list-top a {
  display: flex;
  align-items: center;
  padding: 18px 10px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
  flex-wrap: wrap; /* スマホ用に折り返し */
}

.info-list-top a:hover {
  background-color: #f9f9f9;
  text-decoration: none;
}

.info-date {
  font-size: 0.93rem;
  color: #555;
  /*margin-right: 30px;*/
  min-width: 100px; /* 日付の幅をある程度揃える */
}

.info-title {
  font-size: 1.05rem;
  font-weight: 500;
  flex: 1; /* タイトル部分が残りの幅をすべて取る */
}

/* 一覧へボタン */
.more-link-wrapper {
  text-align: right; /* ボタンを右寄せ */
  margin-top: 25px;
}

.more-link {
  display: inline-block;
  padding: 10px 24px;
  color: #ffffff;
  border: 1px solid #F57C00;
  background-color: #F57C00;
  border-radius: 30px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.more-link:hover {
  border: 1px solid #F57C00;
  background-color: #ffffff;
  color: #F57C00;
  text-decoration: none;
}

@media (max-width: 768px) {
  .info-list-top a {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-date {
    margin-bottom: 5px;
  }

  .more-link-wrapper {
    text-align: center;
  }

  .more-link {
    font-size: 1.12rem;
  }
}

/* --- 12. メインビジュアル (ヒーローセクション) --- */

.hero-section {
  width: 100%;
  min-height: 900px;

  background-image: url('../images/top/top.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  position: relative;
}

.hero-content {
  position: relative; /* フィルターより手前に表示 */
  z-index: 2;
  max-width: 90%;
  padding: 20px;
  margin-top: -200px;
}

.hero-content h1 {
  font-size: 2.19rem;
  font-weight: bold;
  margin: 0;
  color: #555;
  /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);*/
}

.hero-content p {
  font-size: 1.25rem;
  margin: 15px 0 30px 0;
  color: #555;
  /*text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);*/
}

.hero-button {
  /* .cta-button のスタイルを継承しつつ調整 */
  width: auto; /* 幅を自動（100%を解除） */
  padding: 8px 30px; /* ボタンを大きく */
  /*font-size: 0.93rem;*/
  font-size: 1.5rem;
  font-weight: normal;
  border-radius: 40px;
  margin-top: 30px;

  /* (オレンジベースの場合) */
  background-color: #F57C00; 
  border: 2px solid #F57C00;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hero-button:hover {
  background-color: #ffffff;
  color: #F57C00;
  border: 2px solid #F57C00;
  text-decoration: none;
}

@media (max-width: 1024px) {
  .hero-section {
    background-image: url('../images/top/top_sp.png');
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    aspect-ratio: 700 / 900;
    background-repeat: no-repeat;
    background-position: top center;
    padding: 0 20px;
    background-origin: content-box;
    background-size: 100% auto;
  }

  .hero-content {
    margin-top: -450px;
  }

  .hero-button {
    font-size: 1.12rem;
  }
}

@media (max-width: 767px) {
  .hero-section {
    background-image: url('../images/top/top_sp.png');
    height: auto;
    min-height: 0;
    box-sizing: border-box;
    /*aspect-ratio: 750 / 1200;*/
    aspect-ratio: 700 / 900;
    background-repeat: no-repeat;
    background-position: top center;
    padding: 0 20px;
    background-origin: content-box;
    background-size: 100% auto;
  }

  .hero-content {
    margin-top: -150px;
  }

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.87rem;
    margin: 10px 0 20px 0;
  }

  .hero-button {
    font-size: 1.12rem;
  }
}


/* --- 13. 下層ページ共通・お知らせ詳細 --- */

/* ページタイトルエリア (薄いグレー背景で区分け) */
.page-title-area {
  /*background-color: #f4f7f9;*/
  padding: 40px 0;
  /*border-bottom: 1px solid #e0e0e0;*/
  /*margin-bottom: 40px;*/
}

.page-title-area h1 {
  font-size: 3.125rem;
  margin: 0;
  color: #ff8c00;
  text-align: center;
}

/* 記事コンテナ */
.article-container {
  max-width: 840px; /* 記事は読みやすいように少し幅を狭める */
  margin: 0 auto; /* 中央寄せ */
  margin-bottom: 60px;
}

/* --- 記事ヘッダー --- */
.article-header {
  /*margin-bottom: 40px;*/
  /*border-bottom: 1px solid #eee;*/
  padding-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.article-cat {
  width: 80px;
  background-color: #F57C00; /* オレンジ */
  color: #fff;
  font-size: 0.8rem;
  padding: 5px 8px;
  /*border-radius: 2px;*/
  border-radius: 20px;
  white-space: nowrap;
  text-align: center;
}

.article-cat.info {
  background-color: #D32F2F; /* 重要（赤） */
  letter-spacing: 5px;
}

.article-cat.event {
  background-color: #1976D2; /* イベント（青） */
}

.article-cat.news {
  background-color: #fff; /* ニュース（オレンジ：デフォルトと同じ） */
  color: #F57C00;
  border: 1px solid #F57C00;
}

.article-date {
  color: #777;
  font-size: 0.9rem;
}

.article-title {
  /*font-size: 2rem;*/
  font-size: 3.12rem;
  line-height: 1.4;
  margin: 0;
  color: #ff8c00;
  border: none; /* h2のデフォルト下線を消す */
}

/* --- 記事本文 (Typography) --- */
.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  /*margin-bottom: 60px;*/
}

.article-body p {
  margin-bottom: 1.5em;
}

.article-body h3 {
  font-size: 1.5rem;
  color: #F57C00; /* オレンジ */
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid #F57C00;
  padding-left: 15px;
}

.article-body ul {
  background-color: #f9f9f9;
  padding: 20px 20px 20px 40px;
  border-radius: 4px;
  margin-bottom: 30px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-body img {
  max-width: 100%; /* 画像がはみ出さないように */
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.article-body figure {
  margin: 0 0 30px 0;
}
.article-body figcaption {
  font-size: 0.9rem;
  color: #777;
  text-align: center;
  margin-top: 5px;
}

/* --- お知らせ詳細 ナビゲーション --- */
.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  margin-bottom: 20px;
  /*padding-top: 20px;*/
  /*border-top: 1px solid #eee;*/
}

.nav-link {
  display: inline-block;
  padding: 10px 0;
  color: #ff8c00;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
  max-width: 45%; /* 長いタイトル対策 */
}

.nav-link:hover {
  color: #F57C00;
  text-decoration: underline;
}

.nav-link i {
  opacity: 0.7;
}

.nav-prev {
  text-align: left;
}

.nav-next {
  text-align: right;
}

/* --- 戻るボタン --- */
.article-footer {
  text-align: center;
  padding-top: 40px;
  /*border-top: 1px solid #eee;*/
}

.btn-back {
  display: inline-block;
  padding: 12px 40px;
  background-color: #fff;
  border: 1px solid #989596;
  color: #555;
  text-decoration: none;
  /*border-radius: 4px;*/
  border-radius: 30px;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background-color: #f0f0f0;
  color: #333;
  text-decoration: none;
}

@media (max-width: 768px) {
  .page-title-area {
    padding: 10px 0;
  }
  .page-title-area h1 {
    font-size: 1.56rem;
  }

  .article-container {
    margin-top: 40px;
  }

  .article-title {
    font-size: 1.56rem;
  }

  .btn-back {
    font-size: 1.12rem;
  }
}


/* --- 14. お知らせ一覧ページ --- */

.news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 60px 0;
  border-top: 1px solid #eee;
}

.news-item {
  border-bottom: 1px solid #eee;
}

.news-item a {
  display: flex;
  align-items: flex-start; /* 上揃え */
  padding: 25px 15px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s ease;
  
  /* スマホなど画面が狭い時は縦並びにするための設定 */
  flex-wrap: wrap; 
}

.news-item a:hover {
  background-color: #f9f9f9;
}

/* 日付とカテゴリをまとめる枠 */
.news-meta {
  display: flex;
  align-items: center;
  min-width: 180px; /* PCでの横幅確保 */
  margin-right: 20px;
  /*margin-bottom: 5px;*/ /* スマホ用に少し余白 */
}

.news-date {
  color: #666;
  font-family: 'Roboto', sans-serif; /* 数字をきれいに */
  /*margin-right: 15px;*/
  min-width: 100px;
}

/* カテゴリラベル */
.news-cat {
  display: inline-block;
  width: 80px;
  /*font-size: 13pt;*/
  font-size: 0.81rem;
  padding: 5px 8px;
  border-radius: 20px;
  border: 1px solid #F57C00;
  background-color: #fff;
  color: #F57C00;
  white-space: nowrap; /* 改行させない */
  text-align: center;
}

/* カテゴリごとの色変え */
.news-cat.info { border: none; background-color: #ff0000; color: #fff; letter-spacing: 5px; } /* 赤（重要など） */
.news-cat.event { border: none; background-color: #1976D2; color: #fff; } /* 青（イベントなど） */


.news-title {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.5;
  flex: 1; /* 残りの幅をすべて使う */
  color: #333;
}


/* --- ページネーション --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 60px;
}

.page-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #F57C00;
  border-radius: 30px;
  color: #F57C00;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-number:hover {
  background-color: #F57C00;
  color: #fff;
  border-color: #F57C00;
  text-decoration: none;
}

/* 現在のページ */
.page-number.active {
  background-color: #F57C00;
  color: #fff;
  border-color: #F57C00;
  pointer-events: none; /* クリック無効化 */
}

.page-number.prev,
.page-number.next {
  font-size: 2rem;
  border: none;
  line-height: 1;
  margin-top: -6px;
}
.page-number.prev:hover,
.page-number.next:hover {
  border: none;
  background: none;
  color: #555;
}

.page-ellipsis {
  color: #999;
}


/* --- レスポンシブ調整 (スマホ向け) --- */
@media (max-width: 600px) {
  .news-item a {
    flex-direction: column; /* 縦並び */
  }
  .news-meta {
    margin-bottom: 8px;
  }
  .news-date {
    font-size: 0.81rem;
  }
  .news-cat {
    padding: 3px 8px;
  }
  .news-title {
    font-size: 1rem;
  }
}

/* --- 15. ログイン画面 (モダンデザイン化) --- */

.auth-page-bg {
  background-color: #fdf3db;
}
main.auth-page-bg {
  padding: 10px 20px;
  padding-bottom: 60px;
}
.page-title-area.auth-page-bg {
  padding-bottom: 20px;
}
.auth-page-bg .login-card {
  margin: 0 auto;
}

/* 背景エリア: 画面いっぱいに画像を敷く */
.login-page-background {
/*
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
*/

  /* 背景画像の設定 (トップページと同じ画像か、少しボカした画像推奨) */
/*
  background-image: url('../images/top/top.png'); 
  background-size: cover;
  background-position: center;
*/
  background-color: #fdf3db;
  position: relative;

  padding: 40px 20px; /* スマホでの余白確保 */
}

/* 背景に暗いフィルターをかけて文字を見やすくする */
.login-page-background::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
/*
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
*/
}

/* 中央の白いカード */
.login-card {
  /*background-color: rgba(255, 255, 255, 0.95);*/
  background-color: #fff;
  width: 100%;
  max-width: 420px; /* カードの幅 */
  padding: 40px;
  border-radius: 12px;
  /*box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);*/
  position: relative; /* フィルターより手前に表示 */
  z-index: 2;
}

/* カード内のヘッダー */
.login-header {
  text-align: center;
  /*margin-bottom: 30px;*/
}

.login-header h2 {
  font-family: 'Helvetica Neue', Arial, sans-serif; /* 英字フォント優先 */
  font-size: 2rem;
  color: #ff8c00;
  border-bottom: none; /* 既存の線を消す */
  margin-bottom: 5px;
  padding-bottom: 0;
}

.login-header p {
  color: #777;
  font-size: 0.9rem;
  margin: 0;
}

/* フォーム周りの調整 */
.login-card .form-group {
  margin-bottom: 25px;
}

.login-card label {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

/* 入力フィールドを格好良く */
.login-card input[type="email"],
.login-card input[type="password"] {
  width: 100%;
  padding: 14px;
  border: 1px solid #989596;
  border-radius: 6px;
  font-size: 1rem;
  /*background-color: #f9f9f9;*/
  transition: all 0.3s ease;
}

/* 入力時のフォーカスデザイン */
.login-card input[type="email"]:focus,
.login-card input[type="password"]:focus {
  border-color: #F57C00; /* オレンジ */
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.15); /* ふわっと光る */
}

/* ログインオプション */
.login-options {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
  color: #666;
}

/* ボタン調整 */
.login-btn {
  width: auto;
  padding: 10px 30px;
  /*font-size: 1.1rem;*/
  font-size: 0.93rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3); /* ボタン自体も光らせる */
}
.login-btn:hover {
  transform: translateY(-2px); /* 浮き上がる動き */
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

.tologin-btn {
  width: auto;
  padding: 10px 30px;
  font-size: 0.93rem;
  letter-spacing: 1px;
  background-color: #ffb300;
  color: #555;
}
.tologin-btn:hover {
  background-color: #ffa000;
  transform: translateY(-2px); /* 浮き上がる動き */
  box-shadow: 0 6px 20px rgba(245, 124, 0, 0.4);
}

/* フッターリンク */
.login-footer {
  margin-top: 25px;
  text-align: center;
  font-size: 0.9rem;
}

.sub-link {
  color: #888;
  text-decoration: none;
  transition: color 0.3s;
}

.sub-link:hover {
  color: #F57C00;
}

.sub-link.highlight {
  color: #F57C00;
  font-weight: bold;
}

.separator {
  margin: 0 10px;
  color: #ddd;
}

@media (max-width: 768px) {
  main.auth-page-bg {
    padding: 0px 20px;
    padding-bottom: 30px;
  }

  main.auth-page-bg.change-profile {
    padding: 0;
  }

  .login-card {
    width: auto;
  }

  .login-card,
  .register-card {
    padding: 10px 30px;
  }

  .login-header h2 {
    font-size: 1.25rem;
  }

  .login-footer a.sub-link {
    color: #555;
    font-size: 1.12rem;
    text-decoration: underline;
    text-underline-offset: 10px;
  }
}


/* --- 16. パスワード再設定画面 --- */

/* 既存の .login-card 等のスタイルを継承して使用します */

.reset-instruction {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: center; /* 説明文を中央寄せ */
}

/* --- 17. パスワード再設定メール送信完了画面 --- */

/* カード内のレイアウト調整 */
.sent-screen {
  text-align: center; /* 全体を中央寄せ */
}

/* 注意書きボックス */
.note-box {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 15px;
  margin: 20px 0 30px 0;
}

.note-box p {
  font-size: 0.85rem;
  color: #888;
  margin: 0;
  text-align: left; /* 長文は左寄せの方が読みやすい */
}

/* --- チェックマークのアニメーション --- */

.success-icon-wrapper {
  margin-bottom: 20px;
}

.checkmark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
  stroke-width: 3; /* 線の太さ */
  stroke: #F57C00; /* オレンジ */
  stroke-miterlimit: 10;
  margin: 0 auto;
  box-shadow: inset 0 0 0 #F57C00;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

/* 円を描くアニメーション */
.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #F57C00;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

/* チェックを描くアニメーション */
.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

/* キーフレーム定義 */
@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@media (max-width: 768px) {
  .sent-screen {
    padding: 40px 0px;
  }

  .sent-screen h2 {
    font-size: 1.56rem;
  }
}


/* --- 18. パスワード設定画面 (微調整) --- */

/* 入力欄の下に注釈を入れる場合のスタイル */
.input-note {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #888;
}

/* --- 19. 新規会員登録 (マルチステップ) --- */

.register-card {
  max-width: 800px; /* 項目が多いので少し幅を広げる */
  /*padding: 20px 40px;*/
  padding-bottom: 40px;
}

/* 必須バッジ */
.badge-req {
  background-color: #ff5252;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ステップインジケーターの装飾 */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  padding: 0;
  list-style: none;
  position: relative;
}

/* インジケーターの線 */
/*
.step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #eee;
  z-index: 1;
  transform: translateY(-50%);
}
*/
.step-item {
  position: relative;
  z-index: 2;
  background-color: #fff;
  color: #bbb;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 5px 15px;
  border: 2px solid #989596;
  border-radius: 30px;
  transition: all 0.3s;
  margin-left: 5px;
  margin-right: 5px;
}
.step-item:first-child {
  margin-left: 0;
}
.step-item:last-child {
  margin-right: 0;
}

.step-item.active {
  color: #F57C00;
  border-color: #F57C00;
}

/* フォーム要素の補足 */
.form-intro {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.radio-group, .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 5px 0;
}

.radio-group label, .checkbox-group label {
  cursor: pointer;
  font-weight: normal;
  font-size: 0.95rem;
}

/* セレクトボックス */
.select-wrapper select {
  width: 100%;
  padding: 12px;
  border: 1px solid #989596;
  border-radius: 4px;
  background-color: #fff;
  font-size: 1rem;
}

/* ボタンエリア */
.btn-area {
  margin-top: 30px;
  text-align: center;
}
.btn-area-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-area-row .cta-button {
  width: 180px;
  max-width: 48%;
  padding: 10px 0;
  font-size: 0.93rem;
  box-sizing: border-box;
}

/* 「会員アンケートへ進む」ボタン */
.next-btn {
  width: auto;
  padding: 10px 30px;
  font-size: 0.93rem;
}

/* 戻るボタン (白抜き) */
.btn-outline {
  width: auto;
  background-color: #fff;
  color: #555;
  border: 2px solid #989596;
}
.btn-outline:hover {
  background-color: #FFF8F0;
  text-decoration: none;
}

/* 住所検索ボタン */
.btn-address {
  width: auto;
  background-color: #fff;
  color: #F57C00;
  border: 2px solid #F57C00;
  border-radius: 5px;
}
.btn-address:hover {
  background-color: #FFF8F0;
  text-decoration: none;
}

.verify-form-footer {
  margin-top: 30px;
}
.verify-form-footer span {
  color: #555;
  margin: 0 30px;
}
.verify-form-footer a {
  color: #555;
}

/* 確認画面リスト */
.confirm-section-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ea5b0c;
}
.confirm-list {
  /*background-color: #f9f9f9;*/
  padding: 20px;
  border-radius: 6px;
  text-align: left;
}
.confirm-list dt {
  font-size: 1.31rem;
  font-weight: 500;
  color: #555;
  margin-top: 10px;
  margin-bottom: 4px;
}
.confirm-list dd {
  font-size: 1.1rem;
  color: #555;
  margin-left: 0;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}
.confirm-list dd:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.welcom {
  color: #ff8c00 !important;
  font-size: 1.25rem !important;
  margin-bottom: 30px !important;
}

.form-intro {
  font-size: 0.87rem;
}

.send-email {
  margin-bottom: 20px;
  font-size: 1.31rem;
  font-weight: bold;
  color: #333;
}

.date-row .col-half {
  display: flex;       /* 横並びにする */
  align-items: center; /* 上下中央揃え */
  gap: 10px;           /* 入力欄と文字の間隔 */
}
.date-row input {
  flex: 1;       /* 余った幅を埋める */
  width: auto;   /* width: 100% の指定を解除 */
  margin: 0;
}
.date-row span {
  font-weight: bold;
  white-space: nowrap; /* 改行させない */
  flex-shrink: 0;      /* 画面が狭くても文字をつぶさない */
  color: #555;
}

@media (max-width: 768px) {
  .verify-form-footer span {
    display: none;
  }

  .verify-form-footer a {
    display: block;
    padding: 10px 0px;
    text-decoration: underline;
    text-underline-offset: 10px;
  }

  .send-email {
    margin-bottom: 30px;
    font-size: 1rem;
  }

  .step-indicator li {
    padding: 0;
  }

  .step-indicator .step-item {
    border-radius: 10px;
    flex: 1;
    width: 100%;
    margin: 0 3px;
    padding: 10px 2px;
    font-size: 0.81rem;
    line-height: 1.3;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .checkbox-group {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .btn-area-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .confirm-list {
    padding: 0;
  }

  .date-row {
    flex-direction: column;
    gap: 15px;
  }
}


/* --- 20. 利用規約同意チェック --- */

.terms-check-wrapper {
  margin: 30px 0;
  margin-bottom: 10px;
  text-align: center;
  background-color: #fff;
  /*border: 1px solid #eee;*/
  padding: 15px;
  border-radius: 6px;
}

.terms-check-wrapper label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  font-size: 1rem;
}

.terms-check-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #F57C00; /* チェックした時の色 */
  cursor: pointer;
}

.terms-check-wrapper a {
  text-decoration: underline;
  margin: 0 2px;
}

/* --- ボタンの無効化スタイル (disabled) --- */
.cta-button:disabled {
  background-color: #ccc; /* グレーにする */
  border-color: #ccc;
  color: #888;
  cursor: not-allowed; /* 禁止マークのカーソル */
  box-shadow: none;
  transform: none;
}

@media (max-width: 768px) {
  .terms-check-wrapper {
    padding: 0;
    text-align: left;
    margin-bottom: 30px;
  }
}


/* --- 21. トップページ - 読売 IDで利用できるサービス --- */

.service-section {
  padding: 80px 0;
  background-color: #fff;
}

.service-section .content-wrapper {
  position: relative;
  background-color: #ffecbe;
  border-radius: 16px;
  padding: 50px 30px 80px;
  margin-top: 60px;

  max-width: 1200px;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.service-section h2 {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translate(-50%, -50%);

  color: #ff8c00;
  /*padding: 0 20px;*/
  padding-top: 20px;

  /*font-size: 1.8rem;*/
  font-weight: bold;
  white-space: nowrap;
  border-radius: 0;
  box-shadow: none;

  border-bottom: none;
  margin-bottom: 0;
  text-align: center;
}

/* セクション導入文 */
.section-intro {
  text-align: center;
  font-size: 1.06rem;
  color: #555;
  margin-bottom: 50px;

  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 250px以下にはならない */
  gap: 20px;

  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px 20px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  text-decoration: none;
  border-color: #F57C00;
}

.service-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #FFF3E0; /* 薄いオレンジ背景 */
  color: #F57C00;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.service-icon-wrapper i {
  font-size: 32px;
}

.service-image-wrapper {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -30px;
  margin-bottom: 15px;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  background-color: #fafafa;
}

.service-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;

  /* 画像の角を少し丸くする場合 */
  /* border-radius: 8px; */
}

.service-card h3 {
  font-size: 1.3rem;
  color: #F57C00; /* タイトルをオレンジに */
  margin: 0 0 10px 0;
}

.service-card p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* --- h2 のスタイル (既存のものを流用) --- */
.service-section h2,
.project-section h2,
.info-section-top h2 {
  text-align: center;
  font-size: 3.125rem;
  color: #ff8c00;
  margin-bottom: 25px;
}

/* レスポンシブ調整 (必要に応じて) */
@media (max-width: 768px) {
  .service-section {
    padding: auto;
  }

  .service-section .content-wrapper {
    width: 100%;
    border-radius: 0px;
    padding: 20px 20px 20px;
    margin-top: 0px;
  }

  .service-section h2 {
    font-size: 1.56rem;
    white-space: normal;
    width: 90%;
    top: -25px;
    line-height: 1.3;
  }

  .section-intro {
    font-size: 0.87rem;
    margin-bottom: 20px;
  }

  .service-list {
    /*grid-template-columns: 1fr;*/
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .service-card h3 {
    font-size: 1.3rem;
  }

  .project-section {
    padding: 0px;
  }

  .project-section h2 {
    font-size: 1.56rem;
  }

  .info-section-top {
    padding: 0px;
  }

  .info-section-top h2 {
    font-size: 1.56rem;
  }
}

/* --- 22. マイページ (改修版) --- */

.mypage-header {
  margin-bottom: 40px;
}
.user-name {
  font-size: 1.1rem;
  color: #555;
}

.mypage-section {
  margin-bottom: 60px;
}
.mypage-section h3 {
  font-size: 1.4rem;
  color: #333;
  border-left: 5px solid #F57C00;
  padding-left: 15px;
  margin-bottom: 25px;
}

/* --- タブ切り替え --- */
.tab-buttons {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}
.tab-btn {
  flex: 1;
  padding: 15px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 1rem;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: all 0.3s;
}
.tab-btn:hover {
  background-color: #fafafa;
  color: #F57C00;
}
.tab-btn.active {
  color: #F57C00;
  border-bottom-color: #F57C00;
}

.tab-content {
  display: none; /* 通常は非表示 */
  animation: fadeIn 0.5s;
}
.tab-content.active {
  display: block; /* activeクラスがついたら表示 */
}

/* --- 履歴リスト --- */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap; /* スマホ対応 */
  gap: 10px;
}

.history-date {
  font-size: 0.85rem;
  color: #777;
  display: block;
  margin-bottom: 5px;
}
.history-title {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

/* ステータスバッジ */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  min-width: 80px;
  text-align: center;
}
.status-badge.lottery { background-color: #78909C; } /* 抽選中: グレー青 */
.status-badge.won     { background-color: #E91E63; } /* 当選: ピンク */
.status-badge.lost    { background-color: #BDBDBD; } /* 落選: グレー */

.history-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.link-detail {
  font-size: 0.85rem;
  text-decoration: underline;
}

/* もっと見るリンク（小さめ） */
.more-link-sm {
  display: inline-block;
  font-size: 0.9rem;
  color: #F57C00;
  margin-top: 15px;
  text-decoration: none;
}
.more-link-sm:hover {
  text-decoration: underline;
}

/* --- 開催中のキャンペーン (横長カード) --- */
.active-campaign-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ac-card {
  display: flex;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.3s;
}
.ac-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
}
.ac-img {
  width: 140px;
  flex-shrink: 0;
}
.ac-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ac-content {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ac-content h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
  color: #F57C00;
}
.ac-content .ac-limit {
  margin: 0;
  font-size: 0.9rem;
  color: #777;
}

/* --- 会員メニュー --- */
.member-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.member-menu-list a {
  display: block;
  padding: 20px 10px;
  color: #333;
  text-decoration: none;
  display: flex;
  flex-direction: column; /* 説明文があるため縦並び */
  transition: background-color 0.2s;
}
.member-menu-list a:hover {
  background-color: #f9f9f9;
}
.member-menu-list span {
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
/* アイコンの色 */
.member-menu-list i {
  color: #ccc;
  width: 24px;
  text-align: center;
}
.member-menu-list a:hover i {
  color: #F57C00;
}
.member-menu-list small {
  display: block;
  margin-left: 34px; /* アイコン分ずらす */
  color: #888;
  font-size: 0.9rem;
  margin-top: 5px;
}
/* 右矢印をつける */
.member-menu-list a {
  position: relative;
}
.member-menu-list a::after {
  content: '\f054'; /* FontAwesomeの右矢印コード */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #ddd;
}

/* リスト全体をFlexboxで横並びにする */
.mypage-support .member-menu-list {
  display: flex;
  justify-content: center; /* 中央寄せ */
  align-items: center;
  gap: 40px;               /* 項目同士の間隔 */
  border-top: none;        /* 以前の上の線を消す */
  padding: 0;
  margin: 0;
  list-style: none;
}

/* リストアイテムの枠線を消す */
.mypage-support .member-menu-list li {
  border-bottom: none; /* 下の線を消す */
  margin: 0;
  padding: 0;
  width: auto;         /* 幅をなりゆきにする */
}

/* リンクのデザイン調整 */
.mypage-support .member-menu-list a {
  display: flex;
  align-items: center;
  justify-content: center; /* 文字・アイコンを中央に */
  gap: 8px;                /* アイコンと文字の間隔 */
  padding: 10px 15px;      /* クリックしやすい余白 */
  background-color: transparent; /* 背景色なし */
  font-size: 1.12rem;
  color: #555;
  transition: color 0.3s;
}

/* 横並びの時は「右矢印（>）」を消す */
.mypage-support .member-menu-list a::after {
  content: none;
}

/* ホバー時の挙動 */
.mypage-support .member-menu-list a:hover {
  color: #F57C00;
  text-decoration: underline;
  background-color: transparent;
}

/* --- ログアウトエリア --- */
.logout-area {
  margin-top: 30px;
  text-align: center;
  padding-top: 40px;
}
.btn-logout {
  font-size: 0.93rem;
  color: #555;
  border: 1px solid #555;
  background-color: #fff; /* ログアウトは控えめな色 */
  max-width: 250px;
  margin: 0 auto;
}
.btn-logout:hover {
  background-color: #777;
  color: #fff;
}
.withdraw-link {
  margin-top: 40px;
}
.withdraw-link a {
  font-size: 1.31rem;
  color: #555;
  text-decoration: none;
}
.withdraw-link a:hover {
  color: #555;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .ac-card {
    flex-direction: column;
  }
  .ac-img {
    width: 100%;
    height: 120px;
  }

  .mypage-support .member-menu-list {
    margin: 0;
    flex-direction: column;
    gap: 0;
  }

  .mypage-support .member-menu-list li {
    width: 100%;
  }

  .mypage-support .member-menu-list a {
    font-size: 1rem;
    padding: 20px 10px;
    position: relative;
    text-decoration: underline;
    text-underline-offset: 10px;
  }
}

@media (max-width: 768px) {
  .mypage-section {
    margin-bottom: 30px;
  }

  .logout-area {
    margin-top: 20px;
    padding-top: 20px;
  }

  .btn-logout {
    font-size: 1.12rem;
  }

  .withdraw-link a {
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 10px;
  }
}

/* --- 23. 静的ページ（利用規約など） --- */

/* 文書全体のコンテナ */
.static-page-container {
  max-width: 840px; /* 1行が長くなりすぎないように制限 */
  margin: 0 auto 60px auto;
  margin-bottom: 100px;
  line-height: 1.8; /* 文章を読みやすく広めに */
  font-size: 1.31rem;
  color: #444;
}

/* リード文 */
.terms-lead {
  margin-bottom: 30px;
}

/* 日付（右寄せ） */
.terms-meta {
  text-align: right;
  color: #777;
  margin-bottom: 40px;
  font-size: 1rem;
}

/* 各条項のセクション */
.terms-section {
  margin-bottom: 40px;
}

/* 条項見出し（第〇条） */
.terms-section h3 {
  font-size: 1.87rem;
  color: #ff8c00;
  padding: 10px 0px;
  margin-bottom: 10px;
}

/* 条項内の番号付きリスト (1. 2. ...) */
.terms-list {
  padding-left: 20px;
  margin: 0;
}

.terms-list li {
  margin-bottom: 10px;
  padding-left: 5px;
}

/* 条項内の黒丸リスト */
.terms-sublist {
  margin-top: 10px;
  padding-left: 20px;
  list-style-type: disc;
  color: #555;
}
.terms-sublist li {
  margin-bottom: 5px;
}

/* 住所・連絡先 */
.terms-contact {
  font-style: normal; /* 斜体を解除 */
  font-size: 1.5rem;
  background-color: #ffecbe;
  padding: 30px;
  border-radius: 20px;
  margin-top: 20px;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .static-page-container {
    font-size: 0.87rem;
    margin-bottom: 30px;
  }

  .terms-meta {
    font-size: 0.8rem;
  }

  .terms-section h3 {
    font-size: 1.12rem;
  }

  .terms-contact {
    font-size: 1rem;
    border-radius: 0;
    padding: 20px;
    margin-left: -20px;
    margin-right: -20px;
    box-sizing: border-box;
  }
}

/* --- 24. よくある質問 (FAQ) --- */

.faq-container {
  max-width: 840px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 50px;
}

.faq-cat-title {
  font-size: 1.4rem;
  color: #333;
  border-bottom: 2px solid #F57C00; /* オレンジの下線 */
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.faq-cat-title i {
  margin-right: 10px;
  color: #F57C00;
}

/* アコーディオン全体 */
.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: #fff;
  overflow: hidden; /* 角丸からはみ出さないように */
}

/* 質問部分 (summary) */
.faq-question {
  display: flex;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  list-style: none; /* デフォルトの▼を消す */
  position: relative;
  transition: background-color 0.2s;
}
/* Chrome/Safariなどで▼を消すためのベンダープレフィックス */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  background-color: #fafafa;
}

/* 開いている時の質問部分 */
.faq-item[open] .faq-question {
  background-color: #FFF8F0; /* 薄いオレンジ背景 */
}

/* Qアイコン */
.q-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: #F57C00;
  color: #fff;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  font-family: 'Roboto', sans-serif;
}

/* 右側の開閉アイコン (+ / -) */
.toggle-icon {
  margin-left: auto; /* 右端に寄せる */
  color: #aaa;
  transition: transform 0.3s;
}

/* 開いている時はアイコンを回転させる */
.faq-item[open] .toggle-icon {
  transform: rotate(45deg); /* + が × のように回転 */
  color: #F57C00;
}

/* 回答部分 */
.faq-answer {
  border-top: 1px solid #f0f0f0;
  background-color: #fff;
  padding: 20px;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* 回答の中身レイアウト */
.a-inner {
  display: flex;
  align-items: flex-start;
}

/* Aアイコン */
.a-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: #eee;
  color: #555;
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  font-weight: bold;
  font-family: 'Roboto', sans-serif;
}

.a-text {
  flex: 1;
}
.a-text p {
  margin: 0 0 10px 0;
}
.a-text p:last-child {
  margin-bottom: 0;
}

/* お問い合わせ誘導エリア */
.faq-contact-area {
  margin-top: 60px;
  padding: 40px 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
}
.faq-contact-area p {
  margin-bottom: 20px;
  font-weight: bold;
  color: #555;
}
.btn-contact {
  max-width: 300px;
  margin: 0 auto;
  background-color: #333; /* お問い合わせは落ち着いた色でもOK */
}
.btn-contact:hover {
  background-color: #555;
}

/* --- 25. 設定変更ページ（メール・パスワード変更等） --- */

/* フォーム全体を中央に寄せて枠線で囲む */
.setting-form-container {
  max-width: 800px;
  margin: 0 auto 60px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 8px;
}

/* 現在の設定値（グレーのボックスで表示） */
.current-value-display {
  background-color: #f4f4f4;
  padding: 12px 15px;
  border-radius: 6px;
  color: #555;
  font-family: monospace; /* 等幅フォントっぽくしてアドレスを見やすく */
  font-size: 1rem;
  border: 1px solid #ddd;
}

/* ボタンエリア（中央寄せ・縦並び） */
.btn-area-center {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn-area-center .cta-button {
  max-width: 300px; /* ボタンが広がりすぎないように */
}

/* キャンセル（戻る）リンク */
.btn-cancel {
  color: #777;
  font-size: 0.9rem;
  text-decoration: underline;
}
.btn-cancel:hover {
  color: #333;
}

/* 入力欄下の注釈 */
.input-note {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .setting-form-container {
    padding: 10px 30px;
    padding-bottom: 60px;
    border: none;  /* 枠線を消して画面いっぱいに */
    box-shadow: none;
  }
}

/* --- 26. 会員情報変更ページ --- */

/* 姓・名の横並びレイアウト */
.name-row {
  display: flex;
  gap: 15px;
}
.col-half {
  flex: 1; /* 均等に分割 */
}

/* 区切り線 */
.form-divider {
  border: 0;
  border-top: 1px solid #eee;
  margin: 30px 0;
}

/* 補足テキスト（ハイフンなし等） */
.note {
  font-weight: normal;
  font-size: 0.85rem;
  color: #888;
}

#address-result-list {
  list-style: none;
  /* ★バグ修正：一番上が浮き上がった時に見切れないよう、上下左右に少し余白(padding)を取る */
  padding: 4px;            
  margin: 12px 0 0 0;
  max-height: 320px;
  overflow-y: auto;
}

/* 2. 各住所の項目 (li) */
#address-result-list li {
  margin-bottom: 10px; 
}
#address-result-list li:last-child {
  margin-bottom: 0;
}

/* 3. クリックできる住所リンク (a) */
#address-result-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  color: #e65100;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
  background-color: #fff;
  border: 1px solid #ffcc80; /* ★薄いオレンジの枠線 */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

/* 4. 「＞」矢印アイコン */
#address-result-list li a::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #f57c00;  /* ★濃いオレンジの矢印 */
  border-right: 2px solid #f57c00;
  transform: rotate(45deg);
  margin-left: 12px;
  flex-shrink: 0;
}

/* 5. ホバー時（マウスが乗った時）のスタイル */
#address-result-list li a:hover {
  background-color: #fff3e0;       /* ★背景を極薄いオレンジに */
  border-color: #f57c00;           /* ★枠線を濃いオレンジに強調 */
  color: #e65100;                  /* ★文字色もテーマに合わせたオレンジに */
  transform: translateY(-2px);     /* フワッと上に浮き上がる */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を少し濃くする */
}

@media (max-width: 768px) {
  .name-row {
    display: grid;
  }
}


/* --- 27. スクロールアニメーション (UX向上) --- */

/* 基本のアニメーションクラス (初期状態: 透明で少し下) */
.js-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  /* ↑ cubic-bezier で慣性のある滑らかな動きに */
}

/* 画面に入った時のクラス (表示状態: 不透明で元の位置) */
.js-fade-up.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* --- 時間差表示 (スタッガー効果) --- */
/* リスト内のアイテムが順番に出てくるように遅延させる設定 */

/* サービスカード、企画カード用 */
.service-card.js-fade-up,
.project-card.js-fade-up,
.news-item.js-fade-up {
  transition-delay: 0s; /* デフォルト */
}

/* 2番目の要素は 0.1秒遅らせる */
.service-card.js-fade-up:nth-child(2),
.project-card.js-fade-up:nth-child(2),
.news-item.js-fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

/* 3番目の要素は 0.2秒遅らせる */
.service-card.js-fade-up:nth-child(3),
.project-card.js-fade-up:nth-child(3),
.news-item.js-fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

/* 4番目の要素は 0.3秒遅らせる */
.service-card.js-fade-up:nth-child(4),
.project-card.js-fade-up:nth-child(4),
.news-item.js-fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

/* --- メインビジュアル用 (スクロール待たずに最初から動く) --- */
.hero-content {
  /* 既存スタイルに追加でアニメーション定義 */
  animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- 28. 退会ページ --- */

.withdraw-page-bg {
  background-color: #ededed;
}
.withdraw-page-bg h1 {
  color: #555;
}

.page-title-area.withdraw-page-bg {
  padding-bottom: 20px;
}

main.withdraw-page-bg {
  padding: 10px 20px;
  padding-bottom: 60px;
}

/* 注意喚起ボックス */
.warning-box {
  background-color: #FFF3E0; /* 薄いオレンジ/黄色系 */
  border: 2px solid #FFB74D;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 30px;
  color: #5d4037;
}

.warning-box h3 {
  font-size: 1.2rem;
  color: #E65100; /* 濃いオレンジ */
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-box p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.warning-box strong {
  color: #D32F2F; /* 赤文字で強調 */
  background: linear-gradient(transparent 60%, #ffcdd2 60%); /* 下半分にマーカー */
}

/* 任意バッジ (グレー) */
.badge-any {
  background-color: #999;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* 危険アクションボタン (赤色) */
.btn-danger {
  background-color: #D32F2F; /* 赤 */
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background-color: #B71C1C; /* 濃い赤 */
}

/* 背景 (オーバーレイ) */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0;
}

.modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

/* ダイアログボックス */
.modal-box {
  background-color: rgba(51, 51, 51, 0.8); 
  color: #fff;
  width: 90%;
  max-width: 320px;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-box {
  transform: translateY(0);
}

/* メッセージテキスト */
.modal-message {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 40px;
  line-height: 1.6;
}

.modal-message .msg-main {
  font-size: 1.25rem;
}
.modal-message .msg-sub {
  font-size: 0.87rem;
}

/* ボタンエリア */
.modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

/* モーダル内の共通ボタン */
.modal-btn {
  padding: 12px 0;
  width: 100%; 
  max-width: 220px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  font-size: 1.12rem;
  transition: background-color 0.3s;
}

/* OKボタン (赤色・上に配置される) */
.modal-btn.ok {
  background-color: #c80000;
  color: #fff;
  order: 1; /* 順番を1番目に指定 */
}
.modal-btn.ok:hover {
  background-color: #B71C1C;
}

/* キャンセルボタン (下に配置される) */
.modal-btn.cancel {
  background-color: #ffb300;
  color: #555;
  order: 2; /* 順番を2番目に指定 */
}
.modal-btn.cancel:hover {
  background-color: #E65100;
}

.withdraw-page-bg.auth-page-bg .login-header {
  margin-bottom: 30px;
}
.withdraw-page-bg.auth-page-bg .login-header h2 {
  color: #555;
  font-size: 2.5rem;
  margin-top: 10px;
}
.withdraw-page-bg.auth-page-bg .login-header p {
  color: #ff8c00;
  font-size: 1.25rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .withdraw-page-bg .content-wrapper {
    padding: 0;
  }

  .withdraw-page-bg .content-wrapper .setting-form-container {
    padding: 20px;
    padding-bottom: 40px;
    margin-bottom: 0px;
  }

  .withdraw-page-bg.auth-page-bg .login-header h2 {
    font-size: 1.56rem;
  }
  .withdraw-page-bg.auth-page-bg .login-header p {
    font-size: 0.93rem;
  }

  .reset-instruction {
    font-size: 0.87rem;
  }
}


/* --- 29. メルマガ設定 (トグルスイッチ) --- */

.settings-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  gap: 20px;
}
.setting-item:first-child {
  border-top: 1px solid #eee;
}

/* 必須項目（操作不可）の場合の見た目 */
.setting-item.disabled {
  opacity: 0.6;
  background-color: #fafafa;
  padding-left: 10px;
  padding-right: 10px;
}

.setting-info {
  flex: 1;
}

.setting-label {
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.setting-desc {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}

/* --- トグルスイッチ CSS --- */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

/* 元のチェックボックスは隠す */
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* スライダー部分 */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; /* OFFの色 */
  transition: .4s;
  border-radius: 34px;
}

/* 丸いポッチ */
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* ONの状態 */
.toggle-switch input:checked + .slider {
  background-color: #F57C00; /* ONの色 (オレンジ) */
}

/* ONの時のポッチの位置 */
.toggle-switch input:checked + .slider:before {
  transform: translateX(24px);
}

/* 無効化 (disabled) の状態 */
.toggle-switch input:disabled + .slider {
  cursor: not-allowed;
  background-color: #e0e0e0;
}
.toggle-switch input:disabled + .slider:before {
  background-color: #999;
}

/* --- 31. 企画詳細ページ --- */

/* パンくずリスト */
.breadcrumb-area {
  background-color: #f9f9f9;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  color: #666;
}
.breadcrumb-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.breadcrumb-area li:not(:last-child)::after {
  content: '>';
  margin: 0 10px;
  color: #ccc;
}
.breadcrumb-area a {
  color: #666;
  text-decoration: none;
}
.breadcrumb-area a:hover {
  text-decoration: underline;
}

/* 記事コンテナ */
.project-detail-container {
  max-width: 840px;
  margin: 40px auto 60px auto;
  background-color: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* ヘッダー周り */
.project-meta-top {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: center;
}
.project-status {
  font-size: 0.85rem;
  padding: 3px 10px;
  border: 1px solid #F57C00;
  color: #F57C00;
  border-radius: 20px;
  font-weight: bold;
}
.project-status.status-active { /* 募集中 */
  background-color: #F57C00;
  color: #fff;
}

.project-title {
  font-size: 2.2rem;
  margin: 0 0 20px 0;
  line-height: 1.3;
}
.project-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}

.project-main-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 40px;
}

/* --- CTAボタンエリア --- */
.cta-area-top {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.cta-area-bottom {
  margin-top: 60px;
}

.cta-box {
  background-color: #FFF8F0; /* 薄いオレンジ背景 */
  padding: 40px;
  text-align: center;
  border-radius: 12px;
  border: 2px solid #F57C00;
}

.cta-lead {
  font-size: 1.3rem;
  font-weight: bold;
  color: #F57C00;
  margin-bottom: 25px;
}

.cta-large {
  max-width: 400px;
  padding: 20px;
  font-size: 1.3rem;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(245, 124, 0, 0.3);
}

.cta-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 15px;
}

/* 簡易的な注目アニメーション（ぷるんと動く） */
@keyframes bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.bounce-effect:hover {
  animation: bounce 0.8s ease infinite;
}


/* --- 募集要項リスト --- */
.project-section-box {
  margin-bottom: 50px;
}
.project-section-box h3 {
  font-size: 1.5rem;
  color: #333;
  border-left: 5px solid #F57C00;
  padding-left: 15px;
  margin-bottom: 25px;
  background-color: #f9f9f9;
  padding-top: 10px;
  padding-bottom: 10px;
}

.detail-list {
  display: grid;
  grid-template-columns: 180px 1fr; /* 左側180px固定、右側残り全部 */
  border-top: 1px solid #eee;
}

.detail-list dt {
  font-weight: bold;
  padding: 20px;
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
  color: #555;
  /* Grid配置 */
  grid-column: 1; 
}

.detail-list dd {
  padding: 20px 25px; /* 右側の内容にも十分な余白 */
  border-bottom: 1px solid #eee;
  line-height: 1.8;
  margin: 0; /* デフォルトマージンをリセット */
  /* Grid配置 */
  grid-column: 2;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .project-detail-container {
    padding: 20px;
  }
  .project-title {
    font-size: 1.6rem;
  }

  /* スマホでは縦積みに変更 */
  .detail-list {
    grid-template-columns: 1fr; /* 1列にする */
  }
  .detail-list dt {
    grid-column: 1;
    border-bottom: none;
    padding-bottom: 5px; /* 下の余白を少し減らす */
    background-color: transparent; /* 背景色なしで見やすく */
    color: #F57C00; /* 項目名をオレンジにして区別 */
  }
  .detail-list dd {
    grid-column: 1;
    padding-top: 0;
    padding-left: 20px; /* 左に少しインデント */
  }

  .cta-large {
    font-size: 1.1rem;
    padding: 15px;
  }
}

/* フロート解除 */
.detail-list::after {
  content: "";
  display: block;
  clear: both;
}

/* 本文エリア */
.project-body {
  margin-bottom: 60px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.project-body h3 {
  font-size: 1.6rem;
  color: #F57C00;
  margin-bottom: 30px;
}
.project-body h4 {
  font-size: 1.3rem;
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}
.project-body ul {
  background-color: #f9f9f9;
  padding: 20px 20px 20px 40px;
  border-radius: 4px;
}
.image-block-center {
  text-align: center;
  margin: 40px 0;
}
.caption {
  font-size: 0.9rem;
  color: #777;
  margin-top: 5px;
}

/* 注意事項ボックス */
.note-box h3 {
  background-color: #eee; /* グレー背景で少しトーンダウン */
  border-left-color: #666;
}
.note-list {
  padding-left: 20px;
  color: #555;
}
.note-list li {
  margin-bottom: 10px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .project-detail-container {
    padding: 20px;
  }
  .project-title {
    font-size: 1.6rem;
  }
  /* スマホでは定義リストを縦積みに */
  .detail-list dt {
    float: none;
    width: 100%;
    border-bottom: none;
  }
  .detail-list dd {
    margin-left: 0;
    padding-top: 5px;
    border-bottom: 1px solid #eee;
  }
  .cta-large {
    font-size: 1.1rem;
    padding: 15px;
  }
}

/* --- 32. 履歴一覧ページ --- */

.history-full-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #eee;
}

/* フィルターエリア */
.filter-area {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  align-items: center;
  flex-wrap: wrap; /* スマホ対応 */
}

.filter-area select {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  min-width: 150px;
}

.btn-filter {
  width: auto; /* ボタン幅を自動に */
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .history-full-container {
    padding: 20px;
    border: none;
  }
  .filter-area {
    flex-direction: column;
    align-items: stretch;
  }
  .filter-area select {
    width: 100%;
  }
}

/* --- 33. トースト通知 (Toast UI) --- */

#toast-container {
  position: fixed;
  top: 90px; /* ヘッダーの下あたり */
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none; /* コンテナ自体はクリックを邪魔しない */
}

.toast {
  background-color: #fff;
  color: #333;
  min-width: 300px;
  max-width: 400px;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto; /* トースト自体はクリック可能 */
  box-sizing: border-box;

  /* アニメーション初期状態 */
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border-left: 5px solid #ccc;
  white-space: pre-wrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* タイプ別の色 */
.toast-success { border-left-color: #4CAF50; }
.toast-success .toast-icon { color: #4CAF50; }

.toast-error { border-left-color: #F44336; }
.toast-error .toast-icon { color: #F44336; }

.toast-info { border-left-color: #2196F3; }
.toast-info .toast-icon { color: #2196F3; }

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 1.2rem;
}

.toast-message {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #999;
  cursor: pointer;
  padding: 0;
  margin-left: 15px;
  line-height: 1;
}
.toast-close:hover {
  color: #333;
}

/* スマホ対応 */
@media (max-width: 600px) {
  #toast-container {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: 30px;
  }
  .toast {
    min-width: auto;
    width: 100%;
    transform: translateY(20px);
  }
  .toast.show {
    transform: translateY(0);
  }
}


/* --- 34. スマホメニュー (ハンバーガー & ドロワー) --- */

.site-header.nav-open {
  z-index: 2000;
}

/* --- ハンバーガーボタン (初期状態は非表示) --- */
.hamburger-btn {
  display: none; /* PCでは非表示 */
  position: relative;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2000; /* 最前面 */
}

/* 3本線のスタイル */
.hamburger-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* --- メニューオープン時のハンバーガーボタン (×印に変形) --- */
.hamburger-btn.active .hamburger-lines span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
  background-color: #333;
}
.hamburger-btn.active .hamburger-lines span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .hamburger-lines span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
  background-color: #333;
}


/* --- ドロワーメニュー (スマホ用メニュー画面) --- */
.drawer-menu {
  position: fixed;
  top: 80px;
  right: -100%;
  width: 100%;
  /*height: 100vh;*/
  height: calc(100vh - 80px);
  /*background-color: rgba(51, 51, 51, 0.95);*/
  background: url('../images/common/drawer-menu-bg.png') no-repeat center center / cover;
  z-index: 1500;
  /*transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);*/ /* スムーズなスライド */
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease, visibility 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  box-sizing: border-box;
  color: #555;
  opacity: 0;
  visibility: hidden;

  /*padding-top: 100px;*/
  padding-top: 40px;
  justify-content: flex-start;
}

/* オープン状態 */
.drawer-menu.active {
  right: 0;
  opacity: 1;
  visibility: visible;
}

/* ドロワー内のナビゲーション */
.drawer-nav {
  width: 100%;
  max-width: 300px;
  text-align: center;
}

.drawer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.drawer-nav li {
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.drawer-nav a {
  color: #555;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 12px;
  display: block;
  padding: 5px;
}
.drawer-nav a:hover {
  color: #F57C00;
  text-decoration: underline;
}

/* ドロワー内のアクションボタン */
.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.drawer-btn {
  display: block;
  width: 100%;
  padding: 12px;
  text-align: center;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.drawer-btn.login {
  background-color: #ffb300;
  color: #555;
  margin-bottom: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.drawer-btn.login:hover {
  background-color: #ffa000;
  color: #333;
}

.drawer-btn.signup {
  background-color: #F57C00;
  color: #fff;
  padding-top: 12px;
  padding-bottom: 12px;
}
.drawer-btn.signup:hover {
  background-color: #E65100;
  color: #fff;
}

.drawer-btn.logout {
  font-size: 0.93rem;
  color: #555;
  border: 1px solid #555;
  background-color: #fff;
  max-width: 250px;
  margin: 0 auto;
}
.drawer-btn.logout:hover {
  background-color: #777;
  color: #fff;
}

.site-header.nav-open .header-container {
  position: relative;
  z-index: 2100;
  background-color: #ffffff;
  margin-top: -15px;
  padding-top: 15px;
  padding-bottom: 15px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* --- レスポンシブ対応 (768px以下で適用) --- */
@media (max-width: 768px) {
  /* ハンバーガーボタンを表示 */
  .hamburger-btn {
    display: block;
  }

  .drawer-btn.logout {
    font-size: 1.12rem;
  }
}

/* --- 35. 日付入力フォームのデザイン改善 --- */

.date-input-wrapper {
  position: relative;
  width: 100%;
}

.input-date {
  width: 200px;
  padding: 12px 40px 12px 15px; /* 右側にアイコン分の余白 */
  border: 1px solid #989596;
  border-radius: 6px;
  box-sizing: border-box; /* パディングを含めて幅を計算する */
  font-size: 1rem;
  background-color: #fff;
  color: #555;
  appearance: none; /* ブラウザ標準のスタイルをリセット */
  -webkit-appearance: none;
  font-family: inherit;
  cursor: pointer; /* クリックできることを示唆 */
  position: relative;
  z-index: 1;
  /* iPhone 対策 */
  height: 50px;
  line-height: 1.3;
}

.input-date:focus {
  border-color: #F57C00;
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 124, 0, 0.15);
}

/* カレンダーアイコンの装飾 */
.calendar-icon {
  position: absolute;
  top: 50%;
  left: 160px;
  transform: translateY(-50%);
  color: #F57C00;
  font-size: 1.2rem;
  pointer-events: none; /* アイコンをクリックしても下のinputが反応するように */

  z-index: 10;        /* 最前面に表示 */
  width: 24px;        /* 幅を確保 */
  height: 24px;       /* 高さを確保 */
  display: flex;      /* 中身を中央揃え */
  justify-content: center;
  align-items: center;
}

/* プレースホルダーの色（日付未選択時） */
.input-date:invalid {
  color: #888;
}

/* WebKitブラウザのカレンダーアイコン調整 */
.input-date::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0; /* 透明にして全体をクリック可能にする */
  cursor: pointer;
  z-index: 20; /* アイコンの上からクリックできるように最前面へ */
}

@media (max-width: 768px) {
  .input-date.is-empty::before {
    content: "年/月/日";
    color: #888;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 15px;
    line-height: 50px;
    pointer-events: none;
  }
  .input-date.is-empty::-webkit-datetime-edit {
    color: transparent;
  }
}

/* --- 36.利用規約モーダル --- */
.modal-box.terms-modal-box {
  background-color: #ffffff !important; /* 確実に白にする */
  color: #333333 !important;            /* 文字は黒 */

  width: 90%;
  max-width: 600px;      /* 少し幅広に */

  /* ▼▼▼ 重要: 画面の高さの80%までに制限し、Flexboxで中身を整理する ▼▼▼ */
  height: auto;
  max-height: 80vh;      /* 画面高さの80%を決して超えないようにする */
  display: flex;         /* 中身を縦並び(Flex)にする */
  flex-direction: column; 

  padding: 0;            /* パディングは内部の要素で調整するので一旦0に */
  overflow: hidden;      /* 角丸からはみ出さないように */
  border: none;          /* 枠線なし */
}

/* 2. ヘッダー部分 (タイトルと説明文) */
.terms-header-area {
  padding: 30px 30px 10px 30px; /* 上・横の余白 */
  flex-shrink: 0;        /* 縮ませない */
  background-color: #fff;
}

.terms-modal-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #F57C00 !important; /* オレンジ */
  margin-bottom: 10px;
  text-align: center;
}

.terms-modal-desc {
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #555 !important;
}

/* 3. スクロールエリア (ここだけスクロールさせる) */
.terms-scroll-area {
  flex: 1;               /* 余った高さを全部使う */
  overflow-y: auto;      /* 縦スクロールを許可 */
  min-height: 0;         /* Flexアイテムのスクロールバグ防止 */

  margin: 0 30px;        /* 横の余白 */
  padding: 20px;         /* 内側の余白 */
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;

  text-align: left;      /* 文章は左寄せ */
  font-size: 0.85rem;    /* 少し小さめの文字 */
}

/* 読み込んだHTMLのスタイル調整 (余計な余白などを消す) */
.terms-scroll-area .static-page-container {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
}
.terms-scroll-area h3 {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 10px;
  border-left: 4px solid #F57C00;
  padding-left: 10px;
  background: none;
}
.terms-scroll-area h3:first-child {
  margin-top: 0;
}

/* 4. フッター部分 (チェックボックスとボタン) */
.terms-footer-area {
  padding: 20px 30px 30px 30px; /* 下・横の余白 */
  flex-shrink: 0;        /* 縮ませない */
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.terms-check-wrapper {
  margin: 0;
  color: #333 !important;
  font-weight: bold;
}
.terms-check-wrapper label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terms-check-wrapper input {
  width: 20px;
  height: 20px;
}
.terms-check-wrapper.terms-modal-check {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 25px;
}
.terms-check-wrapper.terms-modal-check label {
  justify-content: center;
  width: 100%;
}

/* ボタン調整 */
.terms-footer-area .modal-btn {
  width: 100%;
  max-width: 250px;
}
.modal-btn.ok:disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
}

.terms-scroll-area .terms-contact {
  font-size: 0.95rem; /* 少し小さく */
  line-height: 1.7;   /* 行間を少し広げて読みやすく */
  padding: 15px;      /* 余白も少し調整 */
}

/* スマホ調整 */
@media (max-width: 768px) {
  .modal-box.terms-modal-box {
    width: 95%;
    max-height: 85vh; /* スマホは少し広く */
  }
  .terms-header-area { padding: 20px 20px 10px 20px; }
  .terms-scroll-area { margin: 0 20px; padding: 15px; }
  .terms-footer-area { padding: 15px 20px 20px 20px; }

  .terms-check-wrapper.terms-modal-check {
    text-align: center;
    padding: 0;
  }
}


/* --- 37. 読売IDとは (About ID Section) --- */
.about-id-section {
  padding: 80px 0;
  /* 少しだけ色をつけて区分け（薄いグレーまたは薄いオレンジ） */
  background-color: #fafafa; 
  position: relative;
}

.about-header {
  margin-bottom: 50px;
  position: relative;
}

.about-id-section h2 {
  font-size: 3.125rem;
  color: #F57C00;
  margin-bottom: 20px;
  border-bottom: none; /* 既存のh2下線を消す */
  padding-bottom: 0;
}

.about-lead {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.8;
}

/* マーカー風ライン（ABC IDのベタ塗り黄色とは違う、蛍光ペン風スタイル） */
.marker-highlight {
  background: linear-gradient(transparent 60%, #ffe0b2 60%);
  font-weight: bold;
  color: #333;
  padding: 0 4px;
}

/* カードグリッドレイアウト */
.about-grid {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

/* カード本体 */
.about-card {
  width: 100%;
  max-width: 400px;

  background-color: #fff;
  border-radius: 12px;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #eee;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: #ffe0b2;
}

/* アイコンサークル */
.about-icon {
  width: 80px;
  height: 80px;
  background-color: #FFF3E0; /* 薄いオレンジ */
  color: #F57C00;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
  font-size: 2rem;
  transition: background-color 0.3s, color 0.3s;
}

/* カードホバー時にアイコンの色を反転させる演出 */
.about-card:hover .about-icon {
  background-color: #F57C00;
  color: #fff;
}

.about-card h3 {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 15px;
  font-weight: bold;
}

.about-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .about-id-section {
    padding: 60px 0;
  }
  
  .about-id-section h2 {
    font-size: 1.8rem;
  }

  .about-grid {
    grid-template-columns: 1fr; /* 1列にする */
    gap: 20px;
  }

  .about-card {
    padding: 30px 20px;
  }
  
  /* スマホではアイコンを少し小さくして左寄せにするレイアウト案（今回はセンター維持） */
}


/* --- 38. お問い合わせ --- */
.contact-section { margin-bottom: 50px; }
.contact-section h2 { 
  font-size: 1.4rem; 
  margin-bottom: 20px; 
  /* 左側の線をオレンジに */
  border-left: 5px solid var(--main-color); 
  padding-left: 15px; 
  color: #333;
}

/* 共通ボックススタイル */
.contact-box {
  background: #fff;
  /* 枠線を少し温かみのある色に */
  border: 1px solid #f0e0d0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(243, 156, 18, 0.1); /* オレンジ色の影 */
}

/* 1. FAQエリア */
.faq-box {
  /* 背景を薄いオレンジに */
  background-color: var(--bg-light); 
  border-color: #f5dcb7;
}
.faq-btn {
  display: inline-block;
  margin-top: 15px;
  background: #fff;
  /* 枠線と文字をオレンジに */
  border: 2px solid var(--main-color);
  color: var(--main-color);
  padding: 12px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}
.faq-btn:hover { 
  background: var(--main-color); 
  color: #fff; 
  border-color: var(--main-color);
}

/* 2. 電話エリア */
.phone-number {
  font-size: 2.2rem;
  font-weight: bold;
  color: #333;
  margin: 15px 0 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
/* アイコンをオレンジに */
.phone-number i { color: var(--main-color); margin-right: 10px; }
.phone-time { color: #666; font-size: 0.95rem; }
.phone-note { font-size: 0.85rem; color: #888; margin-top: 10px; }

/* 3. メールエリア */
.mail-address {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 15px 0;
  word-break: break-all;
  color: #555;
}
.mail-btn {
  display: inline-block;
  /* 背景をオレンジに */
  background: var(--main-color);
  color: #fff;
  padding: 12px 40px;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
  font-weight: bold;
}
.mail-btn:hover { 
  background-color: var(--hover-color); 
}
.mail-note { text-align: left; max-width: 600px; margin: 20px auto 0; font-size: 0.9rem; color: #666; }
.mail-note strong { color: #333; }

/* スマホ対応 */
@media (max-width: 600px) {
  .phone-number { font-size: 1.6rem; }
  .mail-address { font-size: 1.2rem; }
}


/* --- 99. 404エラーページ --- */

.error-page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh; /* 画面の高さの6割を使って中央寄せ */
  padding: 20px 20px;
  /*background-color: #f4f7f9;*/
}

.error-content {
  text-align: center;
  background-color: #fff;
  padding: 0px 40px;
  max-width: 500px;
  width: 100%;
}

.error-icon {
  font-size: 4rem;
  color: #F57C00; /* オレンジ */
  margin-bottom: 10px;
  opacity: 0.8;
}

.error-code {
  font-size: 8.12rem;
  font-weight: 600;
  color: #555;
  margin: 0;
  line-height: 1;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: -2px;
}

.error-title {
  font-size: 3.12rem;
  color: #ff8c00;
  margin: 10px 0 30px 0;
  border-bottom: none !important; /* h2の共通スタイル(下線)を消す */
  padding-bottom: 0 !important;
}

.error-message {
  color: #555;
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 1.31rem;
}

.error-text {
  color: #e53935;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 4px;
  min-height: 20px;
}

@media (max-width: 768px) {
  .error-code {
    font-size: 4rem;
  }

  .error-title {
    font-size: 1.56rem;
  }

  .error-message {
    font-size: 0.81rem;
  }
}
