/*
Theme Name: FujinoBase
Theme URI: https://fujinobase.com/
Author: ChatGPT
Author URI: https://openai.com/
Description: FUJINO BASE original theme
Version: 1.1
*/

:root {
  --color-bg: #f6f4ef;
  --color-text: #1f2937;
  --color-sub: #6b7280;
  --color-line: rgba(255, 255, 255, 0.28);
  --color-white: #ffffff;
  --color-dark: #111827;
  --color-accent: #b91c1c;
  --container: 1200px;
  --header-h: 88px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.font-eng {
  font-family: 'Oswald', sans-serif;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .site-logo,
.site-header .site-nav a,
.site-header .header-btn {
  transition: color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease;
}

/* 初期状態：ヒーロー上で白文字 */
.site-header .site-logo {
  color: #fff;
}

.site-header .site-logo__sub {
  color: rgba(255,255,255,.8);
}

.site-header .site-nav {
  color: rgba(255,255,255,.92);
}

.site-header .header-btn {
  color: #fff;
  border-color: rgba(255,255,255,.45);
  background: transparent;
}

.site-header .nav-toggle span {
  background: #fff;
}

/* スクロール後：白背景 */
.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  backdrop-filter: blur(10px);
}

.site-header.is-scrolled .site-logo {
  color: #1f2937;
}

.site-header.is-scrolled .site-logo__sub {
  color: #64748b;
}

.site-header.is-scrolled .site-nav {
  color: #334155;
}

.site-header.is-scrolled .header-btn {
  color: #1f2937;
  border-color: rgba(15,23,42,.16);
  background: #fff;
}

.site-header.is-scrolled .nav-toggle span {
  background: #1f2937;
}

.site-logo {
  color: var(--color-white);
}

.site-logo__sub {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  opacity: 0.76;
  margin-bottom: 6px;
}

.site-logo__main {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 600;
}

@media (max-width: 767px) {
  .site-header:not(.is-scrolled) .site-logo {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a {
  opacity: 0.88;
  transition: opacity 0.3s ease;
}

.site-nav a:hover {
  opacity: 1;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Mobile nav button */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
  transition: 0.3s ease;
}

/* ========================================
   HERO
======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #d9d9d9;
  color: #fff;
}

.hero__panes {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero__pane {
  position: relative;
  flex: 1 1 50%;
  width: 50%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  isolation: isolate;
  overflow: hidden;
  transition: flex 0.45s ease;
}

.hero__pane::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.01);
  transition: transform 0.8s ease;
}

.hero__pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(120, 120, 120, 0.34);
  z-index: -1;
  transition: background 0.45s ease;
}

.hero__pane--summer::before {
  background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1800&q=80');
}

.hero__pane--winter::before {
  background-image: url('https://images.unsplash.com/photo-1517299321609-52687d1bc55a?auto=format&fit=crop&w=1800&q=80');
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.pane-kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.9);
}

.pane-title {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(72px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: #fff;
}

.pane-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: transparent;
}

.hero__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
  z-index: 5;
}

.hero__center-brand {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: min(90%, 360px);
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.94);
  color: #1f2937;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.hero__center-brand small {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.35em;
  color: #8a94ab;
  font-weight: 700;
}

.hero__center-brand h1 {
  margin: 0;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  color: #16213d;
}

.hero__center-brand p {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #6b7280;
  font-weight: 700;
}

.hero__center-brand::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin: 14px auto 0;
  background: #d61f3c;
}

@media (min-width: 768px) and (max-width: 1800px) {
  .hero__content {
    top: -10%;
  }
  .hero__center-brand {
    top: 70%;
    transform: translate(-50%, -50%);
  }
}

/* Sections */
.intro {
  padding: 96px 0;
  background: #fff;
}

.intro__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 44px;
  align-items: start;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #b45309;
  font-weight: 700;
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.section-text {
  margin: 0;
  color: var(--color-sub);
  font-size: 16px;
}

.intro-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 28px;
}

.intro-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.intro-card p {
  margin: 0;
  color: var(--color-sub);
  font-size: 15px;
}

.portal {
  padding: 0 0 96px;
  background: #fff;
}

.portal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.portal-card {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  isolation: isolate;
}

.portal-card::before,
.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.portal-card::before {
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
  transition: transform 0.8s ease;
}

.portal-card:hover::before {
  transform: scale(1.08);
}

.portal-card::after {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.84) 86%);
}

.portal-card--summer::before {
  background-image: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1200&q=80');
}

.portal-card--winter::before {
  background-image: url('https://images.unsplash.com/photo-1486911278844-a81c5267e227?auto=format&fit=crop&w=1200&q=80');
}

.portal-card__content {
  max-width: 460px;
}

.portal-card__sub {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  opacity: 0.9;
}

.portal-card__title {
  margin: 0 0 14px;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: 0.08em;
}

.portal-card__text {
  margin: 0 0 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
}

.portal-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.portal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.base-section {
  padding: 96px 0;
  background: #f8fafc;
}

.base-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.base-box__image {
  min-height: 420px;
  background: url('https://images.unsplash.com/photo-1505693416388-ac5ce068fe85?auto=format&fit=crop&w=1200&q=80') center / cover no-repeat;
}

.base-box__content {
  padding: 48px;
}

.base-points {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.base-points li {
  padding-left: 20px;
  position: relative;
  color: var(--color-sub);
}

.base-points li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.cta {
  padding: 96px 0;
  background: #111827;
  color: #fff;
  text-align: center;
}

.cta p {
  width: min(100%, 780px);
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.72);
}

.cta__eyebrow {
  color: #f59e0b;
}

.cta__title {
  margin-bottom: 16px;
}

.cta__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cta__buttons .hero-btn--fill {
  background: #fff;
}

