/* =======================================　共通レイアウト =======================================　*/
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

#header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  top: 0;
  padding-right: 40px;
  z-index: 1000;
}

#container {
  position: relative;
}

/* =======================================　ニュースティッカー =======================================　*/
/* ニュースティッカー */
#news_ticker { 
  background: #fff !important; 
  width: 650px !important; 
  height: 80px !important; 
  border-radius: 80px !important; 
  box-shadow: 0 0 10px 0 rgba(0,0,0,0.2) !important; 
  position: absolute !important; 
  top: calc(100vh - 40px + 40px) !important; 
  left: 50% !important;
  transform: translateX(-50%) translateY(-50%) !important;
  z-index: 1000 !important;
  margin: 0 !important;
}

#news_ticker:before { 
  content: ''; 
  width: 100%; 
  height: 30px; 
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(0,0,0,0) 100%); 
  position: absolute; 
  top: 0; 
  left: 0; 
  z-index: 2; 
  pointer-events: none; 
}

#news_ticker:after { 
  content: ''; 
  width: 100%; 
  height: 30px; 
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(255,255,255,1) 100%); 
  position: absolute; 
  bottom: 0; 
  left: 0; 
  z-index: 2; 
  pointer-events: none; 
}

#news_ticker .post_list { 
  height: 80px !important;
  overflow: hidden !important;
  transform: translateY(0) !important;
  position: relative !important;
}

#news_ticker a { 
  padding: 0 40px; 
  display: flex; 
  flex-wrap: nowrap; 
  justify-content: center; 
  align-items: center; 
  width: 100%; 
  height: 80px !important;
}

#news_ticker .date { 
  font-size: 14px; 
  color: #999; 
  width: 110px; 
  flex: 0 0 110px; 
  display: block; 
  position: relative; 
  padding-left: 20px; 
}

#news_ticker .date:before { 
  font-family: 'design_plus'; 
  content: '\e903'; 
  font-size: 17px; 
  position: absolute; 
  left: 0; 
  margin-top: -1px; 
  top: 50%; 
  transform: translateY(-50%); 
  -webkit-font-smoothing: antialiased; 
}

#news_ticker .title { 
  transition: color 0.25s ease; 
  overflow: hidden; 
  white-space: nowrap; 
  text-overflow: ellipsis; 
  visibility: visible; 
}

#news_ticker .title:hover {
  color: #007cba;
}

body.hide_blog_date #news_ticker.post_type_post .date { 
  display: none; 
}

/* レスポンシブ対応 */
@media screen and (max-width: 1200px) {
  #news_ticker { 
    width: 650px !important; 
    height: 70px !important; 
    border-radius: 70px !important; 
    position: absolute !important;
    top: calc(100vh - 35px + 40px) !important; 
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) translateY(-50%) !important;
    margin: 0 !important; 
  }
}

@media screen and (max-width: 800px) {
  #news_ticker { 
    display: none !important;
  }
}


body.hide_blog_date #news_ticker.post_type_post .title { margin-top: 32px; }

#header_button img {
  width: 36px;
  height: 34.37px;
  position: static;
  display: inline-block;
}

