/* ==========================================================================
   Corporate site – common (PC + SP)
   ========================================================================== */
html:has(.corporate-site) {
  --fs-scale: 1;
  font-size: calc(16px * var(--fs-scale));
}

.corporate-site {
  --c-primary: #398d78;
  --c-primary-dark: #2c7a65;
  --c-magenta: #9c144b;
  --c-text: #333;
  --c-muted: #666;
  --c-bg-mint: #e8f0ec;
  --c-bg-beige: #f7f5f0;
  --c-border: #e5e1d8;
  --c-max: 1200px;
  --c-header-h: 140px;
  --c-font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --c-font-en: "Poppins", "Noto Sans JP", sans-serif;
  --c-font-weight-bold: 700;
  --c-font-weight-main: 400;

  margin: 0;
  color: var(--c-text);
  font-family: var(--c-font);
  font-size: 1rem;
  font-weight: var(--c-font-weight-main);
  line-height: 1.75;
  letter-spacing: 0.08em;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}

.corporate-site *,
.corporate-site *::before,
.corporate-site *::after {
  box-sizing: border-box;
}

.corporate-site img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.corporate-site a {
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.corporate-site a:hover {
  color: var(--c-primary-dark);
}

.corporate-site ul,
.corporate-site ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.corporate-site h1,
.corporate-site h2,
.corporate-site h3,
.corporate-site p {
  margin-top: 0;
}

.corporate-site button {
  font-family: inherit;
  cursor: pointer;
}

.corporate-site.c-nav-open {
  overflow: hidden;
}

.corporate-site.c-nav-open .c-header {
  z-index: 1200;
}

.c-container {
  width: 100%;
  max-width: var(--c-max);
  margin: 0 auto;
}

.c-main {
  background: #f6f6f1;
  min-height: 40vh;
}

/* タイトル下線（お知らせ・採用情報など共通） */
.c-title-line {
  display: inline-block;
  color: var(--c-primary);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--c-primary);
  line-height: 1.3;
}

.c-title-line--light {
  color: #fff;
  border-bottom-color: #fff;
}

.c-title-line--center {
  display: table;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons — 幅・高さはヘッダー「お問い合わせ」基準 */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 270px;
  height: 65px;
  min-height: 65px;
  padding: 0 22px;
  font-size: calc(16px * var(--fs-scale));
  border: 1px solid transparent;
  line-height: 1.3;
  box-sizing: border-box;
  box-shadow: 9px 9px 0 0 #d7e8e4;
}

.corporate-site a.c-btn {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.c-btn--primary {
  background: var(--c-primary);
  color: #fff !important;
  border-color: var(--c-primary);
}

.c-btn--outline {
  background: transparent;
  color: var(--c-primary) !important;
  border-color: var(--c-primary);
}

.c-btn--light {
  background: #fff;
  color: var(--c-primary) !important;
}

/* 影付き: 押し込み（色は変えない） */
.c-btn:hover {
  transform: translate(9px, 9px);
  box-shadow: none;
}

/* 影なし: 色反転（押し込みなし） */
.c-header__cta:hover,
.c-sp-nav__cta:hover,
.c-ftype-card__btn:hover {
  transform: none;
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary) !important;
}

.c-footer__recruit:hover,
.r-footer__corp-btn:hover {
  transform: none;
  background: var(--c-primary);
  color: #fff !important;
}

.c-btn__arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}

/* ＞型シェブロン */
.c-btn__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: translate(-65%, -50%) rotate(-45deg);
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.c-btn__arrow--dark {
  background: var(--c-primary);
}

.c-btn__arrow--dark::after {
  border-color: #fff;
}

.c-header__cta:hover .c-btn__arrow,
.c-sp-nav__cta:hover .c-btn__arrow,
.c-ftype-card__btn:hover .c-btn__arrow {
  background: var(--c-primary);
}

.c-header__cta:hover .c-btn__arrow::after,
.c-sp-nav__cta:hover .c-btn__arrow::after,
.c-ftype-card__btn:hover .c-btn__arrow::after {
  border-color: #fff;
}

