/*
Theme Name: hakoberu
Theme URI: https://hakoberu.net
Description: hakoberu（ハコベル）公式サイト用ワンページテーマ
Version: 1.0.0
Author: hakoberu
Author URI: https://hakoberu.net
Text Domain: hakoberu
*/

/* ============================================
   0. Variables & Reset
   ============================================ */
:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #E57373;
  --red-bg: #FFF5F5;
  --red-bg-deep: #FFEBEE;

  --black: #111111;
  --gray-900: #1A1A1A;
  --gray-700: #3D3D3D;
  --gray-500: #6E6E6E;
  --gray-300: #B0B0B0;
  --gray-200: #D9D9D9;
  --gray-100: #EFEFEF;
  --gray-50:  #F7F7F7;
  --white: #FFFFFF;

  --font-en: 'DM Sans', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  --max-w: 1080px;
  --pad-x: clamp(24px, 5vw, 48px);
  --section-gap: clamp(100px, 12vw, 160px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --tr: 0.5s var(--ease);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 1.9;
  color: var(--gray-700);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }

/* Fade */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   1. Header — fixed, minimal
   ============================================ */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 20px 0;
  transition: background var(--tr), box-shadow var(--tr), padding var(--tr);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gray-100);
  padding: 14px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.site-logo-text {
  font-family: var(--font-en); font-weight: 700;
  font-size: 20px; letter-spacing: -0.02em;
  color: var(--red);
}

/* Nav */
.nav-links {
  display: flex; align-items: center; gap: 28px; list-style: none;
  flex-shrink: 0;
}
.nav-links a {
  font-family: var(--font-en); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-500);
  transition: color var(--tr);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--black); }

.nav-contact-btn {
  font-family: var(--font-jp) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  background: var(--black);
  color: var(--white) !important;
  padding: 8px 22px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--tr) !important;
}
.nav-contact-btn:hover { background: var(--gray-900) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 1001;
}
.hamburger span {
  width: 20px; height: 1.5px; background: var(--black);
  transition: var(--tr);
}

/* ============================================
   2. Hero — full-screen, text-centered, white
      KURASERU style: big statement + scroll cue
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  background: var(--white);
  padding: 120px var(--pad-x) 80px;
}

/* subtle top-line accent */
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80px;
  background: linear-gradient(to bottom, var(--red), transparent);
  opacity: 0.3;
}

.hero-catch {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(26px, 4.2vw, 44px);
  line-height: 1.55;
  color: var(--black);
  margin-bottom: 36px;
  opacity: 0; animation: heroIn 1s var(--ease) 0.3s forwards;
}
.hero-catch .hl { color: var(--red); }

.hero-sub {
  max-width: 600px;
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 2.2;
  color: var(--gray-500);
  margin-bottom: 48px;
  opacity: 0; animation: heroIn 1s var(--ease) 0.6s forwards;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: heroIn 1s var(--ease) 0.9s forwards;
}
.hero-scroll span {
  font-family: var(--font-en); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray-300);
}
.hero-scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--gray-300), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; } 50% { opacity: 1; }
}

/* ============================================
   3. Business — 横並びリスト（KURASERU会社概要風）
   ============================================ */
.business {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--gray-100);
}

.section-heading {
  display: flex; align-items: baseline; gap: 24px;
  margin-bottom: 56px;
}
.section-heading-en {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  color: var(--gray-100);
  line-height: 1;
}
.section-heading-jp {
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--black);
}

.business-lead {
  max-width: 640px;
  font-size: 14.5px; color: var(--gray-500);
  line-height: 2; margin-bottom: 56px;
}

/* 3-column horizontal layout */
.biz-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-200);
}
.biz-item {
  padding: 40px 32px 40px 0;
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}
.biz-item:not(:nth-child(3n+1)) {
  padding-left: 32px;
  border-left: 1px solid var(--gray-200);
}
.biz-item-num {
  font-family: var(--font-en); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--red); margin-bottom: 18px;
}
.biz-item h3 {
  font-weight: 700; font-size: 16px;
  color: var(--black); margin-bottom: 12px;
  line-height: 1.5;
}
.biz-item p {
  font-size: 13.5px; color: var(--gray-500); line-height: 1.85;
}

/* ============================================
   4. Full-width image band
   ============================================ */
.img-band {
  width: 100%; height: 400px;
  position: relative; overflow: hidden;
}
.img-band-photo {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}

/* ============================================
   5. Message — 横2列 (左テキスト / 右プロフィール)
      KURASERU MEMBER風
   ============================================ */
.message {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--gray-100);
}

.message-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px; align-items: start;
}

.message-body { font-size: 14.5px; line-height: 2.2; color: var(--gray-700); }
.message-body p + p { margin-top: 20px; }

