@font-face {
  font-family: "NotoJP";
  src: url("fonts/NotoSansJP-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "NotoJP";
  src: url("fonts/NotoSansJP-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-navy: #0d1730;
  --color-navy-deep: #070c1a;
  --color-gold: #b8933f;
  --content-max: 1300px;
  --content-narrow: 960px;
  --fixed-banner-height: 70px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "NotoJP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #111;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ===== header ===== */
.l-header {
background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (min-width: 901px) {
  .l-header {
    position: static;
    
  }
}
.l-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:0px 16px;
  gap:0px;
}
.l-header__logo img {
  width: 320px;
  height: auto;
}
.l-header__nav ul {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
}
.l-header__nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP",
    serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--color-navy);
  white-space: nowrap;
}
.l-header__nav a span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  font-weight: 700;
  margin-top: 2px;
}

/* ハンバーガーボタン（SPのみ表示） */
.l-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.l-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  border-radius: 1px;
}

@media (max-width: 900px) {
  .l-header__nav {
    display: none;
  }
  .l-header__logo img {
    width: 160px;
  }
  .l-header__burger {
    display: flex;
  }
}

/* ===== SPドロワーメニュー ===== */
.l-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 26, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  z-index: 300;
}
.l-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.l-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 78%;
  max-width: 320px;
  background: var(--color-navy-deep);
  transform: translateX(100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 310;
  padding: 28px 24px;
  overflow-y: auto;
}
.l-drawer.is-open {
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(0);
}
.l-drawer__close {
  display: block;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: none;
  color: var(--color-gold);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.l-drawer ul {
  margin-top: 32px;
}
.l-drawer li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.l-drawer a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP",
    serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.l-drawer a span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

@media (min-width: 901px) {
  .l-drawer-overlay,
  .l-drawer {
    display: none;
  }
}

/* ===== main visual ===== */
main {
}
.p-mv {
  position: relative;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0px 16px 0;
}
.p-mv__img.-sp {
  display: none;
}
.p-mv__cvbtn {
  display: none;
}

@media (min-width: 901px) {
  .p-mv {
    margin-bottom: 40px;
  }
}

@media (max-width: 900px) {
  .p-mv {
    padding: 0;
    margin-bottom: 24px;
  }
  .p-mv__img.-pc {
    display: none;
  }
  .p-mv__img.-sp {
    display: block;
  }
}

/* ===== content sections (image slices) =====
   top.jpg実測：コンテンツはセンタリングではなく、
   ヒーローと同じ左端に揃えて配置（右側は余白）。 */
.p-c01,
.p-c02,
.p-c03,
.p-c04,
.p-c05,
.p-c06 {
  max-width: var(--content-max);
  margin: 0 auto 24px;
  padding: 0 16px;
}
.p-c01 img,
.p-c02 img,
.p-c03 img,
.p-c04 img,
.p-c05 img,
.p-c06 img {
  max-width: min(var(--content-narrow), 100%);
  margin: 0;
}

/* PC: c01〜c06をメイン列、cv_btnをサイド列に分けて、
   サイド列を画面に追従（sticky）させる */
@media (min-width: 901px) {
  .l-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
  }
  .l-content__main {
    flex: 1 1 0;
    min-width: 0;
  }
  .l-content__main .p-c01,
  .l-content__main .p-c02,
  .l-content__main .p-c03,
  .l-content__main .p-c04,
  .l-content__main .p-c05,
  .l-content__main .p-c06 {
    max-width: none;
    margin: 0 0 40px;
    padding: 0;
  }
  .l-content__side {
    flex: 0 0 310px;
    position: sticky;
    top: 24px;
    margin: 0 0 40px;
  }
  .p-mv__cvbtn {
    display: block;
  }
}

