/* =========================================================
   Apex Fresh — TOP B案（CHAPTER 構成）
   ========================================================= */
:root {
  --bg: #fbf7ef;
  --ink: #3a2a26;
  --maroon: #4b1a1a;
  --accent: #e8650f;   /* 装飾（線） */
  --orange: #c8520a;   /* ボタン地・白文字とのコントラスト4.5以上 */
  --orange-d: #a8430a;
  --orange-t: #b4470a; /* 地色の上の文字 */
  --green: #194126;
  --line: rgba(75, 26, 26, .2);
  --header-h: 88px;
  --container: 1200px;
  --gutter: 40px;
  --font: "Shippori Mincho B1", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: .08em;
  background: var(--bg);
  overflow-x: clip;
  word-break: auto-phrase;
  line-break: strict;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }
.reg { font-size: .62em; vertical-align: .55em; margin-left: .04em; letter-spacing: 0; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- arrow / buttons ---------- */
.arw { flex: none; width: 20px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .25s; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.1em; min-height: 50px; padding: 0 1.8em; font-size: 16px; font-weight: 600; letter-spacing: .1em; line-height: 1.3; transition: background-color .25s, color .25s, border-color .25s; }
.btn:hover .arw { transform: translateX(4px); }
.btn--fill { color: #fff; background: var(--orange); border-radius: 2px; }
.btn--fill:hover { background: var(--orange-d); }
.btn--line { color: var(--orange-t); background: #fff; border: 1px solid #e3a676; border-radius: 2px; }
.btn--line:hover { border-color: var(--orange); background: #fff8f1; }
.btn--lg { min-height: 64px; min-width: 370px; font-size: 17px; }
.btn--lg .arw { margin-left: auto; }
.btn--lg .ico + * , .btn--lg .ico { }
.btn--pill { min-height: 62px; min-width: 380px; padding: 0 2em; color: var(--orange-t); background: rgba(255,255,255,.6); border: 1px solid #e8a77a; border-radius: 999px; }
.btn--pill:hover { background: #fff; border-color: var(--orange); }
.ico { width: 1.3em; height: 1.3em; flex: none; }
.circle-arw { position: relative; flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--accent); border-radius: 50%; color: var(--orange-t); transition: background-color .25s, color .25s; }
.circle-arw::after { content: ""; width: 20px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h18M14 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.circle-arw--white { border-color: #fff; color: #fff; }

/* ---------- label（CHAPTER 01 など） ---------- */
.label { display: flex; align-items: center; justify-content: center; gap: 18px; color: #6b5550; font-size: 14px; letter-spacing: .24em; line-height: 1.4; }
.label::before, .label::after { content: ""; width: 72px; height: 1px; background: #9c8a84; }

/* =========================================================
   header
   ========================================================= */
.header { position: sticky; top: 0; z-index: 50; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251,247,239,.95); backdrop-filter: blur(6px); box-shadow: 0 1px 0 rgba(75,26,26,.06); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: 1440px; margin-inline: auto; padding-inline: 48px; }
.header__logo { flex: none; width: 180px; }
.gnav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.gnav__list { display: flex; align-items: center; }
.gnav__link { position: relative; display: block; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--maroon); white-space: nowrap; }
.gnav__link::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 1px; background: var(--accent); transform: translateX(-50%); transition: width .25s; }
.gnav__link:hover::after { width: calc(100% - 24px); }
.gnav__tel { display: flex; flex-direction: column; line-height: 1.3; text-align: right; }
.tel { font-size: 17px; font-weight: 700; letter-spacing: .04em; color: var(--maroon); white-space: nowrap; }
.tel__hours { font-size: 12px; white-space: nowrap; }
.gnav__cta { min-height: 50px; padding: 0 1.4em; font-size: 14px; white-space: nowrap; }
.menu-btn { display: none; }

/* =========================================================
   FV
   ========================================================= */
.fv__photo { position: relative; height: clamp(260px, min(40vw, calc(100svh - var(--header-h) - 360px)), 640px); background: #120d0a; }
.fv__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 55%; }
.fv__vcopy { position: absolute; top: 12%; right: 7%; writing-mode: vertical-rl; color: #fff; font-size: clamp(18px, 1.9vw, 28px); font-weight: 600; letter-spacing: .32em; line-height: 1.75; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.fv__body { padding: 44px var(--gutter) 0; text-align: center; }
.fv__title { color: var(--maroon); font-size: clamp(28px, 3.7vw, 54px); font-weight: 700; letter-spacing: .1em; line-height: 1.4; }
.fv__lead { margin-top: 22px; font-size: 17px; line-height: 2; }
.fv__btns { display: flex; justify-content: center; gap: 24px; margin-top: 30px; }

/* =========================================================
   CHAPTER
   ========================================================= */
.chapter { padding: 110px 0 0; text-align: center; }
.chapter__title { margin-top: 14px; color: var(--maroon); font-size: clamp(36px, 4vw, 58px); font-weight: 700; letter-spacing: .14em; line-height: 1.3; }
.chapter__title--en { letter-spacing: .06em; font-weight: 600; }
.chapter__catch { margin-top: 18px; color: var(--maroon); font-size: clamp(19px, 1.9vw, 27px); font-weight: 700; letter-spacing: .14em; line-height: 1.6; }
.chapter__text { margin-top: 16px; font-size: 17px; line-height: 2; }
.chapter__img { margin: 36px 0 32px; overflow: hidden; }
.chapter__img img { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; transition: transform 1.2s ease; }
.chapter__img--tall img { aspect-ratio: 2.55 / 1; }
.chapter:hover .chapter__img img { transform: scale(1.02); }

.chapter--card .chapter__catch { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; }
.card { display: grid; grid-template-columns: 58% 1fr auto; align-items: center; gap: 32px; margin-top: 36px; padding-right: 40px; text-align: left; background: rgba(255,255,255,.55); border: 1px solid rgba(75,26,26,.1); transition: box-shadow .3s, background-color .3s; }
.card:hover { background: #fff; box-shadow: 0 14px 30px -20px rgba(75,26,26,.45); }
.card:hover .circle-arw { color: #fff; background: var(--orange); border-color: var(--orange); }
.card__img { align-self: stretch; overflow: hidden; }
.card__img img { width: 100%; height: 100%; aspect-ratio: 2.8 / 1; object-fit: cover; }
.card__text { font-size: 17px; line-height: 1.9; }
.card--narrow { max-width: 860px; margin-inline: auto; grid-template-columns: 42% 1fr auto; background: transparent; border-width: 1px 0; }
.card--narrow .card__img img { aspect-ratio: 2.6 / 1; object-position: 30% 50%; }
.chapter--news { padding-bottom: 100px; }

/* =========================================================
   お問い合わせ
   ========================================================= */
.contact { position: relative; isolation: isolate; color: #fff; background: var(--green); overflow: hidden; }
.contact::before, .contact::after { content: ""; position: absolute; top: 50%; z-index: -1; width: clamp(140px, 17vw, 260px); aspect-ratio: 4 / 5; background: url(../img/b-leaf.webp) center / cover no-repeat; transform: translateY(-50%); opacity: .9; }
.contact::before { left: 0; }
.contact::after { right: 0; transform: translateY(-50%) scaleX(-1); }
.contact__link { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px var(--gutter) 64px; text-align: center; }
.contact__catch { font-size: 17px; letter-spacing: .16em; }
.contact__title { display: inline-flex; align-items: center; gap: 28px; font-size: clamp(32px, 3.3vw, 48px); font-weight: 600; letter-spacing: .16em; line-height: 1.4; }
.contact__sub { font-size: 17px; letter-spacing: .12em; }
.contact__link:hover .circle-arw { color: var(--green); background: #fff; }

/* =========================================================
   footer
   ========================================================= */
.footer { padding: 44px 0 24px; }
.footer__inner { display: flex; align-items: center; gap: 40px; }
.footer__logo { flex: none; width: 170px; padding-right: 40px; border-right: 1px solid var(--line); box-sizing: content-box; }
.fnav__list { display: flex; flex-wrap: wrap; row-gap: 6px; }
.fnav__list li + li::before { content: "|"; margin: 0 18px; color: rgba(75,26,26,.35); }
.fnav__list a { font-size: 15px; color: var(--maroon); }
.fnav__list a:hover { color: var(--orange-d); }
.footer__company { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 1.4em; margin-top: 22px; padding-inline: 20px; font-style: normal; font-size: 14px; line-height: 1.7; text-align: center; }
.footer__company strong { font-weight: 700; }
.footer__company a { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { margin-top: 26px; text-align: center; font-size: 13px; color: #6b5550; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1439px) {
  .header__inner { padding-inline: 28px; }
  .header__logo { width: 160px; }
  .gnav { gap: 14px; }
  .gnav__link { padding-inline: 8px; font-size: 13px; }
  .tel { font-size: 15px; }
  .gnav__cta { padding: 0 1em; font-size: 13px; }
}

@media (max-width: 1279px) {
  :root { --header-h: 76px; }
  .menu-btn { display: grid; place-content: center; gap: 6px; flex: none; width: 54px; height: 54px; margin-left: auto; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
  .menu-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .gnav { position: fixed; inset: var(--header-h) 0 0; z-index: 49; flex-direction: column; align-items: stretch; gap: 20px; margin: 0; padding: 20px 24px 40px; overflow-y: auto; background: var(--bg); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s, visibility .3s; }
  .gnav.is-open { visibility: visible; opacity: 1; transform: none; }
  .gnav__list { flex-direction: column; align-items: stretch; }
  .gnav__list li { border-bottom: 1px solid var(--line); }
  .gnav__link { padding: 16px 4px; font-size: 17px; }
  .gnav__link::after { display: none; }
  .gnav__tel { align-items: center; text-align: center; padding: 14px; border: 1px solid var(--line); background: #fff; }
  .tel { font-size: 24px; }
  .tel__hours { font-size: 14px; }
  .gnav__cta { min-height: 58px; font-size: 17px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 28px; }
  .chapter { padding-top: 88px; }
  .card { grid-template-columns: 50% 1fr auto; gap: 22px; padding-right: 24px; }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; --gutter: 20px; }
  body { font-size: 16px; }
  .header__inner { padding-inline: 16px; }
  .header__logo { width: 140px; }
  .menu-btn { width: 48px; height: 48px; }

  .fv__photo { height: clamp(200px, 58vw, 340px); }
  .fv__photo img { object-position: 38% 55%; }
  .fv__vcopy { top: 10%; right: 5%; font-size: clamp(15px, 4.6vw, 20px); letter-spacing: .24em; }
  .fv__body { padding-top: 30px; }
  .fv__title { font-size: clamp(19px, 6vw, 32px); letter-spacing: .02em; }
  .fv__lead { margin-top: 16px; font-size: 16px; line-height: 1.95; letter-spacing: .04em; }
  .fv__lead br { display: none; }
  .fv__btns { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
  .btn--lg { width: 100%; min-width: 0; max-width: 400px; min-height: 58px; font-size: 16px; }
  .btn--pill { width: 100%; min-width: 0; max-width: 360px; min-height: 56px; padding: 0 1.2em; gap: .8em; font-size: 16px; letter-spacing: .04em; }

  .label { gap: 12px; font-size: 13px; }
  .label::before, .label::after { width: 48px; }
  .chapter { padding-top: 64px; }
  .chapter__title { font-size: clamp(30px, 9vw, 40px); }
  .chapter__title--en { font-size: clamp(26px, 7.6vw, 36px); }
  .chapter__catch { margin-top: 10px; font-size: clamp(17px, 5vw, 20px); letter-spacing: .08em; }
  .chapter__text { margin-top: 10px; font-size: 16px; }
  .chapter__img { margin: 22px 0 22px; }
  .chapter__img img { aspect-ratio: 3.4 / 1; }
  .chapter__img--tall img { aspect-ratio: 2.2 / 1; }

  .card, .card--narrow { grid-template-columns: 1fr auto; gap: 14px 12px; margin-top: 22px; padding: 0 0 16px; background: transparent; border: 0; }
  .card__img { grid-column: 1 / -1; }
  .card__img img { aspect-ratio: 3.2 / 1; }
  .card--narrow .card__img img { aspect-ratio: 3.6 / 1; }
  .card__text { padding-left: 4px; font-size: 16px; }
  .circle-arw { width: 48px; height: 48px; }
  .chapter--news { padding-bottom: 64px; }

  .contact::before, .contact::after { width: 34vw; opacity: .55; }
  .contact__link { padding: 44px var(--gutter) 48px; gap: 6px; }
  .contact__catch, .contact__sub { font-size: 15px; letter-spacing: .03em; }
  .contact__title { gap: 16px; font-size: clamp(26px, 7.6vw, 34px); }

  .footer__inner { flex-direction: column; gap: 20px; }
  .footer__logo { width: 160px; padding: 0; border: 0; }
  .fnav__list { justify-content: center; gap: 2px 22px; }
  .fnav__list li + li::before { display: none; }
  .fnav__list a { display: inline-block; padding: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