/* Profile card — right side */
.message-profile {
  text-align: center;
  padding: 40px 28px;
  background: var(--gray-50);
  border-radius: 8px;
}
.message-avatar {
  width: 140px; height: 140px; border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  background: var(--gray-100);
}
.message-avatar-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.message-profile-name {
  font-weight: 700; font-size: 18px; color: var(--black);
}
.message-profile-role {
  font-family: var(--font-en); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-500); margin-top: 2px;
}

/* ============================================
   6. Recruit — 背景グレー、定義リスト風
   ============================================ */
.recruit {
  padding: var(--section-gap) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

.recruit-lead {
  max-width: 640px;
  font-size: 14.5px; color: var(--gray-500);
  line-height: 2; margin-bottom: 48px;
}

/* Features as horizontal items */
.recruit-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-bottom: 56px;
}
.recruit-feat {
  padding: 28px 0;
  border-top: 2px solid var(--red);
}
.recruit-feat h4 {
  font-weight: 700; font-size: 15px;
  color: var(--black); margin-bottom: 8px;
}
.recruit-feat p {
  font-size: 13px; color: var(--gray-500); line-height: 1.85;
}

/* Job spec table — KURASERU dl style */
.recruit-spec {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.recruit-spec h3 {
  font-weight: 700; font-size: 16px;
  color: var(--black);
  padding: 24px 32px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.spec-dl { padding: 0 32px 32px; }
.spec-row {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row dt {
  font-weight: 700; color: var(--black); font-size: 13px;
}
.spec-row dd { color: var(--gray-700); line-height: 1.75; }

.recruit-cta {
  margin-top: 28px; padding: 0 32px 32px;
}
.recruit-cta .btn {
  display: block; width: 100%; text-align: center;
  font-family: var(--font-jp); font-weight: 700; font-size: 14px;
  padding: 16px; border-radius: 4px;
  background: var(--black); color: var(--white);
  border: none; cursor: pointer;
  transition: background var(--tr), transform var(--tr);
}
.recruit-cta .btn:hover {
  background: var(--gray-900); transform: translateY(-1px);
}

/* ============================================
   7. Access — KURASERU company-info style (dl list)
   ============================================ */
.access {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--gray-100);
}

.access-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
}

/* dl-style info */
.access-dl {}
.access-dl-row {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 12px; padding: 16px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.access-dl-row dt { font-weight: 700; color: var(--black); font-size: 13px; }
.access-dl-row dd { color: var(--gray-700); line-height: 1.75; }
.access-dl-row dd a { color: var(--red); transition: color var(--tr); }
.access-dl-row dd a:hover { color: var(--red-dark); }

/* Map */
.access-map {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--gray-100);
}
.access-map iframe { width: 100%; height: 100%; min-height: 340px; border: none; }

/* Contact banner */
.access-contact {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.contact-card {
  display: flex; align-items: center; gap: 20px;
  padding: 28px 32px;
  border: 1px solid var(--gray-100);
  border-radius: 6px;
  transition: box-shadow var(--tr);
}
.contact-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.contact-icon {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: 50%; background: var(--red-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contact-label {
  font-size: 11px; font-family: var(--font-en);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-500);
}
.contact-value {
  font-weight: 700; font-size: 16px; color: var(--black);
  margin-top: 2px;
}
.contact-value a { color: var(--black); transition: color var(--tr); }
.contact-value a:hover { color: var(--red); }
.contact-note { font-size: 11px; color: var(--gray-500); margin-top: 2px; }

/* ============================================
   8. Footer — minimal, no logo
   ============================================ */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--gray-100);
  text-align: center;
}
.footer-copy {
  font-size: 11px; color: var(--gray-300);
  font-family: var(--font-en);
  letter-spacing: 0.04em;
}

/* ============================================
   9. Responsive
   ============================================ */
@media (max-width: 1024px) {
  .biz-list { grid-template-columns: 1fr; }
  .biz-item { padding: 28px 0; }
  .biz-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: none; }
  .message-grid { grid-template-columns: 1fr; gap: 40px; }
  .message-profile { max-width: 320px; }
  .recruit-features { grid-template-columns: 1fr; }
  .access-layout { grid-template-columns: 1fr; }
  .access-contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--white);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 28px; z-index: 999;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: 16px; color: var(--gray-700) !important; }
  .hamburger { display: flex; }

  .hero { padding: 120px var(--pad-x) 60px; }

  .section-heading { flex-direction: column; gap: 4px; }
  .section-heading-en { font-size: 36px; }

  .img-band { height: 240px; }

  .spec-row { grid-template-columns: 1fr; gap: 4px; }

  .access-dl-row { grid-template-columns: 1fr; gap: 4px; }
}
