@charset "UTF-8";

/* ==========================================================================
   株式会社鈴木造船所 コーポレートサイト
   assets/css/style.css

   プロパティ順序: Positioning → Box Model → Typography → Visual → Misc
   命名: BEM-lite / kebab-case   接頭辞: l- (layout) / c- (component) / p- (page)
   単位: rem (root = 16px)
   ========================================================================== */

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* ----- Color ----- */
  --c-navy: #163d62; /* 基調。見出し・タグ・フッター */
  --c-navy-deep: #0e273e; /* 濃色。一部見出し */
  --c-blue: #4065ad; /* NEWS日付・小見出し・罫線 */
  --c-red: #c9303c; /* ボタン・強調枠 */
  --c-text: #707070; /* 本文 */
  --c-gray-bg: #e4e4e4; /* CTAボックス背景 */
  --c-gray-weak: #c2c2c2; /* カテゴリ等の弱い文字 */
  --c-line: #d5d5d5; /* 罫線 */
  --c-white: #ffffff;

  --g-footer: linear-gradient(180deg, #163d62 0%, #05101a 70%, #040c14 100%);
  --g-overlay: linear-gradient(
    180deg,
    rgb(0 0 0 / 0%) 20%,
    rgb(0 0 0 / 75%) 100%
  );

  /* ----- Typography ----- */
  --ff-base: "Noto Sans JP", "Noto Sans", sans-serif;

  --fs-display: 5rem; /* 80px  未使用 */
  --fs-hero-sub: 3rem; /* 48px  下層ページタイトル（日本語） */
  --fs-hero-sub-en: 1.2rem; /* 19px  下層ページタイトル（英字） */
  --fs-h1: 2.125rem; /* 34px  セクション見出し（日本語） */
  --fs-h2: 1.75rem; /* 28px  キャッチ */
  --fs-h3: 1.375rem; /* 22px  小見出し */
  --fs-sec-title-sp: 1.625rem; /* 26px  SPのセクション見出し */
  --fs-lead: 1.25rem; /* 20px  リード */
  --fs-sub: 1.125rem; /* 18px  タグ・ボタン・NEWS日付 */
  --fs-body: 1rem; /* 16px  本文 */
  --fs-note: 0.875rem; /* 14px  注記・セクション英語 */

  --fw-black: 700;
  --fw-bold: 700;
  --fw-medium: 500;

  --lh-tight: 1.4;
  --lh-base: 1.8;

  /* ----- Layout ----- */
  --w-content: 1000px; /* 本文コンテナ */
  --w-news: 900px; /* NEWS一覧の行幅 */
  --w-cta: 1343px; /* CTA3連の外寸 */
  --w-header: 1392px; /* ヘッダー内寸 */

  /* ----- Spacing（8px スケール） ----- */
  --sp-1: 0.5rem; /*   8 */
  --sp-2: 1rem; /*  16 */
  --sp-3: 1.5rem; /*  24 */
  --sp-4: 2rem; /*  32 */
  --sp-5: 3rem; /*  48 */
  --sp-6: 4rem; /*  64 */
  --sp-7: 6rem; /*  96 */
  --sp-8: 8rem; /* 128 */
  --sp-sec: 5rem; /* 80px → 上下で160px */

  /* ----- Component ----- */
  --btn-circle: 60px; /* ボタンの赤丸 */
  --tag-h: 25px; /* タグピルの高さ */
  --tag-px: 10px; /* タグ幅は文字数で可変。padding で吸収 */
  --news-row: 60px; /* NEWS 1行の高さ */
  --logo-w: 280px; /* ロゴ表示幅 */

  /* ----- Motion ----- */
  --ease: 0.25s ease;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: var(--lh-base);
  color: var(--c-text);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--ease);
}

a:hover {
  opacity: 0.75;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 約物詰め（見出し・キャッチのみ） */
.p-message__catch,
.p-page-intro__catch,
.p-hero-sub__ja,
.c-sec-title__ja,
.c-feature__title,
.c-msg {
  font-feature-settings: "palt" 1;
}

/* ==========================================================================
   Utility / Responsive visibility
   ========================================================================== */

.u-pc-only {
  display: block;
}

.u-sp-only {
  display: none;
}

@media (width <= 768px) {
  .u-pc-only {
    display: none;
  }

  .u-sp-only {
    display: block;
  }
}

/* ==========================================================================
   Layout / 共通
   ========================================================================== */

.l-container {
  width: min(var(--w-content), 90%);
  margin-inline: auto;
}

.l-section {
  padding-block: var(--sp-sec);
}

.l-section--tight {
  padding-block: var(--sp-7);
}

.l-section--flush-top {
  padding-top: 0;
}

@media (width <= 768px) {
  .l-section {
    padding-block: var(--sp-6);
  }

  .l-section--tight {
    padding-block: var(--sp-6);
  }
}

/* スクリーンリーダー用 */
.u-visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
  clip-path: inset(50%);
}

