/* ========================================
 contact.css
======================================== */

.inquiry {
	--inq-fg: #1f2328;
	--inq-muted: #6b7280;
	--inq-line: #d5d8dd;
	--inq-line-strong: #9aa1ab;
	--inq-accent: #0b328f;
	--inq-active: #007aff;
	--inq-error: #c62828;
	--inq-error-bg: #fdf3f3;
	--inq-required: #c62828;
	--inq-radius: 4px;

	color: var(--inq-fg);
}

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

.contact-form .btnStyle01 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px 4px 36px;
    background-color: #000;
    color: #fff !important;
    text-align: center;
    transition: opacity 0.3s ease-out;
}

.contact-form .btnStyle01>span::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    border-left: 20px solid #4d4d4d;
}

.contact-form .btnStyle01::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    height: 0px;
    margin: auto 0;
    border: 5px solid transparent;
    border-left-color: #fdf100;
    border-right-width: 0;
}

.headingLv04 {
    border-top: 2px solid #0b328f;
    font-weight: 700;
    font-size: 114%;
    background: #f3f4fa;
    padding: 10px 14px 8px;
    margin-bottom: 20px;
}

.recruit-contact-form.not-start-heading{
	border-top: 2px solid #0b328f;
    padding-top: 28px !important;
}

.recruit-contact-form.route-woman, .recruit-contact-form.route-requirements{
	border-top: none !important;
    padding-top: 5px !important;
}

.headingLv05 {
    border-top: 1px solid #666666;
    font-weight: 700;
    background: #eee;
    padding: 10px 14px 8px;
    margin-bottom: 14px;
}

.mt-2{
	margin-top: 6px;
}
.mb-2{
	margin-bottom: 6px;
}

.mt-4{
	margin-top: 12px;
}
.mb-4{
	margin-bottom: 12px;
}
.tac {
    text-align: center !important;
}
.mat40 {
    margin-top: 40px !important;
}
.fzp06 {
    font-size: 142% !important;
}

.cAttent{
	color: #cc0000 !important;
}

.b-top-none{
	border-top: none !important;
}

.b-bottom-none{
	border-bottom: none !important;
}

.font-small {
    font-size: 0.8rem;
}

.required {
    margin-left: 0.5rem;
    padding: 3px 6px;
    font-size: 0.75rem;
    background-color: #cc0000;
    color: #fff;
    text-align: center;
    border-radius: 0.2rem;
    position: relative;
    top: -1px;
}

.fwb {
    font-weight: 700 !important;
}

.link-block {
    display: block;
    max-width: 100%;
    padding-top: 0.5rem;
    width: fit-content;
    overflow-wrap: break-word;
}

.flex-column {
	display: flex;
    flex-direction: row !important;
    gap: 0.375rem;
    align-items: center;
}

.flex-row {
    display: flex;
    flex-direction: row !important;
    gap: 0.375rem;
    align-items: center;
    margin-bottom: 0.3rem;
}

.flex-row .label {
    font-size: 0.9rem;
    font-weight: bold;
}

.prefix-arrow-right::before {
    content: "▶";
    margin-right: 0.375rem;
    font-size: 0.8em;
    display: inline-block;
}

.btn-leading-arrow {
    position: relative;
    padding-left: 2.5rem;
}

.btn-leading-arrow::before {
    content: "▶";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1.375rem;
    background-color: #5570b1;
    color: #ffffff;
    font-size: 0.6rem;
    text-align: center;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}


.contact-form.notStartHeading {
    border-top: 2px solid #092b8c;
    padding-top: 28px;
}

.contact-form a {
    text-decoration: none;
    color: #0b328f;
}

.contact-form img {
    height: auto;
    width: 100%;
}

.contact-form {
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
    padding: 1.25rem;
    padding-top: 0;
}

.contact-form .title {
    font-size: 1.25rem;
    position: relative;
    border-top: 2px solid #0a3190;
    margin: 0 -20px 22px;
    font-weight: 700;
}

.contact-form .title::before,
.contact-form .title::after {
    content: "";
    display: block !important;
    position: absolute;
    z-index: 0;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    top: 50%;
    bottom: 0px;
    left: 20px;
    right: 20px;
    -webkit-border-radius: 100px 10px;
    -moz-border-radius: 100px / 10px;
    border-radius: 100px / 10px;
}

