/*
Theme Name: Resort Farm Premium
Theme URI: https://resortfarmshop.com/
Author: Resort Farm
Author URI: https://resortfarmshop.com/
Description: 山梨県笛吹市の桃・葡萄農園「Resort Farm」のための、黒・白・シャンパンゴールドを基調としたプレミアムWordPressテーマです。
Version: 1.2.2
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: resort-farm-premium
*/

:root {
  --rf-black: #0a0a0a;
  --rf-black-soft: #131313;
  --rf-white: #ffffff;
  --rf-ivory: #f7f5f0;
  --rf-gold: #c6a15b;
  --rf-gold-light: #e6d2a6;
  --rf-gray: #77736d;
  --rf-line: rgba(198, 161, 91, 0.35);
  --rf-max: 1240px;
  --rf-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --rf-display: "Cormorant Garamond", Georgia, serif;
  --rf-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--rf-black);
  background: var(--rf-white);
  font-family: var(--rf-sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: .045em;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
::selection { color: var(--rf-black); background: var(--rf-gold-light); }
.rf-wrap { width: min(var(--rf-max), calc(100% - 48px)); margin-inline: auto; }
.rf-serif { font-family: var(--rf-serif); }
.rf-display { font-family: var(--rf-display); }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  z-index: 100000;
  top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--rf-black);
  background: var(--rf-white);
}

/* Announcement */
.rf-announcement {
  position: relative;
  z-index: 100;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  color: var(--rf-gold-light);
  background: var(--rf-black);
  border-bottom: 1px solid rgba(198,161,91,.22);
  text-align: center;
  font-size: .73rem;
  font-weight: 400;
  letter-spacing: .18em;
}
.rf-announcement::before,
.rf-announcement::after {
  content: "";
  width: 28px;
  height: 1px;
  margin-inline: 16px;
  background: var(--rf-gold);
}

/* Header */
.rf-header {
  position: absolute;
  z-index: 90;
  top: 40px;
  right: 0;
  left: 0;
  color: var(--rf-white);
}
.rf-header-inner {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.rf-brand { display: inline-flex; align-items: center; gap: 16px; color: inherit; text-decoration: none; }
.rf-brand-mark {
  display: grid;
  width: 38px; height: 38px;
  place-items: center;
  border: 1px solid var(--rf-gold);
  border-radius: 50%;
  color: var(--rf-gold-light);
  font-family: var(--rf-display);
  font-size: 1.08rem;
  line-height: 1;
}
.rf-brand-name { display: block; font-family: var(--rf-display); font-size: 1.55rem; font-weight: 500; line-height: 1; letter-spacing: .12em; }
.rf-brand-place { display: block; margin-top: 7px; color: rgba(255,255,255,.62); font-size: .55rem; line-height: 1; letter-spacing: .26em; }
.custom-logo { width: auto; max-height: 58px; }
.rf-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 46px); }
.rf-nav ul { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); margin: 0; padding: 0; list-style: none; }
.rf-nav a { position: relative; color: inherit; text-decoration: none; font-size: .74rem; font-weight: 400; letter-spacing: .16em; }
.rf-nav ul a::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--rf-gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.rf-nav ul a:hover::after, .rf-nav ul a:focus-visible::after { transform: scaleX(1); }
.rf-nav-shop {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--rf-gold);
  color: var(--rf-gold-light) !important;
  transition: color .25s ease, background .25s ease;
}
.rf-nav-shop:hover, .rf-nav-shop:focus-visible { color: var(--rf-black) !important; background: var(--rf-gold); }
.rf-menu-toggle { display: none; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.32); background: transparent; cursor: pointer; }
.rf-menu-toggle span, .rf-menu-toggle::before, .rf-menu-toggle::after { content: ""; display: block; width: 20px; height: 1px; margin: 5px auto; background: currentColor; transition: .25s ease; }
.menu-open .rf-menu-toggle span { opacity: 0; }
.menu-open .rf-menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .rf-menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.rf-hero {
  position: relative;
  display: grid;
  min-height: 790px;
  height: calc(100vh - 40px);
  place-items: center;
  overflow: hidden;
  color: var(--rf-white);
  background: var(--rf-black);
}
.rf-hero-media { position: absolute; inset: 0; }
.rf-hero-media picture { display: block; width: 100%; height: 100%; }
.rf-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.03); animation: rfHero 18s ease-out both; }
.rf-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.22) 100%),
    linear-gradient(180deg, rgba(0,0,0,.08), transparent 50%, rgba(0,0,0,.52));
}
@keyframes rfHero { from { transform: scale(1.08); } to { transform: scale(1.03); } }
.rf-hero-content { position: relative; z-index: 2; padding-top: 118px; }
.rf-kicker { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; color: var(--rf-gold-light); font-size: .7rem; font-weight: 400; letter-spacing: .3em; text-transform: uppercase; }
.rf-kicker::before { content: ""; width: 56px; height: 1px; background: var(--rf-gold); }
.rf-hero h1 { max-width: 910px; margin: 0; font-family: var(--rf-serif); font-size: clamp(3rem, 6.7vw, 6.6rem); font-weight: 400; line-height: 1.28; letter-spacing: .07em; text-shadow: 0 5px 35px rgba(0,0,0,.36); }
.rf-hero-copy { margin: 28px 0 40px; color: rgba(255,255,255,.8); font-family: var(--rf-serif); font-size: clamp(.95rem, 1.35vw, 1.1rem); line-height: 2.15; letter-spacing: .09em; }
.rf-button {
  display: inline-flex;
  min-width: 238px;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 21px 13px 25px;
  border: 1px solid var(--rf-gold);
  color: var(--rf-black);
  background: var(--rf-gold);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .17em;
  transition: transform .25s ease, color .25s ease, background .25s ease;
}
.rf-button::after { content: "→"; font-family: serif; font-size: 1rem; }
.rf-button:hover, .rf-button:focus-visible { color: var(--rf-gold-light); background: transparent; transform: translateY(-2px); }
.rf-button-outline { color: var(--rf-black); background: transparent; border-color: rgba(10,10,10,.5); }
.rf-button-outline:hover, .rf-button-outline:focus-visible { color: var(--rf-white); background: var(--rf-black); border-color: var(--rf-black); }
.rf-scroll { position: absolute; z-index: 2; right: clamp(24px, 5vw, 72px); bottom: 42px; display: flex; align-items: center; gap: 16px; color: rgba(255,255,255,.58); font-size: .58rem; letter-spacing: .22em; writing-mode: vertical-rl; }
.rf-scroll::after { content: ""; width: 1px; height: 70px; background: linear-gradient(var(--rf-gold), transparent); }

