/* ミジンコ筆耕所 公式サイト */

:root {
  --washi: #f2f4f7;
  --washi-deep: #e3e8ef;
  --paper: #fafbfc;
  --sumi: #1d222b;
  --sumi-soft: #434a56;
  --sumi-mute: #6f7785;
  --line: #d3dae4;
  --ai: #1f4a7c;
  --ai-soft: #e3eaf3;
  --ai-deep: #16263f;

  --heading: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --fude: "Yuji Syuku", serif;

  --wrap: 1040px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--washi);
  color: var(--sumi);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(242, 244, 247, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 3px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--fude);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--sumi);
  border-radius: 999px;
  background: transparent;
  color: var(--sumi);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.site-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--washi);
  border-bottom: 1px solid var(--line);
}

.site-nav.is-open { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 16px 16px;
}

.site-nav a {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-nav a[aria-current="page"] { color: var(--ai); }

.site-nav .nav-cta {
  margin-top: 12px;
  border: 0;
  text-align: center;
  background: var(--sumi);
  color: var(--washi);
  border-radius: 999px;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
  }
  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
  }
  .site-nav a {
    border: 0;
    padding: 8px 12px;
    font-size: 14px;
  }
  .site-nav .nav-cta {
    margin: 0 0 0 8px;
    padding: 8px 18px;
  }
}

/* ---------- 共通パーツ ---------- */

.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper); }

@media (min-width: 768px) {
  .section { padding: 104px 0; }
}

.eyebrow {
  display: block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ai);
  margin-bottom: 8px;
}

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin: 0;
}

.section-title {
  font-size: 26px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .section-title { font-size: 32px; margin-bottom: 48px; }
}

.lead {
  font-size: 17px;
  color: var(--sumi-soft);
  max-width: 36em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--sumi);
  transition: background 0.2s, color 0.2s;
}

/* 申し込み・注文などの大事なボタン（藍色のグラデーション） */
.btn--primary {
  min-height: 60px;
  padding: 14px 36px;
  border: 0;
  background: linear-gradient(90deg, #3f72ad 0%, #1f4a7c 100%);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 10px 24px rgba(31, 74, 124, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn--primary::after {
  content: "→";
  margin-left: 6px;
  transition: transform 0.2s;
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(31, 74, 124, 0.38);
}
.btn--primary:hover::after { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--sumi); }
.btn--ghost:hover { background: var(--sumi); color: var(--washi); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.more {
  display: inline-block;
  margin-top: 32px;
  color: var(--sumi);
  text-underline-offset: 6px;
}

/* まだ決まっていない箇所の目印 */
.todo {
  display: inline-block;
  padding: 2px 10px;
  border: 1px dashed var(--ai);
  border-radius: 4px;
  color: var(--ai);
  font-size: 13px;
  background: var(--ai-soft);
}

/* ---------- トップ：ファーストビュー ---------- */

.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
}

.hero-copy {
  font-family: var(--fude);
  font-weight: 400;
  font-size: clamp(26px, calc((100vw - 64px) / 12.5), 64px);
  line-height: 1.5;
  letter-spacing: 0.1em;
  margin: 0 0 24px;
}

.hero-copy span { display: inline-block; white-space: nowrap; }

.hero-sub {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--sumi-soft);
}

.hero-sumi {
  position: absolute;
  right: -80px;
  top: 40px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(31, 74, 124, 0.09), rgba(31, 74, 124, 0) 70%);
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero { padding: 120px 0 136px; }
  .hero-sumi { width: 560px; height: 560px; right: -120px; top: 0; }
}

/* モニター価格のお知らせ */
.notice {
  border: 1px solid var(--ai);
  background: var(--paper);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.notice-label {
  display: inline-block;
  justify-self: start;
  background: var(--ai);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 2px 12px;
  border-radius: 999px;
}

.notice-price {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.3;
}

.notice-price small { font-size: 14px; color: var(--sumi-mute); }
.notice-price { white-space: nowrap; }
.notice p { margin: 0; }

@media (min-width: 768px) {
  .notice {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 28px 36px;
  }
}

/* ---------- カード・グリッド ---------- */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
}

