/* ============================================================
   HAREBARE Inc. demo site — design tokens & base
   ============================================================ */
:root {
  --bg: #FFF9EC;
  --bg-soft: #FFF3D6;
  --ink: #221B10;
  --ink-soft: #5A5140;
  --yellow: #FFC800;
  --coral: #FF6A5B;
  --sky: #4FB3FF;
  --green: #2FB673;
  --pink: #FF8FC5;
  --purple: #8E7CFF;
  --white: #FFFDF7;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --font-en: "Bricolage Grotesque", "Zen Kaku Gothic New", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-hand: "Yusei Magic", "Zen Kaku Gothic New", sans-serif;
  --radius-l: 32px;
  --radius-m: 20px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  font-family: var(--font-ja);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.en { font-family: var(--font-en); letter-spacing: 0.01em; }
.hand { font-family: var(--font-hand); font-weight: 400; }

/* ---------- sample notice ---------- */
.sample-notice {
  position: fixed; bottom: 12px; left: 12px; z-index: 900;
  background: var(--ink); color: var(--white);
  font-size: 11px; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 999px; opacity: 0.85;
  pointer-events: none;
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
}
.loader-face { width: 90px; height: 90px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  transition: transform 0.5s var(--smooth);
}
.site-header.is-hidden { transform: translateY(-110%); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 40px; height: 40px; transition: transform 0.6s var(--bounce); }
.logo:hover .logo-mark { transform: rotate(180deg) scale(1.12); }
.logo-text { font-family: var(--font-en); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.gnav { display: flex; align-items: center; gap: 6px; }
.gnav a {
  font-size: 14px; font-weight: 700; padding: 9px 16px;
  border-radius: 999px; background: transparent;
  transition: background 0.3s var(--smooth), transform 0.4s var(--bounce);
  display: inline-block;
}
.gnav a:hover { background: var(--white); transform: translateY(-3px) rotate(-2deg); }
.gnav a.is-current { background: var(--ink); color: var(--white); }
.gnav .nav-contact {
  background: var(--ink); color: var(--white); margin-left: 8px;
}
.gnav .nav-contact:hover { background: var(--coral); transform: translateY(-3px) rotate(2deg); }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 20px 80px;
}
.hero-bg-shape { position: absolute; pointer-events: none; }
.hero-title {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(56px, 13.5vw, 190px);
  letter-spacing: -0.03em; line-height: 0.95;
  display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center;
  position: relative; z-index: 2;
}
.hero-title .ch { display: inline-block; will-change: transform; }
.hero-title .hero-shape { width: 0.62em; height: 0.62em; margin: 0 0.04em; align-self: center; }
.hero-copy {
  font-family: var(--font-hand);
  font-size: clamp(22px, 3.4vw, 40px);
  margin-top: 28px; position: relative; z-index: 2;
  text-align: center;
}
.hero-sub {
  font-size: clamp(13px, 1.5vw, 16px); color: var(--ink-soft);
  margin-top: 14px; text-align: center; position: relative; z-index: 2;
}
.scroll-sign {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
}
.scroll-sign svg { animation: hop 1.6s var(--bounce) infinite; }
@keyframes hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--yellow);
  border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink);
  overflow: hidden; padding: 14px 0;
  transform: rotate(-1.2deg) scale(1.02);
  position: relative; z-index: 3;
}
.marquee.alt { background: var(--pink); transform: rotate(1.2deg) scale(1.02); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-item {
  display: flex; align-items: center; gap: 26px;
  font-family: var(--font-en); font-weight: 800; font-size: 26px;
  white-space: nowrap; padding-right: 26px;
}
.marquee-item .ja { font-family: var(--font-hand); font-size: 22px; }
.marquee-item svg { width: 28px; height: 28px; }

/* ---------- section base ---------- */
.section { padding: 130px 6vw; position: relative; }
.section-head { margin-bottom: 56px; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 800; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--white); border: 2.5px solid var(--ink);
  padding: 8px 18px; border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 26px;
}
.section-label svg { width: 16px; height: 16px; }
.section-title {
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 900;
  line-height: 1.4; letter-spacing: 0.02em;
}
.section-title .accent { position: relative; display: inline-block; }
.section-title .accent::after {
  content: ""; position: absolute; left: -2%; bottom: 4px;
  width: 104%; height: 0.34em; background: var(--yellow);
  z-index: -1; border-radius: 4px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--smooth) 0.25s;
}
.is-inview .section-title .accent::after { transform: scaleX(1); }

