/*
Theme Name: 繝帙Φ繝繧ｫ繝ｼ繧ｺCP
Theme URI: 
Description: 
Author: 
Version: 1.0
*/

@charset "utf-8";

/*--------------------------------------
	Block-level Elements
--------------------------------------*/

* { box-sizing: border-box }

html,
div,
p,
li,
dl,
dt,
dd,
blockquote,
td,
form,
address {
	margin: 0;
	padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	padding: 0;
	font-style: normal;
	font-weight: bold;
	font-size: 100%;
	line-height: 1.4;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

caption,
th {
	margin: 0;
	padding: 0;
	font-style: normal;
	font-weight: normal;
	text-align: left;
}

body {
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
	font-size: 100%;
	line-height: inherit;
}

/*--------------------------------------
	Inline Elements
--------------------------------------*/

select {
	font-size: 14px !important;
	height: 25px;
}

input,
select,
textarea {
	color: #000;
	font-size: inherit;
	padding: 0.3em;
}

img {
	vertical-align: bottom;
	border: none;
}

/*--------------------------------------
	Hypertext
--------------------------------------*/

a { color: #d00; text-decoration: none; }
a:link {}
a:visited {}
a:hover { color: #f30; text-decoration: none; }
a:active {}

/*----------------------------------------------------------
	body , container, footer , common
----------------------------------------------------------*/

body {
	color: #000;
	font-family:"繝偵Λ繧ｮ繝手ｧ偵ざ Pro W3", "Hiragino Kaku Gothic Pro", "繝｡繧､繝ｪ繧ｪ", Meiryo, Osaka, "�ｭ�ｳ �ｰ繧ｴ繧ｷ繝�け", "MS PGothic", sans-serif;
	background: #fff;
}

/* common */

a:hover img {
	opacity: 0.5;
	filter: alpha(opacity=50);
	-ms-filter: "alpha( opacity=50 )";
	background: none;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.t_red {
	color: #d00;
}

/* footer */

.footer {
	text-align: center;
	padding: 2em 0;
	background: #ccc;
}

/* extra */

.check_attention_text {
	color: #d00;
	font-weight: bold;
	margin-bottom: 0.6em;
}

/*
.under_gray_color {
	background: #ccc;
}
*/

/* container */

.container {
	width: 960px;
/*	width: 100%;*/
	text-align: left;
}

.headerBackground img {
/*	height: 100%;
	width: 100%;*/
}

/* button_info */

.button_info {
	text-align: center;
	margin-bottom: 3em;
}

.button_info h2 {
	font-size: 143%;
	margin-bottom: 0.7em;
	margin-top: 0.7em;
}

/* flow */

.flow {
	text-align: center;
	margin-bottom: 4em;
}

.flow h3 {
	font-size: 179%;
	margin-bottom: 1.5em;
	padding: 0.5em 0;
	border-bottom: solid 1px #000;
}

/* aproach */

.aproach {
	width: 100%;
	text-align: center;
	padding: 1em 0;
	background: url(images/bg_aproach.png);
}

/* outline */

.outline {
	width: 100%;
	margin-bottom: 2em;
/*	padding: 2em 0;*/
	background: url(images/bg_outline.png) repeat-x top #f9f9f9;
}

.outline .outline_box {
	width: 960px;
	margin: 0 auto;
}

.outline .outline_box h2 {
	font-size: 129%;
	font-weight: bold;
	text-align: center;
	color: #d00;
	margin-bottom: 1.5em;
}

.outline .outline_box h3 {
	font-size: 129%;
	font-weight: bold;
	color: #fff;
	margin-bottom: 2em;
	padding: 0.6em 0 0.6em 1em;
	background: url(images/bg_outline_box_h3.png) no-repeat top right #000000;
}

.outline_detail {
	background: #fff;
	height: 450px;
	margin-bottom: 2em;
	padding: 2em;
	overflow-y: scroll;
	overflow-x: hidden;
}

.outline_detail h4 {
	font-size: 129%;
	font-weight: bold;
	margin-bottom: 0.9em;
	padding: 0.4em 0 0.4em 1.5em;
	background: url(images/bg_outline_box_h4.png) repeat-x;
}

.outline_detail p,
.outline_detail ul,
.outline_detail li {
	margin-bottom: 1em;
	line-height: 1.4;
}

.outline_detail p {
	margin-left: 1em;
}

.outline_detail ul {
	margin-left: 1em;
}

.outline_detail li {
	padding-left: 1em;
	text-indent: -1em;
}


/*--------------------------------------
	media query
--------------------------------------*/

@media screen and (min-width: 641px) and (max-width:959px) {
	.aproach {
		width: 100%;
		min-width: 960px;
	}

	.outline {
		width: 100%;
		min-width: 960px;
	}

	.outline_detail {
		width: 80%;
		margin-left: auto;
		margin-right: auto;
	}

	.footer {
		width: 100%;
		min-width: 960px;
	}

}

@media screen and (max-width: 640px) {
	.container {
		width: 100%;
	}

	.container img {
		width: 100%;
	}

	.button_info {
		margin-bottom: 1em;
	}

	.button_info h2 {
		font-size: 100%;
	}

	.button_info img {
		width: 60%;
	}

	.flow {
		text-align: center;
		margin-bottom: 1em;
	}

	.flow h3 {
		font-size: 100%;
	}

	.aproach {
		width: 100%;
		padding: 0.5em 0;
	}

	.aproach img {
		width: 40%;
	}

	.outline .outline_box {
		width: 100%;
	}

	.outline .outline_box h2 {
		font-size: 115%;
	}

	.outline .outline_box h3 {
		font-size: 100%;
	}

	.outline_detail {
		width: 80%;
		height: 300px;
		margin-left: auto;
		margin-right: auto;
		padding: 0em;
		-webkit-overflow-scrolling: touch;
	}

	.outline_detail h4 {
		font-size: 100%;
		padding: 0.4em 0 0.4em 0.5em;
	}

	.footer {
		width: 100%;
	}

}

@media screen and (max-width: 640px) {

    /* Fixed only when consent is not checked */
    #consent_section.consent-sticky {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
        text-align: center;
        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
    }

    /* Normal position when checked */
    #consent_section:not(.consent-sticky) {
        position: static;
        padding: 15px;
        margin: 0;
        box-shadow: none;
    }

    #consent_section .check_attention_text {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    #consent_section #consent_check img {
        width: auto;
        max-width: 90%;
        height: auto;
    }

    body {
        padding-bottom: 0 !important;
    }
}


@media screen and (max-width: 640px) {

    /* Privacy policy stays scrollable */
    .outline_detail {
        height: 300px;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    /* Unchecked: height controlled by JavaScript */
    body:not(.consent-checked) .outline_detail {
        overflow-y: auto;
        padding-bottom: 30px;
    }

    /* Checked: restore original height */
    body.consent-checked .outline_detail {
        height: 300px !important;
    }

    /* Unchecked: fixed consent section */
    body:not(.consent-checked) #consent_section {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        background: #fff;
        padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
        box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.15);
    }

    /* Checked: normal position */
    body.consent-checked #consent_section {
        position: static;
        box-shadow: none;
    }

    body {
        padding-bottom: 0 !important;
    }
}

