/* ========== リセット ========== */

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
div,
p,
figure,
blockquote,
dl,
dd,
ul,
li {
  margin: 0;
  padding: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ========== 基本設定 ========== */

html {
  font-size: 62.5%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 90px;
  font-size: 1.0rem;
}

body {
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Kaku Gothic Pro",
    "Meiryo",
    "MS PGothic",
    "Noto Sans JP",
    sans-serif;
}

h4 {
  font-size: 1.4rem;
  font-weight: normal;
}

p {
  font-size: 1.2rem; /* font-size: 12px と同等 */
}

a {
  color: #0071db;
}

/* ========== ユーティリティ ========== */

.w20px {
  width: 20px;
}

.w40px {
  width: 40px;
}

.w60px {
  width: 60px;
}

.w80px {
  width: 80px;
}

.w70 {
  width: 70%;
}

.w80 {
  width: 80%;
}

.w96 {
  width: 96%;
}

.w100 {
  width: 100%;
}

.mb5 {
  margin-bottom: 5px;
}

.mb10 {
  margin-bottom: 10px;
}

.mb30 {
  margin-bottom: 30px;
}

.mb50 {
  margin-bottom: 50px;
}

.pt20 {
  padding-top: 20px !important;
}

.text-center {
  text-align: center;
}

.text-bold {
  font-weight: bold;
}
.text-blue{
	color:#457abe;
	font-size: 1.2em;
}
.hidden {
  display: none;
}

.br-sp {
  display: none;
}

/* ========== ヘッダー ========== */

.header {
  position: fixed;
  z-index: 1000;
  top: 0;
  transition: transform 0.3s ease;
  /* 高さ分、下のコンテンツが隠れないように
     body に padding-top を足すのを忘れずに */
  background: #fff;
  inset-inline: 0; /* 左右0（left:0; right:0; のショートハンド） */
}

/* 隠すとき：上にスライドして見えなくする */
.header.is-hidden {
  transform: translateY(-100%);
}

.header_top {
  display: flex;
  justify-content: flex-end;
  padding: 6px;
  background-color: #2C8744;
  color: #ffffff;
}

.nav_img img {
  width: 240px;
}

.header_link {
  margin-top: 6px;
  margin-right: 10px;
}

.header_link a {
  color: #ffffff;
}

.font-size-switcher {
  margin-right: 20px;
}

.size-button {
  display: inline-block;
  width: 40px;
  padding: 11px;
  border: 1px solid #999;
  background-color: #fff;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

.size-button:hover,
.size-button.active {
  background-color: #AE2823;
  color: #fff;
}

.header_nav {
  background-color: #ffffff;
  font-size: 1.2rem;
}

.nav_list_top {
  margin: 10px 0 0 10px;
  float: left;
  list-style: none;
}

.nav_list {
  display: flex;
  padding: 14px 10px 10px;
  list-style: none;
}

.nav_item {
  margin-right: 20px;
  list-style: none;
}
.tittle_link a{
	color: #000;
	text-decoration: none;
}
/*.nav_list li:nth-child(2){margin-left: auto;}*/

/* ========== ハンバーガーメニュー ========== */

/* ハンバーガーボタンの見た目 */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 59px;
  height: 58px;
  margin: 4px;
  margin-left: auto; /* 必要なら右寄せ */
  padding: 0;
  float: right;
  border: none;
  border: #888888 1px solid;
  border-radius: 10px;
  background: none;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 40px;
  height: 3px;
  background-color: #333;
}

/* モバイル時：メニューは最初非表示 */
.header_nav {
  display: none;
  background: #fff;
}

.header_nav .nav_list {
  margin: 0;
  padding: 10px 16px 10px;
	float: right;
  list-style: none;
}

.header_nav .nav_item,
.header_nav .nav_img {
  margin: 30px 0;
}

/* 開いたとき */
.header_nav.is-open {
  display: block;
}

.hamburger {
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 8px; /* 位置はお好みで */
}

/* 線の初期位置（上・中・下） */
.hamburger span:nth-child(1) {
  top: 12px;
}

.hamburger span:nth-child(2) {
  top: 26px;
}

.hamburger span:nth-child(3) {
  top: 40px;
}

/* ▼ メニューOPEN時（.is-active）で×に変形 */
.hamburger.is-active span:nth-child(1) {
  top: 28px;
  transform: rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
  opacity: 0; /* 真ん中は消す */
}

.hamburger.is-active span:nth-child(3) {
  top: 28px;
  transform: rotate(-45deg);
}

/* ========== メイン・セクション構造 ========== */

main {
  flex: 1;
  padding-bottom: 80px;
}

.section_inner {
  /*	width: 100%;*/
  max-width: 1000px;
  margin: 0 auto;
  padding: 50px;
  background: #FFFFFF;
}

.section_inner p {
  padding: 6px;
}

.section_inner .link {
  text-align: center;
}

.section_text {
  line-height: 180%;
}

h2.main_title {
  margin: 30px 0;
  border-radius: 40px;
  background-color: #2C8744;
  color: #ffffff;
  font-size: 2.3rem;
  text-align: center;
}

/* ========== フッター ========== */

.footer {
  padding: 6px;
  background-color: #2C8744;
  color: #ffffff;
}

.footer_inner {
  display: flow-root;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.footer_link {
  margin-bottom: 60px;
  line-height: 100%;
  text-align: center;
}

.footer a {
  color: #ffffff;
}

.footer_info {
  /* float: left; バナー有効化時に追加 */
  text-align: center; /* バナー有効化時に削除 */
}

.footer_banner {
  display: none; /* バナー有効化時に削除 */
  float: right;
}

/* ========== パンくずリスト ========== */

.breadcrumbs {
  margin-bottom: 50px;
}

.breadcrumbs p {
  font-size: 1.0em;
}

/* ========== ヒーロー（トップページ） ========== */

.hero {
  width: 100%;
  background: url("../img/main_bg.jpg") center / cover;
}

.hero_inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 0;
}

.hero_inner img {
  width: 100%;
}

h2.top_title {
  margin: 80px 60px 20px;
  color: #2C8744;
  font-size: 2.2rem;
  text-align: center;
}

/* ========== トップページ「ACPとは」セクション ========== */

.main_top .section_about .section_inner {
  background-image: url(../img/bird1.jpg), url(../img/bird2.jpg);
  background-repeat: no-repeat;
  background-position: 0px 60px, right bottom;
}

.main_top .section_about .link {
  margin-top: 20px;
}

.main_top .section_about .link a {
  padding: 10px 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 30px;
  background-color: #2C8744;
  color: #ffffff;
  font-size: 1.2em;
  text-decoration: none;
}

.main_top .section_about .link :hover {
  background: #85D583;
}

/* ========== 冊子紹介（読んでみる・書いてみる） ========== */

.books {
  display: flex;
  justify-content: space-around;
}

.section_read .link {
  width: 400px;
  padding: 40px 30px 40px 120px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 10px;
  background-color: #fae457;
  font-size: 1.5em;
}

.section_write .link {
  width: 400px;
  padding: 40px 50px 40px 100px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 10px;
  background-color: #fae457;
  font-size: 1.5em;
}

.section_read .link:hover,
.section_write .link:hover {
  transform: translateY(-3px);
  background: #FC5A24;
}

.section_read .books a,
.section_write .books a {
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.section_write .link {
  margin: 10px auto;
}

.section_read .link img {
  position: absolute;
  top: 16px;
  left: 30px;
  width: 80px;
}

.section_write .link img {
  position: absolute;
  top: 16px;
  left: 70px;
  width: 80px;
}

.books .text-center .link {
  position: relative;
}

/* ========== PDFアコーディオン ========== */

.accordion .toggle {
  display: none;
}

.accordion .Label { /* タイトル */
  display: block;
  width: 400px;
  margin: 30px auto 10px auto;
  padding: 20px;
  border: 3px solid #fae457;
  border-radius: 10px;
  color: #000;
  font-size: 1.2rem;
  text-align: center;
  cursor: pointer;
}

.accordion .Label::before { /* タイトル横の矢印 */
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  right: 20px;
  width: 6px;
  height: 6px;
  -webkit-transform: rotate(45deg);
  transform: rotate(135deg);
  border-top: 2px solid #000;
  border-right: 2px solid #000;
}

.accordion .Label,
.accordion .acc_content {
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: all 0.3s;
}

.accordion .acc_content { /* 本文 */
  width: 80%;
  height: 0;
  margin: 0 auto 10px auto;
  margin-bottom: 10px;
  padding: 0 20px;
  overflow: hidden;
  background: #fff8e6;
  font-size: 1.2em;
  line-height: 200%;
}

.accordion .acc_content ul {
  margin-left: 30px;
}

.pdf-list__all {
  margin-bottom: 10px;
}

.pdf-list__section {
  margin-left: 20px;
}

.accordion .toggle:checked + .Label + .acc_content { /* 開閉時 */
  height: auto;
  padding: 20px;
  transition: all .3s;
}

.toggle:checked + .Label::before {
  transform: rotate(-45deg) !important;
}

/* ========== トピックス一覧 ========== */

/* トップページお知らせ欄 */
.news-list {
  display: grid;
  grid-template-columns: 8em 1fr; /* 日付 / 本文 */
}

.news-list dt,
.news-list dd {
  min-width: 0; /* gridアイテムの長文はみ出し防止 */
  padding: 10px 0;
  border-bottom: 1px solid #ccc; /* これが「横一直線」に見える */
  overflow-wrap: break-word;
  font-size: 1.2em;
}

.news-list dd pre {
  white-space: pre-wrap;
}

.news-list dt {
  margin-top: 6px;
  padding-right: 1em;
}

.text_box {
  padding: 30px 40px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0px 0px 15px -5px #777777;
}
.main_info h4{
	margin-top: 20px;
	font-size: 1.2em;
	font-weight: bold;
}

.info-tittle {
  font-weight: bold;
  font-weight: 1.6em;
}

#top-topics-container .topics-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

#top-topics-container .topics-body > * {
  display: block;
  padding: 0;
}

.past-info {
  text-align: right;
}

.past-info a {
  color: #707070;
}

/* "topics-file" のクラス名が当たっている場合にファイルのアイコンを表示する */
.topics-file::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 25px;
  margin-right: 5px;
  background-image: url('/icon/metrotokyo_icon_doc.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
}

/* ========== トップページ：お知らせ ========== */

.section_info h3, .section_link h3{
  margin-top: 0;
  margin-bottom: 10px;
  border-bottom: 1px solid #2C8744;
  color: #2C8744;
  font-size: 1.6em;
}
.section_info .text_box{
	margin-bottom: 40px;
}
.form-list ul {
  margin-bottom: 1.5em;
  padding-left: 2.5em;
  font-size: 1.2em;
}
.curriculum-list ul {
  padding-left: 1.5em;
  font-size: 1.2em;
  list-style: none;
}
.curriculum-list ul li {
  margin-bottom: 0.8em;
}

/* ========== トップページ：関連リンク ========== */

.links-box .text_box{
	margin-bottom: 30px;
}
.links-box ul{
	display: flex;
	flex-wrap:wrap;
	gap:20px 30px;
}
.links-box ul li{
	font-size: 1.2em;
	list-style: none;
}
.links-box .text_box p {
  line-height: 180%;
}

/* ========== トップページ：配送のお申し込み ========== */

.delivery{margin: 40px 0;
padding: 20px;
border-radius: 10px;
background: #F1F1F1;}
.delivery h3{font-size: 1.4em;}
.delivery span{font-weight: normal;}

.delivery ul{
  margin: 20px 0 0 20px;
  padding: 0;
  list-style: none;;
}

.delivery li {
  margin-bottom: 0.5em;
	font-size: 1.2em;
}

.delivery a {
  display: inline-block;
	color: #00619e;

}

.delivery li::before {
  content: "＞";
  margin-right: 0.5em;

}

.entry-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry-links-wrapper ul {
  padding: 0;
  list-style: none;
}

.entry-links li,
.entry-links-wrapper li {
  position: relative;
  margin-bottom: 0.5em;
  padding-left: 1.4em; /* ＞のぶん左に余白を確保 */
}

.entry-links li::before,
.entry-links-wrapper li::before {
  content: "＞";
  position: absolute;
  top: 0.1em;        /* お好みで微調整 */
  left: 0;
}

.entry-links a,
.entry-links-wrapper a {
  text-decoration: none;
}

/* ========== about・policy・sitemap・topicsページ固有 ========== */

.main_about .section_about img {
  width: 100%;
}

/* about サイトポリシー サイトマップページ */
.main_about h1,
.main_policy h1,
.main_sitemap h1,
.main_topics h1{
  padding: 30px 0 70px 0;
  font-size: 2.5em;
  text-align: center;
}

.main_policy h3{
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid #2C8744;
  color: #2C8744;
  font-size: 1.6em;
}

.policy_content {
  margin-bottom: 80px;
}

.policy_content li {
  margin-bottom: 10px;
  margin-left: 40px;
  font-size: 1.2em;
}

.main_sitemap h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 1px solid #2C8744;
  color: #2C8744;
  font-size: 1.6em;
}

.main_sitemap h3 {
  margin: 20px 0 4px 20px;
  font-size: 1.3em;
  font-weight: normal;
}

.main_sitemap ul {
  margin-bottom: 50px;
}

.main_sitemap li {
  margin-left: 30px;
  font-size: 1.2em;
  line-height: 200%;
}

/* ========== 書き込みページ共通 ========== */

.section_write .section_inner {
  border-radius: 20px;
  background: #ffffff;
}

/* 書き込み編ページ */
.main_write {
  padding-top: 70px;
  background-color: #8599de;
  background-image:
    radial-gradient(#7381c2 14%, transparent 15.5%),
    radial-gradient(#7381c2 14%, transparent 15.5%);
  background-position: 0 0, 22px 22px;
  background-size: 44px 44px;
}

.main_write .section_inner {
  max-width: 1000px;
  padding: 50px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: 0px 0px 15px -5px #777777;
}

.main_write h1 {
  padding: 60px 0 70px 0;
  font-size: 2.8em;
  text-align: center;
}

.main_write.step2 h1 {
  padding-top: 30px;
  padding-left: 35%;
  text-align: left;
}

.main_write.step3 h1 {
  padding-top: 30px;
  padding-left: 30%;
  text-align: left;
}

.main_write ul {
  padding: 20px;
}

.main_write li {
  margin-bottom: 10px;
  margin-left: 30px;
  font-size: 1.2em;
}

.main_write .write_info {
  margin-bottom: 60px;
}

.main_write .write_info h2 {
  margin-bottom: 20px;
  padding: 10px;
  padding-left: 30px;
  border-radius: 60px;
  background: #457abe;
  color: #fff;
}

.main_write .write_info img {
  width: 100%;
}

.write_top img {
  position: absolute;
}

/* ========== ステップフロー ========== */

.steps p {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  background: #a7a7a7;
  color: #ffffff;
}

.step-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 80%;
  margin: 10px auto 30px;
}

.step-flow a {
  text-decoration: none;
}

/* 丸いSTEPバッジを包む要素（真ん中寄せ用） */
.step-flow__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 丸いバッジ本体 */
.step-flow__label_on {
  display: inline-flex;
  flex-direction: column; /* STEP → 数字 を縦並び */
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0f72b5;
  color: #fff;
}

.step-flow__label {
  display: inline-flex;
  flex-direction: column; /* STEP → 数字 を縦並び */
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #757575;
  color: #fff;
}

/* 「STEP」部分（小さめ） */
.step-flow__label-step {
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* 数字部分（大きめ） */
.step-flow__label-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

/* 円と円の間の横線（ハイフン的なパーツ） */
.step-flow__connector {
  flex: 1; /* 余白いっぱいに伸びる */
  height: 2px;
  background: #ccc; /* 線の色 */
}

/* ========== リボン装飾 ========== */

/* H2の帯装飾 */
.ribbon-wrap {
  text-align: center; /* リボンを中央寄せしたい場合（任意） */
}

.ribbon {
  display: inline-block; /* ここがポイント：テキスト幅に合わせて縮む */
  position: relative;
  margin: 40px 0 25px;
  background: #d56aa9;
  font-size: 1.4em;
}

.ribbon-long {
  height: auto;
}

.ribbon-long .ribbon__text {
  display: block;
  padding: 10px;
  line-height: 130%;
}

.ribbon-long span {
  font-size: 0.8em;
}

/* 三角形部分（h2 につける） */
.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
}

/* 左側：背景色（白など）で「削る」 */
.ribbon::before {
  left: 0;
  border-left: 25px solid #fff; /* ページの背景色に合わせる */
}

/* 右側 */
.ribbon::after {
  right: 0;
  border-right: 25px solid #fff; /* ページの背景色に合わせる */
}

/* テキスト部分 */
.ribbon__text {
  display: inline-block;
  padding: 0 40px;   /* 左右の余白（リボンの長さ調整） */
  color: #fff;
  font-weight: bold;
  line-height: 50px; /* 高さと合わせて縦中央に */
  /*	font-size: 1.1em;*/
}

.ribbon-bg {
  margin-bottom: 20px;
  padding: 4px 20px;
  background: url("../img/ribbon.jpg")
    center / 100% 100% no-repeat;
}

.ribbon2 {
  display: inline-block; /* ここがポイント：テキスト幅に合わせて縮む */
  position: relative;
  width: 100%;
  margin: 40px 0 25px;
  background: #d56aa9;
}

.ribbon2::before,
.ribbon2::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 35px solid transparent;
  border-bottom: 35px solid transparent;
}

/* 左側：背景色（白など）で「削る」 */
.ribbon2::before {
  left: 0;
  border-left: 35px solid #fff; /* ページの背景色に合わせる */
}

/* 右側 */
.ribbon2::after {
  right: 0;
  border-right: 35px solid #fff; /* ページの背景色に合わせる */
}

/* ========== 確認テーブル（step6） ========== */

table.base_table {
  width: 100%;
  margin-bottom: 10px;
  border-collapse: collapse;
  border: 1px solid #878787;
  font-size: 1.2em;
}

table.base_table th,
table.base_table td {
  padding: 10px;
  border: 1px solid #878787;
}

table.base_table th {
  background: #dedeef;
  font-weight: normal;
}

table.base_table .short {
  width: 10%;
}

table.base_table caption {
  margin: 10px 0;
  border-bottom: 2px solid #000000;
  font-size: 1.2em;
  text-align: left;
}

/* ========== フォームテーブル（step4・step5） ========== */

.form-table {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid #878787;
  font-size: 1.2em;
}

.form-row {
  display: flex;
}

.form-row + .form-row {
  border-top: 1px solid #878787;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30%;
  padding: 10px;
  border-right: 1px solid #878787;
  background: #dedeef;
  font-weight: normal;
}

.form-input {
  flex: 1;
  padding: 10px;
}

.form-caption {
  margin: 10px 0;
  border-bottom: 2px solid #000000;
  font-size: 1.44em;
  font-weight: normal;
  text-align: left;
}

/* ========== フォーム入力要素 ========== */

.form-group {
  display: flex;
  align-items: center;
}

.form-field {
  margin: 2px 0;
  padding: 5px;
  border: 1px solid #999999;
  border-radius: 6px;
  background: #FFFFFF;
  color: #333333;
  font-size: 1.1em;
}

/* STEP3「伝えた時期」の日付入力欄 - 「伝えた方の氏名」入力欄とサイズを揃える */
.form-field--notified-date {
  padding: 3px 5px;
}

.form-field.text5 {
  width: calc(100% - 7em);
}

.w-full-flex {
  flex: 1;
}

.form-field.character2 {
  width: 2em;
}

.form-field.character3 {
  width: 3em;
}

.form-field.character4 {
  width: 4em;
}

.form-field.character10 {
  width: 10em;
  max-width: 100%;
}

.form-field.character20 {
  width: 20em;
  max-width: 100%;
}

.form-field.character30 {
  width: 30em;
  max-width: 100%;
}

.form-field.character70 {
  width: 70em;
  max-width: 100%;
}

/* ========== セレクトボックス（step4：生年月日） ========== */

.selectbox-2 {
  display: inline-block;
  position: relative;
}

.selectbox-2::before,
.selectbox-2::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.selectbox-2::before {
  content: '';
  display: inline-block;
  right: 0;
  width: 2.8em;
  height: 2em;
  border-radius: 0 10px 10px 0;
  background-color: #457abe;
}

.selectbox-2::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 1.4em;
  width: 6px;
  height: 6px;
  transform: translate(50%, -50%) rotate(45deg);
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
}