/* ==========================================================================
   Layout / Header
   ヒーローに重ねた状態からスクロールで白背景へ切り替える
   ========================================================================== */

.l-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  transition:
    background-color var(--ease),
    box-shadow var(--ease);
}

.l-header::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 45%), transparent);
  transition: opacity var(--ease);
  content: "";
  pointer-events: none;
}

.l-header.is-scrolled {
  background-color: var(--c-white);
  box-shadow: 0 1px 12px rgb(0 0 0 / 8%);
}

.l-header.is-scrolled::before {
  opacity: 0;
}

.l-header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--w-header);
  margin-inline: auto;
  padding: var(--sp-3) var(--sp-4);
  transition: padding var(--ease);
}

.l-header.is-scrolled .l-header__inner {
  padding-block: var(--sp-2);
}

/* ----- ロゴ（スクロールで白 ⇄ 濃色） ----- */

.l-header__logo {
  display: block;
  flex-shrink: 0;
  width: var(--logo-w);
}

.l-header__logo img {
  width: 100%;
  filter: brightness(0) invert(1);
  transition: filter var(--ease);
}

.l-header.is-scrolled .l-header__logo img {
  filter: none;
}

/* ----- ナビ ----- */

.l-header__nav {
  margin-left: auto;
}

.l-header__list {
  display: flex;
  gap: var(--sp-4);
}

.l-header__list a {
  display: block;
  padding-block: var(--sp-1);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--c-white);
  text-shadow: 0 1px 6px rgb(0 0 0 / 35%);
  transition:
    color var(--ease),
    text-shadow var(--ease);
}

.l-header.is-scrolled .l-header__list a {
  color: var(--c-navy);
  text-shadow: none;
}

.l-header__toggle {
  display: none;
}

/* 固定ヘッダー分のアンカー位置補正 */
[id] {
  scroll-margin-top: 96px;
}

@media (width <= 768px) {
  .l-header__inner {
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
  }

  .l-header__logo {
    width: 200px;
  }

  .l-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    margin-left: 0;
    background-color: var(--c-navy);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity var(--ease),
      visibility var(--ease);
  }

  .l-header__nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .l-header__list {
    flex-direction: column;
    gap: var(--sp-2);
    text-align: center;
  }

  .l-header__list a,
  .l-header.is-scrolled .l-header__list a {
    font-size: var(--fs-lead);
    color: var(--c-white);
    text-shadow: none;
  }

  .l-header__toggle {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    margin-left: auto;
  }

  .l-header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--c-white);
    transition:
      background-color var(--ease),
      transform var(--ease),
      opacity var(--ease);
  }

  .l-header.is-scrolled .l-header__toggle span {
    background-color: var(--c-navy);
  }

  .l-header__toggle.is-open span,
  .l-header.is-scrolled .l-header__toggle.is-open span {
    background-color: var(--c-white);
  }

  .l-header__toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .l-header__toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  [id] {
    scroll-margin-top: 72px;
  }
}

/* ==========================================================================
   Layout / Footer
   ========================================================================== */

.l-footer {
  padding-block: var(--sp-7) var(--sp-5);
  color: var(--c-white);
  background: var(--g-footer);
}

.l-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-1) var(--sp-4);
  margin-bottom: var(--sp-7);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
}

.l-footer__body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-6);
  align-items: center;
}

.l-footer__logo {
  width: var(--logo-w);
  filter: brightness(0) invert(1);
}

.l-footer__address {
  margin-top: var(--sp-2);
  font-size: var(--fs-body);
}

.l-footer__tel {
  display: inline-block;
  margin-top: var(--sp-2);
  font-size: 2rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
}

.l-footer__map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 737 / 331;
  border: 0;
  /* filter: grayscale(1) contrast(1.1); */
  transition: filter var(--ease);
}

.l-footer__map iframe:hover {
  filter: none;
}

@media (width <= 768px) {
  .l-footer__nav {
    gap: var(--sp-1) var(--sp-3);
    margin-bottom: var(--sp-5);
  }

  .l-footer__body {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    text-align: center;
  }

  .l-footer__logo {
    margin-inline: auto;
  }
}

/* ==========================================================================
   Component / Section title
   ========================================================================== */

.c-sec-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  margin-bottom: var(--sp-6);
  text-align: center;
}

.c-sec-title__ja {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: 0.08em;
  color: var(--c-navy);
}

