@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@300;400;500;700&display=swap');
/* CSS Document */


/* 全体のリセットと基本設定 */
body, ul, li, h1 {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-main {
    flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: flex-start;
}
#title2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}


.language-switch {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    white-space: nowrap; /* ← これを追加 */
}


.language-switch button {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    background-color: lightgray;
    color: black;
}

.language-switch button.active {
    background-color: royalblue;
    color: white;
}


/* タブレット用 (376px 以上 1024px 以下) */
@media screen and (min-width: 376px) and (max-width: 768px) {
    * {
        font-size: 12px;
    }
    .fixed-menu {
        flex-direction: row;
        align-items: center;
    }

    .language-switch {
        margin-top: 0;
    }

    #title2 h1 {
        font-size: 20px;
    }
}

/* PC用 (769px 以上) */
@media screen and (min-width: 769px) {
    * {
        font-size: 16px;
    }
    .fixed-menu {
        flex-direction: row;
        align-items: center;
    }

    .language-switch {
        margin-top: 0;
    }

    #title2 h1 {
        font-size: 28px;
    }
}

/* スマートフォン用 (375px 以下) */
@media screen and (max-width: 375px) {
    * {
        font-size: 10px;
    }
    .fixed-menu {
        flex-direction: column;
        align-items: center;
    }

    .language-switch {
        margin-top: 10px;
    }

    #title2 h1 {
        font-size: 17px;
    }
}

body {
    max-width: 1100px;
    margin: 0 auto; /* ← 横方向の中央揃え */
    padding: 2px 20px;
    font-size: 16px;
    color: #000;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center; /* ← 中央揃え */
}

header{
	width: 100%;
}

.fixed-menu {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    background: skyblue;
    padding: 2% 2%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 1100px; /* ← 追加 */
    margin: 0 auto;     /* ← 中央に配置 */
    top: 0;
    left: 0;          /* ← 追加 */
    right: 0;         /* ← 追加 */
    z-index: 1000;
	overflow-x: auto; /* ← 横スクロールを許可（必要に応じて） */
	 /* position: fixed; ← これが必要 */
}



   






.menu {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}



.image-link {
    display: inline-block;
    max-width: 270px;
    max-height: 45px;
    width: 100%; /* 画像の幅に合わせる */
    text-align: left; /* 左寄せにする */
}

.logo {
    width: 70%;
    height: auto;
    max-width: 100%;
    min-width: 150px;
	display: block;
}


  
	









.jp, .en {
	display: none;
  }
  
  .visible {
	display: block;
  }
	  




/* page1テーブルサイズ */
.page1_table {
	text-align: center;
	margin: 0 5%;
}




#topButton {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 15px 25px;
	background-color: #007BFF;
	color: white;
	border: none;
	border-radius: 50px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	cursor: pointer;
	font-size: 16px;
	transition: background-color 0.3s, box-shadow 0.3s;
	z-index: 2000;
}

#topButton:hover {
	background-color: #0056b3;
 	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}
		





th,
td {
	width: 10%; /* 各セルの幅を指定（調整可能） */
	padding: 1px; /* 余白を追加 */
	border: 1px solid #000; /* 枠線を追加 */
	text-align: left; /* テキストを左揃え */
	overflow-wrap: break-word;
}

tr {
	text-align: left;
	border: 1px solid #ddd;
	padding: 1px;
}

.center_2 {
	max-width: 100%;
	text-align: center;
	margin-top: 10px;
	margin-left: 5%;
	margin-right: 5%;
}

.input_area {
	display: flex;
	width: 100%;
	justify-content: center; /* 水平方向の中央揃え */
	align-items: center; /* 垂直方向の中央揃え */
	margin: auto; /* 画面中央に配置 */
}

.input_area_2 {
	justify-content: center; /* 水平方向の中央揃え */
}