/* Header */
.c-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--c-primary);
  height: var(--c-header-h);
}

/* ヘッダー・フッターの # リンク着地が固定ヘッダーに隠れないようにする */
.corporate-site :is(#about, #action) {
  scroll-margin-top: var(--c-header-h);
}

.recruit-site :is(#message, #jobs, #interview, [id^="job-"]) {
  scroll-margin-top: var(--recruit-header-h, var(--c-header-h));
}

.c-header__inner {
  padding: 38px 40px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.c-header__logo img {
  display: block;
  width: auto;
  height: 62px;
  max-height: none;
  object-fit: contain;
}

.c-header__logo-fallback {
  font-family: var(--c-font-en);
  font-weight: var(--c-font-weight-bold);
  color: var(--c-primary);
}

.c-header__nav {
  flex: 1;
  height: 100%;
}

.c-header__menu {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 1em;
  height: 100%;
}

.c-header__menu > li {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.c-header__menu > li > a,
.c-header__parent {
  color: var(--c-text);
  font-size: calc(18px * var(--fs-scale));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px;
  height: 100%;
  position: relative;
}

.c-header__parent {
  margin: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.c-header__menu > li > a:hover,
.c-header__menu > li > .c-header__parent:hover {
  color: var(--c-text);
}

/* 項目下の緑線 2px（ヘッダー下縁 1px に重ねる）ホバーで中央から左右へ描画 */
.c-header__menu > li > a::after,
.c-header__menu > li > .c-header__parent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--c-primary);
  z-index: 2;
  pointer-events: none;
  transform-origin: center top;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.c-header__menu > li > a:hover::after,
.c-header__menu > li > .c-header__parent:hover::after,
.c-header__has-sub.is-open > .c-header__parent::after {
  transform: scaleX(1);
}

/* 緑●＋白の＞型下矢印 */
.c-header__chev {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--c-primary);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.c-header__chev::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translate(-50%, -65%) rotate(45deg);
  box-sizing: border-box;
}

.c-header__has-sub.is-open > .c-header__parent .c-header__chev {
  transform: rotate(180deg);
}

.c-header__has-sub {
  position: relative;
}

.c-header__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: #fff;
  border: 1px solid var(--c-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 12px 0;
  z-index: 20;
}

/* ドロップダウンまでのホバー切れ防止 */
.c-header__sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -4px;
  height: 4px;
}

.c-header__has-sub:hover .c-header__sub,
.c-header__has-sub.is-open .c-header__sub {
  display: block;
}

.c-header__sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  color: var(--c-text);
  font-size: calc(13px * var(--fs-scale));
}

.c-header__sub a:hover {
  background: var(--c-bg-mint);
  color: var(--c-primary);
}

/* フル幅サブバー（私たちについて / 施設紹介） */
.c-header__has-sub--mega {
  position: static;
}

/* フル幅バーへマウス移動時のホバー切れ防止ブリッジ */
.c-header__has-sub--mega:hover::before,
.c-header__has-sub--mega.is-open::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 140px;
  z-index: 19;
}

.c-header__sub--bar {
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 0;
  border-top: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.c-header__sub--bar::before,
.c-header__sub--bar::after {
  display: none;
  content: none;
}

/* ドロップシャドウ本体は header 外（乗算を MV に効かせる） */
.c-header-sub-shadow {
  display: none;
  position: fixed;
  left: 0;
  top: 225px; /* header 140 + 1段 85。JS が実寸で上書き */
  width: 100%;
  height: 12px;
  background: #d7e8e4;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 5;
}

.c-header-sub-shadow.is-on,
html:has(.c-header__has-sub--mega.is-open) .c-header-sub-shadow,
html:has(.c-header__has-sub--mega:hover) .c-header-sub-shadow {
  display: block;
}

.c-header__has-sub--mega:hover .c-header__sub--bar,
.c-header__has-sub--mega.is-open .c-header__sub--bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  column-gap: 24px;
  padding-top: 0;
  padding-bottom: 0;
  padding-inline: max(24px, calc((100% - 1200px) / 2 + 24px));
  box-sizing: border-box;
}

