/*
Theme Name: kirakiradc
Theme URI: http://wordpress.org/themes/twentythirteen
Author: the WordPress team
Author URI: http://wordpress.org/
Description: The 2013 theme for WordPress takes us back to the blog, featuring a full range of post formats, each displayed beautifully in their own unique way. Design details abound, starting with a vibrant color scheme and matching header images, beautiful typography and icons, and a flexible layout that looks great on any device, big or small.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, fluid-layout, responsive-layout, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Text Domain: twentythirteen

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
a{color:#43b0a3;cursor:pointer;text-decoration:none;}
a:visited{}
a:hover{color:#43b0a3;text-decoration:underline;}
.over:hover{opacity:0.7;filter:alpha(opacity=70);}

.sp{
    display: none !important;
}
.pc{
    display: block !important;
}

body {
    font-family: "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴシック", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "メイリオ", "Meiryo", "ＭＳ Ｐゴシック", Osaka, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    line-height: 1.75;
    letter-spacing: 0.1em;
}

header {
    background-color: #ffffff;
    color: #51afc5;
    padding: 0;
    text-align: center;
}
body > header {
    position: relative;
    top: -22px;
}
header p{
    margin: 0;
}
header h1.httl {
    margin: 0;
    font-size: 2rem;
    font-weight: normal;
    height: 77px;
}
.httl a:hover {
    text-decoration: none;
}
header h1.httl span{
display: inline-block;
    font-size: 16px;
    background: #51afc5;
    color: #fff;
        position: relative;
    top: -19px;
    padding: 1px 10px 3px;
}
.webyoyaku{
    display: flex;
    gap: 40px;
    justify-content: center;
}
.webyoyaku a:hover{
    opacity: 0.7;
    transition: opacity 0.3s;
    text-decoration: none;
}
li.pinklink a{
    color: #fff !important;
}
.tel-area{
    position: absolute;
    right: 20px;
    top: -87px;
}
.tel-area a{
    font-size: 28px;
    font-weight: 500;
        line-height: 25px;
}
.tel-area a span{
    display: block;
    display: block;
    font-size: 14px;
    margin-top: 3px;
    text-align: right;
}
.tel-area a:hover{
    text-decoration: none;
    transition: 0.2;
    opacity: 0.7;
}
h3 span.underlineh{
    background: linear-gradient(transparent 60%, #dcd7d3 60%);
    border-radius: 80% 50% 60% 5% / 80% 75% 15% 75%;
}

@media screen and (max-width: 1024px) {
    body > header h1.httl span{
        top:-5px;
    }
}




/* 全体のスタイル */
nav {
    width: 100%;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
    padding-bottom: 5px;
}

/* スクロール後に固定する */
nav.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    background: #51afc5;
    padding-bottom: 0;
    padding-top: 5px;
}

/* メインメニュー */
.menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    width:100%;
    max-width: 100%;
    margin: 0 auto 5px;
    position: relative;
    padding: 0;
}

/* メニューアイテム */
.menu > li > a {
    display: block;
    color: #000;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.menu > li > a:hover {
    opacity: 0.7;
}
.menu > li > a span{
    display: block;
    padding: 10px;
}

nav.fixed .menu > li > a{
    color: #fff;
}

/* サブメニュー */
nav ul.menu li.menu-item ul.submenu {
    position: absolute;
    /*top: 100%;*/
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center; /* space-aroundをやめて中央揃え */
    gap: 5px; /* 項目間の余白を調整 */
    padding: 10px 0;
    list-style: none;
    display: none; /* 初期非表示 */
    z-index: 999;
}
ul.submenu img{
    width: 100%;
    border-radius: 8px;
}

nav.fixed ul.menu li.menu-item ul.submenu {
    top: 100%; /* 親要素にくっつける */
}

.submenu li {
    flex: 1;
    text-align: center;
}

.submenu a {
    color: #898072;
    text-decoration: none;
    display: block;
    padding: 10px;
    font-size: 14px;
}

