/* ----- ----- root ----- ----- */
:root {
    --mincho: "Times New Roman","游明朝","Yu Mincho","游明朝体","YuMincho",
               "ヒラギノ明朝 Pro W3","Hiragino Mincho Pro","HiraMinProN-W3",
               "HGS明朝E","ＭＳ Ｐ明朝","MS PMincho", serif;
}


/* ----- ----- reset ----- ----- */
.post, .page {
    margin: 0;
}

ul, ol {
    margin: 0 0 1rem 0;
    padding: 0;
}

li {
    list-style: none;
}

a,
a:link,
a:visited,
a:hover,
a:active,
a:focus,
a:focus-visible,
a:target {
    color: inherit;
    text-decoration: none;
}

a:focus,
a:active,
a:focus-visible {
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

table {
    border-collapse: collapse;
}

th {
    font-weight: normal;
}

.text-l {
    text-align: left;
}

.text-c {
    text-align: center;
}

.text-r {
    text-align: right;
}

.red {
    color: #ff7676 !important;
}

/* ----- ----- global ----- ----- */
html {
    font-size: 16px;
    letter-spacing: .1rem;
}

body {
    background: #e7e8ec;
    color: #343434;
    font-family: "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "YuGothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", "Meiryo", "verdana", sans-serif;
    line-height: 1.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ----- layout ----- */
.full {
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
}

.box_lr {
    display: flex;
}

.box_lr > .image, .box_lr > .text {
    flex: 1;
}

.box_lr > .image .inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    /* aspect-ratio: 4 / 3; */
}


/* ----- font ----- */
a {
    color: #111111;
    text-decoration: none;
    transition: .2s;
}

a:visited {
    color: #111111;
}

a:hover {
    /* color: #111111;
    text-decoration: underline;
    text-underline-offset: .12em; */
}

.sub {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
}


/* ----- fadein ----- */
/* page fadein */
.page-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.page-fade.is-loaded {
    opacity: 1;
}

/* scroll */
.fadein {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fadein.show {
    opacity: 1;
    transform: translateY(0);
}

.delay {
    opacity: 0;
    transform: translateY(30px);
}
.delay.show {
    opacity: 1;
    transform: translateY(0);
}


/* ----- dot title ----- */
.dot-title {
    font-size: 1.875rem;
    font-family: var(--mincho);
    font-weight: 400;
    letter-spacing: .2rem;
    display: flex;
    align-items: center;
    gap: 14px;
}

.dot-title .dot {
    display: grid;
    grid-template-columns: repeat(4, 4px);
    grid-template-rows: repeat(4, 4px);
    gap: 3px;
    width: max-content;
    position: relative;
    bottom: 1px;
}

.grid-dot {
    width: 4px;
    height: 4px;
    background-color: #333;
    border-radius: 50%;
}


/* ----- button1 ----- */
.more-button1, .main-navigation a.more-button1 {
    display: inline-flex;
    align-items: center;
    background-color: #343434;
    border: 3px solid #343434;
    border-radius: 0.6rem;
    padding: 8px 12px 8px 24px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
}

.more-button1:hover, .main-navigation a.more-button1:hover {
    border: 3px solid #888888;
}

.more-button1.sp {
    display: none;
}

.dot-container {
    width: 33px;
    height: 33px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 2px;
}

.more-button1 .text {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-right: 36px;
    text-decoration: none;
}

.dot-button {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #000000;
}

.dot-button:nth-child(3),
.dot-button:nth-child(9),
.dot-button:nth-child(11),
.dot-button:nth-child(12),
.dot-button:nth-child(13),
.dot-button:nth-child(14),
.dot-button:nth-child(15),
.dot-button:nth-child(19),
.dot-button:nth-child(23) {
    background-color: #ffffff;
}

.more-button1:hover .dot-button:nth-child(3),
.more-button1:hover .dot-button:nth-child(8),
.more-button1:hover .dot-button:nth-child(11),
.more-button1:hover .dot-button:nth-child(12),
.more-button1:hover .dot-button:nth-child(13),
.more-button1:hover .dot-button:nth-child(14),
.more-button1:hover .dot-button:nth-child(15),
.more-button1:hover .dot-button:nth-child(18),
.more-button1:hover .dot-button:nth-child(23) {
    background-color: #ffffff;
}

.more-button1:hover .dot-button:nth-child(9),
.more-button1:hover .dot-button:nth-child(19){
    background-color: #000000;
}


/* ----- button2 ----- */
.more-button2::after {
    content: '';
    background-image: url(../images/common/icon_blank.svg);
    background-size: contain;
    background-position: center;
    width: 16px;
    height: 14px;
    display: inline-block;
    margin-left: 6px;
    position: relative;
    top: 1px;
}



/* ----- ----- header ----- ----- */
header.site-header {
    border-bottom: 1px solid #939393;
    padding: 1rem 0;
    margin-bottom: 5rem;
}

header.site-header h1 {
    margin: 0;
    line-height: normal;
}

header .site-title {
    line-height: normal;
    font-size: 2rem;
}

header .site-title {
    max-width: 220px;
}

header .blank a::after {
    content: '';
    background-image: url(../images/common/icon_blank.svg);
    background-size: contain;
    background-position: center;
    width: 16px;
    height: 14px;
    display: inline-block;
    margin-left: 6px;
    position: relative;
    top: 1px;
}


/* ----- ----- footer ----- ----- */
footer.site-footer {
    background-color: #f2f2f2;
    padding: 20px 0 0;
    margin-top: 10rem;
}

footer .top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

footer .list ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem 2rem;
    margin-bottom: 3rem;
}

footer .list a {
    display: inline-block;
}

footer .blank a::after {
    content: '';
    background-image: url(../images/common/icon_blank.svg);
    background-size: contain;
    background-position: center;
    width: 16px;
    height: 14px;
    display: inline-block;
    margin-left: 6px;
    position: relative;
    top: 1px;
}

footer .wrapper-banner {
    text-align: right;
}

#colophon {
    font-size: 0.75rem;
    text-align: right;
    padding-bottom: 1.5rem;
}