.selectbox-2 select {
  height: 2em;
  padding: .4em 3.6em .4em .8em;
  border-radius: 10px;
  color: #333333;
  font-size: 1em;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.selectbox-2 select:focus {
  outline: 1px solid #104CA8;
}

/* STEP4の生年月日の行を上下中央揃えにする */
.v-middle {
  vertical-align: middle;
}

/* ========== ラジオボタン（step5：初めて/2回目以降） ========== */

.radioItem {
  display: inline-flex;
  align-items: center;
  column-gap: 6px;
  line-height: 1;
  cursor: pointer;
}

.radioItem:not(:last-of-type) {
  margin-right: 20px;
}

.radioButton {
  appearance: none;
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid #06b6d4;
  border-radius: 9999px;
  cursor: pointer;
}

.radioButton:checked::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: auto;
  border-radius: 9999px;
  background-color: #06b6d4;
}

/* ========== テキストエリア・文字数カウンター（step1〜step3） ========== */

.js-count-textarea {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1.2em;
}

/* フォーカス時の枠線 */
.js-count-textarea:focus {
  border-color: #0f72b5;
  outline: none;
  box-shadow: 0 0 0 2px rgba(15, 114, 181, 0.15);
}

/* placeholder の薄い文字 */
.js-count-textarea::placeholder {
  color: #aaa;
}

