:root {
--maxw: 1000px;
--red: #BA181E;
--yellow: #E9FF58;
--black: #050505;
}
/* base */
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* 横スクロールを防止 */
}
body {
  margin: 0;
  background: var(--black);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #111;
  overflow-x: hidden; /* 横スクロールを防止 */
  width: 100%;
  box-sizing: border-box;
}
/* すべての要素にbox-sizingを適用 */
*, *::before, *::after {
  box-sizing: border-box;
}
/* 共通白背景枠 */
.content-box {
  max-width: var(--maxw);
  margin: 0 auto;
  background: #fff;
  box-sizing: border-box;
  width: 100%;
}
.content-box .responsive-img {
  display: block;
  max-width: 90%;
  height: auto;
  margin: 0 auto;
  padding: 1.6rem 1.0rem;
}
/* トップ画像（01-pc.png）は元のpadding値を維持 */
.content-box .responsive-img:first-child {
  padding: 2.0rem 0rem;
}
}
/* 背景ユーティリティ */
.bg-white {
  background: #fff;
}
.bg-red {
  background: #ba181e;
}
.bg-ef {
  background: #EFEFEF;
}
.bg-yellow {
  background: #FFFCF4;
}
.bg-gray-grad {
  background: linear-gradient(135deg, #2b2b2b 0%, #414141 50%, #5a5a5a 100%);
  padding: 2rem 1rem;
}
/* 画像幅ユーティリティ */
.w100 {
  width: 85%;
}
.w80 {
  width: 65%;
}
.w70 {
  width: 55%;
}
.w64 {
  width: 50%;
}
/* セクション枠（センター寄せ） */
.section-center {
  text-align: center;
}
/* テキストコンテンツエリア */
.text-content {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 2rem;
  text-align: left;
  line-height: 1.8;
}
.text-content p {
  margin-bottom: 1.2rem;
  color: #333;
  font-size: 110%;
}

@media (max-width: 768px) {
.text-content {
  padding: 0 1rem;
  margin: 1.5rem auto;
}
.text-content p {
  font-size: 15px;
  margin-bottom: 1rem;
}
}
/* 見出し帯（赤） */
.section-head {
  background: var(--red);
  padding: 1.6rem 1rem;
  text-align: center;
  color: #fff;
  margin: 0; /* 親が余白管理 */
}

@media (max-width: 768px) {
.section-head {
  padding: 2rem 1rem;
}
}

@media (max-width: 375px) {
.section-head {
  padding: 1.8rem 0.75rem;
}
}
.headline-a {
  font-size: clamp(42px, 7vw, 64px);
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 6px 12px rgba(0,0,0,0.3);
  margin: 0;
  line-height: 1.05;
}
.headline {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 0;
}
.em-yellow {
  color: var(--yellow);
  font-size: 110%;
  text-shadow: 0 6px 12px rgba(0,0,0,.25);
}
/* レスポンシブ画像 */
.responsive-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 2rem 0;
  width: 100%;
}
/* デスクトップ版画像 */
.pc-img {
  display: block;
}
/* スマートフォン版画像 */
.sp-img {
  display: none;
}

/* スマートフォン表示時の画像切り替え */
@media (max-width: 768px) {
.pc-img {
  display: none;
}
.sp-img {
  display: block;
}
}
/* 料金 */
  /* 料金プラン */
