:root {
  --ink: #1b2533;
  --ink-2: #4a5566;
  --line: #e3ddd2;
  --bg: #fbf9f5;
  --tint: #f3eee5;
  --accent: #e2672e;
  --accent-dark: #c4521e;
  --navy: #1f3550;
  --radius: 14px;
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --en: "Outfit", var(--font);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.9; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 900; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }

/* header */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(251, 249, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.logo b { font-family: var(--en); font-weight: 700; font-size: 18px; letter-spacing: .04em; }
.logo small { font-size: 11px; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { padding: 8px 18px; font-size: 14px; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 28px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: .2s; border: 2px solid transparent; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { color: var(--accent-dark); font-weight: 700; }

/* hero */
.hero { padding: 88px 0 56px; background: radial-gradient(circle at 85% 10%, #fde2cf 0, transparent 45%), var(--bg); overflow: hidden; }
.eyebrow { font-weight: 700; color: var(--accent-dark); font-size: 14px; letter-spacing: .08em; }
.hero h1 { font-size: clamp(38px, 7vw, 72px); letter-spacing: .02em; margin: 8px 0 24px; }
.lead { font-size: clamp(15px, 2vw, 18px); color: var(--ink-2); max-width: 680px; margin-bottom: 32px; }
.hero-flow { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.hero-flow li { padding: 20px 24px; font-weight: 900; font-size: 17px; position: relative; display: flex; flex-direction: column; }
.hero-flow li + li { border-left: 1px solid var(--line); }
.hero-flow li + li::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.hero-flow span { font-family: var(--en); color: var(--accent); font-size: 13px; }
.hero-flow small { font-weight: 400; color: var(--ink-2); font-size: 13px; }
@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .hero-flow { grid-template-columns: 1fr; }
  .hero-flow li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hero-flow li + li::before { left: 50%; top: -7px; transform: translateX(-50%) rotate(135deg); }
}

/* sections */
.sec { padding: 88px 0; }
.sec-tint { background: var(--tint); }
.label { font-family: var(--en); font-weight: 700; color: var(--accent); letter-spacing: .16em; font-size: 13px; margin-bottom: 6px; }
.sec h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 36px; }
h2 small, h3 small { font-size: .6em; font-weight: 700; color: var(--ink-2); }
@media (max-width: 640px) { .sec { padding: 64px 0; } }

.checks { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; }
.checks li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 14px 48px; position: relative; font-weight: 700; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--accent); transform: translateY(-50%); }
.checks li::after { content: ""; position: absolute; left: 23px; top: 50%; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 3px 3px 0; transform: translate(0, -65%) rotate(45deg); }
.bridge { font-size: 17px; }
.bridge strong { background: linear-gradient(transparent 62%, #fbd3b8 62%); }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { background: #fff; border-radius: var(--radius); padding: 32px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.svc-no { font-family: var(--en); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.svc h3 { font-size: 22px; margin-bottom: 14px; min-height: 2.9em; }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc ul { list-style: none; padding: 16px 0 0; margin: auto 0 0; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 700; }
.svc li { padding-left: 1.2em; position: relative; }
.svc li::before { content: "・"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } .svc h3 { min-height: 0; } }

.demo-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; background: var(--navy); color: #fff; border-radius: 24px; padding: 56px; }
.demo-box .label { color: #ffb48a; }
.demo-box h2 { margin-bottom: 20px; }
.demo-box p { color: #d7dee8; }
.demo-phone { display: flex; justify-content: center; }
.phone { width: 180px; height: 340px; border-radius: 28px; background: #fff; border: 8px solid #0d1a2b; padding: 14px 12px; display: flex; flex-direction: column; gap: 9px; box-shadow: 0 20px 40px rgba(0,0,0,.3); transform: rotate(4deg); }
.phone-bar { height: 8px; width: 40%; background: #d9dee5; border-radius: 4px; }
.phone-hero { height: 90px; border-radius: 10px; background: linear-gradient(135deg, #ffd2b5, #e2672e); }
.phone-line { height: 8px; background: #e6e9ee; border-radius: 4px; }
.phone-line.short { width: 60%; }
.phone-btn { height: 26px; width: 70%; border-radius: 999px; background: var(--accent); margin: 4px auto; }
.phone-card { flex: 1; border-radius: 8px; background: #f0f2f5; }
@media (max-width: 760px) { .demo-box { grid-template-columns: 1fr; padding: 36px 24px; gap: 28px; } }

/* works */
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.works.all { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.work { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.work-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eee; border-bottom: 1px solid var(--line); }
.work-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.work-img:hover img { transform: scale(1.03); }
.work-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.work-meta { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.work h3 { font-size: 18px; margin-bottom: 10px; }
.work p { font-size: 14px; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.tags li { font-size: 12px; font-weight: 700; background: #fdeee4; color: var(--accent-dark); border-radius: 999px; padding: 2px 10px; }
.work-link { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--accent-dark); }
.more { text-align: center; margin: 40px 0 0; }
@media (max-width: 860px) { .works, .works.all { grid-template-columns: 1fr; } }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reason { border-top: 3px solid var(--ink); padding-top: 20px; }
.reason h3 { font-size: 19px; margin-bottom: 12px; }
.reason p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 860px) { .reasons { grid-template-columns: 1fr; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { background: #fff; border-radius: var(--radius); padding: 24px 22px; border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: "STEP " counter(step); font-family: var(--en); font-weight: 700; color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.steps h3 { font-size: 18px; margin: 4px 0 8px; }
.steps p { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

.profile { display: grid; grid-template-columns: 160px 1fr; gap: 40px; align-items: start; }
.profile h2 { margin-bottom: 16px; }
.profile-mark { width: 160px; height: 160px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--en); font-weight: 700; font-size: 72px; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; gap: 20px; } .profile-mark { width: 96px; height: 96px; font-size: 44px; } }

/* sub pages */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(30px, 5vw, 46px); margin-bottom: 12px; }
.page-head p { color: var(--ink-2); }
.h-left { font-size: 28px; margin-bottom: 20px; }
.h-sub { font-size: 20px; margin: 40px 0 12px; }
.timeline { list-style: none; padding: 0; margin: 40px 0 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 24px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline time { font-family: var(--en); font-weight: 700; font-size: 14px; color: var(--accent-dark); }
.timeline p { margin: 0; }
.plain { padding-left: 1.2em; }
.info { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.info th, .info td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { width: 34%; background: #faf6ef; font-weight: 700; }
@media (max-width: 640px) { .info th, .info td { display: block; width: 100%; } .info th { padding-bottom: 6px; border-bottom: 0; } }

/* contact + footer */
.cta { background: var(--ink); color: #fff; padding: 80px 0; text-align: center; }
.cta .label { color: #ffb48a; }
.cta h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 16px; }
.cta p { color: #c9d1dc; margin-bottom: 32px; }
.cta .note { font-size: 13px; margin: 14px 0 0; }
.site-foot { background: #111a26; color: #9aa5b4; padding: 32px 0; font-size: 13px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot-in nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: #fff; }
