/* ==========================================================================
   Restar Theme - common.css
   共通（変数・リセット・ボタン・ヘッダー・フッター・下層ページ共通パーツ）
   ========================================================================== */

/* ==========================================================================
   Restar Theme - main.css
   ========================================================================== */
/* ---------- 変数 ---------- */
:root {
  --navy-900: #031234;
  --navy-800: #061c4d;
  --navy-700: #0a2a6b;
  --blue-600: #0b55d6;
  --blue-500: #1a6dff;
  --blue-400: #4a90ff;
  --sky-300: #8cc2ff;
  --bg-light: #f3f7fd;
  --line: #dde6f3;
  --text: #16223d;
  --text-sub: #4a5672;
  --white: #fff;

  --grad-primary: linear-gradient(90deg, #0a4fd0 0%, #1a73ff 100%);
  --shadow-card: 0 6px 24px rgba(16, 60, 140, .08);

  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Montserrat", var(--font-ja);
  --font-hand: "Caveat", cursive;

  --header-h: 76px;
  --container: 1200px;
  --gutter: 40px;
}

/* ---------- リセット ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: calc(900px + var(--gutter) * 2);
}

.sp-only {
  display: none;
}

/* ---------- 共通パーツ ---------- */
.section {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
}

.section-label {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 6px;
}

.section-label--light {
  color: var(--sky-300);
}

.section-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  margin-bottom: 28px;
}

.section-title--light {
  color: var(--white);
}

.section-text {
  color: var(--text-sub);
  font-size: 14.5px;
  line-height: 2.1;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  transition: transform .3s, box-shadow .3s, background-color .3s, color .3s;
}

.btn .icon {
  font-size: 16px;
}

.btn__arrow {
  transition: transform .3s;
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--primary {
  color: var(--white);
  background: var(--grad-primary);
  box-shadow: 0 8px 22px rgba(20, 100, 255, .35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 100, 255, .45);
}

.btn--outline {
  color: var(--white);
  border: 1px solid rgba(140, 194, 255, .7);
  background: rgba(10, 40, 110, .25);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy-800);
}

.btn--sm {
  min-width: 0;
  padding: 11px 24px;
  font-size: 13px;
  gap: 8px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue-600);
}

.text-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

.text-link .icon {
  transition: transform .3s;
}

.text-link:hover .icon {
  transform: translateX(4px);
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 2px 10px;
  border: 1px solid var(--blue-500);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--blue-600);
  background: var(--white);
  white-space: nowrap;
}

/* 背景の斜めライン装飾 */
.deco-lines {
  position: absolute;
  width: 420px;
  height: 420px;
  pointer-events: none;
  opacity: .9;
}

.deco-lines::before,
.deco-lines::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 60px;
  background: linear-gradient(90deg, rgba(74, 144, 255, 0), rgba(74, 144, 255, .22), rgba(74, 144, 255, 0));
  transform: rotate(-45deg);
}

.deco-lines::before {
  top: 40%;
  left: -20%;
}

.deco-lines::after {
  top: 62%;
  left: -10%;
  height: 24px;
  opacity: .7;
}

.deco-lines--right {
  right: -140px;
  bottom: -120px;
}

.deco-lines--left {
  left: -200px;
  top: -160px;
}

/* フェードイン */
.js-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}

.js-fade.is-show {
  opacity: 1;
  transform: none;
}