/* ----- ----- top ----- ----- */
.home main h2 {
    font-family: var(--mincho);
    font-size: 2rem;
    letter-spacing: .2rem;
    line-height: 3.8rem;
    font-weight: 500;
    margin: 0;
}

.home main h2 span {
    display: block;
}

.home .box_lr {
    margin-bottom: 3rem;
}

.box_lr .text {
    display: flex;
    align-items: center;
}

.box_lr .image .inner {
    border-radius: 1rem;
}

.box_lr .text .sub {
    margin-bottom: .5rem;
    display: block;
}


/* ----- intro ----- */
.home #intro .title {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 7rem;
}

#intro .logo {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: 4rem;
}

#intro .logo img {
    width: 100%;
    max-width: 816px;
    height: auto;
}

.home #intro .sub {
    color: #909090;
    flex: 0 0 auto;
    white-space: nowrap;
}

.home #intro .sub span {
    display: block;
}

.box_btn1 {
    margin-bottom: 5rem;
}

.box_btn1 ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3%;
}

.box_btn1 li {
    flex: 1;
    list-style: none;
    text-align: center;
}

.box_btn1 li a {
    display: block;
    font-size: 1.125rem;
    height: 100%;
    background: #ffffff;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
}

.box_btn1 li a:hover {
    background: #cccccc;
}

.box_btn1 li img, .box_btn1 li svg {
    margin-bottom: .5rem;
}

.box_btn1 li span {
    display: block;
    line-height: 1.9rem;
}

.box_btn1 .more {
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 1rem;
}


/* ----- group ----- */
#group {
    margin-bottom: 5rem;
}

#group .image .inner {
    background-size: contain;
    min-height: 600px;
}


/* ----- hqe ----- */
#hqe .lead {
    font-family: var(--mincho);
    letter-spacing: .2rem;
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 4rem;
}

#hqe .lead span:first-child {
    display: block;
}

#hqe .box_lr .left .inner, #group .box_lr .left .inner {
    padding: 4rem 13% 4rem 0;
}

#hqe .box_lr .right .inner {
    padding: 4rem 0 4rem 13%;
}

#hqe .box_lr .text p {
    margin-bottom: 3rem;
}

#cram, #medical {
    padding-top: 4rem;
}


/* ----- 教材作製部門・ブランディング ----- */
#department {
    display: flex;
    gap: 2rem;
    margin-left: calc((1350px - 1200px) / -2);
    margin-right: calc((1350px - 1200px) / -2);
}

#department > div {
    flex: 1;
    padding-top: 3rem;
}

#department .box_lr {
    background: #ffffff;
    flex: 1;
    padding: 2rem;
    border-radius: 1rem;
}

