/* ==========================================================
   EmiRaise Corporate Site — style.css
   Goodpatch風：白基調 / 大型タイポ / 余白 / カラードットのアクセント
   ========================================================== */

:root {
  --color-text: #1c1c1c;
  --color-text-sub: #6b6b6b;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f6f4;
  --color-accent: #3f9d33;      /* ブランドグリーン（ロゴ・採用資料準拠） */
  --color-accent-2: #2e6e5e;    /* 深緑（健康・しなやかさ） */
  --color-accent-3: #f2b04d;    /* イエロー（活力） */
  --color-accent-4: #5a8fd8;    /* ブルー（信頼） */
  --color-line: #e5e2dd;
  --font-en: "Montserrat", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --header-h: 84px;
  --container: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 6vw;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
  transition: box-shadow 0.3s;
}
.header.is-scrolled { box-shadow: 0 1px 0 var(--color-line); }

.header__inner {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  display: inline-block;
}

.gnav { display: flex; align-items: center; gap: 36px; }
.gnav a {
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.gnav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s;
}
.gnav a:hover::after,
.gnav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.gnav__cta {
  background: var(--color-text);
  color: #fff !important;
  padding: 12px 28px !important;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.3s;
}
.gnav__cta:hover { background: var(--color-accent); }
.gnav__cta::after { display: none; }

/* Hamburger */
.menu-btn {
  display: none;
  width: 48px; height: 48px;
  background: none; border: 0;
  cursor: pointer;
  position: relative;
  z-index: 110;
}
.menu-btn span {
  position: absolute;
  left: 12px;
  width: 24px; height: 2px;
  background: var(--color-text);
  transition: 0.3s;
}
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn span:nth-child(3) { top: 32px; }
.menu-btn.is-open span:nth-child(1) { top: 25px; transform: rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { top: 25px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero__title {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(56px, 11vw, 160px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  padding: 0 6vw;
}
.hero__title .accent { color: var(--color-accent); }

.hero__sub {
  padding: 32px 6vw 0;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 500;
  color: var(--color-text-sub);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 6vw;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero__scroll::after {
  content: "";
  width: 48px; height: 1px;
  background: var(--color-text-sub);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollLine {
  0% { transform: scaleX(0); }
  50% { transform: scaleX(1); }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* Dot circle (Goodpatch風のカラードット) */
.dot-ring {
  position: absolute;
  top: 50%;
  right: 6vw;
  width: clamp(220px, 32vw, 460px);
  height: clamp(220px, 32vw, 460px);
  transform: translateY(-58%);
  animation: ringSpin 60s linear infinite;
  pointer-events: none;
}
@keyframes ringSpin { to { transform: translateY(-58%) rotate(360deg); } }
.dot-ring span {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(18px, 2.6vw, 38px);
  height: clamp(18px, 2.6vw, 38px);
  border-radius: 50%;
  --r: clamp(100px, 14.5vw, 210px);
  transform: rotate(var(--a)) translateX(var(--r)) ;
  margin: calc(clamp(18px, 2.6vw, 38px) / -2);
}

/* ---------- Sections ---------- */
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section--soft { background: var(--color-bg-soft); }

.sec-label {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.sec-label::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.sec-title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}
.sec-title--en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 88px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.sec-lead {
  max-width: 640px;
  color: var(--color-text-sub);
  font-size: clamp(15px, 1.5vw, 17px);
}

/* Vision / Mission */
.philosophy__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--color-line);
  align-items: baseline;
}
.philosophy__item:last-child { border-bottom: 1px solid var(--color-line); }
.philosophy__key {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--color-text-sub);
}
.philosophy__value {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.6;
}
.philosophy__note {
  font-size: 15px;
  color: var(--color-text-sub);
  font-weight: 400;
  margin-top: 16px;
  max-width: 560px;
}

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 44px 36px;
  transition: transform 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.07); }
.card__num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: block;
}
.card__title { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.card__title-en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  display: block;
  margin-bottom: 18px;
}
.card__text { font-size: 15px; color: var(--color-text-sub); }