.pricing-container {
  display: flex;
  gap: 30px;
  max-width: 900px;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  padding: 2rem;
}
.plan-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 0;
  text-align: center;
  flex: 1;
  max-width: 400px;
  border: 1px solid rgba(186, 24, 30, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.plan-title {
  background: #f8f9fa;
  color: #333;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 24px 20px;
  letter-spacing: 0.5px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.plan-card.featured .plan-title {
  background: #f8f9fa;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.plan-price {
  font-size: 3.2rem;
  font-weight: 700;
  color: #BA181E;
  margin: 2rem 1rem 0.8rem;
  white-space: nowrap;
  letter-spacing: -1px;
}
.price-unit {
  font-size: 16px;
  color: #666;
  margin-left: 8px;
  font-weight: 500;
}
.payment-button {
  background: linear-gradient(135deg, #BA181E 0%, #D4304A 100%);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: calc(100% - 40px);
  margin: 0 20px 32px 20px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(186, 24, 30, 0.2);
}
.payment-button:hover {
  background: linear-gradient(135deg, #9A141A 0%, #BA181E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(186, 24, 30, 0.3);
}
.payment-button-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
}
.payment-button-text::after {
  content: '→';
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.3s ease;
}
.payment-button:hover .payment-button-text::after {
  transform: translateX(4px);
}
.payment-button::before {
  display: none;
}
/* CTA */

.cta-wrap {
  text-align: center;
  padding: 4rem 1rem;
}
.cta-button {
  background: linear-gradient(135deg, #BA181E, #D4304A);
  color: #fff;
  padding: 1.6rem 3.2rem;
  border: none;
  border-radius: 70px;
  font-size: 2.0rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  letter-spacing: .5px;
  animation: pulse-refined 3s infinite;
  transition: all .4s ease;
  box-shadow: 0 8px 32px rgba(186, 24, 30, .25);
  text-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.cta-button::after {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  margin-left: 16px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.cta-button:hover {
  animation: none;
  transform: translateY(-4px) scale(1.08);
  background: linear-gradient(135deg, #9A141A, #BA181E);
  box-shadow: 0 16px 48px rgba(186, 24, 30, .40);
}
@keyframes pulse-refined {
0% {
box-shadow:0 8px 32px rgba(186, 24, 30, .28), 0 0 0 0 rgba(233, 255, 88, .7);
transform:scale(1);
}
50% {
box-shadow:0 8px 32px rgba(186, 24, 30, .36), 0 0 0 10px rgba(233, 255, 88, .3);
transform:scale(1.03);
}
100% {
box-shadow:0 8px 32px rgba(186, 24, 30, .28), 0 0 0 20px rgba(233, 255, 88, 0);
transform:scale(1);
}
}

@media (max-width: 767px) {
.cta-button {
  width: calc(100% - 1.5rem);
  max-width: 320px;
  font-size: 1.1rem;
  padding: 0.9rem 1.2rem;
  border-radius: 50px;
  margin: 0 auto;
  display: flex;
}
}

@media (max-width: 375px) {
.cta-button {
  width: calc(100% - 1rem);
  max-width: 300px;
  font-size: 1rem;
  padding: 0.8rem 1rem;
}
}
/* Q&A */
.qa-title {
  color: #000;
  font-size: 2.4rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
  padding: 2rem;
}
.qa-container {
  max-width: 800px;
  margin: 1rem auto 0;
}
.qa-item {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(102,102,102,.1);
  overflow: hidden;
  transition: box-shadow .3s ease;
  margin-bottom: 20px;
}
.qa-item:hover {
  box-shadow: 0 8px 24px rgba(102,102,102,.15);
}
.question {
  width: 100%;
  border: 0;
  background: #666;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 700;
  font-size: 18px;
  padding: 20px 25px;
  transition: background .3s ease;
}
.question:hover {
  background: #DC143C;
}
.qa-item.active .question {
  background: #DC143C !important;
}
.toggle-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex: 0 0 24px;
  margin-left: 10px;
}
.toggle-icon::before, .toggle-icon::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 2px;
  transition: all .25s;
}
.toggle-icon::before {
  width: 16px;
  height: 2px;
  top: 11px;
  left: 4px;
}  /* − */
.toggle-icon::after {
  width: 2px;
  height: 16px;
  top: 4px;
  left: 11px;
  opacity: 1;
} /* ＋縦棒 */
.qa-item.active .toggle-icon::after {
  opacity: 0;
} /* 開くと − 表示 */
.answer {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  padding: 0 25px;
  transition: max-height .35s ease, padding .35s ease;
  color: #333;
}
.qa-item.active .answer {
  max-height: none;           
  padding: 1rem 1.6rem;
  transition: none;           
}
.answer-content {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  padding-left: 10px;
  text-align: left;
}
.answer-content strong {
  color: #DC143C;
  font-weight: 700;
}
.email-link {
  color: #BA181E;
  text-decoration: none;
}
.email-link:hover {
  text-decoration: underline;
}
.contact-info {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  border-left: 4px solid #BA181E;
}
.contact-info h4 {
  color: #BA181E;
  margin: 0 0 8px;
  font-size: 16px;
}
.contact-info p {
  margin: 5px 0;
}
/* footer */
.footer-container {
  max-width: var(--maxw);
  margin: 0 auto;
  color: #fff;
  background: linear-gradient(135deg, #2b2b2b, #333, #555);
  padding: 20px;
  box-sizing: border-box;
}
.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.company-name {
  font-size: 16px;
  font-weight: 700;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-links a:hover {
  color: #E9FF58;
}

/* responsive tweaks */
@media (max-width: 768px) {
/* 横スクロール防止の強化 */
.content-box {
  width: 100vw;
  margin: 0;
  overflow-x: hidden;
}
/* 料金プラン */
/* 募集要項セクション */
#apply {
  background: #fff;
}
.recruitment-info {
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}
.recruitment-info h3 {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  text-align: center;
}
.recruitment-info .number-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 32px;
  font-weight: 700;
  color: #666;
}
.recruitment-info .big-number {
  font-size: 96px;
  font-weight: 800;
  color: #BA181E;
  margin: 0 0.5rem;
}
.recruitment-info .date-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 40px;
  font-weight: 700;
  color: #666;
}
.notice-text {
  color: #BA181E;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin: 0;
}
/* 料金プラン */
.pricing-container {
  display: flex;
  gap: 30px;
  max-width: 900px;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  padding: 4rem 2rem;
}
.plan-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 0;
  text-align: center;
  flex: 1;
  max-width: 400px;
  border: 1px solid rgba(186, 24, 30, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.plan-title {
  background: #f8f9fa;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  padding: 24px 20px;
  letter-spacing: 0.5px;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}
.plan-card.featured .plan-title {
  background: #f8f9fa;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.plan-price {
  font-size: 4.2rem;
  font-weight: 700;
  color: #BA181E;
  margin: 2rem 1rem 0.8rem;
  white-space: nowrap;
  letter-spacing: -1px;
}
.price-unit {
  font-size: 16px;
  color: #666;
  margin-left: 8px;
  font-weight: 500;
}
.payment-button {
  background: linear-gradient(135deg, #BA181E 0%, #D4304A 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: calc(100% - 40px);
  margin: 0 20px 32px 20px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(186, 24, 30, 0.2);
}
.payment-button:hover {
  background: linear-gradient(135deg, #9A141A 0%, #BA181E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(186, 24, 30, 0.3);
}
.payment-button-text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
}
.payment-button-text::after {
  content: '→';
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.3s ease;
}
.payment-button:hover .payment-button-text::after {
  transform: translateX(4px);
}
.button__box {
  display: block;
  width: 100%;
}
.button__box form {
  width: 100%;
  margin: 0;
  padding: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
.recruitment-info {
padding: 2rem 1rem;
}
.recruitment-info h3 {
font-size: 24px;
}
.recruitment-info .number-display {
font-size: 28px;
flex-direction: column;
gap: 0.5rem;
}
.recruitment-info .big-number {
font-size: 64px;
}
.recruitment-info .date-display {
font-size: 32px;
flex-wrap: wrap;
gap: 0.2rem;
}
.notice-text {
font-size: 16px;
}
.pricing-container {
flex-direction: column;
gap: 15px;
align-items: center;
padding: 2rem 1rem;
}
.plan-card {
max-width: 90%;
width: 100%;
margin: 0;
}
.plan-title {
font-size: 16px;
padding: 20px 15px;
}
.plan-price {
font-size: 2.4rem;
margin: 1.5rem 0.5rem 0.5rem;
}
.payment-button {
font-size: 15px;
padding: 14px 24px;
width: calc(100% - 30px);
margin: 0 15px 25px 15px;
}
}
@media (max-width: 375px) {
.recruitment-info {
padding: 1.5rem 0.5rem;
}
.recruitment-info h3 {
font-size: 20px;
}
.recruitment-info .number-display {
font-size: 24px;
}
.recruitment-info .big-number {
font-size: 48px;
}
.recruitment-info .date-display {
font-size: 28px;
}
.notice-text {
font-size: 14px;
padding: 1rem;
}
.pricing-container {
padding: 1.5rem 0.5rem;
}
.plan-card {
border-width: 1px;
}
.plan-price {
font-size: 2rem;
}
.payment-button {
font-size: 14px;
padding: 12px 20px;
width: calc(100% - 20px);
margin: 0 10px 20px 10px;
}
}
/* レスポンシブ画像調整 - 適切なサイズに縮小 */
.responsive-img {
  padding: 1rem 0;
  max-width: 105%; /* さらに縮小 */
  width: 105%; /* さらに縮小 */
  margin-left: -2.5%; /* センタリング調整 */
}
.responsive-img.w100 {
  max-width: 105%;
  width: 105%;
  ;
}
.responsive-img.w80 {
  max-width: 95%;
  width: 95%;
  margin-left: 2.5%;
}
.responsive-img.w70 {
  max-width: 95%;
  width: 95%;
}
.responsive-img.w64 {
  max-width: 90%;
  width: 90%;
  margin-left: 5%;
}
/* SP版では画像切り替えを無効化 */
.sp-img {
  display: none;
}
.pc-img {
  display: block;
}
/* Q&A */
.qa-container {
  margin: 1rem 0.75rem 0 0.75rem;
  max-width: calc(100% - 1.5rem);
  width: calc(100% - 1.5rem);
}
.qa-item {
  margin-bottom: 15px;
}
.question {
  padding: 12px 15px;
  font-size: 15px;
}
.question-text {
  flex: 1;
  margin-right: 10px;
}
.answer {
  padding: 0 15px;
}
.qa-item.active .answer {
  padding: 0.8rem 1rem;
}
/* 見出し調整 */
.headline {
  font-size: clamp(18px, 4.5vw, 24px);
  line-height: 1.3;
  padding: 0.8rem;
}
.headline-a {
  font-size: clamp(32px, 7vw, 42px);
}
/* CTA調整 */
.cta-wrap {
  padding: 2rem 0.75rem;
}
/* 背景セクション調整 */
.bg-ef, .bg-white, .bg-yellow, .bg-gray-grad {
  width: 100%;
  overflow-x: hidden;
}
}

/* 更に小さい画面用（375px以下） */
@media (max-width: 375px) {
.pricing-container {
  padding: 1rem 0.5rem;
}
.plan-card {
  border-width: 2px;
}
.plan-price {
  font-size: 2.4rem;
}
.payment-button {
  font-size: 15px;
  padding: 10px 16px;
  width: calc(100% - 20px);
  margin: 0 10px 20px 10px;
}
/* 375px以下で画像を適切なサイズに調整 */
.responsive-img {
  max-width: 105%;
  width: 105%;
  margin-left: -2.5%;
  padding: 0.8rem 0;
}
.responsive-img.w100 {
  max-width: 105%;
  width: 105%;
}
.responsive-img.w80 {
  max-width: 100%;
  width: 100%;
  margin-left: 0%;
}
.responsive-img.w70 {
  max-width: 100%;
  width: 100%;
}
.responsive-img.w64 {
  max-width: 90%;
  width: 90%;
  margin-left: 5%;
}
.qa-container {
  margin: 1rem 0.5rem 0 0.5rem;
  max-width: calc(100% - 1rem);
  width: calc(100% - 1rem);
}
.question {
  padding: 10px 12px;
  font-size: 14px;
}
.answer {
  padding: 0 12px;
}
.qa-item.active .answer {
  padding: 0.7rem 0.8rem;
}
.cta-wrap {
  padding: 2rem 0.5rem;
}
}
/* ボタンボックス */
.button__box {
  display: block;
  width: 100%;
}
.button__box form {
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
.button__box {
  padding: 0 5px;
}
}

@media (max-width: 375px) {
.button__box {
  padding: 0 3px;
}
}
/* 追従ボタン */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #333;
  color: #fff;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  transition: all 0.3s ease;
  border: 1px solid #E9FF58;
  min-width: 140px;
  text-align: center;
}
.floating-cta::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #E9FF58, #FFE135);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.floating-cta:hover {
  transform: translateY(-1px);
  color: #333;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.floating-cta:hover::after {
  opacity: 1;
}

@media (max-width: 768px) {
.floating-cta {
  bottom: 15px;
  right: 15px;
  font-size: 0.75rem;
  padding: 6px 16px;
  min-width: 120px;
}
}

@media (max-width: 375px) {
.floating-cta {
  bottom: 12px;
  right: 12px;
  font-size: 0.7rem;
  padding: 5px 12px;
  min-width: 100px;
}
}
/* ======================
   Apply（募集要項） Component
====================== */
:root {
  /* 必要なら既存トークンに合わせて変更するである */
  --apply-red:#BA181E;
--apply-yellow:#E9FF58;
--apply-ink:#333;
}
.apply-section { /* 親は既存の .bg-white, .section-center と併用 */
  padding: clamp(24px, 1vw, 48px) 16px;
}
.apply__container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.apply__block {
  margin: 0 0 clamp(24px, 5vw, 48px);
}
.apply__heading {
  font-size: clamp(20px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--apply-ink);
  margin: 0 0 .4rem;
}
.apply__underline {
  width: 120px;
  height: 0;
  border-bottom: 4px solid var(--apply-yellow);
  margin: 0 auto clamp(16px, 2.5vw, 24px);
}
/* --- Numbers: 先着 30 名 --- */
.apply__numbers {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(4px, 1vw, 8px);
  flex-wrap: wrap;
  color: #666;
  font-size: 2.0rem;
  font-weight: 800;
  line-height: 1;
}
.apply__numbers-label, .apply__numbers-unit {
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: bold;
  font-size: 1.2rem
}
.apply__big-number {
  font-size: clamp(56px, 12vw, 96px);
  color: var(--apply-ink);
  letter-spacing: -0.02em;
  margin: 0 clamp(6px, 1vw, 8px);
}
/* --- Date: 9 月 16 日 まで --- */
.apply__date {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2px, 0.8vw, 6px);
  flex-wrap: wrap;
  color: #666;
  font-weight: 800;
  line-height: 1.05;
}
.apply__date-num {
  font-size: clamp(48px, 10.5vw, 80px);
  color: var(--apply-ink);
}
.apply__date-unit {
  font-size: clamp(22px, 6vw, 48px);
  color: var(--apply-ink);
  margin: 0 2px;
  font-size: 1.8rem
}
.apply__date-note {
  font-size: clamp(14px, 2.4vw, 18px);
  margin-left: clamp(6px, 1vw, 10px);
  color: #666;
}
/* --- Notice --- */
.apply__notice {
  position: relative;
  margin-top: clamp(16px, 3vw, 24px);
  border: 2px solid var(--apply-red);
  border-radius: 4px;
  background: #fff;
  padding: clamp(12px, 2.6vw, 20px);
  margin: 0 auto;
}
.apply__ribbon {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--apply-yellow);
  color: #333;
  font-weight: 800;
  font-size: clamp(10px, 2.2vw, 12px);
  padding: 4px 12px;
  border-radius: 4px;
}
.apply__notice-text {
  margin: 0;
  color: var(--apply-red);
  font-weight: 500;
  font-size: clamp(16px, 3vw, 20px);
  font-size: 1.4rem
}

/* --- 微調整: 極小端末でも崩さない --- */
@media (max-width: 360px) {
.apply__underline {
  width: 96px;
}
.apply__ribbon {
  left: 12px;
}
}
/* ===== 利用規約（上書き保証版）===== */
.content-box .terms-section {
  background: #f8f9fa !important;
  padding: 3rem 1rem !important;
}
.content-box .terms-item p {
  white-space: pre-line; /* 改行(\n)を <br> として表示するである */
  font-size: 0.85rem;
}
.content-box .terms-container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 4px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  border: 1px solid #e9ecef;
}
.content-box .terms-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #BA181E;
}
.content-box .terms-content {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 1rem;
}