/* Shared sections */
.rf-section { position: relative; padding: clamp(96px, 11vw, 164px) 0; }
.rf-section-black { color: var(--rf-white); background: var(--rf-black); }
.rf-section-ivory { background: var(--rf-ivory); }
.rf-label { margin: 0 0 18px; color: var(--rf-gold); font-family: var(--rf-display); font-size: .82rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.rf-title { margin: 0; font-family: var(--rf-serif); font-size: clamp(2.15rem, 4.2vw, 4.15rem); font-weight: 400; line-height: 1.5; letter-spacing: .075em; }
.rf-lead { color: var(--rf-gray); font-size: 1rem; line-height: 2.35; }
.rf-section-black .rf-lead { color: rgba(255,255,255,.62); }
.rf-intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(56px, 10vw, 150px); align-items: end; }
.rf-intro-grid .rf-lead { margin: 0; }
.rf-gold-rule { width: 1px; height: 86px; margin: 38px 0 0; background: linear-gradient(var(--rf-gold), transparent); }

/* Fruits */
.rf-fruit-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 60px; }
.rf-fruit-heading p:last-child { max-width: 420px; margin: 0; color: var(--rf-gray); font-size: .88rem; line-height: 2; }
.rf-fruit-grid { display: grid; grid-template-columns: 1fr 1fr; }
.rf-fruit-card { position: relative; min-height: 680px; overflow: hidden; color: var(--rf-white); }
.rf-fruit-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.rf-fruit-card:hover img { transform: scale(1.045); }
.rf-fruit-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.03) 25%, rgba(0,0,0,.86) 100%); }
.rf-fruit-content { position: absolute; z-index: 2; right: clamp(28px, 5vw, 64px); bottom: clamp(34px, 5vw, 62px); left: clamp(28px, 5vw, 64px); }
.rf-fruit-season { color: var(--rf-gold-light); font-family: var(--rf-display); font-size: .86rem; font-weight: 600; letter-spacing: .2em; }
.rf-fruit-content h3 { margin: 7px 0 14px; font-family: var(--rf-serif); font-size: clamp(2.4rem, 4.3vw, 4.3rem); font-weight: 400; line-height: 1.2; letter-spacing: .12em; }
.rf-fruit-content p { max-width: 480px; margin: 0; color: rgba(255,255,255,.77); line-height: 2; }

