/* 飯田農園 共通CSS（PC 1920設計 / SP 375設計・vw連動rem） */

:root {
  --black: #2b2723;
  --orange: #c4622b;
  --beige: #ebe5d9;
  --gray: #d9d9d9;
  --line-green: #06c755;
  --ff-zen: "Zen Old Mincho", serif;
  --ff-shippori: "Shippori Mincho B1", serif;
}

html { font-size: min(calc(100vw / 192), 10px); }
@media (max-width: 768px) {
  html { font-size: calc(100vw / 37.5); }
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--black);
  font-family: var(--ff-shippori);
  font-size: 1.7rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

.pc-only { display: block; }
.sp-only { display: none; }
@media (max-width: 768px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}
br.sp-only { display: none; }
@media (max-width: 768px) {
  br.pc-only { display: none; }
  br.sp-only { display: inline; }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 15.8rem; padding: 4.4rem 10rem;
  background: #fff;
}
.header__logo { flex-shrink: 0; }
.header__logo img { width: 29.2rem; }
.header__nav { display: flex; align-items: center; gap: 4.8rem; }
.header__nav-link { font-size: 1.7rem; letter-spacing: 0.17rem; line-height: normal; }
.header__btns { display: flex; align-items: stretch; gap: 2.4rem; }
.header__btn {
  display: flex; align-items: center; justify-content: center;
  padding: 1.6rem 3.2rem; border-radius: 10rem;
  font-size: 1.7rem; font-weight: 500; letter-spacing: 0.17rem; line-height: normal;
  border: 1px solid var(--orange); transition: opacity .3s;
}
.header__btn--line { color: var(--orange); }
.header__btn--fill { background: var(--orange); color: #fff; }
.header__nav-link:hover, .header__btn:hover { opacity: .7; }
.header__toggle { display: none; }

@media (max-width: 768px) {
  .header {
    position: relative; z-index: 50;
    height: 7rem; padding: 1.4rem 2.4rem;
    border-bottom: 1px solid var(--gray);
  }
  .header__logo img { width: 13.6rem; }
  .header__nav { display: none; }
  .header__toggle {
    display: block; width: 3.2rem; height: 3.2rem; padding: 0;
    border: 0; background: url(../img/common/menu-open.svg) center / 100% no-repeat; cursor: pointer;
  }
}

/* ---------- SP menu ---------- */
.sp-menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--orange); color: #fff;
  overflow-y: auto;
  transform: translateX(100%); visibility: hidden;
  transition: transform .4s ease, visibility 0s .4s;
}
.sp-menu.is-open { transform: none; visibility: visible; transition: transform .4s ease, visibility 0s; }
.sp-menu__head {
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  height: 7rem; padding: 1.4rem 2.4rem; border-bottom: 1px solid #fff;
}
.sp-menu__logo { flex-shrink: 0; }
.sp-menu__logo img { width: 13.6rem; }
.sp-menu__close {
  width: 3.2rem; height: 3.2rem; padding: 0; border: 0; cursor: pointer;
  background: url(../img/common/menu-close.svg) center / 100% no-repeat;
}
.sp-menu__body {
  display: flex; flex-direction: column; align-items: center; gap: 4.8rem;
  padding: 13.3rem 2.4rem 4rem;
}
.sp-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 3.2rem; }
.sp-menu__nav a { font-size: 1.6rem; letter-spacing: 0.272rem; line-height: normal; }
.sp-menu__btns { display: flex; flex-direction: column; gap: 1.6rem; width: 100%; }
.sp-menu__btn {
  display: flex; align-items: center; justify-content: center; height: 8rem;
  font-size: 1.6rem; font-weight: 500; letter-spacing: 0.16rem; line-height: normal;
}
.sp-menu__btn--line { border: 1px solid #fff; }
.sp-menu__btn--fill { background: #fff; color: var(--black); }
.sp-menu__copy { font-size: 1.2rem; letter-spacing: 0.272rem; line-height: normal; }
@media (min-width: 769px) { .sp-menu { display: none; } }

/* ---------- section heading（英字＋和文） ---------- */
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 2.4rem; text-align: center; }
.sec-head__en {
  color: var(--orange); font-size: 1.7rem; letter-spacing: 0.51rem; line-height: 3.8rem; font-weight: 400;
}
.sec-head__ja {
  font-family: var(--ff-zen); font-size: 3.6rem; letter-spacing: 1.08rem; line-height: 3.8rem; font-weight: 400;
}

/* ---------- more（詳しく見る） ---------- */
.more {
  display: inline-flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--orange);
  color: var(--orange); font-size: 1.5rem; letter-spacing: 0.15rem; line-height: 3.8rem;
  transition: opacity .3s;
}
.more:hover { opacity: .7; }