#consent_section #consent_check img {
    display: block !important;
    width: 85% !important;
    max-width: 250px !important;
    height: auto !important;
    margin: 0 auto;
}

#consent_section #consent_check {
    padding: 10px;
    cursor: pointer;
}

#consent_section .check_attention_text {
    font-size: 16px !important;
    line-height: 1.6;
}


@media screen and (max-width: 640px) {
    #consent_section #consent_check img {
        display: block !important;
        width: 85% !important;
        max-width: 250px !important;
        height: auto !important;
        margin: 0 auto;
    }

    #consent_section #consent_check {
        width: 100%;
        padding: 8px 5px;
        cursor: pointer;
    }

    #consent_section .check_attention_text {
        font-size: 15px !important;
        line-height: 1.6;
    }
}


.anti-social-detail {
    width: 100%;
    padding: 25px;
    background: #fff;
    line-height: 1.8;
}

.anti-social-detail p {
    margin: 0;
}

.anti-social-detail a {
    overflow-wrap: anywhere;
}

@media screen and (max-width: 640px) {
    .anti-social-detail {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
}


/* First section: personal information */
.outline:has(+ .anti-social-outline) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove extra bottom spacing inside the first section */
.outline:has(+ .anti-social-outline) .outline_detail {
    margin-bottom: 0 !important;
}

/* Second section: anti-social declaration */
.anti-social-outline {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.anti-social-outline > img {
    display: block;
    margin: 0;
    padding: 0;
}

/* PC: Show only desktop image */
.pc-only {
    display: block !important;
}

.sp-only {
    display: none !important;
}

/* Mobile: Show only mobile image */
@media screen and (max-width: 640px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block !important;
    }
}


@media screen and (max-width: 640px) {

    /* Personal information: scrollable box */
    .outline_detail {
        width: 90%;
        height: 195px !important;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 15px !important;
        margin: 20px auto 25px !important;
    }

    /* Anti-social declaration: scrollable box */
    .anti-social-detail {
        width: 90%;
        height: 195px !important;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 15px !important;
        margin: 20px auto 25px !important;
    }

    /* Space between the two sections */
    .outline:has(+ .anti-social-outline) {
        /*margin-bottom: 20px !important;*/
    }

    .anti-social-outline {
        margin-top: 0 !important;
    }
}

/* PC and Mobile: spacing below the privacy policy box */
.outline:has(+ .anti-social-outline) {
    /*margin-bottom: 30px !important;*/
    padding-bottom: 20px !important;
}

/* Spacing below the scrollable content */
.outline:has(+ .anti-social-outline) .outline_detail {
    margin-bottom: 10px !important;
}

/* PC */
.anti-social-outline {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
}

/* Mobile: no bottom padding */
@media screen and (max-width: 640px) {

    /* Unchecked: reserve space for fixed consent section */
    body:not(.consent-checked) .anti-social-outline {
        padding-bottom: calc(
            var(--consent-height, 150px) + 20px
        ) !important;
    }

    /* Checked: remove extra space */
    body.consent-checked .anti-social-outline {
        padding-bottom: 0 !important;
    }

    /* Keep Personal 2 independently scrollable */
    .anti-social-outline .anti-social-detail {
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
}
/* Keep anti-social box separated from next content */
.anti-social-outline .anti-social-detail {
    margin-bottom: 20px !important;
}


/* Disabled consent button */
#consent_check.consent-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Enabled consent button */
#consent_check:not(.consent-disabled) {
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

.q6_sub_question {
    margin-top: 20px;
}

.q6_sub_title {
    margin-bottom: 10px;
    font-size: 14px;
}

#q6VehicleDetails {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}

@media screen and (max-width: 640px) {

    /* Larger radio buttons and checkboxes */
    #main-form input[type="radio"],
    #main-form input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        cursor: pointer;
        vertical-align: middle;
        accent-color: #333;
    }

    /* Increase spacing around options */
    #main-form label {
        cursor: pointer;
    }
}

@media screen and (max-width: 640px) {
    #main-form input[type="radio"],
    #main-form input[type="checkbox"] {
        position: relative;
        top: -2px;
    }
}