@charset "UTF-8";
/*
Theme Name: Hidamari
Description: Portfolio website converted to WordPress theme.
Author: Keisuke Koita
Version: 1.0
*/ 

/* font */
/* font-family: "Agbalumo", system-ui; */
/* font-family: "Noto Sans JP", sans-serif; */
/* font-family: "M PLUS Rounded 1c", sans-serif; */

/* ResetDef */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul {list-style: none;}
a {
  text-decoration: none;
  color: #333;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;
}

body {
  background-color: #FFF6EE;
}

html {
  font-size: 62.5%;
  font-family: "Noto Sans JP", sans-serif;
}

h1, h2 {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: bold;
  font-size: 3.2rem;
}

.flex {
  display: flex;
}

img {
  max-width: 100%;
}

.ac-color {
  color: #28C442;
}

.m-80 {
  margin: 0 80px;
}

.m-160 {
  margin: 0 160px;
}
.logo-img, .logo-box {
  height: 50px;
}

/* ------------ header nav ------------   */
.header {
  position: fixed;
  width: 100%;
  padding: 2rem 0;
  z-index: 100;
  border: none;
  background-color: #fff;
  justify-content: space-between;
  align-items: center;
}

.logo {
  cursor: pointer;

}

.hamburger {
  margin-right: 80px;
  display: block;
  width: 5rem;
  height: 5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 100;
}

.hamburger-line {
  position: absolute;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: #28C442;
  transition: all.6s;
}

.hamburger-line:nth-of-type(1) { top: 10px;}
.hamburger-line:nth-of-type(2) { top: 24px;}
.hamburger-line:nth-of-type(3) { top: 38px;}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #FFF6EE;
  transition: all 0.6s;
  visibility: hidden;
  opacity: 0;
  z-index: 90;
}

/* activeがついている場合の処理 */
.hamburger.active .hamburger-line:nth-of-type(1) {
  transform: translateY(14px) rotate(-45deg);
  
}
.hamburger.active .hamburger-line:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-of-type(3) {
  transform: translateY(-14px) rotate(45deg);
}

.nav.active {
  visibility: visible;
  opacity: 1;
}

.nav-list {
  padding: 0 40px;
  text-align: center;
}

.nav-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}


.nav .nav-list_item {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s;
}

.nav.active .nav-list_item {
  opacity: 1;
  transform: translateY(0);
}

.nav.active .nav-list_item:nth-child(1) { transition-delay: 0.1s;} 
.nav.active .nav-list_item:nth-child(2) { transition-delay: 0.2s;} 
.nav.active .nav-list_item:nth-child(3) { transition-delay: 0.3s;} 
.nav.active .nav-list_item:nth-child(4) { transition-delay: 0.4s;} 
.nav.active .nav-list_item:nth-child(5) { transition-delay: 0.5s;} 


.nav-list_link {
  font-size: 2.4rem;
  font-weight: bold;
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}

.nav-list_link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #28C442;
  transition: width 0.3s ease;
}

.nav-list_link:hover::after {
  width: 100%;
}

main {
  padding-top: 10rem;
}

/* ------------ footerCommon ------------   */
.footer {
  margin-top: 100px;
}

.footer .contact-box {
  margin-top: 50px;
  background-color: #fff;
  padding: 4rem;
  border-radius: 20px;
}

.contact-box .flex {
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  width: 30rem;
}

.contact-box button {
  font-size: 2.4rem;
  font-weight: bold;
  background-color: #F9E79F;
  display: block;
}
.contact-btn {
  padding: 3rem 5rem;
  border-radius: 20px;
  width: 100%;
}
.contact-left button {
  padding: .5rem;
  border-radius: 10px;
}
.contact-left .line-btn {
  margin-bottom: 20px;
}
.line-btn, .web-btn {
  width: 100%;
}

.footer-container {
  height: 120px;
  align-items: center;
  justify-content: space-between;
  padding: 0 80px;
  background-color: #fff;
}

.footer-nav .nav-list {
  display: flex;
  gap: 30px;
}

.footer-nav .nav-list_item {
  margin-bottom: 0;
}

