/* =========================================================
   base.css  - 共通スタイル（土台）
   ======================================================= */

/* ------------------------------
   ルート変数（色・フォント）
   ------------------------------ */
:root {
  /* colors */
  --color-bg: #FFFFFF;
  --color-text: #000000;
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-gray-fill: #B5B5B5;

  /* フォント
     ※ 今は Reggae One で作業 → 後から Noto Sans JP に変更予定
  */
  --font-body: "Reggae One", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --font-accent: "Reggae One", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

/* ------------------------------
   リセットに近い軽い共通
   ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

html, body {
  overflow-x: clip; /* 旧ブラウザ考慮なら hidden */
}

/* 画像は親より大きくならない＆比率維持 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* リンクの初期状態 */
a {
  color: inherit;
  text-decoration: none;
}

/* ------------------------------
   レイアウト用コンテナ
   ------------------------------ */
.l-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ------------------------------
   PC/SP 切り替えユーティリティ
   ------------------------------ */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* ------------------------------
   背景・ボーダー ユーティリティ
   ------------------------------ */
.u-bg-black {
  background-color: var(--color-black);
  color: var(--color-white);
}

.u-bg-white {
  background-color: var(--color-white);
  color: var(--color-black);
}

.u-bg-gray {
  background-color: var(--color-gray-fill);
}

.u-border-black {
  border: 1px solid var(--color-black);
}

.u-border-white {
  border: 1px solid var(--color-white);
}

/* ------------------------------
   フォントユーティリティ
   ------------------------------ */
.font-body {
  font-family: var(--font-body);
}

.font-accent {
  font-family: var(--font-accent);
  font-weight: 400;
}

/* =========================================================
   見出し（h1 / h2 / h3）
   ======================================================= */

/* h1：構造用。見た目は個別クラスで調整 */
h1 {
  margin: 0;
}

/* FVの会社名 */
.fv-company-name {
  font-family: var(--font-accent);
  font-size: 36px;
  text-align: center;
  color: #000;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin: 0 0 24px;
  font-weight: 700;
}

/* h2：セクションタイトル（上下ライン付き） */
h2 {
  font-family: var(--font-accent);
  font-size: 36px;
  color: #000;
  line-height: 1.3;
  letter-spacing: 0.05em;

  position: relative;
  display: inline-block;
  margin: 0 auto 32px;
  padding: 16px 0;
  text-align: center;
}

h2::before,
h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: 5px;
  background-color: #000;
}

h2::before { top: 0; }
h2::after  { bottom: 0; }

/* VISIONだけは例外 */
.vision-title {
  font-family: var(--font-accent);
  font-size: 120px;
  color: #000;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: left;
  display: block;
  margin: 0 0 24px;
  padding: 0;
  position: static;
}

.vision-title::before,
.vision-title::after {
  content: none;
}

/* サブタイトル */
.vision-subtitle {
  font-family: var(--font-accent);
  font-size: 48px;
  color: #000;
  line-height: 1.3;
  letter-spacing: 0.05em;
  margin: 0;
}

/* サブタイトルの上下ライン */
.heading-lines {
  position: relative;
  display: inline-block;
  padding: 12px 0;
}

.heading-lines::before,
.heading-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: 5px;
  background-color: #000;
}

.heading-lines::before { top: 0; }
.heading-lines::after  { bottom: 0; }

/* h3：小カテゴリタイトル */
h3 {
  font-family: var(--font-body);
  font-size: 36px;
  color: #000;
  line-height: 1.4;
  letter-spacing: 0.03em;
  margin: 0 0 20px;
}


/* =========================================================
   SP向け（見出し）
   ======================================================= */
@media (max-width: 767px) {

  .fv-company-name {
    font-size: 32px;
    margin-bottom: 20px;
  }

  h2 {
    font-size: 24px;
    margin-bottom: 24px;
    padding: 12px 0;
  }

  h2::before,
  h2::after {
    width: calc(100% + 30px);
    height: 4px;
  }

  .vision-title {
    font-size: 56px;
    margin-bottom: 16px;
  }

  .vision-subtitle {
    font-size: 24px;
  }

  .heading-lines {
    padding: 10px 0;
  }

  .heading-lines::before,
  .heading-lines::after {
    width: calc(100% + 30px);
    height: 4px;
  }

  h3 {
    font-size: 24px;
    margin-bottom: 18px;
  }
}


