/* =============================================================
   株式会社どうぞ コーポレートサイト 共通スタイル
   palette: cream #FFFFFF / panel #D9F9EA / acid #34d399 / ink #1e303a
   ============================================================= */

:root {
  --cream: #FFFFFF;
  --panel: #D9F9EA;
  --acid: #34d399;
  --ink: #1e303a;
  --line: 3px solid var(--ink);
  --radius: 20px;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Noto Sans JP", sans-serif;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); }

h1, h2, h3, p { margin: 0; }

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

/* ---------- utility ---------- */

.eyebrow {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 12px;
  background: var(--acid);
  border: var(--line);
  border-width: 2.5px;
  border-radius: 999px;
}

.section { padding: 96px 0; }
.section--panel { background: var(--panel); border-top: var(--line); border-bottom: var(--line); }

.section-head { margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-top: 12px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn::after { content: "→"; font-family: var(--font-en); font-weight: 700; }
.btn:hover { background: var(--acid); color: var(--ink); }
.btn--acid { background: var(--acid); color: var(--ink); }
.btn--acid:hover { background: var(--ink); color: var(--cream); }
.btn--ghost { background: var(--cream); color: var(--ink); }
.btn--ghost:hover { background: var(--panel); color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.06em;
}
.brand__en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--ink);
  opacity: 0.75;
}
.global-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.global-nav a:hover,
.global-nav a[aria-current="page"] { border-bottom-color: var(--acid); }
.global-nav .nav-cta {
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 9px 20px;
  background: var(--acid);
  transition: background 0.15s ease;
}
.global-nav .nav-cta:hover {
  border-bottom-color: var(--ink);
  background: var(--panel);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: var(--line);
  border-radius: 12px;
  background: var(--acid);
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 11px;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle span { top: 20px; }
.menu-toggle span::before { left: 0; top: -7px; }
.menu-toggle span::after { left: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  background: var(--acid);
  border-top: var(--line);
  border-bottom: var(--line);
  padding: 12px 0;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker__unit {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.ticker__unit .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex: none; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- hero (TOP) ---------- */

.hero {
  position: relative;
  padding: 88px 0 110px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.03em;
}
.hero h1 .accent {
  display: inline-block;
  color: var(--acid);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
.hero__lead {
  margin-top: 26px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 500;
  max-width: 34em;
}
.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero__art { position: relative; }
.hero__art .person {
  width: min(100%, 420px);
  margin-inline: auto;
}

/* ---------- 背景あしらい（花・飴・絆創膏・ティッシュを敷く） ---------- */

.has-deco {
  position: relative;
  overflow: hidden;
}
.has-deco > .container {
  position: relative;
  z-index: 1;
}
.deco {
  position: absolute;
  width: 120px;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.deco--r1 { transform: rotate(7deg); }
.deco--r2 { transform: rotate(-8deg); }
.deco--r3 { transform: rotate(4deg); }
.deco--r4 { transform: rotate(-5deg); }

/* ---------- service cards（TOP） ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.card {
  background: var(--cream);
  border: var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card__no {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink);
  background: var(--acid);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
  align-self: flex-start;
}
.card h3 { font-size: 22px; font-weight: 900; letter-spacing: 0.02em; }
.card p { font-size: 15px; }

/* ---------- naming band（TOP） ---------- */

.naming { position: relative; }
.naming__box {
  position: relative;
  background: var(--cream);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
}
.naming__box h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 900;
  line-height: 1.6;
}
.naming__box .marker {
  background: linear-gradient(transparent 62%, var(--acid) 62%);
  padding: 0 2px;
}
.naming__box p { margin-top: 18px; font-size: 15px; }
.naming__box .btn { margin-top: 30px; }

/* ---------- page hero（下層共通） ---------- */

.page-hero {
  padding: 72px 0 56px;
  border-bottom: var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(38px, 6vw, 60px);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 14px;
}
.page-hero p { margin-top: 16px; max-width: 40em; }

/* ---------- about ---------- */

.prose { max-width: 42em; }
.prose p + p { margin-top: 1.4em; }

.company-table {
  width: 100%;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  border-collapse: separate;
  border-spacing: 0;
}
.company-table th,
.company-table td {
  padding: 20px 26px;
  text-align: left;
  vertical-align: top;
  border-bottom: 2.5px solid var(--ink);
  font-size: 15px;
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: 0; }
.company-table th {
  width: 32%;
  background: var(--panel);
  border-right: 2.5px solid var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.company-table ul { margin: 0; padding-left: 1.2em; }

.todo-note {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  background: var(--acid);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 1px 8px;
}

/* ---------- service page ---------- */

.service-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  background: var(--cream);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 52px);
}
.service-block + .service-block { margin-top: 44px; }
.service-block__head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.service-block__head h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 900; }
.service-block__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.tag {
  font-size: 13px;
  font-weight: 700;
  border: 2.5px solid var(--ink);
  border-radius: 0;
  padding: 4px 14px;
  background: var(--panel);
}

/* ---------- contact ---------- */

.contact-panel {
  background: var(--cream);
  border: var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 56px);
}
.form-placeholder {
  margin-top: 28px;
  border: 3px dashed var(--ink);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 56px 24px;
  text-align: center;
  font-weight: 700;
}
.form-placeholder small { display: block; font-weight: 500; margin-top: 8px; }
.form-embed {
  margin-top: 28px;
  border: var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-embed iframe { display: block; }

/* ---------- privacy ---------- */

.legal h2 {
  font-size: 21px;
  font-weight: 900;
  margin: 2.4em 0 0.8em;
  padding-left: 14px;
  border-left: 8px solid var(--acid);
}
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 1.4em; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--cream);
  border-top: var(--line);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  font-weight: 900;
  line-height: 1.5;
}
.cta-band p { margin-top: 14px; opacity: 0.9; }
.cta-band .btn { margin-top: 34px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--cream);
  border-top: var(--line);
  padding: 56px 0 32px;
}
.site-footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-wordmark {
  font-family: var(--font-en);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--acid);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
.site-footer nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer nav a { text-decoration: none; font-weight: 700; font-size: 15px; }
.site-footer nav a:hover { border-bottom: 3px solid var(--acid); }
.copyright {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 2.5px solid var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-family: var(--font-en);
  letter-spacing: 0.06em;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav-cta { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art .person { width: min(70%, 320px); }
  .card-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: var(--line);
    display: none;
    padding: 20px 24px 28px;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .global-nav a { display: block; padding: 12px 4px; font-size: 17px; }
  .global-nav .nav-cta { text-align: center; margin-top: 10px; }
  .section { padding: 68px 0; }
  .deco { display: none; }
  .deco--m-show { display: block; width: 82px; }
  .company-table th, .company-table td { display: block; width: 100%; border-right: 0; }
  .company-table th { border-bottom: 0; padding-bottom: 8px; }
  .company-table td { padding-top: 8px; }
}