.footer-nav .nav-list_link {
  font-size: 1.4rem;
}
.contact {
  margin-bottom: 100px;
}

/* ------------ frontPage ------------   */

.mv {
  padding-top: 10%;
  position: relative;
}

.mv-img {
  width: 80vw;
  height: 90vh;
}

.mv-img img {
  height: 90vh;
  object-fit: cover;
  object-position: right;
  border-radius: 0 10% 10% 0%;
}



.mv h1 {
  font-family: "Agbalumo", system-ui;
  color: #28C442;
  position: absolute;
  left: 80px;
  top: 2.5%;
  font-size: 200px;
}

.news-schedule-box .schedule {
  width: 45%;
}
.news-schedule-box .news {
  width: 45%;
}
.news-schedule-box {
  justify-content: space-around;
  margin-top: 100px;
  margin-bottom: 100px;
}
.schedule h2 {
  margin-bottom: 50px;
}

.schedule-img {
  text-align: center;
  padding-top: 30px;
}
.news h2 {
  margin-bottom: 50px;
}

.news-list-box a{
  text-decoration: none;
}

.about {
  padding: 100px 0;
  background-color: #fff;
}

.about .flex {
  margin-top: 50px;
  justify-content: space-between;
  align-items: center;
}

.about-text {
  width: 48%;
  margin-right: 60px;
}

.about-text h3 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.6rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

.and-more-btn {
  display: inline-block;
  padding: 15px 40px;
  background-color: #F9E79F;
  border-radius: 30px;
  font-size: 1.6rem;
  transition: background-color 0.3s;
  cursor: pointer;
}
.and-more-btn a {
  color: #333;
  font-weight: bold;
}

.and-more-btn:hover {
  background-color: #1fa836;
  color: #fff;
}

.calucel {
  width: 560px;
  height: 400px;
  position: relative;
}

.calucel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.calucel .num {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 60px;
  height: 60px;
  background-color: #28C442;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: bold;
}
.service {
  margin-bottom: 100px;
}
.service h2 {
  margin-bottom: 50px;
  margin-top: 100px;
}
.service .flex {
  justify-content: space-between;
}

.service .service-item {
  width: 30%;
  padding: 15px;
  padding-bottom: 30px;
}

.service .service-img {
  margin-bottom: 15px;
}
.service .service-img img{
  border-radius: 20px;
}

