/*
Theme Name: Cherry-hill Custum
Text Domain: 
Theme URI: 
Description: Modern Hospital Theme Overhaul
Version: 1.7.3
Author: Webleaf
*/

:root {
    /* Colors - Hospital / Trust / Longevity theme */
    --primary: #0a4d8c;
    /* Deep Blue - Trust */
    --primary-light: #1565c0;
    --secondary: #d4af37;
    /* Gold - Longevity/Premium */
    --accent: #e91e63;
    /* Accent for call to actions */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Akrobat Black';
    src: local("Akrobat Black"), url("/wp/images/fonts/akrobat/Akrobat-Black.woff") format("woff");
}

@font-face {
    font-family: 'Akrobat Bold';
    src: local("Akrobat Bold"), url("/wp/images/fonts/akrobat/Akrobat-Bold.woff") format("woff");
}

@font-face {
    font-family: 'Akrobat SemiBold';
    src: local("Akrobat SemiBold"), url("/wp/images/fonts/akrobat/Akrobat-SemiBold.woff") format("woff");
}

@font-face {
    font-family: 'Akrobat Regular';
    src: local("Akrobat Regular"), url("/wp/images/fonts/akrobat/Akrobat-Regular.woff") format("woff");
}

@font-face {
    font-family: 'Akrobat Light';
    src: local("Akrobat Regular"), url("/wp/images/fonts/akrobat/Akrobat-Light.woff") format("woff");
}

@font-face {
    font-family: 'Akrobat ExtraBold';
    src: local("Akrobat ExtraBold"), url("/wp/images/fonts/akrobat/Akrobat-ExtraBold.woff") format("woff");
}

body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.mincho {
    font-family: 'Noto Serif JP', serif;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.3;
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

p {
    margin-bottom: 1rem;
}

/* Layout Classes */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

#wrap {
    width: 100%;
    /* clip は横はみ出しを隠しつつスクロールコンテナを作らないため、
       内側の #header の position: sticky を壊さない（hidden は壊す） */
    overflow-x: clip;
}

/* Header & Nav Overhaul */
#header {
    background: var(--white);
    padding: var(--space-sm) 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

#header .hd-logo {
    width: 280px;
    margin: 0;
}

.pc-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: transparent;
    padding: 0;
}

.pc-menu .item {
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 0.5rem 0;
}

.pc-menu .item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.pc-menu .item:hover::after {
    width: 100%;
}

/* Section Utilities */
.section-padding {
    padding: var(--space-lg) 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--space-md) 0;
    }

    .pc-menu {
        display: none;
    }
}

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

/* Cards & Components */
.about-grid,
.access-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.access-grid {
    align-items: start;
}

@media (max-width: 992px) {

    .about-grid,
    .access-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .about-grid h2,
    .access-grid h2 {
        font-size: 2rem !important;
    }

    .about-grid .scroll_right img,
    .access-grid iframe {
        height: 350px !important;
    }
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    opacity: 0.9;
}