@keyframes zoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================================　ヘッダーメニューバー =======================================　*/
.header-logo {
  position: absolute;
  display: block;
  width: 148.83px;
  height: 40px;
  top: 20px;
  left: 40px;
  background-image: url("../img/renewal/aboutus-header-company-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.header_menu_custom {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hedder_button_cat {
  font-family: Zen Kaku Gothic New;
  font-size: 15px;
  font-weight: 500;
  line-height: 180%;
  color: #333333;
  padding: 8px 0;
}

.header_menu_custom .header_line_button {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Zen Kaku Gothic New;
  font-size: 20px;
  font-weight: 700;
  line-height: 160%;
  color: #ffffff;
  background-color: #65b910;
  border-radius: 33px;
  width: 214px;
  height: 54.37px;
  gap: 8px;
}

.header_menu_custom .header_line_button .line-icon {
  width: 36px;
  height: 34.37px;
  position: static;
  display: inline-block;
  background-image: url("../img/renewal/aboutus-common-line-icon.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.header_line_button:hover {
  /* color: #e66d54; */
}

.header-content,
.header-content * {
  font-family: "Zen Kaku Gothic New";
}

.header-content {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.header-background-pc-large {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-image: url("../img/renewal/aboutus-header-background-pc-large.jpg");
  background-size: cover;
  background-position: center 30%;
  transform: scale(1);
  animation: zoom 1s cubic-bezier(0.39, 0.575, 0.565, 1) forwards;
  z-index: 0;
}

.header-background-mobile {
  display: none;
}

.circular-blur,
.header-main h1,
.header-main .header-company-logo {
  opacity: 0;
  animation: fadeIn 2.6s ease forwards;
  animation-delay: 1s;
}

.circular-blur {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  border-radius: 50%;
  z-index: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 10%,
    rgba(255, 255, 255, 0.8) 25%,
    rgba(255, 255, 255, 0.5) 40%,
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.header-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 720px;
  height: 720px;
  margin: 0 auto;
  padding-top: 201px;
  gap: 135px;
  z-index: 1;
}

.header-main h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  text-align: center;
  gap: 5px;
}

.header-text-line-top,
.header-text-line-bottom {
  font-size: 32px;
  font-weight: 500;
  line-height: 180%;
  letter-spacing: 0.03em;
  color: #333333;
  background-color: #ffffff;
  padding: 0 8px;
}

.header-main .header-company-logo {
  position: absolute;
  top: 353px;
  left: 219px;
  width: 280px;
  height: 71px;
  background-image: url("../img/renewal/aboutus-header-company-logo.png");
  background-repeat: no-repeat;
  background-size: contain;
}

.header-line-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 311px;
  font-size: 20px;
  font-weight: 700;
  line-height: 160%;
  letter-spacing: 0.03em;
  color: #ffffff;
  background-color: #65b910;
  padding: 12px 42px 12px 32px;
  margin-right: 8px;
  border-radius: 33px;
  gap: 3.09px;
  opacity: 0;
  animation: fadeInUp 2s ease forwards;
  animation-delay: 2.3s;
}

.header-line-btn:hover {
  /* background:var(--main_color_dark); */
  /* color: #e66d54; */
  color: #fff;
}

.header-line-btn .line-icon {
  width: 40px;
  height: 38.18px;
  position: static;
  display: inline-block;
  background-image: url("../img/renewal/aboutus-common-line-icon.png");
  background-repeat: no-repeat;
  background-size: contain;
}

/* 保険診療バッジ - デフォルトは非表示 */
.insurance-badge-sp {
  display: none;
}

@media (max-width: 1250px) {
  .header-logo {
    width: 130px;
    height: 32px;
    top: 16px;
    left: 28px;
  }

  .header_menu_custom {
    display: none;
  }

  .header-content {
    height: 720px;
    padding-top: 0;
  }

  .header-background-pc-large {
    top: 0;
  }
}

@media (max-width: 1024px) {
  .header-background-pc-large {
    height: 100%;
  }
}

@media (max-width: 600px) {
  .header-logo {
    width: 120px;
    height: 32.25px;
    top: 17px;
    left: 16px;
  }

  .header-content {
    height: 85vh;
  }

  .header-background-pc-large {
    display: none;
  }

  .header-background-mobile {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background-image: url("../img/renewal/aboutus-header-background-mobile.jpg");
    background-size: cover;
    background-position: center 50%;
    transform: scale(1);
    animation: zoom 1s forwards cubic-bezier(0.39, 0.575, 0.565, 1);
    z-index: 0;
  }

  .circular-blur {
    width: 85%;
    height: 85%;
    top: 52%;
  }
  .header-main {
    width: 330px;
    height: 260px;
    padding-top: 91px;
    position: relative;
  }

  .header-text-content {
    position: relative;
  }

  .insurance-badge-sp {
    display: block;
    position: absolute;
    top: -54px;
    right: 6px;
    opacity: 0;
    animation: fadeIn 2.6s ease forwards;
    animation-delay: 1s;
  }

  .insurance-badge-sp img {
    width: 120px;
    height: 44px;
    object-fit: contain;
  }

  .header-text-line-top {
    font-size: 18px;
  }

  .header-text-line-bottom {
    font-size: 24px;
    padding: 0 4px;
  }

  .header-main .header-company-logo {
    display: none;
  }

  .header-line-btn {
    display: none;
  }
}

/* =======================================　ドロワーメニュー =======================================　*/
.drawer_menu_custom {
  display: none;
}

.drawer_menu_content_custom {
  display: none;
}

.drawer_menu_content_custom .drawer_menu_line_button {
  display: none;
}

@media (max-width: 1250px) {
  #drawer_menu {
    display: none !important;
  }

  .drawer_menu_custom {
    display: block;
  }

  .drawer_menu_button_custom {
    width: 56px;
    height: 56px;
    position: fixed;
    z-index: 99999;
    top: 0;
    right: 0;
    cursor: pointer;
  }

  .drawer_menu_button_custom span {
    width: 22px;
    height: 2px;
    background: #000;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease;
  }

  .drawer_menu_button_custom span:nth-child(1) {
    top: 24px;
  }
  .drawer_menu_button_custom span:nth-child(2) {
    top: 30px;
  }
  .drawer_menu_button_custom span:nth-child(3) {
    top: 36px;
  }

  .drawer_menu_content_custom {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 24px 16px;
    z-index: 99999;
    overflow-y: auto;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
    transform: translate3d(0, -100%, 0);
    will-change: transform;
  }

  .drawer_menu_nav_custom ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    padding: 0;
  }

  .drawer_menu_nav_custom li {
    margin-bottom: 8px;
    padding: 8px;
  }

  .drawer_menu_nav_custom a {
    position: relative;
    display: block;
    line-height: 170%;
    color: #333333;
    font-family: Zen Kaku Gothic New;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
  }

  body:before {
    content: "";
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3000;
    transition: opacity 0.5s ease;
  }

  /* オープン時のスタイル */
  body.open_drawer_menu_custom:before {
    opacity: 1;
    pointer-events: auto;
  }

  body.open_drawer_menu_custom .drawer_menu_content_custom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }

  body.open_drawer_menu_custom .drawer_menu_button_custom span:nth-child(1) {
    transform: rotate(45deg);
    top: 30px;
    left: 18px;
  }

  body.open_drawer_menu_custom .drawer_menu_button_custom span:nth-child(2) {
    opacity: 0;
  }

  body.open_drawer_menu_custom .drawer_menu_button_custom span:nth-child(3) {
    transform: rotate(-45deg);
    top: 30px;
    left: 18px;
  }
}

@media (max-width: 600px) {
  .drawer_menu_content_custom {
    width: 100%;
  }

  .drawer_menu_content_custom .drawer_menu_line_button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: Zen Kaku Gothic New;
    font-size: 15px;
    font-weight: 700;
    line-height: 160%;
    letter-spacing: 0.03em;
    color: #ffffff;
    background-color: #65b910;
    border-radius: 33px;
    padding: 10px 0;
    gap: 8px;
  }

  .drawer_menu_content_custom .drawer_menu_line_button .line-icon {
    width: 28px;
    height: 26.73px;
    position: static;
    display: inline-block;
    background-image: url("../img/renewal/aboutus-common-line-icon.png");
    background-size: contain;
    background-repeat: no-repeat;
  }

  body.open_drawer_menu_custom #container,
  body.open_drawer_menu_custom #header,
  body.open_drawer_menu_custom #copyright,
  body.open_drawer_menu_custom #header_message {
    transform: none;
    transition: none;
  }
}

.header-line-annotation {
  font-size: 14px;
  color: #333333 !important;
  background-color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1.2;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
  display: inline-block;
}

@media (max-width: 749px) {
  .header-line-annotation {
    font-size: 12px;
  }
}
