/*
Theme Name: AGRIE HOME CLINIC (日本語版)
Theme URI: https://agriehomeclinic.com
Author: AGRIE HOME CLINIC
Author URI: https://agriehomeclinic.com
Description: AGRIE HOME CLINICの日本語版ウェブサイト用テーマです。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agrie-home-clinic-ja
*/

/* 既存のCSSをここに移動 */ 
*,*::before,*::after{box-sizing:border-box}html{-moz-text-size-adjust:none;-webkit-text-size-adjust:none;text-size-adjust:none}body,h1,h2,h3,h4,p,figure,blockquote,dl,dd{margin:0}ul[role='list'],ol[role='list']{list-style:none}body{min-height:100vh;line-height:1.5}h1,h2,h3,h4,button,input,label{line-height:1.1}h1,h2,h3,h4{text-wrap:balance}a:not([class]){text-decoration-skip-ink:auto;color:currentColor}img,picture{max-width:100%;display:block}input,button,textarea,select{font:inherit}textarea:not([rows]){min-height:10em}:target{scroll-margin-block:5ex}
/* ベーススタイル */
body {
    position: relative;
    padding-top: 128px;
    font-family: 'Noto Sans JP', 'Open Sans', Arial, sans-serif;
    color: #030740;
    line-height: 1.6;
}
body.JP {
    font-family: 'Noto Sans JP', 'Open Sans', Arial, sans-serif;
}
body.VN {
    font-family: 'Oswald', 'Open Sans', Arial, sans-serif;
}
@media (max-width: 768px) {
    body {
        padding-top: 96px;
    }
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

a.button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    height: 48px;
    padding: 0 32px;
    border-radius: 24px;
    border: 1px solid #FFF;
    background: #F3F3F3;
    box-shadow: 2px 2px 12px 0px rgba(58, 9, 14, 0.16);
    color: #1288D2;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}
a.button .arrow-right-blue {
    transition: transform 0.3s;
}
@media (min-width: 769px) {
    a.button:hover {
        background-color: #1288D2; /* マウスオーバー時の背景色 */
        color: #FFF; /* マウスオーバー時の文字色 */
    }
    a.button:hover .arrow-right-blue {
        transform: translateX(5px);
    }
}
@media (max-width: 768px) {
    
}
@media (max-width: 480px) {
    a.button {
        width: 100%;
    }
}

/* =====================
    Header
====================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    box-shadow: none; /* 初期状態では影をなしに */
    transition: all 0.3s ease;
    z-index: 1000;
}

/* ---------------------
    Sub Header
----------------------- */
.subheader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1920px;
    height: 48px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: right;
    background-color: #F3F3F3;
}
.subheader a {
    text-decoration: none;
}
.subheader-info {
    margin: 0 32px 0 0;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.subheader-contact-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.subheader-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.subheader-contact > * {
    color: #030740;
    font-family: "Open Sans";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    .subheader {
        position: relative;
        padding: 0 16px;
        z-index: 1010;
    }
    .subheader-contact {
        width: 100%;
        justify-content: space-between;
    }
    .subheader-info {
        display: none;
    }
    .subheader-contact .text {
        display: none;
    }
}
/* ---------------------
    Contact Icons
----------------------- */
.contact-icons {
    display: flex;
    margin: 0 32px 0 0;
    padding: 0;
    list-style: none;
}
.contact-icons li {
    margin-right: 24px;
}
.contact-icons li:last-child {
    margin-right: 0;
}
.contact-icons .location {
    display: inline-block;
    margin: 0 4px 0 0;
    vertical-align: middle;
    fill: #94959E;
}
.contact-icons .phone {
    display: inline-block;
    margin: 0 4px 0 0;
    vertical-align: sub;
    fill: #94959E;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    .contact-icons {
        margin: 0 16px 0 0;
    }
    .contact-icons li {
        margin-right: 16px;
    }
    .contact-icons a {
        display: block;
        width: 30px;
        height: 30px;
        text-align: center;
        line-height: 32px;
        border-radius: 30px;
        background-color: #ccc;
    }
    .contact-icons .location {
        display: block;
        margin: 0 0 0 1px;
        fill: #fff;
    }
    .contact-icons .phone {
        display: block;
        margin: 0 0 0 1px;
        fill: #fff;
    }
}
/* ---------------------
    Social Links
----------------------- */
.social-links {
    /* margin: 0 32px 0 0; */
    margin: 0;
    padding: 0;
}
.social-icons {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}
.social-icons li {
    margin-right: 16px;
}
.social-icons li:last-child {
    margin-right: 0;
}
.social-icons a {
    display: block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 32px;
    border-radius: 30px;
    background-color: #ccc;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    
}
@media (max-width: 480px) {

}
/* ---------------------
    Language Switcher
----------------------- */
.language-switcher {
    position: relative;
    margin: 0 0 0 16px;
}

.language-switcher label {
    position: absolute;
    display: inline-block;
    width: 0;
    height: 0;
    overflow: hidden;
    text-indent: -9999px;
}
.language-switcher .custom-select {
    position: relative;
    display: block;
    width: 40px;
}
.language-switcher .custom-select .arrow_down {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    transform: rotate(180deg);
}
.language-switcher .select-selected {
    cursor: pointer;
}
.language-switcher .select-selected.closed .arrow_down {
    transform: rotate(0deg);
}
.language-switcher .select-items {
    position: absolute;
    top: 20px;
    left: -4px;
    padding: 4px;
    line-height: 1;
    z-index: 99;
    background-color: #fff;
    border-radius: 3px;
}
.language-switcher .select-items img {
    vertical-align: bottom;
}

.language-switcher .select-items div {
    margin: 0 0 4px;
    cursor: pointer;
}
.language-switcher .select-items div:last-child {
    margin-bottom: 0;
}

.language-switcher .select-items div:hover {
    background-color: #fff;
}

