/*
Theme Name: Well-Biz Partners
Theme URI: https://wellbiz-partners.com
Author: Well-Biz Partners
Description: フィットネス事業者のマーケティングパートナー Well-Biz Partners コーポレートサイト用テーマ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: well-biz-partners
*/

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  color: #17322E;
  background: #FDFEFD;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: #0FA3A0; text-decoration: none; }
a:hover { color: #1FAF4B; }

img { max-width: 100%; }

::selection { background: rgba(15, 163, 160, 0.18); }

/* ---------- Animations ---------- */
@keyframes wbFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wbScrollDot {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 1; }
  78% { transform: translateY(72px); opacity: 0; }
  100% { transform: translateY(72px); opacity: 0; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4.5vw;
  background: rgba(253, 254, 253, 0);
  transition: background 0.45s ease, box-shadow 0.45s ease, padding 0.45s ease;
}

.site-header.is-scrolled {
  background: rgba(253, 254, 253, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(23, 50, 46, 0.07);
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 36px; display: block; }

.site-nav { display: flex; align-items: center; gap: 34px; }

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #17322E;
  transition: color 0.3s ease;
}
.nav-link:hover { color: #0FA3A0; }
.nav-link .nav-link-en {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.nav-link .nav-link-ja {
  font-size: 10px;
  color: #6B7F7A;
  letter-spacing: 0.08em;
}
.nav-link.is-current { color: #0FA3A0; }
.nav-link.is-current .nav-link-ja { color: #0F7E7B; }

.nav-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: linear-gradient(135deg, #0FA3A0, #22B14C);
  color: #FFFFFF;
  padding: 10px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 163, 160, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.nav-cta:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 163, 160, 0.35); }
.nav-cta .nav-cta-en { font-family: 'Jost', sans-serif; font-size: 10px; font-weight: 500; letter-spacing: 0.26em; opacity: 0.9; }
.nav-cta .nav-cta-ja { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #17322E;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons & Links ---------- */
.btn-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: linear-gradient(135deg, #0FA3A0, #22B14C);
  color: #FFFFFF;
  padding: 16px 44px;
  border: none;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(15, 163, 160, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  cursor: pointer;
}
.btn-primary:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15, 163, 160, 0.38); }
.btn-primary .btn-en { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.28em; opacity: 0.9; }
.btn-primary .btn-ja { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.btn-primary.btn-lg { padding: 18px 56px; box-shadow: 0 12px 30px rgba(15, 163, 160, 0.35); }
.btn-primary.btn-lg:hover { box-shadow: 0 16px 36px rgba(15, 163, 160, 0.45); }
.btn-primary.btn-lg .btn-ja { font-size: 15px; }

.btn-outline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(23, 50, 46, 0.28);
  color: #17322E;
  padding: 15px 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.btn-outline:hover { border-color: #0FA3A0; color: #0F7E7B; }
.btn-outline .btn-en { font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.28em; opacity: 0.8; }
.btn-outline .btn-ja { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #17322E;
  transition: color 0.3s ease;
}
.link-underline:hover { color: #0FA3A0; }
.link-underline .link-en { font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 0.24em; }
.link-underline .link-bar { display: inline-block; width: 52px; height: 1px; background: currentColor; }

.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 12px 26px;
  border: 1px solid rgba(23, 50, 46, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #17322E;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.news-pill:hover { border-color: #0FA3A0; color: #0F7E7B; }

.news-row {
  display: grid;
  grid-template-columns: 110px 100px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid #E2ECE8;
  color: #17322E;
  transition: color 0.3s ease;
}
.news-row:hover { color: #0FA3A0; }
.news-row .news-date { font-family: 'Jost', sans-serif; font-size: 14px; letter-spacing: 0.08em; color: #6B7F7A; }
.news-row .news-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; color: #0F7E7B; border: 1px solid rgba(15, 163, 160, 0.35); border-radius: 999px; padding: 4px 0; text-align: center; }
.news-row .news-title { font-size: 15px; letter-spacing: 0.04em; }
.news-row .news-arrow { font-size: 15px; }

.service-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(23, 50, 46, 0.2);
  color: #17322E;
  font-size: 18px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.service-arrow:hover { background: linear-gradient(135deg, #0FA3A0, #22B14C); color: #FFFFFF; border-color: transparent; }

.breadcrumb-link { color: #6B7F7A; transition: color 0.3s ease; }
.breadcrumb-link:hover { color: #0FA3A0; }

.footer-link { font-size: 13.5px; letter-spacing: 0.08em; color: #40564F; transition: color 0.3s ease; }
.footer-link:hover { color: #0FA3A0; }

.pagetop-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #40564F;
  transition: color 0.3s ease;
}
.pagetop-link:hover { color: #0FA3A0; }

.mail-link {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #0F7E7B;
  transition: color 0.3s ease;
}
.mail-link:hover { color: #1FAF4B; }

/* ---------- Forms (Contact) ---------- */
.wb-form { background: #FFFFFF; border: 1px solid #E2ECE8; border-radius: 8px; padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 32px; box-shadow: 0 18px 44px rgba(23, 50, 46, 0.05); }
.wb-field { display: flex; flex-direction: column; gap: 10px; }
.wb-label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.08em; color: #17322E; }
.wb-required { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #FFFFFF; background: linear-gradient(135deg, #0FA3A0, #22B14C); border-radius: 4px; padding: 3px 8px; }
.wb-optional { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: #6B7F7A; border: 1px solid #DCE8E3; border-radius: 4px; padding: 2px 8px; }
.wb-input, .wb-select, .wb-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #DCE8E3;
  border-radius: 6px;
  background: #FDFEFD;
  font-family: inherit;
  font-size: 14px;
  color: #17322E;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.wb-textarea { line-height: 1.9; resize: vertical; }
.wb-input:focus, .wb-select:focus, .wb-textarea:focus {
  border-color: #0FA3A0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 163, 160, 0.12);
}
.wb-form-actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 8px; }
.wb-form-note { margin: 0; font-size: 12px; letter-spacing: 0.04em; color: #6B7F7A; }
.wb-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wb-form-error {
  background: #FDECEC;
  border: 1px solid rgba(214, 69, 69, 0.35);
  color: #9A3030;
  border-radius: 6px;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.9;
}

.wb-thanks {
  background: #FFFFFF;
  border: 1px solid #E2ECE8;
  border-radius: 8px;
  padding: clamp(48px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  box-shadow: 0 18px 44px rgba(23, 50, 46, 0.05);
}
.wb-thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0FA3A0, #22B14C);
  color: #FFFFFF;
  font-size: 28px;
}

/* ---------- Image Slots (Customizer-managed photos) ---------- */
.wb-image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 163, 160, 0.08), rgba(34, 177, 76, 0.08));
}
.wb-image-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wb-image-slot .wb-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: #6B7F7A;
}

/* ---------- Utility ---------- */
.wb-gradient-text {
  background: linear-gradient(135deg, #0FA3A0, #22B14C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: #FDFEFD;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    padding: 40px;
    box-shadow: -8px 0 30px rgba(23, 50, 46, 0.12);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 90;
  }
  .site-nav.is-open { transform: translateX(0); }
  .nav-link, .nav-cta { align-items: flex-start; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  dl > div, .company-row { grid-template-columns: 1fr !important; gap: 8px !important; }

  /* Row-style content blocks (number/icon | text | optional arrow) become
     stacked flex layouts — the fixed number/arrow tracks otherwise squeeze
     the text column down to ~110px on narrow screens. */
  .news-row, .svc-row, .value-row, .philosophy-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }
  .svc-row, .philosophy-row { gap: 16px !important; }
  .news-row .news-badge { order: -1; }
  .svc-row > a.service-arrow { align-self: flex-start; }

  /* Section padding: the desktop values (120–190px) leave very little
     room for content on short mobile viewports. */
  section[data-screen-label] {
    padding-top: 88px !important;
    padding-bottom: 88px !important;
    padding-left: 6vw !important;
    padding-right: 6vw !important;
  }
  section[data-screen-label$="Hero"] {
    padding-top: 128px !important;
    padding-bottom: 64px !important;
  }
  #wb-top[data-screen-label="Hero"] {
    min-height: auto !important;
    padding-top: 132px !important;
    padding-bottom: 72px !important;
  }
  #wb-top[data-screen-label="Hero"] > div:last-of-type {
    display: none; /* the absolutely-positioned "Scroll" cue no longer fits a compact hero */
  }
}