/* ---------- about ---------- */
.about { text-align: center; overflow: hidden; }
.about-lead {
  font-size: clamp(24px, 3.6vw, 44px); font-weight: 900; line-height: 2;
  margin-bottom: 34px;
}
.about-lead .hand-accent { font-family: var(--font-hand); color: var(--coral); font-weight: 400; }
.about-text { max-width: 640px; margin: 0 auto 44px; color: var(--ink-soft); font-size: 15.5px; }
.about-btn-wrap { display: flex; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 16px;
  background: var(--ink); color: var(--white);
  padding: 18px 34px; border-radius: 999px;
  border: 2.5px solid var(--ink);
  transition: transform 0.45s var(--bounce), background 0.3s, color 0.3s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-4px) rotate(-1.5deg) scale(1.03); background: var(--coral); border-color: var(--coral); }
.btn .arrow { transition: transform 0.45s var(--bounce); }
.btn:hover .arrow { transform: translateX(5px) rotate(-10deg); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--yellow); border-color: var(--ink); color: var(--ink); }

/* ---------- service cards ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
  border: 3px solid var(--ink); border-radius: var(--radius-l);
  padding: 40px 30px 34px; position: relative;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--ink);
  transition: transform 0.5s var(--bounce), box-shadow 0.5s var(--bounce);
  display: flex; flex-direction: column; gap: 16px;
}
.service-card:hover { transform: translate(-3px, -8px) rotate(-1deg); box-shadow: 12px 14px 0 var(--ink); }
.service-card.c-yellow { background: var(--yellow); }
.service-card.c-sky { background: var(--sky); }
.service-card.c-pink { background: var(--pink); }
.service-icon { width: 74px; height: 74px; }
.service-card:hover .service-icon { animation: wiggle 0.7s var(--bounce); }
@keyframes wiggle {
  0%,100% { transform: rotate(0); } 30% { transform: rotate(-11deg) scale(1.1); } 65% { transform: rotate(8deg); }
}
.service-num { font-family: var(--font-en); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; opacity: 0.55; }
.service-name { font-size: 24px; font-weight: 900; line-height: 1.5; }
.service-name .en-sub { display: block; font-family: var(--font-en); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.6; margin-top: 2px; }
.service-desc { font-size: 14px; line-height: 2; flex: 1; }
.service-link {
  font-family: var(--font-en); font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ---------- stats ---------- */
