﻿div#page7 .box p {
    text-orientation: upright;
}
@media screen and (min-width:668px){
    span.rotate {
    transform: rotate(90deg);
    display: inline-block;
}
}
section#intro h2 {
    font-size: 44px;
    line-height: 74px;
}
.page4_content1 {
    margin-bottom: 20px;
}
.page4_content1 p {
    background: white;
    padding: 30px;
}
#fix_bnr a:hover {
    opacity: 0.8;
}
.line_banner {
    max-width: 400px;
    margin: 50px auto;
}
.line_banner a:hover {
    opacity: 0.8;
}
.line_banner a{
    transition:all 0.3s;
}
.txt_color2 {
    color: #122248;
}
#fix_bnr {
    bottom: 7px;
    right: 84px;
    z-index: 10;
    width: 401px;
    border: 2px solid #051120;
}
#copyright{
	padding-bottom: 100px;
}
@media screen and (max-width: 667px){
#fix_bnr {bottom: 7px;right: 72px;width: 65%;}
#copyright{padding-bottom: 55px;}
}


section#intro {
    position: relative;
}
section#intro:after {
    content: "YAMATOKENSOU";
    position: absolute;
    right: 0;
    bottom: -20px;
    font-size: 120px;
    line-height: 120px;
    color: #ffffff1c;
}
.step .cate_box:last-of-type:before {
    display: none;
}
.step{
    counter-reset: number 0;
}
.step .cate_box:after {
    counter-increment: number 1;
    content: "step." counter(number);
    position: absolute;
    top: -20px;
    font-size: 24px;
    left: -10px;
    font-weight: bold;
    background: #122248;
    color: #ffffff;
    padding: 0 30px;
    line-height: 37px;
}
.step .cate_box {
    position: relative;
    background: #fdfdf7;
    padding-top: 35px;
}
.step .cate_box:before {
    width: 1px;
        height: 160px;
    border-left: 2px dashed #122248;
    content: "";
    position: absolute;
    left: 50%;
    z-index: -1;
    top: 0;
}
#page_title h2:before {
    width: 100px;
    height: 100px;
    content: "";
    position: absolute;
    background: url(Dup/img/title_b.png) no-repeat;
    background-position: center;
    left: calc(50% - 53px);
    background-size: contain;
    /* z-index: -1; */
    opacity: 0.1;
    top: -40px;
}
#page_title h2 {
    font-size: 24px;
    position: relative;
}

a.linkStyle {
    color: #122248;
    text-decoration: underline;
}
.border_color2 {
    border-color: #b9b9b9;
}
div#footer {
    background: url(Dup/img/foot_bg.jpg);
    background-size: 500px;
}
.top_cms_title h3:before {
    width: 100px;
    height: 100px;
    content: "";
    position: absolute;
    background: url(Dup/img/title_b.png) no-repeat;
    background-position: center;
    left: calc(50% - 53px);
    background-size: contain;
    z-index: -1;
    opacity: 0.1;
    top: -40px;
}
.top_cms_title {
    padding-top: 50px;
}
.link_type1.cms_wrap.d_flex.flex_stretch {
    gap: 20px 0;
}
.link_type1.cms_wrap.d_flex.flex_stretch .link_top {
    width: 33% !important;
}
.link_type1 .link_top .link_title {
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
	margin-bottom: 30px;
    color: #474521;
    font-weight: normal;
}
.link_type1 .link_top .link_title {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: bold;
}
.link_type1 .link_top a{
	padding-top: 80px;
    padding-bottom: 60px;
}
.link_type1 .link_top a:hover{
    background-color: #ededeb;
}
.link_type1 .link_top a:hover .link_img1{
    transform: translate(-50%, -50%) scale(1.1,1.1);
    opacity: 0.1;
}
@media screen and (max-width: 667px){
.link_type1 .link_top .link_title{
    font-size: 15px;
}
}

#contents3::after{
    background-color: #ffffff78;
}
section#contents3 {
    background: none;
}
#header h1.active img {
    max-width: 150px;
}
.main_b img {
    width: 280px;
}
section#main_img {
    position: relative;
}
.main_b {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    top: 0;
}
.main_b:before {
    content: "";
    position: absolute;
    background: #0000004d;
    top: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
}
body#body {
    background: url(Dup/img/bg.jpg);
    background-size: 500px;
}
#main_img {
    height: auto;
    max-height: 100vh;
}
#contents1 h2 span:before {
    width: 300px;
    height: 300px;
    content: "";
    position: absolute;
    background: url(Dup/img/en1.png) no-repeat;
    background-size: contain;
    bottom: -150px;
    left: 170px;
    opacity: 0.4;
}
#contents2 h3.txt_right {
    font-size: 32px;
}

@media screen and (max-width:768px){
    #contents1 p .txt_vertical {
    writing-mode: horizontal-tb;
}
#contents1 p {
    width: 100% !important;
    max-height: none;
}
    #header h1.active img {
    max-width: 80px;
}#header h1 span{
    padding: 10px;
}
.main_b img {
    width: 180px;
}
section#intro:after{
    font-size: 80px;
    line-height: 90px;
}
#contents1 h2 span:before {
    width: 220px;
    height: 220px;
    content: "";
    position: absolute;
    background: url(Dup/img/en1.png) no-repeat;
    background-size: contain;
    bottom: -110px;
    left: 60px;
    opacity: 0.4;
}
.link_type1.cms_wrap.d_flex.flex_stretch .link_top {
    width: 30% !important;
}
.link_type1.cms_wrap.d_flex.flex_stretch {
    gap: 10px 20px;
}
#header h1.active img {
    max-width: 80px;
}
#header h1 span {
    padding: 10px;
}
}

@media screen and (max-width:667px){
    #main_img {
    height: 50vh;
}
section#main_img img {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: cover;
}
section#main_img .main_b img {
    position: relative;
    width: 140px;
    object-fit: contain;
}
#header h1.active img {
    max-width: 60px;
}
#header h1 span {
    padding: 5px;
}
section#intro:after {
    font-size: 40px;
    line-height: 70px;
}
section#intro {
    position: relative;
    padding: 40px;
}
#contents2 h3.txt_right {
    font-size: 22px;
}
.link_type1.cms_wrap.d_flex.flex_stretch .link_top {
    width: 100% !important;
}
#copyright {
    padding-bottom: 75px;
}
#page_title h2 {
    font-size: 20px; 
}
#page10 ul li a span {
    white-space: nowrap;
}
section#intro h2 {
    font-size: 24px;
    line-height: 38px;
    white-space: nowrap;
}
div#page4 .cate_list a img{
    padding-left: 10px;
}
.cate_list li a {
    width: 100% !important;
    display: inline-block;
    box-sizing: border-box;
    white-space: nowrap;
}
.cate_list li {
    margin: 10px;
    margin-left: 0;
    width: 100%;
    margin-right: 0;
}
}