/* ---------- contact CTA（全ページ共通・contactページ以外） ---------- */
.cta {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; gap: 8rem;
  padding: 16rem 0; color: #fff;
}
.cta__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: rgba(43, 39, 35, .7); }
.cta__lead {
  font-size: 2.8rem; letter-spacing: 0.56rem; line-height: 5.6rem; text-align: center; font-weight: 400;
}
.cta__btns { display: flex; justify-content: center; gap: 4rem; width: 100%; }
.cta__btn {
  display: flex; align-items: center; justify-content: center; gap: 1.6rem;
  width: 36rem; height: 8rem;
  font-size: 1.7rem; letter-spacing: 0.51rem; line-height: normal;
  transition: opacity .3s;
}
.cta__btn img { width: 2.4rem; height: 2.4rem; }
.cta__btn--form { border: 1px solid #fff; font-weight: 500; }
.cta__btn--line { background: var(--line-green); }
.cta__btn:hover { opacity: .8; }
@media (max-width: 768px) {
  .cta { gap: 4rem; padding: 8rem 0; }
  .cta__lead { font-size: 2rem; letter-spacing: 0.4rem; line-height: 4rem; }
  .cta__btns { flex-direction: column; gap: 2.4rem; padding: 0 2.4rem; }
  .cta__btn { width: 100%; font-size: 1.6rem; letter-spacing: 0.48rem; }
}

/* ---------- footer ---------- */
.footer {
  display: flex; flex-direction: column; align-items: center; gap: 6.8rem;
  padding: 16rem 0; background: var(--orange); color: #fff; text-align: center;
}
.footer__logo img { width: 16rem; }
.footer__nav { display: flex; justify-content: center; gap: 6.8rem; }
.footer__nav a { font-size: 1.7rem; letter-spacing: 0.272rem; line-height: normal; }
.footer__nav a:hover { opacity: .7; }
.footer__btn {
  display: flex; align-items: center; justify-content: center; height: 8rem; padding: 0 6.1rem;
  background: #fff; color: var(--black);
  font-size: 1.7rem; font-weight: 500; letter-spacing: 0.17rem; line-height: normal;
  transition: opacity .3s;
}
.footer__btn:hover { opacity: .8; }
.footer__copy { font-size: 1.3rem; letter-spacing: 0.272rem; line-height: normal; }
@media (max-width: 768px) {
  .footer { gap: 4.8rem; padding: 8rem 2.4rem; }
  .footer__logo img { width: 10rem; }
  .footer__nav { flex-direction: column; align-items: center; gap: 2.4rem; }
  .footer__nav a { font-size: 1.6rem; line-height: 2.3rem; }
  .footer__btn { width: 100%; font-size: 1.6rem; letter-spacing: 0.16rem; }
  .footer__copy { font-size: 1.2rem; line-height: 1.7rem; }
}

/* ---------- SP追従CTA ---------- */
.float-cta { display: none; }
@media (max-width: 768px) {
  .float-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; justify-content: center;
    padding: 1.6rem 0; background: var(--orange); color: #fff;
    font-size: 1.7rem; font-weight: 500; letter-spacing: 0.17rem; line-height: normal;
    transform: translateY(100%); transition: transform .3s;
  }
  .float-cta.is-show { transform: none; }
}