.stats { background: var(--ink); color: var(--white); border-radius: 48px; margin: 0 3vw; }
.stats .section-label { box-shadow: 4px 4px 0 var(--yellow); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.stat-item { text-align: center; padding: 30px 10px; position: relative; }
.stat-item + .stat-item::before {
  content: ""; position: absolute; left: 0; top: 20%; height: 60%;
  border-left: 2px dashed rgba(255, 253, 247, 0.3);
}
.stat-value {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(52px, 7vw, 92px); line-height: 1;
  color: var(--yellow);
}
.stat-item:nth-child(2) .stat-value { color: var(--pink); }
.stat-item:nth-child(3) .stat-value { color: var(--sky); }
.stat-unit { font-size: 20px; font-weight: 700; margin-left: 4px; }
.stat-label { margin-top: 12px; font-size: 14px; font-weight: 700; opacity: 0.85; }

/* ---------- news ---------- */
.news-list { border-top: 2.5px solid var(--ink); }
.news-item {
  display: grid; grid-template-columns: 130px 120px 1fr auto;
  align-items: center; gap: 22px;
  padding: 26px 10px; border-bottom: 2.5px solid var(--ink);
  transition: background 0.3s, transform 0.4s var(--bounce);
}
.news-item:hover { background: var(--white); transform: translateX(6px); }
.news-date { font-family: var(--font-en); font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.news-cat {
  font-size: 11.5px; font-weight: 800; text-align: center;
  border: 2px solid var(--ink); border-radius: 999px; padding: 4px 10px;
  background: var(--yellow);
}
.news-cat.cat-event { background: var(--sky); }
.news-cat.cat-media { background: var(--pink); }
.news-title-text { font-size: 15px; font-weight: 700; }
.news-arrow { width: 22px; height: 22px; }

/* ---------- big CTA ---------- */
.big-cta {
  text-align: center; padding: 150px 6vw; position: relative; overflow: hidden;
}
.big-cta-title {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(44px, 9vw, 120px); letter-spacing: -0.02em; line-height: 1.05;
  position: relative; z-index: 2;
}
.big-cta-sub { font-family: var(--font-hand); font-size: clamp(18px, 2.6vw, 28px); margin: 22px 0 40px; position: relative; z-index: 2; }
.cta-badge {
  position: absolute; right: 8vw; top: 60px; width: 130px; height: 130px; z-index: 3;
}
.cta-badge svg { width: 100%; height: 100%; }
.badge-spin { animation: spin 14s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: var(--white);
  border-radius: 48px 48px 0 0;
  padding: 70px 6vw 30px; position: relative;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo .logo-text { color: var(--white); font-size: 26px; }
.footer-copy-line { font-family: var(--font-hand); color: var(--yellow); font-size: 15px; }
.footer-nav { display: flex; gap: 34px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; font-weight: 700; opacity: 0.85; transition: opacity 0.3s, transform 0.4s var(--bounce); display: inline-block; }
.footer-nav a:hover { opacity: 1; transform: translateY(-3px); color: var(--yellow); }
.footer-bottom {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255, 253, 247, 0.2);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11.5px; opacity: 0.6;
}

/* ---------- inview animation base ---------- */
[data-anim] { opacity: 0; }
.anim-ready [data-anim] { opacity: 1; }

/* ---------- floating deco shapes ---------- */
.deco { position: absolute; pointer-events: none; z-index: 1; }

/* ============================================================
   sub pages
   ============================================================ */
.page-hero {
  padding: 170px 6vw 70px; position: relative; overflow: hidden; text-align: center;
}
.page-hero-en {
  font-family: var(--font-en); font-weight: 800;
  font-size: clamp(48px, 9vw, 110px); letter-spacing: -0.02em; line-height: 1;
  position: relative; z-index: 2;
}
.page-hero-ja { font-family: var(--font-hand); font-size: clamp(16px, 2.2vw, 22px); margin-top: 16px; color: var(--ink-soft); position: relative; z-index: 2; }

/* service detail blocks */
.sv-block {
  border: 3px solid var(--ink); border-radius: var(--radius-l);
  padding: 54px 6vw; margin-bottom: 40px;
  position: relative; overflow: hidden;
  box-shadow: 8px 8px 0 var(--ink);
}
.sv-block.b-yellow { background: var(--yellow); }
.sv-block.b-sky { background: var(--sky); }
.sv-block.b-pink { background: var(--pink); }
.sv-block-head { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; flex-wrap: wrap; }
.sv-block-icon { width: 88px; height: 88px; flex-shrink: 0; }
.sv-block-num { font-family: var(--font-en); font-weight: 800; font-size: 15px; letter-spacing: 0.12em; opacity: 0.55; display: block; }
.sv-block-title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 900; }
.sv-block-title .en-sub { font-family: var(--font-en); font-size: 14px; font-weight: 700; opacity: 0.6; display: block; }
.sv-block-desc { max-width: 700px; font-size: 15px; margin-bottom: 26px; }
.sv-menu { display: flex; flex-wrap: wrap; gap: 12px; }
.sv-menu li {
  background: var(--white); border: 2.5px solid var(--ink);
  border-radius: 999px; padding: 9px 20px;
  font-size: 13.5px; font-weight: 800;
  transition: transform 0.4s var(--bounce);
}
.sv-menu li:hover { transform: translateY(-4px) rotate(-2deg); }

/* flow steps */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.flow-step {
  background: var(--white); border: 3px solid var(--ink);
  border-radius: var(--radius-m); padding: 30px 22px;
  position: relative; box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.5s var(--bounce);
}
.flow-step:hover { transform: translateY(-7px) rotate(1.2deg); }
.flow-num {
  font-family: var(--font-en); font-weight: 800; font-size: 40px;
  color: var(--coral); line-height: 1;
}
.flow-step:nth-child(2) .flow-num { color: var(--sky); }
.flow-step:nth-child(3) .flow-num { color: var(--green); }
.flow-step:nth-child(4) .flow-num { color: var(--purple); }
.flow-name { font-size: 18px; font-weight: 900; margin: 12px 0 8px; }
.flow-desc { font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

/* company */
.company-table { width: 100%; border-collapse: collapse; max-width: 780px; margin: 0 auto; }
.company-table th, .company-table td { padding: 22px 14px; border-bottom: 2.5px dashed var(--ink); text-align: left; font-size: 15px; vertical-align: top; }
.company-table th { width: 180px; font-weight: 900; white-space: nowrap; }
.message-box { max-width: 780px; margin: 0 auto; text-align: center; }
.message-lead { font-size: clamp(22px, 3vw, 32px); font-weight: 900; line-height: 2.1; margin-bottom: 28px; }
.message-body { color: var(--ink-soft); font-size: 15px; text-align: left; }
.message-sign { margin-top: 30px; font-weight: 700; }
.message-sign .hand { font-size: 24px; margin-left: 12px; }

/* members */
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member-card { text-align: center; }
.member-avatar {
  width: 100%; aspect-ratio: 1; border-radius: 36px;
  border: 3px solid var(--ink); overflow: hidden;
  transition: transform 0.5s var(--bounce);
  box-shadow: 5px 5px 0 var(--ink);
}
.member-card:hover .member-avatar { transform: rotate(-3deg) scale(1.05); }
.member-avatar svg { width: 100%; height: 100%; display: block; }
.member-name { font-weight: 900; font-size: 16px; margin-top: 14px; }
.member-role { font-size: 12.5px; color: var(--ink-soft); }

/* contact */
.contact-wrap { max-width: 720px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 26px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-weight: 900; font-size: 14.5px; display: flex; align-items: center; gap: 10px; }
.req {
  font-size: 10.5px; font-weight: 800; color: var(--white);
  background: var(--coral); border-radius: 999px; padding: 2px 10px;
}
.form-input, .form-textarea {
  font-family: var(--font-ja); font-size: 15px;
  border: 3px solid var(--ink); border-radius: 16px;
  padding: 15px 18px; background: var(--white);
  transition: box-shadow 0.3s, transform 0.3s var(--bounce);
  width: 100%;
}
.form-input:focus, .form-textarea:focus {
  outline: none; box-shadow: 5px 5px 0 var(--yellow); transform: translateY(-2px);
}
.form-textarea { min-height: 170px; resize: vertical; }
.form-submit-wrap { text-align: center; margin-top: 8px; }
.form-thanks {
  display: none; text-align: center; padding: 60px 20px;
}
.form-thanks.is-shown { display: block; }
.form-thanks svg { width: 110px; height: 110px; margin-bottom: 20px; }
.thanks-title { font-family: var(--font-hand); font-size: 30px; margin-bottom: 12px; }

/* faq */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 3px solid var(--ink); border-radius: var(--radius-m);
  background: var(--white); margin-bottom: 18px; overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
}
.faq-q {
  width: 100%; text-align: left; font-family: var(--font-ja);
  font-size: 15.5px; font-weight: 900; padding: 20px 58px 20px 22px;
  background: none; border: none; cursor: pointer; position: relative;
  display: flex; align-items: center; gap: 14px;
}
.faq-q .q-mark { font-family: var(--font-en); font-weight: 800; font-size: 22px; color: var(--coral); }
.faq-q::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 14px; height: 14px;
  border-right: 3.5px solid var(--ink); border-bottom: 3.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.45s var(--bounce);
}
.faq-item.is-open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--smooth); }
.faq-a-inner { padding: 0 22px 22px 58px; font-size: 14px; color: var(--ink-soft); }

