/* 菊地雄平 ポートフォリオ 共通スタイル
   色は lit.link画像・4つの質問の資料と同じ緑系にそろえる */
:root {
  --ink: #1a2420;
  --muted: #5d6c67;
  --line: #d6dfdb;
  --bg: #fbfcfb;
  --paper: #ffffff;
  --accent: #1f6f5c;
  --accent-dark: #17594a;
  --accent-soft: #e6f1ec;
  --line-green: #06c755;
  --radius: 12px;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 252, 251, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand small { font-weight: 500; color: var(--muted); margin-left: 8px; font-size: 12px; }
.site-nav { display: flex; gap: 20px; font-size: 14px; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
@media (max-width: 760px) {
  .site-nav { display: none; }
  .brand small { display: none; }
}

/* ボタン */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 2px solid var(--accent); color: var(--accent); background: var(--paper);
}
.btn:hover { background: var(--accent-soft); }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #fff; }
.btn-line:hover { background: #05b04b; border-color: #05b04b; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-dark); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* セクション共通 */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--accent); margin: 0 0 4px; }
h2 { font-size: 28px; line-height: 1.4; margin: 0 0 32px; }
@media (max-width: 760px) {
  section { padding: 64px 0; }
  h2 { font-size: 24px; margin-bottom: 24px; }
}

/* ヒーロー */
.hero { padding: 64px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero-title { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 2px 12px; margin: 0 0 16px; }
.hero h1 { font-size: 34px; line-height: 1.5; margin: 0 0 20px; letter-spacing: .01em; word-break: keep-all; }
.hero h1 span { display: block; }
.hero .lead { color: var(--muted); margin: 0 0 28px; }
.hero-photo { border-radius: 20px; overflow: hidden; background: var(--accent-soft); aspect-ratio: 3 / 4; max-width: 360px; justify-self: end; width: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-size: 32px; line-height: 1.2; color: var(--accent); }
.stat b small { font-size: 16px; margin-left: 2px; }
.stat span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .hero { padding: 40px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: 28px; }
  .hero-photo { order: -1; max-width: 132px; justify-self: start; border-radius: 14px; }
  .stats { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .stat { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; }
  .stat b { font-size: 26px; white-space: nowrap; }
}

/* 自己紹介 */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.about p { margin: 0 0 1.2em; }
.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; align-self: start; }
.side-box h3 { font-size: 15px; margin: 0 0 12px; color: var(--accent); }
.side-box h3:not(:first-child) { margin-top: 24px; }
.side-box ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.side-box li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li small { display: block; color: var(--muted); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 24px; } }

/* スキル */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 500; }

/* ご依頼いただけること */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.services li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 52px; position: relative; }
.services li::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) 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='%231f6f5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.services li small { color: var(--muted); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* 実績 */
.works-lead { margin: -16px 0 28px; color: var(--muted); }
.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.work .label { margin-bottom: 2px; }
.work h3 { font-size: 18px; margin: 0 0 12px; }
.work .num { font-size: 20px; font-weight: 800; color: var(--accent); line-height: 1.4; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.work p, .work ul { font-size: 14px; margin: 0; }
.work ul { padding-left: 1.2em; }
.work ul li + li { margin-top: 4px; }
.work .more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 700; }
.work.soon { background: transparent; border-style: dashed; justify-content: center; align-items: center; text-align: center; color: var(--muted); }
.work.soon h3 { color: var(--muted); }
.work.soon .soon-tag { font-size: 22px; font-weight: 800; letter-spacing: .06em; color: var(--accent); }
@media (max-width: 900px) { .works { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .works { grid-template-columns: 1fr; } }

/* デモ */
.demo-band { background: var(--accent-soft); }
.demo-band .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.demo-band h2 { margin-bottom: 12px; }
.demo-band p { margin: 0; color: var(--muted); }
.demo-band .btns { flex-direction: column; }
@media (max-width: 760px) { .demo-band .wrap { grid-template-columns: 1fr; } .demo-band .btns { flex-direction: row; } }

/* お問い合わせ */
.contact-lead { margin: -16px 0 28px; color: var(--muted); }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; max-width: 640px; }
.contact-info div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.contact-info dt { font-size: 13px; color: var(--muted); }
.contact-info dd { margin: 0; font-weight: 700; }
@media (max-width: 600px) { .contact-info { grid-template-columns: 1fr; } }

footer.site-footer { padding: 32px 0 40px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
footer.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* デモページ */
.demo-page { padding: 48px 0 80px; }
.back { font-size: 14px; text-decoration: none; }
.demo-page h1 { font-size: 30px; line-height: 1.4; margin: 16px 0 8px; }
.demo-page .lead { color: var(--muted); margin: 0 0 8px; }
.safe-note { display: inline-block; font-size: 13px; background: var(--accent-soft); color: var(--accent-dark); border-radius: 6px; padding: 2px 10px; margin-bottom: 32px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; }
.step-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 4px; }
.step-no { flex: none; width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 800; text-align: center; line-height: 28px; }
.step h2 { font-size: 18px; margin: 0; }
.step .hint { color: var(--muted); font-size: 14px; margin: 0 0 16px 40px; }
.task-row { display: grid; grid-template-columns: 28px 1fr 150px; gap: 10px; align-items: center; margin: 0 0 10px 40px; }
.task-row .n { color: var(--muted); font-weight: 700; }
.task-row input[type="text"], .task-row input[type="number"] {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; font: inherit; background: var(--bg);
}
.hours { display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; }
.hours input { text-align: right; }
@media (max-width: 600px) {
  .task-row { grid-template-columns: 24px 1fr; margin-left: 0; }
  .task-row .hours { grid-column: 2; }
  .step .hint { margin-left: 0; }
}
.check-task { border-top: 1px dashed var(--line); padding: 16px 0 4px 40px; }
.check-task:first-of-type { border-top: 0; }
.check-task h3 { font-size: 16px; margin: 0 0 8px; }
.check-task label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; cursor: pointer; }
.check-task input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--accent); flex: none; }
.empty-note { color: var(--muted); font-size: 14px; margin-left: 40px; }
@media (max-width: 600px) { .check-task, .empty-note { padding-left: 0; margin-left: 0; } }
.result { background: var(--paper); border: 2px solid var(--accent); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.result h2 { font-size: 18px; margin: 0 0 12px; }
.result .total { font-size: 22px; font-weight: 800; color: var(--accent); margin: 0 0 4px; }
.result .total-note { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.result ul { list-style: none; padding: 0; margin: 0 0 16px; }
.result li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.result li b { display: block; }
.result li span { font-size: 14px; color: var(--muted); }
.result .closing { background: var(--accent-soft); border-radius: 8px; padding: 16px; margin: 16px 0 0; }
