/* =========================================================
   音吉フーズ LP  –  モノトーンポップ
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-main: #202020;
  --c-accent: #ff704d;
  --c-accent-soft: #ffe7e0;
  --c-gray: #f3f3f1;
  --c-gray-line: #e2e2df;
  --c-text-sub: #5c5c5c;
  --c-error: #d63a1a;

  --font-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-main);
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-main);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container.narrow { max-width: 820px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 56px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); }
.btn-dark { background: var(--c-main); color: #fff; box-shadow: 0 6px 0 var(--c-accent); }
.btn-dark:hover:not(:disabled) { box-shadow: 0 8px 0 var(--c-accent); }
.btn-accent { background: var(--c-accent); color: #fff; box-shadow: 0 6px 0 var(--c-main); }
.btn:disabled { background: #bdbdbd; box-shadow: none; cursor: not-allowed; }

/* =========================================================
   ① ヘッダー
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 2px 18px rgba(0, 0, 0, .07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo { width: 44px; height: 44px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .12em; }

.global-nav ul { display: flex; align-items: center; gap: 6px; }
.global-nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: color .2s, background-color .2s;
}
.global-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: scale(0);
  transition: transform .25s var(--ease);
}
.global-nav a:hover::after,
.global-nav a.is-current::after { transform: scale(1); }
.global-nav .nav-contact {
  margin-left: 8px;
  padding: 9px 22px;
  background: var(--c-main);
  color: #fff;
}
.global-nav .nav-contact:hover { background: var(--c-accent); }

.menu-btn { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .brand-logo { width: 40px; height: 40px; }
  .brand-name { font-size: 16px; }

  .menu-btn {
    position: relative;
    z-index: 2;
    display: grid;
    place-content: center;
    gap: 7px;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--c-main);
    cursor: pointer;
  }
  .menu-btn-bar {
    display: block;
    width: 20px; height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .3s var(--ease);
  }
  .menu-btn[aria-expanded="true"] { background: var(--c-accent); }
  .menu-btn[aria-expanded="true"] .menu-btn-bar:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn-bar:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

  .global-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    padding: 12px 20px 28px;
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .global-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s, transform .25s var(--ease);
  }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .global-nav a {
    padding: 14px 8px;
    font-size: 16px;
    border-bottom: 1px dashed var(--c-gray-line);
    border-radius: 0;
  }
  .global-nav a:not(.nav-contact)::after { left: auto; right: 12px; bottom: 50%; margin: 0 0 -3px; }
  .global-nav .nav-contact {
    margin: 16px 0 0;
    padding: 14px;
    text-align: center;
    border: 0;
    border-radius: 999px;
  }
}

/* =========================================================
   ② ファーストビュー
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 20px 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.deco { position: absolute; border-radius: 50%; }
.deco-sun {
  width: clamp(240px, 38vw, 520px);
  aspect-ratio: 1;
  right: -8%; top: 4%;
  background: var(--c-accent);
  animation: float 9s ease-in-out infinite;
}
.deco-gray {
  width: clamp(220px, 30vw, 420px);
  aspect-ratio: 1;
  left: -9%; bottom: -10%;
  background: var(--c-gray);
  animation: float 11s ease-in-out infinite reverse;
}
.deco-ring {
  width: clamp(70px, 9vw, 120px);
  aspect-ratio: 1;
  left: 12%; top: 22%;
  border: 3px solid var(--c-accent);
  animation: float 7s ease-in-out infinite;
}
.deco-dot { width: 14px; height: 14px; background: var(--c-main); }
.deco-dot-1 { left: 22%; bottom: 26%; }
.deco-dot-2 { right: 18%; bottom: 20%; width: 10px; height: 10px; background: var(--c-accent); }
.deco-dot-3 { right: 34%; top: 18%; width: 8px; height: 8px; }
.deco-curve {
  position: absolute;
  left: 0; bottom: 70px;
  width: 100%; height: 120px;
  opacity: .9;
}
.deco-curve path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw 2.4s var(--ease) .5s forwards;
}

.hero-inner { display: grid; justify-items: center; gap: 28px; text-align: center; }

.hero-logo-wrap {
  position: relative;
  padding: 14px;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 50px rgba(32, 32, 32, .18);
  animation: pop-in .9s var(--ease) both;
}
.hero-logo { width: clamp(200px, 30vw, 320px); }

.hero-title {
  position: relative;
  font-size: clamp(30px, 5vw, 48px);
  letter-spacing: .24em;
  padding-left: .24em; /* letter-spacing分の中心ずれを補正 */
  animation: fade-up .8s var(--ease) .35s both;
}
.hero-title::after {
  content: "";
  display: block;
  width: 48px; height: 6px;
  margin: 14px auto 0;
  border-radius: 6px;
  background: var(--c-accent);
}

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .24em;
  text-decoration: none;
  color: var(--c-text-sub);
}
.scroll-cue::after {
  content: "";
  width: 2px; height: 36px;
  background: linear-gradient(var(--c-main) 50%, var(--c-gray-line) 50%) 0 0 / 100% 200%;
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-16px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.9) rotate(-3deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
@keyframes scroll-line { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* =========================================================
   セクション共通
   ========================================================= */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); text-align: center; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3em;
  color: var(--c-accent);
}
.section-label::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
}
.section-title { font-size: clamp(26px, 3.6vw, 36px); letter-spacing: .1em; }

