/* ==========================================================
   特別養護老人ホームさみた - site specific styles
   SOLARIS TCD088 child theme
   ========================================================== */

:root {
  --samita-orange: #b86432;
  --samita-orange-dark: #96502c;
  --samita-orange-soft: #d99a70;
  --samita-brown: #6f5a4c;
  --samita-text: #3f3935;
  --samita-muted: #7d746d;
  --samita-ivory: #f8f5ef;
  --samita-ivory-2: #fbf9f5;
  --samita-beige: #eee5d8;
  --samita-line: #e8ded2;
  --samita-white: #ffffff;
  --samita-shadow: 0 18px 45px rgba(80, 54, 38, .10);
}

/* ----------------------------------------------------------
   Base / common tone
---------------------------------------------------------- */
body {
  color: var(--samita-text);
}

#container {
  background: #fff;
}

a {
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}

.common_headline,
.cb_headline .headline {
  color: var(--samita-orange) !important;
}

.cb_headline .sub_headline {
  color: var(--samita-brown);
}

.design_button a {
  background: var(--samita-orange) !important;
  border-color: var(--samita-orange) !important;
  color: #fff !important;
}

.design_button a:hover {
  background: var(--samita-orange-dark) !important;
  border-color: var(--samita-orange-dark) !important;
}

/* ----------------------------------------------------------
   Header - remove strong SOLARIS identity
---------------------------------------------------------- */

/* TCD outputs the logo background color as a dynamic style after theme CSS.
   Force it off in the child theme so the blue SOLARIS logo panel never appears. */
#header_logo a,
.pc body.home #header_logo a,
.pc body.header_fix #header_logo a,
.mobile #header_logo a {
  background: transparent !important;
}

#header_search {
  display: none !important;
}

.pc body.home #header {
  width: calc(100% - 48px);
  max-width: 1480px;
  height: 72px;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(184,100,50,.14);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(73,48,32,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible;
}

.pc body.home #header:after {
  display: none !important;
}

.pc body.home.header_fix #header {
  width: calc(100% - 32px);
  max-width: 1480px;
  left: 50% !important;
  top: 10px !important;
  transform: translateX(-50%);
  background: rgba(255,255,255,.97);
  box-shadow: 0 8px 28px rgba(73,48,32,.13);
}

.pc body:not(.home) #header {
  background: #fff;
  border-bottom: 1px solid var(--samita-line);
}

#header_logo a {
  height: 72px;
  line-height: 1;
  padding: 0 0 0 26px;
}

#header_logo .logo_text {
  min-width: 205px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  font-size: 0 !important;
  letter-spacing: 0;
  color: var(--samita-text);
}

#header_logo .logo_text:before {
  content: '特別養護老人ホーム';
  display: block;
  margin-bottom: 6px;
  color: var(--samita-brown);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
}

#header_logo .logo_text:after {
  content: 'さみた';
  display: block;
  color: var(--samita-orange);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: .16em;
  white-space: nowrap;
}

#header_logo a:hover .logo_text {
  opacity: .78;
}

.pc #global_menu {
  height: 72px;
}

.pc #global_menu > ul {
  height: 72px;
  padding: 0 28px 0 250px;
  text-align: right;
  box-sizing: border-box;
}

.pc #global_menu > ul > li {
  height: 72px;
  vertical-align: top;
}

.pc #global_menu > ul > li > a,
.pc #header.active #global_menu > ul > li > a,
.pc body.header_fix #global_menu > ul > li > a,
.pc body.single #global_menu > ul > li > a,
.pc body.hide_header_image #global_menu > ul > li > a,
.pc body.no_index_header_content #global_menu > ul > li > a {
  height: 72px;
  line-height: 72px;
  padding: 0 14px;
  color: #4f4742 !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  overflow: visible;
}

.pc #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a:after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 1px;
  background: var(--samita-orange);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.pc #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a:hover:after,
.pc #global_menu > ul > li.current-menu-item:not(.samita-menu-rate):not(.samita-menu-contact) > a:after {
  transform: scaleX(1);
}

.pc #global_menu > ul > li > a:hover {
  color: var(--samita-orange) !important;
}

.pc #global_menu > ul > li.samita-menu-rate,
.pc #global_menu > ul > li.samita-menu-contact {
  margin-left: 6px;
}

.pc #global_menu > ul > li.samita-menu-rate > a,
.pc #global_menu > ul > li.samita-menu-contact > a {
  height: 42px;
  line-height: 40px;
  margin-top: 15px;
  padding: 0 18px;
  border-radius: 999px;
}

.pc #global_menu > ul > li.samita-menu-rate > a {
  border: 1px solid var(--samita-orange);
  color: var(--samita-orange) !important;
  background: rgba(255,255,255,.80);
}

.pc #global_menu > ul > li.samita-menu-rate > a:hover {
  background: var(--samita-ivory);
}

.pc #global_menu > ul > li.samita-menu-contact > a {
  border: 1px solid var(--samita-orange);
  color: #fff !important;
  background: var(--samita-orange);
}

.pc #global_menu > ul > li.samita-menu-contact > a:hover {
  border-color: var(--samita-orange-dark);
  background: var(--samita-orange-dark);
  color: #fff !important;
}

.pc #global_menu ul ul {
  top: 64px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(50,35,24,.16);
}

.pc #global_menu ul ul a {
  background: #fff;
  color: var(--samita-text);
  border-bottom: 1px solid #f0e9e1;
}

.pc #global_menu ul ul a:hover {
  background: var(--samita-ivory);
  color: var(--samita-orange);
}



/* v1.2 header refinement -------------------------------------------------- */
.pc body.home #header,
.pc body.header_fix #header {
  background: rgba(255, 252, 247, .96);
  border-color: rgba(184,100,50,.16);
}

.pc #header_logo {
  position: relative;
  z-index: 20;
}

.pc #header_logo a {
  width: 238px;
  box-sizing: border-box;
  padding: 0 28px 0 34px;
  border-right: 1px solid rgba(184,100,50,.15);
}

.pc #header_logo a:before {
  content: '';
  width: 3px;
  height: 34px;
  position: absolute;
  left: 20px;
  top: 19px;
  border-radius: 99px;
  background: linear-gradient(to bottom, #d8a076, var(--samita-orange));
}

#header_logo .logo_text:before {
  color: #7a6558;
}

#header_logo .logo_text:after {
  color: var(--samita-orange);
}

.pc #global_menu > ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  padding-left: 255px;
  padding-right: 18px;
}

.pc #global_menu > ul > li {
  display: block;
  flex: 0 0 auto;
}

.pc #global_menu > ul > li > a,
.pc #header.active #global_menu > ul > li > a,
.pc body.header_fix #global_menu > ul > li > a,
.pc body.single #global_menu > ul > li > a,
.pc body.hide_header_image #global_menu > ul > li > a,
.pc body.no_index_header_content #global_menu > ul > li > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1.15;
  padding: 0 13px;
  color: #514a45 !important;
}

.pc #global_menu .samita-nav-ja {
  display: block;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
}

.pc #global_menu .samita-nav-en {
  display: block;
  white-space: nowrap;
  color: var(--samita-orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .18em;
  opacity: .72;
}

.pc #global_menu > ul > li.samita-menu-rate > a,
.pc #global_menu > ul > li.samita-menu-contact > a {
  min-width: 104px;
  height: 46px;
  line-height: 1.1;
  margin-top: 13px;
  padding: 0 18px;
}

.pc #global_menu > ul > li.samita-menu-rate .samita-nav-en {
  color: var(--samita-orange);
}

.pc #global_menu > ul > li.samita-menu-contact .samita-nav-en {
  color: rgba(255,255,255,.78);
}

/* Make anchor-jumps stop below the floating header. */
#service, #facility, #philosophy, #contact {
  scroll-margin-top: 100px;
}


/* Hero copy: designed for left-side blank area of the generated image */
@media screen and (min-width: 1200px) {
  #header_slider .caption {
    width: 520px;
    left: calc(50% - 575px);
    top: 52%;
    padding: 0;
    text-align: left;
    color: var(--samita-orange);
    transform: translateY(-50%);
  }
  #header_slider .catch {
    line-height: 1.55;
    letter-spacing: .08em;
  }
  #header_slider .desc {
    margin-top: 24px;
    color: var(--samita-brown);
    letter-spacing: .08em;
  }
}

/* ----------------------------------------------------------
   Welcome block already used on TOP
---------------------------------------------------------- */
.samita-section {
  box-sizing: border-box;
  width: min(1150px, calc(100% - 60px));
  margin: 0 auto;
  padding: 100px 0;
  color: var(--samita-text);
}

.samita-section__eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--samita-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.samita-section__title {
  margin: 0 0 28px;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .06em;
}

.samita-section__lead {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 2.1;
  color: #635b56;
}

.samita-welcome {
  text-align: center;
}

.samita-welcome .samita-section__lead {
  margin-left: auto;
  margin-right: auto;
}

/* ----------------------------------------------------------
   Custom TOP blocks
---------------------------------------------------------- */
.samita-custom-block,
.samita-custom-block * {
  box-sizing: border-box;
}

.samita-custom-block {
  width: 100%;
  margin: 0;
  color: var(--samita-text);
}

.samita-custom-inner {
  width: min(1180px, calc(100% - 60px));
  margin: 0 auto;
}

.samita-heading {
  margin-bottom: 46px;
}

.samita-heading--center {
  text-align: center;
}

.samita-heading__en {
  display: block;
  margin-bottom: 9px;
  color: var(--samita-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
}

.samita-heading h2 {
  margin: 0;
  color: var(--samita-text);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .07em;
}

.samita-heading p {
  margin: 20px 0 0;
  color: var(--samita-muted);
  font-size: 15px;
  line-height: 2;
}

.samita-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--samita-orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
}

.samita-more:after {
  content: '→';
  font-size: 15px;
  transition: transform .25s ease;
}

a:hover .samita-more:after {
  transform: translateX(4px);
}

/* Service cards */
.samita-service-grid {
  padding: 100px 0 110px;
  background: var(--samita-ivory-2);
}

.samita-service-grid__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.samita-service-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--samita-line);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(70,50,38,.05);
  color: var(--samita-text) !important;
  text-decoration: none !important;
}

.samita-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--samita-shadow);
}

.samita-service-card__image {
  position: relative;
  height: 225px;
  overflow: hidden;
  background: #eee;
}

.samita-service-card__image:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,43,31,.20), rgba(61,43,31,0) 55%);
}

.samita-service-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}

.samita-service-card--tokuyou .samita-service-card__image img { object-position: 64% center; }
.samita-service-card--short .samita-service-card__image img { object-position: 64% center; }
.samita-service-card--day .samita-service-card__image img { object-position: 61% center; }

.samita-service-card:hover .samita-service-card__image img {
  transform: scale(1.045);
}

.samita-service-card__body {
  min-height: 290px;
  padding: 30px 30px 32px;
}

.samita-service-card__en {
  display: block;
  margin-bottom: 10px;
  color: var(--samita-orange);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

.samita-service-card h3 {
  margin: 0;
  color: var(--samita-text);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
}

.samita-service-card p {
  margin: 18px 0 0;
  color: var(--samita-muted);
  font-size: 14px;
  line-height: 2;
}

/* Facility split */
.samita-facility-block {
  padding: 110px 0;
  background: #fff;
}

.samita-facility-block__inner {
  width: min(1280px, calc(100% - 60px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 70px;
}

.samita-facility-block__image {
  position: relative;
  overflow: hidden;
  border-radius: 0 60px 0 60px;
  box-shadow: var(--samita-shadow);
}

.samita-facility-block__image:before {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.62);
  pointer-events: none;
}

.samita-facility-block__image img {
  width: 100%;
  height: 480px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.samita-facility-block__content {
  padding-right: 20px;
}

.samita-facility-block__text {
  margin: 0 0 34px;
  color: var(--samita-muted);
  font-size: 15px;
  line-height: 2.1;
}

.samita-button {
  min-width: 210px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none !important;
}

.samita-button--outline {
  border: 1px solid var(--samita-orange);
  color: var(--samita-orange) !important;
  background: #fff;
}

.samita-button--outline:hover {
  background: var(--samita-orange);
  color: #fff !important;
}

/* Philosophy */
.samita-philosophy-block {
  position: relative;
  overflow: hidden;
  padding: 105px 0 110px;
  background: linear-gradient(135deg, #b96739 0%, #9b5430 100%);
  color: #fff;
}

.samita-philosophy-block:before,
.samita-philosophy-block:after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.samita-philosophy-block:before { left: -190px; top: -230px; }
.samita-philosophy-block:after { right: -180px; bottom: -260px; }

.samita-philosophy-block__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.samita-heading--light .samita-heading__en,
.samita-heading--light h2 {
  color: #fff;
}

.samita-heading--light .samita-heading__en {
  opacity: .78;
}

.samita-philosophy-block__message {
  margin: 0 auto 36px;
  color: #fff;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(20px, 2.1vw, 30px);
  line-height: 2;
  letter-spacing: .08em;
}

.samita-button--light {
  border: 1px solid rgba(255,255,255,.70);
  color: #fff !important;
  background: rgba(255,255,255,.05);
}

.samita-button--light:hover {
  background: #fff;
  color: var(--samita-orange-dark) !important;
}

/* CTA */
.samita-cta-block {
  padding: 100px 0 105px;
  background: var(--samita-ivory);
}

.samita-cta-block__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.samita-cta-card {
  position: relative;
  display: block;
  min-height: 270px;
  padding: 42px 44px;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none !important;
  box-shadow: 0 8px 26px rgba(66,45,32,.06);
}

.samita-cta-card:after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  bottom: -80px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .10;
}

.samita-cta-card--price {
  background: #fff;
  border: 1px solid var(--samita-line);
  color: var(--samita-text) !important;
}

.samita-cta-card--contact {
  background: var(--samita-orange);
  border: 1px solid var(--samita-orange);
  color: #fff !important;
}

.samita-cta-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--samita-shadow);
}

.samita-cta-card__en {
  display: block;
  margin-bottom: 12px;
  color: var(--samita-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.samita-cta-card--contact .samita-cta-card__en {
  color: rgba(255,255,255,.72);
}

.samita-cta-card h3 {
  margin: 0;
  color: inherit;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .06em;
}

.samita-cta-card p {
  margin: 20px 0 0;
  color: inherit;
  font-size: 14px;
  line-height: 2;
  opacity: .78;
}

.samita-cta-card--contact .samita-more {
  color: #fff;
}

.samita-phone-cta {
  margin-top: 20px;
  min-height: 92px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--samita-line);
  border-radius: 18px;
}

.samita-phone-cta__label {
  color: var(--samita-brown);
  font-size: 13px;
  font-weight: 600;
}

.samita-phone-cta__number {
  color: var(--samita-orange) !important;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .05em;
}

.samita-phone-cta__hours {
  color: var(--samita-muted);
  font-size: 12px;
}

/* ----------------------------------------------------------
   NEWS - soften SOLARIS corporate style
---------------------------------------------------------- */
.cb_news_list {
  width: min(1150px, calc(100% - 60px));
  padding: 95px 70px 105px;
  border-left: none;
  border-right: none;
}

.news_category_list li a,
.index_news_list_wrap .category {
  border-radius: 999px !important;
}

.index_news_list_wrap .category,
.news_list .category {
  background: var(--samita-orange) !important;
  color: #fff !important;
}

.index_news_list_wrap .item {
  border-color: var(--samita-line) !important;
}

.index_news_list_wrap .title a:hover {
  color: var(--samita-orange) !important;
}

/* ----------------------------------------------------------
   Footer
---------------------------------------------------------- */
#footer_top {
  background: var(--samita-ivory-2);
  border-top: 1px solid var(--samita-line);
}

#footer_logo .logo_text {
  font-size: 0 !important;
}

