/* =========================================================
   JIYU Laboratories — site styles
   Design tokens (colors, fonts, sizes) live in :root below.
   ========================================================= */
:root {
  --color-text: #333;
  --color-heading: #111;
  --color-muted: #555;
  --color-bg: #fff;
  --color-bg-gray: #eee;
  --color-button: #000;
  --color-button-text: #fff;
  --color-link: #1a5fb4;
  --color-border: #ddd;

  --font-base: "Roboto Condensed", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;

  --width-page: 1220px;   /* header + services cards */
  --width-text: 800px;    /* long-form text (story, achievements) */
  --gutter: 24px;
}

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

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-link); }

/* ---------- Header ---------- */
.site-header__inner {
  max-width: var(--width-page);
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header__brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a {
  color: var(--color-heading);
  text-decoration: none;
  font-size: 16px;
}
.site-nav a:hover { text-decoration: underline; }

.site-tagline {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 40px var(--gutter) 0;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--gray { background: var(--color-bg-gray); }
.section--services { padding-top: 72px; }

.container {
  max-width: var(--width-page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-head { text-align: center; margin-bottom: 64px; }
.section-head__label {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-heading);
}
.section-head__title {
  margin: 0;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-heading);
}
.section-head__subtitle {
  margin: 24px 0 0;
  font-size: 18px;
  color: var(--color-text);
}
.section-head--sub { margin-bottom: 48px; }
.section-head--sub .section-head__title { font-size: 32px; }

/* ---------- Long-form text ("prose") ---------- */
.prose {
  max-width: var(--width-text);
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
}
.prose h2 {
  font-size: 26px;
  line-height: 1.3;
  color: var(--color-heading);
  margin: 56px 0 20px;
}
.prose h3 { font-size: 20px; color: var(--color-heading); margin: 40px 0 16px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.4em; }
.prose strong { color: var(--color-heading); }

/* Bullets shown as "・" like the original site */
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.prose ul > li { position: relative; padding-left: 1.1em; margin-bottom: 1.1em; }
.prose ul > li::before { content: "・"; position: absolute; left: 0; }
.prose--small { font-size: 15px; line-height: 1.7; }
.prose--small ul > li { margin-bottom: 0.15em; }
.prose--center { text-align: center; }

.section--text .prose a { word-break: break-all; }

/* ---------- Services cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.card { display: flex; flex-direction: column; }
.card__image {
  aspect-ratio: 378 / 250;
  background: #f2f2f2;
  overflow: hidden;
  margin-bottom: 28px;
}
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--color-heading);
}
.card__target { margin: 0 0 12px; font-size: 19px; color: var(--color-heading); }
.card__body { margin: 0; max-width: none; flex: 1; color: var(--color-muted); }
.card__action { text-align: center; margin-top: 16px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  min-width: 255px;
  padding: 10px 24px;
  border-radius: 6px;
  background: var(--color-button);
  color: var(--color-button-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}
.button:hover { opacity: 0.8; }
.button--wide { min-width: 320px; padding: 16px 32px; font-size: 17px; border-radius: 999px; }

/* ---------- About ---------- */
.about__items {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.about__item { text-align: center; max-width: 320px; }
.about__icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #1e88e5;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}
.about__title { margin: 0 0 8px; font-size: 24px; color: var(--color-text); }
.about__text { margin: 0; font-size: 15px; color: var(--color-muted); }

/* ---------- Company (two columns) ---------- */
.columns {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 96px;
}
.columns .prose { max-width: none; margin: 0; font-size: 16px; }
.columns .prose h2 { font-size: 32px; margin-top: 0; }

/* ---------- Contact ---------- */
.contact__action { text-align: center; margin-top: 32px; }
.contact__embed {
  max-width: 680px;
  margin: 32px auto 0;
}
.contact__embed iframe {
  width: 100%;
  height: 900px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

/* ---------- Footer ---------- */
.site-footer { text-align: center; padding: 48px var(--gutter) 40px; }
.to-top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 18px;
}
.to-top:hover { opacity: 0.7; }
.copyright { margin: 24px 0 0; font-size: 13px; color: #888; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; gap: 64px; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .site-header__inner { justify-content: center; padding-top: 16px; }
  .site-header__brand { font-size: 20px; }
  .site-nav { gap: 16px; justify-content: center; }
  .site-tagline { font-size: 18px; margin-top: 28px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head__title { font-size: 36px; }
  .section-head__subtitle { font-size: 16px; }
  .prose h2 { font-size: 22px; margin-top: 40px; }
  .about__items { gap: 48px; }
  .button, .button--wide { min-width: 0; width: 100%; max-width: 320px; }
  .contact__embed iframe { height: 1000px; }
}