.c-header__sub--bar > li {
  list-style: none;
  width: auto;
  min-width: 0;
}

.c-header__sub--bar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: 85px;
  padding: 0 4px;
  font-size: calc(16px * var(--fs-scale));
  color: var(--c-text);
  background: transparent;
  border-bottom: 1px solid #c5ddd6;
  box-sizing: border-box;
  white-space: nowrap;
}

.c-header__sub--bar a:hover {
  background: transparent;
  color: var(--c-primary);
  border-bottom-color: var(--c-primary);
}

/* 緑○＋＞型右矢印 */
.c-header__sub-arrow {
  display: inline-block;
  width: 22px;
  height: auto;
  aspect-ratio: 1/1;
  border: 1px solid var(--c-primary);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background: #fff;
}

.c-header__sub-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.4em;
  height: auto;
  aspect-ratio: 1/1;
  border-right: 1.5px solid var(--c-primary);
  border-bottom: 1.5px solid var(--c-primary);
  transform: translate(-65%, -50%) rotate(-45deg);
  box-sizing: border-box;
}

.c-header__cta {
  flex-shrink: 0;
  box-shadow: none;
  width: min(270px, 16vw);
}

.c-header__cta span:first-of-type {
  margin-right: 1em;
}

.c-hamburger {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: var(--c-primary);
  border-radius: 4px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.c-hamburger__line {
  display: block;
  width: 30px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.corporate-site.c-nav-open .c-hamburger__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.corporate-site.c-nav-open .c-hamburger__line:nth-child(2) {
  opacity: 0;
}

.corporate-site.c-nav-open .c-hamburger__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SP overlay nav — full-width dropdown (採用サイトと同型) */
.c-sp-nav {
  --c-nav-line: #cfe3dc;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
  height: auto;
  max-height: 100%;
  background: #fff;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
  padding: 0 0 30px;
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}

.corporate-site.c-nav-open .c-sp-nav,
.c-sp-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.c-sp-nav__close {
  display: none;
}

.c-sp-nav__close-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.c-sp-nav__close-icon::before,
.c-sp-nav__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}

.c-sp-nav__close-icon::before {
  transform: rotate(45deg);
}

.c-sp-nav__close-icon::after {
  transform: rotate(-45deg);
}

.c-sp-nav__inner {
  padding-top: 72px;
}

.c-sp-nav__menu {
  margin: 0;
  border-top: 1px solid var(--c-nav-line);
}

.c-sp-nav__menu > li > a,
.c-sp-nav .c-header__parent {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 55px;
  padding: 16px 52px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-nav-line);
}

.c-sp-nav .c-header__parent {
  height: auto;
  gap: 0;
  position: relative;
}

.c-sp-nav__menu > li > a:hover,
.c-sp-nav .c-header__parent:hover {
  color: var(--c-primary);
}

.c-sp-nav .c-header__has-sub {
  position: static;
}

.c-sp-nav .c-header__parent .c-header__chev {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  transform: none;
}

.c-sp-nav .c-header__has-sub.is-open > .c-header__parent .c-header__chev {
  transform: rotate(180deg);
}

.c-sp-nav__sub {
  display: block;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 20px;
  padding-right: 20px;
  transition: max-height 0.35s ease;
}

.c-sp-nav .c-header__has-sub.is-open > .c-sp-nav__sub {
  max-height: 640px;
  padding-top: 8px;
  padding-bottom: 12px;
}

.c-sp-nav__sub a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 44px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-nav-line);
}

.c-sp-nav__sub a:hover {
  color: var(--c-primary);
}

.c-sp-nav__sub .c-header__sub-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 20px;
  margin-top: -10px;
  background: #fff;
  border-color: var(--c-primary);
  transition: none;
}

.c-sp-nav__sub .c-header__sub-arrow::after {
  border-color: var(--c-primary);
}