.information {
    background: var(--primary);
    color: var(--white);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.sns-waku {}

.sns-links {
    display: flex;
}

.sns-links img {
    width: 32px;
    height: 32px;
    margin-right: 4px;
}

.sns-links .wp-block-image {
    margin: 0 !important;
}

.sns-links-pc {
    display: flex;
    justify-content: center;
}

.sns-links-pc a {
    width: 265px;
    margin-right: 5px;
    margin-left: 5px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 4px rgba(50, 50, 93, 0.15), 0 2px 4px rgba(0, 0, 0, 0.07);
    border-radius: 2px;
}

.banner-img {
    width: 100%;
    max-width: 820px;
    display: block;
    margin: 30px auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(50, 50, 93, 0.15), 0 2px 4px rgba(0, 0, 0, 0.07);
}

.sns-links-pc2 {
    display: flex;
    justify-content: center;
    margin: 2em 0;
}

.sns-links-pc2 a {
    width: 400px;
    margin-right: 10px;
    margin-left: 10px;
    border-radius: 2px;
}

.shinryo-items ul a {
    width: 23%;
    margin: 6px;
}

.shinryo-items ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.shinryo-items ul li {
    background: #fff;
    padding: 20px;
    font-family: 'Noto Sans JP';
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(50, 50, 93, 0.15), 0 2px 4px rgba(0, 0, 0, 0.07);
}

.shinryo-items .shinryo-title {
    display: block;
    text-align: center;
    margin: 30px 0 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.shinryo-items .shinryo-text {
    height: 150px;
    overflow: hidden;
    display: none;
}

.shinryo-items .shinryo-items ul li {
    background: #fff;
    padding: 20px;
    position: relative;
}

.shinryo-items ul li:before {
    content: '';
    position: absolute;
    top: 16px;
    left: 46%;
    width: 13px;
    height: 13px;
    background-color: #ffb7c5;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    z-index: 1;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.1);
}

#info-box {
    display: flex;
    width: 1000px;
    margin: 0 auto;
}

.info-label {
    width: 540px;
    height: 230px;
}

.info-btn a,
.info-btn2 a {
    width: 29%;
    float: left;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    margin: 2px;
    background: #f5f5f5;
    font-size: 13px !important;
    font-weight: bold;
}

.info-btn a:hover,
.info-btn2 a:hover {
    background: #fff1f8;
    text-decoration: none;
}

.info-text {
    width: 460px;
    padding: 0 24px;
    /*border:1px dashed #666;*/
    background: #f5f5f5;
    line-height: 1.5;
    height: 230px;
    padding-bottom: 10px;
    overflow-x: hidden;
    overflow-y: scroll;
}

.infowaku {
    width: 100%;
}

.info-text h3 {
    margin: 15px 0 20px;
    text-align: center;
}

.info-textpage {
    padding: 0 25px;
    line-height: 1.5;
    min-height: 250px;
    padding-bottom: 10px;
}

.info-textpageh3 {
    margin: 15px 0 50px;
}

/* info */
.cate {
    margin-left: -30px;
}

.cate ul li {
    list-style: none;
    float: left;
    border: 1px solid #333;
    padding: 0px 10px;
    background: #fff;
    min-width: 85px;
    text-align: center;
}

.infotime {
    float: left;
    padding: 1px 10px;
    font-family: "Akrobat SemiBold";
    font-size: 1.0rem;
    margin-top: -2px;
}

.pos {
    float: left;
    padding: 1px;
    width: 250px;
    overflow: hidden;
    height: 24px;
}

.pos a {
    color: #007aff;
    font-weight: bold;
}

article {
    margin-top: -10px;
    margin-left: 30px;
    display: block;
}

article a {
    text-decoration: underline;
}

/* menu */
.information .cp_ipselect {
    padding: 10px 6px;
    border-radius: 6px !important;
}

/* post */
.post_cate ul li {
    list-style: none;
    float: left;
    border: 1px solid #333;
    padding: 10px;
    background: #fff;
    width: 90px;
    text-align: center;
    margin-left: -30px;
}

.post_cate ul li a {
    text-decoration: none;
}

.post_infotime {
    text-align: right;
    padding: 10px;
    font-size: 16px;
}

.ctblock .post_btcontent {
    width: 90%;
    min-height: 400px;
    margin: 60px auto 100px;
    font-size: 1.1rem;
    line-height: 1.3em;
}

.ctblock .post_btcontent p {
    font-family: "Noto Sans JP";
}

.postLinks {
    padding: 5px 0;
}

.postLint-prev,
.postLint-next {
    padding: 10px;
}

.postLint-next {
    text-align: right;
}

/* autocode */
.wp-block-image {
    margin: 20px 0 !important;
}

#tpslide {
    width: 1000px;
    margin: 0 auto;
}

#tpslide img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.bw0 {
    width: 100%;
}

.bw1 {
    width: 90%;
    margin: 0 auto;
    max-width: 900px;
}

.bw2 {
    width: 80%;
    margin: 0 auto;
    max-width: 900px;
}

.bw3 {
    width: 60%;
    margin: 0 auto;
    max-width: 900px;
}

.fs20r {
    font-size: 2rem;
}

.fs15r {
    font-size: 1.5rem;
    line-height: 1.2em;
}

.fs16 {
    font-size: 16px;
    font-family: 'Noto Serif JP', "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "ＭＳ Ｐ明朝", "MS PMincho", serif;
}

