@charset "utf-8";

/*
 * Responsive styles
 * Existing desktop layout is retained above 1000px.
 */

html,
body {
    max-width: 100%;
}

body {
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-break: normal;
}

img {
    max-width: 100%;
    height: auto;
}


/* Preserve the title position without widening the page. */
#page-header .page-title,
#page-header .page-description {
    left: 0;
    padding-left: 50px;
    box-sizing: border-box;
}

.access_map {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

@media screen and (max-width: 1000px) {
    div#header,
    #page-header,
    div#mainContents,
    div#mainImgBBox,
    div#mainImgBox,
    div#mainImgBox01 {
        /*width: calc(100% - 32px);*/
        width:100%;
        max-width: 960px;
        box-sizing: border-box;
    }

    div#header {
        position: relative;
    }

    #page-header {
        background-position: center top;
        background-size: cover;
    }

    div#mainContents {
        padding-right: 30px;
        padding-left: 30px;
    }

    div#conceptBox,
    div#topicsBox {
        width: 66%;
    }

    div#outlineBox {
        width: 30%;
    }

    #sidebar-banner {
        width: 100%;
        padding-left: 0;
        box-sizing: border-box;
    }

    .banner01,
    .banner02,
    .banner03 {
        max-width: 100%;
    }

    div#topicsBox dl {
        width: 100%;
        padding-left: 0;
        box-sizing: border-box;
    }

    div#topicsBox dl dd {
        width: auto;
        box-sizing: border-box;
    }

    div#mainImgBBox,
    div#mainImgBox,
    div#mainImgBox01 {
        min-height: 0;
        height: auto !important;
    }

    div#mainImgBox {
        border-bottom: 1px solid #dedede;
        background: none;
    }

    div#mainImgBox img {
        display: block;
        width: 100%;
        height: auto;
    }
}

@media screen and (max-width: 800px) {
    body {
        font-size: 14px;
        line-height: 1.75;
    }

    div#header {
        width: 100%;
        margin-top: 0;
        padding: 16px 12px 0;
        box-sizing: border-box;
    }

    div#header .logo {
        float: none;
        display: block;
        width: 100%;
        max-width: 297px;
        margin: 0 auto 14px;
        text-align: center;
    }

    div#header .logo img {
        display: block;
        width: 100%;
        height: auto;
    }

    #header-nav {
        float: none;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        margin: 0;
        border-top: 1px solid #ccc;
        border-right: 1px solid #ccc;
        box-sizing: border-box;
    }

    #header-nav li {
        float: none;
        display: block;
        width: auto;
        height: 78px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 78px 78px;
    }

    #header-nav li a {
        display: flex;
        align-items: flex-end;
        /* justify-content: center; */
        width: 100%;
        height: 78px;
        padding: 0 2px 6px;
        box-sizing: border-box;
        font-size: 12px;
        line-height: 1.25;
    }

    #header-nav li.nav-3 a {
        font-size: 10px;
        line-height: 1.15;
    }
	
	#header-nav li a br{
		display: none;
	}
	