.c-sp-nav__cta {
  position: relative;
  display: flex;
  width: calc(100% - 104px);
  max-width: 540px;
  min-height: 65px;
  margin: 24px auto 0;
  padding: 12px 24px;
  font-size: calc(16px * var(--fs-scale));
  box-shadow: none;
}

.c-sp-nav__cta .c-btn__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.c-sp-nav__overlay {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.c-sp-nav__overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Contact */
.c-contact {
  background: var(--c-bg-mint);
  padding: 100px 0;
}

.home .c-contact {
  background: #d5e4dc;
}

.c-contact__title {
  text-align: center;
  font-size: clamp(calc(28px * var(--fs-scale)), 3vw, calc(40px * var(--fs-scale)));
  font-weight: var(--c-font-weight-main);
  color: var(--c-primary);
  margin-bottom: 40px;
}

.c-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.c-contact__box {
  padding: 36px 28px 40px;
  color: #fff;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.c-contact__box--tel {
  background: var(--c-primary-dark);
}

.c-contact__box--form {
  background: var(--c-primary);
}

.c-contact__box--line {
  background: #555;
}

.c-contact__label {
  font-size: calc(20px * var(--fs-scale));
  margin-bottom: 0;
}

.c-contact__tel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 0;
  line-height: 1;
}

.c-contact__tel-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(265deg) brightness(106%) contrast(103%);
}

.c-contact__tel a {
  color: #fff !important;
  font-family: var(--c-font-en);
  font-size: calc(35px * var(--fs-scale));
}

.c-contact__hours {margin-bottom: 0;}

.c-contact__btn {
  gap: 10px;
}

.c-contact__btn .c-header__sub-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.c-contact__btn .c-header__sub-arrow::after {
  width: 9px;
  height: 9px;
  border-right-width: 2px;
  border-bottom-width: 2px;
  transition: border-color 0.2s ease;
}

.c-contact__form-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.c-contact__btn--form {
  box-shadow: 9px 9px 0 0 #30806b;
}

.c-contact__form-btns .c-contact__btn--form:first-child {
  justify-content: flex-start;
  padding-left: 16px;
  padding-right: 48px;
  letter-spacing: 0.02em;
}

.c-contact__form-btns .c-contact__btn--form:first-child > span:first-child {
  white-space: nowrap;
}

.c-contact__btn--line {
  box-shadow: 9px 9px 0 0 #484d4c;
  justify-content: left;
  gap: 1.8rem;
}

.c-contact__line-icon {
  width: 39px;
  height: 28px;
  object-fit: contain;
}

/* Footer — Figma 3200px を 1/2（コンテンツ幅 1200） */
.c-pagetop {
  --c-pagetop-size: 220px;
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: var(--c-pagetop-size);
  height: calc(var(--c-pagetop-size) * 0.25);
  padding: 0;
  overflow: hidden;
  background: transparent;
  color: var(--c-primary);
  font-family: var(--c-font-en);
  font-size: calc(14px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
  line-height: 1;
}

.c-pagetop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--c-pagetop-size);
  height: var(--c-pagetop-size);
  border-radius: 50%;
  background: #f4f5f3;
  z-index: -1;
}

.c-pagetop__icon {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--c-primary);
  border-left: 2px solid var(--c-primary);
  transform: rotate(45deg);
}

.c-pagetop__label {
  display: block;
  line-height: 1.7;
}

.c-footer {
  position: relative;
  background: #f4f5f3;
  padding-top: 76px;
}

.c-footer__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 0;
  padding-bottom: 52px;
  align-items: start;
}

.c-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 24px;
}

.c-footer__brand-head {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: .5rem;
}

.c-footer__logo img {
  width: 47px;
  height: auto;
  display: block;
}

.c-footer__org {
  font-weight: var(--c-font-weight-main);
  font-size: calc(17px * var(--fs-scale));
  line-height: 1.4;
  color: var(--c-text);
  margin-bottom: 0;
}

.c-footer__org span {
  font-size: calc(25px * var(--fs-scale));
}