.fs14 {
    font-size: 14px;
}

.fs11 {
    font-size: 11px;
}

.ctblock {
    padding: 100px 0;
}

.ctblock .main {
    text-align: center;
    font-family: 'Noto Serif JP', "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    font-size: 1.5rem;
}

.ctblock .sub,
.ctblock .ctpr,
.ctblock h3 {
    text-align: center;
}

.ctblock h3 {
    padding: 23px 0;
    margin: 2em 0;
    font-family: 'Noto Serif JP', "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    font-size: 1.5rem;
}

.ctblock p {
    padding: 5px 0;
    line-height: 1.5em;
}

.ctblock .ctpr {
    margin: 40px 20px;
}

.ctblock .sub {
    color: #007aff;
    font-weight: 600;
    margin: 20px 0 0;
    font-family: "Akrobat SemiBold";
    font-size: 1.5rem;
    ;
}

.ctblock .btcontent {
    width: 90%;
    margin: 100px auto;
    font-family: "Noto Sans JP";
}

.ctblock .btcontent a {
    text-decoration: underline;
}

.ctblock .btcontent p {
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: 0.1rem;
}

.ctblock .btcontent ul,
.ctblock .btcontent ol {
    margin: 1em 0 0 2em;
}

.ctblock .btcontent li {
    font-size: 16px;
    line-height: 1.8em;
    letter-spacing: 0.1rem;
}

.ctcontent h3 {
    font-size: 1.0rem;
    letter-spacing: 0.1rem;
    font-weight: bold;
}

.ctblock .ctcontent {
    display: flex;
    flex-wrap: wrap;
    width: 800px;
    margin: 60px auto;
}

.ctblock .ctcontent .item2 {
    width: 49%;
    max-width: 400px;
    margin: 3px;
    background: #fff;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    border-radius: 2px;
}

.ctblock .ctcontent .item2 img {
    border-radius: 2px 2px 0 0;
}

.ctblock .ctcontent .item2 .toolchip {
    position: absolute;
    top: 85px;
    left: 50px;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 1px #ffffff;
}

.ctblock .ctcontent .item2 a {
    color: #000;
    text-decoration: none;
}

.ctblock .ctcontent .item2 a:hover {
    color: #333;
    background: #ed1280;
    border-radius: 2px;
}

.ctblock .ctcontent .item3 {
    width: 100%;
    margin: 0 0 30px 0;
    background: #fff;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.ctblock .ctcontent .item3 ul {
    display: flex;
    flex-wrap: wrap;
    margin: 20px;
}

.ctblock .ctcontent .item3 ul li {
    list-style: none;
    width: 135px;
    padding: 20px 0px;
    border: 1px solid #ccc;
    letter-spacing: 0.1rem;
    margin: 7px;
    border-radius: 3px;
    text-align: center;
    background: #f5f5f5;
}

.ctblock .ctcontent .item3 img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: bottom;
}

.ctblock .ctcontent .item3 a {
    color: #000;
    text-decoration: none;
}

.ctblock .ctcontent .item3 a:hover {
    background: #F9DCEE;
}

.ctblock .ctcontent4 {
    display: flex;
    flex-wrap: wrap;
    width: 900px;
    margin: 60px auto;
    border-radius: 10px;
}

.ctblock .ctcontent4 .item4 {
    width: 32.7%;
    max-width: 300px;
    height: 288px;
    overflow: hidden;
    margin: 0 2px 0;
    background: #fff;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    position: relative;
    border-radius: 5px;
}

.ctblock .ctcontent4 .item4 .toolchip {
    position: absolute;
    top: 90px;
    left: 16px;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 1px 2px #000;
    color: #fff;
    background: rgb(255 219 237 / 20%);
}

.ctblock .ctcontent4 .item4 a {
    color: #000;
    text-decoration: none;
}

.ctblock .ctcontent4 .item4 a:hover {
    color: #333;
    background: #ed1280;
}

.ctblock .ctcontent4 p {
    line-height: 1.5em;
    padding: 22px 35px;
}

.ctblock .ctcontent4 img {
    object-fit: cover;
    height: 147.15px;
    width: 100%;
}

