/* =================================================
   ホネモン COMPANY - LP Stylesheet
   レスポンシブ Breakpoints:
     - default :       〜 479px (極小スマホ)
     - sm  >= 480px    (大きめスマホ)
     - md  >= 640px    (大型スマホ / 縦タブレット)
     - lg  >= 820px    (タブレット横 / 小型ノート)
     - xl  >= 1024px   (デスクトップ)
     - 2xl >= 1280px   (ワイドデスクトップ)
   ================================================= */

:root {
  --paper: #fdfaf2;
  --paper-2: #f6f0e1;
  --ink: #2a2a2a;
  --ink-soft: #4a4338;
  --line: #cfc8b8;
  --accent: #c25b4a;
  --accent-2: #7a8c5c;
  --shadow: 0 8px 28px rgba(60, 50, 30, 0.08);
  --radius: 18px;
  --max: 1140px;
  --header-h: 64px;
  --pad-x: clamp(1rem, 4vw, 2rem);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Klee One", "Yu Mincho", "游明朝", serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: 0.02em;
  background-image:
    radial-gradient(rgba(120, 100, 60, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(120, 100, 60, 0.04) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  overflow-x: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
}

img, svg { max-width: 100%; display: block; height: auto; }

a { color: var(--ink); text-decoration: none; }

/* ホバー可能デバイスのみホバー演出を適用 */
@media (hover: hover) {
  a:hover { color: var(--accent); }
}

/* sticky header と スクロール先のかぶり防止 */
section[id], .hero[id] {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.container {
  width: 100%;
  max-width: var(--max);
  padding-inline: var(--pad-x);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 250, 242, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px dashed var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: "Klee One", serif;
  font-weight: 600;
  min-width: 0;
}
.brand-mark {
  font-size: clamp(1rem, 3.4vw, 1.2rem);
  letter-spacing: 0.15em;
  white-space: nowrap;
}
.brand-sub {
  font-family: "Caveat", cursive;
  font-size: clamp(0.9rem, 2.6vw, 1rem);
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.primary-nav ul {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  .primary-nav a:hover::after { transform: scaleX(1); }
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.2s ease;
  border-radius: 2px;
}
.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);
}

/* タブレット横以下: ハンバーガーへ */
@media (max-width: 819px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px dashed var(--line);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
  }
  .primary-nav.open { max-height: 520px; }
  .primary-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.8rem;
  }
  .primary-nav a { font-size: 1.4rem; }
}

/* ===================== Hero ===================== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2.5rem, 8vw, 5rem);
  text-align: center;
}
.hero-inner > * + * { margin-top: 1.1rem; }

.logo-stamp {
  position: relative;
  width: clamp(200px, 56vw, 380px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}
.logo-frame {
  width: 100%; height: 100%;
  filter: drop-shadow(0 6px 14px rgba(60, 50, 30, 0.1));
}
.logo-grid {
  position: absolute;
  inset: 14% 14% 14% 14%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  font-family: "Klee One", "Yomogi", serif;
  font-weight: 600;
  font-size: clamp(2rem, 11vw, 4.6rem);
  color: var(--ink);
  line-height: 1;
}
.logo-char {
  display: inline-block;
  transform: rotate(-1.2deg);
}
.logo-char:nth-child(2) { transform: rotate(1deg); }
.logo-char:nth-child(3) { transform: rotate(0.6deg); }
.logo-char:nth-child(4) { transform: rotate(-0.8deg); }

.hero-company {
  font-family: "Caveat", cursive;
  font-size: clamp(1.1rem, 3.2vw, 1.6rem);
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  margin: 0.4rem 0 0;
}
.hero-hours {
  font-family: "Klee One", serif;
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  color: var(--ink-soft);
  margin: 0.4rem 0 1.6rem;
}
.hero-hours span { margin-left: 0.4rem; letter-spacing: 0.1em; }

.hero-tagline {
  font-family: "Klee One", "Yomogi", serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  margin: 0.4rem 0;
  letter-spacing: 0.06em;
  line-height: 1.55;
}
.hero-lead {
  max-width: 640px;
  margin: 0.4rem auto 1.6rem;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}
.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn { flex: 0 1 auto; }

/* スマホでは CTA を縦並びでフル幅近くに */
@media (max-width: 479px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
}

.btn {
  display: inline-block;
  font-family: "Klee One", serif;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
  font-size: clamp(0.95rem, 2.4vw, 1rem);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
}
.btn-primary { background: var(--ink); color: var(--paper); }
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
}

.scroll-cue {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  font-family: "Caveat", cursive;
  color: var(--ink-soft);
  margin-top: 2.5rem;
  letter-spacing: 0.1em;
}
.scroll-cue .line {
  width: 1px; height: 36px; background: var(--ink-soft);
  animation: cue 1.6s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 0.2; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0) translateY(36px); opacity: 0.2; }
}
@media (max-width: 479px) {
  .scroll-cue { display: none; }
}

/* ===================== Divider ===================== */
.divider { width: 100%; height: 24px; overflow: hidden; }
.divider svg { width: 100%; height: 100%; }

/* ===================== Sections ===================== */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.section-alt {
  background: var(--paper-2);
  border-block: 1px dashed var(--line);
}