#footer_logo .logo_text:before {
  content: '特別養護老人ホーム';
  display: block;
  margin-bottom: 8px;
  color: var(--samita-brown);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

#footer_logo .logo_text:after {
  content: 'さみた';
  display: block;
  color: var(--samita-orange);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: .16em;
}

#footer_menu .footer_menu li:first-of-type a {
  color: var(--samita-orange);
}

#footer_menu,
#footer_menu .footer_menu,
#footer_menu .footer_menu:last-of-type,
#footer_menu_bottom {
  border-color: var(--samita-line) !important;
}

#copyright {
  background: #74462f !important;
  color: rgba(255,255,255,.88) !important;
}

#return_top a,
#return_top2 a {
  background: var(--samita-orange) !important;
}

/* ----------------------------------------------------------
   Mobile
---------------------------------------------------------- */
@media screen and (max-width: 991px) {

  #header_logo a {
    background: transparent !important;
    border-right: none;
  }

  #header_logo a:before {
    content: '';
    width: 2px;
    height: 28px;
    position: absolute;
    left: 12px;
    top: 18px;
    border-radius: 99px;
    background: var(--samita-orange);
  }

  #drawer_menu .samita-nav-ja,
  #drawer_menu .samita-nav-en {
    display: inline;
  }

  #drawer_menu .samita-nav-en {
    margin-left: 8px;
    color: var(--samita-orange);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
  }

  #header {
    height: 64px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(184,100,50,.12);
    box-shadow: 0 4px 18px rgba(70,48,34,.07);
  }

  #header_logo a {
    height: 64px;
    line-height: 1;
    padding: 0 18px !important;
  }

  #header_logo .logo_text {
    min-width: 150px;
  }

  #header_logo .logo_text:before {
    margin-bottom: 4px;
    font-size: 8px;
  }

  #header_logo .logo_text:after {
    font-size: 22px;
  }

  #global_menu_button {
    width: 62px;
    height: 64px;
  }

  #global_menu_button span,
  #header.active #global_menu_button span,
  body.single #global_menu_button span,
  body.hide_header_image #global_menu_button span,
  body.no_index_header_content #global_menu_button span {
    background: var(--samita-orange) !important;
  }

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

  #drawer_menu {
    background: var(--samita-ivory-2);
  }

  #drawer_menu #mobile_menu > li > a {
    color: var(--samita-text);
    border-color: var(--samita-line);
  }

  #drawer_menu #mobile_menu > li.samita-menu-contact > a {
    margin: 12px 20px;
    border: none;
    border-radius: 999px;
    background: var(--samita-orange);
    color: #fff;
    text-align: center;
  }

  #drawer_menu #mobile_menu > li.samita-menu-rate > a {
    margin: 12px 20px;
    border: 1px solid var(--samita-orange);
    border-radius: 999px;
    background: #fff;
    color: var(--samita-orange);
    text-align: center;
  }

  #header_slider .caption {
    width: 68%;
    left: 24px;
    top: 27%;
    padding: 0;
    text-align: left;
    color: var(--samita-orange);
    transform: translateY(-50%);
  }

  #header_slider .catch {
    line-height: 1.55;
    letter-spacing: .06em;
  }

  #header_slider .desc {
    margin-top: 15px;
    color: var(--samita-brown);
  }

  .samita-service-grid__items {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .samita-service-card__image {
    height: 260px;
  }

  .samita-service-card__body {
    min-height: 0;
  }

  .samita-facility-block__inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .samita-facility-block__image img {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

@media screen and (max-width: 767px) {
  .samita-section {
    width: calc(100% - 40px);
    padding: 68px 0;
  }

  .samita-section__eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .samita-section__title {
    margin-bottom: 20px;
    font-size: 26px;
  }

  .samita-section__lead {
    font-size: 14px;
    line-height: 2;
  }

  .samita-custom-inner,
  .samita-facility-block__inner {
    width: calc(100% - 36px);
  }

  .samita-heading {
    margin-bottom: 32px;
  }

  .samita-heading__en {
    font-size: 10px;
  }

  .samita-heading h2 {
    font-size: 27px;
  }

  .samita-heading p {
    margin-top: 15px;
    font-size: 13px;
    line-height: 1.9;
  }

  .samita-service-grid {
    padding: 70px 0 78px;
  }

  .samita-service-card {
    border-radius: 14px;
  }

  .samita-service-card__image {
    height: 210px;
  }

  .samita-service-card__body {
    padding: 24px 24px 27px;
  }

  .samita-service-card h3 {
    font-size: 20px;
  }

  .samita-service-card p {
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.9;
  }

  .samita-facility-block {
    padding: 76px 0 82px;
  }

  .samita-facility-block__image {
    border-radius: 0 34px 0 34px;
  }

  .samita-facility-block__content {
    padding: 0 6px;
  }

  .samita-facility-block__text {
    font-size: 14px;
    line-height: 2;
  }

  .samita-philosophy-block {
    padding: 76px 0 82px;
  }

  .samita-philosophy-block__message {
    font-size: 20px;
    line-height: 1.9;
  }

  .samita-cta-block {
    padding: 72px 0 78px;
  }

  .samita-cta-block__cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .samita-cta-card {
    min-height: 0;
    padding: 30px 26px 32px;
    border-radius: 14px;
  }

  .samita-cta-card h3 {
    font-size: 25px;
  }

  .samita-phone-cta {
    flex-direction: column;
    gap: 7px;
    padding: 22px 18px;
  }

  .samita-phone-cta__number {
    font-size: 26px;
  }

  .cb_news_list {
    width: calc(100% - 36px);
    padding: 72px 0 78px;
  }
}


/* ==========================================================
   v1.3 readability refinement
   Older visitors are expected, so body copy is intentionally
   larger than the SOLARIS defaults while preserving the layout.
   ========================================================== */

/* Header readability */
#header_logo .logo_text:before {
  font-size: 12px;
}
#header_logo .logo_text:after {
  font-size: 31px;
}
.pc #global_menu .samita-nav-ja {
  font-size: 14px;
}
.pc #global_menu .samita-nav-en {
  font-size: 8px;
}

/* Welcome: keep the whole introduction visually centered */
.samita-section__eyebrow {
  font-size: 13px;
}
.samita-section__title {
  font-size: clamp(30px, 3.1vw, 44px);
}
.samita-section__lead,
.samita-welcome .samita-section__lead {
  max-width: 820px;
  margin-left: auto !important;
  margin-right: auto !important;
  color: #5d5651;
  font-size: 18px;
  line-height: 2.05;
  text-align: center !important;
  text-wrap: pretty;
}

/* Shared section headings / introductory copy */
.samita-heading__en {
  font-size: 14px;
}
.samita-heading h2 {
  font-size: clamp(32px, 3vw, 46px);
}
.samita-heading p {
  font-size: 17px;
  line-height: 2.05;
}

/* Service cards */
.samita-service-card__en {
  font-size: 11px;
}
.samita-service-card h3 {
  font-size: 24px;
}
.samita-service-card p {
  font-size: 16px;
  line-height: 2;
}
.samita-more {
  font-size: 15px;
}

/* Facility */
.samita-facility-block__text {
  font-size: 17px;
  line-height: 2.05;
}
.samita-button {
  min-height: 56px;
  font-size: 15px;
}

/* Philosophy */
.samita-philosophy-block__message {
  font-size: clamp(22px, 2.2vw, 32px);
}

/* CTA */
.samita-cta-card__en {
  font-size: 12px;
}
.samita-cta-card h3 {
  font-size: 32px;
}
.samita-cta-card p {
  font-size: 16px;
  line-height: 2;
}
.samita-phone-cta__label {
  font-size: 15px;
}
.samita-phone-cta__hours {
  font-size: 14px;
}

/* NEWS: retain SOLARIS structure but improve legibility */
.index_news_list_wrap .title,
.index_news_list_wrap .title a,
.news_list .title,
.news_list .title a {
  font-size: 16px;
  line-height: 1.8;
}
.index_news_list_wrap .date,
.news_list .date {
  font-size: 13px;
}

@media screen and (max-width: 767px) {
  #header_logo .logo_text:before {
    font-size: 11px;
  }
  #header_logo .logo_text:after {
    font-size: 27px;
  }

  .samita-section__eyebrow {
    font-size: 11px;
  }
  .samita-section__title {
    font-size: 28px;
    line-height: 1.6;
  }
  .samita-section__lead,
  .samita-welcome .samita-section__lead {
    max-width: 34em;
    font-size: 16px;
    line-height: 2;
    text-align: center !important;
  }

  .samita-heading__en {
    font-size: 11px;
  }
  .samita-heading h2 {
    font-size: 29px;
  }
  .samita-heading p {
    font-size: 16px;
    line-height: 2;
  }

  .samita-service-card__en {
    font-size: 10px;
  }
  .samita-service-card h3 {
    font-size: 22px;
  }
  .samita-service-card p {
    font-size: 16px;
    line-height: 1.95;
  }
  .samita-more {
    font-size: 15px;
  }

  .samita-facility-block__text {
    font-size: 16px;
    line-height: 2;
  }
  .samita-button {
    min-height: 54px;
    font-size: 15px;
  }

  .samita-philosophy-block__message {
    font-size: 21px;
    line-height: 1.9;
  }

  .samita-cta-card h3 {
    font-size: 27px;
  }
  .samita-cta-card p {
    font-size: 16px;
    line-height: 1.95;
  }
  .samita-phone-cta__label {
    font-size: 15px;
  }
  .samita-phone-cta__number {
    font-size: 28px;
  }
  .samita-phone-cta__hours {
    font-size: 14px;
  }

  .index_news_list_wrap .title,
  .index_news_list_wrap .title a,
  .news_list .title,
  .news_list .title a {
    font-size: 15px;
    line-height: 1.8;
  }
}

/* ==========================================================
   v1.4 heading + logo scale refinement
   Larger section headings improve scanning for older visitors.
   Desktop logo is enlarged; mobile stays compact so the header
   does not consume too much of the viewport.
   ========================================================== */

/* Section headings: one clear step larger than v1.3 */
.samita-section__title {
  font-size: clamp(34px, 3.4vw, 50px);
  line-height: 1.5;
}

.samita-heading h2 {
  font-size: clamp(36px, 3.2vw, 50px);
  line-height: 1.5;
}

/* Keep supporting English labels smaller for hierarchy */
.samita-section__eyebrow,
.samita-heading__en {
  letter-spacing: .20em;
}

/* Card/CTA titles also receive a modest lift */
.samita-service-card h3 {
  font-size: 26px;
}

.samita-cta-card h3 {
  font-size: 34px;
}

/* Desktop logo: larger without increasing the floating header height */
@media screen and (min-width: 992px) {
  .pc #header_logo a {
    width: 258px;
    padding-left: 38px;
    padding-right: 28px;
  }

  .pc #header_logo a:before {
    left: 22px;
    height: 38px;
    top: 17px;
  }

  #header_logo .logo_text {
    min-width: 220px;
  }

  #header_logo .logo_text:before {
    margin-bottom: 5px;
    font-size: 13px;
    letter-spacing: .13em;
  }

  #header_logo .logo_text:after {
    font-size: 36px;
    letter-spacing: .14em;
  }

  .pc #global_menu > ul {
    padding-left: 275px;
  }
}

/* Mobile: headings are enlarged, logo only slightly enlarged */
@media screen and (max-width: 767px) {
  .samita-section__title {
    font-size: 31px;
    line-height: 1.55;
  }

  .samita-heading h2 {
    font-size: 32px;
    line-height: 1.55;
  }

  .samita-service-card h3 {
    font-size: 23px;
  }

  .samita-cta-card h3 {
    font-size: 29px;
  }

  #header_logo .logo_text:before {
    font-size: 11px;
  }

  #header_logo .logo_text:after {
    font-size: 28px;
  }
}


/* ==========================================================
   v1.5 NEWS heading refinement
   Make the native SOLARIS NEWS block follow the same visual
   hierarchy as the Samita custom sections instead of looking
   like an untouched theme-default component.

   Recommended TCD fields:
     Headline    : NEWS
     Sub headline: お知らせ
   ========================================================== */

.cb_news_list .cb_headline {
  margin-bottom: 46px;
}

/* English eyebrow: intentionally small, like SERVICE / FACILITY */
.cb_news_list .cb_headline .headline {
  color: var(--samita-orange) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .22em !important;
}

/* Japanese main heading: visually aligned with custom blocks */
.cb_news_list .cb_headline .sub_headline {
  margin-top: 9px;
  color: var(--samita-text) !important;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif !important;
  font-size: clamp(36px, 3.2vw, 50px) !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: .07em !important;
}

/* Give NEWS a little more breathing room and a softer Samita feel */
.cb_news_list {
  background: #fff;
}

.index_news_list_wrap {
  border-top: 1px solid var(--samita-line);
}

.index_news_list_wrap .item {
  border-color: var(--samita-line) !important;
}

@media screen and (max-width: 767px) {
  .cb_news_list .cb_headline {
    margin-bottom: 32px;
  }

  .cb_news_list .cb_headline .headline {
    font-size: 11px !important;
  }

  .cb_news_list .cb_headline .sub_headline {
    margin-top: 7px;
    font-size: 32px !important;
    line-height: 1.55 !important;
  }
}


/* ==========================================================
   v1.6 NEWS Japanese heading scale adjustment
   NEWS is a utility/information section, so its Japanese title
   should not compete with the main content headings above.
   Recommended TCD fields: Headline = NEWS / Sub headline = お知らせ
   ========================================================== */
.cb_news_list .cb_headline .sub_headline {
  margin-top: 8px;
  font-size: clamp(25px, 2.15vw, 32px) !important;
  line-height: 1.45 !important;
  letter-spacing: .08em !important;
}

@media screen and (max-width: 767px) {
  .cb_news_list .cb_headline .sub_headline {
    margin-top: 6px;
    font-size: 24px !important;
    line-height: 1.5 !important;
  }
}

/* ==========================================================
   v1.7 - service image ratio + client-editable TOPICS
   ========================================================== */

/* The three source images were created at 1450 x 600.
   Keep that exact ratio and force the image to fill the box so no grey strip
   can appear between the photo and the card body even if parent-theme image
   rules try to restore height:auto. */
.samita-service-card__image {
  height: auto !important;
  aspect-ratio: 1450 / 600;
  background: #fff;
}

.samita-service-card__image img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* TOPICS: compact information strip placed between WELCOME and SERVICE. */
#topics {
  scroll-margin-top: 100px;
}

.samita-topics-block {
  padding: 72px 0 76px;
  background: #fff;
  border-top: 1px solid #f0e8df;
  border-bottom: 1px solid #f0e8df;
}

.samita-topics-block__header {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: end;
  gap: 48px;
  margin-bottom: 30px;
}

.samita-topics-heading {
  margin: 0;
}