.char-counter {
  float: left;
  color: #666;
  font-size: 1.0em;
  text-align: left;
}

/* 制限超過時の色（おまけ用） */
.char-counter--over {
  color: #c0392b;
  font-weight: 600;
}

/* ========== 入力エリア ========== */

/* 入力欄 */
.write_content form {
  margin-bottom: 100px;
}

.write_content form::after {
  content: "";
  display: block;
  clear: both;
}

.remarks-heading {
  display: block;
  font-size: 1.2rem;
}

.first_time {
  margin-bottom: 30px;
}

.first_time p {
  font-size: 1.4em;
}

/* ========== 保存・コピーボタン ========== */

.btn-save,
.btn-copy {
  display: block;
  margin-bottom: 30px;
  padding: 12px 20px;
  float: right;
  border: none;
  border-radius: 8px;
  background: #FCCB50;
  color: #000;
  font-size: 1.0em;
  cursor: pointer;
}

.btn-save:hover,
.btn-copy:hover {
  opacity: 0.9;
}

p.save-info {
  margin-top: 30px;
  padding: 30px;
  clear: both;
  border: #e08f25 3px solid;
  border-radius: 20px;
}

p.save-info span {
  font-weight: bold;
}

/* ========== ナビゲーションボタン ========== */

.form-actions {
  display: flex;
  justify-content: space-between;
}