/* スクロール表示アニメーション（JS有効時のみ） */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   ③ 会社紹介
   ========================================================= */
.about { background: var(--c-gray); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.about::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 200px; height: 200px;
  border: 3px solid var(--c-accent);
  border-radius: 50%;
}
/* 日本語の改行：語句のまとまり（.phrase）と文節単位（auto-phrase）で折り返す */
.about-text,
.about-history {
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.phrase { display: inline-block; }

.about-text {
  display: grid;
  gap: 1.4em;
  max-width: 36em;
  margin-inline: auto;
  font-size: clamp(16px, 1.9vw, 18.5px);
  line-height: 2.1;
  text-align: center;
}

.about-history {
  position: relative;
  max-width: 640px;
  margin: clamp(48px, 7vw, 72px) auto 0;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 5vw, 52px);
  background: #fff;
  border-radius: var(--radius-lg);
  text-align: center;
}
.about-history::before {
  /* カード上部のオレンジの丸 */
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 6px var(--c-gray);
}
.history-title {
  display: inline;
  font-size: clamp(19px, 2.4vw, 23px);
  letter-spacing: .1em;
  line-height: 1.8;
  background: linear-gradient(transparent 68%, var(--c-accent-soft) 68%);
}
.history-text {
  display: grid;
  gap: 1em;
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 16.5px);
  line-height: 2;
  color: var(--c-text-sub);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 10px 24px;
  border: 2px solid var(--c-accent);
  border-radius: 999px;
  color: var(--c-main);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.link-btn-arrow { color: var(--c-accent); transition: transform .2s var(--ease), color .2s; }
.link-btn:hover { background: var(--c-accent); color: #fff; }
.link-btn:hover .link-btn-arrow { color: #fff; transform: translateX(4px); }

@media (max-width: 600px) {
  .about-text,
  .history-text { text-align: left; }
}

/* =========================================================
   ④ 事業紹介
   ========================================================= */
.business-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.business-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 40px 30px 34px;
  background: #fff;
  border: 2px solid var(--c-main);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
@media (hover: hover) {
  .business-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--c-main); }
}
.business-card:nth-child(2) { transition-delay: .08s; }
.business-card:nth-child(3) { transition-delay: .16s; }

.business-icon {
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
.business-icon svg {
  width: 40px; height: 40px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.business-title { font-size: 20px; letter-spacing: .06em; }
.business-card p { font-size: 15px; color: var(--c-text-sub); line-height: 1.95; }

@media (max-width: 960px) {
  .business-list { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .business-card { padding: 32px 24px 28px; }
}

/* =========================================================
   ⑤ 牛すじあぶらかす
   ========================================================= */
.product { background: var(--c-main); color: #fff; border-radius: var(--radius-lg); margin-inline: clamp(0px, 2vw, 24px); }
.product .section-label { color: var(--c-accent); }

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.product-photo { position: relative; margin: 0; }
.product-photo::before {
  content: "";
  position: absolute;
  left: -28px; top: -28px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--c-accent);
  z-index: 0;
}
.product-photo::after {
  content: "";
  position: absolute;
  right: -26px; bottom: -26px;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid #fff;
  z-index: 0;
}
.product-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto; /* 元の比率のまま表示（切り抜かない） */
  border-radius: var(--radius-lg);
}

.product-badge {
  display: block;
  width: fit-content;
  margin: 4px 0 14px;
  padding: 5px 18px 6px;
  border-radius: 999px;
  background: var(--c-accent);
  color: #fff;
  font-size: clamp(13px, 1.3vw, 14.5px);
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.6;
  box-shadow: 3px 3px 0 #fff;
  transform: rotate(-2deg);
  transform-origin: left center;
}
.product-title { margin-bottom: 28px; }
.product-text { display: grid; gap: 1.1em; font-size: clamp(15.5px, 1.6vw, 17px); line-height: 2.05; }
.product-text p { color: rgba(255, 255, 255, .86); }
.product-text .product-closing {
  margin-top: .6em;
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 700;
  color: #fff;
}
.product-text .product-closing::before {
  content: "";
  display: block;
  width: 40px; height: 5px;
  margin-bottom: 14px;
  border-radius: 5px;
  background: var(--c-accent);
}
.product-actions { margin-top: 32px; }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-photo { margin: 12px 8px 0; }
  .product-photo::before { width: 96px; height: 96px; left: -14px; top: -14px; }
  .product-photo::after { right: -8px; bottom: -8px; width: 44px; height: 44px; }
}

/* =========================================================
   ⑥ 会社概要
   ========================================================= */
.company-table {
  margin: 0;
  padding: 8px clamp(20px, 4vw, 44px);
  border: 2px solid var(--c-main);
  border-radius: var(--radius-lg);
}
.company-row {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--c-gray-line);
}
.company-row:last-child { border-bottom: 0; }
.company-row dt { display: flex; align-items: baseline; gap: 10px; font-weight: 700; }
.company-row dt::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  transform: translateY(-2px);
}
.company-row dd { margin: 0; }