.radio_wrap {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.radio_wrap input[type="radio"] {
    margin-right: 10px;
    margin-top: 4px;
}
#img_Checkbox_1,
#img_Checkbox_2{
	width: 10%;
}

.radio_wrap label {
    display: flex;
    flex-direction: column;
}

.jp, .en {
    display: none;
}

.jp.visible, .en.visible {
    display: inline;
}

input.radio {
	padding: 2%;
	width: 5%;
	display: inline-block;
}

.input_check {
	max-width: 100%;

	font-size: 1.5rem;
	justify-content: center;
	align-items: center; /* 垂直方向の中央揃え */
	margin: auto; /* 画面中央に配置 */
}

input[type='text'] {
	background-color: white;
}

.tr_title {
	text-align: center;
}

.section_info {
	width: 80%;
	text-align: left;
	padding: 0%;
	margin-left: 5%;
	margin-right: 5%;
}

.select_container {
	display: flex;
	justify-content: center; /* 水平方向の中央揃え */
	align-items: center; /* 垂直方向の中央揃え */
}
	
.select_box {
	margin: 1% 0%;
	text-align: left;
	width: 96%;
	font-size: 120%;
	background-color: #ffffff;
}

.input_box {
	display: block;
	width: 95%;
	margin: 2%;
	color: black;
	font-size: 1.5cap;
	text-align: left;
	padding: 2px;
	background-color: #ffffff;
}

.input_box_img {
	width: 95%;
	font-size: 1.5cap;
	color: black;
	text-align: left;
	background-color: #ffffff;
}

.img_btn {
	margin: 1px 2px;
	width: 25%;
	text-align: center;
	justify-content: center;
	padding: 5px 10px; /* ボタンの内側の余白を調整 */
	font-size: 1.5rem; /* フォントサイズを小さく */
	border-radius: 5px; /* 角を丸く */
	background-color: #4CAF50; /* ボタンの背景色 */
	color: white; /* ボタンの文字色 */
	border: none; /* ボーダーをなしに */
	cursor: pointer; /* カーソルをポインターに */
}
	
.img_btn:hover {
	 background-color: #45a049; /* ホバー時の背景色 */
}
	
.error {
	color: red;
	display: none; /*初期状態では非表示*/
}
	
.required_area {
	flex: 1;
	font-weight: bolder;
	color: crimson;
	text-align: center;
}
.required_area_2 {
	flex: 4;
}
.required_area_3 {
	font-weight: bolder;
	color: crimson;
	text-align: left;
}



.required_area_left {
	color: crimson;
}

.optional_area {
	color: blue;
	text-align: center;
}


.txtno-display {
	margin: 0;
	padding: 0;
	height: 1px;
	width: 1px;
	position: absolute;
	overflow: hidden;
}

.link_text {
	color: blue;
}

#about {
	background: rgb(242, 243, 243);
	text-align: center;
	padding: 20px;
}
#about_2 {
	background: rgb(242, 243, 243);
	text-align: left;
	padding: 20px;
}

#agree {
	background: rgb(242, 243, 243);
	text-align: center;
	padding: 20px;
}

#about_1 {
	text-align: left;
	margin-top: 10px;
	margin-left: 5%;
	margin-right: 5%;
}
#about_2 {
	text-align: left;
	margin-top: 30px;
	margin-left: 5%;
	margin-right: 5%;
}
#about_3 {
	text-align: left;
	margin-top: 30px;
	margin-left: 5%;
	margin-right: 5%;
}

#now {
	text-align: center;
	border: solid 2px #000; /* 枠線のスタイルと色 */
	/* padding: 3% 0%; 内側の余白 */
	/* margin: 0 20%; 外側の余白 */
}
#now_txt {
	text-align: left;
	margin-top: 0px;
	margin-left: 5%;
	margin-right: 5%;
}
#now_Caution {
	text-align: left;
	margin-top: 30px;
	margin-left: 5%;
	margin-right: 5%;
}
#now_Caution {
	text-align: center;
}

