@charset "UTF-8";
@import url("https://fonts.googleapis.com/icon?family=Material+Icons");
@import url("https://use.fontawesome.com/releases/v6.7.1/css/all.css");

/* =========================================
   カスタムプロパティ（テーマカラー設定）
========================================= */
:root {
  --pink-color: #ff5586;  /* ピンク */
  --blue-color: #2d9ef7;  /* ブルー */
  --gray-color: #fafafa;  /* グレー */
  --yellow-color: #fffac6;  /* イエロー */
  --text-color-black: #333;
  --text-color-white: #fff;
  --font-family-jp: "Zen Kaku Gothic New", sans-serif;
  --font-family-en: "Lusitana", sans-serif;
  --font-family-jp-fude: "Yuji Boku", serif;
  --gap-size: 20px; 
  --main-inner: 1100px;
  --sub-inner: 1100px;
}
* {
  padding: 0;
  margin: 0;
}

/* ====== 共通設定 ====== */
body {
  font-family: var(--font-family-jp);
  margin: 0;
  color: var(--text-color-black);
  line-height: 1.8;
  background: #fff;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5 {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: var(--main-inner);
  margin: 0 auto;
  padding: 0 20px;
}

.sub-container {
  max-width: var(--sub-inner);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}
.fadeIn_up {
  opacity: 0;
  transform: translate(0, 50%);
  transition: 2s;
}
.fadeIn_up.is-show {
  transform: translate(0, 0);
  opacity: 1;
}

.fadeIn_right {
  opacity: 0;
  transform: translate(50%, 0);
  transition: 2s;
}
.fadeIn_right.is-show {
  transform: translate(0, 0);
  opacity: 1;
}
time {
  letter-spacing: 1.2px;
}
time:before {
  /*content: '\f044';*/
  content: '\f073';
  font-family: 'Font Awesome 5 Free';
  line-height: 10px;
  font-size: 16px;
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

/* ====== ヘッダー ====== */
#header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky; /* ここに注目! */
  top: 0;
  z-index: 100;
}

#header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.logo {
  font-family: var(--font-family-en);
  font-weight: 400;
  font-size: 36px;
  color: var(--pink-color);
  letter-spacing: 1px;
  line-height: 1;
}

.nav ul {
  display: flex;
  gap: 20px;
}

.nav a {
  font-size: 15px;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--pink-color);
}

.btn-contact {
  background: var(--pink-color);
  color: var(--text-color-white);
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid var(--pink-color);
}

.btn-contact:hover {
  background: var(--text-color-white);
  border: 1px solid
}

.hamburger {
  background: var(--pink-color);
  padding: 10px;
  border-radius: 100px;
  aspect-ratio: 1 / 1;
  align-items: center;
  cursor: pointer;
  display: none;
  z-index: 11;
}
.hamburger.drawer-toggle.pnav {
  width: 20px;
  height: 20px;
  position: absolute;
  top: 10px;
  right: 15px;
  padding: 13px;
}
.btn-trigger {
  position: relative;
  width: 20px;
  height: 17px;
  cursor: pointer;
  aspect-ratio: 20/17;
}
.btn-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 4px;
}
.btn-trigger, .btn-trigger span {
  display: inline-block;
  transition: all .5s;
  box-sizing: border-box;
}
.btn-trigger span:nth-of-type(1) {
  top: 0;
}
.btn-trigger span:nth-of-type(2) {
  top: 7.5px;
}
.btn-trigger span:nth-of-type(3) {
  bottom: 0;
}
.btn-trigger.active span:nth-of-type(1) {
  -webkit-transform: translateY(20px) rotate(-45deg);
  transform: translateY(7px) rotate(-45deg);
}
.btn-trigger.active span:nth-of-type(2) {
  opacity: 0;
}
.btn-trigger.active span:nth-of-type(3) {
  -webkit-transform: translateY(-20px) rotate(45deg);
  transform: translateY(-8px) rotate(45deg);
}
.president_name {
  font-family: var(--font-family-jp-fude);
  font-size: 34px;
}

main#main-contents {
  overflow-x: hidden;
}

/* ====== メインビジュアル ====== */
#mainvisual {
  position: relative;
  padding: 0;
}

#mainvisual img {
  width: 100%;
  border-radius: 0 0 40px 40px;
}

/* ====== セクション共通 ====== */
section {
  padding: 100px 0;
  background-color: var(--gray-color);
}

section h2 {
  margin: 0 auto;
  line-height: 1.2;
}

