/* 合同会社LRG ポートフォリオ */
:root {
  --navy: #1c2b4a;
  --navy-deep: #131e35;
  --accent: #2f6fde;
  --text: #1f2633;
  --muted: #5d6676;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f6fa;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(28, 43, 74, .28);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.45; margin: 0; color: var(--navy); }
p { margin: 0; }
.nowrap { white-space: nowrap; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; letter-spacing: .04em;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(28,43,74,.6); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 17px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ext { font-size: .9em; }

.eyebrow {
  font-family: "Inter", sans-serif; font-weight: 600;
  font-size: 13px; letter-spacing: .2em; color: var(--accent);
  margin-bottom: 10px;
}
.eyebrow-light { color: #9fc0ff; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark {
  font-family: "Inter", sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .06em;
  background: var(--navy); color: #fff; border-radius: 8px; padding: 6px 7px; line-height: 1;
}
.logo-text { font-weight: 700; font-size: 17px; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform .2s;
}
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ファーストビュー */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 420px at 85% 10%, #e8efff 0%, rgba(232,239,255,0) 70%),
    linear-gradient(#fff, #fff);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: .04em; margin-bottom: 24px; }
.lead { color: var(--muted); font-size: 16px; max-width: 30em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 端末の枠 */
.hero-visual, .work-visual { position: relative; }
.device img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.laptop { width: 88%; }
.laptop-screen {
  aspect-ratio: 16 / 10; overflow: hidden;
  border: 10px solid #1d2230; border-bottom-width: 14px; border-radius: 14px 14px 4px 4px;
  background: #1d2230; box-shadow: var(--shadow);
}
.laptop-base {
  height: 12px; width: 112%; margin-left: -6%;
  background: linear-gradient(#d9dde5, #b9bfca); border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 18px -10px rgba(0,0,0,.35);
}
.phone {
  position: absolute; right: 0; bottom: -28px; width: 27%;
  border: 6px solid #1d2230; border-radius: 26px; background: #1d2230;
  box-shadow: var(--shadow);
}
.phone-screen { aspect-ratio: 390 / 844; overflow: hidden; border-radius: 20px; }

/* セクション */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: .06em; }
.section-lead { color: var(--muted); margin-top: 16px; }
.about .section-head, .about .section-head .section-lead { text-align: center; }

/* 制作実績 */
.work {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding: 48px; background: #fff; border: 1px solid var(--line); border-radius: 20px;
  margin-bottom: 40px;
}
.work-reverse .work-visual { order: 2; }
.work-cat { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.badge {
  display: inline-block; background: #fff4e0; color: #8a5a00; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 999px; margin-left: 2px;
}
.work h3 { font-size: 26px; letter-spacing: .04em; margin-bottom: 14px; }
.work-desc { color: var(--muted); margin-bottom: 22px; }
.work-points { margin: 0 0 20px; border-top: 1px solid var(--line); }
.work-points > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.work-points dt { font-weight: 700; color: var(--navy); }
.work-points dd { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.tags li { font-size: 12px; font-weight: 500; color: var(--navy); background: var(--bg-alt); border-radius: 6px; padding: 4px 10px; }
.works-more { text-align: center; color: var(--muted); font-size: 14px; }

/* できること */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; background: #e8efff;
  display: grid; place-items: center; margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }

/* 料金 */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; background: #fff;
}
.price-featured { border: 2px solid var(--navy); box-shadow: var(--shadow); }
.price-label {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price h3 { font-size: 18px; margin-bottom: 8px; }
.price-num { font-size: 15px; color: var(--navy); font-weight: 700; margin-bottom: 14px; }
.price-num span { font-family: "Inter", sans-serif; font-size: 38px; letter-spacing: 0; margin-right: 2px; }
.price-num small { font-size: 13px; color: var(--muted); margin-left: 2px; }
.price > p:not(.price-num):not(.price-label) { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.price ul { list-style: none; padding: 16px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: 14px; }
.price li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.price li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.note { margin-top: 28px; font-size: 13px; color: var(--muted); text-align: center; }

/* 流れ */
.flow { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; counter-reset: none; }
.flow li {
  display: flex; gap: 24px; align-items: flex-start; position: relative;
  background: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px;
  border: 1px solid var(--line);
}
.flow-num {
  flex: none; font-family: "Inter", sans-serif; font-weight: 700; font-size: 15px;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center;
}
.flow h3 { font-size: 17px; margin-bottom: 4px; }
.flow p { font-size: 14px; color: var(--muted); }

/* 会社概要 */
.about-table { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.about-table > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--line); }
.about-table dt { font-weight: 700; color: var(--navy); }
.about-table dd { margin: 0; }

/* お問い合わせ */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, #24407a 100%);
  color: #fff; padding: 104px 0; text-align: center;
}
.contact h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin-bottom: 18px; letter-spacing: .04em; }
.contact p { color: #d6def0; margin-bottom: 36px; }
.contact .contact-mail { margin: 18px 0 0; font-family: "Inter", sans-serif; font-size: 14px; color: #b9c6e3; }

/* フッター */
.site-footer { background: var(--navy-deep); color: #8f9bb6; padding: 28px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-footer { color: #fff; }
.logo-footer .logo-mark { background: #fff; color: var(--navy); }
.logo-footer .logo-text { font-size: 15px; }

/* ふわっと出る */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* タブレット */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-text { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .work { grid-template-columns: 1fr; gap: 48px; padding: 36px; }
  .work-reverse .work-visual { order: 0; }
  .work-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 32px; }
}

/* スマホ */
@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .container { padding: 0 16px; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; margin-right: -10px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
    box-shadow: 0 16px 30px -20px rgba(0,0,0,.3);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; padding: 14px 20px; font-size: 15px; }

  .hero { padding: 48px 0 72px; }
  .lead { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .section-lead { text-align: left; }
  .work { padding: 28px 20px 32px; border-radius: 16px; gap: 40px; }
  .work h3 { font-size: 22px; }
  .work .btn { width: 100%; }
  .work-points > div { grid-template-columns: 5.5em 1fr; }
  .laptop-screen { border-width: 6px; border-bottom-width: 9px; border-radius: 10px 10px 3px 3px; }
  .laptop-base { height: 8px; }
  .phone { border-width: 4px; border-radius: 16px; bottom: -20px; }
  .phone-screen { border-radius: 12px; }
  .cards { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 24px 22px; display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; }
  .card-icon { grid-row: span 2; margin: 0; }
  .card h3 { margin-bottom: 4px; align-self: center; }
  .flow li { gap: 16px; padding: 20px; }
  .flow-num { width: 40px; height: 40px; font-size: 13px; }
  .about-table > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 4px; }
  .contact { padding: 80px 0; }
  .contact .btn-lg { width: 100%; padding: 18px 20px; }
  .pc-only { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

.sp-only { display: none; }
@media (max-width: 760px) { .sp-only { display: inline; } }

.work-note { margin-top: 16px; font-size: 12px; color: var(--muted); line-height: 1.7; }