.samita-topics-heading h2 {
  font-size: clamp(28px, 2.4vw, 38px);
}

.samita-topics-block__header > p {
  margin: 0 0 4px;
  color: var(--samita-muted);
  font-size: 16px;
  line-height: 1.9;
}

.samita-topics-list {
  border-top: 1px solid var(--samita-line);
}

.samita-topic-item {
  margin: 0;
  border-bottom: 1px solid var(--samita-line);
}

.samita-topic-item > a {
  min-height: 72px;
  display: grid;
  grid-template-columns: 110px 88px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  color: var(--samita-text) !important;
  text-decoration: none !important;
  background: #fff;
}

.samita-topic-item > a:hover {
  background: var(--samita-ivory-2);
}

.samita-topic-item time {
  color: #8b817a;
  font-size: 14px;
  letter-spacing: .04em;
}

.samita-topic-item__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4e9df;
  color: var(--samita-orange-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.samita-topic-item h3 {
  margin: 0;
  color: var(--samita-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
}

.samita-topic-item__arrow {
  color: var(--samita-orange);
  font-size: 20px;
  text-align: right;
  transition: transform .25s ease;
}

.samita-topic-item > a:hover .samita-topic-item__arrow {
  transform: translateX(4px);
}

.samita-topics-block__more {
  margin-top: 30px;
  text-align: center;
}

.samita-topics-empty {
  padding: 28px 30px;
  border: 1px solid var(--samita-line);
  border-radius: 12px;
  background: var(--samita-ivory-2);
  text-align: center;
}

.samita-topics-empty p {
  margin: 0;
  color: var(--samita-muted);
  font-size: 16px;
}

@media screen and (max-width: 767px) {
  .samita-topics-block {
    padding: 54px 0 58px;
  }

  .samita-topics-block__header {
    display: block;
    margin-bottom: 24px;
  }

  .samita-topics-heading {
    margin-bottom: 16px;
    text-align: center;
  }

  .samita-topics-block__header > p {
    text-align: center;
    font-size: 15px;
  }

  .samita-topic-item > a {
    grid-template-columns: 92px 1fr 24px;
    gap: 8px 12px;
    padding: 16px 8px;
  }

  .samita-topic-item time {
    font-size: 12px;
  }

  .samita-topic-item__label {
    display: none;
  }

  .samita-topic-item h3 {
    font-size: 15px;
  }
}

/* ==========================================================
   v1.9 - NEWS secondary heading: clearer visual hierarchy
   The NEWS Japanese title is intentionally smaller than CTA/main section headings.
   ========================================================== */
.cb_news_list .cb_headline .sub_headline {
  margin-top: 7px;
  font-size: clamp(22px, 1.85vw, 28px) !important;
  line-height: 1.45 !important;
  letter-spacing: .07em !important;
}

@media screen and (max-width: 767px) {
  .cb_news_list .cb_headline .sub_headline {
    margin-top: 5px;
    font-size: 21px !important;
    line-height: 1.5 !important;
  }
}

/* ==========================================================
   v2.0 - Unified top-level section heading hierarchy
   Keep every section's English label + Japanese H2 visually consistent.
   This also removes the special smaller NEWS title treatment from v1.9.
   ========================================================== */
:root {
  --samita-section-en-size: 14px;
  --samita-section-ja-size: clamp(36px, 3.2vw, 50px);
  --samita-section-ja-line-height: 1.5;
  --samita-section-ja-letter-spacing: .07em;
}

/* English labels: WELCOME / TOPICS / SERVICE / FACILITY / PHILOSOPHY /
   GUIDE & CONTACT / NEWS */
.samita-section__eyebrow,
.samita-heading__en,
.cb_news_list .cb_headline .headline {
  font-size: var(--samita-section-en-size) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: .20em !important;
}

/* Japanese section headings: use one shared scale across the entire TOP */
.samita-section__title,
.samita-heading h2,
.cb_news_list .cb_headline .sub_headline {
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif !important;
  font-size: var(--samita-section-ja-size) !important;
  font-weight: 500 !important;
  line-height: var(--samita-section-ja-line-height) !important;
  letter-spacing: var(--samita-section-ja-letter-spacing) !important;
}

/* Native NEWS spacing only; size is now shared with all other sections */
.cb_news_list .cb_headline .sub_headline {
  margin-top: 9px !important;
}

@media screen and (max-width: 767px) {
  :root {
    --samita-section-en-size: 11px;
    --samita-section-ja-size: 32px;
    --samita-section-ja-line-height: 1.55;
  }

  .cb_news_list .cb_headline .sub_headline {
    margin-top: 7px !important;
  }
}

/* ==========================================================
   v2.1 - Original editable fixed-page layout
   ========================================================== */
.samita-page-hero {
  position: relative;
  height: 360px;
  margin-top: 0;
  overflow: hidden;
  background: var(--samita-ivory);
}

.samita-page-hero__picture,
.samita-page-hero__picture img,
.samita-page-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.samita-page-hero__picture img {
  object-fit: cover;
  object-position: center center;
}

.samita-page-hero__shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(251,248,242,.96) 0%, rgba(251,248,242,.84) 31%, rgba(251,248,242,.25) 58%, rgba(251,248,242,0) 76%);
}

.samita-page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 80px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 28px;
}

.samita-page-hero__en {
  margin-bottom: 14px;
  color: var(--samita-orange);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .22em;
}

.samita-page-hero h1 {
  margin: 0;
  color: var(--samita-text);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: clamp(38px, 3.3vw, 52px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
}

.samita-page-hero__lead {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--samita-brown);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .04em;
}

.samita-page-breadcrumb {
  border-bottom: 1px solid var(--samita-line);
  background: #fff;
}

.samita-page-breadcrumb #bread_crumb {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
}

.samita-static-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff;
}

.samita-static-page__inner {
  width: min(1120px, calc(100% - 80px));
  margin: 0 auto;
  padding: 84px 0 100px;
  box-sizing: border-box;
}

.samita-static-content {
  color: var(--samita-text);
  font-size: 17px;
  line-height: 2;
}

.samita-static-content > *:first-child {
  margin-top: 0;
}

.samita-static-content p {
  margin: 0 0 1.7em;
}

.samita-static-content h2 {
  position: relative;
  margin: 76px 0 28px;
  padding: 0 0 18px 24px;
  border-bottom: 1px solid var(--samita-line);
  color: var(--samita-text);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: clamp(30px, 2.7vw, 40px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .06em;
}

.samita-static-content h2:before {
  content: '';
  position: absolute;
  left: 0;
  top: .25em;
  width: 4px;
  height: 1.25em;
  border-radius: 2px;
  background: var(--samita-orange);
}

.samita-static-content h3 {
  margin: 50px 0 20px;
  color: var(--samita-orange-dark);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .05em;
}

.samita-static-content h4 {
  margin: 36px 0 15px;
  color: var(--samita-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.7;
}

.samita-static-content ul,
.samita-static-content ol {
  margin: 0 0 2em 1.4em;
}

.samita-static-content li {
  margin: .45em 0;
}

.samita-static-content a:not(.samita-button) {
  color: var(--samita-orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.samita-static-content table {
  width: 100%;
  margin: 30px 0 46px;
  border-collapse: collapse;
  border-top: 1px solid var(--samita-line);
  font-size: 16px;
  line-height: 1.8;
}

.samita-static-content th,
.samita-static-content td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--samita-line);
  vertical-align: top;
}

.samita-static-content th {
  width: 25%;
  background: var(--samita-ivory-2);
  color: var(--samita-brown);
  font-weight: 600;
}

/* Reusable layouts that can be pasted into the normal fixed-page editor. */
.samita-page-section {
  margin: 70px 0;
}

.samita-page-section--tint {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 74px max(40px, calc((100vw - 1120px) / 2));
  background: var(--samita-ivory-2);
}

.samita-page-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
}

.samita-page-note {
  margin: 34px 0;
  padding: 26px 30px;
  border-left: 4px solid var(--samita-orange);
  background: var(--samita-ivory-2);
}

@media screen and (max-width: 767px) {
  .samita-page-hero {
    height: 250px;
  }

  .samita-page-hero__picture img {
    object-position: 58% center;
  }

  .samita-page-hero__shade {
    background: linear-gradient(90deg, rgba(251,248,242,.96) 0%, rgba(251,248,242,.80) 47%, rgba(251,248,242,.22) 78%, rgba(251,248,242,0) 100%);
  }

  .samita-page-hero__inner {
    width: calc(100% - 40px);
    padding-top: 10px;
  }

  .samita-page-hero__en {
    margin-bottom: 9px;
    font-size: 10px;
  }

  .samita-page-hero h1 {
    max-width: 72%;
    font-size: 30px;
    line-height: 1.45;
  }

  .samita-page-hero__lead {
    display: none;
  }

  .samita-page-breadcrumb #bread_crumb {
    width: calc(100% - 40px);
  }

  .samita-static-page__inner {
    width: calc(100% - 40px);
    padding: 58px 0 72px;
  }

  .samita-static-content {
    font-size: 16px;
    line-height: 1.95;
  }

  .samita-static-content h2 {
    margin-top: 56px;
    padding: 0 0 14px 18px;
    font-size: 28px;
  }

  .samita-static-content h2:before {
    width: 3px;
  }

  .samita-static-content h3 {
    margin-top: 38px;
    font-size: 22px;
  }

  .samita-static-content table,
  .samita-static-content tbody,
  .samita-static-content tr,
  .samita-static-content th,
  .samita-static-content td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .samita-static-content th {
    padding: 12px 15px;
    border-bottom: 0;
  }

  .samita-static-content td {
    padding: 13px 15px 18px;
  }

  .samita-page-section--tint {
    padding: 56px 20px;
  }

  .samita-page-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ==========================================================
   v2.2 - Seeded fixed pages / reusable content components
   ========================================================== */
.samita-page-philosophy {
  margin: 34px 0 46px !important;
  padding: 38px 44px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbf3eb 0%, #fffaf5 100%);
  color: var(--samita-orange-dark);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.9 !important;
  letter-spacing: .06em;
  text-align: center;
}

.samita-signature {
  margin-top: 32px !important;
  color: var(--samita-brown);
  line-height: 1.9 !important;
}

.samita-inline-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 60px 0 12px;
  padding-top: 40px;
  border-top: 1px solid var(--samita-line);
}

.samita-button--solid {
  border: 1px solid var(--samita-orange);
  background: var(--samita-orange);
  color: #fff !important;
}

.samita-button--solid:hover {
  border-color: var(--samita-orange-dark);
  background: var(--samita-orange-dark);
}

.samita-static-photo {
  overflow: hidden;
  margin: 28px 0 46px;
  border-radius: 0 48px 0 48px;
  box-shadow: var(--samita-shadow);
}

.samita-static-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.samita-floor-grid,
.samita-document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 48px;
}

.samita-floor-card,
.samita-document-card {
  padding: 30px 32px;
  border: 1px solid var(--samita-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(70,50,38,.04);
}

.samita-floor-card > span,
.samita-document-card > span {
  display: block;
  margin-bottom: 9px;
  color: var(--samita-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}

.samita-floor-card h3,
.samita-document-card h3 {
  margin: 0 0 10px !important;
  font-size: 24px !important;
}

.samita-floor-card p,
.samita-document-card p {
  margin: 0 !important;
  color: var(--samita-muted);
  font-size: 15px;
}

.samita-contact-phone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 28px;
  align-items: center;
  margin: 34px 0 60px;
  padding: 26px 30px;
  border: 1px solid var(--samita-line);
  border-radius: 16px;
  background: var(--samita-ivory-2);
}

.samita-contact-phone span {
  color: var(--samita-brown);
  font-weight: 600;
}

.samita-contact-phone a {
  color: var(--samita-orange) !important;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  text-decoration: none !important;
}

.samita-contact-phone small {
  color: var(--samita-muted);
  font-size: 13px;
}

.samita-map {
  position: relative;
  width: 100%;
  height: 440px;
  margin: 36px 0 50px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--samita-ivory-2);
}

.samita-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.samita-contact-form {
  margin: 34px 0 10px;
}

.samita-contact-form .wpcf7-form > p {
  margin-bottom: 26px;
}

.samita-contact-form .wpcf7-form label {
  display: block;
  color: var(--samita-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
}

.samita-contact-form input[type="text"],
.samita-contact-form input[type="email"],
.samita-contact-form input[type="tel"],
.samita-contact-form input[type="url"],
.samita-contact-form select,
.samita-contact-form textarea {
  width: 100%;
  margin-top: 9px;
  padding: 14px 16px;
  border: 1px solid var(--samita-line);
  border-radius: 8px;
  background: #fff;
  color: var(--samita-text);
  font-size: 16px;
  line-height: 1.7;
  box-sizing: border-box;
}

.samita-contact-form textarea {
  min-height: 200px;
  resize: vertical;
}

.samita-contact-form input[type="submit"] {
  min-width: 230px;
  min-height: 58px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--samita-orange);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.samita-contact-form input[type="submit"]:hover {
  background: var(--samita-orange-dark);
}

.samita-contact-form .wpcf7-not-valid-tip {
  margin-top: 7px;
  font-size: 14px;
}

.samita-form-pending {
  margin: 30px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--samita-orange);
  background: var(--samita-ivory-2);
}

