@charset "UTF-8";

/* ============================================
   REMEDi LLC — corporate site
   ============================================ */

:root {
  --navy: #1d2088;
  --navy-deep: #141667;
  --navy-soft: #4a4d9e;
  --slate: #595987;
  --mist: #f4f5fa;
  --lav: #e4e5f0;
  --ink: #23282d;
  --ink-mid: #4a5058;
  --ink-soft: #717780;
  --line: #e4e6ef;
  --white: #fff;
  --maxw: 1180px;
  --gutter: 24px;
  --r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: .03em;
  font-feature-settings: "palt";
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--navy); text-decoration: none; transition: opacity .2s, color .2s; }
a:hover { opacity: .7; }
p { margin: 0 0 1.7em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.en { font-family: Abel, "Helvetica Neue", Arial, sans-serif; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(29,32,136,.07);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 76px; max-width: 1320px;
}
.logo img { height: 30px; width: auto; display: block; }

.gnav ul { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; list-style: none; }
.gnav a {
  font-family: Abel, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  color: #343a41; padding-block: 6px; border-bottom: 2px solid transparent;
}
.gnav a:hover, .gnav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--navy); opacity: 1; }
.gnav .pill a {
  border: 0; background: var(--navy); color: var(--white);
  padding: 12px 26px; border-radius: 999px; transition: background .25s, transform .25s;
}
.gnav .pill a:hover { background: var(--navy-deep); opacity: 1; transform: translateY(-1px); }

.nav-toggle { display: none; border: 0; background: none; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- hero ---------- */

.hero {
  position: relative; min-height: 600px;
  display: flex; align-items: center;
  overflow: hidden; background: var(--navy-deep);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(20,22,103,.94) 0%, rgba(29,32,136,.86) 42%, rgba(29,32,136,.35) 72%, rgba(29,32,136,.12) 100%);
}
.hero::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 46%; height: 120px;
  background: var(--white); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-block: 90px; }
.hero-rule { width: 56px; height: 2px; background: var(--white); margin-bottom: 30px; opacity: .9; }
.hero h1 {
  font-family: Abel, "Helvetica Neue", Arial, sans-serif; font-weight: 400;
  font-size: clamp(36px, 6.4vw, 72px); line-height: 1.12; letter-spacing: .06em;
  text-transform: uppercase; color: var(--white); margin: 0 0 28px;
}
.hero .lead {
  font-size: clamp(17px, 2.2vw, 21px); font-weight: 700; color: var(--white);
  line-height: 1.9; margin: 0 0 16px; max-width: 24em;
}
.hero .sub { font-size: 15px; color: rgba(255,255,255,.88); line-height: 2; margin: 0; max-width: 30em; }
.hero .btn-row { margin-top: 38px; }

/* ---------- page head ---------- */

.page-head {
  position: relative; background: var(--navy); color: var(--white);
  padding-block: 72px 80px; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
}
.page-head::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 40%; height: 70px;
  background: var(--white); clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.page-head .wrap { position: relative; z-index: 2; }
.page-head .label {
  display: block; font-family: Abel, Arial, sans-serif; font-size: 13px;
  letter-spacing: .3em; text-transform: uppercase; opacity: .8; margin-bottom: 14px;
}
.page-head h1 { font-size: clamp(26px, 4.4vw, 38px); line-height: 1.5; margin: 0; font-weight: 700; }

/* ---------- sections ---------- */

section { position: relative; padding-block: 110px; }
section.alt { background: var(--mist); }
section.tight { padding-block: 72px; }

.sec-head { margin-bottom: 52px; max-width: 820px; }
.sec-head .label {
  display: block; font-family: Abel, Arial, sans-serif; font-size: 13px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 16px;
}
.sec-head h2 {
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.6; margin: 0;
  font-weight: 700; letter-spacing: .02em;
}
.sec-head .note { font-size: 16px; color: var(--ink-mid); margin: 20px 0 0; }

.body-txt { font-size: 16px; color: var(--ink-mid); line-height: 2.15; max-width: 760px; }