#department .box_lr {
    margin-bottom: 0;
}

#department h2 {
    font-size: 1.5rem;
    line-height: normal;
}

#department .box_lr .left .inner {
    padding-right: 8%;
}

#department .box_lr .image .inner {
    border-radius: 0;
    aspect-ratio: 1 / 1;
}


/* ----- ----- page ----- ----- */
/* ----- common ----- */
#title h1 {
    font-size: 3.125rem;
    font-family: var(--mincho);
    font-weight: 500;
    line-height: normal;
    margin: 1rem 0 5rem;
}


/* ----- 厳志舎 ----- */
.genshisha #intro {
    padding-bottom: 7rem;
}

.genshisha #intro .container {
    padding: 0;
}

.genshisha #intro h2 {
    font-family: var(--mincho);
    font-weight: 600;
    font-size: 1.75rem;
    color: #666666;
}

.box_image ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 6rem;
}

.box_image li {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
    border-radius: .6rem;
}

.genshisha #intro .title {
    text-align: center;
}

.genshisha #overview {
    background-color: #ffffff;
    padding: 2.5rem 0;
}

.genshisha #overview th, .genshisha #overview td {
    border-bottom: 1px solid #929292;
    vertical-align: top;
}

.genshisha #overview tr:last-child th, .genshisha #overview tr:last-child td {
    border-bottom: none;
}

.genshisha #overview th {
    font-family: var(--mincho);
    font-size: 1.3125rem;
    text-align: left;
    padding: 2rem 0;
    width: 13%;
}

.genshisha #overview td {
    padding: 2rem 1rem;
}

#method {
    padding-top: 5rem;
    margin-bottom: 6rem;
}

#method .row-top .card {
    flex-basis: calc((100% - 40px) / 2); /* 2枚＋間隔40px */
}

#method .row-bottom .card {
    flex-basis: calc((100% - 40px * 2) / 3); /* 3枚＋間隔2つ分 */
}

#method .row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

#method .card {
    background: #ffffff;
    border-radius: .6rem;
    flex: 1;
    position: relative;
    padding: 2rem 3%;
}

#method .card::before {
    content: attr(data-num);
    font-size: 1rem;
    display: block;
    text-align: center;
}

#method h3 {
    font-family: var(--mincho);
    font-weight: 400;
    text-align: center;
    font-size: 1.2rem;
}

#method .border {
    border-bottom: 1px solid #000000;
    width: 50px;
    display: block;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

#method .card p {
    margin: 0;
    letter-spacing: normal;
}

#features .box_lr {
    margin-bottom: 4rem;
}

#features .box_lr .right .inner {
    padding: 2rem 0 2rem 10%;
}

#features .box_lr h2 {
    font-family: var(--mincho);
    font-weight: 400;
}

#contact > .inner {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 6rem auto;
    border-radius: .6rem;
    padding: 3rem 5%;
}

#contact .title {
    padding: 1rem 2rem 1rem 1rem;
}

#contact .sub {
    margin-bottom: .7rem;
}

#contact .button {
    border-left: 1px solid #929292;
    padding-left: 3rem;
    width: 250px;
    display: flex;
    align-items: center;
}

#contact .button .more-button1 {
    margin-bottom: 1rem;
}

#contact h2 {
    font-family: var(--mincho);
    font-weight: 400;
    margin: 0;
}

#contact p {
    margin: 0;
}

#map iframe {
    width: 100%;
}


/* ----- 事業紹介 ----- */
.department-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 7rem;
}

.department-list li {
    text-align: center;
}

.department-list li a {
    display: block;
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
}

.department-list li a:hover {
    background: #cccccc;
}

.department-list .logo {
    margin-bottom: 2rem;
}

.department-list h3 {
    font-family: var(--mincho);
    font-weight: 400;
    letter-spacing: .2rem;
}

.department-list .image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: inline-block;
}


/* ----- company ----- */
.company .main-image {
    margin-bottom: 3rem;
    border-radius: 1rem;
}

.company #overview ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6%;
}

.company #overview {
    margin-bottom: 5rem;
}

.company #overview li {
    display: flex;
    align-items: end;
}

.company #overview th, .company #overview td {
    border-bottom: 1px solid #c8c8c8;
    padding: 1.2rem 0;
}

.company #overview th {
    width: 150px;
    text-align: left;
    vertical-align: top;
}