.samita-form-pending p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 767px) {
  .samita-page-philosophy {
    padding: 28px 22px;
    font-size: 22px;
  }

  .samita-inline-cta {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 46px;
  }

  .samita-inline-cta .samita-button {
    width: 100%;
  }

  .samita-static-photo {
    border-radius: 0 30px 0 30px;
  }

  .samita-floor-grid,
  .samita-document-grid {
    grid-template-columns: 1fr;
  }

  .samita-floor-card,
  .samita-document-card {
    padding: 24px 22px;
  }

  .samita-contact-phone {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .samita-contact-phone a {
    font-size: 27px;
  }

  .samita-map {
    height: 330px;
    border-radius: 12px;
  }
}


/* ==========================================================
   v2.4 - Cross-browser global navigation stabilization
   SOLARIS adds #header.active while the pointer is over the
   header. Its higher-specificity rules can otherwise reset the
   CTA height/line-height and text colour. Keep the navigation
   geometry identical in normal / hover / fixed-header states.
   ========================================================== */

@media screen and (min-width: 1202px) {
  .pc #global_menu,
  .pc #global_menu > ul,
  .pc #global_menu > ul > li {
    height: 72px !important;
    box-sizing: border-box;
  }

  .pc #global_menu > ul > li {
    display: flex !important;
    align-items: center !important;
    justify-content: center;
    line-height: 1 !important;
  }

  /* Ordinary menu items: preserve exactly the same box on hover. */
  .pc #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a,
  .pc #header.active #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a,
  .pc body.header_fix #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a,
  .pc body.single #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a,
  .pc body.hide_header_image #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a,
  .pc body.no_index_header_content #global_menu > ul > li:not(.samita-menu-rate):not(.samita-menu-contact) > a {
    display: grid !important;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    row-gap: 3px;
    height: 72px !important;
    min-height: 72px !important;
    margin: 0 !important;
    padding: 0 13px !important;
    line-height: 1.15 !important;
    box-sizing: border-box !important;
    white-space: nowrap;
  }

  /* CTA menu items: keep a fixed capsule in every SOLARIS header state. */
  .pc #global_menu > ul > li.samita-menu-rate > a,
  .pc #global_menu > ul > li.samita-menu-contact > a,
  .pc #header.active #global_menu > ul > li.samita-menu-rate > a,
  .pc #header.active #global_menu > ul > li.samita-menu-contact > a,
  .pc body.header_fix #global_menu > ul > li.samita-menu-rate > a,
  .pc body.header_fix #global_menu > ul > li.samita-menu-contact > a,
  .pc body.single #global_menu > ul > li.samita-menu-rate > a,
  .pc body.single #global_menu > ul > li.samita-menu-contact > a,
  .pc body.hide_header_image #global_menu > ul > li.samita-menu-rate > a,
  .pc body.hide_header_image #global_menu > ul > li.samita-menu-contact > a,
  .pc body.no_index_header_content #global_menu > ul > li.samita-menu-rate > a,
  .pc body.no_index_header_content #global_menu > ul > li.samita-menu-contact > a {
    display: grid !important;
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    row-gap: 2px;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    line-height: 1.08 !important;
    box-sizing: border-box !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }

  .pc #global_menu > ul > li.samita-menu-rate > a,
  .pc #header.active #global_menu > ul > li.samita-menu-rate > a,
  .pc body.header_fix #global_menu > ul > li.samita-menu-rate > a {
    min-width: 118px;
    border: 1px solid var(--samita-orange) !important;
    background: rgba(255,255,255,.92) !important;
    color: var(--samita-orange) !important;
  }

  .pc #global_menu > ul > li.samita-menu-contact > a,
  .pc #header.active #global_menu > ul > li.samita-menu-contact > a,
  .pc body.header_fix #global_menu > ul > li.samita-menu-contact > a {
    min-width: 168px;
    border: 1px solid var(--samita-orange) !important;
    background: var(--samita-orange) !important;
    color: #fff !important;
  }

  /* TCD injects a higher-specificity hover colour dynamically. */
  .pc #global_menu > ul > li.samita-menu-rate > a:hover,
  .pc #header.active #global_menu > ul > li.samita-menu-rate > a:hover,
  .pc body.header_fix #global_menu > ul > li.samita-menu-rate > a:hover {
    border-color: var(--samita-orange-dark) !important;
    background: var(--samita-orange) !important;
    color: #fff !important;
  }

  .pc #global_menu > ul > li.samita-menu-contact > a:hover,
  .pc #header.active #global_menu > ul > li.samita-menu-contact > a:hover,
  .pc body.header_fix #global_menu > ul > li.samita-menu-contact > a:hover {
    border-color: var(--samita-orange-dark) !important;
    background: var(--samita-orange-dark) !important;
    color: #fff !important;
  }

  .pc #global_menu > ul > li.samita-menu-rate > a:hover .samita-nav-ja,
  .pc #global_menu > ul > li.samita-menu-rate > a:hover .samita-nav-en,
  .pc #global_menu > ul > li.samita-menu-contact > a .samita-nav-ja,
  .pc #global_menu > ul > li.samita-menu-contact > a .samita-nav-en,
  .pc #global_menu > ul > li.samita-menu-contact > a:hover .samita-nav-ja,
  .pc #global_menu > ul > li.samita-menu-contact > a:hover .samita-nav-en {
    color: inherit !important;
  }

  /* Make the two-line labels deterministic across Chromium/Edge. */
  .pc #global_menu .samita-nav-ja,
  .pc #global_menu .samita-nav-en {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    line-height: 1.05 !important;
    white-space: nowrap !important;
  }
}


/* ==========================================================
   v2.5 - navigation labels / fixed-page cleanup / heading scale
   ========================================================== */

/* HOME is already English. Keep it as a single-line item instead of HOME / HOME. */
.pc #global_menu .samita-nav-single {
  display: block !important;
  line-height: 1.2 !important;
}

@media screen and (min-width: 1202px) {
  .pc #global_menu > ul > li > a:has(.samita-nav-single),
  .pc #header.active #global_menu > ul > li > a:has(.samita-nav-single),
  .pc body.header_fix #global_menu > ul > li > a:has(.samita-nav-single) {
    grid-template-rows: auto !important;
  }
}

/* The custom fixed-page template is single-column. Remove SOLARIS' original
   main/sidebar divider pseudo-element and flex layout completely. */
#main_contents.samita-static-page {
  display: block !important;
}
#main_contents.samita-static-page:after,
#main_contents.samita-static-page::after {
  display: none !important;
  content: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Give the H2 accent bar more breathing room from the heading text. */
.samita-static-content h2 {
  padding-left: 36px;
}
.samita-static-content h2:before {
  left: 4px;
}

/* v2.0 unified the TOP heading hierarchy; v2.5 keeps that consistency but
   dials the whole scale back one step for a calmer page rhythm. */
:root {
  --samita-section-en-size: 13px;
  --samita-section-ja-size: clamp(31px, 2.7vw, 42px);
  --samita-section-ja-line-height: 1.5;
  --samita-section-ja-letter-spacing: .065em;
}

@media screen and (max-width: 767px) {
  :root {
    --samita-section-en-size: 10px;
    --samita-section-ja-size: 28px;
    --samita-section-ja-line-height: 1.55;
  }

  .samita-static-content h2 {
    padding-left: 28px;
  }

  .samita-static-content h2:before {
    left: 3px;
  }
}


/* ==========================================================
   v2.6 - Mobile explanatory copy alignment
   Desktop keeps centered intro copy. On phones, longer
   explanatory paragraphs are left aligned for easier reading.
   Headings/eyebrows remain centered to preserve hierarchy.
   ========================================================== */
@media screen and (max-width: 767px) {
  /* WELCOME explanatory paragraph */
  .samita-welcome .samita-section__lead,
  .samita-section__lead {
    text-align: left !important;
  }

  /* Centered section headings stay centered; only their copy becomes left aligned. */
  .samita-heading--center > p,
  .samita-heading--center .samita-heading__description {
    text-align: left !important;
  }

  /* TOPICS has its explanatory copy outside the heading wrapper. */
  .samita-topics-block__header > p {
    text-align: left !important;
  }

  /* Keep the editorial width comfortable on small screens. */
  .samita-welcome .samita-section__lead,
  .samita-heading--center > p,
  .samita-topics-block__header > p {
    width: 100%;
    max-width: none;
  }
}

/* ==========================================================
   v2.7 - Force the global-navigation Japanese/English labels
          into a true two-line stack on all Chromium browsers.
   ========================================================== */
@media screen and (min-width: 1202px) {
  .pc #global_menu .samita-nav-stack,
  .pc #header.active #global_menu .samita-nav-stack,
  .pc body.header_fix #global_menu .samita-nav-stack,
  .pc body.single #global_menu .samita-nav-stack,
  .pc body.hide_header_image #global_menu .samita-nav-stack,
  .pc body.no_index_header_content #global_menu .samita-nav-stack {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .pc #global_menu .samita-nav-stack--single {
    gap: 0 !important;
  }

  .pc #global_menu .samita-nav-stack > .samita-nav-ja,
  .pc #global_menu .samita-nav-stack > .samita-nav-en {
    display: block !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    float: none !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  /* The wrapper itself is the only grid/flex child of the menu anchor. */
  .pc #global_menu > ul > li > a,
  .pc #header.active #global_menu > ul > li > a,
  .pc body.header_fix #global_menu > ul > li > a {
    text-align: center !important;
  }
}

/* Mobile drawer: keep labels simple and readable. */
@media screen and (max-width: 1201px) {
  #drawer_menu .samita-nav-stack {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    line-height: 1.2 !important;
  }
}


/* ==========================================================
   v2.8 - Emergency cross-browser fixes
   1) Navigation labels use a real line break.
   2) Fixed-page H2 accent becomes a border with explicit gap.
   3) Mobile fixed-page CTA buttons cannot overflow the viewport.
   ========================================================== */

/* --- Global navigation: Japanese on line 1, English on line 2 --- */
@media screen and (min-width: 1202px) {
  .pc #global_menu .samita-nav-label,
  .pc #header.active #global_menu .samita-nav-label,
  .pc body.header_fix #global_menu .samita-nav-label,
  .pc body.single #global_menu .samita-nav-label,
  .pc body.hide_header_image #global_menu .samita-nav-label,
  .pc body.no_index_header_content #global_menu .samita-nav-label {
    display: inline-block !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
  }

  .pc #global_menu .samita-nav-break,
  .pc #header.active #global_menu .samita-nav-break,
  .pc body.header_fix #global_menu .samita-nav-break {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0 !important;
    content: "" !important;
  }

  .pc #global_menu .samita-nav-ja,
  .pc #global_menu .samita-nav-en {
    display: inline !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
    float: none !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .pc #global_menu .samita-nav-ja {
    font-size: 14px !important;
    line-height: 1.15 !important;
    letter-spacing: .02em !important;
  }

  .pc #global_menu .samita-nav-en {
    font-size: 9px !important;
    line-height: 1 !important;
    letter-spacing: .10em !important;
    opacity: .72 !important;
  }

  .pc #global_menu .samita-nav-label--single {
    font-size: 14px !important;
    line-height: 1.15 !important;
  }
}

/* Drawer navigation also keeps the sublabel on a separate line. */
@media screen and (max-width: 1201px) {
  #drawer_menu .samita-nav-label {
    display: inline-block !important;
    line-height: 1.25 !important;
  }
  #drawer_menu .samita-nav-break {
    display: block !important;
    height: 0 !important;
    line-height: 0 !important;
  }
}

/* --- Fixed pages: reliable H2 accent with a visible text gap --- */
body .samita-static-content h2 {
  position: relative !important;
  padding-left: 22px !important;
  border-left: 4px solid var(--samita-orange) !important;
  box-sizing: border-box !important;
}

body .samita-static-content h2::before,
body .samita-static-content h2:before {
  display: none !important;
  content: none !important;
}

/* --- Fixed pages: prevent mobile CTA / page content from widening viewport --- */
#main_contents.samita-static-page {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.samita-static-page__inner,
.samita-static-content,
.samita-inline-cta {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media screen and (max-width: 767px) {
  body .samita-static-content h2 {
    padding-left: 18px !important;
    border-left-width: 3px !important;
  }

  .samita-inline-cta {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .samita-inline-cta .samita-button,
  .samita-static-content .samita-button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* ==========================================================
   v3.1 Footer refinement
   - replace SOLARIS full-width desktop page-top bar with a compact floating button
   - enrich footer logo area with address / telephone / fax
========================================================== */

/* SOLARIS desktop full-width return-to-top strip is not used on Samita. */
#return_top2 {
  display: none !important;
}

/* Use the compact floating return-to-top control on every viewport. */
#return_top {
  display: block !important;
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  width: 54px !important;
  height: 54px !important;
  z-index: 9999 !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(91, 56, 38, .20);
}

#return_top a {
  width: 54px !important;
  height: 54px !important;
  line-height: 54px !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  border-radius: 50% !important;
  background: var(--samita-orange) !important;
  color: #fff !important;
  box-sizing: border-box !important;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease !important;
}

#return_top a:before {
  color: #fff !important;
  font-size: 13px !important;
  top: 1px !important;
}

#return_top a:hover {
  background: var(--samita-brown) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(91, 56, 38, .28);
}

/* Keep the logo area simple but informative after removing the wide TOP bar. */
#footer_top {
  padding: 58px 24px 52px !important;
}

.samita-footer-info {
  margin: 22px auto 0;
  padding: 0;
  color: var(--samita-muted);
  font-style: normal;
  text-align: center;
  line-height: 1.9;
  letter-spacing: .04em;
}

.samita-footer-info p {
  margin: 0;
}

.samita-footer-address {
  font-size: 14px;
}

.samita-footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 3px !important;
  font-size: 14px;
}

.samita-footer-contact a,
.samita-footer-contact span {
  color: var(--samita-brown);
  white-space: nowrap;
}

.samita-footer-contact a {
  text-decoration: none;
  font-weight: 600;
}

.samita-footer-contact a:hover {
  color: var(--samita-orange);
}

@media screen and (max-width: 750px) {
  #footer_top {
    padding: 42px 20px 38px !important;
  }

  .samita-footer-info {
    margin-top: 18px;
    line-height: 1.8;
  }

  .samita-footer-address,
  .samita-footer-contact {
    font-size: 13px;
  }

  .samita-footer-contact {
    flex-direction: column;
    gap: 0;
    margin-top: 5px !important;
  }

  #return_top {
    right: 14px !important;
    bottom: 14px !important;
    width: 48px !important;
    height: 48px !important;
  }

  #return_top a {
    width: 48px !important;
    height: 48px !important;
    line-height: 48px !important;
  }

  body.show_footer_bar #return_top.active {
    transform: translate3d(0, -50px, 0) !important;
  }
}


/* v3.2: Facility floor maps — preserve original image aspect ratio. */
.samita-static-content .samita-floor-maps__intro {
  margin: 12px 0 22px;
  color: var(--samita-muted);
  font-size: 16px;
  line-height: 1.8;
}
.samita-static-content .samita-floor-maps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 54px;
  align-items: start;
}
.samita-static-content .samita-floor-map-card {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--samita-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(70, 50, 38, .04);
  box-sizing: border-box;
}
.samita-static-content .samita-floor-map-card__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--samita-brown);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
}
.samita-static-content .samita-floor-map-card__eyebrow {
  color: var(--samita-orange);
  font-size: 13px;
  letter-spacing: .06em;
}
.samita-static-content .samita-floor-map-card__link {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}
.samita-static-content .samita-floor-map-card__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  object-fit: contain;
  margin: 0;
}
.samita-static-content .samita-floor-map-card__zoom {
  display: block;
  margin-top: 11px;
  color: var(--samita-orange-dark);
  font-size: 14px;
  text-align: right;
}
.samita-static-content .samita-floor-map-card__link:focus-visible {
  outline: 3px solid var(--samita-orange);
  outline-offset: 4px;
}
@media screen and (max-width: 767px) {
  .samita-static-content .samita-floor-maps {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 38px;
  }
  .samita-static-content .samita-floor-map-card {
    padding: 12px;
  }
  .samita-static-content .samita-floor-map-card__title {
    font-size: 19px;
  }
}

/* ==========================================================
   v3.3 — ご利用案内・料金表・申込書（PDF 9 files）
   ========================================================== */