.ctblock .ctcontent p {
    line-height: 1.5em;
    padding: 16px 30px;
    border-radius: 2px;
}

.ctblock .ctfooter {
    background: #ffdbed;
    display: block;
    margin: 80px auto 0;
    text-align: center;
    width: 200px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    background-image: url(/wp/images/bg_sakura.jpg);
    border-radius: 5px;
}

.ctblock .ctfooter a {
    padding: 20px 34px;
    display: block;
    font-weight: bold;
    letter-spacing: 0.1rem;
}

.kyuushin-bt {
    background: #ffdbed;
    display: block;
    margin: 10px auto 0;
    text-align: center;
    width: 250px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    background-image: url(/wp/images/bg_sakura.jpg);
}

.kyuushin-bt a {
    padding: 10px 30px;
    display: block;
    font-weight: bold;
}

.ctblock .ctcontent5 {
    width: 800px;
    margin: 60px auto;
}

.ctblock .ctcontent5 .item5 {
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

.ctblock .ctcontent5 .item5 iframe {
    width: 100%;
    height: 299px;
}

.ctblock .ctcontent6 {
    width: 800px;
    margin: 60px auto;
}

.ctblock .ctcontent6 .item6 {
    width: 100%;
    height: auto;
    background: #fff;
    padding: 0 0 30px 0;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.ctblock .ctcontent6 p {
    line-height: 2;
    padding: 0 40px;
}

.shinryokamoku {
    background: url(images/white_plaster_@2X.png)repeat;
    padding: 60px 0;
}

.clinicinfo {
    background: url(images/xv.png)repeat;
    padding: 60px 0;
}

.gairaisinryotable {
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table th,
table td {
    font-size: 15px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    letter-spacing: 0.1rem;
    line-height: 1.3rem;
}

table th {
    position: relative;
    text-align: left;
    min-width: 10%;
    background-color: #4ba1ff;
    color: white;
    font-weight: 100;
    text-align: center;
    padding: 5px 0;
    z-index: 1;
}

.gairaisinryotable table tr:nth-child(odd) {
    background-color: #eee
}

.gairaisinryotable table th:after {
    display: block;
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    top: calc(50% - 10px);
    right: -10px;
    border-left: 10px solid #4ba1ff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.coryright {
    text-align: center;
    padding: 5px;
    background: #ffdbed;
    background-image: url(/wp/images/bg_sakura.jpg);
}

#footer {
    max-width: 1920px;
    margin: 0 auto;
}

#footer a {
    text-decoration: none;
}

#footer a:hover {
    text-decoration: underline;
}

#footer .ftcontents {
    display: flex;
    justify-content: space-between;
}

#footer .ftcontents .item {
    width: 25%;
    border: 1px solid #ffdbed;
    text-align: center;
    padding: 6px 0;
}

#footer .ftmenu {
    display: flex;
    justify-content: center;
    background: #f5f5f5;
    padding: 15px;
}

#footer .ftmenu .item {
    width: 10%;
    text-align: center;
}

#footer .address {
    padding: 50px 3px;
    text-align: center;
}

#footer .tell {
    font-size: 2rem;
}

#footer .fax {}

#footer p {
    line-height: 1.0rem !important;
}

select,
option {
    font-family: 'Noto Sans JP';
    letter-spacing: 0.1rem;
}

.cp_ipselect {
    overflow: hidden;
    width: 33.3%;
    margin: 5px 0;
    text-align: center;
}

.cp_ipselect select {
    width: 100%;
    padding-right: 1em;
    cursor: pointer;
    text-indent: 0.01px;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    border: 0px solid #f5f5f5;
}

.cp_ipselect select::-ms-expand {
    display: none;
}

.cp_ipselect.cp_sl01 {
    position: relative;
    border: 1px solid #f9f9f9;
    border-radius: 2px;
    background: #ffffff;
}

.cp_ipselect.cp_sl01::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666666;
    pointer-events: none;
}

.cp_ipselect.cp_sl01 select {
    padding: 10px 38px 10px 10px;
    color: #000;
}

.cp_ipselect select::-ms-expand {
    display: none;
}