#history {
    background-color: #ffffff;
    padding: 2.5rem 0;
}

.history-list {
    position: relative;
    padding-left: 0;
    margin: 0;
}

.history-list::before {
    content: '';
    position: absolute;
    left: 129px;
    top: 27px;
    bottom: 21px;
    width: 2px;
    background: #222;
}

#history .row {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
}

#history .year {
    width: 80px;
    font-family: "Poppins", sans-serif;
    font-size: 1.5625rem;
    font-weight: 600;
}

#history .timeline {
    width: 100px;
    display: flex;
    justify-content: center;
    position: relative;
}

#history .dotted {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #222;
    position: relative;
    top: 1px;
}

#history .month {
    width: 80px;
    font-family: "Poppins", sans-serif;
    font-size: 1.5625rem;
    font-weight: 600;
    color: #d4d4d4;
}

#history .history-text {
    flex: 1;
    font-size: 16px;
}

.company #map {
    padding-top: 5rem;
}


/* ----- contact ----- */
.cf7-table {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 900px;
	margin: 0 auto;
}

.cf7-row {
	display: flex;
	align-items: center;
	gap: 20px;
    margin-bottom: 1rem;
}

.cf7-label {
	width: 250px;
	font-size: 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.cf7-input {
    width: calc(100% - 250px);
}

.wpcf7-checkbox > span {
    margin-left: 0;
    margin-right: 1rem;
}

.check .wpcf7-checkbox label {
    display: flex;
    align-items: center;
    background: #f2f3f7;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 7px 12px;
    margin-bottom: 0 !important;
}

.check .wpcf7-checkbox input {
    margin-right: 10px;
}

.wpcf7-checkbox label input {
    width: auto;
}

.wpcf7-form textarea {
    width: 100% !important;
} 

.cf7-label .req {
	background: #333;
	color: #fff;
	font-size: 12px;
	padding: 2px 12px;
	border-radius: 5rem;
}

.cf7-input input,
.cf7-input textarea {
	width: 100%;
	background: #f2f3f7;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.contact form {
    max-width: 1000px;
    margin: 0 auto;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: .3rem;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 2rem;
}

.wpcf7-form input,
.wpcf7-form textarea:not(.wpcf7-checkbox input)  {
    padding: 10px;
}

.wpcf7-form .subject label {
    margin-bottom: 0;
    padding: .5rem;
}

.wpcf7-form .subject .first {
    margin-left: 0;
}

.wpcf7-form label.textarea {
    width: 100%;
    margin-top: 3rem;
}

.scroll-box {
    background: #f2f2f2;
	width: 80%;
    height: 100px;
    overflow-y: scroll;
    padding: 5px 20px;
    margin: 3rem auto;
}

.scroll-box p {
    font-size: .8rem;
    line-height: 1.5rem;
}

.consent {
    border: 1px solid #cccccc;
    padding: 1rem 1rem;
    margin: 0 auto;
    background: #f2f3f7;
    border-radius: 4px;
}

.consent .wpcf7-form-control-wrap {
    margin-top: 0;
}

.consent label {
    margin-bottom: 0;
}

#confirm-area {
    display: none;
}

#confirm-area {
    padding: 2rem 1rem;
    background:#f9f9f9;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 20px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity .2s ease, height .2s ease;
}

#confirm-area h3 {
  margin-top: 0;
}

#confirm-area p {
    margin-bottom: .5rem;
    margin-top: .5rem;
}

#confirm-area .button {
    display: flex;
    gap: 20px;
    margin-top: 2rem;
}

#back-edit, #send-form {
    border: none;
    padding: 1rem;
    width: 50%;
}

#send-form {
    background:#343434;
    color: #ffffff;
}

.show-confirm #confirm-area {
    opacity:1;
    height:auto;
    pointer-events:auto;
    margin: 0 auto;
}

.show-confirm form.wpcf7-form {
    opacity:0;
    height:0;
    overflow:hidden;
    pointer-events:none;
}

#to-confirm {
    border: none;
    background:#ccc;
    border-radius: 0;
    color:#666;
    cursor:not-allowed;
    transition:background .2s ease;
    width: 100%;
    padding: 2rem 1rem;
}

#to-confirm.active {
    background: #343434;
    color:#fff;
    cursor:pointer;
}

#to-confirm:disabled {
    opacity:.7;
}