.c-sec-title__ja::before,
.c-sec-title__ja::after {
  width: 48px;
  height: 1px;
  background-color: var(--c-blue);
  content: "";
}

.c-sec-title__en {
  font-size: var(--fs-note);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--c-blue);
}

.c-sec-title--light .c-sec-title__ja {
  color: var(--c-white);
}

.c-sec-title--light .c-sec-title__en {
  color: var(--c-white);
  opacity: 0.7;
}

@media (width <= 768px) {
  .c-sec-title {
    margin-bottom: var(--sp-5);
  }

  .c-sec-title__ja {
    font-size: var(--fs-sec-title-sp);
  }
  .c-sec-title__ja::before,
  .c-sec-title__ja::after {
    width: 24px;
  }

  .c-sec-title--compact .c-sec-title__ja::before,
  .c-sec-title--compact .c-sec-title__ja::after {
    display: none;
  }
}

/* ==========================================================================
   Component / Arrow button
   ========================================================================== */

.c-btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--c-red);
}

.c-btn-arrow:hover {
  opacity: 1;
}

.c-btn-arrow__text {
  padding-bottom: var(--sp-1);
  border-bottom: 1px solid currentColor;
  font-size: var(--fs-sub);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
}

.c-btn-arrow__circle {
  display: block;
  position: relative;
  flex-shrink: 0;
  width: var(--btn-circle);
  height: var(--btn-circle);
  border-radius: 50%;
  background-color: currentColor;
  transition: transform var(--ease);
}

.c-btn-arrow__circle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background-color: var(--c-white);
  content: "";
  transform: translate(-50%, -50%);
}

.c-btn-arrow__circle::after {
  position: absolute;
  top: 50%;
  left: calc(50% + 4px);
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--c-white);
  border-right: 1px solid var(--c-white);
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.c-btn-arrow:hover .c-btn-arrow__circle {
  transform: translateX(4px);
}

.c-btn-arrow--light {
  color: var(--c-white);
}

.c-btn-arrow--light .c-btn-arrow__circle::before,
.c-btn-arrow--light .c-btn-arrow__circle::after {
  background-color: var(--c-navy);
  border-color: var(--c-navy);
}

@media (width <= 768px) {
  .c-btn-arrow__text {
    font-size: var(--fs-body);
  }

  .c-btn-arrow__circle {
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   Component / Tag
   ========================================================================== */

.c-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
}

.c-tag {
  padding-inline: var(--tag-px);
  font-size: var(--fs-sub);
  font-weight: var(--fw-medium);
  line-height: var(--tag-h);
  letter-spacing: 0.02em;
  color: var(--c-white);
  background-color: var(--c-navy);
}

@media (width <= 768px) {
  .c-tag {
    font-size: var(--fs-body);
  }
}

/* ==========================================================================
   Component / Feature
   画像 + 見出し + 本文 + タグ + ボタン。左右反転と全幅のバリアントを持つ
   ========================================================================== */

.c-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
  align-items: center;
}

.c-feature + .c-feature {
  margin-top: var(--sp-8);
}

.c-feature__media {
  display: grid;
  gap: var(--sp-1);
  overflow: hidden;
}

.c-feature__media img {
  width: 100%;
  aspect-ratio: 500 / 320;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.c-feature:hover .c-feature__media img {
  transform: scale(1.04);
}

.c-feature__body > * + * {
  margin-top: var(--sp-3);
}

.c-feature__title {
  font-size: var(--fs-h3); /* 28px → 22px */
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: 0.04em;
  color: var(--c-navy);
}

.c-feature__text {
  font-size: var(--fs-body);
}

.c-feature__action {
  margin-top: var(--sp-4);
}

/* テキスト左・画像右 */
.c-feature--reverse .c-feature__media {
  order: 2;
}

/* 画像を全幅、テキストを下に回す */
.c-feature--wide {
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4) var(--sp-5);
}

.c-feature--wide .c-feature__media {
  grid-column: 1 / -1;
}

.c-feature--wide .c-feature__media img {
  aspect-ratio: 1000 / 323;
}

.c-feature--wide .c-feature__body {
  grid-column: 2 / -1;
}

/* 見出しを枠付きに（事業内容ページ） */
.c-feature--boxed .c-feature__title {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  border: 1px solid var(--c-line);
  font-size: var(--fs-h3);
  background-color: var(--c-white);
}

.c-feature__label {
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--c-blue);
}

.c-feature__list {
  margin-top: var(--sp-1);
  font-size: var(--fs-body);
}

.c-feature__list li {
  padding-left: 1em;
  text-indent: -1em;
}

.c-feature__list li::before {
  content: "・";
}

