/* ============================================
   Yoshioka Group — Corporate Site Shared CSS
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory: #FFFFFF;
  --cream: #F1F5F9;
  --paper: #F8FAFC;
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --gray-d: #475569;
  --gray: #94A3B8;
  --gray-l: #CBD5E1;
  --line: #E2E8F0;
  --line-soft: #F1F5F9;
  --navy: #1E40AF;
  --navy-d: #0F172A;
  --leaf: #0369A1;
  --rust: #2563EB;
  --white: #FFFFFF;
  --max: 1320px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background: var(--ivory);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--ivory); }

a { color: inherit; text-decoration: none; }

.serif { font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-weight: 500; }
.en { font-family: "Cormorant Garamond", "Times New Roman", serif; }
.mono { font-family: "JetBrains Mono", "Courier New", monospace; }

/* ── TOP NOTICE BAR ── */
.notice-bar {
  background: var(--navy-d);
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: 0.03em;
}

.notice-bar .nb-left { display: flex; gap: 20px; align-items: center; }
.notice-bar .nb-dot { width: 5px; height: 5px; background: #60A5FA; border-radius: 50%; }
.notice-bar a { color: rgba(255,255,255,0.9); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.brand-jp {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.brand-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--gray);
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links > li > a {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}

.nav-links > li > a:hover,
.nav-links > li.active > a { border-color: var(--ink); }

.nav-links .en-label {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 2px;
  font-weight: 400;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 22px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.nav-contact:hover { background: var(--navy); }

/* ── PAGE HEADER (non-home) ── */
.page-head {
  padding: 80px 40px 64px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.page-head-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
}

.page-head-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  color: var(--gray);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.page-head-num::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gray);
  vertical-align: middle;
  margin-left: 14px;
}

.page-head-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 12px;
}

.page-head-jp {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.15em;
}

.breadcrumb {
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.1em;
  font-family: "Cormorant Garamond", serif;
}

.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 10px; }

/* ── SECTION LABELS ── */
.sect-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.sect-num::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gray);
}

.sect-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.sect-title .em {
  color: var(--rust);
  font-weight: 500;
}

.sect-sub {
  font-size: 15px;
  line-height: 2;
  color: var(--gray-d);
  max-width: 560px;
  margin-top: 28px;
}

/* ── PLACEHOLDER IMAGES ── */
.ph {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 22px,
      rgba(0,0,0,0.02) 22px,
      rgba(0,0,0,0.02) 23px
    );
}

.ph-label {
  position: relative;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 14px 20px;
  border: 1px dashed var(--gray-l);
  background: rgba(245,242,236,0.8);
  max-width: 75%;
}

.ph-dark {
  background: var(--navy-d);
}

.ph-dark::before {
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 22px,
      rgba(255,255,255,0.03) 22px,
      rgba(255,255,255,0.03) 23px
    );
}

.ph-dark .ph-label {
  color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.15);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .25s, color .25s;
  font-family: inherit;
}

.btn:hover { background: var(--ink); color: var(--ivory); }

.btn-fill {
  background: var(--ink);
  color: var(--ivory);
}

.btn-fill:hover {
  background: var(--navy);
  border-color: var(--navy);
}

.btn .arr {
  width: 20px; height: 1px; background: currentColor; position: relative;
}
.btn .arr::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ── LINK WITH ARROW ── */
.arr-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: padding .2s;
}

.arr-link:hover { padding-right: 8px; }

.arr-link::after {
  content: '→';
  font-family: monospace;
  font-size: 14px;
}

/* ── FOOTER ── */
.foot {
  background: var(--navy-d);
  color: rgba(255,255,255,0.7);
  padding: 80px 40px 32px;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.foot-brand-jp {
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  color: white;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.foot-brand-en {
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 28px;
}

.foot-desc {
  font-size: 13px;
  line-height: 2;
  color: rgba(255,255,255,0.55);
  max-width: 340px;
  margin-bottom: 28px;
}

.foot-contact {
  font-size: 12px;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
  font-style: normal;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.foot-col-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.foot-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  transition: color .2s;
}

.foot-links a:hover { color: white; }

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

.foot-copy { color: rgba(255,255,255,0.35); font-family: "Cormorant Garamond", serif; letter-spacing: 0.15em; }

.foot-legal { display: flex; gap: 24px; }
.foot-legal a { color: rgba(255,255,255,0.45); font-size: 12px; }
.foot-legal a:hover { color: white; }

/* ── FADE IN ON SCROLL ── */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.fade.in { opacity: 1; transform: none; }

/* ── UTILITIES ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.rule {
  height: 1px;
  background: var(--line);
  margin: 0;
}

.vr {
  width: 1px;
  height: 40px;
  background: var(--line);
}

/* ── HAMBURGER BUTTON (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  height: 64px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE — shared components ── */
@media (max-width: 768px) {

  /* Notice bar */
  .notice-bar {
    padding: 8px 20px;
    flex-direction: column;
    gap: 3px;
    font-size: 11px;
    text-align: center;
  }
  .notice-bar .nb-left { justify-content: center; }

  /* Nav */
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 0 20px;
  }
  .brand {
    flex: 1;
    height: 64px;
    align-items: center;
  }
  .brand-en { display: none; }
  .brand-jp { font-size: 18px; }
  .nav-hamburger { display: flex; }
  .nav-contact { display: none; }
  nav { width: 100%; order: 3; }
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-bottom: 8px;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links > li > a {
    display: block;
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--line-soft);
    letter-spacing: 0.05em;
  }
  .nav-links .en-label { display: none; }

  /* Page head */
  .page-head { padding: 36px 20px 28px; }
  .page-head-inner { grid-template-columns: 1fr; gap: 12px; }
  .page-head-en { font-size: 40px; }
  .page-head-jp { font-size: 16px; }

  /* Footer */
  .foot { padding: 48px 20px 24px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-top > div:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .foot-legal { flex-wrap: wrap; justify-content: center; gap: 16px; }

  /* Utils */
  .container { padding: 0 20px; }
  .sect-sub { max-width: 100%; }
}
