/* ==========================================================================
   あんこやドットコム リニューアル用スタイル
   参考デザイン(kinoka.tofudemo.com)のトーン: 余白を活かした落ち着いたレイアウト
   ========================================================================== */

:root {
  --color-bg: #fbf7f2;
  --color-bg-alt: #f3ece3;
  --color-text: #3a2e28;
  --color-text-light: #6b5d54;
  --color-accent: #8f2d2d;
  --color-accent-soft: #e8c7c2;
  --color-green-accent: #6b7a5e;
  --color-border: #e3d8cc;

  --font-serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;

  --container-width: 1120px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-logo img {
  width: 58px;
  height: 58px;
  display: block;
}
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: #92222c;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle-bar {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav-toggle-bar:nth-child(1) {
  top: 10px;
}
.nav-toggle-bar:nth-child(2) {
  top: 15px;
}
.nav-toggle-bar:nth-child(3) {
  top: 20px;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  top: 15px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  top: 15px;
  transform: rotate(-45deg);
}

.global-nav ul {
  display: flex;
  gap: 32px;
}
.global-nav a {
  position: relative;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 6px 0;
}
.global-nav a.is-active,
.global-nav a:hover {
  color: var(--color-accent);
}
.global-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
}

.nav-contact {
  display: none;
}
.nav-close {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-accent-soft);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.3s ease, visibility 0.3s;
  }
  .global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .global-nav-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 24px;
  }
  .global-nav li {
    border-bottom: 1px solid var(--color-border);
    opacity: 0;
  }
  .global-nav li:last-child {
    border-bottom: none;
  }
  .global-nav.is-open li {
    animation: navItemIn 0.4s ease forwards;
  }
  .global-nav.is-open li:nth-child(1) { animation-delay: 0.08s; }
  .global-nav.is-open li:nth-child(2) { animation-delay: 0.14s; }
  .global-nav.is-open li:nth-child(3) { animation-delay: 0.2s; }
  .global-nav.is-open li:nth-child(4) { animation-delay: 0.26s; }
  .global-nav.is-open li:nth-child(5) { animation-delay: 0.32s; }
  .global-nav a {
    display: block;
    padding: 16px 0;
  }
  .global-nav a.is-active::after {
    display: none;
  }
  .nav-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px 28px;
    border-top: 1px solid var(--color-border);
  }
  .nav-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.6;
  }
  .nav-contact-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--color-accent);
  }
  .nav-close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
    border: none;
    background: #92222c;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
  }
  .nav-close-icon {
    font-size: 1.1rem;
    line-height: 1;
  }
}

@keyframes navItemIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
}
.hero-copy {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-accent);
  margin-bottom: 16px;
}
.hero-lead {
  color: var(--color-text-light);
  max-width: 40em;
  margin: 0 auto;
}

/* トップページ ヒーロー(写真 + 静かなアニメーション) */
.hero-top {
  position: relative;
  min-height: 80svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}
.hero-top-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  animation: heroMediaFadeIn 1.4s ease forwards;
}
.hero-top-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform: scale(1);
  transform-origin: center;
  will-change: transform;
  animation: heroMediaZoom 9s ease-out forwards;
}
.hero-top-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(251, 247, 242, 0.94) 0%,
    rgba(251, 247, 242, 0.78) 28%,
    rgba(251, 247, 242, 0.32) 52%,
    rgba(251, 247, 242, 0) 72%
  );
}
.hero-top-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-top-copy {
  max-width: 560px;
  text-align: left;
}
.hero-top-eyebrow,
.hero-top-title,
.hero-top-desc {
  opacity: 0;
  transform: translateX(-20px);
  animation-duration: 0.7s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
  animation-name: heroTextIn;
}
.hero-top-eyebrow {
  display: block;
  font-family: var(--font-serif);
  color: var(--color-green-accent);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 12px;
  animation-delay: 0.3s;
}
.hero-top-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--color-accent);
  margin-bottom: 20px;
  animation-delay: 0.5s;
}
.hero-top-desc {
  color: var(--color-text-light);
  font-size: 1.15rem;
  animation-delay: 0.7s;
}

@keyframes heroMediaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroMediaZoom {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}
@keyframes heroTextIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  .hero-top-media img {
    object-position: 65% center;
  }
  .hero-top-copy {
    max-width: 92%;
  }
  .hero-top-desc {
    font-size: 1rem;
  }
  .hero-top-overlay {
    background: linear-gradient(
      to right,
      rgba(251, 247, 242, 0.97) 0%,
      rgba(251, 247, 242, 0.93) 45%,
      rgba(251, 247, 242, 0.72) 70%,
      rgba(251, 247, 242, 0.32) 100%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-top-media,
  .hero-top-media img,
  .hero-top-eyebrow,
  .hero-top-title,
  .hero-top-desc {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Section ---------- */
.section {
  padding: 72px 0;
}
.section-alt {
  background: var(--color-bg-alt);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-eyebrow {
  display: block;
  font-family: var(--font-serif);
  color: var(--color-green-accent);
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.section-body {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--color-text-light);
}

/* ---------- Card grid (Pick Up / レシピ) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
}
.card-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.card-body {
  padding: 20px;
}
.card-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.card-text {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* ---------- Button ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: #741f1f;
}
.btn-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Notice list (お知らせ) ---------- */
.notice-list li {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.notice-date {
  color: var(--color-text-light);
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* ---------- Form (お問い合わせ) ---------- */
.form-row {
  margin-bottom: 24px;
}
.form-row label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-row .required {
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-left: 4px;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
.form-row textarea {
  min-height: 160px;
  resize: vertical;
}
.form-error {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 6px;
}
.form-notice {
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 32px;
}
.form-notice-success {
  background: #eaf1e6;
  color: var(--color-green-accent);
}
.form-notice-error {
  background: #fbe9e7;
  color: var(--color-accent);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 56px 0 32px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}
.footer-logo {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-size: 1.2rem;
  margin: 0 0 8px;
}
.footer-address {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin: 0;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  font-size: 0.9rem;
}
.footer-legal {
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.footer-copyright {
  margin-top: 8px;
}
