@charset "UTF-8";
/* CSS Document */
*{box-sizing:border-box;}
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;}
:focus{outline:0;}
html,body{width:100%;}
html{overflow-y:scroll;position:relative;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:"";content:none;}
input,textarea{margin:0;padding:0;}
ol, ul{list-style:none;margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
caption,th,td{font-weight:normal;text-align:left;}
a img{border:0;}
a:focus,a:active,a:hover{outline:none;}
img{max-width:100%;vertical-align:bottom;}
body{
  /*スマホで勝手に文字が大きくなる対策*/
  -webkit-text-size-adjust:none;
  /* footerをbottomに固定する処理 */
  display:flex;
  flex-direction:column;
  min-height:100vh;
  /* //footerをbottomに固定する処理 */
}
footer{
  /* footerをbottomに固定する処理 */
  margin-top:auto;
  /* //footerをbottomに固定する処理 */
}

/*診療科*/

.clinic-page-wrapper * {
  box-sizing: border-box;
}

.clinic-page-wrapper {
  font-family: "Helvetica Neue", sans-serif;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  color: #333;
  background: #f9f9f9;
}

.clinic-hero-title-area {
  background-image: url(https://koenkai-gr.jp/img/main_bg.jpg);
  background-size: cover;
  background-position: left;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5vw;
  color: #fff;
  text-align: left;
  position: relative;
}

.shoukaki-clinic-hero-title-area {
  background-image: url(https://koenkai-gr.jp/img/main_bg.jpg);
  background-size: cover;
  background-position: left;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5vw;
  color: #fff;
  text-align: left;
  position: relative;
}

.clinic-hero-inner {
  text-align: center;
}

.clinic-hero-title-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.clinic-hero-icon {
  width: 100px;
  height: 100px;
  vertical-align: middle;
}

.clinic-hero-title {
  font-size: 2.4rem;
  font-weight: bold;
  margin: 0;
  line-height: 1.2;
}

.clinic-hero-subtitle {
  font-size: 1.1rem;
  margin: 0;
}

@media (max-width: 768px) {
  .clinic-hero-title {
    font-size: 1.8rem;
  }

  .clinic-hero-subtitle {
    font-size: 1rem;
  }

  .clinic-hero-icon {
    width: 24px;
    height: 24px;
  }
}

.clinic-container {
  max-width: 960px;
  margin: 40px auto;
  padding: 1px 20px;
  background: #fff;
}

.clinic-container h2 {
  border-left: 6px solid #007B8A;
  padding-left: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #007B8A;
}

.clinic-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3vw;
  margin: 4vw auto;
  overflow-x: auto;
  padding: 0 2vw;
}

.clinic-cta-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40vw;
  min-width: 150px;
  max-width: 300px;
  padding: 1.5em 0;
  font-size: 1.5rem;
  font-weight: bold;
  background-color: #007B8A;
  color: #fff!important;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  height: 3.5em;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.clinic-cta-button:hover {
  background-color: #005f6b;
}

@media (max-width: 400px) {
  .clinic-cta-button {
    font-size: 1.2rem;
    width: 45vw;
  }
}

.clinic-symptom-list {
  list-style: disc;
  padding-left: 20px;
}

.clinic-doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
  align-items: start;
  margin-bottom: 40px;
}

.clinic-doctor-card {
  background: #f1f1f1;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 360px;
}

.clinic-doctor-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 10px;
}

.clinic-doctor-card h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

.clinic-doctor-card p {
  margin: 4px 0;
}

@media (max-width: 1024px) {
  .clinic-doctor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .clinic-doctor-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .clinic-doctor-card {
    min-height: auto;
  }
}

.clinic-box-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 0px;
}

.clinic-box {
  border: 1px solid #ccc;
  padding: 15px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 150px;
}

.clinic-box h3 {
  margin: 0 0 10px;
  color: #007B8A;
  font-size: 18px;
}

.clinic-box p {
  font-size: 14px;
  line-height: 1.6;
  flex-grow: 1;
}

.clinic-box a {
  text-decoration: none;
  font-size: 14px;
  color: #333;
  align-self: flex-end;
  position: relative;
  padding-left: 20px;
}

.clinic-box a::before {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
}


/*2025年8月3日のレイアウトズレ解決部分*/
.clinic-faq {
  display: block;
  width: 100%;
  margin-bottom: 2em;
  overflow: auto;
  clear: both;
}

.clinic-faq dt {
  font-weight: bold;
  margin-top: 20px;
  clear: both;
}

.clinic-faq dd {
  margin-bottom: 10px;
  clear: both;
}

.clinic-timetable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.clinic-timetable th, .clinic-timetable td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.clinic-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
	padding-bottom: 30px;
}

.clinic-gallery img {
  width: calc(33.333% - 10px);
  height: auto;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .clinic-cta-button {
    height: 2.5em;
    font-size: 100%;
  }

  .clinic-gallery img {
    width: 100%;
  }
}

.clinic-medical-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px;
}

.clinic-medical-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
  background-color: #fff;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s;
}

.clinic-medical-box:hover {
  opacity: 0.8;
}

@media (max-width: 1200px) {
  .clinic-medical-grid {
    grid-template-columns: repeat(4, 1fr);
    height: 100px;
  }
}

@media (max-width: 900px) {
  .clinic-medical-grid {
    grid-template-columns: repeat(3, 1fr);
    height: 50px;
  }
}