.swal2-actions {
    width: 100%;
}

.swal2-actions .swal2-confirm {
    width: 100%;
    background-color: #343434 !important;
    margin: 1rem;
}

.show-confirm .wpcf7 {
  display: none;
}

.show-confirm #confirm-area {
  display: block;
}

#to-confirm:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#to-confirm.active {
  opacity: 1;
}

.wpcf7-not-valid-tip {
    margin-top: .5rem;
}


/* ----- 404 ----- */
.error404 .link {
    border-bottom: 1px solid #222222;
}


@media screen and ( min-width: 1400px ) {
    /* ----- ----- top ----- ----- */
    /* ----- intro ----- */
    .home #intro .title {
        left: -6.3rem;
    }
}


@media screen and ( max-width: 1400px ) {
    /* ----- ----- top ----- ----- */
    /* ----- intro ----- */
    .home #intro .title {
        margin-left: calc(50% - 50vw);
        padding-right: 5rem;
    }

}


@media screen and ( max-width: 1350px ) {
    /* ----- ----- top ----- ----- */
    #department {
        margin-left: auto;
        margin-right: auto;
    }
}


@media screen and ( max-width: 1200px ) {
    /* ----- ----- footer ----- ----- */
    footer .list ul {
        grid-template-columns: 1fr 1fr;
    }

    footer .post-code {
        display: block;
    }
    


    /* ----- ----- top ----- ----- */
    /* ----- intro ----- */
    #intro .logo {
        margin-right: 2rem;
    }

    /* ----- intro ----- */
    .home #intro .sub {
        font-size: 0.8rem;
    }

    .box_btn1 ul {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: 700px;
        margin: 0 auto;
    }

    .box_btn1 li:nth-child(3) {
        grid-column: 1 / span 2;
        justify-self: center;
        width: 55%;
    }

    /* ----- hqe ----- */
    #hqe .lead {
        font-size: 1.5rem;
    }


    /* ----- 教材作製部門・ブランディング ----- */
    #department {
        max-width: 800px;
        flex-direction: column;
    }

    #department .box_lr .text {
        flex: 2;
    }

    #department .box_lr .image {
        flex: 1;
    }


    /* ----- ----- page ----- ----- */
    /* ----- 厳志舎 ----- */
    .genshisha #intro .sub span {
        display: block;
    }

}


@media screen and (max-width: 991px) {
    /* ----- ----- header ----- ----- */
    header .site-title img {
        width: 200px;
    }


    /* ----- ----- page ----- ----- */
    /* ----- 厳志舎 ----- */
    .genshisha #intro h2 span {
        display: block;
    }

    .genshisha #intro .sub {
        text-align: left;
    }

    #overview th {
        width: 130px;
    }


    /* ----- company ----- */
    .company #overview ul {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .company #overview li:first-child table {
        margin-bottom: 0;
    }

    #history .year {
        width: 70px;
    }

    .history-list::before {
        left: 94px;
    }

    #history .timeline {
        width: 50px;
    }

    #history .month {
        width: 50px;
    }


    /* ----- contact ----- */
    .check .wpcf7-checkbox {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .check .wpcf7-checkbox > span {
        margin-right: 0;
    }


}


