/* TOPページ ------------------------------------------------------- */
/* トップタイトル */
.top_title {
    background: linear-gradient(60deg, #FCEFC7, #FEFDF8, #FCF1C8);
    width: 100%;
    padding: 77px 0 64px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}
.top_title img {
    width: 73%;
    max-width: 1400px;
    height: auto;
}
/* 最新のファンド */
.toppage_wrap_padding {
    padding: 100px 0;
    box-sizing: border-box;
}
.fund_section_title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 28px;
    margin-bottom: 49px;
}
.fund_table {
    width: 100%;
    border-collapse: collapse;
}
.fund_table_header {
    background: #F2F2EF;
}
.fund_table_th {
    padding: 22px 5px;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
}
.fund_table_row {
    border-bottom: 1px solid #C2C2C2;
}
.fund_table_row:hover {
    background: #FAFAF9;
    cursor: pointer;
}
.fund_table_td {
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
    height: 77px;
}
.recruit_end_td {
    color: rgb(8, 4, 4, 0.5);
    font-size: 1.7rem;
    font-weight: 500;
    height: 42px;
    line-height: 42px;
    background: #F2F2EF;
    /* max-width: 85%; */
    margin: 0 auto;
}
/* .time_td {
    font-weight: bold;
} */
.color_td {
    color: #AA8320;
    font-weight: 500;
}
.width_th {
    width: 20px;
}
.maxwidth_th {
    width: 130px;
}
/* ファンド一覧へボタン */
.fund_btn {
    display: block;
    border: solid 1px #AA8320;
    width: 228px;
    height: 55px;
    line-height: 55px;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #AA8320!important;
    text-align: center;
    margin: 40.5px auto 100px;
}
.fund_btn:hover {
    background: #AA8320;
    color: white!important;
    cursor: pointer;
}
/* お知らせ */
.notice_list {
    width: 100%;
}
.notice_top_line {
    width: 100%;
    height: 1px;
    background: #C2C2C2;
}
.notice_item {
    display: flex;
    align-items: center;
    padding: 31px 0;
    box-sizing: border-box;
    position: relative;
    border-bottom: 1px solid #C2C2C2;
}
.notice_item:hover {
    cursor: pointer;
}
.notice_item:hover .notice_date,
.notice_item:hover .notice_text {
    opacity: 0.3;
}
.notice_date {
    max-width: 270px;
    width: 100%;
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.5px;
}
.notice_text {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 28px;
}

