:root {
  --bg: #f7f9fd;
  --bg-tint: #e9effa;
  --ink: #26304a;
  --ink-soft: #5c6478;
  --accent: #3a5ca8;
  --accent-dark: #233a73;
  --mint: #5a82c9;
  --card: #ffffff;
  --line: #d9e2f2;
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 500;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1.4;
  margin: 0;
}
p {
  margin: 0;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 767px) {
  .pc {
    display: none;
  }
}

.character {
  --skin: #f7d9bd;
  --hair: #b0703c;
  --brow: #8a5530;
  --wear: #5476b8;
  --wear-dark: #3f5d9a;
  --stripe: #9db4e8;
  --shirt: #fffaf2;
  --helmet: #2f4b8a;
  --helmet-dark: #213a73;
  --brim: #172449;
  --nose: #f0a58a;
  --cheek: #f4a9a0;
  --backdrop: #e9effa;
  display: block;
  width: 100%;
  height: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 24px;
  background: rgba(247, 249, 253, 0.9);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
}
.nav a:hover {
  color: var(--accent-dark);
}
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}
.header-tel svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--accent-dark);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(3px);
  box-shadow: 0 3px 0 var(--accent-dark);
}
.btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
  box-shadow: 0 4px 0 var(--accent-dark);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 0 var(--line);
}
.btn-ghost:hover {
  box-shadow: 0 3px 0 var(--line);
}
.btn-light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.hero-eyebrow {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.marker {
  background: linear-gradient(transparent 64%, #9db4e8 64%);
}
.hero-lead {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}
.hero-visual {
  position: relative;
  max-width: 340px;
  justify-self: center;
  width: 100%;
}
.hero-character {
  animation: bob 3s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-character {
    animation: none;
  }
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}
.section-tint {
  max-width: none;
  background: var(--bg-tint);
  border-radius: 48px;
  margin: 0 12px;
}
.section-tint > * {
  max-width: 1052px;
  margin-left: auto;
  margin-right: auto;
}
.section-title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
}
.section-title span {
  background: linear-gradient(transparent 62%, #cddbf6 62%);
}
.section-lead {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 12px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.card {
  padding: 28px 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(38, 48, 74, 0.06);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--bg-tint);
  margin-bottom: 16px;
}
.card-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.video p {
  margin-top: 10px;
  font-weight: 700;
}
.video-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: linear-gradient(135deg, #d6e2f8, #eef3fc);
}
.play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  position: relative;
  box-shadow: 0 4px 12px rgba(38, 48, 74, 0.12);
}
.play::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 17px;
  border-left: 16px solid var(--accent);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.promise {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(38, 48, 74, 0.06);
}
.promise-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-weight: 900;
}
.promise h3 {
  font-size: 1.1rem;
}
.promise p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 4px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.step {
  padding: 24px 18px;
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}
.step h3 {
  font-size: 1.05rem;
}
.step p {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 6px;
}

.company {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 8px 28px;
  border-radius: var(--radius);
  background: var(--card);
}
.company div {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 16px 0;
}
.company div + div {
  border-top: 1px dashed var(--line);
}
.company dt {
  font-weight: 700;
}
.company dd {
  margin: 0;
  color: var(--ink-soft);
}

.contact {
  padding: 0 12px 72px;
}
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
  border-radius: 48px;
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.contact h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
}
.contact p {
  margin: 12px auto 28px;
  max-width: 32em;
}
.contact-ways {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-way {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 32px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
}
.contact .contact-label {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
}
.contact-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}
.contact-tel svg {
  width: 0.9em;
  height: 0.9em;
  fill: #fff;
}

.footer {
  padding: 24px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .step {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    text-align: left;
  }
  .step-num {
    grid-row: span 2;
    margin: 0;
  }
  .step p {
    margin-top: 0;
  }
}
@media (max-width: 767px) {
  .header {
    padding: 10px 16px;
  }
  .nav {
    display: none;
  }
  .btn-small {
    margin-left: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 32px 16px 56px;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    max-width: 240px;
    grid-row: 1;
  }
  .section {
    padding: 56px 16px;
  }
  .section-tint {
    margin: 0 8px;
    border-radius: 32px;
  }
  .cards,
  .videos,
  .promises {
    grid-template-columns: 1fr;
  }
  .company {
    padding: 4px 20px;
  }
  .company div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact {
    padding: 0 8px 56px;
  }
  .contact-inner {
    border-radius: 32px;
    padding: 48px 20px;
  }
}