/* access */
.access-map {
  border: 3px solid var(--ink); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: 8px 8px 0 var(--ink);
  aspect-ratio: 16 / 7; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item + .stat-item::before { border-left: none; border-top: 2px dashed rgba(255,253,247,0.3); left: 20%; right: 20%; width: 60%; height: 0; top: 0; }
  .news-item { grid-template-columns: 90px 1fr auto; }
  .news-cat { display: none; }
  .section { padding: 90px 6vw; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .gnav { display: none; }
  .gnav.is-open {
    display: flex; flex-direction: column; position: fixed; inset: 0;
    background: var(--yellow); z-index: 850;
    align-items: center; justify-content: center; gap: 18px;
  }
  .gnav.is-open a { font-size: 20px; }
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--ink); border: none; cursor: pointer;
    align-items: center; z-index: 860; position: relative;
  }
  .menu-btn span { display: block; width: 22px; height: 3px; background: var(--white); border-radius: 2px; transition: transform 0.4s var(--bounce), opacity 0.3s; }
  .menu-btn.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .menu-btn.is-open span:nth-child(2) { opacity: 0; }
  .menu-btn.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .stats { border-radius: 32px; }
  .flow-grid { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 80px 1fr; }
  .news-arrow { display: none; }
  .cta-badge { width: 90px; height: 90px; right: 5vw; top: 30px; }
  .footer-nav { gap: 18px; }
  .sample-notice { font-size: 10px; }
}

/* ---------- mobile fine-tuning ---------- */
@media (max-width: 640px) {
  .deco { max-width: 15vw !important; }
  .hero-title .hero-shape.hide-sp { display: none; }
  .sample-notice { max-width: calc(100vw - 24px); font-size: 9.5px; padding: 6px 12px; }
  .hero { padding-top: 100px; }
  .marquee-item { font-size: 20px; }
  .marquee-item .ja { font-size: 17px; }
}