section h2 span.main_title {
  font-family: var(--font-family-en);
  font-weight: 400;
  color:  var(--pink-color);
  font-size: 46px;
  letter-spacing: 4.6px;
  text-align: left;
  border-left: 2px solid var(--pink-color);
  padding-left: 0.5em;
  line-height: 1;
  display: block;
}

section h2 span.sub_title {
  font-family: var(--font-family-jp);
  font-weight: 400;
  display: block;
  font-size: 16px;
  color: var(--pink-color);
  margin-top: 24px;
  letter-spacing: 0.64px;
}
section.sub_page h2 span.main_title {
  border-left: none;
  display: inline-block;
  padding-left: 0;
  padding-bottom: 10px;
  font-size: 30px;
}
section.sub_page h2 {
  text-align: center;
  margin-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
section.sub_page:nth-of-type(odd) {
  background: #F0F3F8;
}
section.sub_page h2 span.sub_title {
  margin-top: 0;
  padding-top: 10px;
  border-top: 2px solid var(--pink-color);
  display: inline-block;
}
.title-section {
  margin-bottom: 40px;
}
.title-section.with-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.title-section.with-link h2 {margin: 0;}

.btn-more {
  display: inline-block;
  color: #fff;
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 1px solid #fff;
  transition: all 0.3s;
}

.btn-more:hover {
  opacity: 0.7;
}

#about,
#news,
.blog {
  background: linear-gradient(to bottom, #ffffff, #e6f6ff);
}

/* ====== MOVIE ====== */
#movie {background: rgba(255,250,198,0.86);}
.movie-box iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
}

/* ====== ABOUT US ====== */
#about {
  background: var(--pink-color);
  color: var(--text-color-white);
  background-image: url(/wp-content/themes/corebalance/assets/images/section_bg.png);
  padding: 0;
}
#about .about-rayer {
    background: rgba(255, 85, 134,.95);
    padding: 100px 0;
}
#about .container {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  align-items: center;
}

#about h2 span.main_title {
  border-left: 2px solid var(--text-color-white);
  color: var(--text-color-white);
}

#about h2 span.sub_title {
  color: var(--text-color-white);
}

#about .about-img {
  flex: 1;
  aspect-ratio: 29 / 30;
  overflow: hidden;
  border-radius: 0 60px 60px 0;
  margin-left: -20px;
}

#about .about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#about .about-text {
  flex: 1;
}

#about .about-text h2 {
  margin-bottom: 40px;
}

#about p {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-color-white);
  line-height: 2;
}

/* ====== SERVICE ====== */
.service-list {
  display: flex;
  gap: var(--gap-size);
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-color) #f0f0f0;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.service-card {
  background: var(--text-color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
}

.service-card .service-img {
  height: auto;
  aspect-ratio: 3 / 2;
}

.service-card .service-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.service-card .service-contents {
  padding: 15px 30px 30px;
}

.service-card .service-contents h3 {
  font-size: 18px;
  color: var(--text-color-black);
  letter-spacing: 0.72px;
  margin-bottom: 10px;
}

.service-card .service-contents p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ====== CASE ====== */
#case {
  background: url(/wp-content/themes/corebalance/assets/images/section_bg.jpg) 100% no-repeat;
  background-size: cover;
  padding: 0;
}

.case-rayer {
  padding: 100px 0;
  background-color: rgba(255,250,198,0.86);
}

.case-box {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.case-box figure {
  display: flex;
  flex-wrap: wrap;
  gap: 100px;
  align-items: flex-start;
}

.case-box figure .case-img {
  order: 2;
  width: 400px;
  border-radius: 20px;
  overflow: hidden;
}
.case-box figure .case-img img {
  width: 100%;
}
.case-box figure figcaption {
  order: 1;
  width: calc(100% - 500px);
}

.case-before, .case-after {
  text-align: center;
}
.case-after {
  margin-top: 20px;
}
.case-before img, .case-after img {
  border-radius: 12px;
}

.case-before h4, .case-after h4 {
  font-size: 20px;
  letter-spacing: 6px;
  text-align: left;
  font-family: var(--font-family-en);
}

.case-before p, .case-after p {
  margin-top: 10px;
  text-align: left;
}

/* ====== STAFF ====== */
.staff-list {
  display: flex;
  gap: var(--gap-size);
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--pink-color) #f0f0f0;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.staff-card {
  background: var(--text-color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
}

.staff-card .staff-img {
  height: auto;
  aspect-ratio: 1 / 1;
}

.staff-card .staff-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.staff-card .staff-contents {
  padding: 15px 30px 30px;
}

.staff-card .staff-contents h3 {
  font-size: 18px;
  color: var(--text-color-black);
  margin-bottom: 10px;
  letter-spacing: 0.72px;
}

.staff-card .staff-contents p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ====== NEWS ====== */
#news {
  background: var(--blue-color);
  color: var(--text-color-white);
  background-image: url(/wp-content/themes/corebalance/assets/images/section_bg.png);
  padding: 0;
}