.form-actions .btn {
  display: inline-block;
  padding: 40px 20px;
  border-radius: 24px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

/* メインボタン */
.form-actions .btn--primary {
  width: 300px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  background: #457abe;
  color: #fff;
  text-align: center;
}

.form-actions .btn--primary:hover {
  transform: translateY(-3px);
  background: #89B0E1;
}

/* サブボタン（戻る） */
.form-actions .btn--sub {
  width: 160px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  background: #cf68a1;
  color: #fff;
  text-align: center;
}

.form-actions .btn--sub:hover {
  transform: translateY(-3px);
  background: #DC98BD;
}

/* button と a の見た目を揃える */
.form-actions button.btn {
  border: none;
}

/* ========== STEP4・STEP5・確認ページ固有 ========== */

.you .form-table,
.confirmation table.base_table {
  margin-bottom: 30px;
}

.repeat .form-label {
  width: 50%;
}

.confirmation table.base_table th {
  width: 30%;
}

.confirmation .base_table {
  width: 90%;
  margin: 20px 5%;
}

.form-actions .btn--primary.make_pdf {
  width: 360px;
}

.selector {
  overflow-wrap: break-word;
}

/* ========== ダイアログ ========== */

/* モーダル本体（共通） */
dialog.modal {
  width: calc(100% - 40px); /* スマホで左右に少し余白 */
  max-width: 360px;
  padding: 20px 24px;
  border: none;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}

/* 背景（オーバーレイ） */
dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.35);
}

