:root {
  --ink: #19242d;
  --steel: #6a7880;
  --paper: #fbfaf5;
  --white: #fff;
  --cyan: #26a6b8;
  --amber: #f0b84b;
  --brick: #d45b3f;
  --mist: #d9edf0;
  --line: #ccd8dc;
  --shadow: 0 22px 50px rgba(25, 36, 45, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(25, 36, 45, .08) 1px, transparent 1px) 0 0 / 80px 100%,
    linear-gradient(var(--paper), #eef7f7 60%, #f4efe2);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.72;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.skip-link {
  position: absolute; left: 12px; top: 10px; z-index: 20;
  transform: translateY(-150%); background: var(--ink); color: #fff; padding: 8px 12px;
}
.skip-link:focus { transform: translateY(0); }

.optic-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
  background: rgba(251, 250, 245, .95);
  backdrop-filter: blur(12px);
}
.brand {
  display: grid;
  gap: 4px;
  align-content: center;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
.brand strong { font-size: 1.08rem; letter-spacing: .04em; }
.brand span { color: #cde5ef; font-size: .78rem; }
.menu-button {
  display: none;
  margin: 12px;
  justify-self: end;
  border: 1px solid var(--ink);
  background: var(--paper);
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 900;
}
.ruler-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.ruler-nav a {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(25, 36, 45, .18) 17px 18px),
    var(--paper);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 900;
}
.ruler-nav a[aria-current="page"] { background: var(--cyan); color: #fff; }

.page { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 5vw, 60px);
  align-items: center;
  padding: clamp(34px, 7vw, 78px) 0 36px;
}
.eye-chart {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}
.chart-line { display: block; font-weight: 900; line-height: 1; letter-spacing: .08em; }
.chart-line:nth-child(1) { font-size: clamp(4rem, 12vw, 8rem); }
.chart-line:nth-child(2) { font-size: clamp(2.5rem, 8vw, 5rem); }
.chart-line:nth-child(3) { font-size: clamp(1.6rem, 5vw, 3rem); }
.chart-line:nth-child(4) { font-size: clamp(1rem, 3vw, 1.8rem); color: var(--steel); }

.hero-copy { display: grid; gap: 22px; }
.label {
  width: max-content; max-width: 100%;
  padding: 5px 12px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 900;
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 4.8rem); letter-spacing: .02em; }
.lead { max-width: 44rem; margin: 0; color: #42515a; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.hero-photo { border: 1px solid var(--ink); box-shadow: var(--shadow); }
.quick-lenses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--ink);
  background: #fff;
}
.quick-lenses a {
  min-height: 96px;
  display: grid;
  align-content: center;
  padding: 14px;
  border-right: 1px solid var(--ink);
  text-decoration: none;
}
.quick-lenses a:last-child { border-right: 0; }
.quick-lenses b { color: var(--cyan); }
.quick-lenses span { color: var(--steel); font-size: .88rem; }

.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.section-head p { margin: 0; color: var(--steel); }
.drawer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  border: 1px solid var(--ink);
  background: #fff;
}
.drawer-grid article {
  min-height: 190px;
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.drawer-grid article:nth-child(2n) { border-right: 0; }
.drawer-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
.drawer-grid small { color: var(--brick); font-weight: 900; }

.page-title { display: grid; gap: 16px; padding: clamp(34px, 6vw, 70px) 0 24px; }
.wide-photo { width: 100%; max-height: 430px; object-fit: cover; border: 1px solid var(--ink); box-shadow: var(--shadow); }
.frame-wall {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.face-rail {
  position: sticky;
  top: 92px;
  padding: 18px;
  background: var(--ink);
  color: #fff;
}
.face-rail a { display: block; padding: 9px 0; color: #fff; text-underline-offset: 4px; }
.frame-list { display: grid; gap: 14px; }
.frame-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.frame-symbol {
  height: 64px;
  border: 8px solid var(--ink);
  border-radius: 50px;
  box-shadow: 74px 0 0 -8px #fff, 74px 0 0 0 var(--cyan);
}
.frame-item:nth-child(2n) .frame-symbol { border-color: var(--brick); box-shadow: 74px 0 0 -8px #fff, 74px 0 0 0 var(--amber); }
.price { font-weight: 900; color: var(--brick); white-space: nowrap; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.compare-table caption { text-align: left; margin-bottom: 10px; font-weight: 900; }
.compare-table th, .compare-table td {
  padding: 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table th { background: var(--ink); color: #fff; }
.measure-layout,
.contact-layout,
.access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .86fr);
  gap: 28px;
  align-items: start;
}
.steps {
  margin: 0; padding: 0; list-style: none; counter-reset: step;
  display: grid; gap: 12px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center;
  width: 54px; height: 54px;
  background: var(--cyan); color: #fff; font-weight: 900;
  border-radius: 50%;
}
.note-box {
  padding: 22px;
  background: var(--ink);
  color: #fff;
}
.appointment-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: 6px; }
label, legend { font-weight: 900; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #82929a;
  border-radius: 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choice-row label {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  word-break: keep-all;
}
input[type="radio"] { width: auto; min-height: auto; accent-color: var(--cyan); }
.button {
  width: max-content; max-width: 100%;
  min-height: 48px;
  display: inline-grid; place-items: center;
  border: 0;
  background: var(--brick);
  color: #fff;
  padding: 10px 18px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button.secondary { background: var(--ink); }
.form-result { padding: 12px; background: var(--mist); border-left: 7px solid var(--cyan); outline: 0; }
.contact-care { display: grid; gap: 14px; }
.contact-care article { padding: 20px; background: #fff; border-left: 10px solid var(--amber); }
.shop-data {
  margin: 0;
  display: grid;
  grid-template-columns: 120px 1fr;
  background: #fff;
  border-top: 1px solid var(--line);
}
.shop-data dt, .shop-data dd { margin: 0; padding: 14px; border-bottom: 1px solid var(--line); }
.shop-data dt { font-weight: 900; color: var(--cyan); }
.footer { margin-top: 60px; padding: 30px clamp(18px, 4vw, 44px); background: var(--ink); color: #fff; }
.footer-inner { width: min(1180px, 100%); margin: 0 auto; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a { color: #fff; }

@media (max-width: 900px) {
  .optic-header { grid-template-columns: 1fr auto; }
  .menu-button { display: inline-block; }
  .ruler-nav { grid-column: 1 / -1; display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ruler-nav.is-open { display: grid; }
  .ruler-nav a { min-height: 52px; }
  .hero,
  .section-head,
  .drawer-grid,
  .frame-wall,
  .measure-layout,
  .contact-layout,
  .access-layout { grid-template-columns: 1fr; }
  .face-rail { position: static; }
}

@media (max-width: 640px) {
  .page { width: min(100% - 22px, 1180px); }
  .quick-lenses { grid-template-columns: 1fr; }
  .quick-lenses a { border-right: 0; border-bottom: 1px solid var(--ink); }
  .quick-lenses a:last-child { border-bottom: 0; }
  .drawer-grid article,
  .drawer-grid article:nth-child(2n),
  .drawer-grid article:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid var(--ink); }
  .frame-item { grid-template-columns: 1fr; }
  .frame-symbol { width: 170px; }
  .steps li { grid-template-columns: 1fr; }
  .choice-row { display: grid; grid-template-columns: 1fr; }
  .shop-data { grid-template-columns: 1fr; }
}