.c-footer__address {
  font-size: calc(16px * var(--fs-scale));
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

.c-footer__privacy {
  font-size: calc(14px * var(--fs-scale));
  margin: 1em 0 0 !important;
}

.c-footer__privacy a {
  color: #6b6b69;
  opacity: 0.8;
}

.c-footer__recruit {
  box-shadow: none;
  font-weight: var(--c-font-weight-main);
  width: 272px;
}

.c-footer__recruit-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(46%) sepia(39%) saturate(507%) hue-rotate(115deg) brightness(95%) contrast(94%);
}

.c-footer__recruit:hover .c-footer__recruit-icon {
  filter: brightness(0) invert(1);
}

.c-footer__nav {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.c-footer__cols {
  display: grid;
  grid-template-columns: 2.77fr 2.24fr 1.9fr;
  gap: 0 16px;
  align-items: start;
}

.c-footer__col-title {
  color: var(--c-primary);
  margin-bottom: 15px;
  font-size: calc(20px * var(--fs-scale));
  line-height: 1.2;
}

.c-footer__col ul li:not(:last-child) {
  margin-bottom: 1em;
}

.c-footer__col ul {
  list-style: none;
}

.c-footer__col a {
  display: block;
  color: var(--c-text);
  font-size: calc(16px * var(--fs-scale));
  padding: 0;
  line-height: 1.2;
}

.c-footer__social {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-end;
  margin-top: 4px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.c-footer__social-link {
  display: inline-flex;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--c-primary);
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.c-footer__social-link img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.c-footer__social-link:hover {
  background: #fff;
}

.c-footer__social-link:hover img {
  filter: brightness(0) saturate(100%) invert(46%) sepia(39%) saturate(507%) hue-rotate(115deg) brightness(95%) contrast(94%);
}

.c-footer__assoc {
  background: transparent;
  border: 1px solid var(--c-primary);
  padding: 0;
  margin-bottom: 38px;
}

.c-footer__assoc-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: start;
  font-size: calc(14px * var(--fs-scale));
  line-height: 1.2;
  color: var(--c-text);
}

.c-footer__assoc-col {
  position: relative;
  padding: 36px 38px 36px 50px;
}

.c-footer__assoc-col:nth-child(2) {
  padding-right: 0;
}

.c-footer__assoc-col:first-child::after {
  content: "";
  position: absolute;
  top: 36px;
  bottom: 36px;
  right: 0;
  width: 1px;
  background: var(--c-primary);
}

.c-footer__assoc-en,
.c-footer__assoc-name {
  font-family: var(--c-font);
  font-weight: var(--c-font-weight-main);
  color: var(--c-primary);
  font-size: calc(20px * var(--fs-scale));
  line-height: 1.2;
}

.c-footer__assoc-col p {
  margin-bottom: 0;
  line-height: 1.5;
}

.c-footer__assoc-col .c-footer__assoc-en,
.c-footer__assoc-col .c-footer__assoc-name {
  margin-bottom: 10px;
}

.c-footer__bottom {
  padding: 0 20px 36px;
  text-align: center;
  background: transparent;
}

.c-footer__copy {
  font-size: calc(14px * var(--fs-scale));
  color: #6b6b69;
  opacity: 0.7;
}

/* Scroll reveal（ヘッダー・フッター以外） */
.c-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 2s cubic-bezier(0.33, 0, 0.2, 1) var(--c-reveal-delay, 0s),
    transform 1.8s cubic-bezier(0.33, 0, 0.2, 1) var(--c-reveal-delay, 0s);
}