/* モーダル内のテキスト */
dialog.modal p {
  margin: 0 0 16px;
}

/* ボタンを中央に横並びに */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px; /* ボタンの間隔少し広めに */
  margin-top: 16px;
}

/* モーダル内の汎用ボタンスタイル */
dialog.modal button {
  min-width: 96px;
  padding: 8px 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-size: 1.6em;
  cursor: pointer;
}

/* フォーカスリング（キーボード操作用） */
dialog.modal button:focus-visible {
  outline: 2px solid #005bac; /* 青系のアクセントカラー例 */
  outline-offset: 2px;
}

/* ホバー時の少しだけ濃い変化 */
dialog.modal button:hover {
  background-color: #f5f5f5;
}

/* メインアクション（「はい」など）用 */
dialog.modal button.primary {
  border-color: #005bac;
  background-color: #005bac; /* メインカラーに合わせて調整 */
  color: #fff;
}

dialog.modal button.primary:hover {
  background-color: #004a8d;
}

/* ========== 確認ページ：入力内容表示（step6） ========== */

.confirmation_content {
  margin-bottom: 40px;
  border: 2px solid #457abe;
  border-radius: 10px;
}

.confirmation_content h2 {
	padding-right: 20px;
  padding-left: 20px;
  background: #457abe;
  color: #ffffff;
  font-size: 1.8em;
}