.contact-form .title div {
    z-index: 1;
	width: 100%;
    position: relative;
    display: block;
    padding: 1.25rem 2.125rem 1rem;
    background-color: #fff;
}

.contact-form .title div::before {
    position: absolute;
    top: 0;
    left: 1rem;
    content: '';
    height: 90%;
    border-left: 4px solid #0a3190;
}

.form-top-message {
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------------
 * Lead text
 * ---------------------------------------------------------------------- */

.inq-lead {
	margin: 0 0 24px;
	line-height: 1.9;
}

.inq-lead__note {
	display: block;
	color: var(--inq-muted);
	font-size: 14px;
}

.inq-section {
	margin: 32px 0 12px;
	padding-bottom: 6px;
	border-bottom: 2px solid var(--inq-fg);
	font-size: 17px;
}

/* -------------------------------------------------------------------------
 * Rows
 * ---------------------------------------------------------------------- */


.inq-row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 0 24px;
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--inq-line);
}

fieldset.inq-row {
	min-width: 0;
}


.inq-row__label {
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 8px;
	font-size: 1.0125rem;
	font-weight: 700;
	text-align: right;
    padding: 13px 8px 11px; 
    position: relative;
}

.inq-row__label:not(.no-underline)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 100%;
    height: 1px;
    background-color: #0a3190;
}

.inq-row__label label,
.inq-row__label legend,
.inq-grouplabel {
	padding: 0;
	font-weight: 700;
}

.inq-row__label:not(:has(.inq-badge--required)) {
    padding-right: 3.5rem !important;
}

.inq-row__control {
	min-width: 0;
	padding: 13px 8px 11px;
}

.inq-subrow{
	flex-direction: row;
}

/* Address block: several fields presented as one row. */
.inq-subrow + .inq-subrow {
	margin-top: 12px;
}

.inq-sublabel {
	font-size: 0.9rem;
    font-weight: bold;
}

.inq-inline {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.inq-unit {
	color: var(--inq-muted);
}

.address-part {
    display: flex;
    align-items: start;
    flex-wrap: wrap;
    gap: 5px;
}

/* -------------------------------------------------------------------------
 * Badges
 * ---------------------------------------------------------------------- */

.inq-badge {
	flex: none;
	margin-top: 2px;
	padding: 2px 7px;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.04em;
	white-space: nowrap;
}

.inq-badge--required {
	background: var(--inq-required);
	color: #fff;
}

.inq-badge--optional {
	background: #eceef1;
	color: var(--inq-muted);
}

/* -------------------------------------------------------------------------
 * Controls
 * ---------------------------------------------------------------------- */

.inq-control {
	width: 300px;
	padding: 2px !important;
	background: #fff;
	color: inherit;
	font-family: inherit;
	font-size: 16px; /* 16px stops iOS Safari zooming on focus. */
}

.inq-row__control input[type="text"], .inq-row__control select {
	height: 28px;
}

.inq-control--textarea {
	resize: vertical;
}

.inq-control--file {
	padding: 8px 0;
	border: 0;
	font-size: 15px;
}

.inq-control[aria-invalid="true"] {
	background-color: var(--inq-error-bg);
}

.inq-w-xs { max-width: 6em !important; }
.inq-w-sm { max-width: 12em !important; }
.inq-w-md { max-width: 22em !important; }
.inq-w-lg { max-width: 100% !important; }
.w-full { width: 100% !important; }
.w-88 { width: 88% !important; }


/* Choice groups */

.inq-choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.inq-choices--radio,
.inq-choices--checkbox {
	flex-direction: column;
	gap: 10px;
}

.inq-choice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	line-height: 1.6;
}

.inq-choice input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 3px 0 0;
}


.inquiry input:focus,
.inquiry select:focus,
.inquiry textarea:focus,
.inquiry button:focus {
	outline: none;
}

.inq-choice:has(input[type="radio"]:checked), .inq-choice:has(input[type="checkbox"]:checked) {
    background-color: #fff9dc !important;
    border-color: #0073aa;
}

/* -------------------------------------------------------------------------
 * Notes and errors
 * ---------------------------------------------------------------------- */

.inq-note {
	margin: 6px 0 0;
	color: var(--inq-muted);
	font-size: 13px;
}