@media (width <= 768px) {
  .c-feature {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .c-feature + .c-feature {
    margin-top: var(--sp-7);
  }

  .c-feature--reverse .c-feature__media {
    order: 0;
  }

  .c-feature--wide .c-feature__body,
  .c-feature--wide .c-feature__media {
    grid-column: 1 / -1;
  }

  .c-feature__title {
    font-size: var(--fs-h3);
  }

  .c-feature__action {
    margin-top: var(--sp-3);
  }
}

/* ==========================================================================
   Component / News list
   カテゴリ未設定でも崩れないよう、空要素は詰める
   ========================================================================== */

.c-news {
  width: min(var(--w-news), 90%);
  margin-inline: auto;
}

.c-news__item {
  border-bottom: 1px solid var(--c-blue);
}

.c-news__item:first-child {
  border-top: 1px solid var(--c-blue);
}

.c-news__link {
  display: grid;
  grid-template-columns: 10em 8em 1fr;
  gap: var(--sp-3);
  align-items: center;
  min-height: var(--news-row);
  padding-block: var(--sp-2);
}

.c-news__date {
  font-size: var(--fs-sub);
  font-weight: var(--fw-bold);
  color: var(--c-blue);
}

.c-news__cat {
  padding-inline: var(--sp-2);
  border-left: 1px solid var(--c-blue);
  border-right: 1px solid var(--c-blue);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  text-align: center;
  color: var(--c-gray-weak);
}

.c-news__cat:empty {
  display: none;
}

.c-news__title {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
}

.c-news__action {
  margin-top: var(--sp-7);
  text-align: center;
}

@media (width <= 768px) {
  .c-news__link {
    grid-template-columns: auto auto;
    justify-content: start;
    gap: var(--sp-1) var(--sp-2);
  }

  .c-news__cat {
    border: none;
    padding-inline: 0;
  }

  .c-news__title {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Component / Pagination
   ========================================================================== */

.c-pagination__list {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.c-pagination__list a,
.c-pagination__list span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding-inline: var(--sp-1);
  border: 1px solid var(--c-line);
  font-size: var(--fs-body);
  color: var(--c-navy);
}

.c-pagination__list a:hover {
  border-color: var(--c-blue);
  color: var(--c-blue);
}

.c-pagination__list .current {
  border-color: var(--c-blue);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  background-color: var(--c-blue);
}

/* ==========================================================================
   Page / News single
   ========================================================================== */

.p-news-single__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-3);
  width: min(var(--w-news), 90%);
  margin-inline: auto;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
}

.p-news-single__title {
  width: 100%;
  margin-top: var(--sp-1);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--c-navy);
}

.p-news-single__body {
  width: min(var(--w-news), 90%);
  margin-inline: auto;
  margin-top: var(--sp-5);
  font-size: var(--fs-body);
  line-height: 1.9;
}

.p-news-single__body p + p {
  margin-top: var(--sp-3);
}

@media (width <= 768px) {
  .p-news-single__title {
    font-size: var(--fs-h3);
  }
}

/* ==========================================================================
   Page / Message（TOP）
   画像に白文字を重ねるため、下方向のグラデーションを敷く
   ========================================================================== */

.p-message {
  display: grid;
  overflow: hidden;
}

.p-message__img {
  grid-area: 1 / 1;
  width: 100%;
  aspect-ratio: 1000 / 320;
  object-fit: cover;
  object-position: center 85%;
}

.p-message::after {
  grid-area: 1 / 1;
  /* background: var(--g-overlay); */
  content: "";
}

.p-message__catch {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  padding-bottom: var(--sp-4);
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--c-white);
  margin-right: -0.5em;
  font-feature-settings: "palt" 1;
}

.p-message__text {
  width: min(760px, 100%);
  text-align: left;
  margin: var(--sp-5) auto 0;
}

@media (width <= 768px) {
  .p-message__img {
    aspect-ratio: 3 / 2;
  }

  .p-message__catch {
    font-size: var(--fs-h3);
  }

  .p-message__text {
    margin-top: var(--sp-4);
  }
}

/* ==========================================================================
   Page / Recruit gallery（TOP）
   ========================================================================== */

.p-recruit__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: var(--sp-5);
}

.p-recruit__gallery img {
  width: 100%;
  aspect-ratio: 247 / 320;
  object-fit: cover;
}

/* 画像を持たない c-feature */
.c-feature--textonly {
  grid-template-columns: 1fr 1fr;
}

.c-feature--textonly .c-feature__body {
  grid-column: 2 / -1;
}