.samita-static-content .samita-documents {
  display: block;
  margin: 26px 0 46px;
}
.samita-static-content .samita-documents__section {
  margin: 0 0 68px;
  scroll-margin-top: 110px;
}
.samita-static-content .samita-documents__section:first-child {
  margin-top: 38px;
}
.samita-static-content .samita-documents__en {
  display: block;
  color: var(--samita-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.5;
}
body .samita-static-content .samita-documents__section h2 {
  margin-top: 9px !important;
  margin-bottom: 26px !important;
  font-size: clamp(27px, 2.3vw, 34px) !important;
}
.samita-static-content .samita-documents__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}
.samita-static-content .samita-document-download {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid var(--samita-line);
  border-radius: 14px;
  background: #fff;
  color: var(--samita-text) !important;
  box-shadow: 0 6px 22px rgba(70,50,38,.045);
  text-decoration: none !important;
  box-sizing: border-box;
  transition: border-color .2s, background .2s, transform .2s;
}
.samita-static-content a.samita-document-download:hover {
  border-color: var(--samita-orange-soft);
  background: var(--samita-ivory-2);
  transform: translateY(-2px);
}
.samita-static-content a.samita-document-download:focus-visible {
  outline: 3px solid var(--samita-orange);
  outline-offset: 3px;
}
.samita-document-download__badge {
  display: inline-flex;
  flex: 0 0 50px;
  align-items: center;
  justify-content: center;
  height: 58px;
  border-radius: 8px;
  background: #f8e9de;
  color: var(--samita-orange-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
}
.samita-document-download__text {
  display: block;
  flex: 1;
  min-width: 0;
  line-height: 1.6;
}
.samita-document-download__text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.samita-document-download__text small {
  display: block;
  margin-top: 4px;
  color: var(--samita-muted);
  font-size: 13px;
  font-weight: 400;
}
.samita-document-download__arrow {
  margin-left: auto;
  color: var(--samita-orange-dark);
  font-size: 22px;
  line-height: 1;
}
.samita-static-content .samita-document-download--pending {
  background: var(--samita-ivory-2);
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}
.samita-document-download--pending .samita-document-download__badge {
  background: var(--samita-beige);
  color: var(--samita-muted);
}
.samita-document-download--pending .samita-document-download__arrow {
  color: var(--samita-muted);
}
/* Preserve comfortable CTA typography when its heading becomes longer. */
.samita-cta-card--price h3 {
  font-size: clamp(24px, 2vw, 31px) !important;
  line-height: 1.5;
}
@media screen and (max-width: 767px) {
  .samita-static-content .samita-documents__section {
    margin-bottom: 48px;
  }
  .samita-static-content .samita-documents__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .samita-static-content .samita-document-download {
    min-height: 82px;
    padding: 15px 14px;
    gap: 12px;
  }
  .samita-document-download__badge {
    flex-basis: 44px;
    height: 52px;
  }
  .samita-document-download__text strong {
    font-size: 15px;
  }
  .samita-document-download__text small {
    font-size: 12px;
  }
  .samita-document-download__arrow {
    font-size: 18px;
  }
  .samita-cta-card--price h3 {
    font-size: 25px !important;
  }
}


/* ==========================================================
   v3.4 — Real facility / service photographs and disclosure
   ========================================================== */
.samita-static-content .samita-photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 26px 0 52px;
  max-width: 100%;
}
.samita-static-content .samita-photo-gallery--facility {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.samita-static-content .samita-photo-gallery__item {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--samita-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(70,50,38,.05);
}
.samita-static-content .samita-photo-gallery__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--samita-ivory-2);
  overflow: hidden;
}
.samita-static-content .samita-photo-gallery__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* do not cut off rooms, furnishings, or building edges */
}
.samita-static-content .samita-photo-gallery__item figcaption {
  padding: 12px 15px;
  font-size: 14px;
  color: var(--samita-brown);
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}
.samita-static-content .samita-disclosure-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  color: var(--samita-orange-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 16px;
  font-weight: 700;
}
.samita-static-content .samita-disclosure-card a:focus-visible {
  outline: 3px solid var(--samita-orange);
  outline-offset: 4px;
}
.samita-static-content .samita-privacy-clause { margin-bottom: 1.1em; }
@media screen and (max-width: 991px) {
  .samita-static-content .samita-photo-gallery--facility {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .samita-static-content .samita-photo-gallery--facility .samita-photo-gallery__item:first-child {
    grid-column: 1 / -1;
  }
}
@media screen and (max-width: 767px) {
  .samita-static-content .samita-photo-gallery,
  .samita-static-content .samita-photo-gallery--facility {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .samita-static-content .samita-photo-gallery--facility .samita-photo-gallery__item:first-child {
    grid-column: auto;
  }
  .samita-static-content .samita-photo-gallery__media { aspect-ratio: 4 / 3; }
}

/* v3.5: Floor maps — smaller PC preview + Simple Lightbox + original-size route. */
@media screen and (min-width: 768px) {
  .samita-static-content .samita-floor-map-card {
    width: 100%;
    max-width: 365px;
    justify-self: center;
  }
}
.samita-static-content .samita-floor-map-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 11px;
}
.samita-static-content .samita-floor-map-card__zoom {
  margin: 0;
  font-size: 13px;
  text-align: left;
}
.samita-static-content .samita-floor-map-card__original {
  color: var(--samita-orange-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.samita-static-content .samita-floor-map-card__original:focus-visible {
  outline: 3px solid var(--samita-orange);
  outline-offset: 3px;
}
/* v3.6: Keep the hero full-bleed on ultrawide monitors.  v3.5's
   right-aligned auto-100%-height background exposed a large empty left side.
   A separately recomposed wide PC image is preferable to squeezing the image
   with CSS.  Prevent zoom animation from re-cropping people at this breakpoint. */
@media screen and (min-width: 1600px) {
  body.home #header_slider .item.image_item .bg_image:not(.mobile) {
    background-size: cover !important;
    background-position: center 65% !important;
    animation: none !important;
    -webkit-animation: none !important;
    transform: none !important;
  }
}


/* ==========================================================
   v3.7 — TOP mobile alignment, balanced headings and NEWS CTA
   Scope these refinements to the front page; preserve manually
   authored fixed-page typography and desktop block alignment.
   ========================================================== */

/* Unify only the native SOLARIS NEWS archive button with the
   child-theme 210 × 56 px buttons without replacing its admin settings. */
body.home .cb_news_list .design_button {
  height: auto !important;
  text-align: center;
}
body.home .cb_news_list .design_button a {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 210px !important;
  max-width: 100%;
  min-height: 56px !important;
  height: auto !important;
  padding: 12px 28px !important;
  border: 1px solid var(--samita-orange) !important;
  border-radius: 999px !important;
  background: var(--samita-orange) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: .06em;
  line-height: 1.5 !important;
  text-align: center;
  text-decoration: none !important;
}
body.home .cb_news_list .design_button a:hover {
  background: var(--samita-orange-dark) !important;
  border-color: var(--samita-orange-dark) !important;
}
body.home .cb_news_list .design_button a:before {
  display: none !important;
  content: none !important;
}

@media screen and (max-width: 767px) {
  /* v3.8: WELCOME body copy follows the same full-width, left-aligned
     mobile layout as other section descriptions. Headings remain centered. */
  body.home .samita-welcome .samita-section__lead {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    text-wrap: normal;
  }
  /* Old content may contain desktop-only manual line breaks. Do not
     force narrow lines on a phone; let the browser wrap naturally. */
  body.home .samita-welcome .samita-section__lead br {
    display: none !important;
  }

  /* The FACILITY photograph and copy are stacked on phones;
     center its sole link without centering the explanatory copy. */
  body.home .samita-facility-block__content > .samita-button {
    display: flex !important;
    width: max-content;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  /* Balance natural Japanese wraps across 2–3 lines so an orphaned
     final character is less likely. Respect authors' explicit <br>. */
  body.home .samita-section__title,
  body.home .samita-heading h2,
  body.home .samita-cta-card h3,
  body.home .cb_news_list .cb_headline .sub_headline {
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* Reduce spacing rather than forcing every heading onto one line.
     This preserves the consistent size hierarchy on narrow phones. */
  body.home .samita-section__title,
  body.home .samita-heading h2,
  body.home .cb_news_list .cb_headline .sub_headline {
    letter-spacing: .025em !important;
  }
  body.home .samita-cta-card h3 {
    letter-spacing: .02em !important;
  }

  /* SOLARIS's mobile button is otherwise a shorter 240 × 50 px pill. */
  body.home .cb_news_list .design_button a {
    min-width: 210px !important;
    min-height: 54px !important;
    font-size: 15px !important;
  }
}

/* ==========================================================
   v3.9 - WELCOME: remove the nested mobile side gutters.
   Unlike the other TOP sections, WELCOME lives inside a SOLARIS
   free-space content-builder block.  Its parent may add 20px side
   padding (type1), while .samita-section adds another 20px per side.
   The old v3.8 rule widened only the paragraph, not its container.
   Set the WELCOME section itself to the same 18px viewport gutters
   as .samita-custom-inner, whether free-space is type1 or type2.
   Keep the paragraph left-aligned; do not change heading or copy.
   ========================================================== */
@media screen and (max-width: 767px) {
  body.home .cb_free_space .samita-section.samita-welcome {
    box-sizing: border-box;
    width: calc(100vw - 36px) !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw + 18px) !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home .cb_free_space .samita-welcome .samita-section__lead {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    text-wrap: wrap;
    white-space: normal;
  }
}


/* ==========================================================
   v4.0 — brochure service facts on the three service pages
   ========================================================== */
.samita-static-content .samita-service-specs {
  margin: 36px 0 54px;
  padding: 26px 30px 28px;
  border: 1px solid var(--samita-line);
  border-radius: 16px;
  background: var(--samita-ivory-2);
  box-sizing: border-box;
}
.samita-static-content .samita-service-specs__heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.samita-static-content .samita-service-specs__heading span {
  color: var(--samita-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
body .samita-static-content .samita-service-specs__heading h2 {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 23px;
  line-height: 1.5;
  letter-spacing: .06em;
}
body .samita-static-content .samita-service-specs__heading h2:before {
  display: none;
}
.samita-static-content .samita-service-specs__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 0;
}
.samita-static-content .samita-service-specs__item {
  padding: 16px 18px;
  border: 1px solid #eadfd3;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
  min-width: 0;
}
.samita-static-content .samita-service-specs__item dt {
  margin: 0 0 4px;
  color: var(--samita-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.samita-static-content .samita-service-specs__item dd {
  margin: 0;
  color: var(--samita-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
@media screen and (max-width: 767px) {
  .samita-static-content .samita-service-specs {
    margin: 26px 0 44px;
    padding: 18px 16px 20px;
    border-radius: 12px;
  }
  body .samita-static-content .samita-service-specs__heading h2 {
    font-size: 21px;
  }
  .samita-static-content .samita-service-specs__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .samita-static-content .samita-service-specs__item {
    padding: 12px 14px;
  }
  .samita-static-content .samita-service-specs__item dd {
    font-size: 17px;
  }
}


/* ==========================================================
   v4.1 - Mobile navigation / philosophy and news archive
   ========================================================== */
/* SOLARIS prints user-configured menu colours in the document head.
   Explicitly scope and override only the mobile drawer; desktop remains intact. */
@media screen and (max-width: 1201px) {
  body #drawer_menu {
    background: #fffaf5 !important;
    color: #453c35 !important;
    box-shadow: -8px 0 28px rgba(65, 41, 25, .13);
  }
  body #drawer_menu #mobile_menu li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
    width: 100%;
    height: auto !important;
    min-height: 75px;
    box-sizing: border-box;
    padding: 14px 62px 14px 22px !important;
    line-height: 1.4 !important;
    color: #453c35 !important;
    border-color: #eadfd3 !important;
    background: transparent;
    text-overflow: clip;
    white-space: normal;
    overflow: visible;
  }
  body #drawer_menu #mobile_menu ul ul li > a {
    min-height: 56px;
    padding-left: 36px !important;
    background: #f7efe7;
  }
  body #drawer_menu #mobile_menu li > a .samita-nav-label {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    line-height: 1.35 !important;
    text-align: left;
  }
  body #drawer_menu #mobile_menu li > a .samita-nav-ja,
  body #drawer_menu #mobile_menu li > a .samita-nav-en {
    display: block !important;
    position: static !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    white-space: normal;
  }
  body #drawer_menu #mobile_menu li > a .samita-nav-ja {
    color: #453c35 !important;
    font-size: 15px;
    font-weight: 600;
  }
  body #drawer_menu #mobile_menu li > a .samita-nav-en {
    margin-top: 3px !important;
    color: #ad592d !important;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .11em;
  }
  body #drawer_menu #mobile_menu .samita-nav-break {
    display: none !important; /* The two child spans each create one line. */
  }
  body #drawer_menu #mobile_menu .child_menu_button {
    top: 0;
    width: 58px;
    height: 75px;
    background: transparent;
  }
  body #drawer_menu #mobile_menu .child_menu_button .icon:before,
  body #drawer_menu #mobile_menu .child_menu_button:hover .icon:before,
  body #drawer_menu #mobile_menu .child_menu_button.active .icon:before {
    color: #ad592d !important;
    top: 35px;
  }
  body #drawer_menu #mobile_menu .child_menu_button:hover {
    background: #f1e3d7 !important;
  }
  body #drawer_menu #mobile_menu > li.samita-menu-rate > a,
  body #drawer_menu #mobile_menu > li.samita-menu-contact > a {
    width: calc(100% - 40px);
    min-height: 70px;
    margin: 15px 20px !important;
    padding: 11px 20px !important;
    justify-content: center;
    text-align: center;
    border-radius: 999px;
  }
  body #drawer_menu #mobile_menu > li.samita-menu-rate > a {
    color: #ad592d !important;
    background: #fff !important;
    border: 1px solid #b86532 !important;
  }
  body #drawer_menu #mobile_menu > li.samita-menu-contact > a {
    color: #fff !important;
    background: #b86532 !important;
    border: 1px solid #b86532 !important;
  }
  body #drawer_menu #mobile_menu > li.samita-menu-rate > a .samita-nav-label,
  body #drawer_menu #mobile_menu > li.samita-menu-contact > a .samita-nav-label {
    text-align: center;
  }
  body #drawer_menu #mobile_menu > li.samita-menu-rate > a .samita-nav-ja,
  body #drawer_menu #mobile_menu > li.samita-menu-rate > a .samita-nav-en {
    color: #ad592d !important;
  }
  body #drawer_menu #mobile_menu > li.samita-menu-contact > a .samita-nav-ja,
  body #drawer_menu #mobile_menu > li.samita-menu-contact > a .samita-nav-en {
    color: #fff !important;
  }
  body #drawer_menu #footer_search {
    background: #fff !important;
    border: 1px solid #eadfd3;
    border-radius: 8px;
  }
  body #drawer_menu #footer_search .input_area input {
    color: #453c35 !important;
    background: transparent !important;
  }
  body #drawer_menu #footer_search .button label:before {
    color: #ad592d !important;
  }
  body #drawer_menu .close_button { border-color: #eadfd3; }
  body #drawer_menu .close_button:before { color: #ad592d !important; }
}

/* Keep the original client's exact wording; balance lines instead of
   replacing the manually edited About page content. */
@media screen and (max-width: 767px) {
  body .samita-static-content .samita-page-philosophy {
    padding: 28px 12px !important;
    font-size: clamp(16px, 4.6vw, 19px) !important;
    letter-spacing: .015em !important;
    line-height: 1.9 !important;
    text-wrap: balance;
    overflow-wrap: normal;
  }
}

/* Archive news: same header, page width and palette as the fixed pages. */
.samita-news-archive .samita-static-page__inner {
  max-width: 1120px;
}
.samita-news-archive__intro {
  margin: 0 0 36px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--samita-text);
}
.samita-news-archive__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.samita-news-archive__filters li { margin: 0; list-style: none; }
.samita-news-archive__filters a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 19px;
  border: 1px solid var(--samita-line);
  border-radius: 999px;
  background: #fff;
  color: var(--samita-text);
  font-size: 13px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.samita-news-archive__filters .is-current a,
