/*
Theme Name: BUDDY Theme
Author: BUDDY Inc.
Version: 1.0
Description: BUDDY株式会社 公式サイトテーマ
*/

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

:root {
  --accent: #2563EB;
  --accent-light: #EFF6FF;
  --blue-soft: #BFDBFE;
  --bg: #F8FAFE;
  --bg-2: #EEF4FF;
  --dark: #0F172A;
  --mid: #475569;
  --light: #94A3B8;
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Sans', 'Yu Gothic UI', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── ナビ ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(248,250,254,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

nav.scrolled {
  height: 44px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.25);
  background: rgba(248,250,254,1);
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
}

.logo span { color: var(--accent); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul a {
  text-decoration: none;
  color: var(--mid);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--accent); }

.nav-cta {
  background: var(--dark);
  color: white !important;
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent) !important; color: white !important; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.75);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,20,40,0.78) 0%,
    rgba(8,20,40,0.55) 45%,
    rgba(8,20,40,0.15) 75%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 0 80px 8%;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(4px);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -1px;
  max-width: 720px;
  margin-bottom: 1.8rem;
  color: white;
}

.hero h1 em {
  font-style: normal;
  color: #FCD34D;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.8);
  max-width: 460px;
  margin-bottom: 3rem;
  line-height: 1.9;
}

.hero .btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.hero .btn-ghost:hover {
  background: white;
  color: var(--dark);
  border-color: white;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,0.4);
}

.btn-ghost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.6);
  color: white;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: 1rem;
  transition: all 0.2s;
}

.btn-ghost:hover {
  background: white;
  color: var(--dark);
}

/* ── セクション共通 ── */
section { padding: 100px 5%; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

.section-title {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 1.2rem;
}

.section-desc {
  color: var(--mid);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.85;
}

/* ── ABOUT ── */
.about { background: white; }

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) saturate(0.9);
}

.about-photo-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.about-lead {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--mid);
  font-style: italic;
  margin-bottom: 2rem;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.1);
}

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-text h3 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.card-text p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
}

/* ── GREETING ── */
.greeting { background: var(--bg); }

.greeting-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.greeting-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.greeting-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}

.greeting-name {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.3rem;
}

.greeting-title {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 2rem;
}

.greeting-body {
  font-size: 1.02rem;
  color: var(--mid);
  line-height: 2;
  margin-bottom: 2.5rem;
}

.profile-list {
  list-style: none;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.profile-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 0.9rem;
  color: var(--mid);
  display: flex;
  gap: 1rem;
}

.profile-list li span:first-child {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
  min-width: 80px;
}

/* ── STANCE ── */
.stance { background: var(--bg-2); }

.stance-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.stance-body {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 2;
}

.stance-photo {
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.stance-photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.92) saturate(0.85);
}

/* ── SERVICES ── */
.services { background: white; }

.services-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/11;
  cursor: default;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-18px) scale(1.06);
  box-shadow: 0 32px 60px rgba(0,0,0,0.35);
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 2;
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.7) saturate(0.7);
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.8rem;
}

.service-icon {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
}

/* ── RECRUIT ── */
.recruit { background: var(--bg-2); }

.recruit-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.recruit-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.recruit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(37,99,235,0.1);
}

.recruit-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.recruit-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.recruit-table th {
  text-align: left;
  padding: 0.6rem 0;
  color: var(--accent);
  font-weight: 700;
  width: 90px;
  vertical-align: top;
}

.recruit-table td {
  padding: 0.6rem 0;
  color: var(--mid);
  line-height: 1.7;
}

/* ── NEWS ── */
.news { background: var(--bg); }

.news-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.news-more {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.news-more:hover { opacity: 0.7; }

.news-list {
  border-top: 1px solid rgba(0,0,0,0.07);
}

.news-item {
  display: grid;
  grid-template-columns: 120px 80px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  text-decoration: none;
  color: var(--dark);
  transition: background 0.15s, padding-left 0.15s;
  border-radius: 4px;
}

.news-item:hover {
  background: var(--accent-light);
  padding-left: 0.8rem;
}

.news-date {
  font-size: 0.82rem;
  color: var(--light);
  white-space: nowrap;
}

.news-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  white-space: nowrap;
}

.news-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
}

/* ── JOKE BAND ── */
.joke {
  background: var(--accent);
  padding: 70px 5%;
  text-align: center;
}

.joke-main {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 900;
  color: white;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.joke-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

/* ── CTA ── */
.cta-section {
  background: var(--dark);
  color: white;
  text-align: center;
}

.cta-section .section-label { color: var(--accent); }
.cta-section .section-title { color: white; }

.cta-section .section-desc {
  color: rgba(255,255,255,0.6);
  margin: 0 auto 2.5rem;
}

.btn-accent {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 18px 44px;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(37,99,235,0.4);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(37,99,235,0.5);
}

/* ── FOOTER ── */
footer {
  background: #111;
  color: rgba(255,255,255,0.5);
  padding: 60px 5% 40px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.8rem;
  letter-spacing: -0.5px;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.footer-related {
  font-size: 0.8rem;
  background: rgba(255,255,255,0.07);
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.footer-related:hover {
  background: rgba(255,255,255,0.14);
  color: white;
}

.footer-col h4 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: white; }

.footer-address {
  font-style: normal;
  font-size: 0.76rem;
  line-height: 1.85;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.7rem;
}

.footer-access-note {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.8rem;
  padding-left: 1.1em;
  position: relative;
}

.footer-access-note::before {
  content: '🚶';
  position: absolute;
  left: -0.1em;
  font-size: 0.9em;
}

.footer-col-access {
  display: flex;
  flex-direction: column;
}

.footer-map {
  border-radius: 8px;
  overflow: hidden;
  margin-top: auto;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 145px;
  border: 0;
  opacity: 0.82;
  filter: grayscale(0.3);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.8rem;
}

.services-notice {
  border-left: 3px solid var(--accent);
}

/* ── 個別記事 ── */
.single-post {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 5%;
}

.single-post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.single-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.single-post h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.4;
}

.single-post-body {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 2;
}

.single-post-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin: 2.5rem 0 1rem;
}

.single-post-body p { margin-bottom: 1.5rem; }

.back-link {
  display: inline-block;
  margin-top: 3rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover { opacity: 0.7; }

.sp-br { display: none; }
.pc-br { display: inline; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sp-br { display: inline; }
  .pc-br { display: none; }

  .hero-content {
    padding: 110px 6% 80px;
    max-width: 100%;
  }

  .about-inner,
  .stance-inner,
  .greeting-inner {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .greeting-photo {
    aspect-ratio: 4/3;
    max-height: 300px;
  }

  .recruit-inner-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { aspect-ratio: 16/9; }
  .recruit-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section { padding: 70px 6%; }

  .btn-ghost {
    margin-left: 0;
    margin-top: 0.8rem;
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .news-item { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ── Scroll fade-in ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Label slide-in ── */
.label-slide {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.label-slide.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── Title cut-in (slide from left) ── */
.title-cut {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.12s;
}

.title-cut.visible {
  opacity: 1;
  transform: translateX(0);
}

/* WordPress 6.x ブロックレイアウト制約の解除 */
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.is-layout-flow > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
