/*
Theme Name: dp-genique-child
Version: 1.0.3.5
Template: dp-genique
*/

/* 全体 */
html {
    scroll-padding-top: 100px;
}
.widget-container.top {
    padding-top: 0 !important;
}
.header_bar .hd-title.img img {
    max-width: 500px !important;
}
.header_bar .hd-title.img.no-cap img {
    max-height: 65px !important;
}

/* .entry img {
    margin: 2rem auto 0.5rem 0 !important;
} 
.entry p, .dp_text_widget p, .textwidget p {
    margin-bottom: 0 !important;
}/*

/* 見出し */
.mid_h2 {
    color: #3B9C8C;
    font-weight: bold;
    padding-bottom: 0.3em;
    text-align: center;
    position: relative !important;
    margin: 4rem 0 3.5rem 0 !important;
}
.mid_h2::after {
    content: '';
    background-color: #3B9C8C;
    width: 2em;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}


h3.inside-title {
    margin-top: 2em !important;
    color: #3B9C8C !important;
}

h3.inside-title::before {
    content: none !important;
    display: none !important;
}
h3.inside-title::after {
    content: '';
    background-color: #3B9C8C;
    width: 2em;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}

h3.wd-title {
    font-size: 2.3em !important;
    padding: 1rem 0 1.5rem !important;
}
h3.wd-title::before {
    content: none !important;
    display: none !important;
}
h3.wd-title::after {
    content: '';
    background-color: #fff;
    width: 2em;
    height: 3px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
}


.mid_h4 {
    color: #C2272D;
    border-bottom: dotted 2px #C2272D;
}

.mid_h5 {
    background-color: #f0f0f0;
    color: #C2272D;
    padding: 0.8rem 2rem;
}

.mid_h5 ~ p {
    margin-left: 20px !important;
}
.mid_h5 ~ ol {
    margin-left: 3em !important;
}
.mid_h5 ~ ul {
    margin-left: 3em !important;
}

.mid_grn {
    font-weight: bold;
    font-size: 24px;
    color: #3B9C8C;
    border-left: 5px solid #3B9C8C;
    border-bottom: 2px solid #3B9C8C;
    padding: 0.2em 0 0.2em 0.5em;
    margin: 4em auto 2rem;
}

.mid_blue {
    padding: 0em 0.5em;
    margin: 0.2rem auto 1rem;
    font-size: 22px;
    background: transparent;
    border-left: solid 7px #0d94ec;
    color: #0d94ec;
}
.mid_lightgrn {
    padding: 0em 0.5em;
    margin: 0.2rem auto 1rem;
    font-size: 22px;
    background: transparent;
    border-left: solid 7px #8FC31F;
    color: #8FC31F;
}
.mid_pink {
    padding: 0em 0.5em;
    margin: 0.2rem auto 1rem;
    font-size: 22px;
    background: transparent;
    border-left: solid 7px #EE87B4;
    color: #EE87B4;
}


/* 基本flex */
.flex_box {
    display: flex;
    gap: 20px;
}
/*.flex_box div {
    flex: 1;
}*/
.flex-center {
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
}

/* TOPページ */
.top_box {
    padding: 2em 3em !important;
    text-align: center !important;
}

.top_box p {
    line-height: 2.5em;
}

div#dpcustomtextwidget-2 {
    width: 100%;
    background-repeat: no-repeat;
    margin: 15rem auto !important;
    background-position: center center;
    background-image: url(https://kochi-yusuhara.jp/wp-content/uploads/2025/11/karst.jpg);
    height: 360px;
}

.top_fbox:nth-child(even){
    display: flex;
    gap: 20px;
    flex-direction: row-reverse; /*左右入れ替え*/
}
@media(max-width : 750px ){
.top_fbox:nth-child(even){
    display: block;
}
}

.top_fbox:nth-child(odd){
    display: flex;
    gap: 50px;
}
@media(max-width : 750px ){
.top_fbox:nth-child(odd){
    display: block;
}
}

.top_fbox div.image {
    flex: 1;
}
.top_fbox div.text {
    flex: 1;
}

/* button設定 */
a.btn_blue {
    display: inline-block;
    background-color: #58A0E8;
    padding: 1rem 3em;
    color: #fff !important;
    margin: 2rem auto;
}


.btnbox {
    display: flex;
    text-align: center;
    width: 95%;
    gap: 20px;
    margin: 0px auto;
}
.btnbox div {
    flex: 1;
}
.btnbox div a {
    display: block !important;
}