.inq-error {
	color: var(--inq-error);
	background: white url("../assets/img/i_attent.png") 0.3em 0.5em no-repeat;
	padding: 4px 10px 4px 20px;
	font-size: 0.75rem;
    font-weight: bold;
    margin-top: 3px;
}

.inq-notices {
	margin: 0 0 24px;
	padding: 16px 20px;
	border: 2px solid var(--inq-error);
	border-radius: var(--inq-radius);
	background: var(--inq-error-bg);
}

.inq-notices:focus-visible {
	outline: 2px solid var(--inq-error);
	outline-offset: 2px;
}

.inq-notices__list {
	margin: 0;
	padding-left: 1.4em;
	font-weight: 700;
}

.inq-notices__list li + li {
	margin-top: 6px;
}

/* -------------------------------------------------------------------------
 * 確認画面
 * ---------------------------------------------------------------------- */

.inq-confirm {
	margin: 0;
	border-top: 1px solid var(--inq-line);
}

.inq-confirm__row {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 0 24px;
	padding: 18px 0;
	border-bottom: 1px solid var(--inq-line);
}

.inq-confirm__label {
	margin: 0;
	font-weight: 700;
}

.inq-confirm__value {
	margin: 0;
	min-width: 0;
	word-break: break-word;
}

.inq-confirm__sub {
	color: var(--inq-muted);
}

.inq-confirm__empty {
	color: var(--inq-muted);
	font-size: 14px;
}

/* -------------------------------------------------------------------------
 * Actions
 * ---------------------------------------------------------------------- */

.inq-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 32px;
}

.inq-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.inq-confirm-actions > form,
.inq-confirm-actions .inq-actions {
	display: contents;
}

.inq-confirm-actions .inq-button {
	flex: 1 1 240px;
	width: auto;
}

.inq-button {
	min-width: 240px;
	background: var(--inq-accent);
	width: 100%;
    max-width: 20rem;
    color: #fff !important;
    padding: 12px 16px 12px 36px;
    font-size: 114%;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
	border: none;
}

.inq-button:hover {
	opacity: 0.88;
}

.inq-button:focus-visible {
	outline: 2px solid var(--inq-fg);
	outline-offset: 2px;
}

/*
 * 戻るボタン。
 */
.inq-button--back {
	order: -1;
	padding-left: 1rem;
}

.inquiry-notice {
	padding: 12px 16px;
	border-left: 4px solid var(--inq-error, #c62828);
	background: #fdf3f3;
	font-size: 14px;
}

a.phone-east ul,
a.phone-west ul{
	padding-left: 0!important;
}

a.phone-east,
a.phone-west,
a.phone-east p,
a.phone-west p{
	color: #fff;
	font-size: 1.6rem;
    font-weight: 700;
	text-align: center;
}

a.phone-east:hover,
a.phone-west:hover,
a.phone-east p:hover,
a.phone-west p:hover{
	opacity: 0.8;
	color:#333 !important;
	text-decoration:none;
}

/* -------------------------------------------------------------------------
 * レスポンシブ対応
 * ---------------------------------------------------------------------- */

@media (max-width: 640px) {
	.contact-form {
		padding: 0;
	}
	
	.inq-confirm-actions {
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}

	.inq-confirm-actions .inq-button {
		flex: 0 1 auto;
		width: 100%;
	}

	.inq-row {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 16px 0 0;
		border-bottom: none;
	}

	.inq-row .inq-row__label {
        font-size: 1.125rem;
        text-align: left;
        padding: 13px 8px 11px;
        border-top: 1px solid #0b328f;
        border-bottom: 1px solid #cccccc;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
	}

	.inq-row .inq-row__label::after {
        width: 0;
        height: 0;
    }

	.inq-row.is-error {
		padding-right: 12px;
		padding-left: 12px;
	}

	.inq-confirm__row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 14px 0;
	}

	select.inq-control,
	.inq-w-xs,
	.inq-w-sm,
	.inq-w-md {
		max-width: 100%;
	}

	.inq-button {
		width: 100%;
		min-width: 0;
	}
	
	a.phone-east,
	a.phone-west,
	a.phone-east p,
	a.phone-west p{
		color: #fff;
		font-size: 1rem;
		font-weight: 700;
		text-align: center;
	}
}
