/* 色 */
:root {
    --blue-main: #4E9DB3;
    --blue-dark: #045B8D;
    --blue-light: #ebf5ff;
    --blue-light-2: #abcadf;
    --red-accent: #8c1d1d;
    --red-light: #ffeceb;
    --red-light-2: #dfbdab;
    --gray-main: #A8A8A8;
    --gray-light: #f6f6f6;
    --gray-dark-old: #646865;
    --gray-dark: #646468;
    --cream: #f4f3ec;
    --bodyBG: #f4f6f3;
}
.text-blue-main {
    color: var(--blue-main);
}
.text-blue-dark {
    color: var(--blue-dark);
}
.text-red-main {
    color: var(--red-accent);
}
.text-gray-main {
    color: var(--gray-main);
}

.bg-blue-main {
  background-color: var(--blue-main);
}
.bg-dark-blue {
    background-color: var(--blue-dark);
}
.bg-blue-light {
    background-color: var(--blue-light);
}
.bg-blue-gradient {
  background: linear-gradient(to right, var(--blue-light), var(--blue-light-2));
}
.bg-red-accent {
    background-color: var(--red-accent);
}
.bg-red-light {
    background-color: var(--red-light);
}
.bg-red-gradient {
  background: linear-gradient(to left, var(--red-light), var(--red-light-2));
}
.bg-gray-main {
    background-color: var(--gray-main);
}
.bg-gray-light {
    background-color: var(--gray-light);
}
.bg-nav {
    background-color: rgba(255, 255, 255, 0.8);
}
.bg-cream {
    background-color: var(--cream);
}
.bg-gray-dark {
    background-color: var(--gray-dark);
}
.bg-washi {
  background-image: url('/washi.jpg');
}

.border-blue-main {
    border: 1px solid var(--blue-main);
}

body {
    /* font-family: 'Noto Serif JP', serif; */
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 300;
    letter-spacing: 0.15em;
    /* line-height: 2.4; */
    /* background-color: var(--bodyBG); */
}

h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
  line-height: 1.5;
}
header {
  font-family: 'Noto Serif JP', serif;
}

.p {
  line-height: 2;
}

a {
    position: relative;
    text-decoration: none;
}

@media (max-height: 767px) {
  label {
  line-height: 1;
}
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.3em 0.5em;
  letter-spacing: 0.1em;
  font-size: 1rem;
  line-height: 1.5;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}


/* .border-hover {
  position: relative;
  display: inline-block;
  text-decoration: none;
  color: inherit;
}

.border-hover span {
  position: relative;
  display: inline-block;
  padding: 15px 5px 5px 5px;
}

.border-hover::before,
.border-hover::after,
.border-hover span::before,
.border-hover span::after {
  content: "";
  position: absolute;
  background-color: var(--blue-main);
  transition: all 0.3s ease;
 } */

/* 
.border-hover span::before {
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
}

.border-hover span::after {
  bottom: 0;
  right: 0;
  height: 2px;
  width: 0%;
}

.border-hover::before {
  top: 0;
  left: 0;
  width: 2px;
  height: 0%;
}

.border-hover::after {
  bottom: 0;
  right: 0;
  width: 2px;
  height: 0%;
}


.border-hover:hover span::before,
.border-hover:hover span::after {
  width: 100%;
}
.border-hover:hover::before,
.border-hover:hover::after {
  height: 100%;
} */


.underline-hover {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.underline-hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--blue-main); /* 好きな色に */
  transition: width 0.3s ease;
}

.underline-hover:hover::after {
  width: 93%;
}

header a {
    text-decoration: none;
}

/* フォントサイズ */
.fs-84 {
    font-size: 84px;
}
.fs-72 {
    font-size: 72px;
}
.fs-64 {
    font-size: 64px;
}
.fs-48 {
    font-size: 48px;
}
.fs-36 {
    font-size: 36px;
}
.fs-32 {
    font-size: 32px;
}
.fs-24 {
    font-size: 24px;
}
.fs-20 {
    font-size: 20px;
}
.fs-16 {
    font-size: 16px;
}

.vertical-rl {
    writing-mode: vertical-rl;
}

