:root {

  /* くすみパステル（明度はあるけど彩度を落とす） */
  --blue: #aeb9e6;
  --blue-light: #f4f6fd;

  --purple: #d7b8df;
  --purple-light: #faf4fb;

  --green: #b8dec7;
  --green-light: #f3faf6;

  --pink: #e6b6c6;
  --pink-light: #fcf3f7;

  --orange: #e9c9a5;
  --orange-light: #fdf7f1;

  --turquoise: #b6dedc;
  --turquoise-light: #f3fbfb;

  --border: #e5e7ef;
  --text: #333;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.8;
  background:
		url(../common/images/top/bg_puzz_obi.svg) no-repeat center top -20px / 100% auto, 
		url(../common/images/top/bg_future_hito03.svg) no-repeat calc(50% + 570px) calc(50% - 550px) / 150px auto, 
		url(../common/images/top/bg_story_hito02.svg) no-repeat calc(50% - 650px) calc(50% + 250px) / 150px auto, 
		url(../common/images/top/bg_sns_hito01.svg) no-repeat calc(50% + 600px) calc(50% + 750px) / 150px auto, 
		url(../common/images/top/bg02.png)
	;
}


.main-wrapper {
  max-width: 1200px;   /* ← これが重要 */
  margin: 60px auto;
  padding: 0 20px;
}

.form-wrapper {
  max-width: 980px;    /* 画像のようなバランス */
  margin: 0 auto;
}

/* ===== セクション ===== */
.section {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 35px;
  background: white;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  position: relative;
}