/* 斜めの装飾 */
.deco { position: absolute; z-index: 0; background: var(--lav); pointer-events: none; }
.deco.bl { left: 0; bottom: 0; width: 38%; height: 260px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.deco.tr { right: 0; top: 0; width: 34%; height: 220px; clip-path: polygon(100% 0, 0 0, 100% 100%); }
section > .wrap { position: relative; z-index: 1; }

/* ---------- media ---------- */

.media { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.media.rev .media-img { order: 2; }
.media-img { overflow: hidden; border-radius: var(--r); }
.media-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s cubic-bezier(.22,.8,.3,1); }
.media:hover .media-img img { transform: scale(1.04); }
.media-txt .label {
  display: block; font-family: Abel, Arial, sans-serif; font-size: 13px;
  letter-spacing: .3em; text-transform: uppercase; color: var(--navy-soft); margin-bottom: 14px;
}
.media-txt h2 { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.65; margin: 0 0 24px; font-weight: 700; }
.media-txt p { color: var(--ink-mid); }

/* ---------- business cards ---------- */

.biz { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; }
.biz figure { margin: 0; }
.biz .ph { overflow: hidden; border-radius: var(--r); }
.biz .ph img { width: 100%; height: 260px; object-fit: cover; transition: transform .8s cubic-bezier(.22,.8,.3,1); }
.biz figure:hover .ph img { transform: scale(1.04); }
.biz h3 { font-size: 21px; color: var(--ink); margin: 26px 0 12px; line-height: 1.6; font-weight: 700; }
.biz h3 .num {
  display: block; font-family: Abel, Arial, sans-serif; font-size: 13px;
  letter-spacing: .3em; color: var(--navy-soft); margin-bottom: 8px;
}
.biz p { font-size: 15px; color: var(--ink-mid); line-height: 2.05; }

/* ---------- news ---------- */

.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 136px 1fr; gap: 6px 28px;
  padding: 28px 8px; color: var(--ink); align-items: baseline;
  transition: background .3s, padding-left .3s;
}
.news-list a:hover { background: rgba(29,32,136,.04); padding-left: 18px; opacity: 1; }
.news-list time { font-family: Abel, Arial, sans-serif; font-size: 15px; letter-spacing: .12em; color: var(--navy-soft); }
.news-list .ttl { font-size: 16px; line-height: 1.85; }

/* ---------- article ---------- */

.article { max-width: 820px; margin-inline: auto; }
.article time { font-family: Abel, Arial, sans-serif; letter-spacing: .12em; color: var(--navy-soft); font-size: 15px; }
.article h1 { font-size: clamp(22px, 3.4vw, 31px); line-height: 1.7; margin: 14px 0 46px; font-weight: 700; }
.article h2 {
  font-size: 20px; margin: 52px 0 18px; padding-left: 16px;
  border-left: 3px solid var(--navy); line-height: 1.7; font-weight: 700;
}
.article p, .article li { color: var(--ink-mid); }
.article ul, .article ol { padding-left: 1.5em; margin: 0 0 1.7em; }
.article li { margin-bottom: .5em; }
.article img { margin: 16px 0 30px; border-radius: var(--r); }
.article .sign { text-align: right; color: var(--ink-soft); }

/* ---------- table ---------- */

.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  border-bottom: 1px solid var(--line); padding: 26px 12px;
  text-align: left; vertical-align: top; font-size: 16px;
}
.table th { width: 210px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.table td { color: var(--ink-mid); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  min-width: 260px; padding: 18px 32px; border-radius: 999px;
  border: 1px solid var(--navy); background: var(--navy); color: var(--white);
  font-size: 15px; letter-spacing: .06em; cursor: pointer;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn::after { content: "→"; font-size: 16px; line-height: 1; }
.btn:hover { background: var(--navy-deep); opacity: 1; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29,32,136,.22); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--white); }
.btn.light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn.light:hover { background: var(--white); color: var(--navy); box-shadow: none; }
.btn.plain { justify-content: center; }
.btn.plain::after { content: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- CTA strip ---------- */

.strip {
  position: relative; overflow: hidden;
  background: linear-gradient(105deg, var(--slate), #4a4a7a);
  color: var(--white); padding-block: 72px; text-align: center;
}
.strip h2 { font-size: clamp(19px, 2.6vw, 25px); margin: 0 0 14px; font-weight: 700; line-height: 1.8; }
.strip .tel {
  display: inline-block; font-family: Abel, Arial, sans-serif; font-size: 34px;
  letter-spacing: .1em; color: var(--white); margin-bottom: 34px;
}
.strip .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strip .cols a {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1px solid rgba(255,255,255,.6); border-radius: 999px; color: var(--white);
  padding: 19px 12px; font-size: 15px; letter-spacing: .05em;
  transition: background .25s, transform .25s;
}
.strip .cols a:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); opacity: 1; }
.strip svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* ---------- footer ---------- */

.site-footer { background: var(--white); padding: 84px 0 38px; text-align: center; }
.site-footer .flogo { width: 220px; margin: 0 auto 10px; display: block; }
.site-footer .fname { font-size: 11px; color: var(--ink-soft); letter-spacing: .3em; margin: 0 0 42px; }

.offices {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-block: 34px; margin-bottom: 34px;
}
.offices > div + div { border-left: 1px solid var(--line); }
.offices h3 { font-size: 15px; margin: 0 0 10px; color: var(--ink); font-weight: 700; }
.offices p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 2; }