/* =========================================================
   共通：上下ライン付き見出し（p などにも適用可能）
   ======================================================= */

.heading-lines {
  position: relative;
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 28px;
  color: #000;
  text-align: center;
  padding: 12px 0;
  margin: 0 auto 32px;
  letter-spacing: 0.05em;
}

.heading-lines::before,
.heading-lines::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: 5px;
  background-color: #000;
}

.heading-lines::before { top: 0; }
.heading-lines::after  { bottom: 0; }

/* SP 調整 */
@media (max-width: 767px) {
  .heading-lines {
    font-size: 20px;
    padding: 10px 0;
  }

  .heading-lines::before,
  .heading-lines::after {
    width: calc(100% + 20px);
    height: 4px;
  }
}


/* =========================================================
   ボタン共通
   ======================================================= */

/* ベースボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                            /* 文字とアイコンの間 */
  font-family: var(--font-body);
  font-size: 24px;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 999px;                /* デフォルトは丸 */
  border: 3px solid #000000;
  background-color: transparent;
  color: #000000;
  box-sizing: border-box;
}

/* 画像アイコン（①〜④の矢印画像など） */
.btn__icon-img {
  width: 20px;
  height: auto;
  display: block;
}

/* ------------------------------
   サイズバリエーション
   ------------------------------ */

/* ①〜④：230×50 角丸50 */
.btn--pill-sm {
  width: 230px;
  height: 50px;
  border-radius: 50px;
}

/* ⑤⑥：350×140（SP:210×100） */
.btn--panel {
  width: 350px;
  height: 140px;
  border-radius: 50px;
}

/* ⑦：232×53（SP:134×20）角丸5／枠線1px */
.btn--rect {
  width: 232px;
  height: 53px;
  border-radius: 5px;
  border-width: 1px;
}

/* ⑧⑨：400×70（SP:320×60） */
.btn--pill-lg {
  width: 400px;
  height: 70px;
  border-radius: 50px;
}

@media (max-width: 767px) {
  .btn--panel {
    width: 210px;
    height: 100px;
  }

  .btn--rect {
    width: 158px;
    height: 24px;
  }

  .btn--pill-lg {
    width: 320px;
    height: 60px;
  }
}

/* ------------------------------
   色・塗りパターン
   ------------------------------ */

/* ①④：塗り D9D9D9 ＋ 枠線3px黒 */
.btn--fill-light-gray {
  background-color: #D9D9D9;
  color: #000000;
}

/* ②③：塗り白 ＋ 枠線3px黒 */
.btn--fill-white {
  background-color: #FFFFFF;
  color: #000000;
}