.border-2-top,
.border-2-rightbottom {
  position: relative;
  overflow: visible;
}
.border-2-top::before,
.border-2-rightbottom::before,
.border-2-top::after,
.border-2-rightbottom::after {
    content: '';
    position: absolute;
    width: 0.6em;
    height: 0.6em;
    
}
.border-2-top::before {
  top: -0.06em;
  left: 0.06em;
  border-left: 1px solid var(--blue-dark);
  border-top: 1px solid var(--blue-dark);
}
.border-2-rightbottom::before {
  bottom: -0.06em;
  right: 0.06em;
  border-right: 1px solid var(--blue-dark);
  border-bottom: 1px solid var(--blue-dark);
}

.border-2-top::after {
  top: 0.06em;
  left: -0.06em;
  border-left: 1px solid var(--blue-dark);
  border-top: 1px solid var(--blue-dark);
}
.border-2-rightbottom::after {
  bottom: 0.06em;
  right: -0.06em;
  border-right: 1px solid var(--blue-dark);
  border-bottom: 1px solid var(--blue-dark);
}

.border-2-red,
.border-2-red-rightbottom {
    position: relative;
}
.border-2-red::before,
.border-2-red-rightbottom::before,
.border-2-red::after,
.border-2-red-rightbottom::after {
    content: '';
    position: absolute;
    width: 0.6em;
    height: 0.6em;
    
}
.border-2-red::before {
  top: -0.06em;
  left: 0.06em;
  border-left: 1px solid var(--red-accent);
  border-top: 1px solid var(--red-accent);
}
.border-2-red-rightbottom::before {
  bottom: -0.06em;
  right: 0.06em;
  border-right: 1px solid var(--red-accent);
  border-bottom: 1px solid var(--red-accent);
}

.border-2-red::after {
  top: 0.06em;
  left: -0.06em;
  border-left: 1px solid var(--red-accent);
  border-top: 1px solid var(--red-accent);
}
.border-2-red-rightbottom::after {
  bottom: 0.06em;
  right: -0.06em;
  border-right: 1px solid var(--red-accent);
  border-bottom: 1px solid var(--red-accent);
}

@media (min-width: 768px) {
  .border-2-top::before, 
  .border-2-red::before{
    top: -0.08em;
    left: 0.08em;
  }
  .border-2-top::after,
  .border-2-red::after {
    top: 0.08em;
    left: -0.08em;
  }
  .border-2-rightbottom::before,
  .border-2-red-rightbottom::before {
    bottom: -0.08em;
    right: 0.08em;
  }
  .border-2-rightbottom::after,
  .border-2-red-rightbottom::after {
    bottom: 0.08em;
    right: -0.08em;
  }
}

.border-2-top-c,
.border-2-rightbottom-c {
  position: relative;
  overflow: visible;
}
.border-2-top-c::before,
.border-2-rightbottom-c::before,
.border-2-top-c::after,
.border-2-rightbottom-c::after {
    content: '';
    position: absolute;
    width: 0.6em;
    height: 0.6em;
    
}
.border-2-top-c::before {
  top: -0.05em;
  left: 0.05em;
  border-left: 1px solid var(--blue-dark);
  border-top: 1px solid var(--blue-dark);
}
.border-2-rightbottom-c::before {
  bottom: -0.05em;
  right: 0.05em;
  border-right: 1px solid var(--blue-dark);
  border-bottom: 1px solid var(--blue-dark);
}

.border-2-top-c::after {
  top: 0.05em;
  left: -0.05em;
  border-left: 1px solid var(--blue-dark);
  border-top: 1px solid var(--blue-dark);
}
.border-2-rightbottom-c::after {
  bottom: 0.05em;
  right: -0.05em;
  border-right: 1px solid var(--blue-dark);
  border-bottom: 1px solid var(--blue-dark);
}

.border-2-red-c,
.border-2-red-rightbottom-c {
    position: relative;
}
.border-2-red-c::before,
.border-2-red-rightbottom-c::before,
.border-2-red-c::after,
.border-2-red-rightbottom-c::after {
    content: '';
    position: absolute;
    width: 0.6em;
    height: 0.6em;
    
}
.border-2-red-c::before {
  top: -0.05em;
  left: 0.05em;
  border-left: 1px solid var(--red-accent);
  border-top: 1px solid var(--red-accent);
}
.border-2-red-rightbottom-c::before {
  bottom: -0.05em;
  right: 0.05em;
  border-right: 1px solid var(--red-accent);
  border-bottom: 1px solid var(--red-accent);
}