/* ナビと電話番号が並ぶと狭い幅で収まらないので、ナビから先に畳む */
@media (max-width: 1000px) {
  .nav {
    display: none;
  }
  .header-tel {
    margin-left: auto;
  }
}
@media (max-width: 767px) {
  .header {
    gap: 12px;
  }
  .header-tel span {
    display: none;
  }
  .header-tel {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tint);
  }
  .header-tel svg {
    width: 20px;
    height: 20px;
  }
  .btn-small {
    margin-left: 0;
  }
  .contact-way {
    width: 100%;
    padding: 18px 16px 20px;
  }
}

/* 相談フォーム */
.form-card {
  max-width: 720px;
  margin: 40px auto 0;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(38, 48, 74, 0.06);
}
.lead-form {
  display: grid;
  gap: 18px;
}
.lead-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-weight: 700;
  font-size: 0.95rem;
}
.req {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  vertical-align: 2px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
  background: #fff;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.turnstile {
  min-height: 65px;
}
.lead-form .btn {
  justify-self: center;
  min-width: 220px;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lead-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.form-error {
  color: #c0392b;
  font-weight: 700;
}
.form-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.form-thanks {
  text-align: center;
  padding: 24px 0;
}
.form-thanks h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.footer {
  display: grid;
  gap: 4px;
}
@media (max-width: 767px) {
  .form-card {
    padding: 24px 18px;
  }
  .lead-form .row {
    grid-template-columns: 1fr;
  }
}

/* プライバシーポリシー */
.policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.policy h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  text-align: center;
  margin-bottom: 32px;
}
.policy-body {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--card);
}
.policy h2 {
  font-size: 1.15rem;
  margin: 32px 0 10px;
}
.policy h2:first-child {
  margin-top: 0;
}
.policy p,
.policy li {
  color: var(--ink-soft);
}
.policy ol {
  list-style: decimal;
  padding-left: 1.6em;
  margin-top: 8px;
}
.policy a {
  color: var(--accent);
}
.policy-sign {
  margin-top: 32px;
  text-align: right;
}
@media (max-width: 767px) {
  .policy {
    padding: 32px 16px 56px;
  }
  .policy-body {
    padding: 22px 18px;
  }
}

/* ヒーローの背景アニメーション */
.hero-wrap {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 140px;
  background: linear-gradient(rgba(247, 249, 253, 0), var(--bg) 80%);
  z-index: -1;
}
.hero-wrap .hero {
  padding-top: 80px;
  padding-bottom: 104px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.85;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob-1 {
  width: 520px;
  height: 520px;
  top: -180px;
  left: -140px;
  background: #c6d6f6;
}
.blob-2 {
  width: 440px;
  height: 440px;
  top: 40px;
  right: -120px;
  background: #d3e7f7;
  animation-duration: 26s;
  animation-delay: -8s;
}
.blob-3 {
  width: 380px;
  height: 380px;
  bottom: -200px;
  left: 38%;
  background: #d6dcfa;
  animation-duration: 30s;
  animation-delay: -15s;
}
@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(60px, 40px) scale(1.08);
  }
  100% {
    transform: translate(-40px, 70px) scale(0.95);
  }
}
.twinkle {
  position: absolute;
  fill: #9db4e8;
  animation: twinkle 3.6s ease-in-out infinite;
}
.t1 { top: 16%; left: 5%; width: 18px; }
.t2 { top: 72%; left: 10%; width: 12px; animation-delay: -1.2s; fill: #3a5ca8; }
.t3 { top: 10%; left: 46%; width: 14px; animation-delay: -2.1s; }
.t4 { top: 80%; left: 50%; width: 20px; animation-delay: -0.6s; }
.t5 { top: 26%; right: 5%; width: 16px; animation-delay: -2.8s; fill: #3a5ca8; }
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: scale(1) rotate(20deg);
  }
}