.language-switcher .select-hide {
    display: none;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    .language-switcher {
        margin: 0 0 0 auto;
    }
    .language-switcher .custom-select {
        width: 50px;
    }
    .language-switcher .custom-select img {
        width: 30px;
        height: auto;
    }
    .language-switcher .select-items {
        top: 30px;
    }
    .language-switcher .select-items img {
        width: 45px;
        height: auto;
    }
    .language-switcher .select-items div {
        margin: 0 0 8px;
    }
}
/* ---------------------
    Global Navigation
----------------------- */
.mainheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    height: 80px;
    margin: 0 auto;
    padding: 0 0 0 24px;
    background-color: #fff;
    transition: height 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none; /* 初期状態では影をなしに */
}
.mainheader.shrink {
    height: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.mainheader .logo-wrapper, .mainheader .logo-wrapper a {
    display: flex;
    width: 142px;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.mainheader .logo-wrapper .img-logo-mark {
    width: 66px;
    height: 60px;
    transition: all 0.3s ease;
}
.mainheader .logo-wrapper .img-logo-text {
    width: 66px;
    height: 60px;
    opacity: 1;
    transition: all 0.1s ease;
}
.mainheader.shrink .logo-wrapper {
    /* width: 29px; */
}
.mainheader.shrink .logo-wrapper .img-logo-mark {
    width: 29px;
    height: 26px;
}
.mainheader.shrink .logo-wrapper .img-logo-text {
    opacity: 0;
}
.global-nav .nav-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.global-nav .nav-links li {
    margin-right: 40px;
}
.global-nav .nav-links li:last-child {
    margin-right: 0;
}
.global-nav .nav-links a {
    display: inline-block;
    color: #030740;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
.global-nav .nav-links a.active {
    color: #4099EC;
}

.global-nav .nav-links li:last-child a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0 24px 0 32px;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 8px;
    color: #fff;
    background-color: #4099EC;
    transition: all 0.3s ease;
}
.mainheader.shrink .global-nav .nav-links li:last-child a {
    height: 40px;
}
@media (min-width: 769px) {
    .global-nav .nav-links a:hover {
        color: #4099EC;
    }
    .global-nav .nav-links li:last-child a:hover {
        color: #4099EC;
        background-color: #FBF9F3;
    }
}
@media (max-width: 768px) {
    .mainheader {
        height: 48px;
        padding: 0 16px;
    }
    .mainheader .logo-wrapper {
        width: 75px;
        height: 32px;
    }
    .mainheader .logo-wrapper .img-logo-mark {
        width: 35px;
        height: 32px;
    }
    .mainheader .logo-wrapper .img-logo-text {
        width: 35px;
        height: 32px;
    }
    .global-nav {
        display: none;
    }
}
/* =====================
    Global Navigation Smart phone
====================== */
.menu-toggle {
    display: none;
}
.mobile-nav {
    display: none;
}
@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 1002; /* メニューよりも前面に表示 */
    }

    .menu-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #333; /* 通常時の色 */
        transition: all 0.3s ease;
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #fff; /* 背景色を白に設定 */
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        z-index: 1001;
    }
    .mobile-nav .nav-links {
        display: flex;
        margin: 0;
        padding: 0;
        list-style: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: #030740;
        font-size: 16px;
        font-weight: 700;
        text-decoration: none;
    }
    .mobile-nav .nav-links li {
        margin: 0 0 32px;
    }
    .mobile-nav .nav-links a {
        color: #081839;
        text-decoration: none;
    }
    .mobile-nav .nav-links a.active {
        color: #4099EC;
    }
    .mobile-nav .reserve {
        position: relative;
        margin: 53px 0 8px;
        font-size: 20px;
        font-weight: 700;
        color: #030740;
    }
    .mobile-nav .reserve::before {
        content: url(img/home_mark.svg);
        position: absolute;
        top: -53px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 8px 0 0;
    }
    .mobile-nav .reserve-description {
        margin: 0 0 16px;
        font-size: 14px;
        color: #030740;
    }
    .mobile-nav .reserve-phone {
        margin: 0 0 32px;
        font-size: 28px;
        font-weight: 700;
        line-height: 1;
        color: #030740;
    }
    .mobile-nav .reserve-phone a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    .mobile-nav .reserve-phone a .phone {
        margin: 0 8px 0 0;
    }
    .mobile-nav .social-icons li {
        margin: 0 24px 0 0;
    }
    .mobile-nav .social-icons li:last-child {
        margin: 0;
    }
    .mobile-nav.show {
        display: flex;
    }

    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        color: #fff;
        font-size: 30px;
        cursor: pointer;
        z-index: 1001; /* メニューよりも前面に表示 */
    }
}

/* =====================
    Footer
====================== */
footer.footer {
    width: 100%;
    padding: 40px 24px;
    background-color: #F3F3F3;
}
.footer-inner {
    flex-wrap: wrap;
    width: 100%;
    max-width: 974px;
    margin: 0 auto;
}
@media (min-width: 769px) {}
@media (max-width: 768px) {
    footer.footer {
        padding: 40px 24px;
    }
}
.footer-nav {
    display: flex;
    margin: 0 0 16px;
    justify-content: space-between;
    align-items: stretch;
}
.footer-links-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}
.footer-nav a {
    position: relative; /* 擬似要素の位置を基準にするために必要 */
    text-decoration: none;
    color: inherit; /* 親の色を継承 */
    transition: color 0.3s;
}
.footer-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px; /* テキストの下に配置 */
    width: 0;
    height: 1px; /* アンダーラインの太さ */
    background-color: #4099EC;
    transition: width 0.3s;
}
.footer-nav ul.footer-links {
    list-style: none;
    margin: 0;
    padding: 0 48px;
    font-size: 12px;
    border-right: 1px dotted rgba(3, 7, 64, 0.24);
    text-wrap: nowrap;
}
.footer-nav ul.footer-links li {
    margin: 0 0 16px;
}
.footer-nav dl.footer-links {
    list-style: none;
    margin: 0;
    padding: 0 48px;
    font-size: 12px;
    border-right: 1px dotted rgba(3, 7, 64, 0.24);
    text-wrap: nowrap;
}
.footer-nav dl.footer-links dt {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 600;
}
.footer-nav dl.footer-links dd {
    margin: 0 0 16px;
    padding: 0 0 0 16px;
    font-size: 12px;
    font-weight: 400;
}
@media (min-width: 769px) {
    .footer-nav a:hover {
        color: #4099EC;
    }
    .footer-nav a:hover::after {
        width: 100%; /* ホバー時にアンダーラインを全幅に広げる */
    }
}
@media (max-width: 768px) {
    .footer-nav {
        display: block;
    }
    .footer-links-wrapper {
        margin: 0 0 32px;
    }
    .footer-nav ul.footer-links {
        width: 50%;
        padding: 0 32px 0 0;
    }
    .footer-nav ul.footer-links li {
        text-align: right;
    }
    .footer-nav dl.footer-links {
        width: 50%;
        padding: 0 0 0 32px;
        border-right: none;
    }
    .footer-nav dl.footer-links dd {
        padding: 0;
    }
}