/* タイトル帯 */
.section-title {
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 入力部分 */
.section-body {
  padding: 30px 28px;
}

.section-separator {
  height: 1px;
  background: #d2d6de;
  margin: 40px 0;
  width: 100%;
}

.section-label {
  width: 140px;
  font-weight: 700;
  font-size: 18px;
  padding-top: 12px;
  white-space: nowrap;
}

.section-divider {
  width: 2px;
  background: #444;
}

.section-row {
  display: flex;
  align-items: stretch;
  gap: 25px;
}

.section-form-row {
    display: flex;
    align-items: center;   /* ← 変更 */
    gap: 15px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
    white-space: nowrap;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* ===== 色分け（タイトルだけ色を効かせる） ===== */

.age .section-title { background: #ffd600; }
.age .section-body { background: #fff; }

.education .section-title { background: #ffd600; }
.education .section-body { background: #fff; }

.work .section-title { background: #ffd600; }
.work .section-body { background: #fff; }

.marriage .section-title { background: #ffd600; }
.marriage .section-body { background: #fff; }

.child .section-title { background: #ffd600; }
.child .section-body { background: #fff; }

.life .section-title { background: #ffd600; }
.life .section-body { background: #fff; }

/* ===== フォーム ===== */
select {
  padding: 13px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-size: 15px;
  background: white;
  transition: 0.2s;
}

select:focus {
  outline: none;
  border-color: #b0b8ff;
  box-shadow: 0 0 0 3px rgba(176,184,255,0.15);
}

/* ===== ボタン（主張しすぎない可愛い系） ===== */
button {
  width: 100%;
  padding: 17px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 18px;
  border: none;
  background: #46ad14;
  color: white;
  cursor: pointer;
  transition: 0.25s;	
}

button:hover {
  background: #0c7b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {

  .section-title {
    font-size: 16px;
  }

  .section-body {
    padding: 22px 18px;
  }

  select {
    font-size: 14px;
  }
}


.hero {
  text-align: center;
  margin-bottom: 50px;
	background: url(../common/images/top/bg_puzz_hito.svg) no-repeat center / contain;
	padding: 20px 0;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 10px;
	margin: 20px 0;
}
.hero h1 .en {
	font-family: "Oswald", sans-serif;
	font-size: 30px;
	font-weight: bold;
	line-height: 1;
	color: #f6ffe9;
}


.hero p {
  font-size: 16px;
  color: #333;
	font-weight: 600;
}

.section {
  border-radius: 26px;
  margin-bottom: 40px;
  background: white;
  box-shadow: 0 18px 35px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.title-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid rgba(0,0,0,0.3);
}

.edu-row {
  display: flex;
  align-items: stretch;
  gap: 25px;
}

.edu-label {
  width: 140px;
  font-weight: 700;
  font-size: 18px;
  padding-top: 12px;
  white-space: nowrap;
}

.edu-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.edu-form select {
  min-width: 100px;
}

.edu-separator {
  height: 2px;
  background: #444;
  margin: 35px 0;
}

.edu-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edu-form-row {
    display: flex;
    align-items: center;   /* ← 変更 */
    gap: 15px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

/* select */
.edu-form-row select {
    height: 52px;           /* 少し余裕持たせる */
    padding: 0 14px;
    box-sizing: border-box;
}

/* 歳からテキスト */
.edu-form-row span {
    display: grid;
    align-items: center;
    height: 52px;           /* ← selectと同じ高さ */
    white-space: nowrap;
}

/* 削除ボタン */
.remove-btn {
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 12px;
    background: #c8ccd6;   /* グレー寄り */
    color: #444;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.remove-btn:hover {
    background: #b5bac7;
}

.edu-form-row.with-border {
    border-top: 1px dashed #c8ccd6;
    padding-top: 18px;
    margin-top: 10px;
}

.add-btn {
    width: 96px;
    height: 46px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #333;
    color: #fff;
    border: none;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;

    cursor: pointer;
    transition: 0.2s;
}

.add-btn:hover {
    transform: scale(1.05);
}

.form-break {
  width: 100%;
  height: 0;
}

.education-extra {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.education-extra.open {
  opacity: 1;
  max-height: 2000px;
}

.more-toggle-outside {
  max-width: 820px;
  margin: -20px auto 40px 60px;   /* ← 上下余白を広めに */
  text-align: center;

  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;

  cursor: pointer;          /* ← ポインタ */
  user-select: none;

  display: flex;            /* 完全中央 */
  justify-content: center;
  align-items: center;

  transition: 0.2s;
  background: #fff;
  padding: 12px 24px;
  border-radius: 30px;
	
	border: 2px solid #d5d5d5;
	box-sizing: border-box;
}

.more-toggle-outside:hover {
  opacity: 0.7;
}

.edu-form-row input {
  height: 48px;                  /* selectと同じ高さ */
  min-width: 260px;

  border-radius: 14px;           /* 角丸統一 */
  border: 1px solid #d9d9e3;

  padding: 0 14px;
  box-sizing: border-box;

  font-size: 15px;
}

.extra-row.with-border {
  border-top: 1px dashed #d9d9e3;
  padding-top: 16px;
}




/* =========================
   WORK: section（枠）
========================= */
.section.work {
  margin-bottom: 40px; /* 枠の下に余白（トグルを置くスペース） */
}

/* =========================
   WORK: 「もっと詳しく入力する ▼」(section外)
========================= */
.work-toggle-outside {
  max-width: 820px;            /* 進学と同じバランス */
  margin: 22px auto 70px;      /* 上:枠との距離 / 下:次要素との距離 */
  text-align: center;

  display: flex;
  justify-content: center;
  align-items: center;

  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;

  cursor: pointer;
  user-select: none;

  line-height: 1;
}

/* ホバーで少しだけ反応（チカチカしない程度） */
.work-toggle-outside:hover {
  opacity: 0.75;
}

/* ▼/▲ の見た目微調整（必要なら） */
.work-toggle-outside .arrow {
  display: inline-block;
  margin-left: 10px;
  transform: translateY(1px);
}

/* =========================
   WORK: 開閉で表示する内側（中身は枠の中に出す場合）
   もし「開いた後の追加ブロック」を枠内に出すならこれ
========================= */
.work-extra {
  display: none;
}

.work-extra.open {
  display: block;
  margin-top: 26px;  /* 既存行との間 */
}

.work-toggle {
  text-align: center;
  margin-top: 30px;
  cursor: pointer;
  font-weight: bold;
}

.work-block.with-border {
  border-top: 1px dashed #d9d9e3;
  padding-top: 16px;
}

.marriage-extra {
  display: none;
}

.marriage-extra.open {
  display: block;
  margin-top: 26px;
}

.marriage .section-label {
  width: 170px;
}

.child-extra {
  display: none;
}

.child-extra.open {
  display: block;
  margin-top: 26px;
}

.child-birth-add-wrap {
  margin-left: 192px;
  margin-top: 12px;
}

.child-birth-add-wrap .add-btn {
  display: inline-flex;
}

.child-birth-block.with-border {
  border-top: 1px dashed #c8ccd6;
  padding-top: 18px;
  margin-top: 10px;
}

.child-nursing-add-wrap {
  margin-left: 192px;
  margin-top: 12px;
}

.child-nursing-add-wrap .add-btn {
  display: inline-flex;
}

.child-nursing-block.with-border {
  border-top: 1px dashed #c8ccd6;
  padding-top: 18px;
  margin-top: 10px;
}

.child-nursing-content {
  gap: 0;
}

.child-nursing-line {
  margin-bottom: 0;
}

.child-nursing-line.with-inner-border {
  border-top: 1px dashed #c8ccd6;
  padding-top: 18px;
  margin-top: 14px;
}

.child-nursing-content .remove-btn {
  margin-top: 16px;
  width: auto;
  min-width: 96px;
  align-self: flex-start;
}

.life-extra {
  display: none;
}

.life-extra.open {
  display: block;
  margin-top: 26px;
}

.life-money-input {
  min-width: 140px;
  width: 160px;
}

.life-house-container .edu-form-row.house-row {
  flex-wrap: wrap;
}

.house-place-line {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.life-house-container .edu-form-row.house-row .remove-btn {
  width: auto;
  min-width: 96px;
  padding: 10px 18px;
}

.target .section-title { background: #ffd600; }
.target .section-body { background: #fff; }

.target-input {
  width: 300px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 15px;
}

/* =========================
   Mobile Layout
========================= */
@media (max-width: 768px) {
body {
  background:url(../common/images/top/bg_puzz_obi.svg) no-repeat center top -20px / 237% auto, url(../common/images/top/bg02.png) ;
}
	
  .main-wrapper {
    margin: 24px auto;
    padding: 0 12px;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 30px;
  }
	.hero h1 .en {
		font-size: 20px;
	}

  .section-body {
    padding: 18px 14px;
  }

  .section-row,
  .edu-row {
    flex-direction: column;
    gap: 10px;
  }

  .section-label,
  .edu-label {
    width: 100%;
    padding-top: 0;
    white-space: normal;
    font-size: 16px;
  }

  .section-divider {
    width: 100%;
    height: 1px;
  }

  .section-content,
  .edu-content,
  .edu-form {
    width: 100%;
  }

  .section-form-row,
  .edu-form-row {
    flex-wrap: wrap;
    white-space: normal;
    gap: 10px;
  }

  .section-form-row span,
  .edu-form-row span {
    height: auto;
    white-space: nowrap;
  }

  select,
  .edu-form-row select,
  .section-form-row select,
  .edu-form-row input,
  .life-money-input,
  .target-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .remove-btn {
    width: auto;
    min-width: 90px;
  }

  .more-toggle-outside {
    margin: -8px auto 24px;
    width: calc(100% - 24px);
    max-width: none;
  }

  .child-birth-add-wrap,
  .child-nursing-add-wrap {
    margin-left: 0;
  }
}
