@charset "UTF-8";

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333; /*少しグレー*/
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

a:hover {
  text-decoration: underline;
  opacity: 0.5;
}


img {
    width: 100%;    /* 追加 画像レスポンシブ基本設定 */
    height: auto;
}

li {
  list-style: none;
}

h3,h4 {
  padding:1rem
}


.inner {
    max-width: 1080px;
    margin: 0 auto; /*中央寄せ*/
    padding: 0 5%; /* レスポンシブ対応 */
}

.section-container {
  padding-bottom: 3rem;
}

.info-pagination{
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 5%;
}

/*---------------------------------------
 ヘッダー 
-----------------------------------------*/
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 200;
    background-color: rgba(255,255,255,0.7);
}

#header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo img {
  max-width: 180px;
}

/*--------------------------------------
 ナビゲーション 
----------------------------------------*/
.hamburger {
  display: none;
}

.nav-menu {
  font-size: 0.875rem;
}

.nav-menu ul {
    display: flex;
    padding-left: 0;
    gap: 1.2rem;     /*追加*/
    align-items: center;
}

.nav-btn a {
  display: block;
  text-align: center;
  padding: 0.1rem 1rem;
  border: 1px solid rgb(52, 155, 223);
  border-radius: 5px;
  background-color:rgb(52, 155, 223);
  color: #fff;
}


/*--------------------------------------
 メインビュー 
----------------------------------------*/
#main-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#main-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /*写真の中心位置を指定*/
}

#main-message-wrapper {
  position: absolute;
  top: 30%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

#main-message {
  width: 50%;
  color: #163dbb;
  background-color: rgba(255,255,255,0.7);
  padding: 0.2rem;
  text-align: center;
  border-radius: 10px;
}

#main-message  h1 {
  font-size: 2rem;
  line-height: 1.5;
}

/*--------------------------------------
 セクション共通 
----------------------------------------*/
.section-bg-color {
  background-color: rgba(138, 222, 227, 0.5);
}

.section-title {
  padding: 5rem 0;
}

.section-title-j,
.section-title-e {
  text-align: center;
  padding: 0.7rem;
}

.section-title-e::after {
  content: "";
  display: block;
  margin: 0 auto; /* 中央に配置 */
  width: 50px;
  height: 2px;
  background-color: #333;
}

/*--------------------------------------
 私たちが大切にしていること 
----------------------------------------*/
#points-flex {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
}

.point-card {
  flex: 1;
  /* width: 33%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
/*  border: 1px solid #0d0d0d; */
}

.point-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
}

.point-card h4 {
  padding-top: 0.8rem;
}

.point-card p {
  padding: 0 1rem;
}

/*--------------------------------------
 診療案内
----------------------------------------*/
#service-flex {
  display: flex;
  justify-content: space-around;
  gap: 0.8rem;
}

.service-card {
  flex: 1;
  /* width: 25%; */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  border: 1px solid #0d0d0d;
  border-radius: 10px;
  padding: 1.2rem;
}

.service-card img {
  width: 30PX;
  height: auto;
}

.service-card-body {
  flex-grow: 1;
}

.service-card-btn {
  padding: 1rem 2rem;
  border: 1px solid #0d0d0d;
}

.service-card-btn:hover {
  background-color: #333;
  color: #fff;
}

#message {
  display: flex;
  align-items: center;
  gap: 10%;
}

#message img {
  width: 40%;
  height: auto;
  object-fit: cover;
}



.news-list {
  list-style: none;
  padding-left: 0;
}

.news-item {
/*  display: flex; */
/*  gap: 1rem; */
  padding: 1.5rem 0;
  border-bottom: 1px solid #282424;
}

.news-item-date {
  width: 100px;
  flex-shrink: 0;
}

.news-item-category {
  width: 80px;
  flex-shrink: 0;
  text-align: center;
}


.news-item .item-title:hover {
  text-decoration: underline;
  opacity: 0.7;
}

#a {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

#info-flex {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#info-left, 
#info-right {
  flex: 1;
  /*width: 40%;*/
  padding: 0 0.8rem;
}

#info-left img {
  width: 180px;
}

