@charset "utf-8";

/* =========================================================
   リニューアル共通パーツ（ヘッダー / フッター / Stickyバー）
   旧 style.css と衝突しないよう、セレクタは新規のものだけを使う
   （旧CSSには #header 系216ルール・#footer 系48ルールが残っているため）
   ========================================================= */

:root {
  --c-primary: #ffaa3d;
  --c-primary-accent: #ff6380;
  --c-secondary: #005f75;
  --c-accent2: #4378e0;
  --c-bg: #fefdfe;
  --c-text: #566468;
  --c-footer-bg: #000000;
  --c-footer-border: #515556;
  --c-sticky-bg: rgba(42, 46, 47, 0.8);
  /* 白背景のボタンに乗る文字色。--c-primary-accent より暗くしてあるのは、
     20px太字で3.0:1（大きい文字のAA基準）を満たすため。#ff6380 だと2.82で足りない */
  --c-cta-accent: #f45f7b;
  --gradient-primary: linear-gradient(123.4deg, var(--c-primary) 1.6748%, var(--c-primary-accent) 100%);
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Albert Sans", sans-serif;
}

/* ---------------------------------------------------------
   共通ボタン
   --------------------------------------------------------- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 162px;
  padding: 16px 24px;
  border-radius: 75px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 18px;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .2s ease;
}
.c-btn:hover { opacity: .8; }
.c-btn__primary { background-image: var(--gradient-primary); color: var(--c-bg); border: none; }
.c-btn__secondary { background: var(--c-bg); color: var(--c-secondary); border: 2px solid var(--c-secondary); }
.c-btn__primary:hover,
.c-btn__secondary:hover { color: var(--c-bg); }
.c-btn__secondary:hover { color: var(--c-secondary); }
.c-btn .c-icon { width: 20px; height: 20px; flex-shrink: 0; }

.c-icon { display: block; flex-shrink: 0; }

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */

/* ヘッダーは position:fixed のため、その高さ分をページ全体に確保する
   （旧CSSはこの余白を持っていなかった） */
body { padding-top: 100px; }

/* 新デザインで組み直したページのベース。
   旧 style.css の body（Open Sans / #000 / 背景 #FFF6E5）を読まなくなるので、
   その代わりに新デザインのトークンを土台として敷く。
   旧デザインのページには付かないクラスなので影響しない。 */
body.is__renewed {
  font-family: var(--font-jp);
  color: var(--c-text);
  background: var(--c-bg);
}

/* services / boshu 系の #navigation には旧ヘッダー（約72px）に合わせた
   margin-top が固定値で入っており、そのままだと新ヘッダー（100px）で
   隙間が消える。ヘッダー高さの確保は body の padding に一本化し、
   タブとの隙間だけをここで指定する（本番の見た目に合わせて28px）。 */
body.is__legacy-topspace #navigation { margin-top: 28px; }

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--c-bg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .25));
}
.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.l-header__logo { display: block; flex-shrink: 0; line-height: 0; }
.l-header__logo img { width: 305px; height: auto; display: block; }

.l-header__nav { display: flex; align-items: center; gap: 60px; }
.l-header__links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.l-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 20px;
  line-height: normal;
  color: var(--c-text);
  white-space: nowrap;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.l-header__link .c-icon { width: 24px; height: 24px; }
/* bootstrap の a:hover（青）がヘッダーのリンクに乗るので上書きする。
   ボタン要素（対象アプリ）も同じ見え方に揃えている */
.l-header__link:hover { color: var(--c-secondary); }
.l-header__buttons { display: flex; align-items: center; gap: 24px; }