/* Craft */
.rf-craft { overflow: hidden; }
.rf-craft::before { content: "R"; position: absolute; top: -130px; right: -10px; color: rgba(198,161,91,.055); font-family: var(--rf-display); font-size: min(50vw, 650px); line-height: 1; }
.rf-craft-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(62px, 10vw, 140px); align-items: center; }
.rf-craft-photo { position: relative; }
.rf-craft-photo::after { content: ""; position: absolute; z-index: 0; right: -26px; bottom: -26px; width: 72%; height: 72%; border: 1px solid var(--rf-line); }
.rf-craft-photo img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.rf-principles { margin-top: 44px; counter-reset: principle; }
.rf-principle { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.rf-principle:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.rf-principle::before { counter-increment: principle; content: "0" counter(principle); color: var(--rf-gold); font-family: var(--rf-display); font-size: 1rem; font-style: italic; }
.rf-principle p { margin: 0; color: rgba(255,255,255,.78); font-size: .92rem; }

/* Story */
.rf-story-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(56px, 11vw, 160px); }
.rf-story-copy p { margin-top: 0; }
.rf-signature { display: flex; align-items: center; gap: 20px; margin-top: 36px; font-family: var(--rf-serif); font-size: 1.12rem; letter-spacing: .13em; }
.rf-signature::before { content: ""; width: 42px; height: 1px; background: var(--rf-gold); }

/* Vineyard gallery */
.rf-farm-gallery {
  display: grid;
  grid-template-columns: 1.25fr .55fr .8fr;
  min-height: 570px;
  overflow: hidden;
  color: var(--rf-white);
  background: var(--rf-black);
}
.rf-farm-gallery-main, .rf-farm-gallery-sub { min-height: 100%; overflow: hidden; background: #101010; }
.rf-farm-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.rf-farm-gallery-main img { object-position: center; }
.rf-farm-gallery-sub img { object-position: center; }
.rf-farm-gallery-main:hover img, .rf-farm-gallery-sub:hover img { transform: scale(1.04); }
.rf-farm-gallery-caption { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 62px); background: #101010; }
.rf-farm-gallery-caption span { color: var(--rf-gold); font-family: var(--rf-display); font-size: .72rem; font-weight: 600; letter-spacing: .22em; }
.rf-farm-gallery-caption p { margin: 23px 0 0; font-family: var(--rf-serif); font-size: clamp(1.45rem, 2.3vw, 2.25rem); line-height: 1.7; letter-spacing: .09em; }

/* Shop */
.rf-shop { overflow: hidden; text-align: center; }
.rf-shop::before, .rf-shop::after { content: ""; position: absolute; border: 1px solid rgba(198,161,91,.18); border-radius: 50%; }
.rf-shop::before { width: 380px; height: 380px; top: -220px; left: -150px; }
.rf-shop::after { width: 560px; height: 560px; right: -300px; bottom: -360px; }
.rf-shop .rf-wrap { position: relative; z-index: 1; }
.rf-shop .rf-title { max-width: 800px; margin-inline: auto; }
.rf-shop .rf-lead { max-width: 720px; margin: 26px auto 42px; }
.rf-shop-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.rf-shop-note { margin: 25px 0 0; color: var(--rf-gray); font-size: .78rem; }

/* Footer */
.rf-footer { color: rgba(255,255,255,.68); background: var(--rf-black); border-top: 1px solid rgba(198,161,91,.2); }
.rf-footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 56px; padding-top: 78px; padding-bottom: 58px; }
.rf-footer-brand { color: var(--rf-white); font-family: var(--rf-display); font-size: 1.75rem; letter-spacing: .12em; }
.rf-footer-label { margin: 0 0 15px; color: var(--rf-gold); font-family: var(--rf-display); font-size: .72rem; font-weight: 600; letter-spacing: .23em; text-transform: uppercase; }
.rf-footer p, .rf-footer a { font-size: .82rem; line-height: 2; }
.rf-footer-links { display: grid; gap: 3px; }
.rf-footer-links a { width: fit-content; text-decoration-color: rgba(198,161,91,.5); text-underline-offset: 5px; }
.rf-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.11); font-family: var(--rf-display); font-size: .66rem; letter-spacing: .16em; }
.rf-footer-bottom a { text-decoration: none; font-size: inherit; }
.rf-footer-bottom ul { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }

