/*
Theme Name: 松弘堂 3.0
Description: 松弘堂公式サイト専用CSS スマホライクへ変更
Version: 3.0
Author: SHOKODO.Co.,Ltd

SP Like
Tabは768pxと960px周辺で調整

SP max-width: 435px
Tab min-width: 436px max-width: 960px
PC min-width: 961px
*/
/*/////////////////////////////////////////
    Base Structure
    Common
/////////////////////////////////////////*/
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    color: #33474c;
    font-size: 13px;
	font-size: 0.8125rem;
	font-family: 'ヒラギノ角ゴ ProN W3',"Hiragino Kaku Gothic ProN","ヒラギノ角ゴ Pro W3","Hiragino Kaku Gothic Pro","メイリオ","Meiryo",Helvetica, Arial,"ＭＳ Ｐゴシック","MS PGothic",sans-serif;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-between;
}
/*=======================================
    reset
=======================================*/
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/*=======================================
    align
=======================================*/
.aligncenter {
    display: block;
    margin: 0 auto;
}
.alignleft {
    float: left;
    margin: 0.5em 2em 2em 0;
}
.alignright {
    float: right;
    margin: 0.5em 0 2em 2em;
}
.sp-br { display: block; }
/*-----------------------------------
    Header
-----------------------------------*/
header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
}
@media screen and (min-width: 767px) {
    header {
        justify-content: space-between;
    }
}
    #header-title-area {
        margin: 0;
        padding: 1em;
    }
        #header-title-area h1.site-title-img {
            margin: 0;
            padding: 0;
        }
    #header-image-area {
        width: 100%;
        height: 300px;
        background-image: url("images/main-visual.webp");
        background-size: cover;
        background-repeat: no-repeat;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        border-top: #009ee5 8px solid;
    }

        .site-description {
            font-size: 180%;
            font-weight: 500;
            color: #fff;
            text-align: center;
        }
    .header-link-box {
        padding: 1em;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }
    .hw_text {
        font-size: 90%;
        font-weight: 400;
        margin: 0;
        padding: 0;
    }
        .hw_text a {
            color: #009ee5;
            text-decoration: none;
            margin: 0;
            padding: 0;
            }
    .hw_text_large {
        font-size: 180%;
        font-weight: 700;
        margin: 0;
        padding: 0;
    }
@media screen and (min-width: 768px) {
    .site-description {
        font-size: 210%;
    }
    .sp-br { display: none; }
}
@media screen and (min-width: 1025px) {

}
/* Lower Header-------------------- */
    .lower-title-area {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
        .lower-title-area .site-description {
            color: #b9b9b9;
            font-size: 130%;
            padding-left: 1.5em;
        }
@media screen and (min-width: 960px) {
    .lower-title-area {
        flex-direction: row;
    }
}
/*-----------------------------------
    Navigation//SP用ドロワーは別ファイル
-----------------------------------*/
@media screen and (min-width: 768px) {
    .nav-unshown,
    #nav-open {
        display:none;
    }
    #head-nav ul.nav-area {
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin: 0;
        padding: 0 1em;
        height: 75px;
        background-color: #009ee5;
        box-shadow: #999 -1px 1px 5px;
      }
      #head-nav ul.nav-area li {
        text-align: center;
        padding: 0 1em;
        margin: 1em 0;
        box-sizing: border-box;
        border-right: #bdedf5 1px solid;
    }
        #head-nav ul.nav-area li:first-child {
            border-left: #bdedf5 1px solid;
        }
      #head-nav ul.nav-area li a {
        font-size: 0.98em;
        color: #fff;
        text-decoration: none;
        padding: 0;
        box-sizing: border-box;
    }
        #head-nav ul.nav-area li a:hover {
            background-color: #1177ba;
        }
}
@media screen and (min-width: 1025px) {
    #head-nav ul.nav-area li a {
        font-size: 1.2em;
        padding: 1em;
    }
}
/*-----------------------------------
    Heading
-----------------------------------*/
h1 {
    font-size: 200%;
    margin: 0;
}
h2 {
    font-size: 180%;
    margin: 0;
}
h3 {
    font-size: 150%;
    margin: 0;
}
h4 {
    font-size: 120%;
    margin: 0;
}
/*-----------------------------------
    Main
-----------------------------------*/
#main {
    width: 95%;
    margin: 2em auto;
}
    #main::after {
        display: block;
        clear: both;
        content: '';
    }
@media screen and (min-width: 767px) and (max-width: 958px) {
    #main {
        width: 90%;
    }
}
@media screen and (min-width: 959px) {
    #main {
        width: 75%;
    }
}
#printing,
#sales-item,
#ad-item,
#digital {
    margin: 2em 0;
}
    #content h2 {
        position: relative;
        color: #009ee5;
        font-weight: 500;
        padding: 0;
        margin: 0 1em;
        border-bottom: #ddd 3px solid;
    }
        #content h2::after {
            position: absolute;
            content: '';
            display: block;
            border-bottom: #009ee5 3px solid;
            bottom: -3px;
            width: 10%;
        }
    .item-area {
        padding: 1rem 0;
        margin: 0 1.5em;
        font-size: 120%;
    }
    .img-area {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        max-width: 900px;
        margin: 0 auto;
    }
        .img-area img {
            /* width: calc(100% / 3); */
            width: 150px;
            max-width: 150px;
            height: auto;
        }
        .img-area picture {
            /* width: calc(100% / 3); */
            width: 150px;
            max-width: 150px;
            height: auto;
        }