.footer-nav .logo {
    padding: 0 48px 0 24px;
    border-right: 1px solid rgba(3, 7, 64, 0.1);
}
.footer-nav .img-logo {
    display: block;
    width: 142px;
    height: 60px;
    margin: 0 0 16px;
}
.footer-nav .catchword {
    color: #4099EC;
    font-size: 20px;
    font-weight: 600;
    line-height: 29px; /* 145% */
    letter-spacing: 0.8px;
    text-wrap: nowrap;
}
@media (min-width: 769px) {
}
@media (max-width: 768px) {
    .footer-nav .logo {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 0 0 32px;
        padding: 0;
        border-right: none;
    }
    .footer-nav .img-logo {
        margin: 0 16px 0 0;
    }
    .footer-nav .catchword {
        font-size: 24px;
        line-height: 1.6;
    }
}

.footer-info {
    padding: 0 24px 0 48px;
    font-family: "Noto Sans JP";
    font-size: 11px;
}
ul.footer-info-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    font-family: "Open Sans";
    font-size: 12px;
    font-weight: 400;
}
ul.footer-info-list li {
    margin: 0 0 8px;
}
ul.footer-info-list + ul.footer-info-list li {
    margin: 0 0 2px;
}
ul.footer-info-list li i {
    display: inline-block;
    margin: 0 8px 0 0;
    vertical-align: middle;
}
@media (min-width: 769px) {
}
@media (max-width: 768px) {
    .footer-info {
        margin: 0 0 32px;
        padding: 0;
    }
    .footer-info-list {
        margin: 0 0 32px;
        padding: 0;
    }
}
.oshirase-touroku {
    margin: 0 0 16px;
    padding: 24px;
    font-size: 14px;
    border-radius: 16px;
    background-color: #fff;
}
.oshirase-touroku h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
}
.oshirase-touroku p {
    margin: 0 0 16px;
}
@media (min-width: 769px) {
}
@media (max-width: 768px) {
    .oshirase-touroku .social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}
.copyright {
    padding: 0 0 0 24px;
    font-family: "Open Sans";
    opacity: 0.7;
    color: #464646;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
}
@media (min-width: 769px) {
}
@media (max-width: 768px) {
    .copyright {
        padding: 0;
        text-align: center;
    }
}