.section-head { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-eyebrow {
  font-family: "Caveat", cursive;
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  color: var(--accent);
  letter-spacing: 0.12em;
  margin: 0 0 0.2rem;
}
.section-title {
  font-family: "Klee One", "Yomogi", serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  margin: 0;
  letter-spacing: 0.12em;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 2px;
  background: var(--ink);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.section-lead {
  max-width: 640px;
  margin: 0.8rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.4vw, 1rem);
}

/* ===================== About ===================== */
.about-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(0.98rem, 2.4vw, 1.05rem);
}
.about-body p + p { margin-top: 1.2rem; }

.about-stats {
  list-style: none;
  margin: clamp(1.8rem, 4vw, 2.6rem) auto 0;
  padding: clamp(1rem, 3vw, 1.4rem) 1rem;
  max-width: 720px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  text-align: center;
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
@media (min-width: 480px) {
  .about-stats { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
.about-stats li { padding: 0.4rem 0.6rem; }
.stats-num {
  font-family: "Klee One", serif;
  font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.stats-num span {
  font-size: 0.6em;
  margin-left: 0.2em;
  color: var(--ink-soft);
}
.stats-label {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

/* ===================== Service ===================== */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
}
@media (min-width: 1024px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid.service-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.6rem) clamp(1rem, 3vw, 1.4rem);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.25s ease;
  min-width: 0;
}
.service-card:nth-child(2) { transform: rotate(0.4deg); }
.service-card:nth-child(4) { transform: rotate(-0.3deg); }
@media (hover: hover) {
  .service-card:hover { transform: translateY(-4px) rotate(-0.4deg); }
  .service-card:nth-child(2):hover { transform: translateY(-4px) rotate(0.6deg); }
  .service-card:nth-child(3):hover { transform: translateY(-4px) rotate(-0.6deg); }
  .service-card:nth-child(4):hover { transform: translateY(-4px) rotate(0.5deg); }
}

.service-num {
  font-family: "Caveat", cursive;
  font-size: clamp(1.5rem, 4vw, 1.8rem);
  color: var(--accent-2);
  margin: 0 0 0.4rem;
}
.service-name {
  font-family: "Klee One", serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.08em;
}
.service-desc {
  font-size: clamp(0.9rem, 2.2vw, 0.95rem);
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.service-price {
  font-family: "Klee One", serif;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  margin: 0;
  border-top: 1px dashed var(--line);
  padding-top: 0.8rem;
}
.service-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 1.6rem 0 0;
}

/* ===================== Works (タグ) ===================== */
.tag-cloud {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.7rem;
  justify-content: center;
}
.tag-cloud li {
  display: inline-block;
  padding: clamp(0.4rem, 1.4vw, 0.5rem) clamp(0.85rem, 2vw, 1.1rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: "Klee One", serif;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.tag-cloud li:nth-child(odd)  { transform: rotate(-0.6deg); }
.tag-cloud li:nth-child(even) { transform: rotate(0.6deg); }
@media (hover: hover) {
  .tag-cloud li:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-2px) rotate(0deg);
  }
}
.works-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 1.8rem auto 0;
  max-width: 720px;
  padding-inline: var(--pad-x);
}

/* ===================== Flow ===================== */
.flow-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 820px;
  display: grid;
  gap: 1.1rem;
}
.flow-list li {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.3rem) clamp(1rem, 3vw, 1.5rem)
           clamp(1rem, 3vw, 1.3rem) clamp(1.1rem, 3vw, 1.7rem);
  box-shadow: var(--shadow);
}
.flow-step {
  display: inline-block;
  font-family: "Caveat", cursive;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}
.flow-name {
  font-family: "Klee One", serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.15rem);
  margin: 0 0 0.4rem;
  letter-spacing: 0.08em;
}
.flow-list li p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 2.2vw, 0.98rem);
}

/* ===================== Contact ===================== */
.contact-wrap { max-width: 640px; margin: 0 auto; }

.contact-channels {
  list-style: none;
  margin: 0 auto 2rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}
.contact-channels li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ch-label {
  font-family: "Caveat", cursive;
  color: var(--accent);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  min-width: 5.5rem;
  text-align: left;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--paper);
  padding: clamp(1.2rem, 4vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row { display: grid; gap: 0.4rem; }
.form-row label {
  font-family: "Klee One", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: clamp(0.95rem, 2.4vw, 1rem);
}
.form-row input,
.form-row textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  width: 100%;
  resize: vertical;
  font-size: 16px; /* iOS の自動ズーム抑制 */
}
.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
.form-status {
  margin: 0;
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  color: var(--accent-2);
  min-height: 1.4em;
}

.contact-form .btn { justify-self: center; min-width: 180px; }
@media (max-width: 479px) {
  .contact-form .btn { justify-self: stretch; width: 100%; }
}

/* ===================== Footer ===================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2rem, 5vw, 2.6rem) 0;
  text-align: center;
}
.footer-inner > * + * { margin-top: 0.4rem; }
.footer-brand {
  font-family: "Klee One", serif;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin: 0;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
}
.footer-meta {
  font-family: "Caveat", cursive;
  margin: 0;
  color: rgba(253, 250, 242, 0.8);
  font-size: clamp(0.9rem, 2.4vw, 1rem);
}
.footer-copy {
  font-size: 0.8rem;
  color: rgba(253, 250, 242, 0.6);
  margin: 0.6rem 0 0;
}

/* ===================== Reveal Animation ===================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== A11y / Motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue .line { animation: none; }
  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .tag-cloud li:nth-child(odd),
  .tag-cloud li:nth-child(even),
  .logo-char {
    transform: none !important;
  }
}

/* ===================== Print ===================== */
@media print {
  .site-header, .nav-toggle, .scroll-cue, .contact-form, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 1rem 0; break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}