/* ---------- ロゴ ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy-800);
}

.logo__mark {
  width: auto;
  height: 42px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .02em;
}

.logo__sub {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  margin-top: 3px;
}

.logo--footer {
  color: var(--white);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(10, 40, 100, .08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.gnav {
  display: flex;
  align-items: center;
  gap: 56px;
}

.gnav__list {
  display: flex;
  gap: 36px;
}

.gnav__item a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  transition: color .3s;
}

.gnav__item a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--blue-500);
  transform: scaleX(0);
  transition: transform .3s;
}

.gnav__item a:hover,
.gnav__item.is-current a {
  color: var(--blue-600);
}

.gnav__item a:hover::after,
.gnav__item.is-current a::after {
  transform: scaleX(1);
}

.menu-btn {
  display: none;
}

.about__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(-50deg, transparent 58%, rgba(74, 144, 255, .18) 58%, rgba(74, 144, 255, .18) 64%, transparent 64%),
    linear-gradient(-50deg, transparent 80%, rgba(74, 144, 255, .12) 80%, rgba(74, 144, 255, .12) 83%, transparent 83%);
}

.news {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  width: 100%;
  max-width: 700px;
}

.news__title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
}

.news__list li {
  border-bottom: 1px solid var(--line);
}

.news-item {
  display: grid;
  grid-template-columns: 90px auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 18px 4px;
  font-size: 13.5px;
}

.news-item time {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
}

.news-item__title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.news-item {
  transition: color .3s;
}

a.news-item:hover {
  color: var(--blue-600);
}

.news__more {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

.news__more::before {
  display: none;
}

.news-item__arrow {
  display: none;
}

.news__empty {
  padding: 20px 0;
  font-size: 13.5px;
  color: var(--text-sub);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 40px 0 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
}

.footer__nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .88);
  transition: color .3s;
}

.footer__nav a:hover {
  color: var(--sky-300);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 30px;
}

.footer__copy {
  font-family: var(--font-en);
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
}

.footer__sns {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer__sns a {
  display: grid;
  place-items: center;
  color: var(--white);
  transition: opacity .3s;
}

.footer__sns a:hover {
  opacity: .7;
}

.footer__sns svg {
  width: 20px;
  height: 20px;
}

.pagetop {
  width: 44px;
  height: 44px;
  margin-left: 12px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
}

.pagetop .icon {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   下層ページ
   ========================================================================== */
.page-header {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
  padding: 70px 0 60px;
  color: var(--white);
  background: var(--navy-800);
  overflow: hidden;
}

.page-header__bg {
  position: absolute;
  inset: 0 0 0 auto;
  width: 70%;
  background-size: cover;
  background-position: center;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #04174a 0%, #06225e 30%, rgba(6, 34, 94, .6) 48%, rgba(6, 34, 94, 0) 72%);
}

.page-header__deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.page-header__deco span {
  position: absolute;
  left: -140px;
  bottom: -40px;
  width: 360px;
  height: 46px;
  background: linear-gradient(90deg, rgba(26, 109, 255, 0), rgba(26, 109, 255, .6), rgba(26, 109, 255, 0));
  transform: rotate(-38deg);
}

.page-header__deco span+span {
  left: auto;
  right: -80px;
  bottom: auto;
  top: 30px;
  width: 300px;
  height: 30px;
  opacity: .6;
}

.page-header__inner {
  position: relative;
  z-index: 2;
}

.page-header__label {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--sky-300);
  margin-bottom: 10px;
}

.page-header__label::after {
  content: "";
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, var(--sky-300), rgba(140, 194, 255, 0));
}

.page-header__title {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4;
  margin-bottom: 22px;
}

.page-header__text {
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 36px;
}

.page-header__inner .js-fade:nth-child(2) {
  transition-delay: .12s;
}

.page-header__inner .js-fade:nth-child(3) {
  transition-delay: .24s;
}

.page-header__catch {
  position: absolute;
  right: 50px;
  bottom: 36px;
  z-index: 2;
  font-family: var(--font-hand);
  font-size: 30px;
  line-height: 1.05;
  color: rgba(255, 255, 255, .9);
  text-align: right;
  transform: rotate(-10deg);
  text-shadow: 0 2px 12px rgba(4, 23, 74, .55);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  font-weight: 500;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.breadcrumb li+li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: .8;
}

.breadcrumb a {
  opacity: .85;
  transition: opacity .3s;
}

.breadcrumb a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* 英字ラベル＋ライン */
.section-label--line {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label--line::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--blue-500);
}