.cp_ipselect.cp_sl02 {
    position: relative;
    border: 1px solid #f9f9f9;
    border-radius: 2px;
    background: #ffffff;
}

.cp_ipselect.cp_sl02::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666666;
    pointer-events: none;
}

.cp_ipselect.cp_sl02 select {
    padding: 8px 38px 8px 8px;
    color: #000;
}

.cp_ipselect select::-ms-expand {
    display: none;
}

.cp_ipselect.cp_sl03 {
    position: relative;
    border: 1px solid #f9f9f9;
    background: #ffffff;
}

.cp_ipselect.cp_sl03::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666666;
    pointer-events: none;
}

.cp_ipselect.cp_sl03 select {
    padding: 8px 38px 8px 8px;
    color: #000;
}

.cp_ipselect select::-ms-expand {
    display: none;
}

.cp_ipselect.cp_sl04 {
    position: relative;
    border: 1px solid #f9f9f9;
    border-radius: 2px;
    background: #ffffff;
}

.cp_ipselect.cp_sl04::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666666;
    pointer-events: none;
}

.cp_ipselect.cp_sl04 select {
    padding: 8px 38px 8px 8px;
    color: #000;
}

.cp_ipselect select::-ms-expand {
    display: none;
}

.cp_ipselect.cp_sl05 {
    position: relative;
    border: 1px solid #f9f9f9;
    border-radius: 2px;
    background: #ffffff;
}

.cp_ipselect.cp_sl05::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666666;
    pointer-events: none;
}

.cp_ipselect.cp_sl05 select {
    padding: 8px 38px 8px 8px;
    color: #000;
}

.cp_ipselect select::-ms-expand {
    display: none;
}

.cp_ipselect.cp_sl06 {
    position: relative;
    border: 1px solid #f9f9f9;
    border-radius: 2px;
    background: #ffffff;
}

.cp_ipselect.cp_sl06::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666666;
    pointer-events: none;
}

.cp_ipselect.cp_sl06 select {
    padding: 8px 38px 8px 8px;
    color: #000;
}

.qqq {
    border-top: 1px solid;
    font-weight: bold;
}

.aaa {
    margin-left: 35px;
    margin-bottom: 20px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fff;
    border-left: solid 1px #ececec;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px #fff;
}

.menu__button {
    display: none;
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.links .item {
    width: 23%;
    max-width: 450px;
    margin: 5px;
    box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.2);
}

#page-top {
    position: fixed;
    bottom: -90px;
    right: 20px;
    z-index: 9998;
}

#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary, #4ba1ff);
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#page-top a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

.ftak {
    font-family: "Akrobat SemiBold";
}

.ftakb {
    font-family: "Akrobat black";
}

.parking img {
    width: 49%;
}

/* form */
.wpcf7-form-control-wrap {
    width: 60%;
    margin: 0 auto;
}

.wpcf7-form-control-wrap input {
    width: 100%;
    padding: 10px 15px;
    border-radius: 3px;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

.wpcf7-form-control-wrap textarea {
    width: 100%;
    padding: 10px 15px;
    border-radius: 3px;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

.wp-block-table {
    margin: 5px 0;
}

.pcblock {
    display: block;
}

.post-categories a {
    text-decoration: none;
}

.nintei-index {
    width: 420px;
    margin: 0 auto;
}

/* 220314 */
.info-text .infotime {
    width: 87px;
}

/* ダウンロードボタン */
.wp-block-file:not(.wp-element-button) {
    font-size: 1.2em !important;
}

.wp-block-file .wp-block-file__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 0;
    line-height: 1;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 12px !important;
    background-color: #0c447c;
    color: #ffffff;
}

.wp-block-file .wp-block-file__button::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 16l-6-6h4V4h4v6h4l-6 6zm-8 2h16v2H4v-2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.wp-block-file .wp-block-file__button::after {
    content: "DL";
    font-size: 13px;
}

.top-icon {
    width: 64px;
    height: 64px;
    margin: 4px auto;
    display: block;
}

@media only screen and (max-width: 699px) {
    br.smp {
        display: none;
    }
}

#newtop-icon {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 1000px;
    margin: 20px auto;
    text-align: center;
    gap: 10px;
}

#newtop-icon img {
    width: 100px;
}