.submenu a:hover {
    background: #51afc5;
    color: #fff;
}

/* PCではホバーで表示 */
.menu-item:hover .submenu {
    display: flex;
}
ul.casehmenu li img{
    width: 60%;
    display: block;
    margin: 0 auto;
}

/* WEB予約ボタン */
.pinklink a {
    background: #ff4081;
    padding: 5px 15px !important;
    border-radius: 5px;
}
/* LINE予約ボタン */
.greenlink a {
    background: #03c774;
    padding: 5px 15px !important;
    border-radius: 5px;
    color:#fff !important;
}
.menu > li > a{
    margin-right: 10px;
}
/* SNSアイコン */
.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    margin: 0 5px;
}

li.social-icons a img {
    display: block;
    height: 35px;
}


/* ===== スマホ用メニュー ===== */
.burger {
    display: none; /* PCでは非表示 */
    position: fixed; /* 画面右上に固定 */
    top: 5px; /* ヘッダーより上に配置 */
    right: 5px;
    width: 30px;
    height: 30px;
    z-index: 1101; /* ヘッダーより前面に配置 */
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px;
    background: #c7bead;
    border-radius: 5px;
    transition: 0.3s;
    border-radius: 50%;
}

/* バーガーメニューの三本線 */
.burger div {
    width: 20px;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* 三本線の間隔を狭く */
.burger div:not(:last-child) {
    margin-bottom: 4px;
}

/* バツボタン（メニューが開いた時） */
.burger.open div:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.burger.open div:nth-child(2) {
    opacity: 0;
}

.burger.open div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* スマホメニュー */
.menu-mobile {
    position: fixed;
    margin: 0;
    padding-left: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: unset;
    z-index: 1100;
    display: none; /* 最初は非表示 */
    padding-top: 1em;
}

/* メニューが開いたとき */
.menu-mobile.open {
    display: flex;
}

.menu-mobile li {
    border-bottom: 1px solid #444;
    list-style: none;
    width: 80%;
}

.menu-mobile a {
    display: block;
    padding: 15px;
    color: #444;
    text-decoration: none;
}

/* サブメニューアコーディオン */
.submenu-toggle-icon {
    display: none;
}

/* WEB予約ボタン */
.pinklink a {
    background: #ff4081;
    padding: 10px 15px;
    border-radius: 5px;
}

/* SNSアイコン */
.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    color: #fff;
    font-size: 18px;
    margin: 0 5px;
}

/* サブメニューアコーディオン */

div.submainttl h2 {
    display: flex;
    flex-direction: column;
    align-items: center;  /* 縦方向の中央揃え */
    justify-content: center; /* 横方向の中央揃え（必要なら） */
    height: 85px;
    margin: 0;
    color: #fff;
    background: linear-gradient(90deg,#63c5d9 0%, #2f86c9 100%);
}

.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 500;
}

.section {
    padding: 40px 20px;
    text-align: center;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 5px;
    font-weight: 500;
}

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

.content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

div.featurescontents{
    width: 100%;
}

div.fcont-first{
    width: 50%;
    text-align: center;
    margin: 0 auto 60px;
}
.fcont-first p{
    font-size: 22px;
    font-weight: 500;
    line-height: 2.2em;
    text-shadow: 0px 0px 4px #fff;
}
.fcont-first p span{
    border-bottom:2px solid #000;
}
div.fcont-second{
        max-width: 1000px;
    margin: 0 auto;
}
.fcontlist{
    display: flex;
    list-style: none;
    padding: 0;
    gap:20px;
    margin-bottom: 60px;
}
.fcontlist li{
    width: 33.33%;
    padding: 0 10px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.7); /* 白・70%透明 */
  padding: 15px;                    /* 文字と背景の余白 */
  border-radius: 10px;                  /* 角丸にしたい場合 */
  color: #000;                         /* 文字色（黒推奨） */
}
.fcontlist li img{
    width: 40%;
}
.fcontlist li dd,
.fcontlist li dt{
    font-size: 16px;
}
.fcontlist li dt{
    font-size: 18px;
    text-align: center;
    margin-bottom: 5px;
}
.fcontlist li dt span{
    font-size: 24px;
}
.fcontlist li dd{
    text-align: left;
    margin: 0;
}