.confirmation_content h3 {
  margin: 20px 20px 0px 20px;
  border-bottom: 1px solid #000000;
  font-size: 1.4em;
  font-weight: normal;
}

.confirmation_content p {
  padding: 20px 20px 30px 20px;
  overflow-wrap: break-word;
}

.confirmation_content .correct {
  text-align: right;
}

.confirmation_content .correct a {
  padding: 10px 20px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border-radius: 30px;
  background-color: #757575;
  color: #ffffff;
  font-size: 1.2em;
  text-decoration: none;
}

.confirmation_content .correct a:hover {
  transform: translateY(-3px);
  background: #ADADAD;
}

.confirmation_info {
  padding: 30px 30px 60px 30px;
  font-weight: bold;
  line-height: 220%;
}

/* ========== 注意事項（step6・完了ページ） ========== */

.attention {
  margin-bottom: 20px;
  padding: 20px;
  clear: both;
  border: 4px solid #DD234C;
  border-radius: 10px;
}

.attention_top {
  color: #DD234C;
  font-size: 1.6em;
  font-weight: bold;
}

.last_attention {
  margin-bottom: 70px;
  color: #FF0000;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;
}

.attention_info {
  margin-bottom: 60px;
  font-weight: bold;
}

/* ========== チェックボックス確認（step6） ========== */

.check-wrap {
  display: flex;
  align-items: center;
	justify-content: center;
	margin-bottom: 50px;
	padding: 10px;
	background: #FFD2D3;
  font-size: 1.4em; /* 文字も少し大きめ */
  cursor: pointer;
  user-select: none;
  gap: 10px;

}

.check-wrap input {
  display: none; /* 本来のチェックボックスは非表示 */
}

.check-wrap .checkmark {
  position: relative;
  width: 28px;
  height: 28px;
  transition: 0.2s;
  border: 2px solid #444;
  border-radius: 4px;
  background: #fff;
}

/* チェックされたら色を付ける（フラットデザイン） */
.check-wrap input:checked + .checkmark {
  border-color: #0078ff;
  background: #0078ff;
}

/* チェックマーク（✔）をCSSで描画 */
.check-wrap .checkmark::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 9px;
  width: 8px;
  height: 16px;
  transform: rotate(45deg);
  transition: 0.2s;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  opacity: 0;
}

/* チェックされている時だけ表示 */
.check-wrap input:checked + .checkmark::after {
  opacity: 1;
}

/* ========== PDF作成ボタン・確認ボタン（step6） ========== */