/* a 要素は共通の短い transition が優先されるため、同じ秒数を明示 */
.corporate-site a.c-reveal,
.corporate-site a.c-btn.c-reveal,
.corporate-site a.r-job-nav__btn.c-reveal {
  transition:
    opacity 2s cubic-bezier(0.33, 0, 0.2, 1) var(--c-reveal-delay, 0s),
    transform 1.8s cubic-bezier(0.33, 0, 0.2, 1) var(--c-reveal-delay, 0s),
    color 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.c-reveal.is-inview {
  opacity: 1;
  transform: none;
}

.corporate-site a.c-reveal.c-reveal--done {
  transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.corporate-site a.c-btn.c-reveal.c-reveal--done,
.corporate-site a.r-job-nav__btn.c-reveal.c-reveal--done,
.corporate-site a.c-news-card.c-reveal.c-reveal--done,
.corporate-site a.c-biz-banner.c-reveal.c-reveal--done {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.corporate-site a.c-ftype-card.c-reveal.c-reveal--done,
.corporate-site .c-ftype-card.c-reveal.c-reveal--done {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
}

.c-btn.c-reveal.is-inview:hover,
.r-job-nav__btn.c-reveal.is-inview:hover,
.c-news-card.c-reveal.is-inview:hover,
.c-biz-banner.c-reveal.is-inview:hover {
  transform: translate(9px, 9px);
}

.c-header__cta.c-reveal.is-inview:hover,
.c-sp-nav__cta.c-reveal.is-inview:hover,
.c-footer__recruit.c-reveal.is-inview:hover,
.r-footer__corp-btn.c-reveal.is-inview:hover,
.c-ftype-card__btn.c-reveal.is-inview:hover {
  transform: none;
}

/* ==========================================================================
   Recruit site extras（コーポレート共通の上に載せる採用専用）
   ========================================================================== */
.recruit-site {
  --recruit-primary: var(--c-primary);
  --recruit-primary-dark: var(--c-primary-dark);
  --recruit-magenta: var(--c-magenta);
  --recruit-text: var(--c-text);
  --recruit-muted: var(--c-muted);
  --recruit-bg-mint: var(--c-bg-mint);
  --recruit-bg-beige: var(--c-bg-beige);
  --recruit-border: var(--c-border);
  --recruit-max: var(--c-max);
  --recruit-header-h: 140px;
  --recruit-radius: 4px;
  --recruit-font: var(--c-font);
  --recruit-font-en: var(--c-font-en);
  --recruit-font-weight-bold: var(--c-font-weight-bold);
  --recruit-font-weight-medium: var(--c-font-weight-main);
}

.recruit-site h1,
.recruit-site h2,
.recruit-site h3,
.recruit-site h4,
.recruit-site p {
  margin: 0;
}

.recruit-site .c-header {
  background: #fff;
  border-bottom: none;
  height: var(--recruit-header-h);
}

.recruit-site .c-main {
  background: #f6f6f1;
  min-height: 50vh;
}

.recruit-site button.c-btn {
  appearance: none;
  -webkit-appearance: none;
}

.r-job-nav {
  padding: 6rem 0;
}

.r-job-nav__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px 18px;
}

.r-job-nav__list > li {
  min-width: 0;
  display: flex;
}

.r-job-nav__list > li .r-job-nav__btn {
  flex: 1 1 auto;
  min-width: 0;
}

.r-job-nav__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  height: 65px;
  min-height: 65px;
  padding: 0 16px 0 20px;
  background: var(--c-primary);
  color: #fff !important;
  font-size: calc(18px * var(--fs-scale));
  box-shadow: 9px 9px 0 0 #d7e8e4;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.corporate-site a.r-job-nav__btn {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.2s ease;
}

.r-job-nav__btn:hover {
  transform: translate(9px, 9px);
  box-shadow: none;
}

.corporate-site a.r-job-nav__btn:hover {
  transform: translate(9px, 9px);
  box-shadow: none;
}

.r-job-nav__arrow {
  display: inline-flex;
  width: 28px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  position: relative;
}

.r-job-nav__arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-right: 2px solid var(--c-primary);
  border-bottom: 2px solid var(--c-primary);
  transform: translate(-65%, -50%) rotate(-45deg);
  box-sizing: border-box;
}

.c-header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.3;
}

.c-header__tel {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: inherit !important;
}

.c-header__tel-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.c-header__tel-num {
  font-family: var(--c-font-en);
  font-size: calc(25px * var(--fs-scale));
  color: var(--c-text);
}

.c-sp-nav__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 0;
  text-align: center;
}

.c-sp-nav__tel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--c-font-en);
  font-size: 25px;
  font-weight: var(--c-font-weight-main);
  line-height: 1.2;
  color: var(--c-text) !important;
}