/* ページ内リンクボタン */
.pagelink {
    display: flex;
    width: 100%;
    gap: 10px;
    text-align: center;
    margin: 0px auto;
}
.pagelink div {
    flex: 1;
}
.pagelink div a {
    display: block !important;
}
.pagelink_btn {
    color: #fff !important;
    background-color: #0d94ec;
    line-height: 30px;
    padding: 1rem 0.3rem;
    border-radius: 50px;
    margin: 10px 0;
}
.pagelink_btn::before {
    content: "\25BC";
}




/* 学校紹介 */
div#dpcustomtextwidget-5 {
    width: 100%;
    background-repeat: no-repeat;
    margin: 0 auto 15rem auto !important;
    background-position: center center;
    background-image: url(https://kochi-yusuhara.jp/wp-content/uploads/2025/11/greeting_bg02.jpg);
    height: 1250px;
}

.principal {
    padding: 6rem 0;
}

.pri_box {
    width: 1180px;
    margin: 0 auto;
    background-color: rgb(255 255 255 / 85%);
    padding: 2rem 80px;
}

.greeting {
    display: flex;
    gap: 35px;
}
.greeting div {
    flex: 1;
}

.school_em {
    display: flex;
    align-items: center;
}
.school_em div.emb {
    flex: 2;
    text-align: center;
}
.school_em div.txt {
    flex: 6;
}

div.txt-accent {
    display: block;
    text-align: center;
    color: #C2272D;
    font-size: 2.6em;
}

.dp-container table {
    margin: 4rem auto !important;
}
table.tbl_gr {
    border-collapse: collapse;
    width: 95%;
    margin: 0 auto;
}
table.tbl_gr tr {
    background-color: #fff;
}
table.tbl_gr tr:nth-child(odd) {
    background-color: rgb(164 215 161 / 25%);
}
table.tbl_gr th, table.tbl_gr td {
    padding: 0.3em 1em;
}
table.tbl_gr th {
    font-weight: 400;
    text-align: center;
    min-width: 4em;
    font-weight: bold;
}
.dp-container table th, .dp-container table td {
    border: none !important;
}

.dp-container table th {
    background-color: transparent;
}

/* footer */
.ft_btnbox {
    display: flex;
    gap: 10px;
}
.footer a.ft_btn {
    flex: 1;
    background-color: #fff;
    color: #3b9c8c;
    text-align: center;
    padding: 1rem 1.8rem;
    border-radius: 5px;
    font-size: 20px;
    font-weight: bold;
    border: 3px solid transparent;
}
a.ft_btn::before {
    content: "\25B6";
    padding: 0 0.5rem;
}
.footer a.ft_btn:hover {
    background-color: #3b9c8c;
    color: #fff;
    border: 3px solid #fff;
    font-weight: bold;
}

p.ft_adress {
    font-size: 15px;
    text-align: center;
    margin: 1rem auto;
}

img.wid {
    width: 40%;
}

/* スマホ表示 */
@media(max-width : 568px ){
.top_box {
    padding: 1em !important;
}
h3.inside-title {
    margin: 1em 0.5em !important;
}
.loop-section.news .loop-title {
    padding: 0 !important;
}

h3.mid_h3 {
    font-size: 2.2rem;
}
.mid_grn {
    font-size: 20px;
    margin: 2.5em auto 2rem;
}
.mid_blue {
    font-size: 18px;
}
.entry h5 {
    margin: 3rem 0 2rem !important;
}
.mid_h5 ~ p {
    margin-left: 5px !important;
}
.mid_h5 ~ ol {
    margin-left: 2em !important;
}
.mid_h5 ~ ul {
    margin-left: 2em !important;
}
.dp_text_widget p {
    margin: 0 !important;
}

div#dpcustomtextwidget-7 {
    width: 100%;
    background-repeat: no-repeat;
    margin: 10rem auto !important;
    background-position: center center;
    background-image: url(https://kochi-yusuhara.jp/wp-content/uploads/2025/12/karst_sp.jpg);
    height: 600px;
}
.pagelink {
    display: block;
    margin: 0;
}
.pagelink_btn {
    display: block;
    border-radius: 5px;
}

div.txt-accent {
    font-size: 1.5em;
}
.school_em {
    display: block;
}
table.tbl_gr {
    width: 100%;
    border: solid 1px #ddd;
    border-collapse: collapse;
}

table.tbl_gr th,
table.tbl_gr td {
    display: block;
    width: 100%;
    border: solid 1px #ddd !important;
}
.btnbox {
    display: block;
    width: 100%;
}

.flex_box {
    display: block;
}
.flex_box {
    text-align: center;
}

img.wid {
    width: 80%;
}
p.ft_adress {
    line-height: 25px;
}
}