/* ========================
   Components
   UI コンポーネント定義のみを保持
   ======================== */

.c-loading-image {
  width: min(560px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-loading-logo-draw svg {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

body.is-loading {
  overflow: hidden;
}

/* 左上ロゴ */
.c-site-logo {
  --site-logo-top: 0px;
  --site-logo-left: 40px;
  --site-logo-width: 80px;
  --site-logo-height: 100px;
  --site-logo-image-width: 62px;
  --site-logo-tail-bottom: -20px;
  --site-logo-tail-height: 15px;
  position: fixed;
  top: var(--site-logo-top);
  left: var(--site-logo-left);
  width: var(--site-logo-width);
  height: var(--site-logo-height);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: var(--layer-hero-copy);
  transition: background 0.3s ease;
}

body.is-loading .c-site-logo {
  pointer-events: none;
}

body.is-loading-complete .c-site-logo {
  pointer-events: auto;
}

.c-site-logo.is-outside-hero {
  background: rgb(64, 78, 102);
}

.c-site-logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--site-logo-tail-bottom);
  height: var(--site-logo-tail-height);
  background: #ffffff;
  box-shadow: 0 3px 8px rgba(11, 19, 43, 0.08);
  transition: background 0.3s ease;
}

.c-site-logo.is-outside-hero::after {
  background: rgb(64, 78, 102);
}

.c-site-logo-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--site-logo-image-width);
  height: auto;
  display: block;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.c-site-logo-image--white {
  opacity: 0;
}

.c-site-logo.is-outside-hero .c-site-logo-image--white {
  opacity: 1;
}

.c-site-logo.is-outside-hero .c-site-logo-image--dark {
  opacity: 0;
}

.c-site-logo-text {
  font-family: var(--font-manrope);
  color: #313744;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  transform: translateY(-3px);
  transition: color 0.3s ease;
}

.c-site-logo.is-outside-hero .c-site-logo-text {
  color: #ffffff;
}

@media (max-width: 500px) {
  .c-site-logo {
    --site-logo-top: 0px;
    --site-logo-left: 16px;
    --site-logo-width: 40px;
    --site-logo-height: 50px;
    --site-logo-image-width: 30px;
    --site-logo-tail-bottom: -12px;
    --site-logo-tail-height: 8px;
  }

  .c-site-logo-text {
    font-size: 23px;
  }
}

/* キャッチコピー */
.c-catchcopy-image {
  width: min(580px, calc(100% - (var(--side-rail-width) * 2) - 240px));
  height: auto;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* hero背景 */
.c-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 720px;
  background-image: url("../assets/images/hero-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: var(--layer-hero-bg);
  pointer-events: none;
}

/* hero動画 */
.c-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 720px;
  object-fit: cover;
  z-index: var(--layer-hero-bg);
  pointer-events: none;
}

@media (max-width: 500px) {
  .c-hero-video {
    height: calc(100vw * var(--hero-video-responsive-ratio, 0.5625));
  }
}

/* heroキャッチコピー */
.c-hero-catchcopy {
  opacity: 1;
  position: relative;
  z-index: var(--layer-hero-copy);
}

/* コンテンツ画像 */
.c-content-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  transition: transform 0.45s ease;
}

.c-content-image-zoom-wrap {
  width: 100%;
  aspect-ratio: 20 / 9;
  overflow: hidden;
}

.c-content-image-zoom-wrap:hover .c-content-image {
  transform: scale(1.06);
}

/* コンテンツ */
.c-content-unit {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 18px;
}