/* Standard WordPress content */
.rf-content-header { padding: 190px 0 80px; color: var(--rf-white); background: var(--rf-black); }
.rf-content-header h1 { margin: 0; font-family: var(--rf-serif); font-size: clamp(2.3rem, 5vw, 4.6rem); font-weight: 400; letter-spacing: .07em; }
.rf-content { width: min(860px, calc(100% - 48px)); min-height: 50vh; margin-inline: auto; padding: 82px 0 120px; }
.rf-content h2, .rf-content h3, .rf-content h4 { font-family: var(--rf-serif); font-weight: 500; line-height: 1.6; }
.rf-content h2 { margin-top: 2.5em; padding-bottom: .5em; border-bottom: 1px solid var(--rf-line); font-size: 1.9rem; }
.rf-content h3 { margin-top: 2em; font-size: 1.45rem; }
.rf-content a { text-decoration-color: var(--rf-gold); text-underline-offset: 4px; }
.rf-content figure, .rf-content img { max-width: 100%; }
.rf-post-list { display: grid; gap: 50px; }
.rf-post-card { padding-bottom: 45px; border-bottom: 1px solid rgba(10,10,10,.14); }
.rf-post-card h2 { margin: 0 0 10px; padding: 0; border: 0; }
.rf-post-card h2 a { text-decoration: none; }
.rf-meta { color: var(--rf-gray); font-family: var(--rf-display); font-size: .8rem; letter-spacing: .12em; }
.navigation.pagination { margin-top: 55px; }
.nav-links { display: flex; gap: 10px; }
.page-numbers { display: grid; min-width: 40px; min-height: 40px; place-items: center; border: 1px solid rgba(10,10,10,.18); text-decoration: none; }
.page-numbers.current { color: var(--rf-black); background: var(--rf-gold); border-color: var(--rf-gold); }

/* Reveal */
.rf-reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.rf-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .rf-menu-toggle { display: block; position: relative; z-index: 102; }
  .rf-nav {
    position: fixed;
    z-index: 101;
    inset: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    color: var(--rf-white);
    background: rgba(10,10,10,.98);
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
  }
  .menu-open .rf-nav { visibility: visible; opacity: 1; }
  .rf-nav ul { flex-direction: column; gap: 28px; }
  .rf-nav a { font-family: var(--rf-serif); font-size: 1rem; }
  .rf-intro-grid, .rf-craft-grid, .rf-story-grid { grid-template-columns: 1fr; }
  .rf-craft-photo { order: 2; }
  .rf-craft-photo img { aspect-ratio: 5/4; }
  .rf-fruit-heading { display: block; }
  .rf-fruit-heading p:last-child { margin-top: 24px; }
  .rf-fruit-grid { grid-template-columns: 1fr; }
  .rf-fruit-card { min-height: 580px; }
  .rf-farm-gallery { grid-template-columns: 1fr 1fr; min-height: auto; }
  .rf-farm-gallery-main { height: 500px; min-height: 0; }
  .rf-farm-gallery-caption { grid-column: 1 / -1; order: 3; min-height: 240px; }
  .rf-farm-gallery-sub { height: 500px; min-height: 0; }
  .rf-footer-main { grid-template-columns: 1fr 1fr; }
  .rf-footer-main > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .rf-wrap { width: min(100% - 38px, var(--rf-max)); }
  .rf-announcement { min-height: 42px; font-size: .65rem; letter-spacing: .1em; }
  .rf-announcement::before, .rf-announcement::after { display: none; }
  .rf-header { top: 42px; }
  .rf-header-inner { min-height: 82px; }
  .rf-brand-mark { width: 34px; height: 34px; }
  .rf-brand-name { font-size: 1.25rem; }
  .rf-hero { min-height: 700px; height: calc(100svh - 42px); }
  .rf-hero-media img { object-position: center; }
  .rf-hero-content { padding-top: 90px; }
  .rf-hero h1 { font-size: clamp(2.65rem, 13.2vw, 4rem); line-height: 1.4; }
  .rf-hero-copy { max-width: 28rem; font-size: .94rem; line-height: 2; }
  .rf-hero-copy br { display: none; }
  .rf-scroll { display: none; }
  .rf-button { width: 100%; }
  .rf-section { padding: 84px 0; }
  .rf-title { font-size: clamp(2rem, 9.3vw, 3rem); line-height: 1.45; }
  .rf-lead { font-size: .94rem; line-height: 2.15; }
  .rf-gold-rule { height: 55px; }
  .rf-fruit-card { min-height: 500px; }
  .rf-fruit-copy { bottom: 32px; }
  .rf-fruit-copy h3 { font-size: 2.45rem; }
  .rf-principle { grid-template-columns: 34px 1fr; gap: 11px; }
  .rf-principle p { font-size: .88rem; }
  .rf-fruit-content p { font-size: .88rem; }
  .rf-farm-gallery { display: flex; flex-direction: column; min-height: 0; }
  .rf-farm-gallery-main, .rf-farm-gallery-sub { width: 100%; height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .rf-farm-gallery-caption { grid-column: auto; min-height: 220px; }
  .rf-footer-main { grid-template-columns: 1fr; gap: 30px; padding-top: 60px; }
  .rf-footer-main > div:first-child { grid-column: auto; }
  .rf-footer-bottom { display: block; }
  .rf-footer-bottom a { display: inline-block; margin-top: 8px; }
  .rf-footer-bottom ul { display: block; }
  .rf-content-header { padding-top: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rf-reveal { opacity: 1; transform: none; }
}