@media (max-width: 768px) {
    /* トップタイトル */
    .top_title {
        background: linear-gradient(40deg, #FCEFC7, #FEFDF8, #FCF1C8);
        padding: 25px 0 18px;
    }
    .top_title img {
        width: 94%;
        max-width: 354px;
    }
    .toppage_wrap_padding {
        padding: 60px 0 50px;
    }
    .fund_section_title {
        font-size: 1.8rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        line-height: 30px;
        margin-bottom: 25px;
    }
    /* 最新のファンド */
    .fund_card {
        max-width: 335px;
        width: 100%;
        border: solid 1px #C2C2C2;
        padding: 10px 25px;
        box-sizing: border-box;
        margin: 0 auto 20px;
        text-align: center;
    }
    .fund_card_title {
        font-size: 2rem;
        font-weight: bold;
        line-height: 29px;
        margin-bottom: 5px;
    }
    .fund_box {
        display: flex;
        justify-content: space-between;
    }
    .fund_card_row {
        width: 50%;
        border-top: solid 1px #C2C2C2;
        padding: 5px 0;
        box-sizing: border-box;
    }
    .fund_card_label {
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: 0.4px;
        line-height: 18px;
        opacity: 0.5;
    }
    .fund_card_value {
        font-size: 1.4rem;
        font-weight: 400;
        line-height: 20px;
    }
    .fund_box_end {
        width: 100%;
        border-top: solid 1px #C2C2C2;
        padding: 10px 0 0;
        box-sizing: border-box;
    }
    .fund_card_end {
        font-size: 1.5rem;
        font-weight: 500;
        height: 38px;
        line-height: 38px;
        color: rgba(8, 4, 4, 0.5);
        background: #F2F2EF;
    }
    .recruit_card {
        color: #AA8320;
        font-size: 1.4rem;
        font-weight: 500;
    }
    .recruit_card span {
        font-size: 1.2rem;
    }
    /* ファンド一覧へボタン */
    .fund_btn {
        max-width: 335px;
        width: 100%;
        height: 45px;
        line-height: 45px;
        font-size: 1.6rem;
        font-weight: bold;
        letter-spacing: 1.2px;
        text-align: center;
        margin: 30px auto 60px;
    }
    /* お知らせ */
    .notice_item {
        display: block;
        align-items: center;
        position: relative;
        border-bottom: 1px solid #C2C2C2;
        padding: 16px 0;
    }
    .notice_item:hover {
        cursor: pointer;
    }
    .notice_item:hover .notice_date,
    .notice_item:hover .notice_text {
        opacity: 0.3;
    }
    .notice_date {
        max-width: initial;
        width: 100%;
        font-size: 1.3rem;
        font-weight: 400;
        text-align: left;
        letter-spacing: 0.5px;
        margin-bottom: 7px;
    }
    .notice_text {
        font-size: 1.4rem;
        font-weight: 400;
        line-height: 28px;
    }
}


/* お知らせ詳細ページ ------------------------------------------- */
.notice_wrap_padding {
    padding: 60px 0 100px;
    box-sizing: border-box;
}
.notice_header {
    display: flex;
    align-items: center;
    height: 47px;
}
.notice_header .notice_icon {
    width: 47px;
    height: 47px;
    background: #AA8320;
}
.notice_header .notice_title {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 0.3px;
    height: 47px;
    line-height: 47px;
    background: #F2F2EF;
    padding: 0 30px 0 21px;
    box-sizing: border-box;
}
.notice_content {
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 31px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .notice_wrap_padding {
        padding: 50px 20px 60px;
    }
    .notice_header {
        height: 58px;
    }
    .notice_header .notice_icon {
        width: 32px;
        height: 58px;
    }
    .notice_header .notice_title {
        width: 100%;
        font-size: 1.6rem;
        letter-spacing: 0.5px;
        height: 58px;
        line-height: 28px;
        padding: 0 0 0 12px;
        box-sizing: border-box;
    }
    .notice_content {
        font-size: 1.4rem;
        font-weight: 400;
        line-height: 25px;
        margin-top: 23px;
    }
}



    .title-box {
	  width: 100%;
      height: 50px;

      /* 【注意】背景と文字が同色だと見えないので、文字色を白にしています */
      /* 背景をグレーにするなら：background: rgba(50, 50, 50, 1); color: #fff; */
      background: rgba(242, 242, 239, 1);

      /* 文字のスタイル */
      font-family: "Noto Sans JP", sans-serif;
      font-size: 20px;
      font-weight: 700;
      line-height: 50px; /* 高さ50pxに合わせて中央寄せ */
      letter-spacing: 1.4px;
      text-align: left;
      padding-left: 15px; /* 文字が左端に張り付かないための余白 */
      box-sizing: border-box;

      margin: 1.5px auto; /* 上下中央に配置するためのマージン */

      margin-bottom: 32px;
    }

    /* 影が画面外にはみ出るのを防ぐための親要素（必要に応じて） */
/*     body {
      margin: 0;
      padding: 0;
      background: rgba(242, 242, 239, 1); 全体の背景色と同化させる
      overflow-x: hidden;
    }
 */

    .text-box1 {
		font-family: "Noto Sans JP";
		font-size: 16px;
		font-weight: 400;
		line-height: 31px;
		letter-spacing: 0px;
		text-align: left;
    }

    .text-box2 {
		font-family: "Noto Sans JP";
		font-size: 20px;
		font-weight: 700;
		line-height: 31px;
		letter-spacing: 2px;
		text-align: left;
    }

	.text-box3 {
		color: rgba(170, 131, 32, 1);
		font-family: "Noto Sans JP";
		font-size: 24px;
		font-weight: 700;
		line-height: 31px;
		letter-spacing: 0.72px;
		text-align: left;
	}

	.bottom_space {
        margin-bottom: 20px;
	}

 /* 横一行に並べるための親要素 */
    .flex-container {
      display: flex;
      align-items: center; /* 上下中央揃え */
      gap: 0; /* 必要に応じて枠と枠の間の隙間（例: 10px など）を設定してください */
    }

    /* 四角の枠（Q） */
    .q-box {
      width: 47px;
      height: 47px;
      background: rgba(170, 131, 32, 1); /* 金・茶系 */

      /* 文字（Q）のスタイル */
      color: rgba(255, 255, 255, 1); /* 【修正】背景が白だと同化するため文字を白、文字表示領域の背景は無しに */
      font-family: "Inter", sans-serif;
      font-size: 30px;
      font-weight: 500;
      line-height: 47px; /* 枠の高さに合わせて中央寄せ */
      letter-spacing: 2.1px;
      text-align: center; /* 左右中央寄せ */
    }

    /* 長方形の枠（質問文） */
    .text-box {
      width: 1200px;
      height: 47px;
      background: rgba(242, 242, 239, 1); /* 薄いグレー */

      /* 文字のスタイル */
      color: rgba(50, 50, 50, 1); /* 【修正】背景と同化するため文字を濃いグレー、文字表示領域の背景は無しに */
      font-family: "Noto Sans JP", sans-serif;
      font-size: 20px;
      font-weight: 500;
      line-height: 47px; /* 枠の高さに合わせて垂直中央寄せ */
      letter-spacing: 0px;
      text-align: left;

      /* 内側の余白調整 */
      padding-left: 20px; /* 左端から文字を少し離す */
      box-sizing: border-box;
    }


/** ----------------------- */


/* 全体を包むラッパー（横幅を1247pxに固定） */

    .wrapper {
      width: 100%;
      margin: 50px auto;
    }

    /* 質問帯（クリックできる領域） */
    .question-header {
      display: flex;
      align-items: center;
      cursor: pointer; /* マウスホバーでポインターにする */
      position: relative; /* アイコンの位置基準用 */
      margin-top: 50px;
    }

    /* 四角の枠（Q） */
    .q-box {
      width: 47px;
      height: 47px;
      background: rgba(170, 131, 32, 1);
      color: rgba(255, 255, 255, 1);
      font-family: "Inter", sans-serif;
      font-size: 30px;
      font-weight: 500;
      line-height: 47px;
      letter-spacing: 2.1px;
      text-align: center;
    }

    /* 長方形の枠（質問文） */
    .text-box {
      width: 1200px;
      height: 47px;
      background: rgba(242, 242, 239, 1);
      color: rgba(50, 50, 50, 1);
      font-family: "Noto Sans JP", sans-serif;
      font-size: 20px;
      font-weight: 500;
      line-height: 47px;
      letter-spacing: 0px;
      text-align: left;
      padding-left: 20px;
      padding-right: 50px; /* 右端のボタンと被らないように余白を追加 */
      box-sizing: border-box;
    }

    /* ★右端の「＋」「－」アイコンボタン */
    .toggle-icon {
      position: absolute;
      right: 15px;
      font-family: "Inter", sans-serif;
      font-size: 24px;
      font-weight: 500;
      color: rgba(50, 50, 50, 1);
      user-select: none; /* 文字のダブルクリック選択を防止 */
    }

    /* アイコンの中身をCSSで制御（初期状態は「＋」） */
    .toggle-icon::before {
      content: "＋";
    }

    /* 質問帯がクリックされて「open」クラスがついたら「－」に変える */
    .question-header.open .toggle-icon::before {
      content: "－";
    }


    /* ----------------------------------
       解答エリアのスタイル
    ---------------------------------- */
    /* 解答欄のコンテナ（最初は非表示） */
    .answer-container {
      display: none; /* 通常は隠す */
      margin-top: 5px; /* 質問帯との間のすき間 */
    }

    /* 質問帯に「open」がついたら、次にある解答欄を表示する */
    .question-header.open + .answer-container {
      display: flex; /* 質問と同じように横並びにする */
    }

    /* 四角の枠（A） */
    .a-box {
      width: 47px;
      min-height: 47px; /* 解答が長くなってもいいようにmin-heightに */
      background: rgba(50, 50, 50, 1); /* Qと区別するため濃いグレーに */
      color: rgba(255, 255, 255, 1);
      font-family: "Inter", sans-serif;
      font-size: 30px;
      font-weight: 500;
      line-height: 47px;
      text-align: center;
    }

    /* 解答テキストの枠 */
    .answer-text-box {
      width: 1200px;
      background: rgba(242, 242, 239, 0.6); /* 質問より少し薄めの背景に */
      color: rgba(50, 50, 50, 1);
      font-family: "Noto Sans JP", sans-serif;
      font-size: 18px;
      line-height: 1.6;
      padding: 12px 20px; /* 上下に少し余裕を持たせる */
      box-sizing: border-box;
    }



    /** ------------------------------- **/


 /** -----------------------**/

/* 全体を横一列に並べるコンテナ */
    /* 中央上段：STEP 01 */
    .step-badge {
      padding: 0 8px;
      height: 22px;
      color: rgba(170, 131, 32, 1);
      font-family: "Roboto Condensed", sans-serif;
      font-size: 15px;
      font-weight: 600;
      line-height: 18px;
      letter-spacing: 0.45px;
      text-align: center;
      white-space: nowrap;
      border-radius: 2px;
    }


    /* 中央下段：情報入力 */
    .step-under-text {
      width: 135px;
      height: 32px;
      background: transparent;
      color: rgba(50, 50, 50, 1);
      font-family: "Noto Sans JP", sans-serif;
      font-size: 22px;
      font-weight: 700;
      line-height: 32px;
      letter-spacing: 0.5px;
      text-align: center;
    }


    /* パターン②用：全体コンテナの修正 */
.step-flow-container {
  display: flex;
  align-items: center;
/*   justify-content: center;
 */
  justify-content: space-between;
  flex-wrap: wrap; /* ← wrap（折り返し許可）に変更 */
  gap: 10px; /* 縦横のすき間を一括制御 */
  max-width: 1200px;
  margin: 0;
}

/* 各ステップの四角（固定サイズを維持） */
.step-box {
  width: 138px;
  height: 93px;
  background: rgba(242, 242, 239, 1);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}

/* 矢印のmarginをリセット（gapで管理するため） */
.step-arrow {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
/*   color: rgba(170, 131, 32, 1);
 */
  color: rgba(50, 50, 50, 1);
  margin: 0;
  user-select: none;
}


/*--------------------------------------------*/

/* 全体のコンテナ（左右を並べる親要素） */
    .step-text-container,
    .step-text-container2 {
      display: flex;
      align-items: center;
      width: 100%;
      position: relative; /* 縦線の位置の基準にする */
    }

    /* ==========================================
       ★ 追加：縦線（タイムライン線）の記述
    ========================================== */
    /*
      左側の要素の「真ん中」を通る縦線を描きます。
      最後の行（STEP07の説明文）には線が不要なため、
      最後の要素だけ :last-of-type で線を消せるよう
      container全体を囲む構造、またはそのまま連続して記述します。
    */
    .step-text-container::after {
      content: "";
      position: absolute;
      top: 21px;    /* 左側の四角（高さ42px）の真ん中からスタート */
      left: 55.5px; /* 左側の幅111pxのちょうど真ん中 (111 / 2) */
      bottom: -21px;/* 次の行の真ん中まで線を伸ばす */

      /* ご指定のスタイル（太さ4px、指定の色） */
      width: 4px;
      background: rgba(194, 194, 194, 0.5);

      z-index: 1;   /* 背景よりは前、文字よりは後ろに配置 */
    }

	/* 一番最後の行（STEP07の説明文）からは下に線を伸ばさない */
    .step-text-container.last-row::after {
 		 display: none;
	}

    /* 左：見出し部（基本スタイル） */
    .left-heading {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-shrink: 0;

      width: 111px;
      height: 42px;
      background: rgba(242, 242, 239, 1);
      position: relative;
      z-index: 2; /* 縦線よりも前に出す */
    }

    /* 左：見出し部（基本スタイル） */
    .left-heading2 {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-shrink: 0;

      width: 111px;
      height: 42px;
      background: rgba(242, 242, 239, 1);
    }

    /* 左：見出し部の文字 */
    .step-text {
      display: flex;
      justify-content: center;
      align-items: center;
      width: 64px;
      height: 33px;
      color: rgba(170, 131, 32, 1);
      font-family: "Roboto Condensed", sans-serif;
      font-size: 22px;
      font-weight: 600;
      line-height: 26px;
      letter-spacing: 0.66px;
      text-align: center;
    }

    /* 右：タイトルや文章（基本スタイル） */
    .right-content {
      flex-grow: 1;
      padding-left: 20px; /* 線とのバランスを見て少し広げました */
      color: rgba(50, 50, 50, 1);
      font-family: "Noto Sans JP", sans-serif;
      font-size: 22px;
      font-weight: 700;
      line-height: 32px;
      letter-spacing: 0.66px;
      text-align: left;
    }

	/* paddinを無くした版 */
    .right-content2 {
      flex-grow: 1;
      color: rgba(50, 50, 50, 1);
      font-family: "Noto Sans JP", sans-serif;
      font-size: 22px;
      font-weight: 700;
      line-height: 32px;
      letter-spacing: 0.66px;
      text-align: left;
    }

	.incontentsx-text1 {
      	padding-left: 20px; /* 線とのバランスを見て少し広げました */
		font-family: "Noto Sans JP";
		font-size: 16px;
		font-weight: 400;
		line-height: 31px;
		letter-spacing: 0px;
		text-align: left;
		margin-bottom:16px;
	}


    /* 説明文用のスタイル */
    .step-text-container.desc-row,
    .step-text-container2.desc-row {
      align-items: flex-start;
      margin-bottom: 24px; /* 次のSTEPとの間隔 */
    }

    /* 説明文行の「左側」：背景を透明にする */
    .desc-row .left-heading,
    .desc-row .left-heading2 {
	background: transparent;
    }

    /* 説明文行の「右側」：文字を小さく */
    .desc-row .right-content {
      font-size: 14px;
      font-weight: 400;
      line-height: 22px;
    }

 /** ---------------------------- **/
.account_lrg_btn {
/*     font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.3px;
 */    font-size: 26px;
	font-weight: 700;
	letter-spacing: 0.78px;
/*   width: 168px;
    height: 53px;
 */	width: 344px;
	height: 71px;
    line-height: 71px;
    text-align: center;
    color: #AA8320;
    border: solid 1px #AA8320;
    margin: 15px auto 30px;
}
.account_lrg_btn:hover {
    background: #AA8320;
    color: white;
    cursor: pointer;
}
@media (max-width: 768px) {
    .account_lrg_btn {
        font-size: 1.6rem;
        letter-spacing: 1.2px;
/*         max-width: 335px;
 */        width: 100%;
        height: 45px;
        line-height: 45px;
        margin: 15px auto 20px;
    }
}


/** -------------------------------**/
/* 全体を囲む枠線の設定 */
        .alert-container {
            max-width: 1060px; /* 最大横幅 */
            width: 100%;
            padding: 24px;
            border: 1px solid rgba(194, 194, 194, 1);
			border-radius: 5px;
            box-sizing: border-box;
        }


        /* 注意喚起タイトル */
        .alert-title {
            max-width: 1054px;
            /* height: 31px; 指定があると文字が溢れる可能性があるため自動調整にしています */
            color: rgba(50, 50, 50, 1);
            font-family: "Noto Sans JP", sans-serif;
            font-size: 16px;
            font-weight: 700;
            line-height: 28px;
            letter-spacing: 0px;
            text-align: left;
            margin-bottom: 16px; /* タイトルと文章の間の隙間 */
        }

        /* 注意喚起文言 全体 */
        .alert-body {
            max-width: 1019px;
            /* height: 496px; 指定があると文字量によって崩れるため自動調整にしています */
            color: rgba(50, 50, 50, 1);
            font-family: "Noto Sans JP", sans-serif;
            font-size: 16px;
            font-weight: 400;
            line-height: 31px;
            letter-spacing: 0px;
            text-align: left;
        }

        /* 文章２（赤文字にしたい部分） */
        .text-red {
            color: #ff4d4f; /* 文字色を赤に設定 */
            font-weight: 700; /* 赤文字部分を少し太字にして強調 */
        }


 /**---------------------------------------------**/


 /* ==========================================================
   1. パソコン用のスタイル（元々の設定をベースにレスポンシブ化）
   ========================================================== */

.grid-wrapper {
  display: grid;
  /* ★ 2つから3つ並び（repeat(3, ... )）に変更 */
  grid-template-columns: repeat(3, minmax(0, 380px)); /* 幅を少しスリムに調整 */
  gap: 20px;
  justify-content: space-between;
  padding: 20px 0;
}

.card-container {
  width: 100%;

  border: 1px solid rgba(170, 131, 32, 1);
  border-radius: 28px;
  box-sizing: border-box;
  padding: 30px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background-color: #ffffff;
}

/* 枠内の上側：画像 */
.card-image {
  width: 100%;
  max-width: 100%;
  height: 164px;
  border-radius: 12px;
  object-fit: contain;
}

/* 枠内の下側：テキスト全体のコンテナ */
.card-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* 1つ目文章  */
.text-first {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 31px;
  letter-spacing: 0.6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 2つ目文章 */
.text-second {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 31px;
  letter-spacing: 0px;
  text-align: left;
  display: flex;
  align-items: center;
  padding-left: 15px;
  box-sizing: border-box;
}

/* 3つ目文章*/
.text-third {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0px;
  text-align: left;
  display: flex;
  align-items: center;
  padding-left: 15px;
  box-sizing: border-box;
}

/* ==========================================================
   2. スマホ・タブレット用のスタイル（画面幅が768px以下のとき）
   ========================================================== */
/* @media (max-width: 768px) {
 */  /* スマホ時の画像サイズ調整 */
/*   .card-image {
    width: 100%;
    max-width: 300px;
    height: 164px;
  }
 */
  /* スマホ時のテキストコンテナ */
/*   .card-content {
    width: 100%;
  }
 */
  /* 1つ目・2つ目・3つ目の文章のサイズ設定をリセット */
/*   .text-first,
  .text-second,
  .text-third {
    width: 100% !important;
    height: auto !important;
    min-height: 40px;
  }
 */
  /* 2つ目と3つ目の文章の左余白をスマホ用に調整（お好みで） */
/*   .text-second,
  .text-third {
    padding-left: 0;
  }
/*
}
 */
/*  @media (max-width: 768px) {
  .grid-wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 15px;
  }

  .card-container {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 10px 16px;

    ★ 縦並びから横並び(row)に変更し、上揃え(flex-start)にする
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  ★ スマホ時の画像サイズ調整（横幅を固定、または割合で指定）
  .card-image {
    width: 25%;          例: コンテナの35%の幅に設定
    max-width: 100px;    大きくなりすぎないように上限を設定
    height: auto;        縦横比を維持（164px固定だと潰れるため）
    object-fit: cover;   containからcoverにすると、枠内に綺麗に収まります（お好みで）
  }

  ★ スマホ時のテキストコンテナ
  .card-content {
    width: 75%;          残りの幅を割り当てる
  }

  1つ目・2つ目・3つ目の文章のサイズ設定をリセット
  .text-first,
  .text-second,
  .text-third {
    width: 100% !important;
    height: auto !important;
    min-height: auto;    40pxだと文字が少ないときに隙間ができるため、autoがおすすめ
  }

  ★ 横並びのときは、見出し（文言）を左寄せにした方が綺麗に見えます
  .text-first {
    justify-content: center;
    text-align: center;
    font-size: 18px;     スマホ用に少し小さく調整
    line-height: 1.4;
  }

  2つ目と3つ目の文章の左余白をスマホ用に調整
  .text-second,
  .text-third {
    padding-left: 0;
    line-height: 1.5;    スマホで読みやすい行間に調整
  }
}
 */
@media (max-width: 768px) {
  .grid-wrapper {
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    padding: 15px;
  }

  .card-container {
    width: 100%;
    max-width: 100%;
    height: auto;
/*     min-height: 225px; */
/*     padding: 20px 16px; */
    padding: 10px 16px;

    /* ★ 縦並びから横並び(row)に変更し、上揃え(flex-start)にする */
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  /* ★ スマホ時の画像サイズ調整（横幅を固定、または割合で指定） */
  .card-image {
    width: 25%;          /* 例: コンテナの35%の幅に設定 */
    max-width: 100px;    /* 大きくなりすぎないように上限を設定 */
    height: auto;        /* 縦横比を維持（164px固定だと潰れるため） */
    object-fit: cover;   /* containからcoverにすると、枠内に綺麗に収まります（お好みで） */
  }

  /* ★ スマホ時のテキストコンテナ */
  .card-content {
    width: 75%;          /* 残りの幅を割り当てる */
  }

  /* 1つ目・2つ目・3つ目の文章のサイズ設定をリセット */
  .text-first,
  .text-second,
  .text-third {
    width: 100% !important;
    height: auto !important;
    min-height: auto;    /* 40pxだと文字が少ないときに隙間ができるため、autoがおすすめ */
  }

  /* ★ 横並びのときは、見出し（文言）を左寄せにした方が綺麗に見えます */
  .text-first {
    justify-content: center;
    text-align: center;
    font-size: 16px;     /* スマホ用に少し小さく調整 */
    line-height: 1.4;
  }

  /* 2つ目と3つ目の文章の左余白をスマホ用に調整 */
  .text-second,
  .text-third {
    padding-left: 0;
    line-height: 1.5;    /* スマホで読みやすい行間に調整 */
  }
}
@media (max-width: 768px) {
  .title-box {
    height: auto;          /* 高さを固定から自動に変更 */
    line-height: 1.5;      /* 2行になったときの行間を適切に設定 */
    padding-top: 15px;     /* 上下の余白を調整 */
    padding-bottom: 15px;
    padding-right: 15px;   /* 右側もはみ出さないようにガード */
  }
}

.notice_header {
    display: flex;
    align-items: center;
    /* PC側も固定値を外し、最低限の高さ（アイコンと揃える用）にするのが安全です */
    min-height: 47px;
}
.notice_header .notice_icon {
    width: 47px;
    height: 47px;
    background: #AA8320;
    flex-shrink: 0; /* アイコンが潰れるのを防ぐ */
}
.notice_header .notice_title {
	  width: 100%;
/*       height: 50px;
 */
      /* 【注意】背景と文字が同色だと見えないので、文字色を白にしています */
      /* 背景をグレーにするなら：background: rgba(50, 50, 50, 1); color: #fff; */
/*       background: rgba(242, 242, 239, 1);
 */
      /* 文字のスタイル */
      font-family: "Noto Sans JP", sans-serif;
      font-size: 20px;
      font-weight: 700;
/*       line-height: 50px; 高さ50pxに合わせて中央寄せ
      letter-spacing: 1.4px;
      text-align: left;
      padding-left: 15px; 文字が左端に張り付かないための余白
      box-sizing: border-box;

      margin: 1.5px auto; 上下中央に配置するためのマージン

      margin-bottom: 32px;
 */


/*     font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 0.3px;
 */    height: 47px;
    line-height: 47px;
    background: #F2F2EF;
    padding: 0 30px 0 21px;
    box-sizing: border-box;
}
@media (max-width: 768px) {
    .notice_header {
        display: flex;
        /* 【重要】flex-start から stretch（初期値）に戻す、または記述を消す */
        align-items: stretch;
        height: auto;
    }

    .notice_header .notice_icon {
        width: 32px;
        /* 【重要】height の固定値を消す（これでタイトルの高さと同期します） */
        height: auto;
        flex-shrink: 0;
        background: #AA8320;
    }

    .notice_header .notice_title {
        width: 100%;
/*         font-size: 1.6rem;
        letter-spacing: 0.5px;
 */     height: auto;
        line-height: 1.5;
        padding: 10px 12px;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
	.step-flow-container {
	  align-items: left;
	  justify-content: left;
	  gap: 0;
	}
 	.step-box {
      margin: 3px;
	}
}
/* スマホ表示（768px以下）のスタイル */
@media (max-width: 768px) {
  /* 説明文行（desc-row）の時だけ縦線（擬似要素）を消す */
/*   .step-text-container.desc-row::after {
    display: none;
  }
 */
  .step-text-container::after {
	display: none;
  }

  /* 説明文行の左側の幅を完全に無くす */
  .desc-row .left-heading {
    width: 0;
    height: 0; /* 高さも0にして余計な隙間を排除 */
  }

  /* 右側コンテンツの横幅をパディングも含めて最適化 */
  .desc-row .right-content2 {
    width: 100%; /* 横幅いっぱいに広げる */
  }

  /* 説明文の内側の左余白（padding）が気になる場合はここで微調整 */
  .desc-row .incontentsx-text1 {
    padding-left: 0; /* 左側の縦線が消えるため、余白を0にしてさらに左に寄せます */
  }
}
@media (max-width: 768px) {
    .step-text {
      font-size: 19px;
    }

    .step-badge {
      height: 21px;
      font-size: 14px;
    }


    /* 中央下段：情報入力 */
    .step-under-text {
      width: 90px;
      height: 31px;
      font-size: 14px;
    }

 	.step-box {
	width: 93px;
  	height: 91px;
	margin: 3px;
	}

}
.top_sub_space1 {
	margin-top:16px;
}
.top_space1 {
	margin-top:32px;
}
.top_space2 {
	margin-top:64px;
}