.c-sp-nav__tel img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.c-sp-nav__hours {
  margin-top: 8px;
  font-size: 16px;
  font-weight: var(--c-font-weight-main);
  line-height: 1.4;
  color: var(--c-text);
}

.r-footer {
  position: relative;
  background: #f6f6f1;
  color: var(--c-text);
  padding-top: 0;
}

.r-footer::before {
  content: "";
  display: block;
  width: 100%;
  max-width: var(--c-max);
  margin: 0 auto;
  border-top: 1px solid var(--c-primary);
}

.r-footer a {
  color: var(--c-text);
}

.r-footer a:hover {
  color: var(--c-primary);
}

.r-footer a:hover img {
  opacity: 0.5;
}

.r-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 40px;
  padding-top: 48px;
  padding-bottom: 16px;
}

.r-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 280px;
}

.r-footer__logo {
  display: inline-flex;
  flex-shrink: 0;
}

.r-footer__logo img {
  width: 47px;
  height: 53px;
  object-fit: contain;
}

.r-footer__org {
  font-size: calc(17px * var(--fs-scale));
  line-height: 1.5;
  margin-bottom: .5em !important;
}

.r-footer__org span {
  font-size: calc(13px * var(--fs-scale));
  font-weight: var(--c-font-weight-main);
}

.r-footer__address {
  font-size: calc(14px * var(--fs-scale));
  margin-bottom: 0;
}

.r-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.r-footer__nav a {
  font-size: 15px;
}

.r-footer__corp {
  flex: 0 0 auto;
  margin-left: auto;
}

.r-footer__corp-btn {
  box-shadow: none;
  font-weight: var(--c-font-weight-main);
}

.r-footer__ext {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(46%) sepia(39%) saturate(507%) hue-rotate(115deg) brightness(95%) contrast(94%);
}

.r-footer__bottom {
  position: relative;
  padding: 0 0 80px;
}

.r-footer__copy {
  font-family: var(--c-font-en);
  font-size: calc(13px * var(--fs-scale));
  color: #6b6b69;
  margin-bottom: 0;
}

.r-pagetop {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--c-font-en);
  font-size: calc(14px * var(--fs-scale));
  color: var(--c-primary) !important;
}

.r-pagetop:hover {
  color: var(--c-primary) !important;
}

.r-pagetop__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border: 1px solid var(--c-primary);
  border-radius: 50%;
  position: relative;
}

.r-pagetop__icon::after {
  content: "";
  position: absolute;
  top: 55%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--c-primary);
  border-right: 1.5px solid var(--c-primary);
  transform: translate(-50%, -50%) rotate(-45deg);
  box-sizing: border-box;
}

/* ==========================================================================
   Media queries（ブレークポイントごとにまとめる）
   ========================================================================== */

@media screen and (max-width: 1500px) {
  .corporate-site {
    --c-header-h: 72px;
  }

  .c-header__inner {
    padding: 0 2.5%;
  }

  .c-header__logo img {
    height: 40px;
    width: auto;
  }

  .c-header__nav,
  .c-header__cta {
    display: none;
  }

  .c-header-sub-shadow {
    display: none !important;
  }

  .c-hamburger {
    display: inline-flex;
  }

  .c-footer {
    padding-top: 40px;
  }

  .c-footer__brand {
    padding-right: 0;
  }

  .c-footer__assoc-col:first-child::after {
    top: 28px;
    bottom: 28px;
  }
}

@media screen and (max-width: 1300px) {
  .c-container {
    width: 90%;
  }

  .r-footer::before {
    width: 90%;
  }
}

