/* ============================================
   Blotocol.com renewal — Design A "Light Minimal"
   Palette (from business card):
   blue #4FA9E0 / ink #1B1B1B / gray #9EA3A8 / light #F4F5F6
   ============================================ */
:root {
  --primary-color: #1E6E9F; /* 現行サイト由来の変数名（プライバシー本文の無変更転載用） */
  --blue: #4FA9E0;
  --blue-text: #1E6E9F;   /* accessible accent for text on white */
  --blue-pale: #EAF4FB;
  --ink: #1B1B1B;
  --ink-soft: #2C2C2E;
  --gray-text: #63686D;
  --gray-motif: #C6CBD0;
  --bg: #FFFFFF;
  --bg-alt: #F4F5F6;
  --line: #E3E5E7;
  --radius: 14px;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 22px;
  height: 72px;
}
.header-inner .brand { margin-right: auto; }

/* ---------- language switch ---------- */
.lang-switch select {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2363686D' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 10px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 30px 7px 14px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.lang-switch select:hover { border-color: var(--blue); }

.brand {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand .u { color: var(--blue); }
.brand-logo { display: block; width: auto; height: 40px; }
.footer-brand .brand-logo--footer { height: 46px; }

.global-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}
.global-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.global-nav a:hover { color: var(--blue-text); }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 999px;
  transition: background 0.2s ease;
}
.nav-cta:hover { background: var(--blue-text); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- hero (background image + overlay) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 860px);
  padding: 140px 0;
  color: #fff;
  background: var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 15, 21, 0.86) 0%, rgba(9, 15, 21, 0.64) 46%, rgba(9, 15, 21, 0.24) 100%),
    linear-gradient(180deg, rgba(9, 15, 21, 0.35) 0%, rgba(9, 15, 21, 0) 32%);
}
.hero > .container { position: relative; z-index: 2; }
.hero .hero-eyebrow { color: #9FD4F5; }
.hero h1 {
  color: #fff;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}
.hero h1 .accent { color: #7EC6EF; }
.hero .hero-lead {
  color: #E8EDF1;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn-primary { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35); }

.hero-motif {
  position: absolute;
  right: -140px;
  top: 40px;
  width: 640px;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--blue-text);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2.5px solid var(--blue);
  transform: rotate(45deg);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 72px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.hero h1 .accent { color: var(--blue-text); }

.hero-lead {
  margin-top: 32px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--gray-text);
  max-width: 34em;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 64px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(27, 27, 27, 0.16);
}
.hero-visual img { display: block; width: 100%; height: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 34px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue-text); }
.btn-ghost {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-text); }
.btn .arrow { font-family: var(--font-en); }

/* ---------- section base ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 64px; }

.section-label {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue);
  transform: rotate(45deg);
}

.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.4;
}

.section-desc {
  margin-top: 20px;
  color: var(--gray-text);
  max-width: 38em;
}

/* ---------- concept band ---------- */
.concept {
  background: var(--ink);
  color: #fff;
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.concept-motif {
  position: absolute;
  left: -160px;
  bottom: -120px;
  width: 520px;
  opacity: 0.14;
  pointer-events: none;
}
.concept-lines {
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.7;
}
.concept-lines .line { display: block; }
.concept-lines .x { color: var(--blue); font-family: var(--font-en); }
.concept-sub {
  margin-top: 36px;
  color: #B9BDC1;
  max-width: 40em;
  font-size: 15.5px;
}

/* ---------- solutions ---------- */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.sol-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 40px;
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.sol-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(27, 27, 27, 0.06);
}

.sol-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 26px;
}
.sol-photo.img-contain,
.page-hero-img.img-contain {
  object-fit: contain;
  background: #fff;
}

.sol-mark {
  display: flex;
  margin-bottom: 26px;
}
.sol-mark i {
  width: 18px;
  height: 18px;
  border: 4px solid var(--gray-motif);
  transform: rotate(45deg);
  margin-right: -7px;
}
.sol-mark i:last-child { border-color: var(--blue); }

.sol-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.sol-card .en {
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-text);
  margin-top: 6px;
}

.sol-items {
  list-style: none;
  margin: 24px 0 28px;
  flex: 1;
}
.sol-items li {
  padding: 9px 0 9px 22px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
}
.sol-items li:last-child { border-bottom: 0; }
.sol-items li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 2px solid var(--blue);
  transform: translateY(-50%) rotate(45deg);
}

