@charset "UTF-8";
/* ------------------------------ */
/* 共通 */

body {
  font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
  margin: 0;
  padding: 0;
  color: #5832d0;
  line-height: 1.6;
}

header {
  background: #0f4c81;
  color: white;
  padding: 2rem;
  text-align: center;
}

html, body {
  overflow-x: hidden;
}

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: #ff7f50;
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

section {
  /* padding: 2rem; */
  /* max-width: 800px; */
  margin: auto;
}

section h2 {
  margin-bottom: 1rem;
  color: #fff;
}

ul, ol {
  padding-left: 1.2rem;
}

label {
  display: block;
  margin-bottom: 1rem;
}

input, textarea {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  box-sizing: border-box;
}

button {
  padding: 0.7rem 1.2rem;
  background: #0f4c81;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

footer {
  background: #f5f5f5; /* 現在の背景色 */
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  padding: 20px 0; /* ヘッダーと合わせるため調整 */
  background: #fff; /* ヘッダーに合わせる */
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* スマホでの折り返し対応 */
}

footer .logo {
  height: 40px; /* ヘッダーのロゴサイズに合わせる */
}

.footer-links {
  display: flex;
  gap: 20px; /* リンク間のスペース */
  flex-wrap: wrap; /* スマホでの折り返し対応 */
  justify-content: center; /* 中央寄せ */
}

.footer-links a {
  color: #333; /* リンクの色 */
  text-decoration: underline; /* 常に下線を表示 */
  font-weight: bold;
  font-size: 0.9rem; /* フォントサイズ調整 */
}

.footer-links a:hover {
  text-decoration: underline; /* ホバー時も下線を維持 */
}
/* ------------------------------ */
/* Reset */
* { box-sizing: border-box; margin:0; padding:0; }
body { font-family: 'Hiragino Kaku Gothic ProN', sans-serif; color: #333; }
.container { max-width: 1200px; margin: auto; padding: 0 20px; }

/* ヘッダー */
.site-header { background: #fff; padding: 20px 0; }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { height: 40px; }
.btn-contact { background: #ff3068; color: #fff; padding: 12px 24px; border-radius: 40px; text-decoration: none; font-weight: bold; }

/* ファーストビュー */
/* ヒーローセクションの黒オーバーレイとテキスト配置 */
.hero {
  position: relative;
  height: calc(100vh - 100px); /* ← さらに余白をとって完全に収める */
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero picture,
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* オーバーレイ全体 */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px; /* デスクトップのパディングは維持 */
  pointer-events: none; /* オーバーレイ内の要素だけにクリックさせるために透明化 */
}

/* 左上配置：ここがポイント */
.hero-heading {
  align-self: flex-start; /* デスクトップの指定はそのまま */
  pointer-events: auto;
  /* モバイルで絶対配置にするため、ここでは特に変更なし。メディアクエリ内で調整する */
}

.hero-heading h1 {
  font-size: 5rem;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-align: left; /* デスクトップの指定はそのまま */
  white-space: nowrap;
}

/* 下部：中央揃え */
.bottom-group {
  text-align: center;
  pointer-events: auto;
}

.bottom-group p {
  font-size: 1.5rem;
  margin-bottom: 24px;
  white-space: nowrap;
  color: #fff;
}

.overlay .btn {
  background: #ff3068;
  color: #fff;
  padding: 22px 44px;
  border-radius: 40px;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.only-pc { display: inline; }
.only-sp { display: none; }

@media screen and (min-width: 769px) {
  /* 既存の .overlay { padding:40px 20px; } を残しつつ… */
  .overlay h1 {
    /* デフォルト margin:0; の上で、左の 20px padding を打ち消す */
    margin-left: -20px;
  }
}


/* お悩みセクション */
.problems {
  background: #e4ebff;
  padding: 60px 0;
  /* セクション全体を中央寄せ */
  text-align: center;
}
.problems h2 {
  background: #8fa4e8;
  color: #fff;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 0px;
  font-size: 1.8rem;
  margin: 0 auto 40px; /* 上下マージンは残しつつ左右を auto で中央 */
}
.problems .cards {
  display: flex;
  gap: 20px;
  justify-content: center; /* ← space-between から変更 */
  flex-wrap: wrap;         /* 幅が狭いときは折り返しOKに */
  margin: 0 auto;          /* 必要に応じて横幅制限と併用 */
}
.card {
  background: #fff;
  padding: 20px;
  flex: 1;
  max-width: 300px; /* 任意：横幅上限を決めたい場合 */
  text-align: center;
  border-radius: 0px;
}
.card { background: #fff; padding: 20px; flex: 1; text-align: center; border-radius: 0px; }
.card img { width: 100%; height: auto; margin-bottom: 16px; }
.card p { font-size: 1rem; color: #333; font-weight: bold; }

/* 提案力×技術力×運用力セクション */
.strengths { background: #e4ebff; padding: 60px 0; }
.strengths-header { background: #5832d0; color: #fff; text-align: center; padding: 20px 0; position: relative; }
.strengths-header h2 { font-size: 1.8rem; }
.strengths-header h2 span { color: #fbd600; }
.strengths-header::after { content: ''; position: absolute; bottom: -38px; left: 50%; transform: translateX(-50%); border-width: 20px; border-style: solid; border-color: #5832d0 transparent transparent transparent; }

.strengths-list { display: flex; flex-direction: column; gap: 40px; margin-top: 100px; }
.strengths-item { background: #fff; display: flex; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 0px; overflow: hidden; }
.strengths-item.reverse { flex-direction: row-reverse; }
.strengths-content { flex: 1; }
.strengths-content img { width: 100%; height: auto; object-fit: cover; display: flex; }
.strengths-text {
    flex: 1;
    padding: 40px;
    display: flex; /* Flexboxコンテナにする */
    flex-direction: column; /* 子要素を縦に並べる */
    justify-content: center; /* 縦軸中央に配置 */
    /* align-items: center; はテキストが一行の時などに横方向中央に寄せる効果もあるので、
       今回はflex-direction: columnとjustify-content: centerで縦軸中央に揃えるのが適切です */
}
.strengths-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    /* max-width: 100%; */ /* 必要であれば追加 */
    /* margin: auto; */ /* 必要であれば追加して、pタグ自体を中央に寄せる */
    font-weight: bold;
}

/* 開発事例セクション */
.cases { background: #e4ebff; padding-top: 60px; padding-bottom: 60px;  /* ★ここを0にするのがポイント！ */ }
.section-header { background: #5832d0; color: #fff; text-align: center; padding: 20px 0; position: relative; }
.section-header h2 { font-size: 1.8rem; }
.section-header::after { content: ''; position: absolute; bottom: -38px; left: 50%; transform: translateX(-50%); border-width: 20px; border-style: solid; border-color: #5832d0 transparent transparent transparent; }

.case-list { display: flex; flex-direction: column; gap: 40px; margin-top: 100px; margin-bottom: 0px; /* ★追加：下にも空ける */ }
.case-item { background: #fff; display: flex; box-shadow: 0 2px 8px rgba(0,0,0,0.1); border-radius: 0px; overflow: hidden; }
.case-item.reverse { flex-direction: row-reverse; }
.case-content { flex: 1; }
.case-content img { width: 100%; height: auto; object-fit: cover; display: flex; }
.case-text { flex: 1; padding: 40px; }
.case-title { font-size: 1.1rem; margin-bottom: 8px; }
/* 青とオレンジの見出しテキスト */
.case-title-consult {
  color: #005bac;
  position: relative;
  margin-bottom: 10px;
}
.case-title-response {
  color: #ff7f00;
  position: relative;
  margin-bottom: 10px;
  margin-top: 24px; /* 「相談内容」と「対応」の間にスペース */
}
/* 横線を見出しの下に入れる */
.case-title-consult::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #005bac;
  margin-top: 4px;
}

.case-title-response::after {
  content: "";
  display: block;
  height: 2px;
  background-color: #ff7f00;
  margin-top: 4px;
}

.case-text .blue-text {
  color: #005bac !important;
}

.case-text .orange-text {
  color: #ff7f00 !important;
}

/* pタグを直後のh3と色リンクさせる：構造が連続している前提 */
.case-title-consult + p {
  color: #005bac;
}

.case-title-response + p {
  color: #ff7f00;
}

.case-text p { font-size: 1rem; line-height: 1.6; color: #333; font-weight: bold; }



/* ご利用者様の声セクション */
.testimonials {
  background: #e4ebff;
  padding: 60px 0;
}
.testimonials-header {
  text-align: center;
  position: relative;
}
.testimonials-header h2 {
  color: #fff ;
  font-size: 1.8rem;
  display: inline-block;
}
.title-line {
  width: 80%;
  height: 4px;
  background: #5832d0;
  border: none;
  margin: 8px auto 0;
}
.testimonial-list {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 40px;
}
.testimonial-item {
  background: #5832d0;
  color: #fff;
  flex: 1;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}
.testimonial-item .avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  overflow: hidden;
}
.testimonial-item .avatar img {
  width: 100%;
  height: auto;
}
.company {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.company-line {
  width: 60%;
  height: 2px;
  background: #fff;
  border: none;
  margin: 0 auto 16px;
}
.comment-box p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* お問い合わせCTAセクション */
.cta-section {
  background: #e4ebff;
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
  margin-top: 0;
}
.btn-large {
  background: #ff3068;
  color: #fff;
  padding: 22px 44px;
  border-radius: 50px;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


/* お問い合わせCTA */
.cta-section {
  background: #e4ebff;
  padding-top: 20px;     /* ★← ここが本質的な調整点 */
  padding-bottom: 75px;
  text-align: center;
  margin-top: 0;
}
.btn-large {
  background: #ff3068;
  color: #fff;
  padding: 16px 48px;
  border-radius: 50px;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

/* アンダーズの強み（背景＋ホワイトカード） */
.features-hero {
  position: relative;
  background: url('../img/tsuyomi-bg.webp') center/cover no-repeat;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 0 0 60px 0; /* 上は0、下を60pxに調整 */
}

.features-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.8);
}

.features-hero .container {
  position: relative;
  z-index: 1;
}

/* 見出し帯 */
.features-header {
  background: #5832d0;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.features-header h2 {
  font-size: 1.8rem;
  margin: 0;
}

.features-header::after {
  content: '';
  position: absolute;
  bottom: -38px; /* ▼を他セクションと同じ位置に */
  left: 50%;
  transform: translateX(-50%);
  border-width: 20px;
  border-style: solid;
  border-color: #5832d0 transparent transparent transparent;
}

/* 白カード一覧 */
.features-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 70px; /* 少し余白を広げてバランス調整 */
}

/* カード本体 */
.feature-card {
  background: #fff;
  padding: 24px 32px;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: block;
}

/* ✓とテキスト */
.feature-inner {
  display: flex;
  align-items: center;
  margin: 0 auto;
  max-width: 480px;
  white-space: nowrap;
}

/* チェックマーク */
.check {
  color: #fbd600;
  font-size: 1.6rem;
  width: 1.6em;
  flex-shrink: 0;
  margin-right: 12px;
  text-align: center;
}

/* テキスト */
.feature-inner p {
  margin: 0;
  font-size: 1rem;
  color: #333;
  white-space: nowrap;
  font-weight: bold;
}


/* DX導入までの流れセクション */
.flow-steps {
  background: #e4ebff;
  padding: 60px 0;
}
.flow-steps h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #8fa4e8;
  margin-bottom: 40px;
}
.step-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}
.step-card {
  background: #fff;
  flex: 1 1 calc(25% - 20px); /* 4列に分ける */
  text-align: center;
  border-radius: 0px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.step-card img {
  width: 180px;
  height: auto;
  margin: 0 auto 12px;
  display: block;
}
.step-card p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: left;
}
.step-label {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 5px;
}


/* スマホ対応（768px以下で縦並び） */
@media screen and (max-width: 768px) {
  .step-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列固定 */
    gap: 16px;
  }

  .step-card {
    width: 100%;  /* grid内ではこれでOK */
    box-sizing: border-box;
    background: #fff;
    padding: 16px;
    border-radius: 0px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
  }

  .step-card img {
    width: 100%;
    height: auto;
    margin-bottom: 12px;
    display: block;
  }

  .step-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
  }
}


/* 最終CTAセクション */
.final-cta {
  position: relative;
  background: url('../9.png') center/cover no-repeat;
  padding: 100px 0;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  /* 背景画像上に薄くオーバーレイをかけたい場合 */
  background: rgba(0, 0, 0, 0.2);
}
.final-cta .container {
  position: relative; /* オーバーレイより前面 */
  z-index: 1;
  text-align: center;
  color: #fff;
}
.overlay-final h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.overlay-final h2 span {
  color: #fbd600;
}
.overlay-final p {
  font-size: 1.1rem;
  line-height: 1.6;
}


/* お問い合わせフォーム */
form{
    width: 60%;
    margin:0 auto;
    background: #fff;
    padding: 40px;
}
.form-title{
    text-align: center;

}
form tr{
    height:60px;
}
.form-text{
    font-size: larger;
    font-weight: bold;
}
.form-copy {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}
.form-copy h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.form-copy h2 span {
  color: #fbd600; /* 黄色アクセント */
}
.form-copy p {
  font-size: 1.1rem;
  line-height: 1.6;
}
.required {
  color: red !important;
  font-weight: bold;
}
input[type="submit"] {
    margin:0 auto;
    width:20%;
    background: #C7BDA0;
    color: #3D2413;
    transition: 0.3s ease-in-out;
    margin-top: 50px;
    text-align: center;
    font-size: clamp(0.8rem, 1.5vw + 1em, 1.0rem);
    border-radius: 50px!important;
    border: 3px solid #3D2413!important;
    padding: 10px 20px;
    font-weight: 700;
}
.table-form-title {
    padding-top: 10px;
    font-weight: bolder;
}
input[type="submit"]:hover{
    cursor: pointer;
}
.apply-form {
  background-color: #5832d0;
  margin: 0 auto;
  padding: 60px 40px;
  margin-top: 0; /* ←追加で白隙間を潰す */
}
.apply-form form {
    display: flex;
    flex-direction: column;
}

.apply-form label {
    margin-top: 10px;
    font-weight: bold;
}

.apply-form input {
    padding: 20px;
    width:100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[name="propval_12_y"], select[name="propval_12_m"], select[name="propval_12_d"] {
    width: 70%;
    max-width: 50px;    
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* キャッチコピー下の白い横線 */
.form-divider {
  width: 60%;           /* フォームと同じに揃える */
  border: none;
  border-top: 2px solid #fff;
  margin: 20px auto 0;
}

/* ▼マーク */
.arrow {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  margin-top: -5px;
  margin-bottom: 20px;
}

/* フォーム内見出し（白ボックス内） */
.form-box-title {
  font-size: 1.6rem;
  color: #000; /* 黒文字 */
  margin-bottom: 24px;
  text-align: center;
}



/* --- お問い合わせフォームカスタム --- */

/* まず白ボックス（フォーム）を共通幅に統一 */
.custom-form {
  max-width: 960px; /* カードや.containerと合わせる */
  margin: 0 auto;
  background: #fff;
  padding: 40px 40px;
  box-sizing: border-box;
}

.custom-form input[type="submit"] {
  background: #ff3068;
  color: #fff;
  padding: 16px 48px;
  border-radius: 6px;
  font-size: 1.4rem;
  font-weight: bold;
  border: none !important;
  outline: none !important;
  width: 300px;             /* PCでは少し広め */
  max-width: 100%;          /* スマホでは自動で縮まる */
  margin: 24px auto 40px auto;
  cursor: pointer;
  display: block;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);  /* ✅ 黒系シャドウに修正 */
}

/* 念のためフォーカス時にも枠を消す */
.custom-form input[type="submit"]:focus {
  outline: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);  /* フォーカス時も影そのまま */
}

/* 横線も幅統一 */
.form-divider {
  width: 100%;
  max-width: 960px; /* カード幅と揃える */
  border: none;
  border-top: 2px solid #fff;
  margin: 20px auto 0;
}

.form-field {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #000;
}

.form-field .note {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  padding: 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.form-field textarea {
  resize: vertical;
  height: auto;
  min-height: 140px;
}

.form-description {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: #000;
}

/* プライバシーポリシー中央寄せ＆リンク強調 */
.privacy-note {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 24px;
  color: #333;
}

.privacy-note a {
  font-weight: bold;
  color: #007BFF;
  text-decoration: underline;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .custom-form {
    padding: 32px 16px;
  }

  .form-field {
    margin-bottom: 24px;
  }

  .form-field input,
  .form-field textarea {
    font-size: 1rem;
    padding: 14px;
  }

  .privacy-note {
    font-size: 0.9rem;
  }
}



/* ——— 画面幅いっぱいに背景を広げる ——— */
.strengths-header,
.cases .section-header,
.testimonials-header,
.features-header {
  /* 幅をビューポート幅いっぱいに */
  width: 100vw;
  /* 兄弟コンテナ（.container）の中央寄せを打ち消す */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  /* 元の padding／background はそのまま維持されます */
  /* もし必要なら上下 padding を微調整 */
  padding: 20px 0;
}

/* （任意）テキストは中央寄せのままにしたい場合は以下を追加 */
.strengths-header h2,
.cases .section-header h2,
.testimonials-header h2,
.features-header h2 {
  text-align: center;
  margin: 0 auto;
}

/* thankyou ページ */
.thankyou{
    background: #5832d0;
    /* height: 80vh; */ /* ← この行を削除 */
    font-size: clamp(0rem, 1.0vw + 1em, 2.2rem); /* ★追加：フォントサイズ復元 */
    font-weight: 700; /* ★追加：フォントウェイト復元 */
    color:#fff;
    min-height: 10rem; /* これは元々あったので維持 */
    margin: 0 auto;
    text-align: center;
    display: flex; /* 中央寄せのために必要なので維持 */
    justify-content: center; /* 中央寄せのために必要なので維持 */
    align-items: center; /* 中央寄せのために必要なので維持 */
}

.thankyou-text p{
    vertical-align: middle;
}

.thankyou{
    background: #5832d0;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  
/* 終了thankyou ページ */


@media screen and (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .cta {
    font-size: 0.9rem;
  }

  /* ヘッダー：ロゴとボタンを縦並びに */
  .site-header .container {
    flex-direction: column;
    align-items: center;
  }
  .btn-contact {
    margin-top: 12px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* ファーストビュー：文字サイズとボタンを縮小 */
  @media screen and (max-width: 768px) {
    .hero {
    /* 現在のコード: height: calc(100vh - 80px); */
    height: calc(100vh - 150px); /* この値を調整してください */
  }

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 画像の暗さ調整 */
  z-index: 1;
}

.hero picture,
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

  .overlay {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* bottom-group を下部に寄せるため */
    align-items: center;     /* bottom-group を水平中央に寄せるため */
    /* ここを調整して、下部の余白を減らし、コンテンツ全体を上に移動させます */
    padding: 0 20px 20px !important; /* 例: 下部のパディングを40pxから20pxに減らす */
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    height: 100% !important;
  }

  .overlay h1 {
    text-align: center; /* テキスト自体を中央揃え */
    font-size: 2.2rem;
    white-space: normal; /* 折り返しを許可 */
    margin: 0; /* マージンをリセット */
    line-height: 1.3; /* 行間を調整 */
  }

  /* .hero-heading の設定: キャッチコピーのテキストを絶対配置します */
  .hero-heading {
    position: absolute !important;
    /* 現在のコード: top: 40px !important; */
    top: 20px !important; /* 例: 上端からの距離を20pxに減らす */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    text-align: center !important;
    align-self: unset;
    pointer-events: auto;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* .hero-heading h1 の設定 */
  .hero-heading h1 {
    text-align: center !important;
    /* 現在のコード: font-size: 2.2rem !important; */
    font-size: 2.5rem !important; /* 例: 少し大きくする */
    line-height: 1.3 !important;
    color: #fff !important;
    margin: 0 !important;
    white-space: normal !important;
  }

  /* .bottom-group は .overlay の flex-end 設定により自動的に下部に配置されるはずです。 */
  .bottom-group {
    /* 念のため、親要素のoverflow: hidden; は維持 */
    overflow: hidden;
    width: 100%; /* 明示的に100% */
    box-sizing: border-box; /* パディングを含める */
    padding-left: 20px; /* 左右に少しパディングを追加して、端に寄りすぎないようにする */
    padding-right: 20px; /* 同上 */
    margin-bottom: 20px;
  }

  .bottom-group p {
      line-height: 1.4;
      text-align: center; /* ← pタグは中央揃えのまま */
      position: relative;
    }

  .bottom-group p span.only-sp {
      /* 修正1: white-space: nowrap を削除またはコメントアウト */
      /* white-space: nowrap !important; */

      /* 修正2: display を block に変更 */
      display: block; /* inline-block から block に変更 */

      font-size: 1.1rem !important;

      /* 修正3: 以下の位置調整プロパティを削除またはコメントアウト */
      /* position: relative; */
      /* left: 50%; */
      /* transform: translateX(-50%); */

      /* margin-left, margin-right も不要になる可能性が高いので削除またはコメントアウト */
      /* margin-left: unset; */
      /* margin-right: unset; */
    }

  .bottom-group p br {
    display: block;
  }

  .overlay .btn {
    font-size: 1.2rem !important;
    padding: 14px 28px !important;
    background: #ff3068;
    color: #fff;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    /* ★★★ ここを修正します ★★★ */
    /* ボタンとテキストの間の余白をなくすため、margin-top を削除または0にします */
    margin-top: 0 !important; /* またはこの行を削除 */
  }

  .only-pc { display: none; }
  .only-sp { display: inline; }

  /* 以下の既存スタイルはそのまま残す */
  .btn-large {
    width: 100%;
    box-sizing: border-box;
  }

  .testimonial-list {
    flex-direction: column;
    gap: 20px;
  }

  .cta-section .container,
  .features-list {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .features-cards {
    flex-direction: column;
  }

  .step-cards {
    flex-direction: column;
  }

  .final-cta {
    padding: 60px 0;
  }

  .overlay-final h2 {
    font-size: 1.6rem;
  }

  .overlay-final p {
    font-size: 1rem;
  }

  .case-item {
  flex-direction: column;
}

.case-content, .case-text {
  width: 100%;
  padding: 20px;
}

  .strengths-item {
  flex-direction: column;
}

  .strengths-item.reverse {
  flex-direction: column;
}

.strengths-content, .strengths-text {
  width: 100%;
  padding: 20px;
}

  .problems .cards {
    flex-direction: column;
    align-items: center; /* 中央寄せ */
  }

  .problems .card {
    width: 100%;
    max-width: 320px; /* お好みで */
  }

  .problems h2 {
    white-space: nowrap;
  }
  
  .problems h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;  /* 念のため */
    font-size: clamp(1rem, 5vw, 1.6rem); /* 画面幅に応じて文字サイズが変化 */
    max-width: 100%;
    box-sizing: border-box;
  }

  .feature-inner {
    flex-direction: column;     /* ✓を上に、テキストを下に */
    align-items: center;        /* 中央揃え */
    text-align: center;
    max-width: 100%;
    width: 100%;
    white-space: normal;        /* テキストを折り返し制御しやすくする */
    padding: 0 16px;            /* 画面端に当たらないよう余白 */
    box-sizing: border-box;
  }

  .check {
    margin: 0 0 8px 0;          /* 下にだけ余白 */
    width: auto;                /* 横幅固定を解除 */
    font-size: 1.8rem;
  }

  .feature-inner p {
  white-space: normal; /* 折り返し可能に */
  overflow: visible;   /* はみ出し表示解除 */
  text-overflow: unset; /* 省略記号解除 */
}

.apply-form {
    padding: 30px 16px;
  }

  .apply-form form {
    width: 100%;
    padding: 24px 16px;  /* 内側の余白を確保 */
    box-sizing: border-box;
  }

  .apply-form input,
  .apply-form textarea {
    padding: 16px;
    font-size: 1rem;
    border-radius: 6px;
  }

  .form-box-title {
    font-size: 1.4rem;
  }

  input[type="submit"] {
    width: 100%;
    font-size: 1.1rem;
    padding: 16px;
  }

  .form-divider {
    width: 100%; /* 横幅いっぱいでも自然 */
  }

  .arrow {
    font-size: 1.2rem;
    margin-top: -5px;
    margin-bottom: 16px;
  }

  .form-copy p {
    white-space: nowrap;
    font-size: 0.9rem; /* ←この行を追加・調整してください */
    /* 必要であれば、さらに小さい画面（例: max-width: 480px）でさらに調整 */
  }

  .form-description {
    white-space: nowrap;
    font-size: 0.9rem; /* 任意で少し小さく調整しても可 */
    line-height: 1.6;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  footer .container {
    flex-direction: column-reverse; /* ロゴとリンクの順序を逆にする */
    gap: 15px; /* ロゴとリンクの間のスペース */
  }

  .footer-links {
    flex-direction: row; /* リンクを横並びにする */
    flex-wrap: wrap; /* 必要に応じてリンクを折り返す */
    justify-content: center; /* リンクを中央揃えにする */
    gap: 10px; /* リンク間のスペースを調整 */
    width: 100%; /* 親要素の幅いっぱいに広げる */
  }

  .footer-links a {
    font-size: 0.85rem; /* スマホでのフォントサイズ調整 */
    white-space: nowrap; /* リンクテキストの改行を防ぐ */
  }

  /* thankyouページのスマホビュー調整 */
  .thankyou {
      /* height: auto; を指定し、min-height で最低限の高さを確保しつつ、
         コンテンツ量に合わせて柔軟に伸びるようにします。 */
      height: auto;
      /* ヘッダーの高さ（約80px - 90px程度）とフッターの高さ（約80px程度）を考慮。
         画像を見ると、上下にまだ余裕があるので、もう少し短くても良いかもしれません。
         ここでは、画面全体の高さからヘッダーとフッターの高さを引いた値より少し余裕を持たせます。 */
      min-height: calc(100vh - 200px); /* ★ここを調整します。例: ヘッダー約90px + フッター約90px = 180px と仮定 */
      /* min-height: 60vh; や min-height: 70vh; といったvh指定も試してみてください。 */

      padding: 40px 20px; /* ★上下のパディングを増やして、コンテンツの縦幅を広げる */
      box-sizing: border-box;
      display: flex;
      flex-direction: column; /* テキストブロックを縦に中央配置 */
      justify-content: center; /* 垂直方向中央寄せ */
      align-items: center; /* 水平方向中央寄せ */
  }

  .thankyou-text {
    padding: 0; /* 親の.thankyouにpaddingがあるので不要 */
  }

  .thankyou-text p {
      font-size: 1.2rem; /* */
      line-height: 1.6; /* */
      text-align: center; /* */
      /* 必要であれば max-width を設定してテキストの最大幅を制限することも検討 */
      max-width: 90%; /* 例: 幅を少し制限して、長い行がはみ出さないようにする */
      margin: 0 auto; /* max-widthと合わせて中央寄せ */
  }

}



/* より小さいスマホ向け（480px以下） */
@media (max-width: 480px) {
  .overlay h1 {
    font-size: 1.6rem;
    line-height: 1.4; /* さらに行間を調整 */
  }
  .hero-heading {
      /* 現在のコード: top: 30px !important; */
      top: 15px !important; /* 例: さらに小さい画面では上端から15pxに減らす */
    }
    .hero-heading h1 {
      font-size: 2rem !important; /* 前回の調整分 */
    }
    .bottom-group {
      padding-bottom: 30px !important;
      overflow: hidden; /* 横スクロールをなくすために必要 */
    }
  .bottom-group p {
      line-height: 1.4;
      text-align: center;
      position: relative;
    }
    .bottom-group p span.only-sp {
      white-space: nowrap !important;
      display: inline-block;
      
      font-size: 1.1rem !important; /* 480px以下用のサイズ（お好みに合わせて調整） */

      position: relative;
      left: 50%;
      transform: translateX(-50%);

      margin-left: unset;
      margin-right: unset;
    }
  .overlay p {
    font-size: 0.9rem;
  }
  .overlay .btn {
      font-size: 1.2rem !important;
      padding: 14px 28px !important;
      /* ★★★ ここを修正します ★★★ */
      margin-top: 0 !important; /* またはこの行を削除 */
    }
.overlay {
      /* 必要であれば、さらに下部のパディングを調整して上に寄せます */
      padding-bottom: 10px !important; /* 例: 480px以下ではさらに10pxに減らす */
    }

/* さらに必要なら見出し・段落幅も制限 */
.overlay {
    width: 100%; /* Ensure it uses full width for content */
    padding: 20px; /* Add general padding for smaller screens */
    box-sizing: border-box; /* Include padding in the width calculation */
  }
.overlay h1 {
    font-size: 1.6rem; /* Adjust font size for even smaller screens */
  }
.overlay p {
  margin-left: auto;
  margin-right: auto;
  /* 全体幅の80%以内にする例 */
  max-width: 80%;
  
}
.form-copy p {
    font-size: 0.8rem; /* ←適宜調整してください */
  }
.form-description {
    white-space: nowrap;
    font-size: 0.9rem; /* 任意で少し小さく調整しても可 */
    line-height: 1.6;
    overflow-wrap: normal;
    word-break: keep-all;
  }
}
