@charset "UTF-8";

html {
	scroll-behavior: smooth;
	scroll-padding-top: 1.25rem;
}

:not(span) {
	margin: 0;
	padding: 0;
	font-weight: 400;
	line-height: 1;
	box-sizing: border-box;
}
* {
	color: #111;
	font-size: clamp(0.95rem, 3vw, 1.05rem);
	font-family: sans-serif;
	font-style: normal;
	font-feature-settings: "palt", "kern";
	font-weight: 400;
	letter-spacing: calc(1em / 12);
	word-spacing: calc(1em / 16);
	max-height: 99999px;
	text-wrap: pretty;
}

a:any-link {
	text-decoration: none;
	color: #06C;
	cursor: pointer;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px; 
}
label,
button,
summary {
	cursor: pointer;
}

body {
	-webkit-text-size-adjust: 100%;
	margin: 0;
	padding: 0;
	-webkit-font-smoothing: subpixel-antialiased;
	animation: fadeIn .5s ease 0s 1 normal;
	border-top: solid 0.5rem #d8001a;
}
@keyframes fadeIn {
	0% { opacity: 0; }
	25% { opacity: 0; }
	100% { opacity: 1; }
}
/* Safariだけフォントが太くなる対策 */
::-webkit-full-page-media, :future, :root body {
	-webkit-font-smoothing: antialiased;
}
header {
	width: 100%;
	height: min(12vw, 9.5rem);
	display: flex;
	align-items: center;
}
header p {
	width: 90rem;
	max-width: 100%;
	margin: 0 auto;
}
header p img {
	display: block;
	width: clamp(18rem, 70vw, 33rem);
	margin-left: min(4vw, 1.5rem);
}
main hgroup {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: min(7vw, 3rem);
	margin: 2rem 5vw min(2.5vw, 2rem);
}
main hgroup h1 {
	font-size: clamp(1.5rem, 5vw, 2rem);
	font-weight: 700;
}
main hgroup p {
	line-height: 1.5;
}
main hgroup p img {
	display: block;
	width: 35rem;
	max-width: 80vw;
}
div.table_wrap {
	width: 61rem;
	max-width: calc(100% - 5vw);
	margin: 0 auto;
}
div.table_wrap table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0.5rem 1.25rem;
}
div.table_wrap table tr th {
	color: white;
	background: #d8001a;
	height: 3.5rem;
	width: 25%;
	max-width: 15.5rem;
	text-align: right;
	padding: 0.5rem 4rem 0.5rem 0.5rem;
	line-height: 1.5;
	font-weight: 700;
	position: relative;
}
@media (max-width: 50rem) {
	div.table_wrap table tr th {
		height: 2.75rem;
		padding-block: 0;
	}
	div.table_wrap table tr td {
		min-height: 2.75rem;
	}
}
div.table_wrap table tr th span {
	position: absolute;
	top: calc(50% - 0.5rem);
	right: 0.8rem;
	background: white;
	color: #d8001a;
	display: inline-flex;
	width: 2.25rem;
	height: 1.1rem;
	font-size: 0.75rem;
	justify-content: center;
	align-items: center;
}
div.table_wrap table tr td {
	background: #EEE;
	padding: 0.5rem 1rem;
	transition: .5s;
}
div.table_wrap table tr td:has(input:focus),
div.table_wrap table tr td:has(textarea:focus) {
	background: #DDD;
}
@media (max-width: 50rem) {
	div.table_wrap table tr th,
	div.table_wrap table tr td {
		display: block;
		width: 100%;
		max-width: 100%;
	}
	div.table_wrap table tr th {
		display: flex;
		padding: 0 1rem;
		align-items: center;
	}
	div.table_wrap table tr th span {
		position: static;
		margin-left: 0.75rem;
	}
}