.service-main {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.service-text {
  font-size: 1.6rem;
}


.accese {
  padding: 100px 0;
  background-color: #fff;

}

.accese .flex {
  margin-top: 50px;
  justify-content: space-between;
  align-items: center;
}

.accese-text {
  width: 40%;
}

.accese-text h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.accese-text p {
  font-size: 1.6rem;
  line-height: 1.8;
}

.accese-map {
  width:  560px;
  height: 480px;
}

.accese-map iframe {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.h2-sub {
  display: block;
  font-size: 1.6rem;
  margin-top: 5px;
}

.news-list-box {
  padding: 30px;
  border-radius: 20px;
}

.news-list-box li {
  padding: 15px 0;
  border-bottom: 1px solid #333;
}

.news-list-box li:last-child {
  border-bottom: none;
}

.news-list-box a {
  font-size: 1.6rem;
  display: block;
  transition: color 0.3s;
}

.news-list-box a:hover {
  color: #28C442;
}

/* ------------ singlepage-common ------------   */
.top-container {
  margin-top: 10rem;
}
.title-main {
  font-size: 3.2rem;
  margin-bottom: 10rem;
}
.top-img {
  margin-bottom: 100px;
}
.top-img img{
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: bottom;
}

/* パンくずリスト */
.bread-crubm {
  margin-bottom: 2rem;
}
.bread-crubm ol {
  font-size: 1.6rem;
  flex-wrap: wrap;
  list-style: none;
}

.bread-crubm ol li:not(:last-of-type)::after {
  content: ">";
  margin: 0 0.5rem;
  color: #333;
}

.title-sub {
  display: block;
  font-size: 1.6rem;
}

h2 {
  text-align: center;
  font-size: 3.2rem;
}
.h2-sub {
  display: block;
  font-size: 1.6rem;
}


/* ------------ about-single ------------   */
.philosopy,
.message {
  margin-bottom: 100px;
}
.philosopy h2,
.message h2,
.point h2 {
  margin-bottom: 80px;
}

.phil-img {
  width: 48rem;
  height: 40rem;
  border-radius: 50px;
  margin-right: 8rem;
}
.phil-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50px;
}
.message .phil-img img {
  object-fit: contain;
}
.message .phil-img {
  margin-right:  0;
  margin-left: 8rem;
}

.phil-text-box {
  width: 48rem;
  height: 40rem;
}
.phil-text-box h3 {
  font-size: 2.4rem;
}
.phil-text-box p {
  font-size: 1.6rem;
}

.phil-box {
  justify-content: center;
}

.message .flex {
  flex-direction: row-reverse;
}

/* ------------ about*point* ------------   */
.point .flex {
  justify-content: center;
}
.point-item {
  background-color: #F9E79F;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden; 
  width: 30%;
  padding: 20px;
  margin-right: 30px;
}
.point-item:last-child{
  margin-right: 0;
}

.point-img {
  width: 100%;
  height: 300px;
  margin-bottom: 20px;
}
.point-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.point-main {
  font-size: 24px;
  margin-bottom: 20px;
}

.point-text {
  font-size: 1.6rem;
}


/* ------------ news-archive ------------   */
.news-list-item {
  padding: 20px 25px;
  border-top: #333 1px solid;
}
.news-list-item:last-of-type {
  border-bottom: #333 1px solid;
}
.news-list-item p, 
.news-list-item data, 
.news-list-item h3 {
  font-weight: 500;
  font-size: 2.4rem;
}

.news-list-item h3 {
  padding: 0 20px;
}

/* ------------ news-single ------------   */

/* ------------ service-single ------------   */
.service-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-item {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-img {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 20px;
  text-align: center;
  position: relative;
  flex-grow: 1;
}

.service-num {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: #28C442;
  color: #fff;
  border-radius: 30%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}

.service-title {
  font-size: 2rem;
  margin-top: 20px;
  margin-bottom: 15px;
}

.service-description {
  font-size: 1.6rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .service-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width: 480px) {
  .service {
    padding: 50px 20px;
  }
}
/* ------------ FAQ-single ------------   */
.faq-container {
  font-size: 1.6rem;
}

.qa-box {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  
  position: relative;
  z-index: 10;
}

.qa-box >  dl > dt {
  background-color: #F9E79F;
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 10px;
  position: relative;
}

.qa-box > dl > dt .crossBar {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.qa-box > dl > dt .crossBar::before {
  content: "";
  display: inline-block;
  width: 1.6px;
  height: 100%;
  background-color: #4D4D4D;
  position: absolute;
  top: 0;
  left: 50%;
  transform-origin: center center; /* 中心を基準にtransform */
  transform: translateX(-50%) rotate(0deg);
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.qa-box > dl > dt .crossBar::after {
  content: "";
  display: inline-block;
  width: 100%;
  height: 1.6px;
  background-color: #333;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.qa-box > dl > dt > span {
  font-family: "M PLUS Rounded 1c", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: bold;
  font-style: normal;
  color: #333;
  margin-right: 25px;
  width: 4rem;
  height: 4rem;
  background-color: #fff;
  border-radius: 10px;
}
.qa-box > dl > dd {
  margin: 0;
  background-color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding: 0px 40px; /* paddingの上下を0にする */
  max-height: 0; /* max-heightを0にする、レスポンシブ対応 */
  overflow: hidden;  
  transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
.qa-box > dl > dd > span {
  font-family: "M PLUS Rounded 1c", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  font-weight: bold;
  font-style: normal;
  color: #333;
  margin-right: 25px;
  width: 4rem;
  height: 4rem;
  background-color: #F9E79F;
  border-radius: 10px;
}

 /* アニメーション後のスタイル */
 .qa-box > dl > dd.is-open { /* heightとpaddingをアニメーション */
  max-height: 100px;
  padding: 20px 30px;
}
/* ＋ボタンのアニメーション */
.qa-box > dl > dt.is-open .crossBar::before {
  transform: translateX(-50%) rotate(90deg);  /* 90度回転 */
}

/* contact */
.cf-area {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: 2em 0;
	border-bottom: 1px dashed #ccc;
	transition: all .3s;
}

.cf-area:last-child {
	border-bottom: none;
}

.cf-area dt {
  width: 200px;
  padding-right: 30px;
  text-align: right;
	line-height:1.5em;
  font-size: 16px;
}

.cf-area dd {
  flex: 1;
}

.cf-area input, .cf-area textarea {
  width: 100%;
  padding: 0.8em;
  border: none;
  background-color: #e6e6e6;
  font-size: 16px;
	resize: vertical;
	transition: all .3s;
}

.cf-area input:focus,.cf-area textarea:focus {
	outline: none;
	background: #dde2e9;
}

.cf-required {
	background: #b91e23;
	color: #fff;
	font-size: 0.8em;
	padding: 0 5px 2px;
	border-radius: 2px
}

.cf-send input {
	display: block;
	background: linear-gradient(135deg, #28C442 0%, #333 100%);
	width: 300px;
	height: 60px;
	margin: 30px auto 0;
	border: none;
	border-radius: 10px;
	color: #fff;
	box-shadow: 2px 5px 15px 0 rgba(0, 0, 0, .2);
	font-size: 1.3em;
	font-weight: bold;
	transition: all .3s;
  font-size: 24px;
}

.cf-send input:hover {
	filter: brightness(1.25);
}

.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output {
	background-color: #fce3e3;
	border: none;
	text-align: center;
}


.single-news .title-main {
  margin-bottom: 5rem;
}

/* single css  */
.post-wrapper .flex{
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5rem;
}

.post-header time {
  font-size: 1.6rem;
}

.post-container {
  font-size: 1.6rem;
}

@media screen and (max-width:768px){
	.cf-area {
		display: block;
	}

	.cf-area dt {
    width: 100%;
		margin-bottom: 5px;
    padding-right: 0;
    text-align: left;
		line-height:1.5em;
	}
}


/* レスポンシブ対応 */
@media (max-width: 960px) {
  html {
    font-size: 55%;
  }

  .m-80 {
    margin: 0 40px;
  }

  .m-160 {
    margin: 0 40px;
  }
  .footer {
    margin-top: 50px;
  }

  /* ヘッダーの調整 */
  .header {
    height: 8rem; /* 高さを少し小さく */
  }
  .logo-img, .logo-box {
    height: 40px; /* ロゴのサイズ調整 */
  }
  .hamburger {
    margin-right: 40px; /* ハンバーガーメニューのマージン調整 */
  }
  /* メインビジュアルの調整 */
  .mv {
    padding-top: 150px;
  }
  .mv h1 {
    left: 40px;
    top: 80px;
    font-size: 80px;
  }

  /* お知らせと診察時間の調整 */
  .news-schedule-box {
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    margin-bottom: 50px;
  }
  .news-schedule-box .schedule,
  .news-schedule-box .news {
    width: 90%;
    margin-bottom: 50px;
  }
  .news-list-box {
    padding: 15px;
  }
  .news-list-box li {
    padding: 10px 0;
  }
  .news-list-box a {
    font-size: 1.4rem;
  }

  .service .flex {
    display: block;
  }
  .service .service-item {
    width: 100%;
  }

  /* 当院についての調整 */
  .about {
    padding: 50px 0;
  }
  .about .flex {
    flex-direction: column-reverse;
    margin-top: 30px;
  }
  .about-text {
    width: 90%;
    margin-right: 0;
    margin-top: 30px;
    text-align: center; /* テキストを中央揃えに */
  }
  .and-more-btn {
    padding: 10px 20px;
    font-size: 1.4rem;
  }
  .calucel {
    width: 90%;
    height: 300px; /* 高さを調整 */
  }
  .calucel .num {
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
  }
  
  /* アクセスの調整 */
  .accese {
    padding: 50px 0;
  }
  .accese .flex {
    flex-direction: column;
    margin-top: 30px;
  }
  .accese-text {
    width: 90%;
    margin-bottom: 30px;
    text-align: center;
  }
  .accese-map {
    width: 90%;
    height: 300px;
  }

  /* フッターの調整 */
  .footer-container {
    padding: 0 40px;
    height: auto; /* 高さを自動調整 */
    flex-direction: column; /* 要素を縦並びに */
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .footer-nav {
    margin-top: 20px; /* ナビゲーションのトップマージン */
  }
  .footer-nav .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .footer-nav .nav-list_item {
    margin-bottom: 0;
  }
  .footer-nav .nav-list_link {
    font-size: 1.2rem;
  }
  .contact-box .flex {
    flex-direction: column;
    padding: 3rem; /* パディング調整 */
  }
  .contact-left, .contact-right {
    width: 100%;
    margin-bottom: 20px;
  }
  .contact-left:last-child, .contact-right:last-child {
    margin-bottom: 0;
  }
  .contact-btn {
    padding: 2.5rem 3rem; /* パディング調整 */
    font-size: 2rem;
  }

  /* シングルページ共通の調整 */
  .title-main {
    font-size: 2.8rem;
    margin-bottom: 5rem;
  }
  .top-img {
    margin-bottom: 50px;
  }
  .top-img img {
    height: 300px; /* 画像の高さを調整 */
  }
  .bread-crubm {
    margin-bottom: 1rem;
  }
  .bread-crubm ol {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 2.8rem;
  }
  .h2-sub {
    font-size: 1.4rem;
  }

  /* about-singleの調整 */
  .philosopy,
  .message {
    margin-bottom: 50px;
  }
  .philosopy h2,
  .message h2,
  .point h2 {
    margin-bottom: 40px;
  }
  .phil-box {
    flex-direction: column;
    align-items: center;
  }
  .phil-img {
    width: 90%;
    height: 250px; /* 高さを調整 */
    margin-right: 0;
    margin-bottom: 30px;
  }
  .message .phil-img {
    margin-left: 0;
    margin-bottom: 30px;
  }
  .phil-text-box {
    width: 90%;
    height: auto;
    padding: 0 10px;
    text-align: center;
  }
  .phil-text-box h3 {
    font-size: 2rem;
  }
  .phil-text-box p {
    font-size: 1.4rem;
  }
  .message .flex {
    flex-direction: column;
  }

  .point .flex {
    display: block;
  }
  .point-item {
    width: 100%;
    margin-bottom: 50px;
  }

  /* news-archiveの調整 */
  .news-list-item {
    padding: 15px 10px;
  }
  .news-list-item p,
  .news-list-item data,
  .news-list-item h3 {
    font-size: 1.8rem;
  }
  .news-list-item h3 {
    padding: 0 5px;
  }

  /* service-singleの調整 */
  .service-container {
    grid-template-columns: repeat(1, 1fr); /* 1カラム表示に */
    gap: 20px;
    margin-top: 30px;
  }
  .service-item {
    margin-bottom: 10px;
  }
  .service-img {
    height: 400px; /* 画像の高さを調整 */
  }
  .service-content {
    padding: 10px;
  }
  .service-num {
    width: 30px;
    height: 30px;
    font-size: 1.6rem;
  }
  .service-title {
    font-size: 1.6rem;
    margin-top: 10px;
    margin-bottom: 5px;
  }
  .service-description {
    font-size: 1.2rem;
  }

  /* FAQ-singleの調整 */
  .faq-container {
    padding: 0 15px;
  }
  .qa-box > dl > dt {
    padding: 10px;
  }
  .qa-box > dl > dt > span {
    font-size: 2.4rem;
    width: 3rem;
    height: 3rem;
    margin-right: 10px;
  }
  .qa-box > dl > dt .crossBar {
    width: 15px;
    height: 15px;
  }
  .qa-box > dl > dd {
    padding: 0px 20px;
  }
  .qa-box > dl > dd.is-open {
    max-height: 150px; /* Adjust as needed */
    padding: 10px 20px;
  }
}