.make-banner {
    display: inline-block;
	width: 360px;
	margin-bottom: 20px;
    padding: 40px 20px;
    border-radius: 24px;
  background-color:#e64259;
  color: #fff;
    font-size: 1.2em;
    font-weight: bold;
	text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.make-banner.is-disabled {
  opacity: 0.5;
  pointer-events: none; /* マウスクリック無効にしたいなら */
}

.form-actions.confirmation_btn {
  justify-content: center;
}

.form-actions.confirmation_btn .btn--primary {
  background: #e64259;
}

/* ========== 完了ページ ========== */

.form-actions .btn.btn--mail, .form-actions .btn.btn--line {
  display: none;
}

.completed .form-actions {
  justify-content: center;
}

.completed .completed_last {
  margin: 60px 20px;
  font-size: 1.4em;
  text-align: center;
}

.completed .completed_last p {
  margin-top: 30px;
}

.download {
  margin: 20px 0;
  padding: 10px !important;
  border: #FFD077 1px solid;
  border-radius: 6px;
  background: #FFFEBF;
  word-break: break-all;
}

.copy {
  width: 200px;
  background: #FCCB50;
  color: #000000;
  text-align: center;
}

.form-actions .btn.btn--pdf {
  width: 32%;
  padding: 30px 10px;
  background: #e64259;
  color: #ffffff;
  text-align: center;
}

.form-actions .btn.btn--mail {
  width: 32%;
  padding: 30px 10px;
  background: #457abe;
  color: #ffffff;
  text-align: center;
}

.form-actions .btn.btn--line {
  width: 32%;
  padding: 30px 10px;
  background: #2C8744;
  color: #ffffff;
  text-align: center;
}

.btn--pdf span,
.btn--mail span,
.btn--line span {
  font-size: 0.7em;
}

/* ========== ローディングオーバーレイ（PDF生成時） ========== */

.loading-overlay {
  display: flex;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.loading-overlay__spinner {
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
  border: 4px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
}

.loading-overlay__text {
  margin-top: 16px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: bold;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== タブレット以下（1000px以下） ========== */

@media (max-width: 1000px) {
  .section_inner {
    padding: 50px 20px;
  }

  .main_top .section_about .section_inner {
    background-position: 20px 30px, calc(100% - 10px) bottom;
  }

  .main_write {
    padding: 30px 15px 30px 15px;
  }

  .main_write .section_inner {
    padding: 30px 10px;
  }

  .main_top .section_about .section_inner p {
    padding-bottom: 30px;
  }

  .links-box {
    display: block;
  }

  .links-box .text_box {
    width: 100%;
    margin-bottom: 30px;
  }

  .news-list {
    display: block;
  }

  .news-list dt {
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer_info,
  .footer_banner {
    float: none;
  }

  .form-height {
    height: 63px;
  }

  .form-height-105 {
    height: 105px;
  }
}

.footer_banner {
  margin-top: 20px;
  text-align: center;
}

/* ========== PC（横並びメニュー、960px以上） ========== */

/* PC幅以上で通常の横並びメニューに */
@media (min-width: 960px) {
  .hamburger {
    display: none;
  }

  .header_nav {
    display: block;
  }

  .header_nav .nav_list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px; /* お好みで */
  }

  .header_nav .nav_item,
  .header_nav .nav_img {
    margin: 0;
  }
}

/* ========== タブレット・スマートフォン（ハンバーガーメニュー、959px以下） ========== */

@media (max-width: 959px) {
  body {
    padding-top: 120px;
  }

  .header_nav .nav_img {
    margin: 0;
  }

  .header_nav .nav_item {
    margin: 60px 0;
  }

  .header_nav .nav_list {
    display: block;
    float: none;
  }

  .nav_item {
    display: block;
    width: 100%;
    font-size: 1.4em;
    text-align: center;
  }

  .nav_img img {
    margin-top: 10px;
  }


  .write_top img {
    display: block;
    position: relative;
    width: 220px;
    margin: 0 auto;
  }

  .main_write.step2 h1,
  .main_write.step3 h1 {
    padding-left: 0;
    text-align: center;
  }
}

/* ========== スマートフォン（700px以下） ========== */

@media (max-width: 700px) {
  p {
    font-size: 1.1rem;
  }

  .form-list ul,
  .curriculum-list ul {
    font-size: 1.1rem;
  }

  .main_about h1,
  .main_policy h1,
  .main_sitemap h1,
.main_topics h1{
    padding: 30px 0 30px 0;
    font-size: 1.8em;
  }

  .main_write h1 {
    padding: 30px 0 60px 0;
    font-size: 1.8em;
  }

  h2.top_title {
    margin: 80px 20px 20px;
    font-size: 1.6rem;
    text-align: center;
  }

  h2.main_title {
    font-size: 1.6rem;
  }

  .breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.8em;
  }

  .br-sp {
    display: inline;
  }

  .links-box h3 {
    font-size: 1.4em;
  }

  .main_top .section_about .link a {
    padding: 10px;
    border-radius: 30px;
    font-size: 1.0em;
  }

  .header_top {
    justify-content: space-between;
  }

  .header_link {
    margin-top: 0;
    font-size: 0.9em;
  }

  .font-size-switcher {
    margin-right: 10px;
    font-size: 0.8em;
    line-height: 50%;
  }

  .main_top .section_about .section_inner {
    background-position: 10px 10px, calc(100% - 10px) bottom;
  }
.links-box ul{
	gap:10px 30px;
}
.links-box ul li {
    font-size: 1.0em;
}

  .section_write .link,
  .section_read .link {
    width: 340px;
    padding: 30px 10px 30px 60px;
    font-size: 1.3em;
  }

  .section_read .link img {
    top: 18px;
    left: 20px;
    width: 60px;
  }

  .section_write .link img {
    top: 14px;
    left: 70px;
    width: 60px;
  }

  .accordion .Label {
    width: 340px;
    margin: 30px auto 10px auto;
    padding: 10px;
    font-size: 1.0rem;
    text-align: left;
    cursor: pointer;
  }

  .accordion .Label::before {
    right: 20px;
  }

  .accordion .acc_content {
    font-size: 1.1em;
  }

  .text_box {
    padding: 20px;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0px 0px 15px -5px #777777;
  }

  .accordion .acc_content {
    width: 100%;
  }

  .section_inner {
    padding: 30px 10px;
  }

  .main_write .write_info h2 {
    font-size: 1.3em;
  }

  .main_write li {
    margin-left: 20px;
    font-size: 1.1em;
  }

  .step-flow {
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
    gap: 6px;
  }

  .step-flow__connector {
    display: none;
  }

  .step-flow__label_on,
  .step-flow__label {
    width: 46px;
    height: 46px;
  }


  .ribbon {
    margin-bottom: 20px;
    padding: 4px 20px;
    background: url("../img/ribbon.jpg")
      center / 100% 100% no-repeat;
    font-size: 1.25em;
  }

  .ribbon::before,
  .ribbon::after {
    content: none;
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
    border-top: none;
    border-bottom: none;
  }

  .ribbon__text {
    padding: 0 10px;
    line-height: 140%;
  }

  p.save-info {
    margin-top: 30px;
    padding: 10px;
  }

  .write_content form {
    margin-bottom: 50px;
  }

  .form-actions .btn--primary {
    width: 196px;
    padding: 30px 2px;
  }

  .form-actions .btn--sub {
    width: 120px;
    padding: 30px 2px;
  }

  .confirmation_content h2 {
    font-size: 1.5em;
  }

  .confirmation_content h3 {
    font-size: 1.3em;
  }

  .confirmation_info {
    padding: 10px 10px 40px 10px;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-actions .btn.btn--pdf,
  .form-actions .btn.btn--mail,
  .form-actions .btn.btn--line {
    width: 80%;
    margin: 20px auto;
  }

  .confirmation table.base_table th,
  .confirmation table.base_table td {
    display: block;
    width: 100%;
  }

  .confirmation table.base_table th {
    border: none;
  }

  .confirmation table.base_table td {
    border: none;
    border-bottom: 1px solid #878787;
    text-align: center;
  }

  .confirmation table.base_table tr:last-child td:last-child {
    border-bottom: none;
  }

  .you .form-row,
  .repeat .form-row {
    flex-direction: column;
  }

  .you .form-row + .form-row,
  .repeat .form-row + .form-row {
    border-top: none;
  }

  .you .form-label,
  .repeat .form-label {
    width: 100%;
    border: none;
  }

  .you .form-input,
  .repeat .form-input {
    border-bottom: 1px solid #878787;
    text-align: center;
  }

  .you .form-row:last-child .form-input,
  .repeat .form-row:last-child .form-input {
    border-bottom: none;
  }

  .you .selectbox-2 select,
  .you .selectbox-2::before {
    margin: 8px;
  }

  .form-height,
  .form-height-105 {
    height: auto;
  }

  table.base_table,
  .form-table,
  .form-field {
    font-size: 1.0em;
  }

  .form-caption {
    font-size: 1.2em;
  }

  .first_time p {
    font-size: 1.2em;
  }

  .attention {
    padding: 10px;
  }

  .main_sitemap h2 {
    font-size: 1.3em;
  }

  .main_sitemap h3 {
    font-size: 1.2em;
  }

  .main_sitemap li {
    font-size: 1.1em;
  }
.completed .completed_last{margin:50px 2px;

	font-size: 1.4em}
.form-actions .btn.btn--mail, .form-actions .btn.btn--line{display: block;}

  .footer_link a {
    display: block;
  }

  .footer_info {
    font-size: 1.0em !important;
  }
}
