/* ===== RIN corporate site ===== */
:root {
  --paper: #ffffff;
  --ink: #1c1c1c;
  --sub: #6b6f76;
  --line: #e4e4e4;
  --mist: #f5f6f7;
  --accent: #2f4ad8;

  --font-en: "Oswald", "Arial Narrow", sans-serif;
  --font-ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 24px; width: auto; }
.global-nav ul {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.global-nav a {
  font-size: 14px;
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  transition: background-size 0.3s ease;
}
.global-nav a:hover { background-size: 100% 1px; }

/* ----- Hero ----- */
.hero {
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(48px, 9vh, 112px);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(30px, 8.6vw, 112px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .cross {
  font-weight: 400;
  display: inline-block;
  margin: 0 0.06em;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: clamp(32px, 6vh, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.hero-foot p { margin: 0; font-size: 15px; }
.hero-foot .scroll {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--sub);
  text-decoration: none;
}

/* single page-load moment */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span {
    transform: translateY(105%);
    animation: rise 1s cubic-bezier(0.2, 0.7, 0.1, 1) forwards;
  }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
  .hero-foot {
    opacity: 0;
    animation: fade 0.8s ease 0.7s forwards;
  }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* ----- Sections ----- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-grid {
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  gap: clamp(32px, 6vw, 96px);
}
.section-title { margin: 0; }
.section-title .en {
  display: block;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.section-title .ja {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
}

.lead {
  margin: 0 0 32px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.body-text { margin: 0; max-width: 38em; color: #3a3d42; }

/* services list */
.service-list {
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.service-list li {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.service-list h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.service-list p { margin: 0; font-size: 15px; color: #3a3d42; }

/* company table */
.company { margin: 0; border-top: 1px solid var(--ink); }
.company div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.company dt { color: var(--sub); font-size: 14px; }
.company dd { margin: 0; }

/* contact */
.contact-intro { margin: 0 0 40px; color: #3a3d42; }
.form { display: grid; gap: 28px; max-width: 640px; }
.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}
.req {
  font-size: 11px;
  color: var(--sub);
  border: 1px solid var(--line);
  padding: 0 6px;
  border-radius: 2px;
  line-height: 1.7;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--ink);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c62828; }
.error { margin: 6px 0 0; font-size: 13px; color: #c62828; }
.error:empty { display: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.consent input { margin-top: 6px; width: 16px; height: 16px; accent-color: var(--ink); }

.btn {
  justify-self: start;
  padding: 16px 48px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:disabled { opacity: 0.5; cursor: progress; }

.form-status { margin: 0; font-size: 15px; }
.form-status:empty { display: none; }

/* ----- Footer ----- */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--sub);
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .logo img { height: 20px; }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ----- Policy page ----- */
.policy h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
}
.policy .updated { color: var(--sub); font-size: 14px; margin: 0 0 48px; }
.policy h2 { font-size: 18px; margin: 48px 0 12px; }
.policy p, .policy li { color: #3a3d42; max-width: 40em; }

/* ----- Responsive ----- */
@media (max-width: 760px) {
  .site-header .wrap { height: 60px; }
  html { scroll-padding-top: 68px; }
  .logo img { height: 20px; }
  .global-nav a { font-size: 12.5px; }
  .hero { min-height: calc(100svh - 60px); }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .section-grid { grid-template-columns: 1fr; }
  .service-list li { grid-template-columns: 1fr; gap: 8px; }
  .company div { grid-template-columns: 1fr; gap: 2px; padding: 18px 0; }
  .btn { justify-self: stretch; }
}