div.fcontright ul{
    list-style: none;
    padding-left: 0;
}

div.fcontright ul li{
    display: block;
    margin-bottom: 10px;
}
div.fcontright ul li:last-child{
    margin-bottom: 0;
}

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

div.fcontright ul li dl{
    position: relative;
    padding: 10px 32px;
    border: 2px solid #111f2c;
    border-radius: 8px;
}

div.fcontright ul li dl dt{
    margin-bottom: 5px;
    margin-bottom: 5px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #898072;
}

div.fcontright ul li dl dd{
    margin-left: 0;
    color: #898072;
}

.servicecontainer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px; /* ブロック間の空白 */
    width: 100%;
    grid-auto-rows: 1fr;
    margin-bottom: 50px;
}

div.servicecontainer a{
    text-decoration: none;
}

.block {
    color: #898072;
    text-align: center;
    padding: 20px;
    position: relative; /* 装飾の位置指定のため */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    border-radius: 8px; /* ブロックに丸みをつける */
    border: 2px solid #999999;
}
.block img{
    width: 100%;
    border-radius: 8px;
}
.block p{
    text-align: left;
}

.block p::after{
    content: "";
    background-image: url(img/top/btm_icon.png);
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 18px;
    height: 18px;
}

section.servicesblock{
    width: 1000px;
    margin: 40px auto 0;
}

div.casecontents{
    width: 1000px;
    margin: 0 auto;
}
div.caseareaone{
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}
div.caseleft img{
    width: 100%;
    display: block;
    margin: 0 auto 10px;
}

div.caseleft table{
  width: 100%;
  border-collapse: collapse;
}

div.caseleft table tr{
  border-bottom: solid 2px white;
}

div.caseleft table tr:last-child{
  border-bottom: none;
}

div.caseleft table th{
  position: relative;
  text-align: left;
  width: 30%;
  background-color: #52c2d0;
  color: white;
  text-align: center;
  padding: 10px;
}

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

div.caseleft table td{
  text-align: left;
  width: 60%;
  background-color: #eee;
  padding: 10px 10px 10px 20px;
}

div.caseright ul{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
div.caseright ul li{
    width: 49%;
}

footer {
    background-color: #f3ebe1;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}
div.flexblock{
    display: flex;
}
div.flexblock p{
    text-align: left;
}

/* SNSアイコンのスタイル */
.sns-icons {
    display: flex;
    align-items: center;
    gap: 10px; /* アイコン間のスペース */
    margin-left: 20px; /* WEB予約との間隔 */
}

.sns-icons a {
    display: inline-block;
}

.sns-icons img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease-in-out;
}

.sns-icons img:hover {
    transform: scale(1.2); /* ホバー時の拡大効果 */
}

/* メインビジュアル */
.main-visual {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    overflow: hidden;
}

.main-visual div.text-area p span{
    color: #53b7f3;
}

/* ===== 左側のテキストエリア ===== */
.text-area {
    flex: 1;
    padding-left: 40px;
}

.fade-text {
    font-size: 2rem;
    color: #898072;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* ===== 右側のタイル状画像エリア ===== */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    width: 50%;
    height: 100%;
    padding-right: 40px;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider {
  display: flex;
  width: 300%; /* スライド数分 * 100% */
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-controls button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-controls button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
div.topimgfull img{
    width: 100%;
    padding: 40px 0;
}

div#news{
    background: #e3fcff;
}
.section#news{
    padding: 15px;
    margin-top: 65px;
}
div#news p{
    margin: 0;
}
div#news p{
    margin:0.5rem auto;
    width: 92%;
    max-width:1000px;
}
div#news p a{
    display: flex;
    justify-content: left;
    color:#000;
}
div#news p span{
    text-align: left;
}
div#news p span.date{
    width: 7rem;
}
div#news p span.ttl{
    width:calc(100% - 18rem);
}
div#news p span.more{
    width: 8rem;
    text-align: right;
}