#input_1,
#input_2, 
#input_3{
	margin: 5px auto; /* 横方向の中央揃え */
	border-collapse: collapse; /* セルの枠線を統合 */
	width: 100%; /* テーブル全体の幅を調整（必要に応じて変更） */
}

#Required {
	border: 1px solid red; /* 枠線の太さと色 */
	padding: 3px; /*枠線と文字の間隔 */
	display: inline-block; /*コンテンツをブロックとして表示 */
	color: red;
}

#overview {
	text-align: left;
	height: 200px;
	width: 500px;
}

#form_1 {
	text-align: left;
	margin-top: 10px;
	margin-left: 25%;
	margin-right: 25%;
}

table {
	width: 100%; /* テーブル全体の幅を100%に */
	border-collapse: collapse; /* セルの隙間をなくす */
	table-layout: fixed; /* 列幅を均等に揃える */
	padding: 0;
}

#option_file {
	width: 100%;
}

#_1 {
	font-weight: bold;
	color: black;
	text-align: center;
	font-size: 1.5cap;
	ime-mode: inactive;
	background-color: #ffffff;
}

.center {
	display: flex;
	justify-content: center;
	align-items: center;
	/* height: 100%; */
}

#help_desk {
	text-align: center;
}

.container {
	height: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: 10% 25%;
	width: 25%;
	margin: 5% 25%;
}

img {
	max-width: 100%; /* 画像の最大幅を100%に設定 */
	height: auto; /* 画像の高さを自動調整 */
}
input {
	accent-color: #ffffffff;
	width: 80%;
	font-size: 120%;
	margin: 2% 2%;
	padding: 1% 1%;
}

.school_name {
	width: 120%;
	margin: 2% 2%;
	padding: 1% 5%;
}








.input_wrap {
    display: flex;
	width: 100% ;
	flex-wrap: wrap;
	align-items: center;
    gap: 5px; /* 要素間のスペース */
	justify-content: center; /* 横方向の中央揃え */
}

.input_wrap .jp,
.input_wrap .en {
    margin: 0;
    white-space: nowrap;
}

.input_wrap_2 {
margin: 2px auto;
justify-content: center;
align-items: center;
display: flex;
gap: 10px;
flex-wrap: wrap; /* ボタンを折り返し可能に */
  position: relative; /* z-indexを効かせるために必要 */
  /* z-index: 1000;         必要に応じて数値を調整 */
}

.submit {
  position: relative;  /* または absolute/fixed/sticky */
  /* z-index: 1000;         他の要素より大きくする */
}



.input_wrap_2_1 {
margin: 2px auto;
font-size: 80%;
justify-content: center;
align-items: center;
display: flex;
gap: 10px;
flex-wrap: wrap; /* ボタンを折り返し可能に */
}

.input_wrap_2_1 input[type="button"] {
white-space: normal; /* テキストの折り返しを許可 */
word-break: break-word; /* 長い単語も折り返す */
text-align: center; /* テキスト中央揃え（任意） */
padding: 8px 12px;
max-width: 100%; /* 折り返しを促すための最大幅 */
}



.input_wrap input {
	padding: 5px 10px; /* 内側の余白を小さくする */
	font-size: 14px; /* 文字のサイズを少し小さくする */
	width: 30%; /* ボタンの幅を調整 */
	height: 10%; /* ボタンの高さを調整 */
}
button,
input[type='submit'],
input[type='button'] {
	color: #ffffff;
	justify-content: left;
	background-color: gray;
	padding: 10px 20px;
	border: none;
	border-radius: 5px; /*角を丸くする */
	cursor: pointer; /* マウスポインタを変更 */
	font-size: 2cap; /* フォントサイズ */
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* ボタンの影 */
}
.container {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh; /* コンテナの高さを設定 */
}

#submit:hover {
	background-color: #45a049; /* ホバー時の背景色 */
}

