@charset "UTF-8";

/* 共通css
--------------------------------------------------------------------*/

.top_h2 {
  font-size: 28px;
  color: #00759B;
  font-weight: bold;
  text-align: center;
  position: relative;
  max-width: fit-content;
  line-height: 1.4;
  margin: 0 auto 40px;
}
.top_h2::before {
  content: "";
  position: absolute;
  left: -50px;
  right: -50px;
  bottom: 3px;
  background: #B6D100;
  height: 8px;
  z-index: -1;
}
@media (min-width: 768px){
  .top_h2 {
    font-size: 32px;
  }
}

/* メイン画像
--------------------------------------------------------------------*/
.mainvisual_wrap {
  position: relative;
}
.mainvisual_text {
  position: absolute;
  top: 7vw;
  left: 10vw;
  z-index: 1;
  font-size: 5vw;
  font-weight: bold;
  display: grid;
  grid-template-columns: auto auto;
  direction: rtl;
}
.mainvisual_text .number {
  line-height: 1;
  padding-bottom: 0.1em;
}
.mainvisual_text_inner {
  position: relative;
  margin: 0 0.3em;
  line-height: 1.5;
  display: inline-block;
  white-space: nowrap;
  display: grid;
  text-align: center;
}
.mainvisual_text_sp_vartical {
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
}
.mainvisual_text_inner::before {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  right: 0;
  width: 9px;
  background: #FFFBBE;
  z-index: -1;
}
.mainvisual_text01,
.mainvisual_text02 {
  display: block;
}
@media (min-width: 960px){
  .mainvisual_text {
/*    font-size: 3.5vw;*/
    font-size: 3vw;
    top: 45vh;
    top: min(45vh, 50%);
    direction: ltr;
    display: block;
    left: 7vw;
  }
  .mainvisual_text_inner {
    display: inline-block;
  }
  .mainvisual_text_sp_vartical {
    -ms-writing-mode: initial;
    writing-mode: initial;
  }
  .mainvisual_text_inner::before {
    content: "";
    position: absolute;
    background: #FFFBBE;
    z-index: -1;
    left: 0;
    right: 0;
    width: unset;
    top: unset;
    height: 8px;
    bottom: 7px;
  }
}
/* キャッチコピー
--------------------------------------------------------------------*/
.top_box01 {
  margin-top: 8vw;
  margin-bottom: 8vw;
}
.top_newopen {
  font-family: adobe-arabic, sans-serif;
  font-size: max(20px,4.5vw);
  text-align: center;
  font-weight: normal;
  line-height: 1;
}
.wf-adobe-arabic-n4-active .top_newopen {
  font-size: max(20px,8vw);
}
.top_first {
  font-family: "fot-udmincho-pr6n", sans-serif;
  font-size: max(20px,4.5vw);
  text-align: center;
  color: #000;
  font-weight: bold;
  line-height: 1.4;
}
@media (min-width: 960px){
  .top_box01 {
    margin: 60px 0;
  }
  .top_newopen {
    font-size: 40px;
  }
  .wf-adobe-arabic-n4-active .top_newopen {
    font-size: 70px;
  }
  .top_first {
    font-size: 40px;
  }
}


/* bnr yoyaku
--------------------------------------------------------------------*/
.bnr_yoyaku a,
.bnr_yoyaku .bnr_yoyaku_inner {
	background: #00759c;
	color: #fff;
	display: block;
	max-width: fit-content;
	margin: 0 auto 40px;
	padding: 15px 15px 15px 100px;
	font-size: 20px;
	text-decoration: none;
	line-height: 1.4;
	text-align: center;
	position: relative;
	border-radius: 5px;
  font-weight: bold;
}
.bnr_yoyaku a::before,
.bnr_yoyaku .bnr_yoyaku_inner::before {
	content: "";
	position: absolute;
	left: 20px;
	width: 60px;
	background: url(https://sagami-stationdental.com/wp-content/uploads/2025/09/ico_calender_w.png) 50% 50% / contain no-repeat;
	top: 0;
	bottom: 0;
}
.bnr_yoyaku_text02 {
  font-size: 70%;
}
.bnr_yoyaku a:hover,
.bnr_yoyaku .bnr_yoyaku_inner:hover {
  opacity: 0.7;
}
@media (min-width: 960px){
  .bnr_yoyaku a,
  .bnr_yoyaku .bnr_yoyaku_inner {
	  font-size: 22px;
  }
  .bnr_yoyaku_text02 {
    font-size: 80%;
  }
}


/* infomation
--------------------------------------------------------------------*/
.top_infomation {
  text-align: center;
}
.top_infomation_inner {
  max-width: fit-content;
  margin: 0 auto 40px;
  text-align: left;
}
.top_infomation h2 {
  font-family: adobe-arabic, sans-serif;
  font-size: max(20px,8vw);
  line-height: 1.4;
}
.top_infomation_list a {
  color: #000;
  text-decoration: none;
  position: relative;
  display: block;
}
.top_infomation_list a::before {
  content: "・";
}
.top_infomation_list a .date {
  display: inline-block;
  margin-right: 1em;
}

@media (min-width: 768px){
  .top_infomation h2 {
    font-size: 52px;
  }
}


/* 診療メニュー
--------------------------------------------------------------------*/

.top_menu {
  background: #00759B;
  padding: 40px 0;
}
.top_menu h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 30px;
  font-weight: bold;
}
.top_menu_inner {
  max-width: 80%;
  margin: auto;
}
.top_menu_list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 3vw 4%;
  margin-bottom: 40px;
}
.top_menu_list li {
  flex-basis: 22%;
  line-height: 1.3;
  font-size: 90%;
}
.top_menu_list li.line {
  flex-basis: 100%;
}
.top_menu_list li a {
  color: #fff;
  text-align: center;
  text-decoration: none;
  display: block;
}
.top_menu_list li a .top_menu_list_img {
  background: #fff;
  margin-bottom: 10px;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16);
}
.top_menu_list li a .top_menu_list_img img {
  width: 65%;
  flex-basis: 65%;
  height: 50%;
  display: block;
}