@media screen and (max-width: 1024px) {
    div#news p span{
        width:100%!important;
        display :block;
    }
    div#news p a{
        flex-wrap: wrap;
        gap:0;
        width: 100%;
    }

}

/*
#news p span{
    background: #51afc5;
    color: #fff;
    padding: 5px 10px;
    margin-right: 15px;
    border-radius: 8px;
}
*/

/* 新メインビジュアル */
.mv {
    width: 100%;
    height:auto;
}
/* 共通のフェードインアニメーション */
@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  
  /* 全ての.fadeXXに共通のアニメーションスタイル */
  .fade00, .fade01, .fade02, .fade03, .fade04 {
    opacity: 0;
    animation: fadeIn 1.8s ease forwards;
  }
  
  /* 順番に遅延させて表示 */
  .fade00 { animation-delay: 0s; }
  .fade01 { animation-delay: 1.3s; }
  .fade02 { animation-delay: 2.6s; }
  .fade03 { animation-delay: 3.9s; }
  .fade04 { animation-delay: 4.9s; }

  

/* デスクトップ用のSNSアイコン */
.social-icons {
    display: flex;
    gap: 10px; /* アイコン間の隙間 */
    margin-left: 10px; /* メニュー右端に配置 */
    align-items: center;
}

.social-icons a {
    text-decoration: none;
    font-size: 20px; /* アイコンサイズ */
    color: #555; /* デフォルトの色 */
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #007bff; /* ホバー時の色 */
}

/* アクセスエリアのCSS */

.custom-access {
    background-color: #f9f9f9;
    padding: 50px 20px;
}