.border-2-red-c::after {
  top: 0.05em;
  left: -0.05em;
  border-left: 1px solid var(--red-accent);
  border-top: 1px solid var(--red-accent);
}
.border-2-red-rightbottom-c::after {
  bottom: 0.05em;
  right: -0.05em;
  border-right: 1px solid var(--red-accent);
  border-bottom: 1px solid var(--red-accent);
}

.top_frame {
  position: relative;
  display: inline-block;
  overflow: visible;
}

.top-frame::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  top: -2px;
  left: -2px;
  border-top: 1px solid var(--blue-dark);
  border-left: 1px solid var(--blue-dark);
}

.top-frame::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  bottom: -2px;
  right: -2px;
  border-bottom: 1px solid var(--blue-dark);
  border-right: 1px solid var(--blue-dark);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.is-required::after {
  content: " ※必須";
  color: var(--red-accent);
  font-size: 0.85em;
  margin-left: 0.5rem;
}

.btn_custom {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(to right, var(--blue-main), #2caabe);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  border-radius: 3px;
  border: none;
  transition: all 0.25s ease;
}

.btn_custom:hover {
  background: linear-gradient(to right, var(--red-accent), #c73838);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.btn_custom:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.img-hover-box {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.img-hover-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.img-hover-box:hover img {
  transform: scale(1.04);
}

.img-hover-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 34, 34, 0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.img-hover-box:hover .img-hover-overlay {
  opacity: 1;
}

.img-square-box {
  width: 100%;
  aspect-ratio: 1 / 1; 
  overflow: hidden;
  position: relative;
}

.img-square-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.corner-frame {
  position: relative;
  padding: 0.5rem;
  margin: 0.7rem;
}

/* 共通設定（4角） */
.corner-frame::before,
.corner-frame::after,
.corner-frame .corner-bottom::before,
.corner-frame .corner-bottom::after {
  content: "";
  position: absolute;
  width: clamp(2rem, calc(1.111rem + 4.44vw), 5rem);
  height: clamp(2rem, calc(1.111rem + 4.44vw), 5rem);
  border: 3px solid var(--blue-main);
}

/* 左上 */
.corner-frame::before {
  top: 0;
  left: 0;
  border-right: none;
  border-bottom: none;
}

/* 右上 */
.corner-frame::after {
  top: 0;
  right: 0;
  border-left: none;
  border-bottom: none;
}

/* 左下 */
.corner-frame .corner-bottom::before {
  bottom: 0;
  left: 0;
  border-right: none;
  border-top: none;
}

/* 右下 */
.corner-frame .corner-bottom::after {
  bottom: 0;
  right: 0;
  border-left: none;
  border-top: none;
}

.corner-frame:hover::before,
.corner-frame:hover::after,
.corner-frame:hover .corner-bottom::before,
.corner-frame:hover .corner-bottom::after {
  border-color: var(--red-accent);
  transition: border-color 0.3s ease;
  border-width: 3px;
}

.hover-vertical-link {
  display: inline-block;
  color: inherit;;
  transition: transform 0.6s ease;
}

.hover-vertical-link:hover {
  transform: scale(1.01);
  color: var(--red-accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-up,
.fade-down,
.fade-right {
  opacity: 0;
  overflow: hidden;
  will-change: transform, opacity;
}

.fade-up.in-view {
  animation: fadeUp 1.2s ease-out forwards;
}
.fade-down.in-view {
  animation: fadeDown 1.2s ease-out forwards;
}
.fade-right.in-view {
  animation: fadeRight 1.2s ease-out forwards;
}


/* .underline-gray-main {
  border-bottom: 2px solid var(--gray-main);
} */

/* 見出し base */
.subheading {
  display: flex;
  align-items: flex-end;
  position: relative;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.subheading::before{
  content: '';
  height: 1.5px;
  background-color: var(--gray-dark);
  position: absolute;
  bottom: 0;
  left: -10%;
  width: 130%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.subheading .ja {
  color: var(--blue-dark);
  font-size: 64px;
  padding-right: 1rem;
  letter-spacing: 0.2em;
  position: relative;
}
.subheading .ja .inner,
.subheading .ja .inner-4,
.subheading .ja .inner-5 {
  position: relative;
}

.subheading .ja::before,
.subheading .ja::after {
  content: '';
  position: absolute;
  width: 1.5px;
  background-color: var(--gray-dark);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.subheading .ja .inner::before,
.subheading .ja .inner-4::before,
.subheading .ja .inner-5::before {
  content: '';
  position: absolute;
  height: 1.5px;
  background-color: var(--gray-dark);
  top: 0; /* 上の線 */
  width: 70%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.subheading .ja .inner::before {
  right: -20%;
}
.subheading .ja .inner-4::before {
  right: -8%;
}
.subheading .ja .inner-5::before {
  right: -6%;
}

.subheading .ja::before {
  left: -13%; /* 見出し左線 */
  bottom: -30%;
  height: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.subheading .ja::after {
  right: 0; /* 見出し右線 */
  top: -25%;
  height: 80%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.subheading .en {
  font-size: 30px;
  color: var(--blue-dark);
  margin-left: 2rem;
  padding-bottom: 0.2em;
  letter-spacing: 0.2em;
}

/* 見出し reversed */
.subheading.reversed {
  flex-direction: row-reverse; /* 並び順を逆に */
}
.subheading.reversed::before {
  left: auto;
  right: 0;
  width: 110%;
}

/* 英語タイトルの余白を左→右に変更 */
.subheading.reversed .en {
  margin-left: 0;
  margin-right: 4rem;
}



.footer-hover {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.footer-hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--cream);
  transition: width 0.3s ease;
}

.footer-hover:hover::after {
  width: 93%;
}

.s-footer {
    padding: 1rem;
    color: #f6f8f5;
    background: var(--gray-dark);
}

.c-frame--white {
    border: 1px solid #f6f8f5;
}
.c-frame {
  height: 100%;
  box-sizing: border-box;
    padding: .5rem;
    display: block;
}

.lecture-list {
  list-style: none;
}

.lec-topic-title {
  font-size: clamp(1rem, calc(0.63rem + 1.85vw), 2.25rem);
}

.lecture-item {
  padding: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.6s ease, box-shadow 0.6s ease, transform 0.6s ease;
}
@media (max-width: 768px) {
  .lecture-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.lecture-item:hover {
  background-color: var(--gray-light);
  border-radius: 5px;
  transform: scale(1.02);
}
.lecture-item.active {
  background: linear-gradient(to right, #e0e8f1, #97c3e1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.lecture-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 0;
}

.lecture-description {
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.6s ease 0.05s, padding 0.6s ease 0.05s;
  padding-bottom: 0;
  margin-bottom: 0;
  line-height: 1.6;
  letter-spacing: 0.015em;
  font-size: clamp(0.75rem, calc(0.528rem + 1.11vw), 1.5rem)
}

/* 表示状態 */
.lecture-item.active .lecture-description {
  max-height: 500px;
  opacity: 1;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.body-box-border {
  border: var(--gray-main) 1.5px solid;
  border-radius: 2px;
}

#heroCarousel .carousel-item {
  @media (min-width: 1024px) {
    height: 100vh;
  }
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-icon {
  width: 80%;
}
@media (max-width: 574px) {
  .header-icon {
    width: 60%;
  }
}

/* overlay-styles.css */
.hamburger-overlay {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1000;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger-overlay__line {
  position: absolute;
  left: 11px;
  width: 26px;
  height: 2px;
  background-color: #333;
  transition: all .6s;
}

.hamburger-overlay__line:nth-of-type(1) { top: 14px; }
.hamburger-overlay__line:nth-of-type(2) { top: 23px; }
.hamburger-overlay__line:nth-of-type(3) { top: 32px; }

.hamburger-overlay.active .hamburger-overlay__line {
  background-color: #fff;
}

.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger-overlay.active .hamburger-overlay__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100dvw; height: 100dvh;
  background-color: var(--gray-dark);
  visibility: hidden;
  opacity: 0;
  transition: all .6s;
  z-index: 900;
  overflow: hidden;
}

.nav-overlay.active {
  visibility: visible;
  opacity: 1;
}

.nav-overlay__content {
  position: relative;
  top: 15%;
  left: 25%;
  transform: translate(-25%, -25%);
  width: 100%;
  text-align: center;
}

.nav-overlay__list {
  /* font-size: 24px; */
  list-style: none;
  margin: 0;
  padding: 0 1rem;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow-y: auto;
}

.nav-overlay__item {
  opacity: 0;
  transform: translateY(20px);
  transition: all .6s;
  margin: 0.6rem 0;
  text-align: center;
}

.nav-overlay.active .nav-overlay__item {
  opacity: 1;
  transform: translateY(0);
}

.nav-overlay.active .nav-overlay__item:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-overlay__item:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.active .nav-overlay__item:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.active .nav-overlay__item:nth-child(4) { transition-delay: 0.4s; }

.nav-overlay__link {
  font-size: clamp(12px, 24px, 32px);
}

.nav-now {
  position: relative;
  font-weight: bold;
}

.nav-now::before {
  content: "";
  position: absolute;
  left: -1em;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #0aa;
  border-radius: 50%;
}


.footer-fs {
  font-size: 12px;
}
@media (min-width: 1200px) {
  .footer-fs {
    font-size: 16px;
  }
}

.break-md-lg {
  display: none;
}
@media (min-width: 768px) and (max-width: 991px) {
  .break-md-lg {
    display: block !important;
    width: 100%;
  }
}

.catch-copy-large-fs {
  font-size: clamp(1.6rem, calc(0.889rem + 3.56vw), 4rem);
}
.catch-copy-small-fs {
  font-size: clamp(1.2rem, calc(0.963rem + 1.19vw), 2rem);
}

@media (max-width: 575px) {
  .d-max-575-block {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .catch-copy-padding {
    padding: calc(100px + 15vw) 0;
  }
}


.subheading-ja-fs {
  font-size: clamp(1.8rem, calc(1.148rem + 3.26vw), 4rem);
}
.subheading-en-fs {
  font-size: clamp(1.2rem, calc(0.963rem + 1.19vw), 2rem);
}

.works-description {
  font-size: clamp(0.8rem, calc(0.593rem + 1.04vw), 1.5rem)
}

.prof-name-fs {
  font-size: clamp(2.625rem, calc(2.514rem + 0.56vw), 3rem);
}
.prof-desc-fs {
  font-size: clamp(0.8rem, calc(0.681rem + 0.59vw), 1.2rem);
}

.container, .row {
  overflow: hidden;
}

.subheading-ja-speaking-engagements-fs {
  font-size: clamp(1.2rem, calc(0.37rem + 4.15vw), 4rem)
}

.subheading-en-speaking-engagements-fs {
  font-size: clamp(0.6rem, calc(0.185rem + 2.07vw), 2rem);
}

.fs-24-48-px {
  font-size: clamp(1.5rem, calc(1.111rem + 1.48vw), 3rem);
}
.fs-24-32-px {
  font-size: clamp(1.5rem, calc(1.352rem + 0.74vw), 2rem)
}
.fs-14-20-px {
  font-size: clamp(0.875rem, calc(0.764rem + 0.56vw), 1.25rem);
}
.fs-12-18-px {
  font-size: clamp(0.75rem, calc(0.639rem + 0.56vw), 1.125rem);
}
.fs-12-16-px {
  font-size: clamp(0.75rem, calc(0.676rem + 0.37vw), 1rem);
}

.book-img {
  max-width: 100%;
  height: auto;
  width: 100%;
  box-shadow: var(--gray-dark) 0px 0px 5px;
}
@media (max-width: 767px) {
  .book-img {
    width: 40%;
  }
}

.greeting-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 800px;
}

.greeting-box {
  position: absolute;
  top: 20%;
  left: 5%;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  width: 50%;
  max-height: 500px;
  box-sizing: border-box;
  z-index: 2;
}


.greeting-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.greeting-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px) {
  .greeting-box {
    top: 10%;
    left: 5%;
    width: 70%;
  }
  .greeting-image-wrapper {
    width: 50%;
  }
}

@media (max-width: 767.98px) {
  .greeting-box {
    position: static; 
    width: auto;
    margin: 20px 0;
    background-color: transparent;
    padding: 0 15px;
    transform: none;
    order: 2; 
  }
  .greeting-image-wrapper {
    position: static;
    width: 100%; 
    height: auto; 
    order: 1; 
  }
  .greeting-image-wrapper img {
    height: auto;
    object-fit: contain; 
  }

  .greeting-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
} 

.shadow-blue {
  box-shadow: var(--blue-light-2) 5px 5px 8px;
}

@media (max-width: 991px) {
  .shadow-blue {
    box-shadow: var(--blue-light-2) 2px 2px 8px;
  }
}

.greeting-image-width {
  width: 95%;
}

@media (max-width: 768px) {
  .greeting-image-width {
    width: 80%;
  }
}