@media (max-width: 600px) {
  .company-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
}

/* =========================================================
   ⑦ お問い合わせ
   ========================================================= */
.contact { background: var(--c-gray); border-radius: var(--radius-lg); margin: clamp(40px, 6vw, 80px) clamp(0px, 2vw, 24px) 0; }

.contact-card {
  padding: clamp(28px, 5vw, 56px);
  background: #fff;
  border-radius: var(--radius-lg);
}
.contact-intro { margin-bottom: 28px; text-align: center; }

.contact-notice {
  margin-bottom: 28px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--c-accent-soft);
  color: #8a2c12;
  font-size: 14.5px;
  font-weight: 700;
}

.contact-form { display: grid; gap: 22px; }

.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 700;
}
.tag {
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: .08em;
}
.tag-req { background: var(--c-accent); color: #fff; }
.tag-opt { background: var(--c-gray-line); color: var(--c-text-sub); }

.field input,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--c-gray-line);
  border-radius: var(--radius-md);
  background: #fafafa;
  color: var(--c-main);
  font: inherit;
  font-size: 16px; /* iOSのズーム防止 */
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 180px; line-height: 1.8; }
.field input::placeholder,
.field textarea::placeholder { color: #a8a8a8; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--c-main); background: #fff; }
.field.has-error input,
.field.has-error textarea { border-color: var(--c-error); background: #fff6f3; }

.field-meta { margin-top: 4px; font-size: 12px; color: var(--c-text-sub); text-align: right; }
.field-error { min-height: 0; margin-top: 6px; font-size: 13px; color: var(--c-error); }
.field-error:empty { display: none; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.privacy-agree { font-size: 13.5px; color: var(--c-text-sub); text-align: center; }
.privacy-agree a { color: var(--c-main); font-weight: 700; text-underline-offset: 3px; }

.contact-submit { justify-self: center; min-width: 240px; margin-top: 4px; }

.form-error { font-size: 14px; color: var(--c-error); text-align: center; }
.form-error:empty { display: none; }

.recaptcha-note { font-size: 11.5px; color: var(--c-text-sub); text-align: center; line-height: 1.7; }
.grecaptcha-badge { visibility: hidden; } /* 規約に沿って上記の注記を表示する前提で非表示 */

.contact-success { padding: 24px 0; text-align: center; }
.contact-success:focus { outline: none; }
.success-mark {
  display: inline-grid;
  place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-size: 32px;
}
.success-title { margin-bottom: 8px; font-size: 20px; font-weight: 700; }

/* =========================================================
   ⑧ フッター
   ========================================================= */
.site-footer { background: var(--c-main); color: #fff; padding: 56px 0 32px; }
.footer-inner { display: grid; justify-items: center; gap: 18px; text-align: center; }
.footer-brand {
  display: grid;
  justify-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
}
.footer-brand img { width: 64px; height: 64px; outline: 1px solid rgba(255, 255, 255, .25); }
.footer-nav a { font-size: 14px; text-underline-offset: 4px; }
.footer-nav a:hover { color: var(--c-accent); }
.copyright { font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .06em; }

/* =========================================================
   プライバシーポリシー（privacy.html）
   ========================================================= */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 56px;
  text-align: center;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  right: -80px; top: 20px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--c-accent);
  z-index: -1;
}
.policy { padding-bottom: clamp(72px, 10vw, 120px); }
.policy-body {
  padding: clamp(28px, 5vw, 56px);
  border: 2px solid var(--c-main);
  border-radius: var(--radius-lg);
  background: #fff;
}
.policy-body > p { margin-bottom: 1.4em; }
.policy-body h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 2.2em 0 .8em;
  font-size: 19px;
}
.policy-body h2::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
}
.policy-body ul { padding-left: 1.4em; list-style: disc; }
.policy-body li + li { margin-top: .3em; }
.policy-body a { text-underline-offset: 3px; }
.policy-meta { margin-top: 2.6em; text-align: right; font-size: 14px; color: var(--c-text-sub); }
.back-link { margin-top: 40px; text-align: center; }

/* ---------- 動きを減らす設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .deco-curve path { stroke-dashoffset: 0; }
}