@media screen and (max-width: 781px) {
    /* ----- ----- global ----- ----- */
    /* ----- layout ----- */
    .box_lr {
        flex-direction: column;
    }


    /* ----- button1 ----- */
    .wrapper-btn {
        text-align: center;
    }

    .more-button1.pc {
        display: none;
    }

    .more-button1.sp {
        display: inline-flex;
    }


    /* ----- ----- footer ----- ----- */
    footer .top {
        display: block;
    }


    /* ----- ----- top ----- ----- */
    /* ----- intro ----- */
    .home #intro .title {
        display: block;
        margin-bottom: 4rem;
        padding-right: 0;
    }

    #intro .logo {
        margin-right: 15%;
        margin-bottom: 1rem;
    }

    .home #intro .sub {
        margin-left: 20px;
    }

    .box_btn1 ul {
        gap: 1rem;
    }

    .box_btn1 li a {
        font-size: 1rem;
        padding: 1rem .7rem;
    }

    /* ----- group ----- */
    #group .box_lr > .text {
        order: 1;
    }
    
    #group .box_lr > .text {
        order: 1;
    }

    #group .box_lr > .image {
        order: 2;
    }

    #group .box_lr .left .inner {
        padding: 2rem 10% 1rem 0;
    }

    #group .box_lr .more-button1.sp {
        margin-top: 4rem;
    }

    #group .image .inner {
        min-height: auto;
    }


    /* ----- hqe ----- */
    #hqe .lead {
        font-size: 1.2rem;
    }

    #hqe .lead span:last-child {
        display: block;
    }

    #hqe .box_lr .left .inner, 
    #group .box_lr .left .inner {
        padding: 2rem 0 2rem 0;
    }

    #hqe .box_lr > .image .inner, 
    #group .box_lr > .image .inner {
        aspect-ratio: 4 / 3;
    }

    #hqe .box_lr .right .inner {
        padding: 2rem 0 2rem;
    }

    #hqe .box_lr .right.image {
        order: 1;
    }

    #hqe .box_lr .left.text {
        order: 2;
    }


    /* ----- 教材作製部門・ブランディング ----- */
    #department .box_lr .text {
        display: block;
    }

    #department .box_lr .left .inner {
        padding-right: 0;
    }

    #department .box_lr .image .inner {
        aspect-ratio: 4 / 2;
    }

    #department .box_lr .more-button1.sp {
        margin-top: 2rem;
    }


    /* ----- ----- page ----- ----- */
    /* ----- common ----- */
    #title h1 {
        font-size: 2.3rem;
    }


    /* ----- 厳志舎 ----- */
    .box_image ul {
        grid-template-columns: 1fr;
    }

    .box_image li {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .genshisha #overview th {
        width: 110px;
    }
    
    #method .row {
        flex-wrap: wrap;
    }

    #method .row-top .card,
    #method .row-bottom .card {
        flex-basis: 100%;
    }

    #method .card {
        padding: 2rem 2rem;
    }

    #features .box_lr > .image .inner {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    #features .box_lr .right .inner {
        padding: 0 0 2rem;
    }

    #contact > .inner {
        display: block;
    }

    #contact .title {
        padding: 1rem 2rem 1rem 1rem;
        text-align: center;
        margin-bottom: 1rem;
    }

    #contact .button {
        border-left: none;
        padding-left: 0;
        width: 100%;
        display: block;
        text-align: center;
    }


    /* ----- 事業紹介 ----- */
    .business #school {
        margin-bottom: 5rem;
    }

    .department-list {
        grid-template-columns: 1fr;
    }


    /* ----- company ----- */
    .company #overview th {
        width: 110px;
    }

    #history .year {
        width: 56px;
        font-size: 1rem;
    }

    #history .timeline {
        display: none;
    }

    #history .month {
        width: 33px;
        font-size: 1rem;
    }

    .history-list::before {
        content: none;
    }


    /* ----- contact ----- */
    .cf7-row {
        gap: 5px;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .cf7-label {
        width: auto;
    }

    .cf7-input {
        width: 100%;
    }

}


@media screen and (max-width: 480px) {
    /* ----- ----- footer ----- ----- */
    footer .list ul {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 2rem;
    }

    footer .add1 {
        display: block;
    }

    footer .wrapper-banner {
        text-align: left;
    }


    /* ----- ----- global ----- ----- */
    /* ----- dot title ----- */
    .dot-title {
        font-size: 1.5rem;
    }


    /* ----- ----- top ----- ----- */
    /* ----- intro ----- */
    .home #intro .sub {
        font-size: 0.6rem;
    }

    .box_btn1 {
        padding: 0 40px;
    }

    .box_btn1 ul {
        grid-template-columns: 1fr;
    }

    .box_btn1 li:nth-child(3) {
        grid-column: auto;
        width: 100%;
    }


    /* ----- hqe ----- */
    #hqe .lead {
        font-size: 1.1rem;
        letter-spacing: .1rem;
    }


    /* ----- 教材作製部門・ブランディング ----- */
    #department .box_lr {
        padding: 2.3rem 1.3rem;
    }


    /* ----- 厳志舎 ----- */
    .genshisha #intro h2 {
        font-size: 1.4rem;
    }


    .check .wpcf7-checkbox {
        grid-template-columns: 1fr;
        gap: .4rem;
    }

    .check .wpcf7-checkbox input {
        margin-right: 6px;
    }


    /* ----- company ----- */
    .company #map h2 {
        align-items: start;
    }

    .company #map h2 .dot {
        top: 11px;
        position: relative;
    }

}