@media screen and (min-width: 767px) {
    .img-area {
        justify-content: center;
    }
    .img-area img {
        /* width: calc(100% / 6); */
        width: 150px;
        max-width: 150px;
        height: auto;
    }
    .img-area picture {
        /* width: calc(100% / 6); */
        width: 150px;
        max-width: 150px;
        height: auto;
    }
}

/*-----------------------------------
    Footer
-----------------------------------*/
footer {
    margin: 0;
    border-top: #eee 1px solid;
}
    .foot-area {
        padding: 2em;
        display: block;
    }
    .foot-calendar {
        padding: 0;
        border-right: none;
    }
    .foot-add {
        padding: 0 1em;
        border-left: none;
    }
    .foot-calendar,
    #foot-nav {
        width: 100%;
        box-sizing: border-box;
    }

    .foot-add {
        width: 100%;
        padding: 0 1em;
        box-sizing: border-box;
    }
    #foot-nav {
        align-self: flex-end;
    }
        #foot-nav ul.nav-area {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-start;
        }
        #foot-nav ul.nav-area li {
            padding: 1em 2em;
        }
            #foot-nav ul.nav-area li a {
                color: #0084b2;
                text-decoration: none;
            }
            .foot-add .telno,
            .foot-add .faxno {
                display: block;
                font-size: 150%;
                font-weight: 700;
                margin: 0 0 0 0;
                padding: 0;
            }
            .foot-add .foot-map {
                position: relative;
                width: 90%;
                height: 255px;
                padding: 0 5%;
            }
                .foot-add .foot-map iframe {
                    position: absolute;
                    top: 0;
                    left: 0;
                    width: 100%;
                    height: 100%;
                    aspect-ratio: 16 / 9;
                }
        #copyright {
            text-align: right;
            padding: 1em 2em;
            color: #bfe7f8;
            background-color: #009ee5;
        }
            #copyright a {
                color: #bfe7f8;
            }
@media screen and (min-width: 768px) {
    .foot-area {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
        .foot-calendar,
        .foot-add {
            width: calc(100% / 2);
            padding: 0 1em;
            box-sizing: border-box;
        }
        .foot-calendar {
            border-right: #eee 1px solid;
        }
        .foot-add .telno,
        .foot-add .faxno {
            display: inline-block;
            margin: 0 1em 0 0;
        }
        #foot-nav ul.nav-area {
            justify-content: flex-end;
        }
}
@media screen and (min-width: 959px) {
    .foot-area {
        justify-content: center;
    }
    .foot-calendar,
    .foot-add  {
        width: calc(calc(100% - 2em) / 3);
        padding: 0 1em;
        box-sizing: border-box;
    }
    #foot-nav {
        width: 100%;
        text-align: right;
    }
}
/*-----------------------------------
    Link
-----------------------------------*/
#pagetop {
    z-index: 98;
    position: fixed;
    bottom: 64px;
    right: 0;
    padding: 1em;
    width: 55px;
    height: 67px;
    font-size: 80%;
    line-height: 100%;
    text-align: center;
    margin: 0 auto;
    background-color: #009ee5;
    color: #fff;
    text-decoration: none;
    box-sizing: border-box;
}
    #pagetop::after {
        content: '';
        display: block;
        position: absolute;
        top: 45px;
        right: 10%;
        width: 20px;
        height: 20px;
        border-bottom: #fff 2px solid;
        border-left: #fff 2px solid;
        transform: translateX(-50%) rotate(135deg);
    }
@media screen and (min-width: 768px) {
    #pagetop {
        bottom: 95px;
    }
}

/*-----------------------------------
    Breadcrumb
-----------------------------------*/
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /* border-bottom: #009ee5 1px solid; */
}
    .breadcrumb li {
        padding: 1em 0;
    }
    .breadcrumb li i {
        padding: 0 1em;
    }
    .breadcrumb li a {
        color: #009ee5;
        text-decoration: none;
    }
        .breadcrumb li a:hover {
            color: #009ee5;
            text-decoration: underline;
        }
/*-----------------------------------
    Lower
-----------------------------------*/
.lower-header-area {
    border-bottom: #009ee5 5px solid;
}
@media screen and (min-width: 768px) {
    .lower-header-area {
        border-bottom: none;
    }
}
#lower-contents {
    position: relative;
    padding: 2em 0;
}
#lower-contents h1 {
    position: relative;
    padding-left: 1em;
    color: #009ee5;
}
    #lower-contents h1::before {
        position: absolute;
        top: 50%;
        left: 0;
        content: '';
        border-top: #009ee5 2px solid;
        width: 0.8em;
        height: 1px;
    }
#lower-contents h2 {
    margin-bottom: 1.5em;
}
#lower-contents h3,
#lower-contents h4 {
    margin-top: 1.5em;
}
#lower-contents p {
    padding: 0 1em;
}

