/* 金谷さん（デザイナー）のLP rc-competitor-lp のスタイルから、ファーストビューぶんを移したもの。
   見た目は触っていない。フォームだけURL1本に変えた（.url-fields の列数）。 */
:root {
  --font-sans: "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --rc-bg: #11171a;
  --rc-bg-deep: #0e1417;
  --rc-panel: #152127;
  --rc-line: rgba(119, 157, 176, 0.24);
  --rc-line-strong: rgba(89, 184, 235, 0.52);
  --rc-text: #f3f6f7;
  --rc-muted: #a8b7be;
  --rc-accent: #59b8eb;
  --rc-content: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--rc-bg); color: var(--rc-text); font-family: var(--font-sans); font-weight: 400; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
button, summary { -webkit-tap-highlight-color: transparent; }

.page-container { width: min(calc(100% - 48px), var(--rc-content)); margin-inline: auto; }
picture { display: block; }
picture > img { width: 100%; height: auto; }
.rc-grid-bg { background-color: var(--rc-bg); background-image: linear-gradient(rgba(116,151,168,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(116,151,168,.055) 1px, transparent 1px); background-size: 72px 72px; }
.site-header { position: absolute; z-index: 10; inset: 0 0 auto; }
.site-header__inner { width: min(calc(100% - 48px), 1860px); height: 88px; margin: 0 auto; display: flex; align-items: center; border-bottom: 1px solid rgba(168,183,190,.22); }
.site-logo { width: 190px; }

.hero { min-height: 1081px; padding: 156px 0 0; border-bottom: 1px solid rgba(119,157,176,.12); }
.hero__inner { position: relative; display: grid; grid-template-columns: 42% 58%; grid-template-rows: auto auto; align-items: center; width: calc(100% - 64px); max-width: 1856px; }
.hero__copy { position: relative; z-index: 2; padding-top: 24px; transform: translateY(-35px); }
.hero h1 { margin-bottom: 28px; font-size: clamp(68px, 4vw, 78px); font-weight: 800; line-height: 1.3; letter-spacing: -.055em; }
.hero h1 span { color: var(--rc-accent); }
.hero__copy p { color: #dce4e7; font-size: 16px; font-weight: 500; }
.hero__visual { position: relative; z-index: 1; width: min(1056px, 55vw); aspect-ratio: 1261 / 861; margin-left: 37px; transform: translateY(-30px); }
.hero__form { grid-column: 1 / -1; margin-top: 16px; padding: 27px 28px; border: 1px solid var(--rc-line); background: rgba(13,20,23,.68); }
.form-heading { margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.comparison-form { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; }
.url-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.url-field { min-width: 0; }
.url-field span { display: block; margin-bottom: 8px; color: #d4dee2; font-size: 11px; font-weight: 600; }
.url-input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(137,175,193,.45); border-radius: 2px; outline: 0; background: #121c21; color: var(--rc-text); font-family: var(--font-mono); font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.url-input::placeholder { color: #788991; }
.url-input:focus { border-color: var(--rc-accent); box-shadow: 0 0 0 3px rgba(89,184,235,.14); }
.primary-button { height: 48px; border-radius: 2px; padding: 0 24px; white-space: nowrap; cursor: pointer; font-weight: 700; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border: 1px solid var(--rc-accent); background: var(--rc-accent); color: #07151c; }
.primary-button img { width: 18px; filter: brightness(.2); }
.primary-button:hover:not(:disabled) { background: #78caf4; }
.primary-button:disabled { border-color: rgba(137,175,193,.32); background: #1a272d; color: #71838c; cursor: not-allowed; }
.primary-button:disabled img { filter: grayscale(1); opacity: .42; }
.primary-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.form-status { grid-column: 1 / -1; min-height: 0; margin: 0; color: var(--rc-accent); font-size: 12px; }
.form-status:not(:empty) { margin-top: 2px; }
.form-scope { grid-column: 1 / -1; margin: 6px 0 0; color: var(--rc-muted); font-size: 12px; line-height: 1.7; }

@media (min-width: 981px) {
  .hero { background: #11171a url("/assets/flat/01-fv-bg-right-visual-1920x1081.png") center top / 1920px 1081px no-repeat; }
  .hero__visual { opacity: 0; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; }
  .hero__inner { grid-template-columns: 48% 52%; }
  .hero__visual { width: 100%; margin-left: 0; transform: none; }
  .comparison-form { grid-template-columns: 1fr 1fr; }
  .url-fields { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .page-container, .hero__inner { width: min(calc(100% - 40px), var(--rc-content)); }
  .rc-grid-bg { background-size: 44px 44px; }
  .site-header__inner { width: calc(100% - 32px); height: 56px; }
  .site-logo { width: 126px; }
  .hero { min-height: 0; margin-bottom: 0; padding: 82px 0 24px; }
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; }
  .hero__copy { order: 1; padding: 0; transform: none; }
  .hero h1 { margin-bottom: 16px; font-size: 32px; line-height: 1.38; }
  .hero__copy p { margin-bottom: 18px; font-size: 11px; line-height: 1.75; }
  .hero__form { order: 2; margin: 0; padding: 14px; }
  .hero__visual { order: 3; width: 100%; max-width: none; margin: 16px 0 0; aspect-ratio: 1394 / 958; transform: none; }
  .form-heading { font-size: 14px; }
  .comparison-form { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
  .url-fields { display: flex; flex-direction: column; gap: 6px; }
  .url-field span { margin-bottom: 5px; font-size: 9px; }
  .url-input, .primary-button { height: 36px; }
  .url-input { font-size: 11px; }
  .primary-button { width: 100%; font-size: 12px; }
  .form-status { font-size: 10px; text-align: center; }
  .form-scope { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