/* スクロールバー装飾 */
.content-box .terms-content::-webkit-scrollbar {
width: 6px;
}
.content-box .terms-content::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}
.content-box .terms-content::-webkit-scrollbar-thumb {
background: #BA181E;
border-radius: 3px;
}
.content-box .terms-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}
.content-box .terms-item:last-of-type {
  border-bottom: none;
}
.content-box .terms-item h4 {
  font-size: 1.0rem;
  font-weight: 700;
  color: #BA181E;
  margin-bottom: .5rem;
}
.content-box .terms-item p {
  font-size: 0.75rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}
.content-box .terms-last-updated {
  text-align: right;
  font-size: 12px;
  color: #888;
  margin-top: 1.5rem;
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
.content-box .terms-section {
  padding: 2rem .5rem !important;
}
.content-box .terms-container {
  padding: 1.5rem;
}
.content-box .terms-title {
  font-size: 1.2rem;
}
.content-box .terms-content {
  max-height: 300px;
}
.content-box .terms-item h4 {
  font-size: 15px;
}
.content-box .terms-item p {
  font-size: 13px;
}
}

/*2603スライドCSS*/
/* =========================================================
   Carousel (replace-all)
   目的: 常に2.5枚見せ（画面が広くても3枚にならない）
   ========================================================= */