#lower-contents ul,
#lower-contents ol {
    padding: 0 1em;
}
    #lower-contents ul li {
        padding: 1em;
        padding-left: 1em;
        text-indent: -1em;
    }
.top_link a {
    display: inline-block;
    padding: 1em 2em;
    color: #009ee5;
    text-decoration: none;
    border: #009ee5 1px solid;
}
    .top_link a:hover {
        font-weight: 700;
        background-color: #bdedf5;
        border: #009ee5 1px solid;
    }
/*-----------------------------------
    Contact Form
-----------------------------------*/
button,
input,
select,
textarea {
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: inherit;
	padding: 6px;
	padding: 0.6rem;
    box-sizing: border-box;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="email"],
input[type="number"],
textarea {
	border:1px solid #1177ba;
	background-color:#b8dcf1;
    width: 100%;
}

button,
input {
	line-height: normal;
}

textarea {
	font-size: 100%;
	overflow: auto;
	vertical-align: top;
}
/* input[type="checkbox"], */
input[type="radio"],
input[type="file"],
input[type="hidden"],
input[type="image"],
input[type="color"] {
	border: 0;
	border-radius: 0;
	padding: 0;
}
table.inquiry-form {
	width:90%;
    border: none;
    margin: 2em auto;
}
	table.inquiry-form th {
        display: block;
		width: 100%;
        text-align: left;
        padding: 0 1em;
        box-sizing: border-box;
        background-color: #cdedf5;
	}
	table.inquiry-form td {
        display: block;
		width:100%;
        padding-bottom: 0.5em;
	}
    table.inquiry-form .mwform-tel-field input[type="text"] {
        width: 30%;
    }
	table.inquiry-form input[type="submit"] {
        width: 100%;
		height:3em;
		font-size:130%;
		color:#fff;
		background:#009EE5;
		border:1pt solid #B8DCF1;
	}
		table.inquiry-form input[type="submit"]:hover {
			height:3em;
			font-size:130%;
			font-weight:bold;
			color:#009EE5;
			background:#fff;
			border:2pt solid #009EE5;
		}
        .entry-content table.inquiry-form th,
		.entry-content table.inquiry-form td {
			display:block;
			width:100%;
			margin:0;
			padding:0;
			border:none;
		}
@media screen and (min-width: 768px) {
	table.inquiry-form th {
        display: table-cell;
		width:25%;
        text-align: center;
	}
    table.inquiry-form td {
        display: table-cell;
		width:75%;
        padding-bottom: 0;
	}
    table.inquiry-form .mwform-tel-field input[type="text"] {
        width: 30%;
    }
}
/*-----------------------------------
    Profile
-----------------------------------*/
#lower-contents ol {
    width: 80%;
    margin: 1em auto;
}
    #lower-contents ol li {
        padding-bottom: 0.5em;
    }
.profile-box,
.history-box {
    border-collapse: collapse;
    width: 90%;
    margin:2em auto;
}
.profile-box th {
    width: 30%;
    padding: 1em 1em 1em 8px;
    box-sizing: border-box;
    border-left: 8px solid #bdedf5;
}
.history-box {
    border-top: 1px dashed #999;
}
.history-box tbody tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
    .history-box th {
        width: 50%;
        padding: 0.5em 0.5em;
        box-sizing: border-box;
        background-color: #cdedf5;
    }
        .history-box th {
            text-align: left;
        }
        .history-box th:first-of-type {
            text-align: right;
        }
    .history-box td {
        width: 100%;
        padding: 1em;
        box-sizing: border-box;
    }
.profile-box td {
    width: 75%;
    padding: 1em;
    box-sizing: border-box;
}
    .profile-box th,
    .profile-box td,
    .history-box th,
    .history-box td {
        border-bottom: 1px dashed #999;
    }
@media screen and (min-width: 768px) {
    .profile-box,
    .history-box {
        width:80%;
    }
    .history-box tbody tr {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .history-box th {
        width: 11%;
        text-align: right;
        padding: 1em 0.5em;
    }
    .history-box th:first-of-type {
        width: 16%;
        padding: 1em 0.5em;
    }
    .history-box td {
        width: 73%;
    }
    #lower-contents ol {
        width: 70%;
    }
}
@media screen and (min-width: 1024px) {
    .profile-box,
    .history-box {
        width:50%;
    }
    .history-box th {
        width: 11%;
    }
    .history-box th:first-of-type {
        width: 14%;
    }
    #lower-contents ol {
        width: 50%;
    }
}
/*-----------------------------------
    Recruit
-----------------------------------*/
.recruit-box {
    margin: 2em auto;
    text-align: left;
}
.recruit-box tr:nth-child(even) {
    background-color: #cdedf5;
}
    .recruit-box th,
    .recruit-box td {
        padding: 1em;
        box-sizing: border-box;
    }
    .recruit-box td {
        width: 75%;
    }
    .comment {
        text-align: center;
        line-height: 1.8;
        margin: 2em auto;
        padding: 1em;
        border: #ccc 2px solid;
        background-color: #cdedf5;
    }