.custom-access-title {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.custom-access-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.custom-access-info {
    flex: 1;
    max-width: 400px;
    min-height: 400px;

}

.custom-access-info p {
    margin: 10px 0;
}
.custom-access-info a{
    color: #000;
}

.custom-access-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.custom-access-table th,
.custom-access-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.custom-access-table th {
    background-color: #e0e0e0;
}

.custom-access-map {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.custom-access-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

div.caseright ul{
    list-style: none;
    text-align: left;
    padding-left: 0;
}
div.caseright ul li{
    display: block;
}
div.caseright ul li a div{
    display: block;
    padding: 30px 10px 10px 10px;
    background-color: #fdf9f4;
    border-radius: 8px;
    position: relative;
}
div.caseright ul li a{
    text-decoration: none;
    color: #898072;
}

div.caseright ul li a div img{
    width: 25%;
    display: block;
    margin: 0 auto;
}
div.caseright ul li a div p{
    width: 100%;
    font-weight: bold;
    text-align: center;
    padding-bottom: 1em;
    margin-bottom: 0;
}
div.caseright ul li a div p::after{
    content: "";
    background-image: url(img/top/btm_icon.png);
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 18px;
    height: 18px;
}

div#services p span {
    background: linear-gradient(transparent 60%, #ff0 60%);
    font-weight: 600;
}
section.custom-bannerarea a{
    display: block;
}

div#about{
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    z-index: 0;
    padding: 0 !important;
}

div.aboutbody{
}
div.aboutcont{
    margin: 1em auto;
    padding: 20px;
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    box-sizing: border-box;
    gap:100px;
}
div.aboutcont p{
    width: 100%;
    text-align: left;
    margin-top: 0;
}
.doctorcom{
    font-size: 20px;
}
div.aboutcont p span{
    display: block;
    margin-top: 1em;
    font-size: 1.2em;
    font-weight: bold;
}
div.aboutcont p.doctorname span{
    display: block;
    margin-top: inherit;
    font-size: inherit;
    font-weight: inherit;
}
div.aboutcont div.about_right{
    width: 45%;
    position: relative;
}
p.doctoren{
    width: 8% !important;
    margin: 0;
    writing-mode: vertical-rl;
    color: #ccc;
    position: absolute;
    top: 0;
    left: 65px;
    font-size: 5em;
    font-family: serif;
}
p.doctorname{
    position: absolute;
    top: 80%;
    right: 0;
    text-align: right !important;
    font-size: 1.5em;
    padding: 10px;
    background: linear-gradient(to right, transparent 0%, #51afc5 100%);
    color: #fff;
}

div.aboutcont div.about_right img{
    width: 100%;
}
div.keireki{
    width: 50%;
}

p.doctorcom{
    margin-bottom: 50px;
}
div.keirekit_left,div.keirekit_right{
    width: 100%;
    text-align: left;
}
div.keirekit_right table{
    width: 96%;
    border:1px solid #000;
    padding: 5px;
    margin: 5px;
}
div.keirekit_left p,
p.documentary,
.seminar-history p{
    background-color: #52c2d1;
    color: #fff;
    text-align: center;
    font-size: 20px;
}
div.keirekit_left table{
    width: 100%;
}
div.keirekit_left table tr{
    margin-bottom: 15px;
}
div.keirekit_left table tr th{
    width: 20%;
    padding: 5px;
    font-size: 20px;
    vertical-align: top;
}
div.keirekit_left table tr td{
    width: 80%;
    padding: 5px;
    font-size: 20px;
}
div.keirekit_right table tr{
    margin-bottom: 15px;
}
div.keirekit_right table tr th{
    width: 30%;
    padding: 5px;
}
div.keirekit_right table tr td{
    width: 70%;
    padding: 5px;
}
.seminar-history{
    max-width: 1000px;
    margin: 0 auto;
}
.seminar-list{
    display: flex;
    gap: 32px;
    padding: 0;
    flex-wrap: wrap;
}

.seminar-list li{
    width: 226px;
    list-style: none;
}
.seminar-list li .img-box{
    height: 226px;
    border:1px solid #999;
    margin-bottom: 10px;
    display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  overflow: hidden;        /* はみ出した部分は隠す */
  background: #fff;        /* 背景色 */
  padding: 10px;
    box-sizing: border-box;
}
.seminar-list li .img-box img{
    max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* 縦長横長でも収まる */
}
.seminar-list li p.caption{
    font-size: 14px;
    background: none;
    color: #000;
    text-align: left;
}
.seminar-list li p.caption span{
    display: block;
}


/* ライトボックス背景 */
#lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  text-align: center;
  color: #fff;
}

/* コンテンツ配置 */
#lightbox .lightbox-inner {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

/* 画像 */
#lightbox img.lightbox-content {
  max-width: 90%;
  max-height: 70vh;
  box-shadow: 0 0 20px #000;
  border-radius: 8px;
}

/* キャプション */
#lightbox .lightbox-caption {
  margin-top: 15px;
  font-size: 18px;
}
#lightbox .lightbox-caption span{
    display: block;
}

/* 閉じるボタン */
#lightbox .close {
  position: absolute;
  top: 20px; right: 30px;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
}

/* 左右矢印 */
#lightbox .prev,
#lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  z-index: 11111;
}
#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }
#lightbox .prev:hover, #lightbox .next:hover {
  color: #ccc;
}



section.custom-mediaarea{
    max-width: 1000px;
    margin: 0 auto;
}
div.mediablock{
    margin-bottom: 20px;
}
div.mediablock:last-child{
    margin-bottom: 0;
}
div.mediablock img{
    width: 100%;
}


/* 下層ページ全体に適用するCSS */
div.main{
    width: 1000px;
    margin: 0 auto;
}