/* =====================
    Pagetop
====================== */
.pagetop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    /* display: none; */
    opacity: 0;
    z-index: 990;
    transition: opacity 0.3s ease;
}
.pagetop a {
    display: block;
    width: 40px;
    height: 40px;
}
.pagetop.show {
    /* display: block; */
    opacity: 1;
}
.pagetop.hide {
    opacity: 0;
}
/* =====================
    Home
====================== */
.main-home {
    position: relative;
    text-align: center;
}
.main-home section {
    position: relative;
    margin: 0 auto;
    padding: 80px 24px;
    overflow: hidden;
    /* text-align: left; */
}
.main-home h2 {
    position: relative;
    margin: 53px auto 64px;
    font-size: 24px;
    font-weight: 700;
    line-height: 160%;
    color: #030740;
    z-index: 1;
}
.main-home h2::before {
    content: url(img/home_mark.svg);
    position: absolute;
    top: -53px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 8px 0 0;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {}
@media (max-width: 480px) {
    main.main-home {
        padding: 0 0 40px;
    }
    .main-home section {
        padding: 56px 16px 80px;
    }
    .main-home h2 {
        margin: 53px auto 40px;
    }
}
/* =====================
    Contact Gadget
====================== */
.contact-gadget {
    position: absolute;
    top: 560px;
    right: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 420px;
    height: 420px;
    color: #030740;
    background-color: #fff;
    border-radius: 50%;
    z-index: 900;
}
.contact-gadget .reserve {
    position: relative;
    margin: 53px 0 24px;
    font-size: 20px;
    font-weight: 700;
    color: #030740;
}
.contact-gadget .reserve::before {
    content: url(img/home_mark.svg);
    position: absolute;
    top: -53px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 8px 0 0;
}
.contact-gadget .reserve-description {
    margin: 0 0 24px;
    font-size: 16px;
    color: #030740;
}
.contact-gadget .reserve-phone {
    margin: 0 0 32px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: #030740;
}
.contact-gadget .reserve-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.contact-gadget .reserve-phone a .phone {
    margin: 0 8px 0 0;
}
.contact-gadget .social-icons {
    justify-content: center;
}
.contact-gadget .social-icons li {
    margin: 0 24px 0 0;
}
.contact-gadget .social-icons li:last-child {
    margin: 0;
}
@media (max-width: 1280px) {
    .contact-gadget {
        width: 320px;
        height: 320px;
        right: 32px;
    }
    .contact-gadget .reserve {
        margin: 53px 0 8px;
        font-size: 18px;
    }
    .contact-gadget .reserve-description {
        margin: 0 0 12px;
        padding: 0 16px;
        font-size: 14px;
    }
    .contact-gadget .reserve-phone {
        margin: 0 0 12px;
        font-size: 24px;
    }
}
@media (max-width: 968px) {
    .contact-gadget {
        width: 260px;
        height: 260px;
        right: 24px;
    }
    .contact-gadget .reserve {
        margin: 53px 0 8px;
        font-size: 16px;
    }
    .contact-gadget .reserve-description {
        margin: 0 0 8px;
        padding: 0 16px;
        font-size: 12px;
    }
    .contact-gadget .reserve-phone {
        margin: 0 0 8px;
        font-size: 20px;
    }
}
@media (max-width: 768px) {
    .contact-gadget {
        display: none;
    }
}
/* =====================
    Hero
====================== */
section.hero {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    background-image: url(img/bg_hero.png);
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 124px 75px;
}
.img-hero {
    display: block;
    width: 100%;
    max-width: 1551px;
    height: auto;
    border-radius: 94px; 
}
.hero .logo {
    width: 189px;
    height: 80px;
    margin: 0 32px 0 0;
}
.hero .figure {
    position: relative;
}
.hero .text-hero {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(-50%);
    font-size: 6vw; /* ビューポート幅に基づくフォントサイズ */
    font-weight: 700;
    line-height: 160%;
    text-shadow: 8px 8px 12px rgba(0, 0, 0, 0.18);
    z-index: 1;
}

@media (max-width: 1200px) {
    .img-hero {
        border-radius: 70px; /* 1200px以下の画面幅でのborder-radius */
    }
    .hero .text-hero {
        font-size: 5vw; /* 1200px以下の画面幅でのフォントサイズ */
    }
}

@media (max-width: 768px) {
    section.hero {
        padding: 16px;
    }
    .hero .logo {
        display: none;
    }
    .img-hero {
        border-radius: 50px; /* 768px以下の画面幅でのborder-radius */
    }
}

@media (max-width: 480px) {
    .img-hero {
        border-radius: 18px; /* 480px以下の画面幅でのborder-radius */
    }
    .hero .text-hero {
        left: 13%;
        font-size: 9vw; /* 480px以下の画面幅でのフォントサイズ */
    }
}

/* =====================
    About
====================== */
section.about {
    padding-bottom: 0;
    background-color: #FBF9F3;
    overflow: visible;
    z-index: 1;
}
section.about::before {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 3%;
    display: block;
    width: 329px;
    height: 332px;
    background-image: url(img/dc_blue.svg);
    background-size: contain; /* 画像をコンテナに収める */
    background-repeat: no-repeat;
    background-position: center;
    transition: bottom 3s ease;
}
section.about.visible::before {
    bottom: -15%;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    section.about::before {
        width: 154px;
        height: 155px;
        top: 44%;
        bottom: auto;
        left: -12%;
    }
}
.about-grid {
    position: relative;
    display: flex;
    max-width: 1240px;
    margin: 0 auto;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
}
.about-grid > a.button {
    position: absolute;
    bottom: 0;
    right: 0;
}
.about-grid > .figure {
    width: calc(500px / 1240px * 100%);
    margin: 0 24px 0 0;
}
.about-grid > .figure img {
    border-radius: 32px;
}
.about-grid > .about-col {
    width: calc(700px / 1240px * 100%);
    color: #030740;
    font-size: 16px;
    font-weight: 400;
    line-height: 160%;
}
.about-col .dr-photo {
    width: 171px;
    height: 171px;
    border-radius: 32px;
}
.about-col p {
    margin: 0 0 24px;
}
.about-col .figure {
    display: flex;
    align-items: center;
    margin: 0;
}
.about-col .figure img {
    display: inline-block;
    margin: 0 16px 0 0;
}
.about-col .caption {
    font-size: 16px;
    font-weight: 500;
    line-height: 160%;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    .about-grid {
        display: block;
    }
    .about-grid > .figure {
        width: 100%;
        margin: 0 0 16px;
    }
    .about-grid > .about-col {
        width: 100%;
    }
    .about-grid > a.button {
        position: relative;
        bottom: 0;
        right: 0;
    }
    .about-col .dr-photo {
        width: 131px;
        height: 131px;
    }
    .about-col p {
        margin: 0 0 16px;
    }
    .about-col .figure {
        margin: 0 0 32px;
    }
}
/* =====================
    Location
====================== */
section.location {
    padding-bottom: 0;
    background-color: #FBF9F3;
}
.location h3 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
}
.map-container {
    width: calc(100% + 48px); /* 親の左右のパディング分を加算 */
    margin: 0 -24px; /* 左右のマージンを負にしてパディングを打ち消す */
}
.location .address {
    margin: 0 0 24px;
    font-family: "Open Sans";
    font-size: 12px;
    font-weight: 400;
}
.location .address i {
    display: inline-block;
    margin: 0 8px 0 0;
    vertical-align: middle;
}
.location iframe {
    vertical-align: bottom;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {}
@media (max-width: 480px) {
    .map-container {
        width: calc(100% + 32px);
        margin: 0 -16px;
    }
    .location iframe {
        height: 253px;
    }
}
/* =====================
    Services
====================== */
section.services {
    width: 100%;
}
.services-inner {
    width: 100%;
}
section.services::before,
section.services::after,
section.services .services-inner::before,
section.services .services-inner::after {
    content: '';
    position: absolute;
    z-index: -1;
    display: block;
    background-size: contain; /* 画像をコンテナに収める */
    background-repeat: no-repeat;
    background-position: center;
    transition: all 3s ease;
}
section.services::before {
    width: 255px;
    height: 257px;
    background-image: url(img/dc_blue02.svg);
    top: 20%;
    left: -15%;
}
section.services::after {
    width: 335px;
    height: 329px;
    background-image: url(img/dc_yellow.svg);
    top: -20%;
    left: 12%;
}
section.services .services-inner::before {
    width: 340px;
    height: 345px;
    background-image: url(img/dc_green.svg);
    bottom: -22%;
    right: 16%;
}
section.services .services-inner::after {
    width: 255px;
    height: 257px;
    background-image: url(img/dc_pink.svg);
    bottom: 20%;
    right: -12%;
}
section.services.visible::before {
    top: 9%;
    left: -2%;
}
section.services.visible::after {
    top: -9%;
    left: 4%;
}
section.services.visible .services-inner::before {
    bottom: -12%;
    right: 3%;
}
section.services.visible .services-inner::after {
    bottom: 14%;
    right: -4%;
}
@media (min-width: 769px) {

}
@media (max-width: 768px) {}
@media (max-width: 480px) {
    section.services.visible::before {
        width: 120px;
        height: 121px;
        top: 1%;
        left: -8%;
    }
    section.services.visible::after {
        width: 157px;
        height: 154px;
        top: -2%;
        left: -1%;
    }
    section.services.visible .services-inner::before {
        width: 158px;
        height: 160px;
        bottom: -4%;
        right: -0.5%;
    }
    section.services.visible .services-inner::after {
        width: 119px;
        height: 120px;
        bottom: 1.5%;
        right: -11%;
    }

}
.services-grid {
    width: 100%;
    max-width: 728px;
    margin: 0 auto;
}
.services-grid .service-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}
.services-grid .service-list li {
    width: calc(200px / 728px * 100%);
    margin: 0 0 64px;
}
.services-grid .service-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 200px;
    height: 200px;
    text-align: center;
    background-color: #FBF9F3;
    box-shadow: 2px 2px 14px rgba(58, 9, 14, 0.12);
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    color: #1288D2;
    transition: transform 0.3s, box-shadow 0.3s;
}
.services-grid .service-list li a img {
    display: block;
    margin: 0 auto 8px;
}
.services-grid .service-list li a .text {
    display: block;
    margin: 0 auto;
}
.services-grid .service-list li a .caption {
    font-size: 12px;
    font-weight: 400;
    color: #94959E;
    transition: all 0.3s;
}
.services-grid .button {
    margin: 0 auto;
}
@media (min-width: 769px) {
    .services-grid .service-list li a:hover {
        transform: scale(1.1);
        box-shadow: 4px 4px 20px rgba(58, 9, 14, 0.2);
    }
}
@media (max-width: 768px) {}
@media (max-width: 480px) {
    .services-grid .service-list {
        width: 312px;
        margin: 0 auto;
    }
    .services-grid .service-list li {
        width: 140px;
        margin: 0 0 32px;
    }
    .services-grid .service-list li a {
        width: 140px;
        height: 140px;
    }
    .services-grid .service-list li a img {
        width: 35%;
    }
}
/* =====================
    Doctors
====================== */
section.doctors {
    background-color: #FBF9F3;
}
.doctors::before,
.doctors::after {
    content: '';
    position: absolute;
    display: block;
    background-size: contain; /* 画像をコンテナに収める */
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
    transition: all 3s ease;
}
.doctors::before {
    background-image: url(img/dc_white01.svg);
    width: 642px;
    height: 599px;
    bottom: -28%;
    left: -29%;
}
.doctors::after {
    background-image: url(img/dc_white02.svg);
    width: 599px;
    height: 599px;
    top: -29%;
    right: 0%;
}
section.doctors.visible::before {
    bottom: -8%;
    left: -6%;
}
section.doctors.visible::after {
    top: -7%;
    right: 5%;
}
@media (min-width: 769px) {}
@media (max-width: 768px) {}
@media (max-width: 480px) {
    .doctors::before {
        width: 215px;
        height: 201px;
        bottom: -2%;
        left: -7%;
    }
    .doctors::after {
        width: 215px;
        height: 215px;
        top: -2%;
        right: -10%;
    }
}
.doctors-grid {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    z-index: 1;
}
.doctors-grid .figure {
    position: relative;
    width: 300px;
    margin: 0;
}
.doctors-grid .figure img {
    width: 100%;
    height: auto;
    border: 8px solid #fff;
    border-radius: 32px;
    overflow: hidden;
}
.doctors-grid .figure figcaption {
    margin: 16px 0 0;
    padding: 0;
}
.doctors-grid .button {
    position: absolute;
    bottom: 74px;
    left: -40px;
}
@media (min-width: 769px) {}
@media (max-width: 768px) {}
@media (max-width: 480px) {
    .doctors-grid {
        padding: 0 8px;
        text-align: center;
    }
    .doctors-grid .figure {
        width: 100%;
        margin: 0 auto 48px;
    }
    .doctors-grid .figure:last-child {
        margin-bottom: 0;
    }
    .doctors-grid .button {
        width: auto;
        margin: 0 -16px;
        bottom: 74px;
        left: 0;
        right: 0;
    }
}
/* =====================
    News
====================== */
section.news {
    padding-bottom: 0;
    background-color: #fff;
}
.news-inner {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: 1253px;
    margin: 0 auto;
    padding: 0 48px 80px;
    background: #fff url(img/dot_line_single.png) repeat-x 0 100%;
}
.news-inner h2 {
    margin: 0 40px 0;
    white-space: nowrap;
}
.news-list {
    width: 100%;
    min-height: 300px;
    margin: 0;
    padding: 64px 94px 128px;
    text-align: left;
    list-style: none;
    border-radius: 32px;
    background-color: #FBF9F3;
}
.news-list li {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dotted #999;
}
.news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.news-list li time {
    margin: 0 16px 0 0;
    padding: 0 16px 0 0;
    border-right: 1px dotted #ccc;
}
.news-list li a {
    color: #1288D2;
    text-decoration: none;
    background: rgba(255, 255, 255, 0);
    transition: all 0.5s;
}
.news-list li a:hover {
    background: rgba(27, 138, 228, 0.17);
}
.news-inner .button {
    position: absolute;
    bottom: 138px;
    left: 48px;
}
@media (min-width: 769px) {
    
}
@media (max-width: 768px) {
    .news-inner {
        display: block;
        padding: 0 0 106px;
    }
    .news-inner h2 {
        margin: 0 auto 40px;
    }
    .news-list {
        min-height: auto;
        padding: 24px 16px 80px;
        border-radius: 32px 32px 0 0;
    }
    .news-inner .button {
        bottom: 90px;
        left: 0;
        right: 0;
    }
}