#newtop-icon .item {
    padding: 1em;
}

#newtop-icon .item h4 {
    font-family: 'Noto Sans JP';
    font-size: 1.6rem;
}

#newtop-icon2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 1000px;
    margin: -10px auto;
    text-align: center;
    gap: 10px;
}

#newtop-icon2 .item {
    background: #f4f4f4;
    padding: 1em;
}

#newtop-icon .item h4 a,
#newtop-icon2 .item h4 a {
    color: black !important;
}

#newtop-icon2 .item h4 {
    font-family: 'Noto Sans JP';
}

#newtop-icon2 img {
    width: 168px;
}

.info-text2 {
    width: 720px;
    margin: 0 auto;
    font-family: 'Noto Serif JP', serif !important;
    padding-bottom: 4em;
}

.info-text2 .cate {
    margin-left: 1rem;
    margin-right: 1rem;
}

.info-text2 .infotime {
    float: none;
    padding: 0;
    font-family: 'Noto Serif JP', serif !important;
    font-size: 1.0rem;
    margin-top: 0;
}

.info-text2 .pos {
    float: left;
    padding: 1px;
    width: 250px;
    overflow: hidden;
    height: 24px;
}

.info-text2 .pos a {
    color: #007aff;
    font-weight: bold;
}

.info-text2 article {
    margin-top: 10px;
    margin-left: 0;
    display: flex;
    flex-direction: row;
    border-bottom: 1px dotted;
    padding-bottom: 10px;
    font-family: "Noto Sans JP";
}

.info-text2 article a {
    text-decoration: none;
}

.info-text2 article a:hover {
    text-decoration: underline;
}

@media only screen and (max-width: 720px) {
    #newtop-icon {
        width: 90%;
    }

    #newtop-icon .item {
        padding: 0.1em;
    }

    #newtop-icon .item h4 {
        font-size: 1rem;
        margin: 0 0 10px 0;
        padding: 0;
    }

    #newtop-icon2 {
        width: 90%;
    }

    #newtop-icon2 .item {
        padding: 0.1em;
    }

    #newtop-icon2 .item h4 {
        font-size: 1rem;
        margin: 0 0 10px 0;
        padding: 10px 0 0 0;
    }

    .info-text2 {
        width: 95%;
    }

    .info-text2 article {
        width: 95%;
        display: grid;
        grid-template-columns: 45px 76px 1fr;
    }
}

/*----------------------------scroll_up ｜下から上へ出現----------------------------*/
.scroll_up {
    transition: 0.8s ease-in-out;
    transform: translateY(30px);
    opacity: 0;
}

.scroll_up.on {
    transform: translateY(0);
    opacity: 1.0;
}

.scroll_left {
    -webkit-transition: 0.8s ease-in-out;
    -moz-transition: 0.8s ease-in-out;
    -o-transition: 0.8s ease-in-out;
    transition: 0.8s ease-in-out;
    transform: translateX(-30px);
    opacity: 0;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
}

.scroll_left.on {
    opacity: 1.0;
    filter: alpha(opacity=100);
    -moz-opacity: 1.0;
    transform: translateX(0);
}

.scroll_right {
    -webkit-transition: 0.8s ease-in-out;
    -moz-transition: 0.8s ease-in-out;
    -o-transition: 0.8s ease-in-out;
    transition: 0.8s ease-in-out;
    transform: translateX(30px);
    opacity: 0;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
}

.scroll_right.on {
    opacity: 1.0;
    filter: alpha(opacity=100);
    -moz-opacity: 1.0;
    transform: translateX(0);
}