.samita-news-archive__filters a:hover {
  background: var(--samita-orange);
  border-color: var(--samita-orange);
  color: #fff;
}
.samita-news-archive__list {
  border-top: 1px solid var(--samita-line);
}
.samita-news-archive__item {
  border-bottom: 1px solid var(--samita-line);
}
.samita-news-archive__item > a {
  display: flex;
  align-items: center;
  gap: 17px;
  min-height: 100px;
  padding: 22px 8px;
  box-sizing: border-box;
  color: var(--samita-text);
  text-decoration: none;
  transition: background .2s ease;
}
.samita-news-archive__item > a:hover { background: var(--samita-ivory-2); }
.samita-news-archive__date {
  flex: 0 0 94px;
  font-size: 13px;
  color: var(--samita-muted);
  font-variant-numeric: tabular-nums;
}
.samita-news-archive__category {
  flex: 0 0 auto;
  max-width: 160px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--samita-ivory-2);
  color: var(--samita-orange-dark);
  font-size: 12px;
  line-height: 1.45;
}
.samita-news-archive__title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.samita-news-archive__arrow {
  flex: 0 0 auto;
  color: var(--samita-orange);
  font-size: 21px;
}
.samita-news-archive__pagination { margin-top: 43px; }
.samita-news-archive__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}
.samita-news-archive__pagination .page-numbers {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--samita-line);
  border-radius: 999px;
  box-sizing: border-box;
  color: var(--samita-text);
  text-decoration: none;
}
.samita-news-archive__pagination .current,
.samita-news-archive__pagination a:hover {
  background: var(--samita-orange);
  border-color: var(--samita-orange);
  color: #fff;
}
.samita-news-archive__empty { margin: 0; padding: 30px 0; }
@media screen and (max-width: 767px) {
  .samita-news-archive__intro { font-size: 15px; margin-bottom: 24px; }
  .samita-news-archive__filters { margin-bottom: 25px; gap: 8px; }
  .samita-news-archive__filters a { min-height: 36px; padding: 0 14px; }
  .samita-news-archive__item > a {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    min-height: 0;
    padding: 18px 3px;
  }
  .samita-news-archive__date { grid-column: 1; grid-row: 1; font-size: 12px; }
  .samita-news-archive__category { grid-column: 1; grid-row: 2; justify-self: start; }
  .samita-news-archive__title { grid-column: 1; grid-row: 3; font-size: 15px; }
  .samita-news-archive__arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; }
}

/* ==========================================================
   v4.2 - FACILITY heading: center Japanese title on phones only.
   Do not change the English eyebrow, left-aligned body copy or CTA.
   ========================================================== */
@media screen and (max-width: 767px) {
  body.home .samita-facility-block__content .samita-heading h2 {
    width: 100%;
    text-align: center !important;
  }
}

/* ==========================================================
   v4.3/4.4 - News detail: article-only body, no page hero.
   No automatic featured-image block; inline images in the
   actual post body are deliberately unaffected.
   ========================================================== */
.samita-news-single .samita-static-page__inner {
  max-width: 1120px;
}
.samita-news-single__article {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  background: #fff;
}
.samita-news-single__header {
  margin: 0 0 34px;
  padding: 0 0 26px;
  border-bottom: 1px solid var(--samita-line);
}
.samita-news-single__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 18px;
  color: var(--samita-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}
.samita-news-single__category {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 13px;
  border-radius: 999px;
  background: var(--samita-ivory-2);
  color: var(--samita-orange-dark);
  font-size: 12px;
  text-decoration: none;
}
.samita-news-single__title {
  margin: 0;
  color: var(--samita-text);
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .035em;
  overflow-wrap: anywhere;
}
.samita-news-single__body {
  width: 100%;
  min-width: 0;
  line-height: 2;
  overflow-wrap: anywhere;
}
.samita-news-single__body img {
  max-width: 100%;
  height: auto;
}
.samita-news-single .single_share,
.samita-news-single .single_copy_title_url {
  margin: 24px 0;
}
.samita-news-single__navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 850px;
  margin: 55px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--samita-line);
}
.samita-news-single__nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  padding: 19px 23px;
  border: 1px solid var(--samita-line);
  border-radius: 15px;
  background: var(--samita-ivory-2);
  color: var(--samita-text);
  text-decoration: none;
  box-sizing: border-box;
}
.samita-news-single__nav-link--next {
  grid-column: 2;
  text-align: right;
}
.samita-news-single__nav-link:hover {
  background: var(--samita-ivory);
  border-color: var(--samita-orange-soft);
}
.samita-news-single__nav-label {
  color: var(--samita-orange-dark);
  font-size: 12px;
  font-weight: 600;
}
.samita-news-single__nav-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.samita-news-single__back {
  display: flex;
  justify-content: center;
  margin-top: 45px;
}
@media screen and (max-width: 767px) {
  .samita-news-single__article { max-width: 100%; }
  .samita-news-single__header { margin-bottom: 26px; padding-bottom: 22px; }
  .samita-news-single__meta { font-size: 12px; margin-bottom: 12px; }
  .samita-news-single__title { font-size: clamp(24px, 6.5vw, 30px); line-height: 1.6; letter-spacing: .02em; }
  .samita-news-single__body { font-size: 16px; line-height: 1.95; }
  .samita-news-single__navigation { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; padding-top: 25px; }
  .samita-news-single__nav-link--next { grid-column: 1; }
  .samita-news-single__back { margin-top: 30px; }
}

/* ==========================================================
   v4.5 - News detail global navigation colour consistency.
   SOLARIS' `body.single` rule overrides the CTA label colours
   that are already correct on fixed pages. Match the fixed-page
   state without touching the article, other pages or mobile menu.
   ========================================================== */
@media screen and (min-width: 1202px) {
  /* Outline CTA: ご利用案内. */
  .pc body.single-news #header #global_menu > ul > li.samita-menu-rate > a {
    background: rgba(255,255,255,.92) !important;
    border: 1px solid var(--samita-orange) !important;
    color: var(--samita-orange) !important;
  }
  .pc body.single-news #header #global_menu > ul > li.samita-menu-rate > a .samita-nav-ja,
  .pc body.single-news #header #global_menu > ul > li.samita-menu-rate > a .samita-nav-en {
    color: var(--samita-orange) !important;
  }
  .pc body.single-news #header #global_menu > ul > li.samita-menu-rate > a:hover {
    background: var(--samita-orange) !important;
    border-color: var(--samita-orange-dark) !important;
    color: #fff !important;
  }
  .pc body.single-news #header #global_menu > ul > li.samita-menu-rate > a:hover .samita-nav-ja,
  .pc body.single-news #header #global_menu > ul > li.samita-menu-rate > a:hover .samita-nav-en {
    color: #fff !important;
  }

  /* Solid CTA: お問い合わせ. White text on the orange capsule. */
  .pc body.single-news #header #global_menu > ul > li.samita-menu-contact > a {
    background: var(--samita-orange) !important;
    border: 1px solid var(--samita-orange) !important;
    color: #fff !important;
  }
  .pc body.single-news #header #global_menu > ul > li.samita-menu-contact > a .samita-nav-ja,
  .pc body.single-news #header #global_menu > ul > li.samita-menu-contact > a .samita-nav-en {
    color: #fff !important;
  }
  .pc body.single-news #header #global_menu > ul > li.samita-menu-contact > a:hover {
    background: var(--samita-orange-dark) !important;
    border-color: var(--samita-orange-dark) !important;
    color: #fff !important;
  }
}