.time-table {
  align-items: center;
}

.time {
  width: 100%;
  border-collapse: collapse;
  /*table-layout: fixed;*/
  text-align: center;
}

.time th, 
.time td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 0.5rem;
}

#time th {
  font-weight: normal;
}

/*---------------------------------------
クリニック紹介
-----------------------------------------*/
.features-flex {
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
}

.feature-text,
.feature-img {
  flex: 1;            /* 均等割り */
  min-width: 250px;
}

.feature-img img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
}

.staff-flex {
  padding: 3rem 0;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.staff-img {
  flex: 1;
}

.staff-text {
  flex: 2;
}

.staff-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

#staff-3 img {
  object-position: left;
}

/*---------------------------------------
診療案内
-----------------------------------------*/
.service-flex {
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.service-img,
.service-text {
  flex: 1;
}

.service-img img {
  width: 100%;
  height: 300PX;
  object-fit: cover;
  object-position: center;
}

.service-list {
  padding: 1rem 2rem;
}


.service-li {
  list-style: disc;
}

/*---------------------------------------
アクセス
-----------------------------------------*/
.access-map iframe {
  width: 100%;
}

.access-flex {
  padding: 3rem 0;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.access-img,
.access-info {
  flex: 1;
}

.access-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.access-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}

.reserve-btn {
  text-align: center;
  margin: 2rem;
}

.reserve-btn a {
  display: inline-block;
  padding: 0.8rem 1rem 0.8rem 2rem;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: none;
}

/*---------------------------------------
お知らせ（一覧ページ・記事ページ）
-----------------------------------------*/
#news-flex {
  display: flex;
  padding: 3rem 0;
  gap: 2rem;
}

#news-main {
  flex: 8;
}

.news-list {
  border-top: 1px solid #333;
}

.news-item-box{
  padding: 0.75rem;
  border-bottom: 1px solid #333;
}

.news-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-item-title {
  display: flex;
  gap: 1rem;
}

.news-item-date {
  flex: 0 0 6rem;
}

.news-item-category {
  flex: 0 0 6rem;
  text-align: center;
  background-color: #333;
  color: #fff;
  border-radius: 4px;
}

.news-item-heading {
  flex: 1;
  padding: 0 2rem;
}

#news-item-heading {
  flex: 1;
  padding: 2rem;
}

/*--------------------------------
サイドバー
--------------------------------*/
#sidebar {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  text-align: center;
}

#sidebar-category ul,
#sidebar-archive ul {
  padding: 0.8rem 0;
}

.sidebar-search-form {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.input-box {
  min-width: 10rem;
  border: 1px solid #333;
}

.search-btn {
  min-width: 3rem;
  color: #fff;
  background-color: #333;
}

/*---------------------------------------
検索結果
-----------------------------------------*/
.archive-count {
  font-size: 1.5rem;
  font-weight: bold;
}

/*---------------------------------------
予約フォーム
-----------------------------------------*/
.form-section {
  padding: 1rem 0;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  width: 100%;
  padding: 0.8rem;
}
/* ラジオボタンとチェックボックスの幅 */
input[type=radio],
input[type=checkbox] {
  width: auto;
  padding: 0;
  margin-right: 1rem;
}

.tel-resevation {
  padding: 1rem 0;
}

.tel-resevation p {
  padding-left: 1rem;
}

.web-reservation {
  padding: 2rem 0;
}

.form-description {
  padding: 1rem 0;
}

/* リセットCSSの打ち消し　ここから */
.web-reservation input[type="text"],
.web-reservation select {
  border: 1px solid #333;
  background-color: #fff;
  /*width: 100%;*/
    max-width: 400px;
  height: 3rem;
  padding: 0 1rem;
  border-radius: 0.2rem;
}

.web-reservation input[type="radio"] {
  -webkit-appearance: radio;
  -moz-appearance: radio;
  appearance: radio;
  padding: 0.8rem;
}

.web-reservation select {
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
  cursor: pointer;
}

.web-reservation input[type="submit"] {
  padding: 0.5rem 2rem;
  border: 1px solid #333;
}
/* リセットCSSの打ち消し　ここまで */

.form-item {
  display: flex;
  padding: 1rem 0;
  vertical-align: middle; 

}

.form-heading {
  display: block;
  width: 10rem;
}

.form-input-borderline {
  border: 1px solid #333;
  border-radius: 5px;
}

.red {
  color: red;
}

.blue {
  color: blue;
  text-decoration: underline;
}

.radio-btn {
  margin-right: 2rem;
}
.radio-btn:hover {
  border: 1px dotted #333;
}

#reserve-time {
  margin-left: 1rem;
}