/* ---------- 下層共通：お問い合わせ誘導 ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.cta__img {
  position: absolute;
  inset: 0 0 0 auto;
  width: 60%;
  background-size: cover;
  background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.cta__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(-50deg, transparent 8%, rgba(26, 109, 255, .55) 8%, rgba(26, 109, 255, .55) 11%, transparent 11%),
    linear-gradient(-50deg, transparent 13%, rgba(140, 194, 255, .45) 13%, rgba(140, 194, 255, .45) 14%, transparent 14%),
    linear-gradient(130deg, transparent 6%, rgba(140, 194, 255, .3) 6%, rgba(140, 194, 255, .3) 8%, transparent 8%);
}

.cta__catch {
  position: absolute;
  right: 60px;
  top: 50%;
  z-index: 2;
  font-family: "Zen Kurenaido", var(--font-hand);
  font-size: 26px;
  line-height: 1.6;
  color: #2f6fd0;
  transform: translateY(-60%) rotate(-12deg);
}

.cta__inner {
  position: relative;
  z-index: 2;
  padding-top: 60px;
  padding-bottom: 60px;
}

.cta__body {
  max-width: 560px;
}

.cta__title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.5;
  margin-bottom: 14px;
}

.cta__text {
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 26px;
}

.page-body {
  padding: 90px 0 110px;
}

.news__list--page {
  border-top: 1px solid var(--line);
}

.empty {
  text-align: center;
  color: var(--text-sub);
}

.entry {
  line-height: 2;
}

.entry>*+* {
  margin-top: 1.4em;
}

.entry h2 {
  font-size: 24px;
  line-height: 1.5;
  padding-bottom: .5em;
  border-bottom: 2px solid var(--line);
  margin-top: 2em;
}

.entry h3 {
  font-size: 19px;
  line-height: 1.5;
  padding-left: 14px;
  border-left: 4px solid var(--blue-500);
  margin-top: 1.8em;
}

.entry ul {
  list-style: disc;
  padding-left: 1.4em;
}

.entry ol {
  list-style: decimal;
  padding-left: 1.4em;
}

.entry a {
  color: var(--blue-600);
  text-decoration: underline;
}

.entry__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-sub);
}

.entry__title {
  border: 0 !important;
  padding: 0 !important;
  margin-top: .6em !important;
  font-size: 26px !important;
}

.entry__thumb img {
  width: 100%;
  border-radius: 6px;
}

.entry__back {
  margin-top: 70px;
  text-align: center;
}

.pagination {
  margin-top: 50px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 14px;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
  color: var(--white);
  background: var(--blue-600);
  border-color: var(--blue-600);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* ---------- 会社概要：代表メッセージ ---------- */
.message {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #fff 0%, #f5f9ff 40%, #e4efff 100%);
}

.message__img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 42%;
  width: 36%;
  background-size: cover;
  background-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
}

.message__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(-50deg, transparent 10%, rgba(26, 109, 255, .5) 10%, rgba(26, 109, 255, .5) 14%, transparent 14%),
    linear-gradient(-50deg, transparent 17%, rgba(140, 194, 255, .45) 17%, rgba(140, 194, 255, .45) 19%, transparent 19%),
    linear-gradient(-50deg, transparent 80%, rgba(140, 194, 255, .25) 80%, rgba(140, 194, 255, .25) 90%, transparent 90%);
}

.message__catch {
  position: absolute;
  right: 6%;
  top: 50%;
  z-index: 2;
  font-family: "Zen Kurenaido", var(--font-hand);
  font-size: 26px;
  line-height: 1.7;
  color: #2f6fd0;
  transform: translateY(-50%) rotate(-14deg);
}

.message__inner {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  padding-bottom: 70px;
}

.message__body {
  max-width: 520px;
}

.message__body .section-title {
  font-size: clamp(24px, 2.4vw, 32px);
  margin-bottom: 26px;
}

.message__text {
  font-size: 14px;
  line-height: 2.1;
  color: var(--text-sub);
  margin-bottom: 18px;
}

.message__sign {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-top: 30px;
  padding-right: 20px;
  font-size: 13px;
  font-weight: 700;
}

.message__name {
  font-family: "Zen Kurenaido", var(--font-hand);
  font-size: 30px;
  font-weight: 400;
  color: var(--navy-700);
  letter-spacing: .14em;
}

/* ---------- 会社概要：大切にしていること ---------- */
.values {
  background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
  padding: 80px 0;
}

.values__inner {
  display: grid;
  gap: 30px;
  align-items: start;
}

.values__head .section-title {
  font-size: clamp(22px, 1.9vw, 27px);
}

.values__head .section-text {
  font-size: 13.5px;
}

.values__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.value-item {
  padding: 0 30px;
  border-left: 1px solid var(--line);
}

.value-item__icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-size: 34px;
  color: var(--blue-600);
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 80, 200, .1);
  margin-bottom: 22px;
}

.value-item__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-item__title span {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--blue-600);
}

.value-item__text {
  font-size: 13px;
  line-height: 2;
  color: var(--text-sub);
}

.values__list .js-fade:nth-child(2) {
  transition-delay: .12s;
}

.values__list .js-fade:nth-child(3) {
  transition-delay: .24s;
}

/* ---------- 会社概要：採用への誘導 ---------- */
.join {
  position: relative;
  color: var(--white);
  background: var(--navy-800);
  overflow: hidden;
}

.join__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 23, 74, .95) 0%, rgba(6, 34, 94, .75) 45%, rgba(10, 60, 150, .45) 100%);
}

.join__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.join__title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.join__text {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .9);
}