/* =====================
    Column
====================== */
section.column {
    background-color: #fff;
}
.column-inner {
    width: 100%;
    max-width: 1253px;
    margin: 0 auto;
}
@media (min-width: 769px) {}
@media (max-width: 768px) {}
@media (max-width: 480px) {}
.column-grid {
    display: flex;
    margin: 0 0 64px;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
}
.column-item {
    display: flex;
    flex-direction: column;
    height: auto;
    flex: 1 1 0;
    min-width: 0;
    min-height: 100%;
    width: calc(25% - 18px); /* 4列用に変更（gap:24pxの時、(24*3)/4=18px） */
    margin: 0 0 64px;
    text-align: left;
    border-radius: 32px;
    border: 4px solid var(--AGRIE-NEW-WEB-Accent-1, #F3CBCB);
    background: var(--AGRIE-NEW-WEB-White, #FFF);
    box-shadow: 2px 2px 16px 0px rgba(0, 0, 0, 0.14);
}
.column-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    padding: 24px 24px 48px;
    text-decoration: none;
    color: #1288D2;
}
.column-item a::before {
    content: url(img/dc_star.svg);
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 0;
    transition: rotate 0.3s;
}
.column-item h3 {
    position: relative;
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.33;
    letter-spacing: 0.1rem;
    line-break: strict;
    color:#030740;
    transition: color 0.3s;
    z-index: 1;
}
.column-item .detail {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #1288D2;
    transition: transform 0.3s;
    margin-top: auto;
}
.column-inner .button {
    margin: 0 auto;
}

@media (min-width: 769px) {
    .column-item a:hover::before {
        rotate: 360deg;
    }
    .column-item a:hover h3 {
        color: #1288D2;
    }
    .column-item a:hover .detail {
        transform: translateX(5px);
    }
}
@media (max-width: 768px) {
    .column-grid {
        margin-bottom: 32px;
        flex-direction: column;
    }
    .column-item {
        width: 100%;
        margin: 0 0 32px;
    }
    .column-item a {
        padding: 32px 32px 48px;
    }
    .column-item h3 {
        font-size: 24px;
    }
    .column-item:last-child {
        margin-bottom: 0;
    }
}



/* フレックス折り返しモジュール */

/* 共通スタイル */
.flex-wrap-module {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 24px;
}

.flex-wrap-module .flex-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flex-wrap-module .flex-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.flex-wrap-module .image-container {
    width: 100%;
    overflow: hidden;
}

.flex-wrap-module .image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.flex-wrap-module .flex-item:hover .image-container img {
    transform: scale(1.05);
}

.flex-wrap-module .content-container {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.flex-wrap-module .content-container h3 {
    margin: 0 0 16px;
    color: #1288D2;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.flex-wrap-module .content-container p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #030740;
    flex-grow: 1;
}

.flex-wrap-module .more-link {
    display: inline-block;
    color: #1288D2;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-right: 20px;
    align-self: flex-start;
    margin-top: auto;
}

.flex-wrap-module .more-link::after {
    content: "→";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.flex-wrap-module .more-link:hover::after {
    transform: translate(3px, -50%);
}

/* 3カラムレイアウト */
.flex-wrap-module.col-3 .flex-item {
    width: calc((100% - 64px) / 3); /* 3カラム（32pxのギャップを考慮） */
}

/* 2カラムレイアウト */
.flex-wrap-module.col-2 .flex-item {
    width: calc((100% - 32px) / 2); /* 2カラム（32pxのギャップを考慮） */
}

/* 画像なしバージョン */
.flex-wrap-module.no-image .flex-item {
    background-color: #f8f9fa;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .flex-wrap-module.col-3 .flex-item {
        width: calc((100% - 32px) / 2); /* タブレットでは2カラム */
    }
}

@media (max-width: 768px) {
    .flex-wrap-module {
        gap: 24px;
    }
    
    .flex-wrap-module.col-3 .flex-item,
    .flex-wrap-module.col-2 .flex-item {
        width: 100%; /* モバイルでは1カラム */
    }
    
    .flex-wrap-module .content-container {
        padding: 16px;
    }
    
    .flex-wrap-module .content-container h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .flex-wrap-module .content-container p {
        font-size: 14px;
        line-height: 1.5;
    }
}

.flex-wrap-module .flex-item:nth-child(1) {
    order: 2;
}
.flex-wrap-module .flex-item:nth-child(2) {
    order: 1;
}
.flex-wrap-module .flex-item:nth-child(3) {
    order: 3;
} 


/* 画像テキスト回り込みモジュール */

/* 共通スタイル */
.image-text-module {
    margin-bottom: 24px;
    overflow: hidden; /* floatの回り込みを解除 */
}

.image-text-module:after {
    content: "";
    display: table;
    clear: both;
}

.image-text-module .image-container img {
    max-width: 100%;
    height: auto;
}

.image-text-module .text-container p:last-of-type {
    margin-bottom: 16px;
}

/* 左画像・右テキスト */
.image-text-module.left-image .image-container {
    float: left;
    width: 430px;
    margin: 0 24px 16px 0;
}

/* 左テキスト・右画像 */
.image-text-module.right-image .image-container {
    float: right;
    width: 430px;
    margin: 0 0 16px 24px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .image-text-module.left-image .image-container,
    .image-text-module.right-image .image-container {
        float: none;
        width: 100%;
        /* max-width: 430px; */
        margin: 0 auto 24px;
    }
    
    .image-text-module .text-container {
        clear: both;
    }
}



/* ページャー（ページネーション）スタイル */

/* ページャー基本スタイル */
.pager {
    margin: 40px 0;
}

.pager-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.pager-single .pager-inner {
    max-width: 1200px;
    margin: 0 auto;
    justify-content: space-between;
}

.pager-numbers {
    display: flex;
    gap: 8px;
}

.pager-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pager-number:hover {
    background-color: #f5f5f5;
}

.pager-number.current {
    background-color: #333;
    color: #fff;
}

.pager-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
.pager-single .pager-arrow {
    width: auto;
    height: auto;
}

.pager-arrow:hover {
    background-color: #f5f5f5;
}

.pager-arrow.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ドット */
.pager-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #1288D2;
    font-size: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pager-numbers {
        /* width: 100%; */
        /* gap: 12px; */
    }
    .pager-inner {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }
    .pager-arrow {
        /* display: block;
        text-align: center; */
    }
    .pager-numbers {
        justify-content: center;
    }
    .pager-number, 
    .pager-arrow,
    .pager-dots {
        width: 30px;
        height: 30px;
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* 画面幅が狭い場合は一部のページ番号を非表示 */
    .pager-numbers .pager-number:nth-child(4),
    .pager-numbers .pager-number:nth-child(5) {
        /* display: none; */
    }
}



/* 中ページ共通スタイル */

body {
    position: relative;
    background-color: #FBF9F3;
}
body.home {
    background-color: #fff;
}
.main {
    padding: 0 0 128px;
}
.main.main-home {
    padding: 0;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    body {
        display: flex;
        flex-direction: column;
    }
    header {
        order: 1;
    }
    .main {
        order: 2;
        padding: 0 0 40px;
    }
    .breadcrumb {
        order: 3;
    }
    footer {
        order: 4;
    }
}
body.aboutus::before {
    content: url(img/dc_white01.svg);
    position: absolute;
    top: 19px;
    left: -115px;
    z-index: -1;
}
body.aboutus::after {
    content: url(img/dc_white02.svg);
    position: absolute;
    bottom: 458px;
    right: -29px;
    z-index: -1;
}
body.services::before {
    content: url(img/dc_service01.svg);
    position: absolute;
    top: 31px;
    left: -165px;
    z-index: -1;
}
body.services::after {
    content: url(img/dc_service02.svg);
    position: absolute;
    bottom: 340px;
    right: -98px;
    z-index: -1;
}
body.column::before {
    content: url(img/dc_star_l.svg);
    position: absolute;
    top: 96px;
    left: -51px;
    z-index: -1;
}
body.column::after {
    content: url(img/dc_star_l.svg);
    position: absolute;
    bottom: 414px;
    right: -45px;
    z-index: -1;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    body::before,
    body::after {
        display: none;
    }
}

/* パンくずリスト */
.breadcrumb {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 4px 0;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb li {
    font-size: 12px;
    color: #464646;
}

.breadcrumb li:not(:last-child)::after {
    content: url(img/arrow_breadcrumb.svg);
    margin: 0 7px;
    color: #ccc;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a svg {
    position: relative;
    top: -2px;
    vertical-align: middle;
}

.breadcrumb a:hover {
    text-decoration: underline;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .breadcrumb {
        margin: 0 0 8px 16px;
    }
}


/* ページタイトル */
.page-header {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 4px 0;
}

.page-header h1 {
    position: relative;
    color: #2A51A1;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 1.2px;
}
.page-header h1::after {
    content: url(img/plus_blue.svg);
    position: absolute;
    top: -27px;
    left: -27px;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 24px;
        padding: 24px 24px 0;
    }
    .page-header h1 {
        font-size: 32px;
    }
    .page-header h1::after {
        content: url(img/plus_blue_s.svg);
        top: -24px;
        left: -20px;
    }
}

/* コンテンツエリア */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .content-area {
        padding: 0 24px;
    }
}

.description {
    margin: 0 0 56px;
    font-size: 16px;
    line-height: 32px;
    color: #030740;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .description {
        margin: 0 0 24px;
        line-height: 1.75;
    }
}