#submit:active {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* 押したときの影 */
	transform: translateY(2px); /* 押したときの位置を少し下げる */
}

#footer {
	background-color: #f8f8f8; /* フッター背景色 */
	padding: 15px 20px; /* 上下左右の余白 */
	border-top: 2px solid #ddd; /* 上部のボーダーライン */
}

.footer-menu {
	display: flex; /* フレックスボックスを有効化 */
	justify-content: space-between; /* 要素間を均等に配置 */
	align-items: center; /* 垂直方向で中央揃え */
	list-style: none; /* リストマーカーを非表示 */
	padding: 0; /* リストの内側余白を削除 */
	margin: 0; /* リストの外側余白を削除 */
}

.footer-menu li {
	margin: 0 10px; /* 項目間の余白を調整 */
}


.re {
	color: #0078d4; /* リンク文字色 */
}

.re:hover {
	text-decoration: underline; /* ホバー時の下線を追加 */
	color: #005a9e; /* ホバー時の文字色 */
}

@media (prefers-color-scheme: dark) {
input[type="checkbox"],
input[type="radio"] {
	accent-color: #90ee90; /* ダークモード用にさらに明るい色 */
}
}
/* チェックボックスの見た目をリセット */
.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 30px;
  height: 30px;
  border: 2px solid #000;
  background-color: #fff;
  cursor: pointer;
  position: relative;
}

/* チェックされたときのチェックマーク */
.custom-checkbox input[type="checkbox"]:checked::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 9px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
}


.custom-radio input[type="radio"] {
  appearance: none;
  width: 20px !important;
  height: 20px;
  border: 2px solid #000;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
  flex-shrink: 0;
}


.custom-radio input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}





/* ラベルのスタイル */
.custom-radio label {
  display: inline-block;
  cursor: pointer;
  color: #000;
}

  .autocomplete-container {
    position: relative;
    width: 300px;
  }

  .autocomplete-input {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
  }

.dropdown-arrow {
  position: absolute;
  right: -10px;
  top: 80%;
  transform: translateY(-20%);
  font-size: 24px;
  pointer-events: none;
}



  .autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ccc;
    background: white;
    z-index: 1000;
    max-height: 150px;
    overflow-y: auto;
    display: none;
  }

  .autocomplete-item {
    padding: 8px;
    cursor: pointer;
  }

  .autocomplete-item:hover {
    background-color: #f0f0f0;
  }


.autocomplete-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}
.autocomplete-input {
  width: 94%;
  align-items: center;
  padding: 8px;
  margin: 3% 3%; /* ← ここで左にずらす */
  box-sizing: border-box;
}
  .dropdown-arrow {
    position: absolute;
    right: 5%;
    top: 40%;
    pointer-events: none;
  }

.autocomplete-list {
  position: absolute;
  top: 85%;
  margin: 0% 5%; /* ← inputと同じだけずらす */
  width: calc(90% + 0px); /* 幅も調整 */
  background-color: white;
  border: 1px solid #ccc;
  z-index: 1000;
}

  .autocomplete-item {
    padding: 8px;
    cursor: pointer;
  }

  .autocomplete-item:hover {
    background-color: #f0f0f0;
  }

.language-switch {
    list-style: none;
    display: flex;
    gap: 10px;
}

.lang-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.lang-button:hover {
    background-color: #0056b3;
}


.lang-button .jp,
.lang-button .en {
    display: block;
}
#lang-jp.lang-button {
    background-color: #cccccc; /* グレー */
    color: #333333; /* 文字色も少し暗めに */
}

#lang-jp-en.lang-button:hover {
    background-color: #aaaaaa; /* ホバー時に少し濃いグレー */
}
#lang-jp-en.lang-button {
    background-color: #cccccc; /* グレー */
    color: #333333; /* 文字色も少し暗めに */
}

#lang-jp-en.lang-button:hover {
    background-color: #aaaaaa; /* ホバー時に少し濃いグレー */
}