/* 開閉メニュー（SP） */
.l-header__menu {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.l-header__menu .c-icon { width: 24px; height: 24px; }
/* 開いている間は × に切り替える（JS が aria-expanded を更新している） */
.l-header__menu__close { display: none; }
.l-header__menu[aria-expanded="true"] .l-header__menu__open { display: none; }
.l-header__menu[aria-expanded="true"] .l-header__menu__close { display: block; }

/* materials / apply は #main が上部余白を持っている。
   Bootstrap の mt-5（48px）だったり旧CSSの100pxだったりでページごとに
   まちまちなうえ、本番は固定ヘッダー分を確保しておらず内容が
   ヘッダーに潜り込んでいた。ヘッダー分は body 側で確保しているので、
   ここでは services / boshu と同じ隙間（28px）に揃える。 */
/* Bootstrap の .mt-5 が !important 付きのため、こちらも !important で上書きする */
body.is__header-minimal #main { margin-top: 28px !important; }

/* /materials/ と /apply/ は #main の中にフォームの埋め込みが直接入っており、
   埋め込み側が内部に余白を持っている。28pxを上乗せすると空きすぎるため、
   このページだけ埋め込み側の余白に任せる。 */
body.is__form-embed #main { margin-top: 0 !important; }

/* SPでは #navigation が非表示になり、代わりに #intro が本文の先頭に来る。
   その padding-top（100px）は旧ヘッダー65pxを避けるための値で、
   ヘッダー分は body 側で確保しているため二重になる。
   本番と同じ見た目の隙間（35px）だけを残す。
   旧CSS側のブレークポイントが 992px なのでそれに合わせている。 */
@media (max-width: 992px) {
  body.is__legacy-topspace #intro { padding-top: 35px; }
}

/* boshu 用。PCではメニューを出さず、SPのハンバーガーからのみ開く
   （本番も .c-menu sp で同じ挙動になっている） */
@media (min-width: 992px) {
  .l-header__nav__sp-only { display: none; }
}

/* PC / SP の出し分け（現行サイトの .pc / .sp を踏襲）*/
.c-sp { display: none; }
@media (max-width: 991px) {
  .c-pc { display: none; }
  .c-sp { display: block; }
  li.c-sp { display: list-item; }
}

/* SP限定の外部テキストリンク */
.l-header__textlinks { display: none; }
@media (max-width: 991px) {
  .l-header__textlinks {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 8px 0;
    text-align: center;
  }
  .l-header__textlinks a {
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.6;
    color: var(--c-text);
    text-decoration: underline;
  }
  .l-header__textlinks a:hover { color: var(--c-secondary); }
}

/* ドロップダウン */
.l-header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--c-bg);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
  display: none;
}
.l-header__item { position: relative; }
.l-header__item.is__open > .l-header__dropdown { display: block; }
.l-header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
}
.l-header__dropdown a:hover { background: rgba(0, 95, 117, .08); color: var(--c-secondary); }
.l-header__dropdown__sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-secondary);
}
.l-header__dropdown__main { display: block; line-height: 1.4; }

/* デザインは1512px基準。1300px以下では要素が収まらないため間隔と
   ロゴを詰める（1200pxで28pxはみ出していた） */
@media (max-width: 1300px) {
  .l-header__logo img { width: 240px; }
  .l-header__nav { gap: 32px; }
  .l-header__links { gap: 24px; }
  .l-header__link { font-size: 18px; }
  .l-header__buttons { gap: 16px; }
  .l-header__buttons .c-btn { min-width: 0; padding: 14px 20px; font-size: 16px; }
  body { padding-top: 79px; }
}

@media (max-width: 991px) {
  body { padding-top: 70px; }

  /* スクロール方向でヘッダーを出し入れする（挙動は common.js）。
     position:fixed のまま transform で動かすので本文の位置はずれない */
  .l-header { transition: transform .3s ease; }
  body.is__header-hidden .l-header { transform: translateY(-100%); }

  .l-header__inner { padding: 0 16px 0 0; }
  .l-header__logo img { width: 214px; }
  .l-header__menu { display: inline-flex; }
  /* ヘッダーの下から下方向に開く。
     transform で動かすとヘッダーの上を通過してしまうため、
     高さを変える方式にしてヘッダーに重ならないようにしている。 */
  .l-header__nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 0 16px;
    background: var(--c-bg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .12);
    transition: height .3s ease, padding .3s ease;
  }
  /* max-height ではなく height を指定して、中身が短くても
     画面下端まで覆うようにする */
  .l-header__nav.is__open {
    height: calc(100dvh - 70px);
    overflow-y: auto;
    padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .l-header__links { flex-direction: column; align-items: stretch; gap: 0; }
  .l-header__item { border-bottom: 1px solid rgba(86, 100, 104, .2); }
  .l-header__link { width: 100%; justify-content: space-between; padding: 16px 8px; }
  .l-header__dropdown { position: static; display: none; box-shadow: none; border-radius: 0; padding: 0 0 8px; }
  .l-header__buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .l-header__buttons .c-btn { width: 100%; }
}

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */
.l-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 60px 60px 0;
  background: var(--c-footer-bg);
}
.l-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  justify-content: space-between;
  row-gap: 16px;
  width: 100%;
}
.l-footer__logo { display: block; line-height: 0; }
.l-footer__logo img { width: 300px; height: auto; display: block; }
.l-footer__navi { display: flex; align-items: center; gap: 30px; }
.l-footer__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-bg);
  white-space: nowrap;
  text-decoration: none;
}
.l-footer__link:hover { color: var(--c-bg); text-decoration: underline; }
.l-footer__link .c-icon { width: 20px; height: 20px; }
.l-footer__alc { display: flex; align-items: center; justify-content: flex-end; width: 100%; }
.l-footer__alc img { width: 120px; height: auto; display: block; }
.l-footer__copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid var(--c-footer-border);
}
.l-footer__copyright p {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-bg);
  white-space: nowrap;
}