@media (width <= 768px) {
  .p-recruit__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .c-feature--textonly .c-feature__body {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Component / Back to top
   ========================================================================== */

.c-backtotop {
  display: grid;
  position: fixed;
  right: var(--sp-3);
  bottom: var(--sp-3);
  z-index: 80;
  place-items: center;
  width: 56px;
  height: 56px;
  background-color: var(--c-red);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--ease),
    visibility var(--ease),
    background-color var(--ease);
}

.c-backtotop.is-visible {
  opacity: 1;
  visibility: visible;
}

.c-backtotop:hover {
  background-color: var(--c-navy);
}

.c-backtotop__icon {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-top: 2px solid var(--c-white);
  border-left: 2px solid var(--c-white);
  transform: rotate(45deg);
}

@media (width <= 768px) {
  .c-backtotop {
    right: var(--sp-2);
    bottom: var(--sp-2);
    width: 48px;
    height: 48px;
  }
}

/* ==========================================================================
   Component / CTA
   中身を差し替えられるよう、ボックスとリンクを分離
   ========================================================================== */

.c-cta {
  padding-block: var(--sp-7);
}

.c-cta__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  width: min(var(--w-cta), 94%);
  margin-inline: auto;
}

.c-cta__item {
  display: grid;
  place-items: center;
  min-height: 160px;
  padding: var(--sp-3);
  text-align: center;
  background-color: var(--c-gray-bg);
}

@media (width <= 768px) {
  .c-cta {
    padding-block: var(--sp-6);
  }

  .c-cta__list {
    grid-template-columns: 1fr;
  }

  .c-cta__item {
    min-height: 100px;
  }
}

/* ==========================================================================
   Component / Message box
   赤枠のメッセージ + 下向き三角。建造実績・採用で共用
   ========================================================================== */

.c-msg {
  width: min(var(--w-content), 90%);
  margin-inline: auto;
  padding: var(--sp-4);
  border: 2px solid var(--c-red);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: 1.9;
  text-align: center;
  color: var(--c-navy);
}

.c-msg__arrow {
  width: 0;
  height: 0;
  margin: var(--sp-3) auto 0;
  border-top: 24px solid var(--c-red);
  border-right: 20px solid transparent;
  border-left: 20px solid transparent;
}

@media (width <= 768px) {
  .c-msg {
    padding: var(--sp-3);
    font-size: var(--fs-body);
  }
}

/* ==========================================================================
   Page / Hero（TOP）
   ========================================================================== */

.p-hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.p-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.p-hero__img.is-active {
  opacity: 1;
}

.p-hero__img:first-child {
  animation: hero-in 1.6s ease-out both;
}

.p-hero__scroll {
  display: flex;
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-note);
  letter-spacing: 0.15em;
  color: var(--c-white);
  text-shadow: 0 1px 6px rgb(0 0 0 / 40%);
  transform: translateX(-50%);
}

.p-hero__scroll-line {
  width: 1px;
  height: 48px;
  background-color: var(--c-white);
  box-shadow: 0 0 6px rgb(0 0 0 / 40%);
  transform-origin: top;
  animation: scroll-line 2.4s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  45% {
    transform: scaleY(1);
    transform-origin: top;
  }

  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

@media (width <= 768px) {
  .p-hero__scroll {
    display: flex;
    bottom: var(--sp-3);
  }
}

/* ==========================================================================
   Page / Hero（下層）
   ========================================================================== */

.p-hero-sub {
  position: relative;
}

@keyframes hero-in {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.p-hero-sub::before {
  position: absolute;
  inset: 0;
  background-color: rgb(22 61 98 / 45%);
  content: "";
}

.p-hero-sub__img {
  width: 100%;
  aspect-ratio: 1440 / 420;
  object-fit: cover;
  object-position: center;
}

.p-hero-sub__title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  text-align: center;
  color: var(--c-white);
}

.p-hero-sub__ja {
  font-size: var(--fs-hero-sub);
  font-weight: var(--fw-black);
  letter-spacing: 0.1em;
}

.p-hero-sub__en {
  font-size: var(--fs-hero-sub-en);
  font-weight: var(--fw-medium);
  letter-spacing: 0.2em;
  text-transform: lowercase;
  opacity: 0.8;
}

.p-hero-sub__img--recruit {
  object-position: center 90%;
}

@media (width <= 768px) {
  .p-hero-sub__img {
    aspect-ratio: 375 / 220;
  }

  .p-hero-sub__ja {
    font-size: var(--fs-h1);
  }
}

/* ==========================================================================
   Page / Intro（下層ページ共通のリード文）
   ========================================================================== */

.p-page-intro {
  padding-block: var(--sp-sec);
  text-align: center;
}

.p-page-intro__catch {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  letter-spacing: 0.06em;
  color: var(--c-navy);
}

.p-page-intro__text {
  width: min(600px, 100%);
  margin: var(--sp-4) auto 0;
  text-align: left;
}

@media (width <= 768px) {
  .p-page-intro {
    padding-block: var(--sp-6);
  }

  .p-page-intro__catch {
    font-size: var(--fs-h3);
  }
}

/* ==========================================================================
   Component / Step list（事業内容ページ：ご相談から作業完了まで）
   ========================================================================== */

.c-step-list {
  width: min(700px, 100%);
  margin: 0 auto;
}

.c-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--sp-3);
  position: relative;
  padding-bottom: var(--sp-6);
}