#header-nav li.nav-3 a,
#header-nav li.nav-2 a,
#header-nav li.nav-5 a{
    font-size: 15px;
}
	
	#header-nav li.sp{
		display:block;
	}

    div#mainImgBBox,
    div#mainImgBox,
    div#mainImgBox01,
    #page-header,
    div#mainContents {
     /*width: calc(100% - 24px);*/
					width:100%;
    }

    div#mainImgBBox {
        /*margin-top: 12px; */
        border: 0;
        background: none;
    }

    #page-header {
        min-height: 0;
        margin: 0 auto;
        padding: 22px 20px;
        background-position: center;
        background-size: cover;
        box-sizing: border-box;
    }

    #page-header .page-title,
    #page-header .page-description {
        position: static;
        left: auto;
        top: auto;
        display: block;
        padding-left: 0;
    }

    #page-header .page-title {
        font-size: 24px;
        line-height: 1.35;
    }

    #page-header .page-description {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.65;
    }

    div#mainContents {
        display: flex;
        flex-direction: column;
        padding: 26px 18px;
        margin-bottom: 14px;
        box-sizing: border-box;
    }

    div#conceptBox,
    div#topicsBox,
    div#outlineBox {
        float: none;
        width: 100%;
        box-sizing: border-box;
    }

    div#conceptBox,
    div#topicsBox {
        order: 1;
    }

    div#outlineBox {
        order: 2;
        margin-top: 32px;
        padding-top: 4px;
    }

    div#mainContents h1,
    div#mainContents h2 {
        margin-bottom: 25px;
        min-height: 39px;
        height: auto !important;
        font-size: 15px;
        line-height: 1.5;
    }

    div#mainContents h1 span,
    div#mainContents h2 span {
        min-height: 39px;
        padding: 8px 10px 8px 33px;
        box-sizing: border-box;
    }

    div#topicsBox p {
        margin: 0 2px 20px;
    }

    div#topicsBox p br,
    .points p br,
    .staff br {
        display: none;
    }

    div#outlineBox dl {
        padding-left: 0;
    }

    div#outlineBox dl dt.sidebar-info {
        margin-bottom: 8px;
    }
	div#outlineBox dl dt.side_adress{
		margin-bottom:20px;
	}

    div#outlineBox dl p {
     margin: 0;
					line-height:1.4;
    }

    div#outlineBox dl {
        margin-bottom: 22px;
    }

    #sidebar-banner {
        width: 100%;
        padding-left: 0;
        box-sizing: border-box;
    }

    #sidebar-banner img {
        display: block;
        max-width: 147px;
        margin: 0 auto;
    }

    .banner01,
    .banner02,
    .banner03 {
        max-width: 211px;
        margin-right: auto;
        margin-left: auto;
    }

    table,
    table tbody,
    table tr,
    table th,
    table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }

    table {
        border-top: 0;
    }

    table tr {
        margin-bottom: 16px;
        border: 1px solid #ccc;
    }

    table th,
    table td {
        padding: 10px 12px;
        border: 0;
    }

    table th,
    table.tableDec1 th,
    table.tableDec2 th,
    table.tableDec3 th {
        padding: 8px 12px;
        border-bottom: 1px solid #ccc;
        background: #efefef;
        color: #333;
        text-align: left;
    }

    table td {
        padding-left: 12px;
        border-left: 0;
    }

    .policy,
    .points,
    .staff,
    .method {
        padding-right: 0;
        padding-left: 0;
        line-height: 1.85;
    }


    .policy ul,
    .points ul {
        padding-left: 1.5em;
					    padding: 0 100px 0 20px;
    }

    .policy ul li,
    .points ul li {
        font-size: 14px;
        line-height: 1.75;
    }

    .points ul li h3,
    .points ul li h4,
    .points ul li p {
        display: block;
        margin-right: 0;
    }

    .points ul li dl dt,
    .points ul li dl dd {
        float: none;
        width: auto;
        margin-left: 0;
    }

    .highlight {
        padding: 12px 14px;
        font-size: 14px;
        line-height: 1.8;
    }

    div.gyouji {
        margin-left: 0;
    }

    .gyouji ul {
        padding-left: 1.4em;
    }

    .gyouji ul li {
        margin-bottom: 5px;
    }

    .houshin {
        padding-left: 0;
    }

    .houshin strong {
        margin-bottom: 0;
    }

    .houshin strong a {
        display: block;
        padding: 10px 4px;
        border-bottom: 1px solid #ddd;
        line-height: 1.55;
    }

    span.space_x4 {
        margin-left: 0;
    }

    div#footer p#copyright {
        padding: 14px 12px;
        font-size: 11px;
        line-height: 1.5;
    }
}

 @media screen and (max-width: 540px) {
				.policy ul {
				padding: 0 0 0 20px;
				}
		.points ul{
							padding: 0 0 0 20px;

		}
				.points ul li ul{
							padding: 0;
				}
				.policy,
				.points {
				background-image: none;
				margin-bottom:8px;
				}
				.policy_img{
				display: block;
				text-align: right;
				}
				.policy_img img{
				width:80px;
				height:auto;
				}
				.points_img{
				display: block;
				text-align: right;
		}
	.points_img img{
				width:250px;
				height:auto;
				}
}

@media screen and (max-width: 800px) and (prefers-reduced-motion: reduce) {
    #header-nav,
    .menu-toggle-icon span {
        transition: none !important;
    }
}

@media screen and (max-width: 380px) {
    #header-nav li,
    #header-nav li a {
        height: 72px;
    }

    #header-nav li {
        background-size: 72px 72px;
    }

    #header-nav li a {
        font-size: 11px;
    }

    #header-nav li.nav-3 a {
        font-size: 9px;
    }

    #page-header .page-title {
        font-size: 22px;
    }

    div#mainContents {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* Smartphone header and full-screen opening navigation */
.menu-toggle {
    display: none;
}

