/* =========================
   Base
========================= */
:root{
  --bg: #ffffff;
  --text: #101828;
  --muted: #475467;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(16,24,40,0.08);
  --radius: 16px;
  --max: 980px;
  --accent: #111827;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img{ max-width: 100%; display: block; }

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================
   Header / Nav
========================= */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand__logo{
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand__name{
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav{
  display: none;
  align-items: center;
  gap: 18px;
}

.nav a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover{
  color: var(--text);
}

.nav-toggle{
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle__bar{
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

/* mobile menu open */
.nav.is-open{
  position: absolute;
  right: 16px;
  top: 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 180px;
}

.nav.is-open a{
  padding: 10px 10px;
  border-radius: 10px;
}

.nav.is-open a:hover{
  background: #f9fafb;
}

/* Desktop nav */
@media (min-width: 880px){
  .nav-toggle{ display: none; }
  .nav{
    display: flex;
    position: static;
  }
}

/* =========================
   Hero
========================= */
.hero{
  padding: 54px 0 28px;
}

.hero__title{
  margin: 0 0 14px;
  font-size: clamp(22px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.hero__lead{
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 100%;
}

.hero__cta{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================
   Sections / Cards
========================= */
.section{
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section__title{
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0.02em;
}

/* ここがポイント：service/company の横並び禁止。常に縦。 */
.cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card--plain{
  box-shadow: none;
}

.card__title{
  margin: 0 0 8px;
  font-size: 16px;
}

.card__text{
  margin: 0;
  color: var(--muted);
}

/* =========================
   DL
========================= */
.dl{
  margin: 0;
}

.dl__row{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.dl__row:first-child{
  border-top: none;
  padding-top: 0;
}

.dl dt{
  font-weight: 700;
  color: var(--text);
}

.dl dd{
  margin: 0;
  color: var(--muted);
}

@media (max-width: 520px){
  .dl__row{
    grid-template-columns: 1fr;
  }
}

/* =========================
   Form
========================= */
.form{
  margin-top: 10px;
}

.form__row{
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label{
  font-weight: 700;
}

.req{
  color: #d92d20;
  margin-left: 6px;
  font-weight: 800;
}

input, textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 16px;
  outline: none;
  background: #fff;
}

input:focus, textarea:focus{
  border-color: #c7d2fe;
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.form__actions{
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.form__note{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Buttons / Notices
========================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .06s ease;
}

.btn:active{ transform: translateY(1px); }

.btn--ghost{
  background: #fff;
  color: var(--accent);
}

.notice{
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  margin: 12px 0 10px;
}

.notice ul{
  margin: 0;
  padding-left: 18px;
}

.notice--success{
  border-color: #a6f4c5;
  background: #ecfdf3;
}

.notice--error{
  border-color: #fecdca;
  background: #fffbfa;
}

/* =========================
   Footer
========================= */
.footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.footer__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.to-top{
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
}