.c-step:not(:last-child)::before {
  position: absolute;
  top: 64px;
  bottom: 0;
  left: 31px;
  width: 2px;
  background-color: var(--c-blue);
  content: "";
}

.c-step__num {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: var(--c-blue);
  color: var(--c-white);
}

.c-step__num-label {
  font-size: var(--fs-note);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: 0.1em;
}

.c-step__num-index {
  font-size: 1.375rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.c-step__body {
  padding-top: var(--sp-2);
}

.c-step__title {
  font-size: var(--fs-sub);
  font-weight: var(--fw-bold);
  color: var(--c-navy);
}

.c-step__text {
  margin-top: var(--sp-1);
}

.c-step-list__lead {
  width: min(600px, 100%);
  margin: 0 auto var(--sp-6);
  text-align: left;
}

.c-step-list__cta {
  margin-top: var(--sp-6);
  text-align: center;
}

/* ==========================================================================
   Component / Stat list（設備・工場ページ：数字で見る設備）
   ========================================================================== */

.c-stat-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-2);
}

.c-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-2);
  border: 3px solid var(--c-blue);
  background-color: var(--c-navy);
  color: var(--c-white);
  text-align: center;
}

.c-stat__label {
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.c-stat__value {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
}

@media (width <= 768px) {
  .c-stat-list {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
  }
}

/* ==========================================================================
   Component / Photo card（設備・工場ページ：設備紹介の写真カード）
   ========================================================================== */

.c-photo-card {
  position: relative;
  overflow: hidden;
}

.c-stat-list + .c-photo-card {
  margin-top: var(--sp-6);
}

.c-photo-card + .c-photo-card {
  margin-top: var(--sp-4);
}

.c-photo-card__img {
  width: 100%;
  aspect-ratio: 1000 / 640;
  object-fit: cover;
}

.c-photo-card__body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: var(--sp-4);
  background: linear-gradient(to top, rgb(0 0 0 / 55%), transparent);
  color: var(--c-white);
}

.c-photo-card__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
}

.c-photo-card__text {
  margin-top: var(--sp-1);
  font-weight: var(--fw-bold);
}

.c-photo-card--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1000 / 640;
  background-color: var(--c-gray-bg);
}

.c-photo-card--placeholder .c-photo-card__body {
  position: static;
  background: none;
  color: var(--c-text);
  text-align: left;
}

.c-photo-card--placeholder .c-photo-card__title,
.c-photo-card--placeholder .c-photo-card__text {
  color: var(--c-text);
}

@media (width <= 768px) {
  .c-photo-card__title {
    font-size: var(--fs-h3);
  }

  .c-photo-card__text {
    font-size: var(--fs-body);
  }
}

/* ==========================================================================
   Component / Feature media placeholder（建造実績ページ：未入稿の画像枠）
   ========================================================================== */

.c-feature__media--placeholder {
  aspect-ratio: 500 / 320;
  background-color: var(--c-gray-weak);
}

/* ==========================================================================
   Component / History list（建造実績ページ：震災後の建造実績）
   ========================================================================== */

.c-history-list {
  width: min(700px, 100%);
  margin: 0 auto;
}

.c-history-list__item + .c-history-list__item {
  margin-top: var(--sp-3);
}

.c-history-list__name {
  font-size: var(--fs-sub);
  font-weight: var(--fw-bold);
  color: var(--c-blue);
}

.c-history-list__text {
  margin-top: var(--sp-1);
}

/* ==========================================================================
   Component / Client list（建造実績ページ：主な受注実績）
   ========================================================================== */

.c-client-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1) var(--sp-5);
}

.c-client-list .c-feature__list {
  font-size: var(--fs-body);
  color: var(--c-navy-deep);
}

.c-client-list__msg {
  margin-top: var(--sp-7);
}

@media (width <= 768px) {
  .c-client-list {
    grid-template-columns: 1fr;
    gap: var(--sp-1);
  }
}

/* ==========================================================================
   Component / Sub title（会社案内ページ：社訓・会社概要・沿革・有資格者）
   ========================================================================== */

