@charset "utf-8";
/* CSS Document */

/* FIRST BANK OF TOYAMA
-----------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@1,300&family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@400;500;600;700&display=swap');

/* ==============================================
    index / detail
============================================== */
.tit h2 {
	margin-top: 60px;
}
.works p strong,
#main p strong {
	display: block;
	margin-bottom: 5px;
	font-size: 18px;
}
.works p b {
	display: block;
	font-size: 16px;
}
@media screen and (max-width: 600px) {
    .works p strong,
    #main p strong {
        font-size: 15px;
    }
	.tit h2 {
	text-align: center;
}
	.tit h2 img {
	width: auto;
	height: 24px;
}
}

/* ==============================================
    detail
============================================== */
#title {
	position: relative;
	width: 950px;
	margin: 0 auto 20px;
	z-index: 0;
}
#title p {
	position: absolute;
	top: 8px;
	right: 7px;
}
@media screen and (max-width: 600px) {
    #title,
    h2 img {
        width: 100%;
    }
    #title p {
        top: 50%;
        -webkit-transform: translateY(-50%);
        transform: translateY(-50%);
        right: 7px;
    }
    #title p img {
        width: 65px;
    }
}

#contents {
    position: relative;
    overflow: hidden;
}
#contents::before {
    position: absolute;
    content: "";
    display: block;
    z-index: -1;
    width: 1350px;
    height: 1350px;
    background: #0a9a4f;
    opacity: 0.04;
    transform: rotate(45deg);
    top: 830px;
    left: -71%;
}
@media screen and (max-width: 600px) {
    #contents::before {
        top: 113vw;
        left: -125%;
        width: 250vw;
        height: 250vw;
    }
}

#name {
    margin-bottom: 150px;
    padding: 0.5em 1.5em 0.2em 0;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}
#name span {
    position: relative;
    display: inline-block;
    margin-left: 1.5em;
    padding-left: 1.5em;
}
#name span::before {
    content: "";
    width: 1px;
    height: 2.2em;
    position: absolute;
    left: 0;
    top: -0.5em;
    background: #B2B2B2;
}
@media screen and (max-width: 600px) {
    #name {
        margin-bottom: 70px;
        padding-right: 1em;
        font-size: 14px;
    }
    #name span {
        margin-left: 1em;
        padding-left: 1em;
    }
}
@media screen and (max-width: 400px) {
    #name {
        font-size: 12px;
    }
}

#contents h3 {
    position: relative;
    margin-bottom: 40px;
	font-family: 'Noto Serif JP', serif;
    font-weight: 600;
    font-size: 33px;
    color: #2A833B;
    letter-spacing: 0.1em;
}
#contents h3::before,
#contents h3::after {
    position: absolute;
    top: -40px;
    left: 0;
    content: "";
    height: 1px;
}
#contents h3::before {
    width: 100%;
    background: #C8C8C8;
}
#contents h3::after {
    width: 60px;
    background: #0A9A4F;
}
@media screen and (max-width: 600px) {
    #contents h3 {
        margin-bottom: 30px;
        font-size: 25px;
    }
    #contents h3::before,
    #contents h3::after {
        top: -30px;
    }
}

#block1 p,
#block2 p,
#oneday p,
#message p {
	font-family: "Meiryo UI", sans-serif;
    font-size: 16px;
    line-height: 2em;
}

#block1 {
    margin-bottom: 115px;
}
#block2 {
    margin-bottom: 85px;
}
@media screen and (min-width: 601px) {
    #block1,
    #block2 {
        display: flex;
        justify-content: space-between;
    }
    #block1 div,
    #block2 div {
        width: 410px;
    }
    #block1 div,
    #block2 span {
        order: 2;
    }
    #block2 div,
    #block1 span {
        order: 1;
    }
    #block1 div {
        margin-right: 40px;
    }
    #block2 div {
        margin-left: 40px;
    }
    #block1 span,
    #block2 span {
        padding-top: 10px;
    }
}
@media screen and (max-width: 600px) {
    #block1,
    #block2 {
        margin-left: 20px;
        margin-right: 20px;
    }
    #block1 span,
    #block2 span {
        display: block;
        margin-top: 2em;
        text-align: center;
    }
    #block1 span img,
    #block2 span img {
        width: 100%;
        max-width: 420px;
    }
    #block1 p,
    #block2 p,
    #oneday p,
    #message p {
        font-size: 14px;
        line-height: 1.8em;
    }
}

/* ==============================================
    oneday
============================================== */
#oneday {
    width: 790px;
    margin: 0 auto 120px;
}
#oneday h3 {
    margin-bottom: 10px;
}
#oneday h3::before,
#oneday h3::after {
    content: none;
}
#oneday .sliderWraper {
    padding: 30px;
    background: #fff;
    border: 1px solid #85CDA7;
}
#oneday .slider {
    width: 100%;
    padding-bottom: 80px;
}
@media screen and (min-width: 601px) {
    #oneday div.oneday {
        display: flex !important;
        justify-content: space-between;
    }
    #oneday div.oneday div {
        width: 320px;
    }
}
#oneday .oneday h4 {
    margin-bottom: 25px;
    font-size: 46px;
    font-family: Lato, sans-serif;
    letter-spacing: 0.05em;
    color: #0aa3d4;
    text-shadow: 3px 3px 2px #dbdbdb;
    font-weight: 300;
}
#oneday .oneday h5 {
    margin-bottom: 0.7em;
    padding-bottom: 0.7em;
    border-bottom: 1px dotted #2B9EC2;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: 900;
    color: #000;
    line-height: 1.3;
}