.top_menu_bnr {
  max-width: fit-content;
  margin: auto;
}
.top_menu_bnr a {
  background: #fff;
  display: block;
	box-shadow: 0 3px 6px rgba(0,0,0,0.16);
  position: relative;
  padding: 20px 20px 20px 80px;
  margin-bottom: 20px;
  color: #000;
  text-decoration: none;
  font-size: 20px;
  line-height: 1.4;
}
.top_menu_bnr a:hover {
  opacity: 0.7;
}
.top_menu_bnr a::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  background: #00759B;
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  width: 20px;
  height: 20px;
}

.top_menu_bnr a::before {
  content: "";
  position: absolute;
  left: 10px;
  width: 60px;
  top: 10px;
  bottom: 10px;
}
.top_menu_bnr a.top_menu_bnr_kekkan::before {
  background: url(https://sagami-stationdental.com/wp-content/uploads/2025/10/ico_kekkan.svg) 50% 50% / contain no-repeat;
}
.top_menu_bnr a.top_menu_bnr_teiki::before {
  background: url(https://sagami-stationdental.com/wp-content/uploads/2025/10/ico_teiki.svg) 50% 50% / contain no-repeat;
}

@media (min-width: 768px){
  .top_menu h2 {
    font-size: 32px;
  }
}
@media (min-width: 960px){
  .top_menu_inner {
    max-width: 800px;
  }
  .top_menu_list {
    gap: 15px 30px;
  }
  .top_menu_list li {
    font-size: unset;
  }
  .top_menu_bnr a {
    padding: 30px 30px 30px 100px;
    font-size: 22px;
  }
}
@media (max-width: 559px){
  .top_menu_inner {
    max-width: 90%;
  }
  .top_menu_bnr {
    padding: 0 2.5%;
  }
}

/* 医院の特徴
--------------------------------------------------------------------*/
.top_feature {
  padding: 40px 0;
}
.top_feature_list {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  max-width: 95%;
  margin: 0 auto 40px;
}
.top_feature_box_thumb {
  aspect-ratio: 49 / 46;
    display: block;
    background-size: cover;
}
@media (min-width: 560px){
  .top_feature_list {
    grid-template-columns: repeat(4,1fr);
  }
}
@media (min-width: 960px){
  .top_feature_list {
    max-width: 1280px;
    padding: 20px;
  }
}

/* ご挨拶
--------------------------------------------------------------------*/

.top_greeting {
  padding: 0 0 40px;
}
.top_greeting_main {
  display: grid;
  grid-template-columns: 30% auto;
  grid-template-rows: auto 1fr;
  justify-content: center;
  grid-gap: 0px 20px;
  max-width: 95%;
  margin: 0 auto 40px;
}
.top_greeting_main_img {
  grid-row: 1 / 3;
}
.top_greeting_main_img_box {
  display: inline-block;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  mask: url(https://sagami-stationdental.com/wp-content/uploads/2025/10/img_top_greeting_mask.png) 50% 50% / contain no-repeat;
}
.top_greeting_main_img_box {
}
.top_greeting_main_img_box img {
  display: block;
}
.top_greeting_main_name {
  font-size: 130%;
  margin-bottom: 10px;
}
.top_greeting_main_position {
  line-height: 1.4;
}
.top_greeting_text {
  max-width: fit-content;
  margin: 0 auto 40px;
  padding: 0 4%;
}
.top_greeting_text p {
  margin-bottom: 1em;
}

@media (min-width: 960px) {
  .top_greeting_main {
    max-width: 900px;
  }
  .top_greeting_text {
    max-width: 1100px;
  }
}

@media (max-width: 559px) {
  .top_greeting_main {
    grid-template-rows: auto auto 1fr;
    grid-template-columns: unset;
    padding: 0 4%;
    max-width: 100%;
  }
  .top_greeting_main_img {
    grid-row: 1/ 2;
	  max-width: 50%;
	  margin: auto;
  }
  .top_greeting_main_name {
    text-align: center;
  }
}