.c-sub-title {
  margin-bottom: var(--sp-5);
  text-align: center;
}

.c-sub-title__ja {
  display: block;
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--c-navy);
}

.c-sub-title__en {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--c-navy);
}

/* ==========================================================================
   Component / President（会社案内ページ：代表挨拶）
   ========================================================================== */

.p-president__img {
  display: block;
  width: min(501px, 100%);
  aspect-ratio: 501 / 320;
  object-fit: cover;
  margin-inline: auto;
}

.p-president__text {
  width: min(760px, 100%);
  margin: var(--sp-4) auto 0;
  text-align: left;
}

/* ==========================================================================
   Component / Principles（会社案内ページ：社訓）
   ========================================================================== */

.c-principles {
  position: relative;
  overflow: hidden;
}

.c-principles__img {
  width: 100%;
  aspect-ratio: 986 / 440;
  object-fit: cover;
}

.c-principles__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background-color: rgb(14 39 62 / 78%);
}

.c-principles__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  width: min(600px, 100%);
  margin-inline: auto;
  text-align: left;
  color: var(--c-white);
}

.c-principles__name {
  font-size: var(--fs-lead);
  font-weight: var(--fw-bold);
}

.c-principles__text {
  margin-top: var(--sp-1);
}

@media (width <= 768px) {
  .c-principles__img {
    aspect-ratio: 3 / 4;
  }
}

/* ==========================================================================
   Component / Info table（会社案内ページ：会社概要）
   ========================================================================== */

.c-info-table {
  width: 100%;
  border-collapse: collapse;
}

.c-info-table th,
.c-info-table td {
  padding: var(--sp-3) var(--sp-2);
  border-top: 1px solid var(--c-navy);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  text-align: left;
  vertical-align: top;
}

.c-info-table tr:last-child th,
.c-info-table tr:last-child td {
  border-bottom: 1px solid var(--c-navy);
}

.c-info-table th {
  width: 12em;
  font-weight: var(--fw-bold);
  text-align: center;
}

@media (width <= 768px) {
  .c-info-table,
  .c-info-table tbody,
  .c-info-table tr,
  .c-info-table th,
  .c-info-table td {
    display: block;
    width: auto;
  }

  .c-info-table th {
    padding-bottom: 0;
    border-top: 1px solid var(--c-navy);
    text-align: left;
  }

  .c-info-table td {
    border-top: none;
    padding-top: var(--sp-1);
  }
}

/* ==========================================================================
   Component / License table（会社案内ページ：有資格者・講習修了者）
   ========================================================================== */

.c-license-table__lead {
  margin-bottom: var(--sp-5);
}

.c-license-table {
  width: min(700px, 100%);
  margin: 0 auto;
  border: 1px solid var(--c-line);
  border-collapse: collapse;
}

.c-license-table th,
.c-license-table td {
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-body);
  text-align: left;
}

.c-license-table th {
  font-weight: var(--fw-bold);
  color: var(--c-navy);
}

.c-license-table td:last-child,
.c-license-table th:last-child {
  width: 6em;
  text-align: right;
}

/* ==========================================================================
   Component / Points photo（採用情報ページ：仕事の魅力）
   ========================================================================== */

.c-points-photo {
  position: relative;
}

.c-points-photo__img {
  width: 100%;
  aspect-ratio: 1440 / 720;
  object-fit: cover;
}

.c-points-photo__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background-color: rgb(14 39 62 / 55%);
}

.c-points-photo__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  width: min(700px, 100%);
  color: var(--c-white);
  text-align: left;
}

.c-points-photo__title {
  font-size: var(--fs-lead);
  font-weight: var(--fw-bold);
}

.c-points-photo__text {
  margin-top: var(--sp-1);
}

@media (width <= 768px) {
  .c-points-photo__img {
    position: absolute;
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .c-points-photo__overlay {
    position: relative;
  }
}

/* ==========================================================================
   Component / Voice list（採用情報ページ：先輩の声）
   ========================================================================== */

.c-voice-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
}

.c-voice__media {
  overflow: hidden;
  aspect-ratio: 320 / 480;
}

.c-voice__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1);
}

.c-voice__img--01 {
  object-position: 50% 50%;
  transform: scale(1.44) translateY(-16px);
}

.c-voice__img--02 {
  object-position: 78% 50%;
  transform: scale(1.125) translateY(-18px);
}

.c-voice__img--03 {
  object-position: 72% 50%;
  transform: scale(1.656) translateY(19px);
}

.c-voice__text {
  margin-top: var(--sp-3);
  font-size: var(--fs-body);
  font-weight: var(--fw-black);
  line-height: var(--lh-tight);
  text-align: left;
  color: var(--c-navy);
}

