/* ==========================================================
   base.css
   全ページ共通スタイル
   （リセット・タイポグラフィ・共通コンポーネント・ナビ・フッター）
   読み込み順: variables.css → base.css
   ========================================================== */


/* ----------------------------------------------------------
   1. リセット・基本
   ---------------------------------------------------------- */
html {
  overflow-x: hidden;
}

body {
  color: #000000;
  font-family: "メイリオ", Meiryo, "ヒラギノ角ゴシック", "Hiragino Sans", sans-serif;
  padding-bottom: 0;
}

p {
  line-height: 2.0em;
  font-weight: 100;
  font-style: normal;
  font-size: 14px;
}


/* ----------------------------------------------------------
   2. 共通見出し・セクション装飾
   ---------------------------------------------------------- */

/* ページ内セクションタイトル */
.section_title {
  font-size: 36px;
  font-weight: 600;
}

/* section_title の下にサブタイトル＋赤下線を擬似要素で追加 */
.section_title::after {
  display: block;
  font-size: 20px;
  font-weight: 400;
  padding: 16px 0 16px;
  width: fit-content;
  border-bottom: solid 3px #a3123b;
}

/* 詳細ページ上部の背景帯 */
.section_bg {
  background-image: url("../images/page-top-img_dark.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 200px;
  margin-bottom: 20px;
}

.section_bg h2 {
  color: #ffffff;
  font-size: 36px;
}

.section_bg p {
  color: #ffffff;
  font-size: 18px;
}

/* パンくずリスト */
.my_breadcrumb {
  font-size: 14px;
  margin-bottom: 100px;
}

.my_breadcrumb a,
.my_breadcrumb .breadcrumb-item a {
  color: var(--red);
  text-decoration: none;
}

.my_breadcrumb a:hover,
.my_breadcrumb .breadcrumb-item a:hover {
  text-decoration: underline;
}

/* 小見出しブロック（section_block） */
.section_block {
  background: var(--white);
  border: 1px solid var(--border);
  border-bottom: none;
  overflow: hidden;
  margin-bottom: 100px;
}

.section_block h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  line-height: 1.5;
}

.section_header {
  padding: 36px 48px 28px;
  margin-bottom: 40px;
}

.section_header h2,
.section_header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 8px 0 12px;
  color: var(--text);
}

/* eyebrow ＋ 横線 */
.section_step {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section_step_num {
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  color: var(--red);
  font-weight: 400;
  white-space: nowrap;
}

.section_step_line {
  flex: 1;
  height: 1px;
  background: var(--red2);
}

.separator_line {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 赤いアクセントライン */
.red_line {
  width: 40px;
  height: 3px;
  background-color: var(--red2);
  border-radius: 2px;
  margin-bottom: 20px;
}


/* ----------------------------------------------------------
   3. 共通ボタン
   ---------------------------------------------------------- */

/* アウトライン＋スライドインボタン */
.btn-b {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: #9B1C2E;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  padding: 12px 28px;
  border: 1px solid #9B1C2E;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-b::after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: #9B1C2E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

.btn-b:hover::after { transform: scaleX(1); }
.btn-b:hover { color: #fff; }

.btn-b span {
  position: relative;
  z-index: 1;
}

.btn-b .line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.22s;
  position: relative;
  z-index: 1;
}

.btn-b:hover .line { width: 40px; }


/* ----------------------------------------------------------
   4. ナビゲーションバー
   ---------------------------------------------------------- */
#navbarNav {
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-nav {
  gap: 20px;
}

.my_navbar_brand,
.my_nav_link,
.navbar-nav > li > a {
  font-size: 20px;
  font-family: 'Abel', serif;
  color: #000000 !important;
}

nav.navbar .navbar-nav > li > a:hover {
  color: #a3123b !important;
}

nav.navbar {
    position: sticky;
    top: 0;
    z-index: 9998;
}

nav.navbar .container-fluid {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
}

.navbar {
    padding-top: 30px;
    padding-bottom: 10px;
}


/* ----------------------------------------------------------
   5. ハンバーガーメニュー
   ---------------------------------------------------------- */

/* チェックボックス非表示 */
#hamburger_btn_check {
  display: none;
}

/* デフォルトでは非表示（PCサイズ） */
.hamburger_btn {
  display: none;
  order: 4;
}

/* スマホサイズで表示 */
@media screen and (max-width: 991.98px) {
  .hamburger_btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 35px;
    height: 30px;
    cursor: pointer;
    position: relative;
    z-index: 10000;
    margin-left: 12px;
  }
}

/* 3本線 */
.bar {
  display: block;
  width: 100%;
  height: 4px;
  margin: 4px 0;
  background-color: #a3123b;
  border-radius: 2px;
  transition: 0.4s;
  transform-origin: center;
}

#hamburger_btn_check:checked ~ .hamburger_btn .top    { transform: translateY(10px) rotate(45deg); }
#hamburger_btn_check:checked ~ .hamburger_btn .middle { opacity: 0; }
#hamburger_btn_check:checked ~ .hamburger_btn .bottom { transform: translateY(-10px) rotate(-45deg); }

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 9990;
}