#news .news-rayer {
  background: rgba(45, 158, 247, .95);
  color: var(--text-color-white);
  padding: 100px 0;
}

#news .sub-container {
  display: flex;
  gap: 87px;
}
#news .title-section {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: flex-start;
}

#news .title-link {
  color: var(--text-color-white);
}
#news h2 span.main_title {
  border-left: 2px solid var(--text-color-white);
  color: var(--text-color-white);
}

#news h2 span.sub_title {
  color: var(--text-color-white);
}

#news ul {
  margin: 20px 0;
  width: 100%;
}

#news li {
  padding: 24px 0;
  border-bottom: 1px solid #fff;
  font-size: 16px;
}

#news .date {
  color: var(--text-color-white);
  margin-right: 40px;
}

/* ====== BLOG ====== */
.blog-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
  overflow: hidden;
  width: calc(50% - 10px);
  display: flex;
}

.blog-card a {
  display: flex;
  width: 100%;
}

.blog-card .blog-img {
  max-width: 32%;
  border-radius: 12px 0 0 12px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.blog-card .blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: all 0.3s;
}

.blog-card:hover .blog-img img {
  scale: 1.1;
}

.blog-card .blog-contents {
  padding: 30px 24px;
  font-size: 16px;
  width: 68%;
}
.blog-card .blog-contents .blog-date {
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}
.blog-card .blog-contents p {
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

a.title-link {
  color: var(--pink-color);
  padding-bottom: 4px;
  border-bottom: 1px solid;
  transition : all 0.3s;
}
a.title-link:hover {
  opacity: 0.7;
}

.top-btn {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  background-color: rgba(255, 85, 134, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 10;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
}

/* ====== フッター ====== */
#footer {
  background: var(--pink-color);
  color: #fff;
  padding: 40px 20px 20px;
}

#footer .container {
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

#footer h3 {
  margin-bottom: 10px;
}

#footer .footer-logo {
  font-family: var(--font-family-en);
  font-weight: 400;
  font-size: 2.2rem;
  color: var(--text-color-white);
  letter-spacing: 1px;
  line-height: 1;
}

.footer-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  width: 300px;
}

.footer-menu ul li {
  width: 50%;
  text-align: right;
}

.footer-sns {
  margin-top: 20px;
  text-align: right;
}
.footer-sns a {
  width: 40px;
  display: inline-block;
}

.footer-sns a img {
  width: 100%;
  height: auto;
}

.copy {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
}

.swiper {
  position: relative;
  padding: 10px 0;
  overflow: visible;
}

.swiper-scrollbar {
  width: 70% !important;
  bottom: -30px !important;
  left: 50% !important;
  transform: translateX(-50%);
  height: 5px !important;
  background: rgba(255,85,133,0.3);
  border-radius: 3px;
}

.swiper-scrollbar-drag {
  background: #FF5586;
  border-radius: 3px;
}

.swiper-slide {
  height: auto;
}

/* アーカイブ */
section.head_section {
  background: linear-gradient(rgba(255, 250, 198, 0.86), rgba(255, 250, 198, 0.86)),url(/wp-content/themes/corebalance/assets/images/head_bg.jpg) 100% no-repeat;
  background-size: cover;
  background-position: center right;
}
section.head_section h2 {
  font-size: 34px;
  font-family: var(--font-family-jp);
  font-weight: 500;
}

/* 記事詳細 */
.article_contents {}
.article_contents .date {
  margin-bottom: 20px;
  display: block;
}
.article_contents h2 {
  border-bottom: 2px solid var(--pink-color);
  padding-bottom: 15px;
  margin-bottom: 40px;
}