#oneday .slick-dots {
    bottom: 0;
}
#oneday .slick-prev,
#oneday .slick-next {
    width: 30px;
    height: 50px;
}
#oneday .slick-prev {
	left: -75px;
}
#oneday .slick-next {
	right: -75px;
}
#oneday .slick-prev::before,
#oneday .slick-next::before {
    position: absolute;
    top: 6px;
    content: "";
    display: block;
    background: none;
	width: 33px;
	height: 33px;
    border-top: 3px solid #2A833B;
    border-right: 3px solid #2A833B;
}
#oneday .slick-prev::before {
    left: 6px;
    transform: rotate(-135deg);
}
#oneday .slick-next::before {
    right: 6px;
    transform: rotate(45deg);
}
#oneday .slick-dots li {
    margin: 0 7px;
}
#oneday .slick-dots li button {
    line-height: 20px;
    padding: 0;
}
#oneday .slick-dots li button:before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50% 50%;
    background: #919191;
    border: 2px solid #fff;
    opacity: 1;
}
#oneday .slick-dots li.slick-active button:before {
    width: 12px;
    height: 12px;
    background: none;
    border-color: #0A9A4F;
}
#oneday .slick-dotted.slick-slider {
    margin-bottom: 0
}
@media screen and (max-width: 600px) {
    #oneday {
        width: calc(100% - 80px);
        margin-bottom: 80px;
    }
    #oneday .sliderWraper {
        padding: 20px;
    }
    #oneday .slider {
        padding-bottom: 40px;
    }
    #oneday .oneday span {
        display: block;
        margin-bottom: 1em;
        text-align: center;
    }
    #oneday .oneday span img {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        
    }
    #oneday .oneday h4 {
        margin-bottom: 14px;
        font-size: 35px;
        letter-spacing: 0.02em;
    }
    #oneday .oneday h5 {
        font-size: 18px;
    }
    #oneday .oneday p {
        font-size: 14px;
    }

    #oneday .slick-prev {
        left: -50px;
    }
    #oneday .slick-next {
        right: -50px;
    }
    #oneday .slick-prev::before,
    #oneday .slick-next::before {
        width: 20px;
        height: 20px;
    }
    #oneday .slick-dots li {
        margin: 0 5px;
    }
    #oneday .slick-dots li button:before {
        width: 10px;
        height: 10px;
    }
    #oneday .slick-dots li.slick-active button:before {
        width: 11px;
        height: 11px;
    }
}

/* ==============================================
    message
============================================== */
#message,
#message div {
    position: relative;
}
#message {
    min-height: 340px;
    margin-bottom: 70px;
    padding-left: 50px;
}
#message::before {
    position: absolute;
    content: "";
    display: block;
    z-index: -1;
    width: 0;
    height: 0;
    border-left: 360px solid #ffe600;
    border-top: 360px solid transparent;
    border-bottom: 360px solid transparent;
    opacity: 0.08;
    transform: rotate(-45deg);
    top: -370px;
    right: -50px;
}
#message h3 {
    padding-left: 10px;
}
#message h3::before,
#message h3::after {
    top: -20px;
}
#message div {
    width: 560px;
    padding-top: 20px;
}
@media screen and (min-width: 601px) {
    #message div::after {
        position: absolute;
        content: url("image/works_message.png");
        top: 0;
        right: -20px;
    }
    #message p {
        padding-left: 65px;
        padding-right: 55px;
    }
    #message span {
        position: absolute;
        top: 0;
        right: 30px;
    }
}
@media screen and (max-width: 600px) {
    #message {
        margin-bottom: 70px;
        padding: 0 20px;
    }
    #message::before {
        border-left-width: 52vw;
        border-top-width: 52vw;
        border-bottom-width: 52vw;
        top: -57vw;
        right: -8vw;
    }
    #message div {
        width: 100%;
        padding-top: 20px;
    }
    #message p {
        padding: 0 10px;
    }
    #message span {
        display: block;
        margin-top: 2em;
        text-align: center;
    }
}

/* ==============================================
    worksBtn
============================================== */
#worksBtn {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	width: 780px;
	margin: 0 auto;
}
#worksBtn li {
    list-style: none;
	width: 148px;
    margin-bottom: 10px;
    border: 1px solid #7FBD9D;
	text-align: center;
}
#worksBtn li a,
#worksBtn li strong {
	display: block;
}
#worksBtn li a {
    height: 155px;
    padding-top: 10px;
	font-size: 12px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}
#worksBtn strong {
	font-size: 14px;
    font-weight: 500;
}
#worksBtn img {
	width: 57px;
	margin-bottom: 8px;
}
@media screen and (max-width: 600px) {
    #worksBtn {
        position: relative;
        width: 464px;
    }
    #worksBtn::after {
        content: "";
        display: block;
        width: 148px;
    }
}
@media screen and (max-width: 480px) {
    #worksBtn {
        width: 290px;
    }
    #worksBtn li,
    #worksBtn::after {
        width: 140px;
    }
}