.foot-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; list-style: none; margin: 0 0 30px; padding: 0; }
.foot-nav li + li::before { content: ""; display: inline-block; width: 1px; height: 11px; background: var(--line); margin: 0 18px; vertical-align: middle; }
.foot-nav a { font-family: Abel, Arial, sans-serif; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.foot-nav a.ja { font-family: inherit; text-transform: none; font-size: 13px; }

.copy { font-family: Abel, Arial, sans-serif; font-size: 11px; letter-spacing: .16em; color: var(--ink-soft); margin: 0; }

/* ---------- forms ---------- */

.form { max-width: 780px; }
.field { margin-bottom: 34px; }
.field > label.lbl, .field > span.lbl {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 15px; margin-bottom: 12px;
}
.tag { font-size: 11px; letter-spacing: .08em; padding: 4px 10px; border-radius: 3px; background: var(--navy); color: var(--white); font-weight: 400; }
.tag.opt { background: var(--ink-soft); }
.note { font-size: 13px; color: var(--ink-soft); margin: 8px 0 0; line-height: 1.9; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--white); font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 200px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(29,32,136,.12);
}
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.check input { margin-top: 8px; }
.privacy-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 26px;
  font-size: 13.5px; color: var(--ink-soft); line-height: 2; max-height: 250px; overflow-y: auto; margin-bottom: 24px;
}

.crumb { font-size: 13px; color: var(--ink-soft); padding-block: 22px 0; }
.crumb a { color: var(--ink-soft); }

/* ============================================
   Scroll reveal
   ============================================ */

[data-rv] { opacity: 0; will-change: opacity, transform; }
[data-rv="up"]    { transform: translateY(60px); }
[data-rv="left"]  { transform: translateX(-50px); }
[data-rv="right"] { transform: translateX(50px); }

[data-rv].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s cubic-bezier(.22,.8,.3,1), transform .8s cubic-bezier(.22,.8,.3,1);
  transition-delay: var(--d, 0s);
}

/* JS が無い / 動作しない場合でも必ず見える */
.no-js [data-rv] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ヒーローの入場 */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo { animation: heroZoom 10s cubic-bezier(.22,.8,.3,1) both; }
  .hero-rule  { animation: growX .8s cubic-bezier(.22,.8,.3,1) .1s both; }
  .hero h1    { animation: riseIn .9s cubic-bezier(.22,.8,.3,1) .22s both; }
  .hero .lead { animation: riseIn .9s cubic-bezier(.22,.8,.3,1) .4s both; }
  .hero .sub  { animation: riseIn .9s cubic-bezier(.22,.8,.3,1) .54s both; }
  .hero .btn-row { animation: riseIn .9s cubic-bezier(.22,.8,.3,1) .68s both; }
  .page-head .label { animation: riseIn .8s cubic-bezier(.22,.8,.3,1) .08s both; }
  .page-head h1 { animation: riseIn .8s cubic-bezier(.22,.8,.3,1) .22s both; }
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes growX { from { opacity: 0; transform: scaleX(0); transform-origin: left; } to { opacity: 1; transform: scaleX(1); transform-origin: left; } }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .media { grid-template-columns: 1fr; gap: 32px; }
  .media.rev .media-img { order: 0; }
  .offices { grid-template-columns: 1fr; }
  .offices > div + div { border-left: 0; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 26px; }
  .strip .cols { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 15.5px; }
  section { padding-block: 68px; }
  .sec-head { margin-bottom: 36px; }
  .nav-toggle { display: block; }
  .gnav {
    display: none; position: absolute; inset: 76px 0 auto 0;
    background: var(--white); box-shadow: 0 10px 22px rgba(0,0,0,.08); padding: 4px 0 20px;
  }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; padding-inline: var(--gutter); }
  .gnav a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnav .pill a { background: var(--navy); color: var(--white); text-align: center; border-radius: 999px; margin-top: 16px; border-bottom: 0; }

  .hero { min-height: 0; }
  .hero .wrap { padding-block: 64px 76px; }
  .hero::before { background: linear-gradient(170deg, rgba(20,22,103,.92), rgba(29,32,136,.74)); }
  .hero::after { width: 70%; height: 60px; }

  .news-list a { grid-template-columns: 1fr; gap: 4px; padding-block: 22px; }
  .news-list a:hover { padding-left: 8px; }
  .table th, .table td { display: block; width: auto; white-space: normal; padding-block: 14px; }
  .table th { border-bottom: 0; padding-bottom: 0; }
  .btn { width: 100%; }
  .deco { display: none; }
  [data-rv="left"], [data-rv="right"] { transform: translateY(40px); }
}