.content-area .section {
    margin: 0 0 32px;
}
.content-area .section.-white {
    padding: 24px 32px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 2px 2px 14px 0px rgba(58, 9, 14, 0.12);
}
.content-area .section:last-child {
    margin-bottom: 0;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .content-area .section.-white {
        margin: 0 -16px 24px;
    }
    .content-area .section.-white:last-child {
        margin-bottom: 0;
    }
}

.content-area .section p {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 32px;
    color: #030740;
}
.content-area .section p:last-child {
    margin-bottom: 0;
}

.content-area .section h2 {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 12px;
    color: #1288D2;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 1px solid #1288D2;
}
.content-area .section h2::before {
    content: "";
    position: absolute;
    top: -8px;
    bottom: 0;
    left: -13px;
    display: block;
    margin: auto;
    width: 9px;
    height: 2.5px;
    background-color: #1288D2;
}
.content-area .section h2::after {
    content: "";
    position: absolute;
    top: -8px;
    bottom: 0;
    left: -10px;
    display: block;
    margin: auto;
    width: 2.5px;
    height: 9px;
    background-color: #1288D2;
    transform: rotate(0deg);
}

/* 左テキスト・右画像レイアウト */
.section .text-image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
}
.section .text-image-container.-doctor {
    margin: 0 0 32px;
    padding: 8px 0 0;
}
.section .text-image-container.-doctor:last-child {
    margin-bottom: 0;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section .text-image-container.-doctor {
        gap: 16px;
    }
}