.join .btn {
  min-width: 260px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1200px) {
  .gnav {
    gap: 32px;
  }

  .gnav__list {
    gap: 24px;
  }

  .news {
    max-width: none;
  }

  .message__catch {
    display: none;
  }

  .message__img {
    left: auto;
    right: 0;
    width: 44%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  }

  .values__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .logo__mark {
    height: 36px;
  }

  .logo__name {
    font-size: 22px;
  }

  .menu-btn {
    position: relative;
    z-index: 110;
    display: block;
    width: 44px;
    height: 44px;
  }

  .menu-btn span {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy-800);
    transition: transform .3s, opacity .3s;
  }

  .menu-btn span:nth-child(1) {
    top: 15px;
  }

  .menu-btn span:nth-child(2) {
    top: 21px;
  }

  .menu-btn span:nth-child(3) {
    top: 27px;
  }

  .is-menu-open .menu-btn span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .is-menu-open .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .is-menu-open .menu-btn span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .gnav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
    padding: 20px var(--gutter) 40px;
    background: var(--white);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }

  .is-menu-open {
    overflow: hidden;
  }

  .is-menu-open .gnav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .gnav__list {
    flex-direction: column;
    gap: 0;
  }

  .gnav__item a {
    padding: 16px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .gnav__item a::after {
    display: none;
  }

  .gnav__cta {
    padding: 16px 24px;
    font-size: 14px;
  }

  .cta__img {
    width: 100%;
    opacity: .35;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cta__catch {
    display: none;
  }

  .message__img {
    position: relative;
    left: auto;
    width: 100%;
    height: 360px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }

  .message__inner {
    padding-top: 20px;
  }

  .message__body {
    max-width: none;
  }
}

@media (max-width: 767px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .section {
    padding: 72px 0;
  }

  .btn {
    min-width: 0;
    width: 100%;
    max-width: 340px;
  }

  .news {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .news-item {
    grid-template-columns: auto 1fr;
    gap: 8px 14px;
    padding: 16px 0;
  }

  .news-item__title {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .news-item .tag {
    justify-self: start;
  }

  /* フッター（SP）：中央揃えでまとめる */
  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    padding: 52px 0 36px;
  }

  /* 幅を絞って「3つ＋2つ」の2段に並べる */
  .footer__nav ul {
    justify-content: center;
    gap: 16px 28px;
    max-width: 270px;
    margin: 0 auto;
  }

  .footer__nav a {
    font-size: 13.5px;
  }

  .footer__top .btn {
    width: 100%;
    max-width: 300px;
    padding: 14px 24px;
  }

  .footer__bottom {
    flex-direction: column-reverse;
    align-items: center;
    gap: 18px;
    padding: 26px 0 32px;
  }

  .footer__sns {
    gap: 28px;
  }

  .footer__copy {
    font-size: 10.5px;
  }

  /* ページトップボタンはフッター上端の右側に配置 */
  .pagetop {
    position: absolute;
    top: 20px;
    right: var(--gutter);
    margin-left: 0;
    background: var(--navy-800);
    border-color: rgba(255, 255, 255, .6);
    box-shadow: 0 6px 16px rgba(4, 23, 74, .35);
  }

  .page-header {
    min-height: 0;
    padding: 150px 0 40px;
    align-items: flex-end;
  }

  .page-header__bg {
    width: 100%;
  }

  .page-header::before {
    background: linear-gradient(0deg, #04174a 0%, rgba(6, 34, 94, .85) 55%, rgba(6, 34, 94, .3) 100%);
  }

  .page-header__text {
    font-size: 14px;
    margin-bottom: 26px;
  }

  .page-header__catch {
    top: 24px;
    right: 18px;
    bottom: auto;
    font-size: 22px;
  }

  .page-body {
    padding: 60px 0 80px;
  }

  .cta__inner {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .message__img {
    height: 280px;
  }

  .message__inner {
    padding-bottom: 56px;
  }

  .message__sign {
    justify-content: flex-start;
    padding-right: 0;
  }

  .values {
    padding: 64px 0;
  }

  .values__list {
    grid-template-columns: 1fr;
  }

  .value-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    column-gap: 18px;
    padding: 22px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .value-item:first-child {
    border-top: 0;
  }

  .value-item__icon {
    grid-row: span 2;
    width: 64px;
    height: 64px;
    font-size: 26px;
    margin-bottom: 0;
  }

  .value-item__title {
    margin-bottom: 4px;
  }

  .value-item__text br {
    display: none;
  }

  .join__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .join .btn {
    min-width: 0;
  }
}