/* アコーディオン */
.accordion-content {
  display: none;
}
.accordion-header {
  background-color: rgba(255, 85, 134,0.7);
  padding: 12px 45px 10px 20px;
  margin: 20px 0 0;
  transition: all .3s ease;
  cursor: pointer;
  position: relative;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
}
.accordion-header.active {
  border-radius: 15px 15px 0 0;
  background-color: rgba(255, 85, 134,1);
}
.accordion-header:hover {
   background-color: rgba(255, 85, 134,1);
}
.accordion-header:first-of-type {
  margin-top: 0;
}
.accordion-header::before,
.accordion-header::after{
  position:absolute;
  content:'';
  top:1px;
  right:20px;
  bottom:0;
  width:12px;
  height:2px;
  margin:auto;
  background: #fff;
}
.accordion-header::after{
  transform:rotate(-90deg);
  transition:transform 0.3s;
}
.accordion-header.active::after{
  transform:rotate(0deg);
}
.accordion-content {
  background-color: #FFF;
  padding: 12px 20px 10px;
  border-radius: 0 0 15px 15px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
}
.accordion-header span,
.accordion-content span{
  padding-left: 30px;
  position: relative;
  display: block;
}
.accordion-header span::before{
  position: absolute;
  content:"Q";
  top: 5px;
  left: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-family: var(--font-family-en);
}
.accordion-content span::before{
  position: absolute;
  content:"A";
  top: 5px;
  left: 0;
  color: #151E2F;
  font-size: 20px;
  line-height: 1;
  font-family: var(--font-family-en);
}

/* パンクズ */
.breadcrumbs {
  padding: 20px 0;
}
.breadcrumbs ul {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}
.breadcrumbs ul li {
  display: flex;
  justify-content: flex-start;
  font-size: 14px;
  line-height: 1;
}
.breadcrumbs ul li:not(:first-child)::before {
  content: '>';
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-right: 10px;
}
.breadcrumbs ul li a {
  color: var(--pink-color);
}
.flex_box {
  display: flex;
  gap: 65px;
  align-items: flex-start;
}
section:nth-of-type(odd) .flex_box {
  flex-direction: row-reverse;
}
.sec_img {
  width: 500px;
  border-radius: 20px;
  overflow: hidden;
}
.sec_img img {
  width: 100%;
}
.sec_box p {
  margin-top: 20px;
}
.sec_box ul {
}
.sec_box ul li {
  display: flex;
  align-items: center;
}
.sec_box ul li span {
  background: linear-gradient(transparent 64%,rgba(255, 250, 198, 1) 0%);
}
.sec_box ul li::before{
  content: "⚫︎";
  color: var(--pink-color);
  font-size: 0.6em;
  margin-right: 1em;
}
/* 代表挨拶 */
#greeting .sec_img {
  width: 400px;
}
#greeting .sec_box {
  width: calc((100% - 400px) - 65px);
}
#greeting .sec_box p {
  margin-top: 0
}

/* サービス */
.service_list ul li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.service_list ul li:not(:first-of-type) {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}
.service_list ul li .service-img {
  width: 300px;
  border-radius: 20px;
  overflow: hidden;
}
.service_list ul li .service-img img {
  width: 100%;
}
.service_list ul li .service-contents {
  width: calc((100% - 300px) - 20px);
}

/* メニュー＆料金 */
.menu_list ul {}
.menu_list ul li {}
.menu_list ul li:not(:first-of-type) {
  margin-top: 20px;
}
.menu_list ul li dl {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
}
.menu_list ul li dl dt.menu_title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
}
.menu_list ul li dl dd.menu_description {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.menu_text {
  width: calc((100% - 101px) - 20px);
}
.menu_price {
  font-size: 24px;
  font-weight: 600;
  width: 100px;
  text-align: right;
  border-left: 1px solid #ccc;
  color: var(--pink-color);
}
.blog_List {
  display: flex;
  gap: 20px;
  row-gap: 40px;
  flex-wrap: wrap;
}
.blog_List .blog_item {
  width: calc((100% / 3) - 14px);
  background: var(--text-color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.10);
}
.blog_List .blog_item .blog_cnt .img {
  aspect-ratio: 3 / 2;
  position: relative;
}
.blog_List .blog_item .blog_cnt .text {
  padding: 20px;
}
.blog_List .blog_item .blog_cnt .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news_List .news_item {
  border-bottom: 1px solid #ccc;
  padding: 20px;
  transition: all 0.3s;
}
.news_List .news_item:hover a {
  opacity: 0.7;
}
.news_List .news_item .news_cnt .text {
  display: flex;
  gap: 20px;
}
span.new {
  position: absolute;
  bottom: 10px;
  right: 10px;
  color: var(--pink-color);
  background: rgba(255, 250, 198, 0.86);
  border-radius: 50px;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
}

.pagination {
  margin-top: 40px;
}
.pagination ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.pagination ul li {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  border: 1px solid var(--pink-color);
  overflow: hidden;
}
.pagination ul li a,
.pagination ul li span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--pink-color);
  background: #fff;
  transition: all 0.3s;
  font-weight: 500;
}
.pagination ul li.current span,
.pagination ul li:hover a{
  background: var(--pink-color);
  color: #fff;
  font-weight: 600;
}
@media (max-width: 1080px) {
  .hamburger {
    display: flex;
  }
  #gnavi {
    display: none;
  }
  #gnavi.active {
    display: block;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  #gnavi {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(238, 238, 238, 0.96);
    z-index: -1;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  .nav ul {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
  }
  .nav ul li {
    margin-top: 20px;
    text-align: center;
  }
  .nav ul li:first-child {
    margin-top: 0;
  }
  .nav ul li a {
    font-size: 18px;
    transition: color 0.3s;
  }
}

