:root {
  --navy: #1f2a44;
  --navy-light: #34416a;
  --ink: #2a2f3a;
  --gray: #5f6675;
  --accent: #3366ff;
  --accent-dark: #1f4fe0;
  --mint: #eaf0ff;
  --tint: #f6f7fb;
  --white: #ffffff;
  --line: #e2e5ee;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.9;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 32px); }
.sp-only { display: none; }

/* buttons */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 999px; font-weight: 700;
  background: var(--accent); color: #fff; border: 2px solid var(--accent);
  font-size: 1rem; font-family: inherit; cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--wide { display: block; width: 100%; margin-top: 8px; }

/* header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 16px rgba(31,42,68,.06); }
.header__inner { display: flex; align-items: center; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.logo__img { height: 52px; width: auto; }
/* 紺の背景では青いロゴが沈むので白い台座に載せる */
.logo--light .logo__img { height: 60px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: .92rem; font-weight: 600; }
.nav a:hover { color: var(--accent-dark); }
.nav__cta { padding: 8px 22px; border-radius: 999px; background: var(--navy); color: #fff; }
.nav .nav__cta:hover { background: var(--accent); color: #fff; }
.menu-btn { display: none; }

/* hero */
.hero { background: linear-gradient(160deg, var(--mint) 0%, #fff 60%); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 80px 0 96px; }
.hero__for { display: inline-block; padding: 4px 16px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .06em; }
.nowrap { display: inline-block; white-space: nowrap; }
.hero h1 { margin-top: 20px; font-size: clamp(1.55rem, 3.6vw, 2.7rem); line-height: 1.4; color: var(--navy); letter-spacing: .02em; }
.hero__lead { margin-top: 20px; color: var(--gray); font-size: 1.02rem; }
.hero__btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; font-weight: 700; color: var(--navy); }
.hero__points li { display: flex; align-items: center; gap: 6px; }
.hero__points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.hero__visual { position: relative; height: 380px; }
.device { position: absolute; overflow: hidden; background: #fff; box-shadow: 0 24px 48px rgba(31,42,68,.18); }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device--pc { top: 0; left: 0; width: 90%; aspect-ratio: 16 / 10; border-radius: 12px; border: 10px solid var(--navy); border-top-width: 22px; }
.device--sp { right: 0; bottom: 0; width: 30%; aspect-ratio: 375 / 812; border-radius: 22px; border: 6px solid var(--navy); }
.device--sp img { object-position: center top; }

/* section */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section__en { text-align: center; color: var(--accent-dark); font-weight: 800; letter-spacing: .2em; font-size: .85rem; text-transform: uppercase; }
.section__title { text-align: center; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--navy); margin-bottom: 48px; }
.note { margin-top: 24px; font-size: .82rem; color: var(--gray); text-align: center; }

/* targets */
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.target { background: #fff; border-radius: var(--radius); padding: 32px 28px; border-top: 5px solid var(--accent); box-shadow: 0 6px 20px rgba(31,42,68,.05); }
.target__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--mint); color: var(--navy); display: grid; place-items: center; }
.target h3 { margin-top: 16px; font-size: 1.3rem; color: var(--navy); }
.target__ex { font-size: .85rem; color: var(--gray); }
.target ul { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 16px; }
.target li { position: relative; padding-left: 22px; font-size: .95rem; }
.target li + li { margin-top: 6px; }
.target li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.service__no { font-size: 1.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.service h3 { margin-top: 12px; font-size: 1.1rem; color: var(--navy); }
.service p { margin-top: 8px; font-size: .93rem; color: var(--gray); }

/* works */
.works__notice { width: fit-content; max-width: 100%; margin: -24px auto 32px; padding: 10px 20px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: .88rem; color: var(--gray); text-align: center; line-height: 1.7; }
/* 件数が3で割り切れなくても最終行が中央に来るよう flex で並べる */
.works { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.work { width: calc((100% - 48px) / 3); }
.work a { display: block; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 20px rgba(31,42,68,.06); transition: transform .2s, box-shadow .2s; }
.work a:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,42,68,.12); }
.work__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work__body { padding: 20px 22px 24px; }
.work__tag { display: inline-block; padding: 0 10px; border-radius: 4px; background: var(--mint); color: var(--navy); font-size: .75rem; font-weight: 700; }
.work h3 { margin-top: 8px; font-size: 1.05rem; color: var(--navy); }
.work p { margin-top: 4px; font-size: .88rem; color: var(--gray); line-height: 1.7; }

/* price */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; padding: 36px 28px; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.plan--pop { border: 3px solid var(--accent); box-shadow: 0 14px 30px rgba(51,102,255,.15); }
.plan__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 2px 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; color: var(--navy); }
.plan__price { margin-top: 8px; font-size: 2rem; font-weight: 800; color: var(--navy); }
.plan__price small { font-size: .8rem; font-weight: 600; color: var(--gray); }
.plan ul { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); text-align: left; font-size: .93rem; }
.plan li { padding-left: 1.2em; text-indent: -1.2em; }
.plan li::before { content: "・"; color: var(--accent); }
.plan__sub { font-size: .85rem; font-weight: 700; color: var(--accent-dark); }
.plan__extra { margin-top: 12px; font-size: .8rem; color: var(--gray); text-align: left; }
.options { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.option { padding: 20px 28px; border-radius: var(--radius); background: var(--mint); }
.option h3 { font-size: 1rem; color: var(--navy); }
.option strong { font-size: 1.3rem; color: var(--navy); }
.option__desc { font-size: .85rem; color: var(--gray); line-height: 1.7; }

/* flow */
.flow { counter-reset: none; }
.flow li { display: flex; gap: 24px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 24px 28px; position: relative; }
.flow li + li { margin-top: 28px; }
.flow li + li::before { content: ""; position: absolute; top: -22px; left: 64px; border: 8px solid transparent; border-top-color: var(--accent); }
.flow__step { flex-shrink: 0; width: 76px; padding: 4px 0; border-radius: 6px; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 800; text-align: center; letter-spacing: .06em; }
.flow h3 { font-size: 1.05rem; color: var(--navy); line-height: 1.6; }
.flow p { margin-top: 4px; font-size: .93rem; color: var(--gray); }
.flow__term { margin-top: 32px; text-align: center; }
.flow__term strong { color: var(--accent-dark); font-size: 1.15rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 20px 40px 20px 36px; font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; color: var(--accent); font-weight: 800; font-size: 1.15rem; top: 17px; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 1.4rem; color: var(--navy); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 8px 20px 36px; color: var(--gray); }

/* contact */
.section--contact { background: linear-gradient(180deg, var(--mint) 0%, #d9e5ff 100%); }
.section--contact .section__title { margin-bottom: 16px; }
.contact__lead { text-align: center; margin-bottom: 40px; color: var(--gray); }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 40px; box-shadow: 0 14px 36px rgba(51,102,255,.12); }
.form__row { display: block; margin-bottom: 20px; }
.form__label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
.form__label em { font-style: normal; margin-left: 6px; padding: 0 8px; border-radius: 4px; background: var(--accent); color: #fff; font-size: .7rem; vertical-align: 2px; }
.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--tint);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.form input.is-error { border-color: #d93a3a; background: #fff2f2; }
.form__choices { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.form__choices label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.form__choices input { accent-color: var(--accent); width: 18px; height: 18px; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__msg { margin-top: 16px; text-align: center; font-weight: 700; min-height: 1.5em; }
.form__msg.is-error { color: #d93a3a; }
.form__msg.is-ok { color: var(--navy); }

/* footer */
.footer { background: #fff; color: var(--gray); border-top: 1px solid var(--line); padding: 40px 0 96px; font-size: .85rem; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

/* floating cta */
.float-cta {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  padding: 14px 26px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800;
  box-shadow: 0 10px 24px rgba(31,79,224,.35);
  opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s;
}
.float-cta.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.float-cta:hover { background: var(--accent-dark); }

/* responsive */
@media (max-width: 960px) {
  .nav { gap: 18px; font-size: .88rem; }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .hero__visual { width: min(100%, 560px); height: auto; aspect-ratio: 16 / 11; margin-inline: auto; }
  .services, .plans { grid-template-columns: 1fr 1fr; }
  .work { width: calc((100% - 24px) / 2); }
  .plan--pop { order: -1; grid-column: 1 / -1; }

  /* 対象は横長カード(アイコン+見出し | リスト)で縦に並べる */
  .targets { grid-template-columns: 1fr; gap: 16px; }
  .target { display: grid; grid-template-columns: 200px 1fr; column-gap: 28px; align-items: center; border-top: 0; border-left: 5px solid var(--accent); }
  .target__icon { grid-row: 1 / 4; display: none; }
  .target h3 { margin-top: 0; grid-column: 1; }
  .target__ex { grid-column: 1; }
  .target ul { grid-column: 2; grid-row: 1 / 3; margin-top: 0; padding-top: 0; border-top: 0; padding-left: 28px; border-left: 1px dashed var(--line); }

  /* ヘッダーはハンバーガーメニューに */
  .menu-btn {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 20px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(31,42,68,.08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; text-align: center; }
  .nav__cta { margin-top: 8px; }
}

@media (max-width: 760px) {
  .sp-only { display: inline; }
  .works__notice { margin-top: -16px; padding: 10px 14px; font-size: .8rem; }
  .section { padding: 64px 0; }
  .target { display: block; padding: 24px 22px; }
  .target__icon { display: grid; width: 60px; height: 60px; margin-bottom: 12px; }
  .target ul { margin-top: 14px; padding: 14px 0 0; border-left: 0; border-top: 1px dashed var(--line); }
  .section__title { margin-bottom: 32px; }
  .targets, .services, .plans, .options { grid-template-columns: minmax(0, 1fr); }
  .work { width: 100%; }
  .plan { padding: 32px 22px; }
  .plan__price { font-size: 1.8rem; }
  .plan--pop { grid-column: auto; }
  .flow li { flex-direction: column; gap: 8px; padding: 20px; }
  .flow li + li::before { left: 50%; margin-left: -8px; }
  .form { padding: 28px 20px; }
  .float-cta { right: 16px; bottom: 16px; }
}