/* TOPへ戻るボタン */
#top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* ボタンが表示される時のスタイル */
#top-button.show {
    opacity: 1;
    visibility: visible;
}
#top-button.show span{
    font-size: 0.6em;
}

/* ボタンをクリックしたときのアニメーション */
#top-button:active {
    transform: scale(0.9);
}

/* スクロール時の回転アニメーション */
@keyframes rotateUp {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
    }
}


/* ===== パンくずリストの基本デザイン ===== */
.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    padding: 10px 0;
    flex-wrap: wrap;
}

/* ===== パンくずリストのアイテム ===== */
.breadcrumb li {
    display: flex;
    align-items: center;
}

/* ===== 区切り（ › のマーク）を追加 ===== */
.breadcrumb li:not(:last-child)::after {
    content: "›"; /* 区切りマーク */
    margin: 0 8px;
    color: #999;
}

/* ===== パンくずリストのリンク ===== */
.breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #005080;
    text-decoration: underline;
}

/* ===== 現在のページ（最後の項目） ===== */
.breadcrumb li:last-child {
    font-weight: bold;
    color: #444;
}

/* トップページコラムのエリア */
.column-article {
  display: block;
  max-width: 640px;
  margin: 10px auto;
}
.column-article a{
  display: flex;
  text-align: left;
  text-decoration: none;
  color: #898072;
  align-items: center;
}
.column-article img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    margin-right: 20px;
}
a.read-more{
    text-align: center;
    color: #898072;
    margin-top: 20px;
    display: inline-block;
}
a.read-more:hover{
    text-decoration: none;
}

/* ハッシュタグエリア */
ul.column-tags{
    list-style: none;
    padding: 0;
}

/* トップのフェードイン */
.fadein-up, .fadein-right {
  opacity: 0;
  transition: all 1.2s ease-out;
}

.fadein-up {
  transform: translateY(30px);
}
.fadein-up.show {
  opacity: 1;
  transform: translateY(0);
}

.fadein-right {
  transform: translateX(50px);
}
.fadein-right.show {
  opacity: 1;
  transform: translateX(0);
}

/* トップページのメインビジュアル最新 */
.mainvisual {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

/*トップページのミニター患者を見る*/
.section#case-study{
    padding-top: 65px;
    padding-bottom: 90px;
}
#case-study img{
    margin-bottom: 40px;
}
#case-study a{
    
}
#case-study a:hover img{
    opacity: 0.7;
    transition: 0.2s;
}
.btn-wrap-case a{
    border: 1px solid #000;
    height: 72px;
    width: 413px;
    line-height: 68px;
    display: block;
    margin: 0 auto;
    color: #000;
    position: relative;
    font-size: 22px;
}
.btn-wrap-case a:hover{
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}
.btn-wrap-case a:hover span{
    border-top: 2px solid white;
    border-right: 2px solid white;
}
.btn-wrap-case a span{
    width: 10px;
    height: 10px;
    display: inline-block;
    border-top: 2px solid black;
    border-right: 2px solid black;
    transform: rotate(45deg);
    position: absolute;
        right: 30px;
    top: 29px;
}

.btn-wrap-gikousho a{
    height: 72px;
    width: 413px;
    line-height: 68px;
    display: block;
    margin: 0 auto;
    color: #000;
    position: relative;
    font-size: 22px;
    background-color: rgba(255, 255, 255, 0.7);
    margin-bottom: 80px;
}
.btn-wrap-gikousho a:hover{
    background: #000;
    color: #fff;
    text-decoration: none;
    transition: 0.2s;
}
.btn-wrap-gikousho a:hover span{
    border-top: 2px solid white;
    border-right: 2px solid white;
}
.btn-wrap-gikousho a span{
    width: 10px;
    height: 10px;
    display: inline-block;
    border-top: 2px solid black;
    border-right: 2px solid black;
    transform: rotate(45deg);
    position: absolute;
        right: 30px;
    top: 29px;
}
.column_list{
    list-style: none;
    margin-bottom: 40px;
}
.column-list {
  display: flex;
  flex-wrap: wrap;       /* 折り返し */
  gap: 24px;             /* アイテム間の余白 */
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}