.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { margin: 0; color: var(--sumi-soft); font-size: 15px; }
.card .notice-price { font-size: 30px; color: var(--sumi); margin-bottom: 12px; }
.card .notice-price small { font-size: 14px; }
.card .notice-label { margin-bottom: 12px; }

.reason {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.reason:first-child { border-top: 1px solid var(--line); }

.reason-num {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--ai);
  line-height: 1.2;
}

.reason h3 { font-size: 18px; margin-bottom: 6px; }
.reason p { margin: 0; color: var(--sumi-soft); }

/* 作品の仮置き */
.work {
  margin: 0;
}

.work-img {
  aspect-ratio: 1 / 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-family: var(--fude);
  font-size: clamp(28px, 6vw, 40px);
  color: var(--sumi);
  position: relative;
}

.work-img::after {
  content: "作品写真が入ります";
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--body);
  font-size: 11px;
  color: var(--sumi-mute);
  letter-spacing: 0.1em;
}

.work-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 10px;
  border-radius: 999px;
  border: 1px solid var(--sumi-mute);
  color: var(--sumi-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  vertical-align: 1px;
}

.work-tag--order {
  border-color: var(--ai);
  background: var(--ai);
  color: #fff;
}

.work-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.work figcaption {
  font-size: 13px;
  color: var(--sumi-mute);
  margin-top: 8px;
}

/* 流れ */
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.flow li {
  counter-increment: step;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 20px 72px;
}

.flow li::before {
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sumi);
  display: grid;
  place-items: center;
  font-family: var(--heading);
  font-weight: 700;
}

.flow strong { display: block; font-family: var(--heading); font-weight: 700; font-size: 17px; }
.flow span { color: var(--sumi-soft); font-size: 14px; }

@media (min-width: 900px) {
  .flow--row { grid-template-columns: repeat(6, 1fr); }
  .flow--row li { padding: 72px 18px 20px; }
  .flow--row li::before { left: 18px; top: 20px; }
}

/* CTA */
.cta {
  text-align: center;
  background: var(--ai-deep);
  color: var(--washi);
}

.cta .section-title { color: var(--washi); margin-bottom: 16px; }
.cta p { color: #c6d0de; margin: 0 auto; max-width: 30em; }
.cta .btn--primary { background: linear-gradient(90deg, #7aa3d6 0%, #3f72ad 100%); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.cta .btn-row { justify-content: center; }

/* ---------- 下層ページ ---------- */

.page-head {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: 30px;
}

@media (min-width: 768px) {
  .page-head { padding: 96px 0 56px; }
  .page-head h1 { font-size: 40px; }
}

.prose { max-width: 40em; }
.prose h2 { font-size: 22px; margin: 56px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }

.about-intro {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}

.about-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  object-fit: contain;
  padding: 10px;
}

.about-name { font-family: var(--heading); font-weight: 700; font-size: 22px; margin: 0; }
.about-name small { display: block; font-size: 14px; color: var(--sumi-mute); }

@media (min-width: 768px) {
  .about-intro { grid-template-columns: 120px 1fr; gap: 32px; }
}

/* 料金表 */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table tr:last-child th,
.price-table tr:last-child td { border-bottom: 0; }

.price-table th {
  font-weight: 500;
  width: 42%;
  font-size: 15px;
}

.price-table td strong {
  font-family: var(--heading);
  font-weight: 700;
  font-size: 22px;
}

.price-table td small {
  display: block;
  color: var(--sumi-mute);
  font-size: 13px;
}

@media (max-width: 560px) {
  .price-table th,
  .price-table td { display: block; width: 100%; }
  .price-table th { padding-bottom: 0; border-bottom: 0; color: var(--sumi-mute); font-size: 13px; }
}

.note { font-size: 13px; color: var(--sumi-mute); margin-top: 12px; }

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.75em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ai);
}