/* ⑤⑥：F0F0F0→777777 のグラデ */
.btn--grad-panel {
  background: linear-gradient(#F0F0F0, #777777);
  color: #000000;
}

/* ⑦：B5B5B5塗り（枠線1px黒は .btn--rect で指定） */
.btn--fill-rect-gray {
  background-color: #B5B5B5;
  color: #000000;
}

/* ⑧⑨：DDDDDD→151515 のグラデ */
.btn--grad-contact {
  background: linear-gradient(#DDDDDD, #151515);
}

/* ===============================
   SP時：事業内容ボタンの色入れ替え
   =============================== */
@media (min-width: 768px) and (max-width: 1024px) {

  /* ③（プロデュース事業）→ グレー塗りに変更 */
  .service-card:nth-of-type(3) .btn--pill-sm {
    background-color: #D9D9D9; /* btn--fill-light-gray と同じ */
    color: #000000;
  }

  /* ④（船舶事業）→ 白塗りに変更 */
  .service-card:nth-of-type(4) .btn--pill-sm {
    background-color: #FFFFFF; /* btn--fill-white と同じ */
    color: #000000;
  }
}


/* ------------------------------
   テキストアウトライン・矢印
   ------------------------------ */

/* ⑧⑨：文字は黒、白フチ3px */
.btn--text-stroke-white {
  color: #000000;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
}

/* ⑧⑨：右側に > 矢印（CSS） */
.btn--chevron {
  position: relative;
  padding-right: 48px;  /* 矢印分の余白 */
}

.btn--chevron::after {
  content: "";
  position: absolute;
  right: 24px;
  width: 10px;
  height: 10px;
  border-top: 3px solid #FFFFFF;
  border-right: 3px solid #FFFFFF;
  transform: rotate(45deg);
}


/* ===============================
   ページトップボタン
   =============================== */

.page-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* SVG自然サイズ優先・最大56px */
.page-top-btn img {
  width: auto;
  height: auto;
  max-width: 56px;
  max-height: 56px;
  display: block;
}

/* SPはもっと小さく */
@media (max-width: 767px) {
  .page-top-btn {
    right: 16px;
    bottom: 16px;
  }

  .page-top-btn img {
    max-width: 42px;
    max-height: 42px;
  }
}


/* =====================================
   ヘッダー（PC共通）
   ===================================== */
.site-header {
  height: 125px; /* PC(Figma) */
  background: linear-gradient(to bottom, #E5E5E5 0%, #F5F5F5 100%);
  position: relative;
  z-index: 1000;
}

.site-header__inner {
  width: calc(100% - 60px);   /* 左右30pxずつ */
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ロゴ周り */
.site-header__logo {
  flex-shrink: 0;
  margin-right: clamp(10px, 2vw, 40px); /* 幅に応じて自然に詰める */
}

.site-header__logo img {
  display: block;
}

/* PCロゴ */
.site-header__logo .logo-pc {
  width: 74px;   /* Figma指定 */
  height: 82px;
}

/* SPロゴはPCでは非表示 */
.site-header__logo .logo-sp {
  display: none;
}

/* ===== ナビ部分：ロゴ右〜ヘッダー右端の中で中央寄せ ===== */
.site-header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* wp_nav_menu で出力される ul */
.global-nav--pc {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: clamp(14px, 2.2vw, 60px);
}

/* a（メニューリンク） */
.global-nav--pc > li > a {
  /* 中途半端な幅で崩れないよう自動縮小（最大36 / 最小20） */
  font-size: clamp(20px, 2.6vw, 36px);
  color: #000000;
  text-decoration: none;
  padding-bottom: 0px;
  display: inline-block;

  /* 「ホー / ム」みたいな折り返し崩れを防ぐ */
  white-space: nowrap;
}

/* ホバー時 */
.global-nav--pc > li > a:hover {
  opacity: 0.7;
}

/* 表示中ページの下線 */
.global-nav--pc > li.current-menu-item > a,
.global-nav--pc > li.current_page_item > a {
  border-bottom: 5px solid #000000;
}

/* ハンバーガー（PCでは非表示） */
.header-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ハンバーガー線デザイン（PCで非表示なのでここは保険） */
.header-toggle span {
  display: block;
  width: 44px;
  height: 5px;
  margin-bottom: 7px;
  background-color: #000;
}

/* まずPC/タブレットでは非表示にしておく */
.sp-drawer,
.sp-overlay {
  display: none;
}

/* =====================================
   SP：〜767pxでハンバーガーに切り替え
   ===================================== */
@media (max-width: 767px) {

/* ヘッダー高さ：SP(Figma) */
.site-header {
  height: 80px;
}

.site-header__inner {
  width: calc(100% - 32px); /* SP左右16pxずつ */
}

/* PCメニューを非表示 */
.site-header__nav {
  display: none;
}

/* ロゴをSP用に切り替え */
.site-header__logo {
  margin-right: 0;
}

.site-header__logo .logo-pc {
  display: none;
}

.site-header__logo .logo-sp {
  display: block;
  width: 60px;
  height: auto;
}

/* ハンバーガー表示（右端） */
.header-toggle {
  display: inline-flex;
  margin-left: auto;
  width: 44px;   /* 横幅44 */
  height: 29px;  /* 約44×29 */
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1301; /* ドロワーより上 */
}

/* ハンバーガー線：太さ5、横幅44 */
.header-toggle span {
  position: absolute;
  left: 0;
  width: 44px;
  height: 5px;
  background-color: #000;
  border-radius: 999px;
  margin: 0;
  transition: transform .25s ease, opacity .25s ease, top .25s ease;
}

.header-toggle span:nth-child(1) { top: 0; }
.header-toggle span:nth-child(2) { top: 12px; }
.header-toggle span:nth-child(3) { top: 24px; }

/* ==========================
   SP ドロワー（右からスライド / 全画面）
   ========================== */

/* overlay：全画面 */
.sp-overlay {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 1200;
}

/* drawer：全画面・右から */
.sp-drawer {
  display: block;
  position: fixed;
  inset: 0; /* 画面いっぱい（ヘッダー含む） */
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

/* ▼ 背景画像 */
  background: url("../images/common/menu-bg_sp.jpg") center / cover no-repeat;

/* 右からスライド */
  transform: translateX(100%);
  transition: transform .28s ease;
  pointer-events: none;

  z-index: 1300;

/* 中の余白：上はヘッダー分＋少し */
  padding: 120px 24px 40px;
}

/* 開いた状態 */
  body.is-menu-open .sp-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  body.is-menu-open .sp-drawer {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* スクロール固定 */
  body.is-menu-open {
    overflow: hidden;
  }

  /* ×アニメ（ハンバーガー→×） */
  body.is-menu-open .header-toggle span:nth-child(1) {
    top: 12px;
    transform: rotate(45deg);
  }
  body.is-menu-open .header-toggle span:nth-child(2) {
    opacity: 0;
  }
  body.is-menu-open .header-toggle span:nth-child(3) {
    top: 12px;
    transform: rotate(-45deg);
  }

/* ==========================
   SP メニュー見た目（36px / 区切り線1px / ＞）
   ========================== */

.global-nav--sp {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.global-nav--sp > li {
  border-bottom: 1px solid #000; /* 区切り線：1px */
}

.global-nav--sp > li:first-child {
  border-top: none;
}

.global-nav--sp > li > a {
  position: relative;
  display: block;
  padding: 26px 64px 26px 18px; /* 右は＞用、左は文字位置 */
  font-size: 36px;             /* 指定：36px */
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

/* 右側の「＞」：線太さ3で表現（疑似要素） */
.global-nav--sp > li > a::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 16px;          /* 見た目のサイズ（36px相当の高さに合わせる） */
  height: 16px;
  border-top: 3px solid #000;   /* 線の太さ：3 */
  border-right: 3px solid #000; /* 線の太さ：3 */
  transform: translateY(-50%) rotate(45deg);
}

/* ドロワー内では現在ページの太線を無効化（区切り線は常に1px） */
.global-nav--sp > li.current-menu-item > a,
.global-nav--sp > li.current_page_item > a {
  border-bottom: none;
}

/* ドロワー表示中はページトップボタンを非表示 */
  body.is-menu-open .page-top-btn {
    display: none;
  }
}

/* =====================================
   フッター（PC共通）
   ===================================== */

/* 上段（グラデ） */
.site-footer__upper {
  height: 237px; /* PCは現状維持 */
  background: linear-gradient(to bottom, #FFFFFF 0%, #7B7B7B 100%);
  display: flex;
  align-items: center;
  padding-top: 30px;
}

.site-footer__inner {
  width: calc(100% - 60px); /* 左右30px */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* 左ブロック：ロゴ＋会社名＋（SP波線も内包するがPCでは非表示） */
.footer-logo-block {
  display: flex;
  flex-direction: column; /* PCは縦並び */
  align-items: center;
  gap: 12px;
  margin-right: clamp(24px, 4vw, 60px); /* 画面が狭いと詰める */
}

.footer-logo-img {
  display: block;
  width: 128px; /* PC */
  height: auto;
}

/* ★会社名ブロック：PCでは表示（ここが肝） */
.footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ★PCで会社名が消えないように明示 */
.footer-company-name {
  display: block;
  font-size: 36px; /* PC */
  color: #000000;
  margin: 0;
  line-height: 1.2;
}

/* 波線：SP用はPCでは非表示（重複防止は“波線単位”でやる） */
.footer-wave--sp { display: none; }

/* 右ブロック：メニュー＋PC波線（PC表示） */
.footer-nav-block {
  flex: 1;
  min-width: 0; /* flex内で縮むために必須 */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 1.8vw, 24px);
}

/* ==========================
   フッターメニュー（PC）：1024付近で自動縮小
   ========================== */
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;

  gap: clamp(18px, 2.2vw, 40px); /* gapも縮む */
  flex-wrap: nowrap;             /* 折り返し禁止（ぶつかる前に縮む） */
  min-width: 0;
}

.footer-nav > li {
  margin: 0;
  padding: 0;
}

.footer-nav > li > a {
  font-size: clamp(18px, 2.2vw, 36px); /* ★自動縮小 */
  color: #000000;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
}

.footer-nav > li > a:hover {
  opacity: 0.7;
}

/* PC波線 */
.footer-wave--pc { display: block; }
.footer-wave--pc .footer-wave-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

/* =====================================
   フッター下段（PC〜タブレット対応）
   ===================================== */
.site-footer__bottom {
  height: 85px;              /* PCは固定 */
  background-color: #000000;
  color: #FFFFFF;
}

.site-footer__bottom-inner {
  width: calc(100% - 60px);
  margin: 0 auto;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: clamp(12px, 2vw, 32px); /* ★狭い時の逃げ */
  min-width: 0;
}

.footer-privacy-link {
  font-size: clamp(14px, 2vw, 26px); /* ★自動縮小 */
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-privacy-link:hover {
  text-decoration: underline;
}

.footer-copyright {
  font-size: clamp(11px, 1.6vw, 20px); /* ★自動縮小 */
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* =====================================
   SP：〜767px（SP完成形）
   ===================================== */
@media (max-width: 767px) {

  /* まれに縦書き化する事故対策 */
  .site-footer,
  .site-footer * {
    writing-mode: horizontal-tb;
  }

  /* 上段：高さ123（Figma） */
  .site-footer__upper {
    height: 123px;
    padding-top: 20px; /* ★赤線側：上に20px余白 */
    display: flex;
    align-items: center;
  }

  /* 左右インデント固定 + 2カラム */
  .site-footer__inner {
    width: calc(100% - 32px); /* 左右16px固定 */
    margin: 0 auto;

    display: grid;
    grid-template-columns: 88px 1fr; /* 左：ロゴ / 右：残り */
    column-gap: 16px;
    align-items: center;
  }

  /* SPでは右ブロック（メニュー＋PC波線）を出さない */
  .footer-nav-block {
    display: none;
  }

  /* ロゴブロックを“中身だけ”2カラムにする（崩れ防止） */
  .footer-logo-block {
    margin-right: 0;
    display: contents; /* gridの子として配置（対応ブラウザ前提） */
  }

  /* ロゴ：左カラム */
  .footer-logo {
    grid-column: 1;
    justify-self: start;
    align-self: center;
  }

  .footer-logo-img {
    width: 88px;
    height: auto;
    display: block;
  }

  /* ★会社名＋波線：右カラムの“中央”（ロゴ右端〜右インデントの中間） */
  .footer-brand-text {
    grid-column: 2;
    justify-self: center;
    align-self: center;
    text-align: center;
  }

  .footer-company-name {
    font-size: 32px;
    line-height: 1.1;
    margin: 0;
  }

  /* 波線：SPのみ表示 */
  .footer-wave--pc { display: none; }
  .footer-wave--sp {
    display: block;
    margin-top: 6px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-wave--sp .footer-wave-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
  }

  /* 下段：高さ85 / 中央寄せ */
  .site-footer__bottom {
    height: 85px;
  }

  .site-footer__bottom-inner {
    width: calc(100% - 32px);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
  }

  .footer-privacy-link {
    font-size: 16px;
  }

  .footer-copyright {
    font-size: 12px;
    margin: 0;
  }
}

/* SP改行：デフォルトは非表示（=PCでは改行しない） */
.u-sp {
  display: none;
}

/* SPだけ改行を有効化 */
@media (max-width: 767px){
  .u-sp {
    display: inline;
  }
}