/*------------------------*/
/* ---------フェードその場で */
.fadeIn {
    animation-name: fadeInAnime;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeInAnime {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 左から */
.fadeLeft {
    animation-name: fadeLeftAnime;
    animation-duration: 0.7s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeLeftAnime {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeRight {
    animation-name: fadeRightAnime;
    animation-duration: 0.7s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeRightAnime {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fadeUp {
    animation-name: fadeUpAnime;
    animation-duration: 1.7s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeUpAnime {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeDown {
    animation-name: fadeDownAnime;
    animation-duration: 1.7s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeDownAnime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeDown2 {
    animation-name: fadeDownAnime;
    animation-duration: 2.7s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeDown2Anime {
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------フェードend */

.menu {
    display: none;
}

@media only screen and (max-width: 720px) {
    body {
        font-size: 15px;
    }

    .nintei-index {
        width: 99%;
        margin: 0 auto;
    }

    /* 220314 */
    .pcblock {
        display: inline;
    }

    .ctblock article {
        margin-left: 0px;
        width: 90%;
        margin: 0 auto;
    }

    .post_cate ul li {
        margin-left: 10px;
    }

    #pr {
        width: 99%;
        margin: 0 auto -32px;
    }

    h1,
    h2 {
        font-size: 100%;
    }

    h3,
    h4 {
        font-weight: normal;
    }

    .fs16 {
        font-size: 15px;
    }

    .fs14 {
        font-size: 14px;
    }

    .fs11 {
        font-size: 12px;
    }

    #header {
        width: 100%;
    }

    #header .hd-logo {
        width: 214px;
        padding: 30px 0;
        margin: 0 auto;
    }

    #topinfo {
        width: 100%;
    }

    #topinfo .bgimg {
        display: none;
    }

    #tpslide {
        width: 100%;
    }

    #tpslide img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .pc-menu .item {
        width: 22%;
        margin: 3px;
        padding: 10px 0;
        text-align: center;
    }

    .information {
        width: 100%;
        margin: 0 auto;
        text-align: left;
        background: #ffdbed;
        padding: 7px 0 7px 12px;
        display: flex;
        flex-wrap: wrap;
        background-image: url(/wp/images/bg_sakura.jpg);
    }

    .shinryo-items ul a {
        width: 47%;
        margin: 2px;
    }

    #info-box {
        width: 100%;
        flex-wrap: wrap;
    }

    .info-label {
        width: 100%;
        height: auto;
    }

    .info-text {
        padding: 0 20px;
        width: 100%;
        margin: 0 auto;
        border: 0;
        height: 180px;
        border-bottom: 1px solid #ccc;
    }

    .info-text h3 {
        text-align: center;
    }

    .info-btn a {
        width: 31.5%;
    }

    .info-btn2 a {
        width: 31%;
    }

    .infotime {
        line-height: 1.0em;
        padding: 3px 10px;
    }

    .cate {
        margin-left: -40px;
    }

    .cate ul li {
        padding: 0px 2px;
        min-width: 60px;
        text-align: center;
        width: 100px;
    }

    .infotime {
        float: left;
        padding: 1px 10px;
    }

    .pos {
        float: none;
        padding: 0px;
        width: 1000px;
        overflow: unset;
    }

    .bw0,
    .bw1,
    .bw2,
    .bw3 {
        width: 100%;
    }

    #contents {
        width: 100%;
    }

    .ctblock {
        padding: 60px 0;
    }

    .ctblock .post_btcontent {
        width: 90%;
        margin: 60px auto;
        font-size: 1.1rem;
        line-height: 1.3em;
    }

    .ctblock .ctcontent {
        width: 95%;
        margin: 30px auto;
    }

    .ctblock .ctcontent .item2 {
        width: 100%;
    }

    /* スマホ診療科目 */
    .ctblock .ctcontent .item3 ul {
        justify-content: center;
    }

    .ctblock .ctcontent .item3 ul li {
        width: 140px;
    }

    .ctblock .ctcontent .item3 img {
        height: 200px;
    }

    .ctblock .ctcontent4 {
        width: 95%;
        margin: 30px auto;
    }

    .ctblock .ctcontent4 .item4 {
        width: 95%;
        max-width: 99%;
        margin: 10px auto;
        height: 250px;
    }

    .ctblock .ctcontent5 {
        width: 100%;
        margin: 30px auto;
    }

    .ctblock .ctcontent6 {
        width: 100%;
        margin: 30px auto;
    }

    .ctblock .ctcontent p {
        line-height: 1.5em;
        padding: 15px 10px;
    }

    /* バナー */
    .sns-links-pc2 {
        display: flex;
        justify-content: center;
        margin: 2em 0;
        flex-direction: column;
    }

    .sns-links-pc2 a {
        width: 90%;
        margin: 5px auto;
    }

    #footer .ftmenu .item {
        width: 24%;
    }

    .cp_ipselect {
        width: 48%;
        margin: 5px 0;
        text-align: center;
    }

    .links .item {
        width: 90%;
    }

    .parking img {
        width: 100%;
    }

    /* スマートフォン用menu */
    .menu-btn {
        position: fixed;
        top: 14px;
        right: 16px;
        z-index: 1011;
        cursor: pointer;
        background: #fff;
        padding: 10px;
        border-radius: 6px;
    }

    .bar {
        display: block;
        width: 30px;
        height: 3px;
        margin: 5px 0;
        background-color: #333;
    }

    .menu {
        position: fixed;
        top: 0;
        right: -350px;
        width: 350px;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.99);
        transition: right 0.3s ease-in-out;
        z-index: 1009;
        display: inline;
        overflow-y: auto;
        font-family: 'Noto Serif JP';
    }

    .menu ul {
        list-style: none;
        padding: 0;
        margin-top: 50px;
    }

    .menu li {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        text-align: center;
    }

    .menu li a {
        display: block;
    }

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

    .menu.open {
        right: 0;
    }

    /* スマホで動きなし */
    .scroll_up,
    .scroll_left,
    .scroll_right {
        /* すべてのクラスをまとめて指定 */
        transition: none;
        transform: translate(0, 0);
        /* 縦横の移動を無効化 */
        opacity: 1;
        filter: alpha(opacity=100);
        /* IE8以前のブラウザ向けの透過度も無効化 */
        -moz-opacity: 1;
        /*  Firefox以前のブラウザ向けの透過度も無効化 */
    }

}