@media screen and (max-width: 960px) {
  .c-contact__grid,
  .c-footer__inner,
  .c-footer__cols,
  .c-footer__assoc-inner {
    grid-template-columns: 1fr;
  }

  .c-footer__col {
    margin-top: 1.5em;
  }

  .c-footer__assoc-col:first-child::after {
    top: auto;
    right: 1em;
    bottom: 0;
    left: 1em;
    width: auto;
    height: 1px;
  }

  .c-footer__social {
    display: none;
  }

  .recruit-site .c-header {
    background: #fff;
  }

  .c-header__contact {
    display: none;
  }

  .recruit-site {
    --recruit-header-h: 72px;
  }

  .r-job-nav__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 767px) {
  /* PCのみ改行（br自身、または親に付与して配下のbrを対象） */
  br.c-br-pc,
  .c-br-pc br {
    display: none;
  }

  html:has(.corporate-site) {
    --fs-scale: 0.875; /* 14 / 16 → 1rem = 14px */
  }

  .c-contact {
    padding-top: 56px;
  }

  .c-contact__tel a {
    font-size: 26px;
  }

  .c-footer__inner {
    padding-bottom: 40px;
  }

  .c-footer__assoc {
    margin-bottom: 1em;
  }

  .c-footer__assoc-col {
    padding: 1em 1.5em;
  }

  .c-footer__assoc-col:nth-child(2) {
    padding-bottom: 0;
  }

  .c-btn,
  .c-footer__address,
  .c-footer__col a {
    font-size: 16px;
  }

  .c-footer__org {
    font-size: 17px;
  }

  .c-contact__hours {
    font-size: 18px;
  }

  .c-footer__col-title {
    font-size: 20px;
  }

  .c-footer__org span {
    font-size: 24px;
  }

  .c-footer__privacy,
  .c-footer__assoc-col p,
  .c-footer__copy {
    font-size: 14px;
  }

  .c-footer__assoc-col .c-footer__assoc-en,
  .c-footer__assoc-col .c-footer__assoc-name {
    margin-bottom: 0.3em;
    font-size: calc(20px * var(--fs-scale));
  }

  .r-job-nav__list {
    grid-template-columns: 1fr 1fr;
    gap: 10px 8px;
  }

  .r-job-nav__list > li {
    min-width: 0;
  }

  .r-job-nav__btn {
    height: 52px;
    min-height: 52px;
    padding: 0 .5rem 0 1rem;
    box-shadow: 6px 6px 0 0 #d7e8e4;
    letter-spacing: .01em;
  }

  .r-job-nav__btn:hover,
  .corporate-site a.r-job-nav__btn:hover {
    transform: translate(6px, 6px);
  }

  .r-job-nav__arrow {
    width: 1.4rem;
  }

  .r-job-nav__arrow::after {
    width: .4rem;
  }

  /* SPフッター: ナビ → コーポレート → Page Top → ブランド → コピー */
  .r-footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .r-footer__nav {
    order: 1;
    width: 100%;
  }

  .r-footer__nav ul {
    flex-direction: row;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .r-footer__corp {
    order: 2;
    margin-left: 0;
    width: 100%;
  }

  .r-footer__corp-btn {
    display: flex;
    width: 100%;
    max-width: none;
  }

  .r-pagetop {
    order: 3;
    position: static;
    right: auto;
    bottom: auto;
    align-self: center;
    margin: 4px 0 8px;
  }

  .r-footer::before {
    width: 90%;
  }

  .r-footer__brand {
    order: 4;
    flex: none;
    width: 100%;
    align-items: flex-start;
    gap: 14px;
  }

  .r-footer__org {
    font-size: 16px;
    margin-bottom: 0.35em !important;
  }

  .r-footer__address {
    font-size: 14px;
  }

  .r-footer__bottom {
    padding: 0 0 32px;
  }
}

/* SPのみ改行 */
@media screen and (min-width: 768px) {
  br.c-br-sp,
  .c-br-sp br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .c-btn:hover,
  .c-btn.c-reveal.is-inview:hover,
  .r-job-nav__btn:hover,
  .corporate-site a.r-job-nav__btn:hover,
  .c-news-card:hover,
  .c-news-card.c-reveal.is-inview:hover,
  .c-biz-banner:hover,
  .c-biz-banner.c-reveal.is-inview:hover {
    transform: none;
  }

  .c-header__menu > li > a::after {
    transition: none;
  }
}