.sol-link {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--blue-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sol-link:hover { text-decoration: underline; }

/* ---------- strengths ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.strength {
  border-top: 3px solid var(--blue);
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 36px 32px;
  box-shadow: 0 1px 0 var(--line), 1px 0 0 var(--line), -1px 0 0 var(--line);
}
.strength h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 14px;
}
.strength p {
  font-size: 14.5px;
  color: var(--gray-text);
}

/* ---------- cta band ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .cta-motif {
  position: absolute;
  right: -120px;
  top: -110px;
  width: 420px;
  opacity: 0.22;
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.5;
}
.cta-band p {
  margin-top: 18px;
  color: #EAF4FB;
  font-size: 15.5px;
}
.cta-band .btn {
  margin-top: 40px;
  background: #fff;
  color: var(--blue-text);
}
.cta-band .btn:hover { background: var(--ink); color: #fff; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C9CCCF;
  padding: 72px 0 40px;
  font-size: 14px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 16px; color: #9EA3A8; }
@media (min-width: 721px) {
  .footer-brand p { white-space: nowrap; }
}
.footer-nav ul { list-style: none; display: grid; gap: 12px; }
.footer-nav a:hover { color: #fff; }
.footer-meta {
  border-top: 1px solid #333;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: #8B9095;
  font-size: 12.5px;
}
.footer-meta img {
  display: block;
  background: #fff;
  padding: 6px;
  border-radius: 10px;
}

/* ---------- sub pages ---------- */
.page-hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-eyebrow { margin-bottom: 20px; }
.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.35;
}
.page-hero .lead {
  margin-top: 24px;
  color: var(--gray-text);
  max-width: 40em;
}
.page-hero-motif {
  position: absolute;
  right: -120px;
  top: -60px;
  width: 380px;
  opacity: 0.5;
  pointer-events: none;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.page-hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.service { padding: 88px 0; }
.service + .service { border-top: 1px solid var(--line); }
.service-alt { background: var(--bg-alt); }

.service-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.service-head h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}
.service-head .en {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-text);
}
.service > .container > p.desc {
  color: var(--gray-text);
  max-width: 44em;
  margin-bottom: 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.service-alt .feature { background: #fff; }
.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature h3::before {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border: 2.5px solid var(--blue);
  transform: rotate(45deg);
}
.feature p {
  font-size: 14.5px;
  color: var(--gray-text);
}

.step-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  counter-increment: step;
}
.step::before {
  content: "STEP 0" counter(step);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue-text);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--gray-text); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 32px;
}
.tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-text);
  background: var(--blue-pale);
  border-radius: 999px;
  padding: 6px 16px;
}

.note-box {
  margin-top: 36px;
  border-left: 3px solid var(--blue);
  background: var(--blue-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb {
  padding: 20px 0 0;
  font-size: 13px;
  color: var(--gray-text);
}
.breadcrumb a { color: var(--blue-text); }
.breadcrumb span::before { content: " ◇ "; color: var(--gray-motif); font-size: 10px; }
.breadcrumb span.bc-current::before { content: none; }

.pagination-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 48px 0 88px;
}

/* company */
.info-table {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  border-top: 1px solid var(--line);
  padding: 22px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 1px solid var(--line); }
.info-table th {
  width: 200px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.info-table td { color: var(--ink-soft); }
.ceo-block { text-align: center; margin-top: 72px; }
.ceo-block img.photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 18px;
}
.ceo-block .en-name { color: var(--blue-text); font-family: var(--font-en); font-weight: 600; font-size: 18px; }
.ceo-block .jp-name { font-size: 16px; margin-top: 4px; }
.ceo-block .sns { display: flex; justify-content: center; gap: 14px; margin-top: 18px; }
.ceo-block .sns img { width: 34px; height: 34px; }

/* contact */
.contact-wrap { max-width: 760px; margin-inline: auto; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group label .req {
  color: #C0392B;
  font-size: 12px;
  margin-left: 6px;
}
.form-control {
  width: 100%;
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.2s ease;
}
.form-control:hover { border-color: var(--gray-motif); }
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-pale);
}
textarea.form-control { min-height: 170px; resize: vertical; }
select.form-control { appearance: auto; }
.consent-details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin: 30px 0 22px;
  font-size: 13.5px;
}
.consent-details summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
}
.consent-details .body {
  padding: 0 20px 20px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.checkbox-group {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 28px;
  font-size: 14px;
}
.checkbox-group input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--blue); }
.submit-btn {
  font-family: var(--font-jp);
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 16px 48px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.submit-btn:hover { background: var(--blue-text); }
.submit-btn:disabled { background: var(--gray-motif); cursor: wait; }
#form-message { margin-top: 20px; font-size: 14.5px; font-weight: 600; }
#form-message.ok { color: #1D7A46; }
#form-message.err { color: #C0392B; }

/* privacy */
.legal-block {
  max-width: 820px;
  margin-inline: auto;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 44px 40px;
  font-size: 14px;
  line-height: 2;
  color: var(--ink-soft);
}
.legal-block a { color: var(--blue-text); text-decoration: underline; }
.legal-block [data-en] { display: none; }

@media (max-width: 720px) {
  .info-table th { width: auto; display: block; border-top: 1px solid var(--line); padding-bottom: 4px; }
  .info-table td { display: block; border-top: 0; padding-top: 0; }
  .legal-block { padding: 28px 20px; }
  .service { padding: 60px 0; }
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .sol-card:hover { transform: none; }
  .hero-motif .float { animation: none !important; }
}

/* hero motif float */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-motif .float { animation: floaty 7s ease-in-out infinite; }
.hero-motif .float2 { animation: floaty 9s ease-in-out 1.2s infinite; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sol-grid { grid-template-columns: 1fr; }
  .strength-grid { grid-template-columns: 1fr; }
  .hero-motif { width: 440px; right: -160px; opacity: 0.35; }
}

@media (max-width: 720px) {
  .global-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 24px;
    display: none;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: flex-start; gap: 20px; }
  .nav-toggle { display: block; }
  .hero { padding: 88px 0; min-height: min(78vh, 640px); }
  .hero::after {
    background: linear-gradient(180deg, rgba(9, 15, 21, 0.78) 0%, rgba(9, 15, 21, 0.55) 55%, rgba(9, 15, 21, 0.4) 100%);
  }
  .hero h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .lang-switch select { padding: 6px 26px 6px 12px; font-size: 12.5px; }
  .header-inner { gap: 12px; }
  .brand-logo { height: 34px; }
  .footer-brand .brand-logo--footer { height: 42px; }
  .page-hero h1 { font-size: clamp(26px, 7.6vw, 32px); }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(24px, 6.6vw, 28px); }
  .concept { padding: 88px 0; }
  .concept-lines { font-size: clamp(21px, 5.8vw, 26px); }
  .sol-card { padding: 32px 26px; }
  .hero-motif { display: none; }
  .btn { padding: 14px 28px; }
}