.section .text-content {
    flex: 1;
    min-width: 300px;
}
.section .text-content.-doctor {
    flex: 2;
}
.section .text-content.-doctor h3 {
    margin: 0 0 8px;
}

.section .image-content.-figure {
    max-width: 300px;
}
.section .image-content.-manager {
    display: flex;
    width: 100%;
    align-items: center;
}
.section .image-content.-doctor {
    flex: 1;
    max-width: 300px;
    border: 8px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
}

.section .image-content.-figure img {
    width: 100%;
    height: auto;
    border-radius: 32px;
}
.section .image-content.-manager img {
    display: inline-block;
    width: 171px;
    height: auto;
    margin: 0 16px 0 0;
}
.section .image-content.-doctor img {
    width: 100%;
    height: auto;
    border-radius: 32px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section .text-image-container {
        flex-direction: column;
    }
    
    .section .text-content,
    .section .image-content {
        width: 100%;
        max-width: 100%;
    }
    
    .section .image-content {
        order: -1; /* モバイル表示では画像を上に配置 */
    }
    .section .image-content.-figure {
        max-width: 100%;
    }
    .section .image-content.-manager img {
        width: 131px;
    }
    .section .image-content.-doctor {
        max-width: 100%;
    }
}

/* 白背景セクションのスタイル調整 */
.section.-white .text-image-container {
    padding: 16px 0;
}

.section.-white .text-content h2 {
    margin-top: 0;
}

.section .map-container {
    width: 100%;
    margin: 0;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section .map-container iframe {
        height: 253px;
    }
}

.section .header-container {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    margin: 0 0 14px;
    padding: 0 0 12px;
    border-bottom: 1px solid #1288D2;
}

.section .header-container h2 {
    margin: 0;
    padding: 0;
    line-height: 1.3;
    border-bottom: none;
}

.section .header-container .address {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    vertical-align: middle;
}
.section .header-container .location {
    margin: 0 8px 0 0;
    vertical-align: middle;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .section .header-container {
        flex-direction: column;
        gap: 8px;
    }
}

section.-white .news-list {
    margin: 0;
    padding: 16px 8px;
    border-radius: 0;
    background: none;
}
@media (max-width: 768px) {
    section.-white .news-list {
        padding: 0;
        border-radius: 32px 32px 0 0;
    }
    .news-list li {
        flex-direction: column;
        gap: 0;
    }
    .news-list li time {
        margin: 0;
        padding: 0;
        border: none;
    }
}

.article-date {
    text-align: right;
    font-size: 16px;
    color: #94959E;
    margin: 0 32px 6px 0;
}

/* 画像テキスト回り込みモジュール */

/* 共通スタイル */
.image-text-module {
    margin-bottom: 24px;
    overflow: hidden; /* floatの回り込みを解除 */
}
.image-module {
    margin-bottom: 24px;
}
.image-text-module:last-child {
    margin-bottom: 0;
}
.image-module:last-child {
    margin-bottom: 0;
}