.annotation {
  margin-left: 1rem;
}

#policy-consent {
  display: flex;
}

.cf7-privacy-policy {
  text-decoration: underline;
}

.input-centering,
.submit-btn {
  text-align: center;
  padding: 1rem;
}

.submit-btn .wpcf7-submit {
  width: auto;
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 1px solid #333;
  border-radius: 5px;
  background: transparent;
  color: #333;
  cursor: pointer;
  transition: 0.3s;
}

.submit-btn .wpcf7-submit:hover {
  background: #333;
  color: #fff;
}

.wpcf7 form .wpcf7-spinner {
  display: block;
  margin: 15px auto 0;
}

.phone-number {
  font-size: 2rem;
}

/*---------------------------------------
フッター
-----------------------------------------*/
#footer {
  padding: 5rem 0;
}

#nav-footer {
  padding: 5rem 0 0 0;
}

#nav-footer ul {
  display: flex;
  justify-content: center;
  padding-left: 0;
  margin-bottom: 20px;
}

#copyright {
  text-align: center;
  font-size: 0.7rem;
}

/*-------------------------------------
 メディアクエリー 
 -------------------------------------*/
@media screen and (max-width: 768px) {
  .section-container {
    padding: 0 0 3rem 0;
  }

  #logo img {
    width: 10rem;
  }

  /* ハンバーガーメニュー */
  .hamburger {
    display: block;
    position: relative;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 100;
  }

  .hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
  }

  .hamburger span:nth-child(1) {top: 0;}
  .hamburger span:nth-child(2) {top: 11px;}
  .hamburger span:nth-child(3) {bottom: 0;}

  .hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
  }
  
  #nav-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255,255,255,0.9);
    z-index: 50;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  #nav-header.active {
    display: flex;
  }

  #nav-header ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  #main-message {
    width: 90%;
    margin: 0 auto;
  }

  #main-message h1 {
    font-size: 1.2rem;
    line-height: 2rem;
  }

  #points-flex,
  #service-flex,
  #message,
  .news-item,
  #info-flex {
    flex-direction: column;
  }

  #message p {
    order: 1; /* 写真と文の順番入れ替え */
  }

  #message img {
    order: 2;
    width: 100%;
  }

  #info-right {
    padding: 1rem 0;
  }

  #nav-footer {
    display: none;
  }

  /*----------------------------------------
  スタッフ紹介
  ----------------------------------------*/
  .features-flex {
    flex-direction: column;
  }

  .feature-text {
    width: 100%;
    order: 1;
  }
  
  .feature-img {
    width: 100%;
    order: 2;
  }
  
  .staff-flex {
    flex-direction: column;
  }

  .flex-img,
  .flex-text {
    width: 100%;
  }
  /*---------------------------------------
  診療案内
  -----------------------------------------*/
  .service-flex {
    flex-direction: column;
    align-content: center;
  }

  .service-img {
    order: 1;
  }

  .service-text {
    order: 2;
  }

  /*---------------------------------------
  アクセス
  -----------------------------------------*/
  .access-flex {
    flex-direction: column;
  }

  /*---------------------------------------
  お知らせ（一覧ページ・記事ページ）
  -----------------------------------------*/
  #news-flex {
  flex-direction: column;
  padding: 3rem 0;
  gap: 2rem;
  }

  .news-item-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  }

  .news-item-date,
  .news-item-category {
    flex:none;
    width: 6rem;
  }

/*---------------------------------------
予約フォーム
-----------------------------------------*/
.form-item {
  flex-direction: column;
}

#reserve-time {
  margin: 1rem 0 0 0;
}

}