.menu-toggle-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 800px) {
    body.is-menu-open {
        overflow: hidden;
    }

    div#header.clearfix::after {
        display: none;
    }

    div#header {
        position: sticky;
        top: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 66px;
        margin: 0;
        padding: 10px 16px;
        background: #fff;
        box-sizing: border-box;
    }

    div#header .logo {
        float: none;
        display: block;
        flex: 0 1 auto;
        width: min(69vw, 297px);
        max-width: calc(100% - 60px);
        margin: 0;
        text-align: left;
    }

    div#header .logo img {
        display: block;
        width: 100%;
        max-width: 230px;
        height: auto;
    }

    .menu-toggle {
        position: relative;
        display: block;
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #d45d61;
        font: inherit;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }

    .menu-toggle-icon,
    .menu-toggle-icon span {
        display: block;
    }

    .menu-toggle-icon {
        position: absolute;
        inset: 0;
    }

    .menu-toggle-icon span {
        position: absolute;
        left: 10px;
        width: 28px;
        height: 2px;
        background: currentColor;
        transform-origin: center;
        transition: top 0.24s ease, transform 0.24s ease, opacity 0.18s ease;
    }

    .menu-toggle-icon span:nth-child(1) {
        top: 14px;
    }

    .menu-toggle-icon span:nth-child(2) {
        top: 23px;
    }

    .menu-toggle-icon span:nth-child(3) {
        top: 32px;
    }

    .menu-toggle.is-open .menu-toggle-icon span:nth-child(1) {
        top: 23px;
        transform: rotate(45deg);
    }

    .menu-toggle.is-open .menu-toggle-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open .menu-toggle-icon span:nth-child(3) {
        top: 23px;
        transform: rotate(-45deg);
    }

    /* JavaScriptが使えない場合は、従来どおりメニューを表示します。 */
    html.menu-enabled #header-nav {
        position: fixed;
        top: 66px;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        display: block;
        width: 100%;
        height: calc(100vh - 66px);
        height: calc(100dvh - 66px);
        margin: 0;
        padding: 26px 5% 40px;
        border: 0;
        background: rgba(255, 255, 255, 0.98);
        box-sizing: border-box;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
    }

    html.menu-enabled #header-nav.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* ページ移動中はメニューを閉じず、前ページの本文を見せないようにします。 */
    body.is-page-leaving #header-nav,
    body.is-page-leaving .menu-toggle,
    html.menu-state-reset #header-nav,
    html.menu-state-reset .menu-toggle-icon span {
        transition: none !important;
    }

    body.is-page-leaving #header-nav,
    body.is-page-leaving .menu-toggle {
        pointer-events: none;
    }

    #header-nav li,
    #header-nav li.nav-1,
    #header-nav li.nav-2,
    #header-nav li.nav-3,
    #header-nav li.nav-4,
    #header-nav li.nav-5  {
        float: none;
        display: block;
        width: 100%;
        max-width: 640px;
        height: auto;
        margin: 0 auto;
        background-image: none;
        box-sizing: border-box;
    }

    #header-nav li:first-child {
        border-top: 1px solid #e6c9ca;
    }

    #header-nav li a,
    #header-nav li.nav-3 a {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 56px;
        height: auto;
        padding: 14px 42px 14px 8px;
        border: 0;
        border-bottom: 1px solid #e6c9ca;
        background: transparent;
        color: #8e5558;
        font-size: 15px;
        font-weight: bold;
        line-height: 1.45;
        text-align: left;
        box-sizing: border-box;
    }

    #header-nav li a::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 10px;
        width: 8px;
        height: 8px;
        border-top: 1px solid #c67578;
        border-right: 1px solid #c67578;
        transform: translateY(-50%) rotate(45deg);
    }

    #header-nav li a:hover,
    #header-nav li.nav-1 a:hover,
    #header-nav li.nav-2 a:hover,
    #header-nav li.nav-3 a:hover,
    #header-nav li.nav-4 a:hover,
    #header-nav li.nav-5 a:hover,
    #header-nav li a:focus {
        background-image: none;
        background-color: #fbf1f2;
        color: #8e5558;
    }
}

@media screen and (max-width: 380px) {
    div#header {
        min-height: 70px;
        padding-right: 12px;
        padding-left: 12px;
    }

    html.menu-enabled #header-nav {
        top: 70px;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        padding-right: 16px;
        padding-left: 16px;
    }

    #header-nav li,
    #header-nav li a,
    #header-nav li.nav-3 a {
        height: auto;
    }
	
				.flow_list{
					display: block;
				}
				.flow_list dt{
					padding: 6px 0 2px;
				}	
				.flow_list dd{
					padding: 6px 0 15px;
				}	
	
}
