/* ============================================
   合同会社re-ha Corporate Site
   Color Palette (from logo):
     --teal-dark:  #1B6B5B  (re, a text)
     --teal:       #237A6A  (roof, main accent)
     --green:      #3DAA3D  (heartbeat line)
     --green-light:#5EC45E  (leaf)
   ============================================ */

:root {
  --teal-dark: #1B6B5B;
  --teal: #237A6A;
  --green: #3DAA3D;
  --green-light: #5EC45E;
  --green-pale: #E8F5E9;
  --bg: #FFFFFF;
  --bg-alt: #F7FAF8;
  --text: #2D3436;
  --text-light: #636E72;
  --border: #E0E6E3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(27, 107, 91, 0.08);
  --shadow-lg: 0 12px 48px rgba(27, 107, 91, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Montserrat", sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-ja);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.header.scrolled { border-bottom-color: var(--border); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img { height: 56px; width: auto; display: block; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--teal); }
.nav-link:hover::after { width: 100%; }
.nav-link--cta {
  color: var(--bg);
  background: var(--teal);
  padding: 8px 20px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition);
}
.nav-link--cta::after { display: none; }
.nav-link--cta:hover { background: var(--teal-dark); color: var(--bg); }

/* Hamburger */
.hamburger { display: none; width: 32px; height: 24px; position: relative; z-index: 110; }
.hamburger span {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--text); transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 36px;
  border-radius: 100px;
  transition: all var(--transition);
  letter-spacing: 0.04em;
}
.btn--primary {
  background: linear-gradient(135deg, var(--teal), var(--green));
  color: #fff;
  box-shadow: 0 4px 16px rgba(27, 107, 91, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 107, 91, 0.35);
}
.btn--lg { padding: 18px 48px; font-size: 16px; }
.btn--sm { padding: 10px 22px; font-size: 13px; }
.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
}
.btn--ghost:hover {
  background: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(27,107,91,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(61,170,61,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(94,196,94,0.04) 0%, transparent 50%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27,107,91,0.04) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,170,61,0.04) 0%, transparent 70%);
  animation: float 25s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -30px); }
}
/* Hero content (over the background video) */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
}

/* Hero background video + static poster fallback */
.hero-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: center / cover no-repeat;
  background-image: url("/assets/hero-poster.jpg");
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 動画/ポスターが未配置(404)のときは透明 → .hero-bg のグラデーションにフォールバック */
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* 動画を活かすダークスクリム（ブランドのティールダーク基調）+ 白文字で可読性確保 */
  background:
    radial-gradient(ellipse at 50% 42%, rgba(13, 42, 36, 0.28) 0%, rgba(13, 42, 36, 0.52) 100%),
    linear-gradient(180deg, rgba(13, 42, 36, 0.5) 0%, rgba(13, 42, 36, 0.4) 45%, rgba(13, 42, 36, 0.6) 100%);
}
/* 動画背景の上は白文字に切り替え（hero 内のみ） */
.hero .hero-title { color: #fff; }
.hero .hero-sub { color: rgba(255, 255, 255, 0.92); }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.75); }
.hero .btn--ghost:hover { background: #fff; color: var(--teal-dark); border-color: #fff; }
.hero-scroll { z-index: 2; color: rgba(255, 255, 255, 0.85); }
.hero .hero-scroll-line { background: rgba(255, 255, 255, 0.7); }
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--teal-dark);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.9;
}
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.hero-scroll-line {
  width: 1px; height: 40px;
  background: var(--teal);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---- Page Hero (sub pages) ---- */
.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, rgba(27,107,91,0.05) 0%, rgba(61,170,61,0.03) 100%);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero-title {
  font-family: var(--font-en);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.page-hero-sub {
  font-size: 15px;
  color: var(--text-light);
}

/* ---- Sections ---- */
.section { padding: 100px 0; }
.section--about { background: var(--bg); }
.section--service { background: var(--bg-alt); }
.section--strength { background: var(--bg); }
.section--price { background: var(--bg-alt); }
.section--news { background: var(--bg); }
.section--company { background: var(--bg-alt); }
.section--contact { background: var(--bg); }

.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--teal);
  text-align: center;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  color: var(--teal-dark);
}
.section-title .text-accent { color: var(--green); }
.section-title .text-small { font-size: 0.6em; font-weight: 400; color: var(--text-light); }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* ---- About ---- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.about-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.about-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.about-card-icon {
  width: 48px; height: 48px;
  color: var(--teal);
  margin-bottom: 20px;
}
.about-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--teal-dark);
}
.about-card-text {
  font-size: 14px;
  line-height: 2;
  color: var(--text-light);
}
.about-lead {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-lead p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
}

