/* ===== Reset & base ===== */
* { box-sizing: border-box; }
.rf-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; }
::selection { background: #2c4634; color: #f6f5ef; }
a { color: #2c4634; text-decoration: none; }
a:hover { color: #4c7355; }

@keyframes rf-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes rf-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Page wrapper ===== */
.rf-page {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  background: #f6f5ef;
  color: #1b241e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Header / Nav ===== */
.rf-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 44px);
  transition: background .3s ease;
}
.rf-header.rf-scrolled {
  background: rgba(246,245,239,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(27,36,30,0.08);
}

.rf-logo { display: block; line-height: 0; }
.rf-logo__svg { display: block; height: 40px; width: auto; }

.rf-nav { display: flex; align-items: center; gap: 38px; }
.rf-nav-link { color: #f6f5ef; font-size: 12px; letter-spacing: 0.18em; font-weight: 500; }
.rf-nav-contact {
  border: 1px solid rgba(246,245,239,0.5);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.rf-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px; height: 34px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  background: none;
  border: none;
}
.rf-burger__bar { display: block; width: 24px; height: 2px; background: #f6f5ef; transition: transform .3s ease, opacity .3s ease; }
#rf-menu { display: none; }
#rf-menu:checked ~ .rf-burger .rf-burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#rf-menu:checked ~ .rf-burger .rf-burger__bar:nth-child(2) { opacity: 0; }
#rf-menu:checked ~ .rf-burger .rf-burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.rf-header.rf-scrolled .rf-burger__bar { background: #1b241e; }

/* ===== Hero ===== */
.rf-hero { position: relative; height: 100vh; min-height: 640px; width: 100%; overflow: hidden; }
.rf-hero__media {
  position: absolute; inset: 0;
  background-image: url("../images/hero.webp");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.rf-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,30,22,0.55) 0%, rgba(20,30,22,0.15) 40%, rgba(20,30,22,0.6) 100%);
  pointer-events: none;
}
.rf-hero__content {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(20px, 5vw, 44px);
  pointer-events: none;
}
.rf-hero__eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; animation: rf-rise 0.9s ease both; }
.rf-hero__eyebrow-line { width: 44px; height: 1px; background: rgba(246,245,239,0.7); }
.rf-hero__eyebrow-text { color: #f6f5ef; font-size: 12px; letter-spacing: 0.28em; font-weight: 500; }
.rf-hero__title {
  margin: 0;
  color: #f6f5ef;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: clamp(44px, 7.2vw, 108px);
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
  animation: rf-rise 1.1s 0.08s ease both;
}
.rf-hero__lead {
  margin: 30px 0 0;
  color: rgba(246,245,239,0.9);
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.9;
  max-width: 520px;
  font-weight: 300;
  letter-spacing: 0.04em;
  animation: rf-rise 1.1s 0.18s ease both;
}
.rf-hero__scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.rf-hero__scroll-text { color: rgba(246,245,239,0.8); font-size: 10px; letter-spacing: 0.3em; }
.rf-hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(180deg, rgba(246,245,239,0.8), transparent); }

/* ===== Marquee strip ===== */
.rf-marquee { background: #2c4634; overflow: hidden; padding: 16px 0; }
.rf-marquee__track { display: flex; width: max-content; animation: rf-marquee 26s linear infinite; }
.rf-marquee__item { color: #f6f5ef; font-family: 'Shippori Mincho', serif; font-size: 15px; letter-spacing: 0.05em; padding-right: 40px; opacity: 0.9; }

/* ===== Shared: section shell, container, eyebrow, column grid ===== */
.rf-section { padding: clamp(90px, 12vw, 180px) clamp(20px, 5vw, 44px); max-width: 1280px; margin: 0 auto; }
.rf-container { max-width: 1280px; margin: 0 auto; }
#contact .rf-container { position: relative; }

.rf-eyebrow { display: flex; align-items: baseline; gap: 16px; }
.rf-eyebrow__num { font-family: 'Shippori Mincho', serif; font-size: 13px; letter-spacing: 0.2em; color: #4c7355; }
.rf-eyebrow__label { font-size: 12px; letter-spacing: 0.28em; font-weight: 500; color: #4c7355; }
#concept .rf-eyebrow, #company .rf-eyebrow { margin-bottom: 64px; }
#service .rf-eyebrow { margin-bottom: 24px; }
#news .rf-eyebrow { margin-bottom: 52px; }
#contact .rf-eyebrow { margin-bottom: 40px; }
#contact .rf-eyebrow__num, #contact .rf-eyebrow__label { color: rgba(246,245,239,0.7); }

.rf-cols { display: grid; gap: clamp(40px, 6vw, 96px); }
#concept .rf-cols { grid-template-columns: 1.15fr 1fr; align-items: center; }
#company .rf-cols { grid-template-columns: 1fr 1.4fr; }

/* ===== Concept ===== */
.rf-concept__heading {
  margin: 0 0 40px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.rf-concept__text { margin: 0 0 26px; font-size: 15px; line-height: 2.1; font-weight: 300; color: #3a463d; max-width: 520px; }
.rf-concept__text--last { margin-bottom: 0; }
.rf-concept__media { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; }
.rf-concept__img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== Service ===== */
.rf-service { background: #eceae0; padding: clamp(90px, 12vw, 180px) clamp(20px, 5vw, 44px); }
.rf-service__heading {
  margin: 0 0 72px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.4;
  letter-spacing: 0.02em;
  max-width: 760px;
}
.rf-svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(27,36,30,0.12);
  border: 1px solid rgba(27,36,30,0.12);
}
.rf-svc-cell { background: #eceae0; padding: clamp(32px, 4vw, 56px); transition: background .2s ease; }
.rf-svc-cell__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; }
.rf-svc-cell__num { font-family: 'Shippori Mincho', serif; font-size: 34px; color: #2c4634; }
.rf-svc-cell__code { font-size: 11px; letter-spacing: 0.24em; color: #4c7355; font-weight: 500; }
.rf-svc-cell__title { margin: 0 0 8px; font-family: 'Shippori Mincho', serif; font-size: 26px; font-weight: 600; }
.rf-svc-cell__tag { margin: 0 0 18px; font-size: 11px; letter-spacing: 0.16em; color: #4c7355; font-weight: 500; }
.rf-svc-cell__desc { margin: 0; font-size: 14px; line-height: 2; font-weight: 300; color: #3a463d; }

/* ===== Feature band ===== */
.rf-band { position: relative; height: 60vh; min-height: 420px; overflow: hidden; }
.rf-band__media {
  position: absolute; inset: 0;
  background-image: url("../images/band.webp");
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
}
.rf-band__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,30,22,0.65), rgba(20,30,22,0.1)); pointer-events: none; }
.rf-band__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 clamp(20px, 5vw, 44px); pointer-events: none; }
.rf-band__text {
  margin: 0;
  color: #f6f5ef;
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(24px, 3.4vw, 46px);
  line-height: 1.5;
  font-weight: 500;
  max-width: 640px;
  letter-spacing: 0.02em;
}

/* ===== Company ===== */
.rf-company__heading {
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.rf-company__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0; border-top: 1px solid rgba(27,36,30,0.14); }
.rf-company__dt {
  padding: 22px 40px 22px 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 500;
  color: #4c7355;
  border-bottom: 1px solid rgba(27,36,30,0.1);
}
.rf-company__dd { margin: 0; padding: 22px 0; font-size: 14px; line-height: 1.9; font-weight: 300; border-bottom: 1px solid rgba(27,36,30,0.1); }

/* ===== News ===== */
.rf-news { background: #eceae0; padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 44px); }
.rf-news-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: 28px 0;
  border-top: 1px solid rgba(27,36,30,0.14);
  border-bottom: 1px solid rgba(27,36,30,0.14);
  transition: opacity .2s ease;
}
.rf-news-row__date { font-family: 'Shippori Mincho', serif; font-size: 14px; letter-spacing: 0.08em; color: #4c7355; white-space: nowrap; }
.rf-news-row__badge { font-size: 11px; letter-spacing: 0.16em; border: 1px solid rgba(27,36,30,0.3); padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.rf-news-row__title { font-size: 15px; font-weight: 300; color: #1b241e; }

/* ===== Contact ===== */
.rf-contact { position: relative; background: #2c4634; color: #f6f5ef; padding: clamp(100px, 14vw, 200px) clamp(20px, 5vw, 44px); overflow: hidden; }
.rf-contact__heading {
  margin: 0 0 20px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: clamp(34px, 5.5vw, 84px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.rf-contact__lead { margin: 0 0 56px; font-size: 15px; line-height: 2; font-weight: 300; color: rgba(246,245,239,0.85); max-width: 520px; }
.rf-cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: #f6f5ef;
  color: #1b241e;
  padding: 22px 44px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 500;
  transition: background .2s ease, gap .2s ease;
}
.rf-cta__arrow { font-size: 16px; }

/* ===== Footer ===== */
.rf-footer { background: #1b241e; color: rgba(246,245,239,0.7); padding: 64px clamp(20px, 5vw, 44px) 40px; }
.rf-footer__top { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: flex-start; }
.rf-footer__logo-wrap { line-height: 0; margin-bottom: 16px; }
.rf-footer__logo-svg { display: block; height: 44px; width: auto; }
.rf-footer__addr { margin: 0; font-size: 12px; line-height: 1.9; font-weight: 300; }
.rf-footer__nav { display: flex; gap: 44px; flex-wrap: wrap; }
.rf-footer-link { color: rgba(246,245,239,0.7); font-size: 12px; letter-spacing: 0.16em; transition: color .2s ease; }
.rf-footer__bottom { max-width: 1280px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(246,245,239,0.14); font-size: 11px; letter-spacing: 0.1em; font-weight: 300; }

/* ===== Hover states ===== */
.rf-nav-contact:hover { background: #f6f5ef; color: #1b241e; }
.rf-svc-cell:hover { background: #f6f5ef; }
.rf-news-row:hover { opacity: 0.65; color: #2c4634; }
.rf-cta:hover { background: #ffffff; color: #1b241e; gap: 26px; }
.rf-footer-link:hover { color: #f6f5ef; }

/* ===== Responsive ===== */
@media (min-width: 621px) {
  .rf-header.rf-scrolled .rf-nav > a { color: #1b241e !important; }
  .rf-header.rf-scrolled .rf-nav > a[href="#contact"] { border-color: rgba(27,36,30,0.35) !important; }
}
@media (max-width: 860px) {
  .rf-cols { grid-template-columns: 1fr !important; gap: 44px !important; }
}
@media (max-width: 620px) {
  .rf-svc-grid { grid-template-columns: 1fr !important; }
  .rf-logo__svg { height: 25px !important; }
  .rf-footer__logo-svg { height: 35px; }
  .rf-burger { display: flex; }
  .rf-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    background: #2c4634;
    padding: 6px 0 14px;
    transform: translateY(-140%);
    transition: transform .38s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 24px 40px rgba(0,0,0,.28);
  }
  #rf-menu:checked ~ .rf-nav { transform: translateY(0); }
  .rf-nav > a {
    color: #f6f5ef !important;
    padding: 15px clamp(20px, 6vw, 44px) !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 14px !important;
  }
  #rf-hero { background-position: 62% 50% !important; }
}
