/* SHOKUTECH — site stylesheet. Plain CSS, no build step. */

:root {
  --primary: #1a365d;
  --primary-dark: #0f2342;
  --accent: #0ea5e9;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #333333;
  --text-strong: #111827;
  --muted: #64748b;
  --border: #f3f4f6;
  /* Body text uses the device's own Japanese font: no download, no reflow.
     Hiragino on Apple, Noto Sans CJK on Android, Yu Gothic / Meiryo on Windows. */
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  /* Headings: Shippori Mincho web font (display=optional, so it never swaps in late). */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary);
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  cursor: pointer;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
  flex-shrink: 0;
}

.eyebrow {
  display: block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-head {
  text-align: center;
}

.section-title {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  color: var(--text-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.md-only {
  display: none;
}

/* ---------- Navigation ---------- */

.site-nav {
  position: fixed;
  width: 100%;
  z-index: 50;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  transition: opacity 0.15s;
}

.logo:hover {
  opacity: 0.8;
}

.nav-links {
  display: none;
  align-items: baseline;
  gap: 2rem;
  margin-left: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: all 0.15s;
}

.nav-cta:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.125rem);
}

/* Mobile menu: a <details> disclosure, no script needed. */
.mobile-menu {
  position: relative;
  margin-right: -0.5rem;
}

.mobile-menu summary {
  list-style: none;
  display: inline-flex;
  padding: 0.5rem;
  border-radius: 0.375rem;
  color: #9ca3af;
  cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary:hover {
  color: #6b7280;
  background: #f3f4f6;
}

.mobile-menu .panel {
  position: absolute;
  right: 0.5rem;
  top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 12rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}

.blob-1 {
  top: 0;
  right: 0;
  margin: -5rem -5rem 0 0;
  width: 24rem;
  height: 24rem;
  background: rgb(219 234 254 / 0.5);
}

.blob-2 {
  bottom: 0;
  left: 0;
  margin: 0 0 -5rem -5rem;
  width: 18rem;
  height: 18rem;
  background: rgb(165 243 252 / 0.2);
}

.hero .container {
  position: relative;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgb(26 54 93 / 0.2);
  border-radius: 9999px;
  background: #eff6ff;
  color: var(--primary);
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  margin-bottom: 2rem;
}

.hero .highlight {
  position: relative;
  display: inline-block;
  color: var(--primary);
}

.hero .highlight svg {
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 0.75rem;
  color: rgb(14 165 233 / 0.3);
}

.hero .lead {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
}

/* ---------- Issues ---------- */

.issues {
  position: relative;
  padding: 6rem 0;
  background: var(--surface);
}

.issues .section-head {
  margin-bottom: 5rem;
}

.issues .eyebrow {
  margin-bottom: 0.5rem;
}

.issues .section-title {
  margin-bottom: 1.5rem;
}

.issues .section-head p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-0.5rem);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: #eff6ff;
  color: var(--primary);
  transition: background-color 0.3s, color 0.3s;
}

.card-icon .icon {
  width: 1.875rem;
  height: 1.875rem;
}

.card:hover .card-icon {
  background: var(--primary);
  color: #fff;
}

.card h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 1rem;
}

.card p {
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted);
}

/* ---------- Vision ---------- */

.vision {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  background: var(--primary-dark);
}

.vision::before,
.vision::after {
  content: "";
  position: absolute;
  inset: 0;
}

.vision::before {
  background: linear-gradient(to right, #1e3a8a, var(--primary));
  opacity: 0.9;
}

.vision::after {
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.1;
}

.vision .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.vision-title {
  margin-bottom: 3rem;
}

.vision h2 {
  font-size: 2.25rem;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
}

.vision .rule {
  width: 5rem;
  height: 0.25rem;
  margin-bottom: 2rem;
  background: var(--accent);
}

.vision-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #eff6ff;
  font-size: 1.125rem;
  line-height: 1.625;
  font-weight: 300;
}

/* ---------- Services ---------- */