.site-footer {
  padding: 26px 0;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

/* Desktop hover */
@media (min-width: 1025px) {
  .hero__panes:hover .hero__pane {
    flex: 0 0 46%;
  }

  .hero__panes .hero__pane:hover {
    flex: 0 0 54%;
  }

  .hero__panes .hero__pane:hover::before {
    transform: scale(1.05);
  }

  .hero__panes .hero__pane:hover::after {
    background: rgba(120, 120, 120, 0.18);
  }
}

/* Tablet and down */
@media (max-width: 1024px) {
  .site-nav {
    position: fixed;
    top: 76px;
    right: 20px;
    width: min(320px, calc(100% - 40px));
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .intro__grid,
  .base-box,
  .portal__grid {
    grid-template-columns: 1fr;
  }

  .pane-title {
    font-size: clamp(56px, 10vw, 88px);
  }

  .hero__pane {
    padding-inline: 30px;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  :root {
    --header-h: 76px;
  }

  .site-logo__sub {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .site-logo__main {
    font-size: 28px;
  }

  .hero {
    height: 100vh;
    min-height: 100vh;
  }

  .hero__panes {
    flex-direction: column;
    height: 100%;
  }

  .hero__pane {
    flex: 1 1 50%;
    width: 100%;
    min-width: 100%;
    height: 50%;
    min-height: 50%;
    padding: 20px 16px;
  }

  .hero__pane--summer {
    align-items: flex-start;
    padding-top: 52px;
    padding-bottom: 20px;
  }

  .hero__pane--winter {
    align-items: flex-end;
    padding-top: 20px;
    padding-bottom: 52px;
  }

  .hero__content {
    width: 100%;
    text-align: center;
  }

  .hero__center-brand {
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100% - 80px);
    max-width: 260px;
    padding: 18px 12px;
  }

  .hero__center-brand small {
    margin-bottom: 8px;
    font-size: 9px;
    letter-spacing: 0.28em;
  }

  .hero__center-brand h1 {
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: 0.05em;
  }

  .hero__center-brand p {
    margin-top: 8px;
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .hero__center-brand::after {
    width: 28px;
    height: 3px;
    margin-top: 10px;
  }

  .hero__divider {
    display: none;
  }

  .pane-kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }

  .pane-title {
    font-size: 42px;
    line-height: 0.95;
    letter-spacing: 0.03em;
  }

  .pane-link {
    margin-top: 14px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .section-title {
    font-size: 28px;
  }

  .portal-card {
    min-height: 420px;
    padding: 24px;
  }

  .base-box__content {
    padding: 32px 24px;
  }

  .site-footer__inner {
    display: block;
  }
}

@media (max-width: 375px) {
  .hero__pane--summer {
    padding-top: 44px;
  }

  .hero__pane--winter {
    padding-bottom: 44px;
  }

  .pane-kicker {
    font-size: 9px;
  }

  .pane-title {
    font-size: 36px;
  }

  .pane-link {
    min-height: 34px;
    padding: 0 12px;
    font-size: 9px;
  }

  .hero__center-brand {
    width: calc(100% - 90px);
    max-width: 230px;
    padding: 16px 10px;
  }

  .hero__center-brand h1 {
    font-size: 19px;
  }

  .hero__center-brand p {
    font-size: 7px;
  }
}

/* WP admin bar adjustment */
body.admin-bar .hero {
  min-height: calc(100vh - 46px);
  height: calc(100vh - 46px);
}

@media (min-width: 783px) {
  body.admin-bar .hero {
    min-height: calc(100vh - 32px);
    height: calc(100vh - 32px);
  }
}

@media (max-width: 767px) {
  .hero__pane--summer .hero__content {
    transform: translateY(50%);
  }

  .hero__pane--winter .hero__content {
    transform: translateY(-50%);
  }
}

/* =========================
   Header
========================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.site-header.is-scrolled {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header .site-logo,
.site-header .site-nav a,
.site-header .header-btn,
.site-header .nav-toggle {
  transition: color .35s ease, border-color .35s ease, opacity .35s ease;
}

.site-header .site-logo {
  color: #fff;
}

.site-header .site-logo__sub {
  color: rgba(255,255,255,.8);
}

.site-header.is-scrolled .site-logo {
  color: #1f2937;
}

.site-header.is-scrolled .site-logo__sub {
  color: #64748b;
}

/* =========================
   Nav toggle
========================= */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 130;
  color: inherit;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform .3s ease, opacity .3s ease, top .3s ease;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 21px;
}

.nav-toggle span:nth-child(3) {
  top: 29px;
}

.site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

.site-header.is-scrolled .nav-toggle {
  color: #111827;
}

.nav-toggle.is-active span:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* =========================
   Desktop nav
========================= */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav__panel,
.site-nav__inner,
.site-nav__sns {
  display: contents;
}

/* =========================
   Mobile nav
========================= */
@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  .site-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity .35s ease;
  }

  .site-nav__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform .42s cubic-bezier(.22,.61,.36,1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 110px 32px 40px;
  }

  .site-nav.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .site-nav.is-open::before {
    opacity: 1;
  }

  .site-nav.is-open .site-nav__panel {
    transform: translateX(0);
  }

  .site-nav__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .site-nav__inner a {
    color: #8b8b8b;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: .12em;
    line-height: 1.4;
  }

  .site-nav__sns {
    position: absolute;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
  }

  .site-nav__sns a {
    color: #8b8b8b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  /* スマホ透明ヘッダー時はロゴ非表示 */
  @media (max-width: 767px) {
    .site-header:not(.is-scrolled) .site-logo {
      display: none;
    }

    .site-header:not(.is-scrolled) .site-header__inner {
      justify-content: flex-end;
    }
  }
}