.image-text-module::after {
    content: "";
    display: table;
    clear: both;
}

.image-text-module .image-container img {
    max-width: 100%;
    height: auto;
}

.image-text-module .text-container p:last-child {
    margin-bottom: 0;
}

/* 左画像・右テキスト */
.image-text-module.left-image .image-container {
    float: left;
    width: 430px;
    margin: 0 24px 8px 0;
}

/* 左テキスト・右画像 */
.image-text-module.right-image .image-container {
    float: right;
    width: 430px;
    margin: 0 0 8px 24px;
}

.image-text-module .text-container h3 {
    margin: 0 0 8px;
    color: #1288D2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .image-text-module.left-image .image-container,
    .image-text-module.right-image .image-container {
        float: none;
        width: 100%;
        /* max-width: 430px; */
        margin: 0 auto 24px;
    }
    
    .image-text-module .text-container {
        clear: both;
    }
}

section .column-item {
    margin: 0;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .column-grid {
        margin: 0 0 40px;
    }
}

.info-list {
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

/* お問い合わせフォーム */
.wpcf7 {
    max-width: 800px;
    margin: 0 auto;
}

.wpcf7 label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.wpcf7 textarea {
    height: 200px;
}

.wpcf7 .form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.wpcf7 input[type="reset"],
.wpcf7 input[type="submit"] {
    min-width: 200px;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wpcf7 input[type="reset"] {
    background-color: #ccc;
    color: #464646;
}

.wpcf7 input[type="submit"] {
    background-color: #2A51A1;
    color: white;
}

.wpcf7 input[type="reset"]:hover {
    background-color: #b3b3b3;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #1e3c7a;
}

.wpcf7 .wpcf7-spinner {
    display: none;
}
.required {
    color: #dc3232;
}

/* エラーメッセージのスタイル */
.wpcf7 .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
}

.wpcf7 .wpcf7-response-output {
    margin: 2em 0;
    padding: 1em;
    border-radius: 4px;
    text-align: center;
}

@media (max-width: 768px) {
    .wpcf7 .form-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .wpcf7 input[type="reset"],
    .wpcf7 input[type="submit"] {
        width: 100%;
    }
}

/* 予約フォーム */
.reservation-form {
    max-width: 800px;
    margin: 0 auto;
}

.reservation-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: normal;
}

.reservation-form .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

.reservation-form input[type="text"],
.reservation-form input[type="tel"],
.reservation-form input[type="date"],
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.reservation-form textarea {
    height: 200px;
}

/* 日時選択部分 */
.datetime-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.datetime-group .date-part {
    flex: 2;
}

.datetime-group .time-part {
    display: flex;
    flex: 3;
    gap: 10px;
    align-items: center;
}

.datetime-group select {
    width: auto;
}

.datetime-group .time-separator {
    margin: 0 5px;
}

.reservation-form .form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.reservation-form input[type="reset"],
.reservation-form input[type="submit"] {
    min-width: 200px;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reservation-form input[type="reset"] {
    background-color: #ccc;
    color: #464646;
}

.reservation-form input[type="submit"] {
    background-color: #2A51A1;
    color: white;
}

.reservation-form input[type="reset"]:hover {
    background-color: #b3b3b3;
}

.reservation-form input[type="submit"]:hover {
    background-color: #1e3c7a;
}

@media (max-width: 768px) {
    .datetime-group {
        flex-direction: column;
        gap: 15px;
    }

    .datetime-group .time-part {
        width: 100%;
    }

    .datetime-group select {
        flex: 1;
    }

    .reservation-form .form-buttons {
        flex-direction: column;
    }

    .reservation-form input[type="reset"],
    .reservation-form input[type="submit"] {
        width: 100%;
    }
}

/* コンタクトフォームのレイアウト */
.another-contact-container {
    display: flex;
    gap: 48px;
    margin: 0 auto;
    max-width: 1200px;
}

.another-contact-container .contact-form {
    flex: 1;
    min-width: 0;
}

.another-contact-container .contact-info {
    width: 300px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 2px 2px 14px rgba(58, 9, 14, 0.12);
}

.another-contact-container .contact-info h2 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #1288D2;
    text-align: center;
}

.another-contact-container .zalo-info {
    margin-bottom: 32px;
    text-align: center;
}

.another-contact-container .qr-code {
    padding: 24px;
    background: #F3F3F3;
    border-radius: 12px;
    text-align: center;
}

.another-contact-container .qr-code img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: block;
}

.another-contact-container .email-info {
    text-align: center;
}

.another-contact-container .email-info a {
    display: inline-block;
    padding: 8px 16px;
    color: #1288D2;
    font-size: 16px;
    text-decoration: none;
    word-break: break-all;
    transition: all 0.3s;
    border-radius: 8px;
}

.another-contact-container .email-info a:hover {
    color: #0056b3;
    background-color: #F3F3F3;
}

@media (max-width: 768px) {
    .another-contact-container {
        flex-direction: column;
        gap: 32px;
    }

    .another-contact-container .contact-info {
        width: 100%;
        padding: 24px;
    }

    .another-contact-container .qr-code {
        padding: 16px;
    }

    .another-contact-container .qr-code img {
        width: 160px;
        height: 160px;
    }
}

.article-footer {
    margin: 32px auto 16px;
    text-align: center;
}
.article-footer a {
    margin: 0 auto;
}
.image-module img {
    width: 100%;
    height: auto;
}

/* Blog対応 */
.alignleft {
    float: left;
    margin: 0 16px 16px 0;
}
.alignright {
    float: right;
    margin: 0 0 16px 16px;
}
.aligncenter {
    display: block;
}

.column-date {
  display: block;
  font-size: 16px;
  color: #999999;
  text-align: left;
  margin-bottom: 4px;
  z-index: 1;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .column-item {
    width: calc(50% - 12px); /* タブレットでは2列 */
  }
}

@media (max-width: 768px) {
  .column-item {
    width: 100%; /* スマホでは1列 */
    margin: 0 0 32px;
    flex: 0;
  }
  
  .column-grid {
    gap: 16px;
  }
  
  .column-item a {
    padding: 24px 24px 40px;
  }
  
  .column-date {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .column-item h3 {
    font-size: 18px;
    line-height: 1.4;
  }
}