@media (max-width: 991px) {
  .l-footer { padding: 20px 20px 0; }
  .l-footer__inner { justify-content: center; gap: 16px 10px; }
  .l-footer__navi { gap: 16px; }
  .l-footer__link { font-size: 14px; }
  .l-footer__alc { justify-content: center; }
  .l-footer__alc img { width: 77px; }
}

/* ---------------------------------------------------------
   Stickyバー（SP専用・常時表示）
   --------------------------------------------------------- */
.l-sticky { display: none; }

@media (max-width: 991px) {
  /* position:sticky で .l-page の末尾まで追従する。
     fixed と違いフッターに重ならないので、コピーライトが隠れない。
     スクロールイベントを使わないため描画コストもかからない。 */
  .l-sticky {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: sticky;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 999;
    background: var(--c-sticky-bg);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .l-sticky__buttons { display: flex; align-items: stretch; width: 100%; }
  .l-sticky__btn {
    display: flex;
    flex: 1 0 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px 16px;
    font-family: var(--font-jp);
    font-weight: 700;
    font-size: 14px;
    line-height: normal;
    white-space: nowrap;
    text-decoration: none;
  }
  .l-sticky__btn .c-icon { width: 16px; height: 16px; }
  .l-sticky__btn__contact { background: var(--c-secondary); color: var(--c-bg); }
  .l-sticky__btn__contact:hover { color: var(--c-bg); }
  .l-sticky__btn__material { background: var(--c-bg); color: var(--c-secondary); border: 2px solid var(--c-secondary); }
  .l-sticky__btn__material:hover { color: var(--c-secondary); }
}

/* ---------------------------------------------------------
   ページ先頭へ戻る
   --------------------------------------------------------- */
/* 高さ0の枠を position:sticky で追従させる。
   flow に場所を取らないのでページ末尾に余白ができず、
   .l-page の中にあるためフッターの手前で止まる。 */
/* 枠は本来の位置より12px下に置き、ボタンを枠から12px浮かせている。
   追従中の見た目は従来どおりで、追従が止まったときだけ
   flow の位置から12px上に来る。flow に余白を作らない。 */
.l-pagetop__slot {
  position: sticky;
  bottom: 12px;
  height: 0;
  z-index: 1000;
}

/* ボタンは枠の線から上へ浮かせる */
.l-pagetop {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--c-accent2);
  box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
  transition: opacity .2s ease;
}
.l-pagetop:hover { opacity: .8; }
.l-pagetop img { width: 20px; height: auto; display: block; }

@media (max-width: 991px) {
  .l-pagetop__slot { bottom: calc(4px + env(safe-area-inset-bottom)); }

  /* メニューを開いている間は隠す（パネルの上に浮いて見えるため）。
     SPでしかメニューを開けないので、この範囲に限定している */
  body.is__menu-open .l-pagetop { display: none; }

  /* Stickyバーがあるページは、バーの高さ(72px)分だけ持ち上げて
     バーの16px上に置く。バーが無いページは持ち上げない。 */
  .l-page__has-sticky .l-pagetop__slot { bottom: calc(72px + env(safe-area-inset-bottom) + 4px); }
}

/* ---------------------------------------------------------
   背景の上に置くボタン（Figma: button-on-Background）
   グラデーション帯やティール背景の上で使う大きめのボタン。
   枠線は border ではなく inset box-shadow で描いている。
   Figma のストロークは内側基準で、border だと高さが 9px 増えて
   塗りボタンと並んだときに背が揃わなくなるため。
   --------------------------------------------------------- */