.c-content-script-image {
  position: absolute;
  top: clamp(-80px, -4vw, -20px);
  left: clamp(-40px, -3vw, -10px);
  width: clamp(120px, calc(50vw - 240px), 460px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.c-content-image-frame {
  position: relative;
  width: 100%;
  padding: 18px;
}

/* コンテンツの右下文字 */
.c-content-more {
  font-family: var(--font-manrope);
  position: absolute;
  right: 34px;
  bottom: 26px;
  color: #111111;
  text-shadow: 0 0 2px rgba(255, 255, 255, 1);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

/* コンテンツタイトル */
.c-content-title {
  font-family: var(--font-zen-kaku);
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: clamp(24px, 2.2vw, 33px);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0px;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
}

/* コンテンツ下線 */
.c-content-divider {
  width: 240px;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
}

/* 子ページ専用: タイトル下線は常にコンテンツ幅いっぱい */
.is-child-page .c-content-divider,
.is-child-page .c-child-page-title-divider,
.is-child-page .c-policy-page-title-divider {
  width: 100%;
}

/* フッター会社名 */
.c-footer-company {
  font-family: var(--font-zen-kaku);
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.22em;
  text-align: center;
  color: #ffffff;
}

/* フッターリンク親 */
.c-footer-link {
  font-family: var(--font-zen-kaku);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 10px;
  border: 0;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  background: transparent;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.2;
  transition: font-weight 0.2s ease;
}

/* フッターリンク子 */
.c-footer-sub-link {
  min-height: 18px;
  padding: 0 10px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.o-footer-nav-group>.c-footer-link {
  position: relative;
  padding-bottom: 8px;
}

.o-footer-nav-group>.c-footer-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.9);
}

.o-footer-subnav {
  margin-top: 2px;
  gap: 4px;
}

.o-footer-subnav .c-footer-sub-link+.c-footer-sub-link {
  margin-top: 0;
}

/* フッターリンクポリシー */
.c-footer-link--policy {
  min-height: 18px;
  padding: 0 10px;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.o-footer-nav-policy .c-footer-link--policy+.c-footer-link--policy {
  margin-top: 0;
}

/* フッターリンクホバー時 */
.c-footer-link:hover {
  font-weight: 500;
}

/* フッターコピーライト */
.c-footer-copyright {
  font-family: var(--font-zen-kaku);
  margin: 0;
  font-size: clamp(4px, 0.8vw, 9px);
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.95);
  text-transform: uppercase;
  text-align: center;
}

/* スクロールインジケーター */
.c-scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 80px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: var(--layer-hero-copy);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.35s ease;
}

.c-scroll-indicator.is-hidden-by-footer,
.c-scroll-indicator.is-hidden-mobile-child,
.c-scroll-indicator.is-hidden-until-video-end {
  opacity: 0;
}

.c-scroll-indicator-text {
  font-family: var(--font-manrope);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #ffffff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.c-scroll-indicator.is-outside-hero .c-scroll-indicator-text,
.c-scroll-indicator.is-outside-hero .c-scroll-indicator-arrow {
  color: rgb(64, 78, 102);
}

@media (max-width: 500px) {
  .c-scroll-indicator {
    bottom: 20px;
    left: 20px;
  }

  .c-scroll-indicator-text {
    font-size: 10px;
  }

  .c-scroll-indicator-arrow {
    font-size: 10px;
  }

  .c-footer-company {
    font-size: clamp(18px, 5vw, 22px);
    letter-spacing: 0.14em;
  }

  .c-footer-link {
    font-size: clamp(14px, 3.8vw, 18px);
  }

  .c-footer-sub-link,
  .c-footer-link--policy {
    font-size: clamp(12px, 3.2vw, 14px);
  }

  .c-footer-copyright {
    font-size: clamp(9px, 2.4vw, 11px);
    line-height: 1.4;
    letter-spacing: 0.08em;
  }
}

/* セクション前の導入テキスト */
.c-section-intro {
  position: relative;
  width: min(var(--main-content-max-width), 100%);
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.c-section-intro-line {
  width: 100%;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
}

.c-section-intro-text {
  text-align: center;
  margin: 0;
  font-family: "花鳥風月PB", serif;
}

.c-section-intro-text-mobile {
  display: none;
}

.c-child-page-title {
  width: 100%;
  font-size: clamp(24px, 2.8vw, 38px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-areas:
    "media"
    "text"
    "divider";
  justify-items: center;
}

.c-policy-page-title {
  width: 100%;
  font-size: clamp(24px, 2.8vw, 38px);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-areas:
    "media"
    "text"
    "divider";
  justify-items: center;
}

.c-child-page-header {
  width: 100%;
  margin: 40px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.c-policy-page-header {
  width: 100%;
  margin: 42px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.c-child-page-title-image {
  grid-area: media;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 27px;
}

.c-policy-page-title-image {
  grid-area: media;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 16px;
}

.c-child-page-logo {
  grid-area: media;
  justify-self: end;
  align-self: end;
  width: clamp(120px, 24vw, 420px);
  max-width: 42%;
  height: auto;
  display: block;
  z-index: 1;
  pointer-events: none;
  transform: translateY(45px);
}

.c-policy-page-logo {
  grid-area: media;
  justify-self: end;
  align-self: end;
  width: clamp(90px, 16vw, 180px);
  max-width: 36%;
  height: auto;
  display: block;
  z-index: 1;
  pointer-events: none;
  transform: translateY(0px);
}

.c-child-page-title-text {
  grid-area: text;
  width: 100%;
  text-align: center;
  margin: 0 0 28px;
  font-family: var(--font-zen-kaku);
  letter-spacing: 0.3em;
}

.c-policy-page-title-text {
  grid-area: text;
  width: 100%;
  text-align: center;
  margin: 0 0 16px;
  font-family: var(--font-zen-kaku);
  letter-spacing: 0.16em;
}

.c-child-page-title-text p {
  display: block;
  width: 100%;
  margin: 0;
}

.c-policy-page-title-text p {
  display: block;
  width: 100%;
  margin: 0;
}

.c-child-page-title-text p::after {
  content: none;
}

.c-policy-page-title-text p::after {
  content: none;
}

.c-company-page-title-divider {
  grid-area: divider;
  width: 100%;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
}

.c-child-page-title-divider {
  grid-area: divider;
  width: 100%;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
}

.c-policy-page-title-divider {
  grid-area: divider;
  width: 100%;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
}

.c-child-page-intro {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.c-policy-page-intro {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
}

.c-privacy-policy-intro {
  border-bottom: 1px solid rgba(45, 52, 64, 0.7);
}

.c-child-page-intro-line {
  width: 100%;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
}

.c-policy-page-intro-line {
  width: 100%;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
}

.c-child-page-intro-line {
  display: none;
}

.c-policy-page-intro-line {
  display: none;
}

.c-child-page-intro-text {
  width: 100%;
  margin: 0;
  text-align: center;
}

.c-policy-page-intro-text {
  width: 100%;
  margin: 0;
  text-align: center;
}

.c-child-page-intro-text p {
  margin: 0;
  font-family: var(--font-noto-sans-jp);
  font-size: clamp(14px, 1.4vw, 22px);
  line-height: 1.5;
  color: rgba(0, 0, 0);
  letter-spacing: 0.03em;
}

.c-policy-page-intro-text p {
  margin: 0;
  font-family: var(--font-noto-sans-jp);
  font-size: clamp(14px, 1.4vw, 22px);
  line-height: 1.5;
  color: rgba(0, 0, 0);
  letter-spacing: 0.03em;
}

.c-child-page-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.c-policy-page-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.c-section-intro-text p {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(45, 52, 64, 0.8);
  letter-spacing: 0.2em;
  text-shadow: 0.05em 0.05em 0 rgba(45, 52, 64, 0.2);
}

.c-section-intro-text p:last-child {
  margin-bottom: 0;
}

.c-section-intro-subtitle-line {
  position: absolute;
  right: 30px;
  bottom: 0;
  width: clamp(240px, 39vw, 490px);
  max-width: 100%;
  height: auto;
  transform: translateY(68%);
  opacity: 0.95;
  pointer-events: none;
}

.c-subtitle-decoration-draw svg {
  width: 100%;
  height: auto;
  display: block;
}

/* === Content Unit Base (Shared) === */
.c-service-content-unit,
.c-company-content-unit,
.c-recruit-content-unit {
  width: min(var(--child-content-max-width, var(--main-content-max-width)), 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.c-policy-content-unit,
.c-privacy-policy-content-unit {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.c-service-content-unit .c-content-divider,
.c-policy-content-unit .c-content-divider,
.c-company-content-unit .c-content-divider,
.c-recruit-content-unit .c-content-divider {
  margin-bottom: 40px;
}

/* Privacy Policy signoff layout */
.c-privacy-policy-signoff {
  width: 100%;
  margin-top: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 36px);
}

.c-privacy-policy-signoff-text {
  flex: 1;
}

.c-privacy-policy-signoff-text p {
  margin: 0;
  line-height: 1.65;
}

.c-privacy-policy-mark {
  margin-left: auto;
  flex-shrink: 0;
}

.c-privacy-policy-mark-image {
  display: block;
  width: clamp(60px, 10vw, 120px);
  height: auto;
}

.c-privacy-policy-note-block {
  width: 100%;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(45, 52, 64, 0.7);
}

.c-privacy-policy-note {
  margin: 0;
  font-family: var(--font-noto-sans-jp);
  font-size: clamp(8px, 1.2vw, 24px);
  line-height: 1.65;
  color: rgba(45, 52, 64, 0.9);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Content body wrapper: keeps title/divider full-width while controlling body side gutters */
.c-content-body-wrap {
  width: 100%;
  padding-inline: clamp(12px, 2vw, 32px);
}

.c-content-body-wrap>* {
  width: 100%;
}

.c-mobile-break {
  display: none;
}

/* Company Profile Unit: keep divider as block to ensure width/full-line rendering */
.c-company-profile-unit .c-content-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(45, 52, 64, 0.7);
  margin: 6px 0 40px 0;
}

@media (max-width: 500px) {
  .c-child-page-header {
    margin: 40px 0;
    gap: 20px;
  }

  .c-child-page-logo {
    width: clamp(80px, 24vw, 240px);
    transform: translateY(0);
  }

  .c-child-page-intro-text p {
    font-size: var(--mobile-font-size-title);
    line-height: var(--mobile-line-height-title);
    letter-spacing: 0.12em;
  }

  .c-section-intro-text-desktop {
    display: none;
  }

  .c-section-intro-text-mobile {
    display: block;
  }

  .c-content-script-image {
    top: -44px;
    left: -12px;
    width: clamp(170px, 44vw, 250px);
  }

  .c-section-intro {
    margin: 20px auto;
    gap: 12px;
  }

  .c-content-unit {
    gap: 4px;
    padding-top: 12px;
  }

  .c-content-image-frame {
    padding: 10px;
    margin-top: 20px;
  }

  .c-content-title {
    margin-bottom: 4px;
    font-size: clamp(18px, 4.8vw, 24px);
    letter-spacing: 0.12em;
  }

  .c-content-divider {
    width: min(180px, 60vw);
  }

  .c-service-content-unit .c-content-divider,
  .c-policy-content-unit .c-content-divider,
  .c-company-content-unit .c-content-divider,
  .c-recruit-content-unit .c-content-divider {
    margin-bottom: 20px;
  }

  .c-company-profile-unit .c-content-divider{
    margin: 6px 0 20px 0;
  }

  .c-section-intro-subtitle-line {
    right: 8px;
    bottom: 0;
    width: clamp(140px, 44vw, 240px);
    max-width: 52%;
    transform: translateY(50%);
  }

  .c-section-intro-text p {
    font-size: var(--mobile-font-size-title);
    line-height: 1.5;
    letter-spacing: 0.12em;
  }

  .c-content-more {
    right: 24px;
    bottom: 18px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
  
  /* Child Page Title Mobile Adjustments */
  .c-child-page-title-image {
    margin: 0 0 12px;
  }

  .c-child-page-title-text {
    margin: 0 0 12px;
    letter-spacing: 0.16em;
  }

  .c-child-page-intro {
    gap: 10px;
    padding-bottom: 0px;
  }

}

@media (max-width: 500px) {
  .c-mobile-break {
    display: block;
  }

  .c-content-body-wrap {
    padding-inline: 5px;
  }

  .c-privacy-policy-signoff {
    gap: 12px;
  }

  .c-privacy-policy-mark-image {
    width: clamp(72px, 24vw, 110px);
  }
}