.check-list--off li::before {
  background: transparent;
  border: 1px solid var(--sumi-mute);
}

.subhead {
  font-size: 20px;
  margin: 56px 0 20px;
}

.subhead:first-child { margin-top: 0; }

/* よくある質問 */
.faq-list { display: grid; gap: 12px; max-width: 48em; }

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 20px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 0;
  position: relative;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 17px;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 22px;
  color: var(--ai);
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list .answer {
  padding: 0 0 20px;
  color: var(--sumi-soft);
}

.faq-list .answer p { margin: 0 0 0.6em; }

/* フォーム */
.form {
  display: grid;
  gap: 24px;
  max-width: 40em;
}

.field { display: grid; gap: 8px; }

.field label,
.field legend {
  font-weight: 500;
  font-size: 15px;
}

.req {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: #fff;
  background: var(--ai);
  padding: 1px 8px;
  border-radius: 4px;
  vertical-align: 2px;
}

.opt {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  color: var(--sumi-mute);
  border: 1px solid var(--line);
  padding: 0 8px;
  border-radius: 4px;
  vertical-align: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--sumi);
}

.field textarea { min-height: 120px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ai);
  outline-offset: 1px;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
}

.choice input { margin-top: 0.45em; accent-color: var(--ai); }

.hint { font-size: 13px; color: var(--sumi-mute); margin: 0; }

.form-done {
  display: none;
  padding: 20px;
  border-radius: 12px;
  background: var(--ai-soft);
  border: 1px solid var(--ai);
}

.form-done.is-shown { display: block; }

.form-error {
  display: none;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ai);
  color: var(--ai);
}

.form-error.is-shown { display: block; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* 送る前の確認 */
.order-confirm {
  background: var(--paper);
  border: 1px solid var(--ai);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  gap: 12px;
}
.order-confirm h3 { font-size: 18px; }
.order-confirm dl { margin: 0; display: grid; gap: 10px; }
.order-confirm dt { font-weight: 700; font-size: 14px; color: var(--ai); }
.order-confirm dd { margin: 0; font-size: 15px; }
@media (min-width: 640px) {
  .order-confirm dl { grid-template-columns: 7em 1fr; gap: 10px 16px; }
}
.order-confirm a { color: var(--ai); }

/* 規約などの文章 */
.legal-text h3 { font-size: 16px; margin: 24px 0 8px; }
.legal-text ol, .legal-text ul { padding-left: 1.4em; margin: 0; }
.legal-text li { margin-bottom: 6px; }

/* 法的表記 */
.legal-block {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  max-width: 48em;
}

.legal-block h2 { font-size: 20px; margin-bottom: 12px; }

.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th,
.legal-table td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { width: 34%; padding-right: 16px; font-weight: 500; color: var(--sumi-soft); }
@media (max-width: 560px) {
  .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table th { padding-bottom: 0; border-bottom: 0; font-size: 13px; }
}

/* SNSのアイコン */
ul.sns-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
}

.sns-links a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--sumi);
  box-shadow: 0 4px 12px rgba(34, 32, 32, 0.06);
  transition: color 0.2s, transform 0.2s;
}

.sns-links a:hover {
  color: var(--ai);
  transform: translateY(-2px);
}

.sns-links svg { width: 22px; height: 22px; }

/* ---------- フッター ---------- */

.site-footer {
  background: var(--washi-deep);
  padding: 56px 0 32px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: var(--sumi-soft); }
.site-footer a:hover { color: var(--ai); }
.site-footer p { margin: 8px 0 0; color: var(--sumi-soft); }
.site-footer ul.sns-links { display: flex; gap: 10px; margin-top: 20px; }
.site-footer .sns-links a { width: 44px; height: 44px; color: var(--sumi); }
.site-footer .sns-links a:hover { color: var(--ai); }
.site-footer .sns-links svg { width: 20px; height: 20px; }

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--sumi-mute);
}

/* プレビュー用の注意書き */
.preview-bar {
  background: var(--ai);
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.05em;
}

/* ---------- ふわっと表示 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