.c-btn__onbg {
  position: relative;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 342px;
  padding: 20px 60px;
  border: none;
  border-radius: 168.75px;
  background: transparent;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 30px;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
/* ホバーは透過ではなく少し持ち上げる。
   グラデーション帯の上に置くボタンなので、透過させると背景と混ざって
   かえって沈んで見えるため。影が無いと浮いたのか分からないので添えている。 */
.c-btn__onbg:hover { transform: translateY(-3px); text-decoration: none; }
.c-btn__onbg:active { transform: translateY(-1px); }
.c-btn__onbg .c-icon { width: 48px; height: 48px; }

.c-btn__onbg-primary { background: var(--c-bg); color: var(--c-cta-accent); }
/* 枠線の太さは変数にしている。FVのように縮小して使う場所が
   box-shadow ごと上書きすると、ホバー時の影が消えてしまうため */
.c-btn__onbg-secondary {
  --onbg-ring: 4.5px;
  box-shadow: inset 0 0 0 var(--onbg-ring) var(--c-bg);
  color: var(--c-bg);
}
.c-btn__onbg-teal { background: var(--c-secondary); color: var(--c-bg); }
.c-btn__onbg-primary:hover { color: var(--c-cta-accent); }
.c-btn__onbg-secondary:hover,
.c-btn__onbg-teal:hover { color: var(--c-bg); }

/* secondary は枠線を inset box-shadow で描いているので、
   影を足すときも必ず一緒に指定しないと枠線が消える */
.c-btn__onbg-primary:hover,
.c-btn__onbg-teal:hover { box-shadow: 0 8px 16px rgba(42, 46, 47, .2); }
.c-btn__onbg-secondary:hover {
  box-shadow: inset 0 0 0 var(--onbg-ring) var(--c-bg), 0 8px 16px rgba(42, 46, 47, .2);
}

@media (prefers-reduced-motion: reduce) {
  .c-btn__onbg { transition: none; }
  .c-btn__onbg:hover,
  .c-btn__onbg:active { transform: none; }
}
.c-btn__onbg-teal .c-icon { width: 24px; height: 24px; }

/* ボタンの上に乗る吹き出しバッジ */
.c-btn__tip {
  position: absolute;
  left: 50%;
  top: -24px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 60px;
  background: var(--c-secondary);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .06px;
  white-space: nowrap;
}
.c-btn__tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 9px 6.06px 0;
  border-color: var(--c-secondary) transparent transparent;
}

/* ---------------------------------------------------------
   CTA帯（Figma: section.CTA）
   TOPの3箇所で使い回す横断パーツ
   --------------------------------------------------------- */
.c-cta {
  position: relative;
  /* 波模様の合成相手を帯の中に閉じ込める。
     これが無いと重ね合わせ文脈が外まで広がる */
  isolation: isolate;
  overflow: hidden;
  /* 旧style.cssの section { padding: 50px 0 } を打ち消す */
  padding: 0;
  background-image: linear-gradient(131.31deg, var(--c-primary) 1.6748%, var(--c-primary-accent) 100%);
}
.c-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 40px 0;
}

/* 背景の光の筋。黒地に筋が乗った素材を soft-light 30% で重ねる */
/* 波模様は soft-light が効く環境でだけ出す。
   合成が効かないと筋が白く浮いて全体が曇るので、
   その場合はグラデーション単体で見せるほうが崩れない。 */
.c-cta__wave { display: none; }
@supports (mix-blend-mode: soft-light) {
  .c-cta__wave {
    display: block;
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: .3;
    mix-blend-mode: soft-light;
    pointer-events: none;
  }
}
.c-cta__wave img {
  position: absolute;
  left: -52.38%;
  top: -62.72%;
  width: 204.8%;
  height: 204.8%;
  max-width: none;
  /* 帯の縦横比に合わせて枠を広げているので、そのままだと波が縦に伸びる。
     切り取る形にして元の比率を保つ */
  object-fit: cover;
}

/* 白地にグラデーション文字のラベル（角丸なし） */
.c-cta__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 8px 24px;
  background: var(--c-bg);
}
.c-cta__label span {
  background-image: linear-gradient(156.37deg, var(--c-primary) 1.6748%, var(--c-primary-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .28px;
  text-align: center;
}

.c-cta__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}
.c-cta__title {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: var(--c-bg);
  white-space: nowrap;
}
.c-cta__logo { display: block; width: 305px; height: auto; max-width: 100%; }

.c-cta__buttons { display: flex; align-items: center; gap: 16px; }

@media (max-width: 991px) {
  .c-cta { background-image: linear-gradient(98.5deg, var(--c-primary) 1.6748%, var(--c-primary-accent) 100%); }
  .c-cta__heading { flex-direction: column; height: auto; }
  .c-cta__title { font-size: 32px; }
  .c-cta__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0 16px;
  }
  .c-btn__onbg { min-width: 0; width: 100%; font-size: 20px; }
  .c-btn__onbg .c-icon { width: 24px; height: 24px; }
  .c-btn__tip { padding: 8px 16px; font-size: 10px; letter-spacing: .05px; }
}

@media (prefers-reduced-motion: reduce) {
  .l-header { transition: none; }
}