.services {
  padding: 8rem 0;
  background: var(--bg);
  overflow: hidden;
}

.services .section-head {
  margin-bottom: 6rem;
}

.services .eyebrow {
  display: inline;
}

.services .section-title {
  margin-top: 0.5rem;
  font-weight: 400;
}

.product {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3rem;
  box-shadow: var(--shadow-2xl);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

.product-text {
  order: 2;
}

.product-image {
  order: 1;
  display: flex;
  justify-content: center;
}

/* The <picture> must carry the width: inside the flex row it otherwise shrinks
   to nothing and the image renders 0px wide (it did on the old site). */
.product-image picture {
  display: block;
  width: 100%;
  max-width: 36rem;
}

.product-image img {
  width: 100%;
}

.product-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product h3 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}

.product h4 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 300;
  color: var(--primary);
  margin-bottom: 2rem;
}

.product-text p {
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  transition: all 0.15s;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgb(26 54 93 / 0.3), 0 4px 6px -4px rgb(26 54 93 / 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: #d1d5db;
  color: #374151;
}

.btn-outline:hover {
  background: #f9fafb;
}

/* ---------- Contact ---------- */

.contact {
  position: relative;
  padding: 6rem 0;
  background: var(--surface);
}

.contact .container {
  max-width: 48rem;
}

.contact .section-head {
  margin-bottom: 4rem;
}

.contact .eyebrow {
  display: inline;
}

.contact .section-title {
  margin-top: 0.5rem;
}

.contact .section-head p {
  margin-top: 1rem;
  color: var(--muted);
}

.form-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #374151;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.submit {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.submit:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary);
}

.submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-success {
  padding: 1rem 0;
  text-align: center;
}

.form-success h3 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 1rem;
}

.form-success p {
  max-width: 32rem;
  margin: 0 auto 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: #475569;
}

.form-success .note {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 4rem 0;
  background: var(--primary);
  color: #fff;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  text-align: center;
}

.site-footer .logo {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
  line-height: 2.5rem;
  color: #fff;
}

.site-footer .logo:hover {
  opacity: 1;
}

.site-footer .tagline {
  margin-bottom: 3rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #d1d5db;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #d1d5db;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #9ca3af;
}

/* ---------- 404 ---------- */

.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 7rem 1.5rem 5rem;
}

.not-found section {
  width: 100%;
  max-width: 42rem;
  padding: 2.5rem;
  text-align: center;
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

.not-found .code {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.not-found h1 {
  margin-bottom: 1rem;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  color: var(--primary);
}

.not-found p {
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted);
}

.not-found .home {
  display: inline-flex;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  transition: background-color 0.2s;
}

.not-found .home:hover {
  background: var(--primary-dark);
}

/* ---------- Breakpoints ---------- */

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }

  .buttons {
    flex-direction: row;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

@media (min-width: 768px) {
  .md-only {
    display: block;
  }

  .nav-links {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .hero h1 {
    font-size: 4.5rem;
    line-height: 1;
  }

  .hero .lead {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .section-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .services .section-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .contact .section-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .vision .container {
    flex-direction: row;
  }

  .vision-title,
  .vision-body {
    width: 50%;
  }

  .vision-title {
    margin-bottom: 0;
  }

  .vision-body {
    padding-left: 4rem;
  }

  .vision h2 {
    font-size: 3rem;
    line-height: 1;
  }

  .product {
    padding: 4rem;
  }

  .product h3 {
    font-size: 4.5rem;
  }

  .form-card {
    padding: 3rem;
  }

  .form-success h3 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .form-success p {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .not-found section {
    padding: 3.5rem;
  }

  .not-found .code {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .not-found h1 {
    font-size: 3rem;
    line-height: 1;
  }

  .not-found p {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .hero {
    padding: 12rem 0 8rem;
  }

  .product-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .product-text {
    grid-column: span 7;
    order: 1;
  }

  .product-image {
    grid-column: span 5;
    order: 2;
    justify-content: flex-end;
  }
}