/* ---- Service ---- */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-cards--2col {
  grid-template-columns: repeat(2, 1fr);
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--green));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card-icon {
  width: 44px; height: 44px;
  color: var(--teal);
  margin-bottom: 20px;
}
.service-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  width: fit-content;
}
.service-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--teal-dark);
}
.service-card-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  flex: 1;
}
.service-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--teal);
  font-size: 18px;
  margin-top: 20px;
  align-self: flex-end;
  transition: all var(--transition);
}
.service-card:hover .service-card-arrow {
  background: var(--teal);
  color: #fff;
  transform: translateX(4px);
}
.service-card-aside {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-light);
}
.service-card-note {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--teal);
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.service-card-actions {
  margin-top: 16px;
}
.service-card-actions .btn { width: 100%; }

/* Service section CTA */
.service-cta {
  margin-top: 48px;
  text-align: center;
}
.service-cta p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* ---- Strength ---- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strength-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px 32px;
  transition: all var(--transition);
}
.strength-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.strength-num {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--green-light);
  display: block;
  margin-bottom: 16px;
}
.strength-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 14px;
  line-height: 1.6;
}
.strength-card-text {
  font-size: 14px;
  line-height: 2;
  color: var(--text-light);
}

/* ---- Price ---- */
.price-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  box-shadow: var(--shadow);
}
.price-main {
  text-align: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.price-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pale);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.price-amount {
  display: block;
  font-family: var(--font-en);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 700;
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}
.price-amount .price-unit { font-size: 0.6em; margin-left: 2px; }
.price-cond {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 10px;
}
.price-desc {
  font-size: 14px;
  line-height: 2;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 28px;
}
.price-menus {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.price-menu {
  text-align: center;
  padding: 20px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.price-menu-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
}
.price-menu-text {
  display: block;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--text-light);
}
.price-cta { text-align: center; }

/* ---- News ---- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  max-width: 720px;
  margin: 0 auto;
}
.news-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
  min-width: 64px;
}
.news-tag {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  color: var(--teal);
  background: var(--green-pale);
  padding: 2px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.news-text {
  font-size: 14px;
  color: var(--text);
}
.news-sns-title {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sns-placeholder {
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--text-light);
}
.sns-placeholder svg { margin: 0 auto 12px; opacity: 0.3; }
.sns-placeholder p { font-size: 14px; line-height: 1.8; }
.sns-placeholder-note { font-size: 12px; margin-top: 8px; color: var(--text-light); opacity: 0.7; }

/* ---- Company ---- */
.company-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table th,
.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
  vertical-align: top;
}
.company-table th {
  font-weight: 600;
  color: var(--teal-dark);
  width: 140px;
  white-space: nowrap;
  background: rgba(27,107,91,0.03);
}
.company-table td {
  color: var(--text);
  line-height: 1.9;
}
.company-business { list-style: none; }
.company-business li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}
.company-business li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.company-link {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.company-link:hover { color: var(--teal-dark); }

/* ---- Contact ---- */
.contact-cta { text-align: center; }
.contact-mail {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-light);
}
.contact-mail a {
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.contact-mail a:hover { color: var(--teal-dark); }

/* ---- Footer ---- */
.footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.footer-logo {
  background: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
}
.footer-logo img { height: 48px; width: auto; display: block; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}

/* ---- Scroll Animations ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }

  /* Hero: モーションを抑える設定では背景動画を止め、静止ポスターを表示 */
  .hero-video { display: none !important; }
}

/* ---- Responsive ---- */
.sp-only { display: none; }

@media (max-width: 768px) {
  .sp-only { display: inline; }

  .hamburger { display: block; }
  .header-nav {
    position: fixed;
    top: 0; right: 0;
    width: 280px; height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 40px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  }
  .header-nav.open { transform: translateX(0); }
  .nav-link {
    font-size: 15px;
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-link::after { display: none; }
  .nav-link--cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
    width: 100%;
    justify-content: center;
  }

  .hero { min-height: 90vh; padding: 100px 20px 60px; }
  .hero-scroll { display: none; }
  .hero-content { max-width: 100%; }

  .section { padding: 64px 0; }
  .section-subtitle { margin-bottom: 36px; }

  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-card { padding: 28px 24px; }

  .service-cards { grid-template-columns: 1fr; gap: 16px; }
  .service-cards--2col { grid-template-columns: 1fr; }
  .service-card { padding: 28px 24px; }

  .hero-actions { gap: 12px; }
  .hero-actions .btn { width: 100%; }

  .strength-grid { grid-template-columns: 1fr; gap: 16px; }
  .strength-card { padding: 28px 24px; }

  .price-card { padding: 32px 22px; }
  .price-menus { grid-template-columns: 1fr; gap: 12px; }

  .news-grid { grid-template-columns: 1fr; gap: 32px; }
  .news-item { flex-wrap: wrap; gap: 8px; padding: 16px 0; }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }
  .company-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* Overlay for mobile menu */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