.c-voice__role {
  margin-top: var(--sp-2);
  font-weight: var(--fw-medium);
}

@media (width <= 768px) {
  .c-voice-list {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }
}

/* ==========================================================================
   Component / Q&A list（採用情報ページ：先輩へのインタビュー）
   ========================================================================== */

.c-qa-list {
  width: min(800px, 100%);
  margin: var(--sp-6) auto 0;
}

.c-qa + .c-qa {
  margin-top: var(--sp-5);
}

.c-qa__question {
  padding-left: calc(80px + var(--sp-3));
  font-size: var(--fs-lead);
  font-weight: var(--fw-black);
  color: var(--c-blue);
}

.c-qa__body {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.c-qa__avatar {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.c-qa__answer {
  flex-grow: 1;
  padding: var(--sp-3) var(--sp-4);
  border: 3px solid var(--c-blue);
  font-weight: var(--fw-bold);
  color: var(--c-navy);
  background-color: var(--c-white);
}

@media (width <= 768px) {
  .c-qa__question {
    padding-left: 0;
  }

  .c-qa__body {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Component / Recruit detail（採用情報ページ：募集要項）
   ========================================================================== */

.p-recruit-detail {
  padding-block: var(--sp-sec);
}

.p-recruit-detail__lead {
  margin-top: var(--sp-2);
  text-align: center;
}

.p-recruit-detail__box {
  margin-top: var(--sp-6);
  padding: var(--sp-6);
  border: 3px solid var(--c-line);
  color: var(--c-gray-weak);
  text-align: center;
}

.p-recruit-detail__cta {
  margin-top: var(--sp-6);
  text-align: center;
}

.p-recruit-license {
  margin-top: var(--sp-6);
}

.p-recruit-license__cta {
  grid-template-columns: repeat(2, 1fr);
  width: fit-content;
  margin-top: var(--sp-6);
}

@media (width <= 768px) {
  .p-recruit-license__cta {
    width: min(var(--w-cta), 94%);
  }
}

/* ==========================================================================
   Component / Form（お問い合わせ・エントリー）
   ========================================================================== */

.c-form {
  width: min(760px, 100%);
  margin-inline: auto;
}

.c-form__notice {
  padding: var(--sp-3) var(--sp-4);
  margin-bottom: var(--sp-5);
  border: 2px solid var(--c-navy);
  font-weight: var(--fw-bold);
  color: var(--c-navy);
  text-align: center;
}

.c-form-thanks {
  width: min(600px, 100%);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-4);
  text-align: center;
}

.c-form-thanks__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-black);
  color: var(--c-navy);
}

.c-form-thanks__text {
  margin-top: var(--sp-3);
}

.c-form-thanks__action {
  margin-top: var(--sp-6);
}

.c-form__notice--error {
  border-color: var(--c-red);
  color: var(--c-red);
}

.c-form__row {
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--c-line);
}

.c-form__row:first-child {
  border-top: 1px solid var(--c-line);
}

.c-form__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-weight: var(--fw-bold);
  color: var(--c-navy);
}

.c-form__required {
  padding: 0.1em 0.6em;
  font-size: var(--fs-note);
  font-weight: var(--fw-bold);
  color: var(--c-white);
  background-color: var(--c-red);
}

.c-form__note {
  margin-top: var(--sp-1);
  font-size: var(--fs-note);
}

.c-form__control {
  width: 100%;
  padding: var(--sp-2);
  border: 1px solid var(--c-line);
  font-family: var(--ff-base);
  font-size: var(--fs-body);
  color: var(--c-text);
  background-color: var(--c-white);
}

.c-form__control:focus-visible {
  border-color: var(--c-blue);
}

textarea.c-form__control {
  min-height: 8lh;
  resize: vertical;
}

.c-form__privacy {
  padding: var(--sp-4);
  margin-top: var(--sp-6);
  overflow-y: auto;
  max-height: 12lh;
  border: 1px solid var(--c-line);
  font-size: var(--fs-note);
}

.c-form__privacy p + p {
  margin-top: var(--sp-2);
}

.c-form__agree {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-weight: var(--fw-bold);
  text-align: center;
}

.c-form__submit {
  display: block;
  width: min(320px, 100%);
  margin: var(--sp-6) auto 0;
  padding: var(--sp-3);
  border: none;
  font-size: var(--fs-sub);
  font-weight: var(--fw-bold);
  letter-spacing: 0.05em;
  color: var(--c-white);
  background-color: var(--c-red);
  transition: opacity var(--ease);
}

.c-form__submit:hover {
  opacity: 0.85;
}

.c-form__recaptcha {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-4);
}

.c-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