#hamburger_btn_check:checked ~ .overlay {
  opacity: 1;
  visibility: visible;
}

/* ハンバーガーメニュー本体 */
.navbar-collapse {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 250px;
  height: 100%;
  background: #fff;
  z-index: 9999;
  padding: 2rem;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

#hamburger_btn_check:checked ~ .navbar-collapse {
  display: block !important;
}

@media (min-width: 992px) {
  .navbar-collapse {
    position: static;
    display: flex !important;
    align-items: center;
    width: auto;
    height: auto;
    background: none;
    box-shadow: none;
    order: 4;
    margin-left: auto;
  }

  .overlay {
    display: none;
  }

  /* PC時は language-switcher を navbar-collapse の中にいるように見せる */
  .language-switcher {
    order: 5;
    margin-left: 8px;
    flex-shrink: 0;
  }
}

/* ----------------------------------------------------------
   6. 言語切替ボタン
   ---------------------------------------------------------- */

/* TranslatePress の強制positionを上書き */
.language-switcher .trp-language-switcher {
    position: relative !important;
    top: unset !important;
    left: unset !important;
    right: unset !important;
    transform: unset !important;
    width: auto;
}

.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 50px;
}

.language-switcher .trp-shortcode-overlay {
    position: absolute;
    top: 100% !important;  /* 言語ボタンの真下に表示 */
    right: 0;
    left: auto;
}

.language-switcher a {
    text-decoration: none;
}

.language-switcher .trp-shortcode-switcher__wrapper {
    width: auto !important;
    min-width: unset !important;
}

@media (max-width: 991.98px) {
    .language-switcher {
        margin-left: auto; /* ← スマホでも右寄せ */
        margin-right: 12px;
    }

    /* 国旗アイコンを小さく */
    .language-switcher .trp-flag-image {
        width: 16px !important;
        height: 16px !important;
    }

    /* 言語名のテキストを非表示（国旗だけ表示） */
    .language-switcher .trp-language-item-name {
        display: none !important;
    }

    /* 矢印SVGを小さく */
    .language-switcher .trp-shortcode-arrow {
        width: 14px !important;
        height: 14px !important;
    }

    /* ボタン全体のパディングを詰める */
    .language-switcher .trp-language-item__current {
        padding: 2px 4px !important;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        margin-right: 12px;
    }
}

/* ----------------------------------------------------------
   6. メイン・フッター区切り線
   ---------------------------------------------------------- */
.section-divider {
  border: none;
  border-top: 2px solid #a3123b;
  margin: 40px 0;
  width: auto;
}


/* ----------------------------------------------------------
   7. フッター
   ---------------------------------------------------------- */
.my_nav_link_footer {
  font-size: 20px;
  font-family: 'Abel', serif;
  color: #000000 !important;
}

.my_nav_link_footer:hover {
  color: #a3123b !important;
}

.office_info_footer h6 {
  font-size: 18px;
  color: #000000;
  font-weight: bold;
}

.office_info_footer p {
  font-size: 15px;
  color: #000000;
  margin-top: 0;
  margin-bottom: 4px;
}


/* ----------------------------------------------------------
   8. 各詳細ページ共通ヘッダー
   ---------------------------------------------------------- */
.page_header {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.page_header_inner {
  padding-top: 64px;
  padding-bottom: 0;
  padding-left: 56px;
}

.ph_h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: var(--black);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.ph_h1 em {
  color: var(--red);
  font-style: normal;
}

.ph_desc {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  font-weight: 300;
  border-left: 2px solid var(--red);
  padding-left: 14px;
  margin-bottom: 0;
}

/* タブ行 */
.ph_tabs {
  display: flex;
  margin-top: 32px;
}

.ph_tab {
  padding: 10px 22px;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  cursor: default;
  border-top: 2px solid transparent;
  border-right: 1px solid var(--border);
  transition: all 0.2s;
  font-weight: 400;
  font-family: 'Noto Sans JP', sans-serif;
}

.ph_tab:first-child { border-left: 1px solid var(--border); }

.ph_tab:hover {
  color: var(--red);
  border-top-color: var(--red);
  background: var(--red-pale);
}


/* ----------------------------------------------------------
   9. お問い合わせフォーム
   ---------------------------------------------------------- */
.required {
  border-radius: 5px;
  background-color: red;
  color: #ffffff;
  padding: 0 5px;
  margin-right: 5px;
}

.form-control::placeholder {
  font-size: 0.75rem;
  color: #ccc;
}


/* ----------------------------------------------------------
   10. 会社概要テーブル
   ---------------------------------------------------------- */
.table td.table_title {
  background-color: #a3123b;
  color: #ffffff;
}

.about_sign_badge {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  background: var(--red);
  color: var(--white);
  padding: 4px 10px;
  font-weight: 400;
}

.about_sign_name {
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.08em;
}