div.table_wrap table tr td:has(p) {
	padding: 0;
}
div.table_wrap table tr td p {
	padding: 0.5rem;
	line-height: 1.667;
	background: white;
	font-size: clamp(0.95rem, 2.5vw, 1rem);
}
div.table_wrap table tr td p + div {
	padding: 1.25rem;
}
div.table_wrap table tr td :where(input[type=text],input[type=tel],input[type=email],textarea) {
	width: 100%;
	line-height: 1.5;
	border: none;
	font-size: 1.05rem;
	background: rgba(255,255,255,0);
	outline: none;
	padding: 0.5rem 0;
}
div.table_wrap table tr td input[type=number] {
	width: 3.75rem;
	line-height: 1.5;
	padding: 0.333rem 0 0.333rem 0.5rem;
	border: none;
	font-size: 1.05rem;
	background: rgba(255,255,255,1);
	outline: none;
	font-size: clamp(1rem, 2.5vw, 1.25rem);
}
td.kensa {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 3.5rem;
	line-height: 1.25;
}
@media (max-width: 50rem) {
	td.kensa {
		display: flex !important;
	}
}
td.kensa span {
	white-space: nowrap;
}
div.table_wrap table tr td input[type=radio] {
	margin-right: 0.25rem;
}
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 1.5rem;   /* 好きなサイズに拡大可能 */
  height: 1.5rem;
  border: 2px solid #666;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  transition: background-color 0.2s, border-color 0.2s;
  margin-right: 0.5rem;
}
input[type="checkbox"]:checked {
  border-color: #007aff;       /* macOS/iOSのブルー */
  background-color: #007aff;
  background-image: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
      <polyline points='20 6 9 17 4 12' \
        fill='none' stroke='white' stroke-width='3' \
        stroke-linecap='round' stroke-linejoin='round'/>\
    </svg>");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: center;
}

div.table_wrap table tr td textarea {
	display: block;
	field-sizing: content;
	min-height: 10rem;
}
::placeholder {
	font-size: 0.85rem;
}
div.table_wrap table tr td ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	margin: 0.5rem 0;
}
div.table_wrap table tr td ul li {
	list-style: none;
	line-height: 1.5;
}
small.hide {
	font-size: 85%;
}
div.table_wrap table tr td a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
div.submit {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 3rem 0 5rem;
	gap: 0.5rem;
}
.submit_button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 16rem;
	max-width: 40%;
	height: 3.5rem;
	color: white !important;
	background: #d8001a;
	font-size: clamp(1rem, 3vw, 1.25rem);
	font-weight: 700;
	transition: .5s;
	box-shadow: 0.25rem 0.25rem 0.75rem rgba(0,0,0,0.1);
	border: none;
}
.back_button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 7rem;
	max-width: 20%;
	height: 3.5rem;
	color: white !important;
	background: #AAA;
	font-size: clamp(1rem, 3vw, 1.25rem);
	font-weight: 700;
	transition: .5s;
	box-shadow: 0.25rem 0.25rem 0.75rem rgba(0,0,0,0.1);
	border: none;
	border-radius: 0;
}
.submit_button:hover,
.back_button:hover {
	opacity: 0.5;
}
.submit_button:active,
.back_button:active {
	box-shadow: 0rem 0rem 0rem rgba(0,0,0,0);
	opacity: 1;
}
footer div {
	width: 60rem;
	max-width: calc(100% - 5vw);
	border: solid thin #111;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 2.5rem 1rem;
}
footer div h2 {
	font-size: min(4vw, 1.333rem);
	font-weight: 700;
}
footer div p {
	font-size: min(3.25vw, 0.95rem);
}
footer div h2 + p {
	margin-top: 0.75rem;
}
footer p.copyright {
	margin: 5rem auto;
	text-align: center;
	font-size: min(2.5vw, 0.8rem);
}
/* 送信完了画面 */
hgroup h2 {
	font-size: 1.75rem;
	margin: 2rem 0 1rem;
}
hgroup h2 + p {
	margin-bottom: 5rem;
}

#radio1 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	height: 2.75rem;
}
#radio1 li {
	display: flex;
	align-items: center;
}

#radio1ex {
	background: white;
	width: 12rem;
	padding-inline: 0.5rem;
	display: none;
}
input:checked + label + #radio1ex {
	display: block;
}


#alert_message {
	display: flex;
	width: 60rem;
	max-width: calc(100% - 10vw);
	padding: 1rem;
	border: solid thin #111;
	margin: 3rem auto;
	align-items: center;
	gap: 1rem;
}
#alert_message span.blink {
	flex: none;
	width: 3rem;
	height: 3rem;
	background: darkorange;
	color: white;
	font-weight: 700;
	font-size: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
}