/* 株式会社アドマニア コーポレートサイト（白基調ミニマル） */
:root {
  --ink: #2b2b2b;
  --sub: #6b6b6b;
  --line: #e4e4e4;
  --bg: #ffffff;
  --gray: #f6f6f4;
  --accent: #1f2b59;
  --en: "Quicksand", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ja); font-weight: 300; font-size: 15px; line-height: 2; letter-spacing: .04em; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.sp { display: none; }
@media (max-width: 767px) { .sp { display: inline; } .pc { display: none; } }

/* header */
.header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__inner { max-width: 1200px; margin: 0 auto; height: 72px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header__icon { height: 34px; width: auto; }
.header__word { height: 18px; width: auto; }
.nav { display: flex; gap: 32px; align-items: center; font-family: var(--en); font-size: 14px; letter-spacing: .08em; }
.nav a { text-decoration: none; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__contact { border: 1px solid var(--ink); padding: 6px 18px; border-radius: 999px; }
.nav__contact::after { display: none; }
.nav__contact:hover { background: var(--ink); color: #fff; }
.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-toggle { display: block; width: 40px; height: 40px; border: 0; background: none; position: relative; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 10px; width: 20px; height: 1px; background: var(--ink); transition: transform .3s, top .3s; }
  .nav-toggle span:first-child { top: 16px; } .nav-toggle span:last-child { top: 23px; }
  .nav-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
  .nav { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-top: 1px solid var(--line); max-height: 0; overflow: hidden; transition: max-height .4s; }
  .nav.is-open { max-height: 480px; border-bottom: 1px solid var(--line); }
  .nav a { padding: 16px 24px; width: 100%; text-align: center; }
  .nav a::after { display: none; }
  .nav__contact { border: 0; border-radius: 0; }
}

/* hero */
.hero { min-height: 100svh; display: flex; align-items: center; justify-content: center; position: relative; padding: 120px 24px 96px; text-align: center; }
/* ロゴ原画の背景にある点グリッドを、ごく薄く敷く */
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#cfcfcf 1px, transparent 1.2px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); opacity: .7; pointer-events: none; }
.hero__inner { position: relative; }
.hero__logo { width: 180px; margin: 0 auto 56px; opacity: 0; animation: fadeUp 1.2s .2s forwards; }
.hero__copy { font-weight: 400; font-size: clamp(26px, 4vw, 40px); letter-spacing: .12em; line-height: 1.7; margin: 0 0 20px; opacity: 0; animation: fadeUp 1.2s .6s forwards; }
.hero__lead { color: var(--sub); margin: 0; opacity: 0; animation: fadeUp 1.2s .9s forwards; }
.hero__scroll { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); font-family: var(--en); font-size: 11px; letter-spacing: .2em; text-decoration: none; color: var(--sub); padding-bottom: 48px; }
.hero__scroll::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 40px; background: var(--sub); animation: scrollLine 2s infinite; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* sections */
.section { padding: 128px 24px; }
.section--gray { background: var(--gray); }
.container { max-width: 1080px; margin: 0 auto; }
.container.narrow { max-width: 760px; }
.label { font-family: var(--en); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--sub); text-align: center; margin: 0 0 8px; }
.title { font-weight: 400; font-size: clamp(22px, 3vw, 28px); letter-spacing: .1em; text-align: center; margin: 0 0 56px; position: relative; padding-bottom: 24px; }
.title::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 32px; height: 1px; background: var(--ink); transform: translateX(-50%); }
.text { margin: 0 0 40px; }
.text.center { text-align: center; }
@media (max-width: 767px) { .section { padding: 88px 20px; } .text.center { text-align: left; } }

/* service */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; padding: 40px 32px; border: 1px solid var(--line); }
.card__num { font-family: var(--en); font-size: 28px; font-weight: 300; color: var(--sub); margin: 0 0 12px; line-height: 1; }
.card__title { font-size: 18px; font-weight: 500; margin: 0 0 16px; letter-spacing: .06em; }
.card__text { font-size: 14px; margin: 0 0 16px; }
.card__list { margin: 0; padding: 16px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: 13px; }
.card__list li { padding-left: 1.2em; position: relative; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .95em; width: 6px; height: 1px; background: var(--ink); }
.card__note { font-size: 12px; color: var(--sub); margin: 0; line-height: 1.8; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* dashboard */
.dash { margin: 0 0 56px; }
.dash img { border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(0,0,0,.18); }
.dash figcaption { font-size: 12px; color: var(--sub); text-align: right; margin-top: 8px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.points li { font-size: 14px; border-top: 1px solid var(--ink); padding-top: 16px; }
.points__head { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; }
@media (max-width: 900px) { .points { grid-template-columns: 1fr; gap: 24px; } }

/* flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.flow li { background: #fff; padding: 32px 24px; position: relative; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -12px; top: 50%; width: 8px; height: 8px; border-top: 1px solid var(--sub); border-right: 1px solid var(--sub); transform: translateY(-50%) rotate(45deg); }
.flow__step { font-family: var(--en); font-size: 12px; letter-spacing: .2em; color: var(--sub); }
.flow h3 { font-size: 16px; font-weight: 500; line-height: 1.7; margin: 8px 0 12px; }
.flow p { font-size: 13px; margin: 0; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -12px; transform: translateX(50%) rotate(135deg); }
  .flow h3 br { display: none; }
}

/* company */
.profile { margin: 0; border-top: 1px solid var(--line); }
.profile div { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--line); padding: 20px 8px; }
.profile dt { color: var(--sub); }
.profile dd { margin: 0; }
@media (max-width: 767px) { .profile div { grid-template-columns: 1fr; padding: 16px 4px; } }

/* contact */
.form { background: #fff; padding: 48px; border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
.form label { font-size: 14px; padding-top: 10px; }
.req, .opt { font-size: 11px; margin-left: 8px; padding: 1px 8px; border-radius: 2px; vertical-align: 1px; }
.req { background: var(--ink); color: #fff; }
.opt { border: 1px solid var(--line); color: var(--sub); }
.form input[type=text], .form input[type=tel], .form input[type=email], .form select, .form textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #cfcfcf; border-radius: 2px; background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form__agree { text-align: center; margin: 32px 0 24px; font-size: 14px; }
.form__agree label { padding: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: block; margin: 0 auto; min-width: 240px; padding: 16px 32px; font: inherit; font-size: 15px; letter-spacing: .2em; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; }
.btn:hover { background: #fff; color: var(--ink); }
@media (max-width: 767px) { .form { padding: 28px 20px; } .form__row { grid-template-columns: 1fr; gap: 4px; } }

/* footer */
.footer { padding: 64px 24px 40px; text-align: center; border-top: 1px solid var(--line); }
.footer__logo { height: 40px; width: auto; margin: 0 auto 12px; }
.footer__name { margin: 0; font-size: 14px; }
.footer__links { margin: 8px 0 0; font-size: 12px; }
.footer__copy { font-family: var(--en); font-size: 11px; color: var(--sub); margin: 24px 0 0; letter-spacing: .1em; }

/* page (privacy / thanks) */
.page { padding: 152px 24px 120px; }
.page h2 { font-size: 17px; font-weight: 500; margin: 40px 0 8px; }
.page p, .page li { font-size: 14px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s, transform .9s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__logo, .hero__copy, .hero__lead { opacity: 1; transform: none; animation: none; transition: none; }
}
