@charset "UTF-8";
/* ==================================================================
 *  ヘッダー（全ページ共通）
 *  ・PC/SPヘッダー ・SPメニュー ・本ローディング ・簡易ローディング
 * ================================================================== */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; }

#header_pc { display: flex; justify-content: space-between; align-items: center; padding: 20px 48px; transition: background .4s, padding .4s; background: rgba(16,16,18,.28); }
#header_pc.change-color { background: rgba(16,16,18,.94); backdrop-filter: blur(8px); padding: 14px 48px; border-bottom: 1px solid var(--line); }

.header_logo a { display: flex; flex-direction: row; align-items: center; gap: 13px; line-height: 1.25; color: var(--paper); }
.header_logo .lg-txt { display: flex; flex-direction: column; }
.header_logo .lg-en { font-family: var(--en); font-weight: 500; letter-spacing: .3em; font-size: 22px; }
.header_logo .lg-jp { font-size: 12.5px; font-weight: 600; letter-spacing: .2em; color: var(--paper); margin-top: 3px; }
/* 画像ロゴの横に置く会社名（太字・紙白で視認性UP） */
.header_logo .lg-name { margin-top: 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.28); font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--paper); }
.header_logo img { max-height: 60px; width: auto; }

.header_menu ul { display: flex; gap: 34px; align-items: center; }
.header_menu a { font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--paper); position: relative; padding: 4px 0; }
.header_menu a:not(.hc)::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--paper); transition: width .35s; }
.header_menu a:not(.hc):hover::after, .header_menu a.current::after { width: 100%; }
.header_contact a.hc { border: 1px solid var(--paper); padding: 9px 22px; transition: background .3s, color .3s; }
.header_contact a.hc:hover { background: var(--paper); color: var(--ink); }

#header_sp { display: none; }

/* SPメニュー（紙白背景・区切り線・下部に電話/お問い合わせ・Instagram） */
.sp-menu { position: fixed; inset: 0; background: var(--paper); z-index: 5000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s; padding: 60px 0; }
.sp-menu.open { opacity: 1; visibility: visible; }
.sp-menu .sm-close { position: absolute; top: 18px; right: 20px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: var(--ink); font-size: 22px; cursor: pointer; }

/* ナビ（縦並び・上下に区切り線） */
.sp-nav { width: 100%; max-width: 340px; }
.sp-nav a { display: block; text-align: center; padding: 19px 0; font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .16em; color: var(--ink3); border-bottom: 1px solid rgba(16,16,18,.14); transition: opacity .3s; }
.sp-nav a:first-child { border-top: 1px solid rgba(16,16,18,.14); }
.sp-nav a:active { opacity: .55; }

/* 下部 電話 / お問い合わせ（2ボタン） */
.sp-contact { display: flex; gap: 12px; width: 100%; max-width: 340px; padding: 0 20px; }
.sp-contact a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 8px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-size: 14px; letter-spacing: .08em; transition: opacity .3s, background .3s, color .3s; }
.sp-contact a i { font-size: 15px; }
.sp-contact .sp-contact-tel { background: var(--ink); color: var(--paper); }
.sp-contact a:active { opacity: .7; }

/* その下：Instagram（＋LINE） */
.sp-sns { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: -18px; }
.sp-sns a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; letter-spacing: .1em; transition: opacity .3s; }
.sp-sns a i { font-size: 16px; }
.sp-sns a:active { opacity: .55; }

/* 本ローディング（初回アクセス・リロード時） */
#loading { position: fixed; inset: 0; background: var(--ink); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 34px; transition: opacity .8s ease, visibility .8s; }
#loading.done { opacity: 0; visibility: hidden; }
#loading .loading_text { display: flex; flex-direction: column; align-items: center; gap: 78px; }
.ld-scene { --u: 56px; perspective: 2400px; }
.ld-scene .rc-cube { animation: ldSway 7s ease-in-out infinite alternate; }
@keyframes ldSway { 0% { transform: rotateX(-26deg) rotateY(-42deg); } 100% { transform: rotateX(-20deg) rotateY(-18deg); } }
.loadingText { font-family: var(--en); letter-spacing: .38em; font-size: 16px; font-weight: 500; color: var(--paper); text-transform: uppercase; text-align: center; opacity: 0; animation: fadeUp .8s ease .4s forwards; }

/* ページ遷移用 簡易ローディング（ロゴ ＋ 下に細いバー） */
#mini-load { position: fixed; inset: 0; background: var(--ink); z-index: 7000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
#mini-load.on { opacity: 1; visibility: visible; }

.ml-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 0 24px; }
.ml-logo { display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.ml-logo img { max-height: 56px; width: auto; }
.ml-en { font-family: var(--en); font-size: 21px; font-weight: 500; letter-spacing: .3em; color: var(--paper); }
.ml-jp { font-size: 11.5px; font-weight: 600; letter-spacing: .18em; color: var(--gray-l); margin-top: 8px; text-align: center; }

/* 細いバーが左→右へ伸びる（表示中のみ再生） */
.ml-bar { width: 190px; max-width: 60vw; height: 2px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.ml-bar span { display: block; width: 100%; height: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left center; }
#mini-load.on .ml-bar span { animation: mlBar .85s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes mlBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 768px) {
  .ml-en { font-size: 18px; }
  .ml-logo img { max-height: 46px; }
  .ml-inner { gap: 24px; }
}

@media (max-width: 1024px) {
  #header_pc, #header_pc.change-color { padding-left: 32px; padding-right: 32px; }
  .header_menu ul { gap: 22px; }
}
@media (max-width: 768px) {
  #header_pc { display: none; }
  #header_sp { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: rgba(16,16,18,.92); backdrop-filter: blur(8px); position: fixed; top: 0; left: 0; width: 100%; z-index: 100; }
  #header_sp .header_logo a { color: var(--paper); gap: 10px; }
  #header_sp .header_logo .lg-en { font-size: 19px; }
  #header_sp .header_logo .lg-name { font-size: 11.5px; font-weight: 600; padding-left: 10px; letter-spacing: .08em; color: var(--paper); }
  #header_sp .header_logo .lg-jp { font-size: 11px; }
  #header_sp .header_logo img { max-height: 44px; }
  .hamburger { display: flex; flex-direction: column; justify-content: center; gap: 6px; cursor: pointer; padding: 10px 4px; }
  .hamburger span { width: 26px; height: 1px; background: var(--paper); transition: .3s; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