.js-carousel{
  width: min(100%, 1600px); /* ここは好みでOK（広くしてもJSが2.5枚にする） */
  margin: 30px auto 0;
  position: relative;

  --gap: 60px;         /* PC */
  --visible-count: 2.5; /* ← 2.5枚表示 */
  --item-width: 580px;  /* ← JSが実寸から上書き */
}

/* ボタン + 点々：同じ行に固定 */
.js-carousel .navrow{
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  column-gap: 12px;
  margin-bottom: 16px;
  /*padding-bottom: 3em;*/
}

/* 左右ボタン */
.js-carousel .nav{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #B28917;
  background: #fff;
  color: #B28917;
  padding: 0;
  display: grid;
  place-items: center;
  transition: background-color .2s, color .2s;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.js-carousel .nav.prev{ justify-self: start; }
.js-carousel .nav.next{ justify-self: end; }

@media (any-hover:hover){
  .js-carousel .nav:hover{
    background:#B28917;
    color:#fff;
    cursor:pointer;
  }
}

/* 点々（中央） */
.js-carousel .dots{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.js-carousel .dots button{
  width: 10px;
  height: 10px;
  aspect-ratio: 1 / 1;      /*  正円固定 */
  border-radius: 999px;     /*  さらに確実 */
  display: block;           /*  潰れ防止 */
  flex: 0 0 auto;           /*  flex縮み防止 */
  line-height: 1;           /*  文字由来の高さズレ防止 */
  font-size: 0;             /*  念のため */
  border-radius: 50%;
  border: 0;
  background: lightgray;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.js-carousel .dots button.is-active{
  background:#B28917;
}

/* カルーセル本体 */
.js-carousel .carousel{
  width: 100%;
  display: grid;
  grid-auto-flow: column;
  gap: var(--gap);  /* ←ここ重要 */

  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-snap-stop: always;
  scroll-behavior: smooth;

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  padding: 0;
  margin: 0;

  overscroll-behavior-x: contain;
}
.js-carousel .carousel::-webkit-scrollbar{ display:none; }

/* スライド */
.js-carousel .item{
  width: var(--item-width);     /* ←ここ重要 */
  min-width: var(--item-width); /* ←ここ重要 */
  scroll-snap-align: start;
  aspect-ratio: 800 / 690;
}

.js-carousel .item img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* SP */
@media (max-width: 600px){
  .js-carousel{
    --gap: 60px;
    --visible-count: 1; /* SPは好みで。2.5のままなら 2.5 に */
  }

  .js-carousel .navrow{
    grid-template-columns: 40px 1fr 40px;
  }

  .js-carousel .nav{
    width: 40px;
    height: 40px;
  }

  /*  1枚表示を中央に固定するための余白 */
  .js-carousel .carousel{
    padding-left: calc((100% - var(--item-width)) / 2);
    padding-right: calc((100% - var(--item-width)) / 2);
  }

  /* ✅ snapもセンターに */
  .js-carousel .item{
    scroll-snap-align: center;
  }
	
  .js-carousel .dots{
    gap: 8px; /* ← 間隔も少し詰めると自然 */
  }

  .js-carousel .dots button{
    width: 6px;          /* ← 小さく */
    height: 6px;
    min-width: 6px;      /* ← 念のため潰れ防止 */
    min-height: 6px;

    border-radius: 999px;
    aspect-ratio: 1 / 1; /* ← 正円固定 */
    flex: 0 0 auto;
  }
}
/*スライド下表示テキストCSS*/
.js-carousel .carousel-note{
  margin: 10px 0 0;       /* dotsの下の余白 */
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  color: rgba(255,255,255,0.85); /* 赤背景なら白寄りが綺麗 */
  padding-bottom: 4em;
}