.column-item {
  flex: 1 1 calc(33.333% - 24px); /* 3カラム */
  min-width: 280px;               /* レスポンシブで崩れ防止 */
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.column-img {
  width: 100%;
  aspect-ratio: 4/3;           /* 画像エリアを揃える */
  background: #ddd;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.column-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;           /* 枠いっぱいにトリミング */
}

.column-meta {
  font-size: 14px;
  color: #555;
  margin: 12px 0 4px;
  text-align: left;
}

.column-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 16px;
  text-align: left;
  color: #000;
}
.column-item a:hover{
    text-decoration: none;
}

/* コラム 詳細 */
.latest-columns {
  margin-bottom: 2rem;
  max-width: 1000px;
  width: 92%;
  margin-left:auto;
  margin-right:auto;
}

.latest-columns__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.latest-columns__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0;
  margin-bottom:3rem;
}

.latest-columns__item {
  list-style: none;
}

.latest-columns__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.latest-columns__date {
  display: block;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.latest-columns__headline {
  font-size: 1rem;
  margin: 0.25rem 0 0;
  line-height: 1.4;
}

.latest-columns figure {
  margin: 0;
  padding: 0;
  height: 150px;
  overflow: hidden;
}
.latest-columns .latest-columns__meta{
  text-align: left;
}
@media screen and (max-width: 782px) {
  .latest-columns__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .latest-columns.section{
    padding:0;
  }
}



@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


/* 各ページのメインビジュアル */
h1.ceramichone {
    background-image: url(img/cetamichoneimg.jpg) !important;
}

h1.implanthone {
    background-image: url(img/implanttopimg.jpg) !important;
}


/* フッターエリア */
/* リンクを横並びにする */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    display: none;
}

header a{
    color:#51afc5;
}
/* リンクのスタイル */
.footer-links a {
    color: #898072;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
}

section.subpagefootlink{
    margin-bottom: 50px;
}
/*20250220追加*/
#latest-columns {
    max-width: 1000px;
    margin: 0 auto;
}
/*症例*/
.servicecontainer {
    display: flex;
  flex-wrap: wrap;
  gap:20px;
    width: 100%;
    margin-bottom: 50px;
}
div.servicecontainer a {
    text-decoration: none;
}
.block {
    color: #898072;
    text-align: center;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #999;
    width: 320px;
    flex: 1;              /* 均等幅（任意） */
  box-sizing: border-box;
  display: flex;        /* 中のレイアウト調整用 */
  flex-direction: column;
  justify-content: flex-start;
      align-items: center;
      min-height: 388px;
}
.block p::after {
    content: "";
    background-image: url(img/top/btm_icon.png);
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 18px;
    height: 18px;
}

