/*
Theme Name: SAI-LABO
Theme URI: https://www.sai-labo.co.jp
Author: SAI-LABO Co., Ltd.
Author URI: https://www.sai-labo.co.jp
Description: 株式会社サイラボ 公式サイトテーマ
Version: 1.0.0
License: Private
Text Domain: sailabo
*/

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --soil: #2C2416;
  --bark: #4A3728;
  --moss: #5C6B3A;
  --sage: #8A9E6B;
  --grass: #B5C99A;
  --mist: #E8EDE0;
  --cream: #F5F2EB;
  --stone: #9E9689;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --white: #FDFCF8;
  --navy: #1A2035;
}

body {
  background: var(--white);
  color: var(--soil);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── NAVIGATION ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253,252,248,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(90,75,56,0.08);
  transition: padding 0.3s;
}

.site-nav.scrolled { padding: 14px 48px; }

.nav-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--soil);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img,
.nav-logo-img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.nav-logo-text { display: flex; flex-direction: column; gap: 2px; }

.nav-logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--stone);
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-menu a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--bark);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-menu a:hover,
.nav-menu a.current-menu-item { color: var(--moss); }
.nav-menu a:hover::after,
.nav-menu a.current-menu-item::after { width: 100%; }

.nav-cta {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--moss);
  padding: 9px 22px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.3s;
}

.nav-cta:hover { background: var(--bark); }

/* ── HAMBURGER (Mobile) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--soil);
  transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--soil);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.2em;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--gold); }

.mobile-menu-cta {
  margin-top: 16px;
  padding: 14px 40px;
  background: var(--moss);
  color: var(--white) !important;
  border-radius: 2px;
  font-size: 14px !important;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--soil);
  padding: 60px 80px 40px;
  color: var(--stone);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.footer-logo-wrap .footer-logo {
  font-family: 'Shippori Mincho', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-style: italic;
  color: var(--stone);
  margin-bottom: 20px;
}

.footer-sns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-sns a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: var(--stone);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'Cormorant Garamond', serif;
}

.footer-sns a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION COMMON ── */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--soil);
  margin-bottom: 28px;
}

.btn-primary {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--moss);
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-primary:hover { background: var(--bark); transform: translateY(-1px); }

.btn-secondary {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--moss);
  border: 1px solid var(--sage);
  padding: 14px 36px;
  border-radius: 2px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-secondary:hover { background: var(--mist); }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--stone);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--stone); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .site-nav { padding: 16px 24px; }
  .site-nav.scrolled { padding: 12px 24px; }
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .site-footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── 言語スイッチャー（国旗） ── */
.language-switcher,
.pll-parent-menu-item,
ul.lang-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.lang-item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.lang-item::marker,
.lang-item::before {
  display: none !important;
  content: none !important;
}

.lang-item a {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  padding: 2px !important;
  border-radius: 3px !important;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.lang-item a:hover {
  opacity: 1;
}

.lang-item.current-lang a {
  opacity: 1;
  outline: 2px solid var(--gold, #c4a265);
  outline-offset: 1px;
  border-radius: 3px;
}

.lang-item a img {
  width: 26px !important;
  height: 20px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  display: block !important;
}

/* ナビ内の言語スイッチャーラッパー */
.nav-lang-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  border-radius: 3px;
  padding: 1px;
}
.lang-flag:hover { opacity: 1; }
.lang-flag.current-lang {
  opacity: 1;
  outline: 2px solid var(--gold, #c4a265);
  outline-offset: 1px;
}
.lang-flag img {
  width: 26px;
  height: 20px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

/* ── Polylang 国旗スイッチャー ── */
.sailabo-lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sailabo-lang-switcher ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.sailabo-lang-switcher li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sailabo-lang-switcher li a {
  display: inline-flex;
  align-items: center;
  opacity: 0.55;
  transition: opacity 0.2s;
  border-radius: 3px;
  text-decoration: none;
}
.sailabo-lang-switcher li a:hover {
  opacity: 1;
}
.sailabo-lang-switcher li.current-lang a {
  opacity: 1;
  outline: 2px solid #c4a265;
  outline-offset: 1px;
}
.sailabo-lang-switcher li a img {
  width: 26px !important;
  height: 18px !important;
  object-fit: cover !important;
  border-radius: 2px !important;
  display: block !important;
}
.sailabo-lang-switcher li span {
  display: none;
}

/* ロゴ強制固定 */
a.nav-logo img { width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important; }

/* ── ナビロゴテキスト折り返し防止 ── */
.nav-logo-text {
  white-space: nowrap;
  overflow: hidden;
}
.nav-logo {
  flex-shrink: 0;
  min-width: 0;
}

/* ナビ幅調整 */
.site-nav {
  overflow: visible !important;
}
.site-nav > a:first-child {
  flex-shrink: 0 !important;
  min-width: auto !important;
}