/* ===== footer ===== */
.l-footer {
  background: var(--color-navy-deep);
  color: #fff;
  padding: 32px 24px;
  text-align: center;
  margin: 40px 0 0 0;
}
.l-footer__logo {
  width: 180px;
  margin: 20px auto 20px;
}
.l-footer__nav ul {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.l-footer__nav a {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  opacity: 0.85;
}
.l-footer small {
  display: block;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 400;
  opacity: 0.6;
}

/* PC: top.jpg実測に合わせて「左：会社概要リンク＋コピーライト／
   右：ロゴ」の横並びレイアウトに */
@media (min-width: 901px) {
  .l-footer {
    padding:0px;
  }
  .l-footer__inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 45px 16px;
  }
  .l-footer__left {
    text-align: left;
    order: 1;
  }
  .l-footer__logo {
    order: 2;
    width: 260px;
    margin: 0;
  }
  .l-footer__nav ul {
    justify-content: flex-start;
    gap: 0;
    margin-bottom: 8px;
  }
  .l-footer__nav li:not(:last-child)::after {
    content: "｜";
    margin: 0 0.6em;
    opacity: 0.5;
  }
}

@media (max-width: 900px) {
  .l-footer {
    
  }
}

/* ===== SP fixed bottom banner ===== */
.l-fixed-banner {
  display: none;
}

@media (max-width: 900px) {
  .l-fixed-banner {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0px;
    z-index: 200;
    transition: transform 0.25s ease;
  }
  .l-fixed-banner.is-hidden {
    transform: translateY(100%);
  }
  .l-fixed-banner img{
  width: 98%;
  max-width: 620px;
  margin: 5px auto;
  }
}

/* ===== ページトップボタン ===== */
.l-pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-navy-deep);
  color: var(--color-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.l-pagetop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.l-pagetop svg {
  width: 20px;
  height: 20px;
}
.l-pagetop:hover {
  background: var(--color-navy);
}

@media (max-width: 900px) {
  .l-pagetop {
    right: 12px;
    bottom: calc(var(--fixed-banner-height) + 90px);
    width: 44px;
    height: 44px;
  }
  .l-pagetop svg {
    width: 17px;
    height: 17px;
  }
}

/* ===== 固定ページ（会社概要・個人情報の取り扱い） ===== */
.p-page {
  background: #f8f7f6;
  border: 1px solid #e5e0d5;
  border-radius: 8px;
  padding: 40px;
  color: #222;
}
.p-page h1 {
  font-size: clamp(22px, 4vw, 30px);
  color: var(--color-navy);
  border-bottom: 2px solid var(--color-gold);
  padding-bottom: 14px;
  margin: 0 0 28px;
}
.p-page h2 {
  font-size: clamp(16px, 3vw, 19px);
  color: var(--color-navy);
  border-left: 4px solid var(--color-gold);
  padding-left: 10px;
  margin: 36px 0 14px;
}
.p-page h2:first-of-type {
  margin-top: 0;
}
.p-page p {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.85;
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 300;
}
.p-page__lead {
  color: #555;
  margin-bottom: 32px;
}
.p-page__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.p-page__table th,
.p-page__table td {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e0d5;
  line-height: 1.7;
  font-weight: 300;
}
.p-page__table th {
  width: 30%;
  min-width: 120px;
  color: var(--color-navy);
  font-weight: 600;
  background: #f8f6f0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .p-page {
    padding: 24px;
    border:none;
    margin:10px 16px;
  }
  .p-page__table th {
    width: 38%;
    font-weight: 600;
    min-width: 0;
    white-space: normal;
  }
}

/* ===== CV（LINE友だち登録）モーダル ===== */
.l-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 12, 26, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  z-index: 400;
}
.l-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.l-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(90vw, 380px);
  background: #fff;
  border: 1px solid var(--color-gold);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  padding: 36px 24px 28px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 410;
}
.l-modal.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.l-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #666;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.l-modal__eyebrow {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--color-gold);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}
.l-modal__title {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP",
    serif;
  color: var(--color-navy);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px;
}
.l-modal__text {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #444;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  margin: 0 0 18px;
}
.l-modal__lineid {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: #f8f6f0;
  border: 1px solid #e5e0d5;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-navy);
  margin: 0 0 22px;
}
.l-modal__lineid strong {
  font-weight: 700;
}
.l-modal__btn {
  display: block;
}
.l-modal__btn img {
  width: 100%;
  height: auto;
}