/* Studio list */
.studios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.studio {
  border-radius: 20px;
  padding: 36px 30px;
  color: #fff;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s;
}
.studio:hover { transform: translateY(-6px); }
.studio--kanazawa { background: linear-gradient(135deg, #3f9d33, #2f8a4a); }
.studio--ekinishi { background: linear-gradient(135deg, #2e6e5e, #3d8f7a); }
.studio--tennoji  { background: linear-gradient(135deg, #5a8fd8, #7a6fd8); }
.studio--toyama   { background: linear-gradient(135deg, #f2b04d, #e8895a); }
.studio__area {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.studio__name { font-size: 22px; font-weight: 700; line-height: 1.4; }
.studio__link {
  font-size: 13px;
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}
.studio__link::after { content: "→"; transition: transform 0.3s; }
.studio:hover .studio__link::after { transform: translateX(4px); }

/* News */
.news-list { margin-top: 40px; border-top: 1px solid var(--color-line); }
.news-list__item { border-bottom: 1px solid var(--color-line); }
.news-list__link {
  display: grid;
  grid-template-columns: 120px 110px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px 8px;
  transition: background 0.3s;
}
.news-list__link:hover { background: var(--color-bg-soft); }
.news-list__date {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--color-text-sub);
}
.news-list__cat {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 5px 0;
  border: 1px solid var(--color-text);
  border-radius: 999px;
}
.news-list__title { font-size: 16px; font-weight: 500; }
.news-list__arrow { font-family: var(--font-en); color: var(--color-text-sub); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15px;
  padding: 18px 44px;
  border-radius: 999px;
  background: var(--color-text);
  color: #fff;
  transition: background 0.3s, gap 0.3s;
  border: 0;
  cursor: pointer;
  font-family: var(--font-jp);
}
.btn::after { content: "→"; font-family: var(--font-en); }
.btn:hover { background: var(--color-accent); gap: 20px; }
.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}
.btn--ghost:hover { background: var(--color-text); color: #fff; }
.section__more { margin-top: 48px; }

/* CTA band */
.cta-band {
  background: var(--color-text);
  color: #fff;
  padding: clamp(80px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band .sec-title--en { position: relative; z-index: 1; }
.cta-band__lead { margin: 24px 0 40px; color: rgba(255,255,255,0.75); position: relative; z-index: 1; }
.cta-band .btn { background: #fff; color: var(--color-text); }
.cta-band .btn:hover { background: var(--color-accent); color: #fff; }
.cta-band__dots {
  position: absolute;
  right: -60px; top: -60px;
  width: 380px; height: 380px;
  opacity: 0.5;
}

/* ---------- Page hero (下層) ---------- */
.page-hero {
  padding: calc(var(--header-h) + clamp(70px, 9vw, 120px)) 0 clamp(56px, 7vw, 90px);
}
.page-hero__en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.page-hero__jp {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-hero__jp::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Company table */
.info-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.info-table th, .info-table td {
  text-align: left;
  padding: 26px 12px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  font-size: 15.5px;
}
.info-table th {
  width: 220px;
  font-weight: 600;
  color: var(--color-text-sub);
  white-space: nowrap;
}

/* Message */
.message {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 760px;
}
.message p { margin-bottom: 1.4em; }
.message__sign {
  text-align: right;
  font-weight: 700;
  font-size: 17px;
}
.message__sign small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 4px;
}

/* Contact form */
.form { max-width: 680px; margin-top: 48px; }
.form__row { margin-bottom: 32px; }
.form__label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}
.form__label .req {
  color: var(--color-accent);
  font-size: 11px;
  margin-left: 8px;
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 1px 6px;
  vertical-align: 2px;
}
.form__input, .form__textarea, .form__select {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--color-line);
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-jp);
  background: #fff;
  transition: border-color 0.3s;
}
.form__input:focus, .form__textarea:focus, .form__select:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form__textarea { min-height: 180px; resize: vertical; }

/* ---------- History timeline ---------- */
.timeline { margin-top: 40px; border-left: 2px solid var(--color-accent); padding-left: 32px; }
.timeline__item { position: relative; padding-bottom: 36px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -41px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline__date {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}
.timeline__text { font-size: 15.5px; margin-top: 2px; }
.timeline__item--future .timeline__date { color: var(--color-text-sub); }
.timeline__item--future::before { background: #fff; box-shadow: 0 0 0 2px var(--color-text-sub); }
.timeline__item--future .timeline__text { color: var(--color-text-sub); }

/* ---------- Recruit ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.benefit {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15.5px;
}
.benefit::before {
  content: "";
  flex: 0 0 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
}

.flow { margin-top: 48px; counter-reset: flow; }
.flow__item {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
}
.flow__item:last-child { border-bottom: 1px solid var(--color-line); }
.flow__item::before {
  content: "0" counter(flow);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 26px;
  color: var(--color-accent);
  line-height: 1.2;
}
.flow__title { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.flow__text { font-size: 14.5px; color: var(--color-text-sub); }

.voices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.voice {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  padding: 40px 32px;
}
.voice__quote { font-size: 15px; color: #3a3a3a; }
.voice__quote p { margin-bottom: 1.2em; }
.voice__who {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  font-weight: 700;
  font-size: 16px;
}
.voice__who small {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--color-text-sub);
  margin-top: 4px;
}

.persona {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px 40px;
  margin-top: 40px;
}
.persona li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  font-weight: 500;
}
.persona li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 13px;
  top: 3px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-bg-soft);
  padding: clamp(70px, 9vw, 110px) 0 40px;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--color-line);
}
.footer__brand .logo { font-size: 28px; margin-bottom: 16px; }
.footer__addr { font-size: 13.5px; color: var(--color-text-sub); font-style: normal; }
.footer__nav {
  display: flex;
  gap: clamp(32px, 5vw, 72px);
  flex-wrap: wrap;
}
.footer__nav ul li { margin-bottom: 12px; }
.footer__nav a { font-size: 14px; transition: color 0.3s; }
.footer__nav a:hover { color: var(--color-accent); }
.footer__nav .head {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-bottom: 18px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-size: 12.5px;
  color: var(--color-text-sub);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--color-accent); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .menu-btn { display: block; }
  .gnav {
    position: fixed;
    inset: 0;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    z-index: 105;
  }
  .gnav.is-open { opacity: 1; visibility: visible; }
  .gnav a { font-size: 18px; font-weight: 600; }

  .dot-ring { right: -14vw; opacity: 0.45; }

  .philosophy__item { grid-template-columns: 1fr; gap: 10px; }

  .news-list__link {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 10px 16px;
    padding: 24px 4px;
  }
  .news-list__title { grid-column: 1 / -1; }
  .news-list__arrow { display: none; }
  .news-list__cat { padding: 4px 14px; }

  .info-table th { width: 130px; }
  .info-table th, .info-table td { padding: 20px 6px; font-size: 14.5px; }

  .footer__grid { grid-template-columns: 1fr; }
}