.servicecontainer2 {
    display: flex;
  flex-wrap: wrap;
  gap:20px;
    width: 100%;
    grid-auto-rows: 1fr;
    margin-bottom: 50px;
}
div.servicecontainer2 a {
    text-decoration: none;
}
div.servicecontainer2 .block {
    color: #898072;
    text-align: center;
    padding: 20px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid #999;
    min-height: auto;
    width: 320px;
    display: block;
}
div.servicecontainer2 .block p::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 18px;
    height: 18px;
}
div.servicecontainer2 .block h3{
    margin-bottom: 0;
}
.slick-dots li button:before{
    font-size: 10px !important;
}
.slick-dots li{
    margin: 0 !important;
}
.slick-prev:before,
.slick-next:before {
  color: #876f49 !important;   /* 矢印の色を黒に */
  font-size: 24px !important; /* 矢印の大きさ */
}
.case-slide-wrap{
    padding: 20px !important;
}
.slick-prev{
    left: -5px !important;
}
.slick-next{
    right: -2px !important;
}
.slick-dots{
    bottom: -5px !important;
}
.slick-dotted.slick-slider{
    margin-bottom: 10px !important;
}
.case_list_wrap{
    width: 40%;
}
.case_list2{
    padding: 0 20px 20px 20px !important;
    margin-top: 0 !important;
}
/*強み*/
#features.section{
    padding-left: 40px;
    padding-right: 40px;
}
#features.section h2{
    font-size: 32px;
    text-shadow: 0px 0px 4px #fff;
        line-height: 2em;

}
#features.section h2 span{
    font-size: 52px;
}
#yoyaku.section{
    background-color: #e3fcff;
}
#video.section{
        padding: 80px 0 0;
}
#video ul{
    margin:2em auto 2em;
    padding:0;            
    list-style:none;
    display:flex;
    justify-content:space-between;
    max-width:1000px;
}
#video.section{
    background-color:#f5f5f5;
    padding-bottom:90px;
}
#video .vcatch img{
    max-width:520px;
    width:calc(100% - 20px);
}
#video .vcatch p{
    margin-bottom:3em;
}
#video ul img{
    width: 95%;
}
#video ul.doc{
    margin-top: 0;
    justify-content: center;
}
#video > div{
    padding:0 20px;
    box-sizing:border-box;
}
#video > div.ifcontainer{
    padding:0;
}
@media screen and (max-width: 768px) {
    #video.section{
        padding:20px 20px 40px;
    }
    #video ul{
        margin:1em auto;
    }
}



.custom-section{
    display: none;
}
.column_area h2{
    margin-bottom: 40px !important;
}
.section.custom-bannerarea {
    margin-bottom: 60px;

}
.custom-access .section h2{
    margin-bottom: 40px !important;
}
.archive .nav-links{
    margin: 0 auto 60px;
    text-align: center;
}
.single .nav-links{
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 60px;
}
.nav-links.clearfix a {
    border: 1px solid;
    padding: 5px 20px;
    margin: 5px;
    border-radius: 5px;
}



.c-archive-title a{
    color: #000;
}
.invisalign_gocontb.subpagecontent{
margin-bottom: 60px;
}

ul.faq {
    margin-bottom: 2rem;
    list-style: none;
    padding-left: 0;
}
li.qus {
    font-weight: bold;
    margin-bottom: 0.75rem;
    display: block;
    background: #efebe8;
    border-radius: 4px;
    color: #635239;
    padding: .75em;
}
li.ans {
    padding-left: 1rem;
}
li.qus:before {
    content: "Q. ";
}




/*スライドのドットの色*/
.flex-control-paging li a{
    background: #e3fcff !important;
}
.flex-control-paging li a.flex-active{
background: #51afc5 !important;
}


/* ===== お知らせ ===== */
/* 画像hverの挙動の削除 */
.single #primary .entry-content figure:hover img,
.single #primary .entry-content a:hover img,
.single #primary .entry-content .wp-block-image:hover img {
  transform: none !important;
}
.single #primary .entry-content img {
  transition: none !important; 
}

.responsive-iframe {
  position: relative;
  width: 80%;
  padding-top: 56.25%; /* 16:9 の比率 → 高さ = 幅 × 0.5625 */
  overflow: hidden;
  margin: 50px auto 60px;
}

.responsive-iframe iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ===== カウンセリング ===== */
.counseling_line a{
    display: block;
}
.counseling_line a img{
    width: 100%;
    max-width: 500px;
}


/* ===== ホワイトニング ===== */
.whiteningkblock .table-container td:first-child{
    width: 14em;

}

/* コラム詳細の矢印 */
.nav-links.clearfix a span.nav-prev::before{
    content: "<<";
    padding-right: 10px;
}
.nav-links.clearfix a span.nav-next::after{
    content: ">>";
    padding-left: 10px;
}
.nav-links.clearfix a:hover{
    text-decoration: none;
    background: #43b0a3;
    color: #fff;
}