/* v4.6: Gutenberg-editable recruitment tables. No recruitment data in CSS/PHP output. */
.samita-static-content figure.samita-recruit-table {
  margin: 16px 0 52px;
  overflow-x: auto;
  border: 1px solid #eee2d8;
  border-radius: 12px;
  background: #fff;
}
.samita-static-content figure.samita-recruit-table table {
  margin: 0;
  border: 0;
  table-layout: auto;
}
.samita-static-content figure.samita-recruit-table tr + tr { border-top: 1px solid #eee2d8; }
.samita-static-content figure.samita-recruit-table th,
.samita-static-content figure.samita-recruit-table td {
  border: 0;
  padding: 17px 20px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.samita-static-content figure.samita-recruit-table th { width: 27%; min-width: 135px; background: #fff8f1; color: #8a583a; }
.samita-static-content figure.samita-recruit-table td { color: var(--samita-text); }
@media screen and (max-width: 767px) {
  .samita-static-content figure.samita-recruit-table { margin: 14px 0 38px; }
  .samita-static-content figure.samita-recruit-table table,
  .samita-static-content figure.samita-recruit-table tbody,
  .samita-static-content figure.samita-recruit-table tr,
  .samita-static-content figure.samita-recruit-table th,
  .samita-static-content figure.samita-recruit-table td { display: block; width: 100%; min-width: 0; box-sizing: border-box; }
  .samita-static-content figure.samita-recruit-table th { padding: 10px 15px 6px; font-size: 13px; }
  .samita-static-content figure.samita-recruit-table td { padding: 10px 15px 16px; font-size: 15px; line-height: 1.85; }
}

/* v4.7: grouped public-disclosure documents */
.samita-static-content .samita-disclosure-section { margin: 0 0 58px; }
.samita-static-content .samita-disclosure-section:last-child { margin-bottom: 0; }
.samita-static-content .samita-disclosure-section .samita-document-grid { margin-top: 24px; }
@media screen and (max-width: 767px) {
  .samita-static-content .samita-disclosure-section { margin-bottom: 44px; }
}


/* ==========================================================
   v4.8 — Facility photo fit + disclosure heading hierarchy
   ========================================================== */
/* Facility photographs supplied by the client are approximately 3:2.
   Matching the frame to that ratio removes the apparent blank strip above
   the photo while keeping the three cards equal in height. */
.samita-static-content .samita-photo-gallery--facility .samita-photo-gallery__media {
  aspect-ratio: 3 / 2;
  align-items: stretch;
  background: #fff;
}
.samita-static-content .samita-photo-gallery--facility .samita-photo-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* "公開資料" remains the page-level H2.  The document groups are H3s,
   deliberately quieter so 法人資料 / 運営規程 / 重要事項説明 do not
   compete visually with the parent heading. */
.samita-static-content .samita-disclosure-section > .samita-disclosure-section__title {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--samita-orange-dark) !important;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: 25px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  letter-spacing: .05em !important;
}
.samita-static-content .samita-disclosure-card > .samita-disclosure-card__title {
  margin: 0 0 10px !important;
  color: var(--samita-text) !important;
  font-family: 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', serif;
  font-size: 24px !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  letter-spacing: .04em !important;
}
@media screen and (max-width: 767px) {
  .samita-static-content .samita-disclosure-section > .samita-disclosure-section__title {
    margin-bottom: 15px !important;
    font-size: 22px !important;
  }
  .samita-static-content .samita-disclosure-card > .samita-disclosure-card__title {
    font-size: 21px !important;
  }
}

/* ==========================================================
   v5.0 — Native Gutenberg blocks for fixed pages
   Keep the approved frontend design while making copy/images/PDF links
   editable from the standard WordPress block editor.
   ========================================================== */

/* Native service-card grid used only on fixed pages. */
.samita-static-content .samita-service-grid--native {
  margin: 0;
}
.samita-static-content .samita-service-grid--native > .samita-custom-inner,
.samita-static-content .samita-service-grid--native .samita-custom-inner {
  width: 100%;
  max-width: none;
}
.samita-static-content .samita-service-grid__items--native {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.samita-static-content .samita-service-card--native {
  margin: 0;
}
.samita-static-content .samita-service-card--native > .samita-service-card__image {
  margin: 0;
  height: 225px;
  border-radius: 0;
  box-shadow: none;
}
.samita-static-content .samita-service-card--native > .samita-service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.samita-static-content .samita-service-card--native .samita-service-card__body {
  min-height: 290px;
  padding: 30px 30px 32px;
}
.samita-static-content .samita-service-card--native .samita-service-card__en {
  margin: 0 0 10px !important;
}
.samita-static-content .samita-service-card--native .samita-service-card__body > h3 {
  margin: 0 !important;
}
.samita-static-content .samita-service-card--native .samita-service-card__body > p:not(.samita-service-card__en):not(.samita-service-card__more) {
  margin: 18px 0 0 !important;
}
.samita-static-content .samita-service-card--native .samita-service-card__more {
  margin: 0 !important;
}
.samita-static-content .samita-service-card--native .samita-service-card__more .samita-more {
  margin-top: 24px;
}

/* Native service-information blocks. */
.samita-static-content .samita-service-specs__kicker,
.samita-static-content .samita-service-specs__label,
.samita-static-content .samita-service-specs__value {
  margin: 0 !important;
}
.samita-static-content .samita-service-specs__kicker {
  color: var(--samita-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}
.samita-static-content .samita-service-specs__label {
  margin-bottom: 4px !important;
  color: var(--samita-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}
.samita-static-content .samita-service-specs__value {
  color: var(--samita-text);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

/* Native photo galleries. */
.samita-static-content .samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item {
  display: block;
  margin: 0;
}
.samita-static-content .samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > img,
.samita-static-content .samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > a {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--samita-ivory-2);
}
.samita-static-content .samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > img,
.samita-static-content .samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > a > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  margin: 0;
}
.samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > img,
.samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > a {
  aspect-ratio: 3 / 2;
  background: #fff;
}
.samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > img,
.samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > a > img {
  object-fit: cover;
  object-position: center center;
}
.samita-static-content .samita-photo-gallery--native .wp-element-caption {
  margin: 0;
  padding: 12px 15px;
  color: var(--samita-brown);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

/* Native floor-map blocks. */
.samita-static-content .samita-floor-map-card--native .wp-block-image {
  margin: 0;
}
.samita-static-content .samita-floor-map-card--native .wp-block-image > a {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
}
.samita-static-content .samita-floor-map-card--native .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}
.samita-static-content .samita-floor-map-card--native .samita-floor-map-card__zoom,
.samita-static-content .samita-floor-map-card--native .samita-floor-map-card__original-native {
  margin: 0 !important;
  font-size: 13px;
}
.samita-static-content .samita-floor-map-card--native .samita-floor-map-card__original-native a {
  color: var(--samita-orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Native CTA buttons. */
.samita-static-content .samita-inline-cta--native .wp-block-button {
  margin: 0;
}
.samita-static-content .samita-inline-cta--native .wp-block-button__link {
  min-width: 210px;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none !important;
  box-sizing: border-box;
}
.samita-static-content .samita-native-button--solid .wp-block-button__link {
  border: 1px solid var(--samita-orange);
  background: var(--samita-orange);
  color: #fff !important;
}
.samita-static-content .samita-native-button--solid .wp-block-button__link:hover {
  border-color: var(--samita-orange-dark);
  background: var(--samita-orange-dark);
}
.samita-static-content .samita-native-button--outline .wp-block-button__link {
  border: 1px solid var(--samita-orange);
  background: #fff;
  color: var(--samita-orange) !important;
}
.samita-static-content .samita-native-button--outline .wp-block-button__link:hover {
  background: var(--samita-orange);
  color: #fff !important;
}

/* Native document cards. */
.samita-static-content .samita-document-download--native > .samita-document-download__badge,
.samita-static-content .samita-document-download--native .samita-document-download__text > p {
  margin: 0 !important;
}
.samita-static-content .samita-document-download--native .samita-document-download__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.samita-static-content .samita-document-download--native .samita-document-download__link,
.samita-static-content .samita-document-download--native .samita-document-download__pending-text {
  margin-top: 4px !important;
  color: var(--samita-muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}
.samita-static-content .samita-document-download--native .samita-document-download__link a {
  color: var(--samita-orange-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Native disclosure cards. */
.samita-static-content .samita-document-card__eyebrow {
  margin: 0 0 9px !important;
  color: var(--samita-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
}
.samita-static-content .samita-disclosure-card__link,
.samita-static-content .samita-disclosure-card__pending {
  margin: 8px 0 0 !important;
}

/* Native contact-phone box. */
.samita-static-content .samita-contact-phone--native > p {
  margin: 0 !important;
}
.samita-static-content .samita-contact-phone__label {
  color: var(--samita-brown);
  font-weight: 600;
}
.samita-static-content .samita-contact-phone__number a {
  color: var(--samita-orange) !important;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 500;
  text-decoration: none !important;
}
.samita-static-content .samita-contact-phone__hours {
  color: var(--samita-muted);
  font-size: 13px;
}

@media screen and (max-width: 991px) {
  .samita-static-content .samita-service-grid__items--native {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .samita-static-content .samita-service-grid--native {
    padding: 72px 0 78px;
  }
  .samita-static-content .samita-service-grid__items--native {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .samita-static-content .samita-service-card--native > .samita-service-card__image {
    height: 210px;
  }
  .samita-static-content .samita-service-card--native .samita-service-card__body {
    min-height: 0;
    padding: 24px 22px 26px;
  }
  .samita-static-content .samita-service-specs__value {
    font-size: 17px;
  }
  .samita-static-content .samita-inline-cta--native,
  .samita-static-content .samita-inline-cta--native .wp-block-button,
  .samita-static-content .samita-inline-cta--native .wp-block-button__link {
    width: 100%;
    max-width: 100%;
  }
  .samita-static-content .samita-inline-cta--native .wp-block-button__link {
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
  }
  .samita-static-content .samita-contact-phone--native {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }
  .samita-static-content .samita-contact-phone__number a {
    font-size: 27px;
  }
}
.samita-static-content .samita-document-download--native:hover {
  border-color: var(--samita-orange-soft);
  background: var(--samita-ivory-2);
  transform: translateY(-2px);
}
.samita-static-content .samita-document-download--pending:hover {
  border-color: var(--samita-line);
  background: var(--samita-ivory-2);
  transform: none;
}
.samita-static-content .samita-document-download--native .samita-document-download__arrow {
  margin: 0 0 0 auto !important;
}
.samita-static-content .samita-document-download--native .samita-document-download__arrow a {
  color: var(--samita-orange-dark);
  text-decoration: none;
}
/* Keep the fixed-page service cards fully clickable like the original shortcode cards. */
.samita-static-content .samita-service-card--native {
  position: relative;
}
.samita-static-content .samita-service-card--native .samita-service-card__more .samita-more::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}
.samita-static-content .samita-service-card--native .samita-service-card__more .samita-more {
  position: relative;
  z-index: 3;
}

/* ==========================================================
   v5.0.1 HOTFIX — Gutenberg Group inner-container compatibility
   Restore the approved v4.8 layout without reverting native blocks.
   Some WP/TCD rendering paths insert .wp-block-group__inner-container,
   so grid/flex must be applied to that inner wrapper as well.
   ========================================================== */

/* Never let the legacy Group inner wrapper introduce a narrower content width. */
.samita-static-content .samita-service-grid--native > .wp-block-group__inner-container,
.samita-static-content .samita-service-grid__items--native > .wp-block-group__inner-container,
.samita-static-content .samita-service-specs__heading > .wp-block-group__inner-container,
.samita-static-content .samita-service-specs__list > .wp-block-group__inner-container,
.samita-static-content .samita-photo-gallery--native > .wp-block-group__inner-container,
.samita-static-content .samita-floor-maps--native > .wp-block-group__inner-container,
.samita-static-content .samita-floor-map-card__actions > .wp-block-group__inner-container,
.samita-static-content .samita-documents__grid > .wp-block-group__inner-container,
.samita-static-content .samita-document-grid > .wp-block-group__inner-container,
.samita-static-content .samita-document-download--native > .wp-block-group__inner-container,
.samita-static-content .samita-contact-phone--native > .wp-block-group__inner-container {
  width: 100%;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box;
}

/* SERVICE fixed page: approved 3-card layout on desktop. */
.samita-static-content .samita-service-grid__items--native > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Service overview: preserve the compact horizontal facts layout. */
.samita-static-content .samita-service-specs__heading > .wp-block-group__inner-container {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.samita-static-content .samita-service-specs__list > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

/* Service photos: 2 across. Facility photos: 3 across. */
.samita-static-content .samita-photo-gallery--native > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-group__inner-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Floor maps: intentionally smaller, centered cards in a 2-column layout. */
.samita-static-content .samita-floor-maps--native > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.samita-static-content .samita-floor-map-card--native {
  width: 100%;
  max-width: 365px;
  justify-self: center;
}
.samita-static-content .samita-floor-map-card__actions > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}

/* Price/download cards and disclosure cards: approved 2-column grid. */
.samita-static-content .samita-documents__grid > .wp-block-group__inner-container,
.samita-static-content .samita-document-grid > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.samita-static-content .samita-document-grid > .wp-block-group__inner-container {
  gap: 18px;
}

/* PDF card internals: badge | text | arrow, not a vertical stack. */
.samita-static-content .samita-document-download--native > .wp-block-group__inner-container {
  display: flex;
  align-items: center;
  gap: 17px;
}
.samita-static-content .samita-document-download--native .samita-document-download__text {
  flex: 1 1 auto;
  min-width: 0;
}
.samita-static-content .samita-document-download--native .samita-document-download__arrow {
  flex: 0 0 auto;
  margin-left: auto !important;
}

/* Contact telephone box: label | number | hours. */
.samita-static-content .samita-contact-phone--native > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px 28px;
  align-items: center;
}

/* Keep native service-card body spacing working through legacy inner wrappers. */
.samita-static-content .samita-service-card--native .samita-service-card__body > .wp-block-group__inner-container {
  min-height: inherit;
}
.samita-static-content .samita-service-card--native .samita-service-card__body > .wp-block-group__inner-container > h3 {
  margin: 0 !important;
}
.samita-static-content .samita-service-card--native .samita-service-card__body > .wp-block-group__inner-container > p:not(.samita-service-card__en):not(.samita-service-card__more) {
  margin: 18px 0 0 !important;
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  .samita-static-content .samita-service-grid__items--native > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-group__inner-container > .samita-photo-gallery__item:first-child {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .samita-static-content .samita-service-grid__items--native > .wp-block-group__inner-container,
  .samita-static-content .samita-service-specs__list > .wp-block-group__inner-container,
  .samita-static-content .samita-photo-gallery--native > .wp-block-group__inner-container,
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-group__inner-container,
  .samita-static-content .samita-floor-maps--native > .wp-block-group__inner-container,
  .samita-static-content .samita-documents__grid > .wp-block-group__inner-container,
  .samita-static-content .samita-document-grid > .wp-block-group__inner-container {
    grid-template-columns: minmax(0, 1fr);
  }
  .samita-static-content .samita-service-grid__items--native > .wp-block-group__inner-container {
    gap: 18px;
  }
  .samita-static-content .samita-photo-gallery--native > .wp-block-group__inner-container,
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native > .wp-block-group__inner-container {
    gap: 18px;
  }
  .samita-static-content .samita-floor-map-card--native {
    max-width: none;
  }
  .samita-static-content .samita-contact-phone--native > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }
}

/* ==========================================================
   v5.0.2 EMERGENCY RESTORE — approved v4.8 layout geometry
   The block conversion remains editable, but frontend geometry must match
   the approved pre-v5.0 design: widths, centering, columns and hit areas.
   ========================================================== */

/* Core Group compatibility: the Samita presentation classes live on the
   outer Group.  If WordPress/TCD inserts a legacy inner container, make it
   transparent to layout so the original component CSS sees the real items. */
.samita-static-content .samita-service-grid--native > .wp-block-group__inner-container,
.samita-static-content .samita-service-grid--native .samita-custom-inner > .wp-block-group__inner-container,
.samita-static-content .samita-service-grid__items--native > .wp-block-group__inner-container,
.samita-static-content .samita-service-card--native > .wp-block-group__inner-container,
.samita-static-content .samita-service-card__body > .wp-block-group__inner-container,
.samita-static-content .samita-service-specs--native > .wp-block-group__inner-container,
.samita-static-content .samita-service-specs__heading > .wp-block-group__inner-container,
.samita-static-content .samita-service-specs__list > .wp-block-group__inner-container,
.samita-static-content .samita-service-specs__item > .wp-block-group__inner-container,
.samita-static-content .samita-photo-gallery--native > .wp-block-group__inner-container,
.samita-static-content .samita-floor-maps--native > .wp-block-group__inner-container,
.samita-static-content .samita-floor-map-card--native > .wp-block-group__inner-container,
.samita-static-content .samita-floor-map-card__actions > .wp-block-group__inner-container,
.samita-static-content .samita-documents--native > .wp-block-group__inner-container,
.samita-static-content .samita-documents__section > .wp-block-group__inner-container,
.samita-static-content .samita-documents__grid > .wp-block-group__inner-container,
.samita-static-content .samita-document-download--native > .wp-block-group__inner-container,
.samita-static-content .samita-document-download__text > .wp-block-group__inner-container,
.samita-static-content .samita-disclosure-sections--native > .wp-block-group__inner-container,
.samita-static-content .samita-disclosure-section > .wp-block-group__inner-container,
.samita-static-content .samita-document-grid > .wp-block-group__inner-container,
.samita-static-content .samita-disclosure-card > .wp-block-group__inner-container,
.samita-static-content .samita-contact-phone--native > .wp-block-group__inner-container {
  display: contents !important;
}

/* SERVICE entry cards — identical geometry for /services/ and the service
   block embedded in /about/. */
.samita-static-content .samita-service-grid--native {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.samita-static-content .samita-service-grid--native .samita-custom-inner {
  width: 100% !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.samita-static-content .samita-service-grid__items--native {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}
.samita-static-content .samita-service-card--native {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  position: relative !important;
  cursor: pointer;
}
.samita-static-content .samita-service-card--native .samita-service-card__body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.samita-static-content .samita-service-card--native .samita-service-card__more {
  margin-top: auto !important;
}
/* Stretched-link: the whole card, including image and whitespace, is a link
   just like the TOP service cards.  The link itself must not become the
   containing block, otherwise the pseudo-element only covers the text. */
.samita-static-content .samita-service-card--native .samita-service-card__more .samita-more {
  position: static !important;
}
.samita-static-content .samita-service-card--native .samita-service-card__more .samita-more::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 20 !important;
  cursor: pointer;
}

/* Service overview — keep the currently successful card/fact layout. */
.samita-static-content .samita-service-specs__heading {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.samita-static-content .samita-service-specs__list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
}

/* Real photographs — restore approved centered width and column counts. */
.samita-static-content .samita-photo-gallery--native {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 26px auto 52px !important;
  align-items: stretch !important;
}
.samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.samita-static-content .samita-photo-gallery--native .samita-photo-gallery__item {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

/* Floor maps — two columns, cards deliberately small and centered. */
.samita-static-content .samita-floor-maps--native {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 28px auto 48px !important;
  align-items: start !important;
}
.samita-static-content .samita-floor-map-card--native {
  width: 100% !important;
  max-width: 365px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center !important;
}
.samita-static-content .samita-floor-map-card__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 6px 12px !important;
}

/* Guide / price PDFs — restore the approved two-column full-content grid. */
.samita-static-content .samita-documents--native,
.samita-static-content .samita-documents__section {
  width: 100% !important;
  max-width: 100% !important;
}
.samita-static-content .samita-documents__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.samita-static-content .samita-document-download--native {
  display: flex !important;
  align-items: center !important;
  gap: 17px !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 96px !important;
  box-sizing: border-box !important;
  position: relative !important;
}
.samita-static-content .samita-document-download--native .samita-document-download__text {
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.samita-static-content .samita-document-download--native .samita-document-download__arrow {
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
/* The old shortcode made the entire PDF card clickable. Restore that hit area
   for cards that actually have a PDF link. */
.samita-static-content .samita-document-download--native:not(.samita-document-download--pending) .samita-document-download__link a {
  position: static !important;
}
.samita-static-content .samita-document-download--native:not(.samita-document-download--pending) .samita-document-download__link a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 12;
}

/* Disclosure — two equal centered columns, never a narrow left-hand stack. */
.samita-static-content .samita-disclosure-sections--native,
.samita-static-content .samita-disclosure-section {
  width: 100% !important;
  max-width: 100% !important;
}
.samita-static-content .samita-document-grid,
.samita-static-content .samita-disclosure-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.samita-static-content .samita-disclosure-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Recruitment tables: original v4.8 used the content width.  The current
   visual balance benefits from the subtle inset the user remembered; keep it
   modest and centered rather than turning it into a narrow table. */
@media screen and (min-width: 768px) {
  .samita-static-content figure.samita-recruit-table {
    width: min(100%, 1000px) !important;
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Contact telephone row. */
.samita-static-content .samita-contact-phone--native {
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  gap: 18px 28px !important;
  align-items: center !important;
  width: 100% !important;
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  .samita-static-content .samita-service-grid__items--native {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native .samita-photo-gallery__item:first-child {
    grid-column: 1 / -1 !important;
  }
}

@media screen and (max-width: 767px) {
  .samita-static-content .samita-service-grid__items--native,
  .samita-static-content .samita-service-specs__list,
  .samita-static-content .samita-photo-gallery--native,
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native,
  .samita-static-content .samita-floor-maps--native,
  .samita-static-content .samita-documents__grid,
  .samita-static-content .samita-document-grid,
  .samita-static-content .samita-disclosure-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .samita-static-content .samita-photo-gallery--facility.samita-photo-gallery--native .samita-photo-gallery__item:first-child {
    grid-column: auto !important;
  }
  .samita-static-content .samita-floor-map-card--native {
    max-width: none !important;
  }
  .samita-static-content .samita-contact-phone--native {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    text-align: center !important;
  }
}

/* ==========================================================
   v5.0.3 — Service-card breathing room inside ivory/gray panels
   Keep the approved panel width/background, but prevent the three cards
   from visually touching the panel edges on desktop and in /about/.
   ========================================================== */
@media screen and (min-width: 992px) {
  .samita-static-content .samita-service-grid__items--native {
    width: calc(100% - 80px) !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 24px !important;
  }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
  .samita-static-content .samita-service-grid__items--native {
    width: calc(100% - 48px) !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 22px !important;
  }
}

@media screen and (max-width: 767px) {
  .samita-static-content .samita-service-grid__items--native {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 18px !important;
  }
}


/* ==========================================================
   v5.2 — Service detail photos: remove 4:3 letterbox space
   Preserve the whole source photo and its natural aspect ratio.
   ========================================================== */
.samita-static-content .samita-photo-gallery--service.samita-photo-gallery--native {
  align-items: start !important;
}
.samita-static-content .samita-photo-gallery--service.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item {
  margin: 0 !important;
  padding: 0 !important;
  align-self: start !important;
  overflow: hidden !important;
  background: #fff !important;
}
.samita-static-content .samita-photo-gallery--service.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > img,
.samita-static-content .samita-photo-gallery--service.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > a {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
}
.samita-static-content .samita-photo-gallery--service.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > img,
.samita-static-content .samita-photo-gallery--service.samita-photo-gallery--native > .wp-block-image.samita-photo-gallery__item > a > img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
}
.samita-static-content .samita-photo-gallery--service.samita-photo-gallery--native .wp-element-caption {
  margin: 0 !important;
  padding: 9px 12px 10px !important;
}

/* v5.2 fallback for any service gallery that still uses the pre-v5.0 shortcode markup. */
.samita-static-content .samita-photo-gallery--service .samita-photo-gallery__media {
  aspect-ratio: auto !important;
  height: auto !important;
  background: #fff !important;
}
.samita-static-content .samita-photo-gallery--service .samita-photo-gallery__media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 !important;
}


/* ==========================================================
   v5.4 — Contact / recruitment form polish
   - keep the telephone guidance box inside the content width
   - normalize CF7 controls for both general and recruitment forms
   - style the required privacy-policy acceptance block
   ========================================================== */

/* The native telephone row is width:100% and also has padding/border.
   Without border-box it becomes wider than the page content and protrudes right. */
.samita-static-content .samita-contact-phone,
.samita-static-content .samita-contact-phone--native {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

.samita-contact-form,
.samita-contact-form .wpcf7,
.samita-contact-form .wpcf7-form,
.samita-contact-form .wpcf7-form-control-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.samita-contact-form .wpcf7-form-control-wrap {
  display: block;
}

.samita-contact-form .wpcf7-form > p {
  margin: 0 0 28px;
}

.samita-contact-form .wpcf7-form label,
.samita-contact-form .samita-form-label {
  display: block;
  margin: 0 0 8px;
  color: var(--samita-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.samita-contact-form .required {
  display: inline-block;
  margin-left: 6px;
  color: var(--samita-orange-dark);
  font-size: 12px;
  font-weight: 700;
  vertical-align: .08em;
}

.samita-contact-form input[type="text"],
.samita-contact-form input[type="email"],
.samita-contact-form input[type="tel"],
.samita-contact-form input[type="url"],
.samita-contact-form input[type="number"],
.samita-contact-form select,
.samita-contact-form textarea {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 9px;
  padding: 14px 16px;
  border: 1px solid var(--samita-line);
  border-radius: 8px;
  background: #fff;
  color: var(--samita-text);
  font-size: 16px;
  line-height: 1.7;
}

.samita-contact-form input[type="number"] {
  min-height: 52px;
}

.samita-contact-form select {
  min-height: 52px;
  appearance: auto;
}

.samita-contact-form textarea {
  min-height: 200px;
  resize: vertical;
}

.samita-contact-form input[type="text"]:focus,
.samita-contact-form input[type="email"]:focus,
.samita-contact-form input[type="tel"]:focus,
.samita-contact-form input[type="url"]:focus,
.samita-contact-form input[type="number"]:focus,
.samita-contact-form select:focus,
.samita-contact-form textarea:focus {
  outline: none;
  border-color: var(--samita-orange);
  box-shadow: 0 0 0 2px rgba(198, 109, 47, .08);
}

/* Gender / acceptance controls. */
.samita-contact-form .wpcf7-list-item {
  margin: 0 18px 6px 0;
}

.samita-contact-form .wpcf7-checkbox .wpcf7-list-item label,
.samita-contact-form .wpcf7-acceptance .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.samita-contact-form input[type="checkbox"],
.samita-contact-form input[type="radio"] {
  width: auto !important;
  min-width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--samita-orange);
}

/* Required privacy-policy acknowledgement immediately before submit. */
.samita-contact-form .samita-form-privacy {
  margin: 34px 0 28px;
  padding: 18px 22px;
  border: 1px solid var(--samita-line);
  border-radius: 10px;
  background: var(--samita-ivory-2);
  text-align: center;
  line-height: 1.8;
  box-sizing: border-box;
}

.samita-contact-form .samita-form-privacy .wpcf7-list-item {
  margin: 0;
}

.samita-contact-form .samita-form-privacy a {
  color: var(--samita-orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.samita-contact-form .samita-form-submit {
  margin: 30px 0 0 !important;
  text-align: center;
}

.samita-contact-form .samita-form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 56px;
  margin: 0 auto;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--samita-orange);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.samita-contact-form .samita-form-submit input[type="submit"]:hover {
  background: var(--samita-orange-dark);
}

.samita-contact-form .wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 8px;
  line-height: 1.7;
}

@media screen and (max-width: 767px) {
  .samita-contact-form .wpcf7-form > p {
    margin-bottom: 22px;
  }

  .samita-contact-form input[type="text"],
  .samita-contact-form input[type="email"],
  .samita-contact-form input[type="tel"],
  .samita-contact-form input[type="url"],
  .samita-contact-form input[type="number"],
  .samita-contact-form select,
  .samita-contact-form textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  .samita-contact-form .samita-form-privacy {
    padding: 16px;
    text-align: left;
  }

  .samita-contact-form .samita-form-submit input[type="submit"] {
    width: min(100%, 280px);
  }
}

/* ==========================================================
   v5.4.1 — CF7 width hotfix + privacy acceptance visibility
   Root cause: SOLARIS gives .wpcf7 form horizontal margins. v5.4 also set
   the form itself to width:100%, producing width + margins and overflow.
   Keep the outer CF7 box at 100%, but let the inner form remain auto width.
   ========================================================== */
.samita-contact-form .wpcf7 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.samita-contact-form .wpcf7 form,
.samita-contact-form .wpcf7-form {
  width: auto !important;
  max-width: none !important;
  margin: 1.5em 1.5em 0 !important;
  box-sizing: border-box !important;
}

.samita-contact-form .wpcf7-form-control-wrap {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.samita-contact-form input[type="text"],
.samita-contact-form input[type="email"],
.samita-contact-form input[type="tel"],
.samita-contact-form input[type="url"],
.samita-contact-form input[type="number"],
.samita-contact-form select,
.samita-contact-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.samita-contact-form .samita-form-privacy {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.samita-contact-form .samita-form-privacy .wpcf7-form-control-wrap,
.samita-contact-form .samita-form-privacy .wpcf7-acceptance {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.samita-contact-form .samita-form-privacy .wpcf7-list-item {
  display: inline-block !important;
  margin: 0 !important;
}

@media screen and (max-width: 767px) {
  .samita-contact-form .wpcf7 form,
  .samita-contact-form .wpcf7-form {
    margin: 1.2em 1.2em 0 !important;
  }
}


/* ==========================================================
   v5.4.2 — Contact form visual refinement
   - preserve the approved privacy-policy box
   - add breathing room below the submit button
   - improve labels / required badges / controls / gender row
   ========================================================== */

/* Keep each normal field visually grouped. */
.samita-contact-form .wpcf7-form > p:not(.samita-form-privacy):not(.samita-form-submit) {
  margin: 0 0 30px !important;
}

/* Label hierarchy. */
.samita-contact-form .wpcf7-form > p > label,
.samita-contact-form .samita-form-label {
  display: block;
  margin: 0 0 9px !important;
  color: #3f3a36;
  font-weight: 600;
  line-height: 1.7;
}

/* Small pill-style required badge. */
.samita-contact-form .required {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--samita-orange);
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1.4;
  vertical-align: 1px;
}

/* Softer form controls while retaining the existing site palette. */
.samita-contact-form input[type="text"],
.samita-contact-form input[type="email"],
.samita-contact-form input[type="tel"],
.samita-contact-form input[type="url"],
.samita-contact-form input[type="number"],
.samita-contact-form select,
.samita-contact-form textarea {
  border: 1px solid #ddd7d0 !important;
  border-radius: 5px !important;
  background: #fffdfb !important;
  color: #3f3a36 !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.samita-contact-form input[type="text"]:focus,
.samita-contact-form input[type="email"]:focus,
.samita-contact-form input[type="tel"]:focus,
.samita-contact-form input[type="url"]:focus,
.samita-contact-form input[type="number"]:focus,
.samita-contact-form select:focus,
.samita-contact-form textarea:focus {
  outline: none !important;
  border-color: var(--samita-orange) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(198,109,47,.09) !important;
}

/* Gender choices: keep simple, but align horizontally with comfortable spacing. */
.samita-contact-form .wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 4px;
}

.samita-contact-form .wpcf7-checkbox .wpcf7-list-item {
  margin: 0 !important;
}

.samita-contact-form .wpcf7-checkbox .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 !important;
  font-weight: 400;
}

/* Privacy block is already approved: keep the visual treatment, only normalize spacing. */
.samita-contact-form .samita-form-privacy {
  margin: 36px 0 0 !important;
}

/* The submit button previously sat too close to the bottom border. */
.samita-contact-form .samita-form-submit {
  margin: 30px 0 0 !important;
  padding: 0 0 36px !important;
  text-align: center;
}

.samita-contact-form .samita-form-submit input[type="submit"] {
  min-width: 190px;
  transition: background-color .2s ease, opacity .2s ease, transform .2s ease;
}

.samita-contact-form .samita-form-submit input[type="submit"]:hover {
  opacity: .88;
  transform: translateY(-1px);
}

@media screen and (max-width: 767px) {
  .samita-contact-form .wpcf7-form > p:not(.samita-form-privacy):not(.samita-form-submit) {
    margin-bottom: 24px !important;
  }

  .samita-contact-form .samita-form-privacy {
    margin-top: 30px !important;
  }

  .samita-contact-form .samita-form-submit {
    margin-top: 26px !important;
    padding-bottom: 30px !important;
  }
}

/* ==========================================================
   v5.4.5 — Guide/price PDF grid after separate applications
   Tokuyou and Short Stay now have exactly three documents each.
   Give those sections a balanced three-card row on desktop.
   Day Service keeps its four-card 2x2 layout; its guide remains pending.
   ========================================================== */
@media screen and (min-width: 992px) {
  .samita-static-content .samita-documents__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .samita-static-content .samita-documents__grid--three {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}



/* ==========================================================
   v5.4.6 — Unify public-disclosure PDF card interaction
   Match the approved Guide/Price cards without changing layout.
   Linked disclosure cards are fully clickable; pending cards stay inert.
   ========================================================== */
.samita-static-content .samita-disclosure-card {
  position: relative;
  transition:
    border-color .2s ease,
    background-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

/* Stretch the existing PDF link across the entire card. */
.samita-static-content .samita-disclosure-card a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 16px;
}

/* Only cards that actually contain a PDF link behave like buttons. */
.samita-static-content .samita-disclosure-card:has(a) {
  cursor: pointer;
}

.samita-static-content .samita-disclosure-card:has(a):hover {
  border-color: var(--samita-orange-soft);
  background: var(--samita-ivory-2);
  box-shadow: 0 8px 24px rgba(70,50,38,.04);
  transform: translateY(-2px);
}

.samita-static-content .samita-disclosure-card:has(a):focus-within {
  border-color: var(--samita-orange-soft);
  background: var(--samita-ivory-2);
  box-shadow: 0 0 0 3px rgba(198,109,47,.09);
}

/* Keep the visible link text above the stretched click target for clarity. */
.samita-static-content .samita-disclosure-card a {
  position: relative;
  z-index: 3;
}

/* Pending documents remain visually static and never suggest clickability. */
.samita-static-content .samita-disclosure-card:not(:has(a)) {
  cursor: default;
}
.samita-static-content .samita-disclosure-card:not(:has(a)):hover {
  border-color: var(--samita-line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(70,50,38,.04);
  transform: none;
}


/* ==========================================================
   v5.4.8 — Disclosure full-card click target fix
   v5.4.7 regenerated the disclosure HTML. The existing overlay pseudo
   element must be positioned against the card, not the inline link itself.
   ========================================================== */
.samita-static-content .samita-disclosure-card {
  position: relative !important;
}

/* Critical fix: keep the anchor unpositioned so its absolute ::after uses
   the positioned card as its containing block and covers the whole card. */
.samita-static-content .samita-disclosure-card a {
  position: static !important;
}

.samita-static-content .samita-disclosure-card a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 16px;
  cursor: pointer;
}

/* Keep linked cards visually consistent with the price/download cards. */
.samita-static-content .samita-disclosure-card:has(a) {
  cursor: pointer;
}

.samita-static-content .samita-disclosure-card:has(a):hover {
  border-color: var(--samita-orange-soft);
  background: var(--samita-ivory-2);
  box-shadow: 0 8px 24px rgba(70,50,38,.04);
  transform: translateY(-2px);
}

.samita-static-content .samita-disclosure-card:has(a):focus-within {
  border-color: var(--samita-orange-soft);
  background: var(--samita-ivory-2);
  box-shadow: 0 0 0 3px rgba(198,109,47,.09);
}

/* Pending cards remain inert. */
.samita-static-content .samita-disclosure-card:not(:has(a)) {
  cursor: default;
}
.samita-static-content .samita-disclosure-card:not(:has(a)):hover {
  border-color: var(--samita-line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(70,50,38,.04);
  transform: none;
}

/* ==========================================================
   v5.4.9 — Contact Form 7 success modal
   Only Samita contact-form wrappers are affected.
   Validation / send-error messages remain standard CF7 output.
   ========================================================== */
html.samita-cf7-modal-open,
body.samita-cf7-modal-open {
  overflow: hidden !important;
}

/* Hide only CF7's inline SUCCESS response when the modal JS is active.
   Validation and send-error responses remain visible as normal. */
.samita-cf7-modal-enabled .samita-contact-form .wpcf7 form.sent .wpcf7-response-output {
  display: none !important;
}

.samita-cf7-modal[hidden] {
  display: none !important;
}

.samita-cf7-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.samita-cf7-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(52, 43, 37, .58);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.samita-cf7-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 46px 44px 42px;
  border: 1px solid var(--samita-line);
  border-radius: 18px;
  background: var(--samita-white);
  box-shadow: 0 24px 70px rgba(45, 34, 27, .22);
  text-align: center;
}

.samita-cf7-modal__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--samita-ivory);
  color: var(--samita-orange);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.samita-cf7-modal__title {
  margin: 0 0 16px !important;
  color: var(--samita-text) !important;
  font-size: 26px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  letter-spacing: .06em;
}

.samita-cf7-modal__message {
  margin: 0 !important;
  color: var(--samita-muted);
  font-size: 15px;
  line-height: 2;
}

.samita-cf7-modal__close {
  min-width: 150px;
  margin: 30px auto 0;
  padding: 13px 28px;
  border: 1px solid var(--samita-orange);
  border-radius: 999px;
  background: var(--samita-orange);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.samita-cf7-modal__close:hover,
.samita-cf7-modal__close:focus-visible {
  border-color: var(--samita-orange-dark);
  background: var(--samita-orange-dark);
  transform: translateY(-1px);
  outline: none;
}

.samita-cf7-modal__close:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 100, 50, .18);
}

@media screen and (max-width: 767px) {
  .samita-cf7-modal {
    padding: 18px;
  }

  .samita-cf7-modal__dialog {
    padding: 38px 24px 34px;
    border-radius: 14px;
  }

  .samita-cf7-modal__mark {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    font-size: 25px;
  }

  .samita-cf7-modal__title {
    font-size: 22px !important;
  }

  .samita-cf7-modal__message {
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }

  .samita-cf7-modal__close {
    width: 100%;
    max-width: 240px;
    margin-top: 26px;
  }
}