/* キャラの後ろから外へ広がる輪（見守り） */
.hero-visual .character {
  position: relative;
  z-index: 1;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(58, 92, 168, 0.35);
  animation: ripple 4.5s ease-out infinite;
}
.ring:nth-of-type(2) {
  animation-delay: 1.5s;
}
.ring:nth-of-type(3) {
  animation-delay: 3s;
}
@keyframes ripple {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

/* 読み込み時に文字とキャラがふわっと出る */
.hero-text > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-visual {
  animation: rise 0.9s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  .hero-wrap .hero {
    padding-top: 40px;
    padding-bottom: 72px;
  }
  .blob-1 {
    width: 340px;
    height: 340px;
  }
  .blob-2 {
    width: 300px;
    height: 300px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blob,
  .twinkle,
  .ring,
  .hero-text > *,
  .hero-visual {
    animation: none;
  }
  .ring {
    display: none;
  }
}
.hero-lead {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

/* ============================================================
   ポップ配色（feat/pop-colors で試す案）
   紺（文字・輪郭）＋ 青（主役）＋ 水色・ミント（差し色）＋ 薄いグレー（地の色）
   太い紺の輪郭と、ずらした影でメリハリを出す。ぼかしは使わない
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-tint: #eef1f5;
  --ink: #0f1a33;
  --ink-soft: #2c3550;
  --accent: #2f5bd3;
  --accent-dark: #14213d;
  --mint: #22b8a6;
  --line: #14213d;
  --gray: #d5dbe3;
  --sky: #3db4f2;
  --mint-soft: #b8efe5;
  --sky-soft: #c4e8fc;
  --blue-soft: #c9d8ff;
}
.header {
  background: #fff;
  backdrop-filter: none;
  box-shadow: 0 2px 0 rgba(15, 26, 51, 0.1);
}
.header-tel,
.header-tel svg {
  color: var(--ink);
  fill: var(--accent);
}

/* ボタン：太い輪郭＋ずらした影 */
.btn {
  background: var(--accent);
  color: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-small {
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.btn-ghost:hover {
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

/* マーカーは水色 */
.marker,
.section-title span {
  background: linear-gradient(transparent 58%, var(--sky-soft) 58%);
}
.hero-eyebrow {
  background: var(--ink);
  color: #fff;
}

/* ヒーロー背景：紺のドットの地に、紺の輪郭の図形がゆっくり揺れる。ぼかしは使わない */
.hero-bg {
  background-image: radial-gradient(rgba(15, 26, 51, 0.16) 1.6px, transparent 1.8px);
  background-size: 22px 22px;
}
.hero-wrap::after {
  display: none;
}
.pop-shape {
  position: absolute;
  stroke: var(--ink);
  stroke-width: 3.5;
  filter: drop-shadow(4px 4px 0 var(--ink));
  animation: bob 7s ease-in-out infinite;
}
.s1 { top: 9%; left: 3%; width: 110px; stroke: var(--accent); filter: drop-shadow(3px 3px 0 var(--ink)); }
.s2 { top: 46%; left: 49%; width: 56px; fill: var(--mint); animation-delay: -2s; }
.s3 { top: 7%; left: 47%; width: 44px; fill: var(--sky); animation-delay: -4s; }
.s4 { top: 10%; right: 3%; width: 82px; fill: var(--accent); animation-delay: -1s; }
.s5 { bottom: 10%; right: 5%; width: 104px; stroke: var(--gray); filter: drop-shadow(3px 3px 0 var(--ink)); animation-delay: -3s; }
.s6 { bottom: 6%; left: 40%; width: 72px; fill: var(--gray); animation-delay: -5s; }
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(8deg);
  }
}
@media (max-width: 767px) {
  .s1 { width: 76px; top: 4%; }
  .s3,
  .s6 {
    display: none;
  }
  .s4 { width: 54px; top: 3%; }
  .s2 { display: none; }
  .s5 { width: 70px; bottom: 3%; }
}
@media (prefers-reduced-motion: reduce) {
  .pop-shape {
    animation: none;
  }
}
.twinkle {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.5;
}
.t2,
.t5 {
  fill: var(--sky);
}
.ring {
  border-color: var(--accent);
  border-width: 3px;
}
.ring:nth-of-type(2) {
  border-color: var(--sky);
}
.ring:nth-of-type(3) {
  border-color: var(--mint);
}
@media (max-width: 767px) {
  .blob-1 {
    width: 200px;
    height: 200px;
  }
  .blob-2 {
    width: 140px;
    height: 140px;
  }
  .blob-3 {
    display: none;
  }
}

/* カード類：白地＋紺の輪郭＋ずらした影 */
.card,
.promise,
.step,
.company,
.form-card {
  border: 2.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.section-tint {
  background: var(--bg-tint);
}
.card:nth-child(1) .card-icon { background: var(--blue-soft); }
.card:nth-child(2) .card-icon { background: var(--sky-soft); }
.card:nth-child(3) .card-icon { background: var(--mint-soft); }
.card-icon {
  border: 2px solid var(--ink);
}
.card-icon svg {
  stroke: var(--ink);
}
.promise:nth-child(1) .promise-num { background: var(--accent); }
.promise:nth-child(2) .promise-num { background: var(--sky); color: var(--ink); }
.promise:nth-child(3) .promise-num { background: var(--mint); }
.promise-num,
.step-num {
  border: 2px solid var(--ink);
}
.step-num {
  background: var(--accent);
}
.video-thumb {
  background: var(--gray);
  border: 2.5px solid var(--ink);
}
.play {
  border: 2px solid var(--ink);
}
.play::after {
  border-left-color: var(--accent);
}
.company div + div {
  border-top-color: rgba(20, 33, 61, 0.2);
}

/* 相談欄：青地に白のボタン */
.contact-inner {
  background: var(--accent);
  border: 2.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.contact-way {
  background: rgba(255, 255, 255, 0.14);
}
.contact-tel svg {
  fill: var(--sky-soft);
}

/* フォーム */
.field input,
.field select,
.field textarea {
  border: 2px solid var(--ink);
  background: #fff;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--sky);
}
.req {
  background: var(--accent);
}
.policy-body {
  border: 2.5px solid var(--ink);
}

/* 大切にしていることは3つなので、PCでは3列に並べる */
@media (min-width: 768px) {
  .promises {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* セクションは画面幅いっぱいの帯で区切る（左右の余白と角の丸みをなくす） */
.section-tint,
.contact-inner {
  margin: 0;
  border-radius: 0;
}
.contact {
  padding: 0;
}
.contact-inner {
  max-width: none;
  border: 0;
  box-shadow: none;
}
.contact-inner > * {
  max-width: 1052px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 767px) {
  .section-tint,
  .contact-inner {
    margin: 0;
    border-radius: 0;
  }
  .contact {
    padding: 0;
  }
}

/* ブログ：新しい記事のカード */
.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}
.post {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 24px;
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--ink);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.post:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--ink);
}
.post-tag {
  align-self: flex-start;
  padding: 2px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--sky-soft);
}
/* カテゴリの色はブログ（blog.logicky.com）と同じ */
.post-tag[data-tag='dev'] { background: var(--blue-soft); }
.post-tag[data-tag='infra'] { background: var(--mint-soft); }
.post-tag[data-tag='ai'] { background: var(--sky-soft); }
.post-tag[data-tag='biz'] { background: var(--gray); }
.post-tag[data-tag='misc'] { background: #e4e8ee; }
.post p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post time {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.post h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}
.post p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.more {
  margin-top: 36px;
  text-align: center;
}
@media (max-width: 767px) {
  .posts {
    grid-template-columns: 1fr;
  }
}
/* 大切にしていること：番号と見出しを横に並べ、説明文はサービスのカードと同じく左端から */
.promise {
  display: grid;
  grid-template-columns: auto 1fr;
  /* カードの高さがそろって伸びても、中身は上に詰めて位置をそろえる */
  align-content: start;
  align-items: center;
  column-gap: 14px;
  row-gap: 12px;
}
.promise > div {
  display: contents;
}
.promise p {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* 存在しないページ（404）。トップのヒーローと同じ背景の上に、大きな 404 とキャラクターを置く */
.notfound-wrap {
  min-height: calc(100vh - 160px);
  display: grid;
  align-items: center;
}
.notfound {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0 auto;
  padding: 56px 24px 88px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 32px;
}
.notfound-code {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
  text-shadow: 8px 8px 0 var(--ink);
  margin-bottom: 20px;
}
.notfound-code span {
  display: inline-block;
  color: var(--sky);
  animation: notfound-bob 2.4s ease-in-out infinite;
}
@keyframes notfound-bob {
  50% {
    transform: translateY(-14px) rotate(-8deg);
  }
}
.notfound h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin-bottom: 12px;
}
.notfound-text > p:not(.notfound-code) {
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.notfound-character {
  width: 100%;
  max-width: 360px;
  height: auto;
  justify-self: center;
}
@media (max-width: 767px) {
  .notfound {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 16px 64px;
  }
  .notfound .hero-actions {
    justify-content: center;
  }
  .notfound-character {
    max-width: 220px;
    grid-row: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notfound-code span {
    animation: none;
  }
}