/* ====== レスポンシブ ====== */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  section,#about .about-rayer,#news .news-rayer, #case .case-rayer {
    padding: 50px 0;
  }
  section h2 {
    margin: 0;
  }
  section.sub_page h2 {
    margin-bottom: 40px;
  }
  section h2 span.main_title {
    font-size: 30px;
  }
  section h2 span.sub_title {
    font-size: 14px;
    margin-top: 15px;
  }
  section.head_section h2 {
    font-size: 24px;
  }
  #header .container {
      padding: 15px 20px;
  }
  .flex {
    flex-direction: column;
  }
  .service-list, .staff-list, .blog-list, .case-box {
    flex-direction: column;
  }
  .header .container {
    flex-direction: column;
    gap: 10px;
  }
  #about {
    background-size: 100px;
  }
  #about p {
    font-size: 14px;
    margin-bottom: 20px;
  }
  #news .sub-container {
    flex-direction: column;
    gap: 0px;
  }
  #news .title-section {
    gap: unset;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  #about .container {
    flex-direction: column;
    gap: 30px;
  }
  #about .about-img {
    aspect-ratio: 30 / 20;
    border-radius: 0 40px 40px 0;
  }
  .service-card .service-contents,.staff-card .staff-contents {
    padding: 15px 20px 30px;
  }
  .service-card .service-contents h3,.staff-card .staff-contents h3 {
    font-size: 17px;
    margin-bottom: 5px;
  }
  .service-card .service-contents p,.staff-card .staff-contents p {
    font-size: 14px;
  }
  .case-box figure {
    gap: 20px;
  }
  .case-box figure .case-img {
    order: 1;
    width: 100%;
  }
  .case-box figure figcaption {
    width: 100%;
    order: 2;
  }
  .case-box figure figcaption > div:last-child {
    margin-top: 10px;
  }
  .case-before h4, .case-after h4 {
    font-size: 18px;
  }
  .case-before p, .case-after p {
    margin-top: 0;
  }
  #news {
    background-size: 100px;
  }
  #news li {
    font-size: 14px;
  }
  #news .date {
    display: block;
    margin: 0;
  }
  .blog-card {
    width: 100%;
  }
  .blog-card .blog-contents {
    padding: 10px 15px;
    font-size:14px;
  }
  .btn-more,.title-link {
    font-size: 14px;
  }
  .footer-menu ul {
    display: none;
  }
  #footer .container {
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
  }
  .flex_box, section:nth-of-type(odd) .flex_box {
    flex-direction: column;
    gap: 30px;
  }
  .flex_box .sec_img {
    width: 100%;
  }
  .flex_box .sec_box p {
    margin-top: 0;
  }
  #greeting .sec_img {
    width: 50%;
    margin: 0 auto;
  }
  #greeting .sec_box {
    width: 100%;
  }
  .president_name {
    font-size: 28px
  }
}
@media (max-width: 600px) {
  .service_list ul li .service-img {
    width: 200px;
  }
  .service_list ul li .service-contents {
    width: calc((100% - 200px) - 20px);
  }
  .menu_list ul li dl dd.menu_description {
    flex-direction: column;
  }
  .menu_text {
    width: 100%;
  }
  .menu_price {
    width: 100%;
    display: inline-block;
    text-align: right;
    border-left: none;
  }
  #greeting .sec_img {
    width: 70%;
  }
}
@media (max-width: 500px) {
  .logo {
    font-size: 28px;
  }
  .service_list ul li {
    flex-direction: column;
  }
  .service_list ul li .service-img {
    width: 100%;
  }
  .service_list ul li .service-contents {
    width: 100%;
  }
  #greeting .sec_img {
    width: 80%;
  }
}