/* ==========================================================================
   Page & Single Layout (2 Column)
   ========================================================================== */

.page-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

@media (max-width: 992px) {
    .page-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .sidebar {
        display: none;
    }
}

/* ==========================================================================
   Sidebar Styles
   ========================================================================== */

.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--bg-main);
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-menu a {
    display: block;
    padding: 0.5rem;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-menu a:hover {
    background: var(--bg-main);
    color: var(--primary);
    padding-left: 1rem;
}

/* ==========================================================================
   Modern Content Styles (page.php, single.php)
   ========================================================================== */

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    color: var(--primary);
    font-size: 1.8rem;
    padding: 0.5em 0.5em 0.5em 1em;
    border-left: 5px solid var(--primary);
    background: var(--bg-main);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 2em 0 1em;
}

.post-content h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 1.5em 0 1em;
    padding-bottom: 0.3em;
    border-bottom: 2px solid var(--primary);
}

.post-content h4 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 1.5em 0 0.5em;
    padding-left: 0.5em;
    border-left: 3px solid var(--secondary);
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
}

.post-content a:hover {
    text-decoration: none;
    color: var(--primary-light);
}

.post-content img {
    border-radius: var(--radius-md);
    margin: 1.5em 0;
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Design Enhancement v1.5 — クリーン/信頼感（追記。.bak で復元可）
   ========================================================================== */

:root {
    /* やや繊細な影とリングカラーを追加（既存トークンは不変） */
    --ring: 0 0 0 3px rgba(10, 77, 140, 0.25);
    --shadow-soft: 0 8px 24px -8px rgba(10, 77, 140, 0.18);
}

/* --- ヘッダー: 透け感とコントラスト --- */
#header {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(10, 77, 140, 0.06);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* --- ボタン: 立体感とホバーの一体感 --- */
.btn {
    box-shadow: var(--shadow-soft);
    will-change: transform;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(10, 77, 140, 0.35);
}

.btn-secondary:hover {
    opacity: 1;
    filter: brightness(1.05);
}

/* --- ヒーロー: レスポンシブタイポ --- */
#hero .hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

#hero .hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* --- ナビカード: 過度な浮きを抑えクリーンに --- */
.hm-nav-card:hover {
    transform: translateY(-5px);
}

/* --- アクセシビリティ: フォーカスリング統一 --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.hm-nav-card:focus-visible,
.hm-close:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: var(--radius-sm);
}

/* --- モーション軽減設定への配慮 --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

#newtopinfo {
    margin-bottom: 4em;
}