/*
 * BAX SERVICE PAGE — DESIGN MASTER CSS
 * Master: レシピ開発ページ ver10
 *
 * 運用ルール
 * 1. ページごとに変更できるのは文章・画像・項目数だけ。
 * 2. このファイルの数値、色、書体、比率、余白は変更しない。
 * 3. ページ固有CSS、style属性、追加のレイアウト指定は禁止。
 * 4. 項目を減らす場合は .service-feature / .flow-item を要素ごと削除する。
 */

:root {
  --bax-content-max: 1040px;
  --bax-body-max: 932px;
  --bax-page-gutter: 40px;
  --bax-content-inset: 54px;
  --bax-section-space: 70px;
  --bax-heading-gap: 34px;

  --bax-text: #1d1b1a;
  --bax-text-sub: #55514e;
  --bax-red: #c62032;
  --bax-purple: #6f287d;
  --bax-flow-bg: #f4f2ef;
  --bax-price-bg: #f2efeb;
  --bax-footer-bg: #151515;
  --bax-white: #fff;
  --bax-rule: #ddd9d5;

  --bax-body-size: 15px;
  --bax-body-leading: 1.9;
  --bax-heading-size: 30px;
  --bax-heading-leading: 1.55;

  --bax-font-gothic: "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  --bax-font-mincho: "Noto Serif JP", "Hiragino Mincho ProN",
    "Yu Mincho", "YuMincho", serif;

  /* レシピ開発ページの画像枠。全項目で共通。 */
  --bax-feature-image-ratio: 49 / 33;
}

.service-page {
  width: 100%;
  max-width: var(--bax-content-max);
  min-height: 100vh;
  margin-inline: auto;
  overflow: hidden;
  color: var(--bax-text);
  background: var(--bax-white);
}

.service-container {
  width: min(calc(100% - (var(--bax-page-gutter) * 2)), var(--bax-content-max));
  margin-inline: auto;
}

.service-body {
  width: min(calc(100% - (var(--bax-page-gutter) * 2)), var(--bax-body-max));
  margin-inline: auto;
}

/* ---------- HERO：3分割固定 ---------- */
.service-hero {
  position: relative;
  max-width: var(--bax-content-max);
  margin-inline: auto;
}

.service-hero__images {
  display: grid;
  grid-template-columns: 63.7% 36.3%;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 1112 / 500;
}

.service-hero__image {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.service-hero__image:first-child {
  grid-row: 1 / 3;
}

.service-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero__card {
  position: absolute;
  left: 5.4%;
  bottom: -80px;
  width: 48.6%;
  min-height: 220px;
  padding: 28px 28px 28px 36px;
  background: var(--bax-white);
}

.service-hero__card::before {
  position: absolute;
  top: 15px;
  bottom: 20px;
  left: 0;
  width: 4px;
  content: "";
  background: var(--bax-red);
}

.service-hero__label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 400;
}

.service-hero__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: var(--bax-font-gothic);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}

.service-hero__title-en {
  font-size: 18px;
  font-weight: 400;
}

.service-hero__catch {
  margin: 22px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
}

/* ---------- INTRO ---------- */

.service-intro {
  padding: 75px var(--bax-content-inset) 35px;
  text-align: center;
}

.service-intro__title,
.section-heading {
  margin: 0 0 var(--bax-heading-gap);
  font-family: var(--bax-font-mincho);
  font-size: 30px;
  font-weight: 700;
  line-height: var(--bax-heading-leading);
}

.service-intro__text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
}

/* ---------- FEATURE：画像寸法・比率・交互配置固定 ---------- */

.service-features {
  padding-block: 0 var(--bax-section-space);
}

.service-feature {
  display: grid;
  grid-template-columns: 58.8% 41.2%;
  align-items: center;
  min-height: 440px;
}

.service-feature:nth-child(even) {
  grid-template-columns: 41.2% 58.8%;
}

.service-feature:nth-child(even) .service-feature__image {
  grid-column: 2;
  grid-row: 1;
}

.service-feature:nth-child(even) .service-feature__content {
  grid-column: 1;
  grid-row: 1;
}

.service-feature__image {
  aspect-ratio: var(--bax-feature-image-ratio);
  overflow: hidden;
}

.service-feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-feature__content {
  position: relative;
  align-self: center;
  padding: 30px 48px 30px 62px;
}

.service-feature:nth-child(even) .service-feature__content {
  padding-right: 62px;
  padding-left: 48px;
}

.service-feature__content::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 24px;
  width: 4px;
  content: "";
  background: var(--bax-red);
}

.service-feature:nth-child(even) .service-feature__content::before {
  right: auto;
  left: 10px;
}

.service-feature__number,
.service-feature__en {
  margin: 0;
  color: var(--bax-red);
  font-family: var(--bax-font-mincho);
  font-weight: 400;
  line-height: 1.15;
}

.service-feature__number {
  font-size: 50px;
}

.service-feature__en {
  margin-top: 2px;
  font-size: 32px;
}

.service-feature__title {
  margin: 18px 0 0;
  font-family: var(--bax-font-mincho);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
}

.service-feature__text {
  margin: 24px 0 0;
  color: var(--bax-text-sub);
  font-size: var(--15px);
  line-height:1.9;
}

/* ---------- FLOW ---------- */

.service-flow {
  padding: var(--bax-section-space) 0;
  background: var(--bax-white);
}

.service-flow__eyebrow,
.service-price__eyebrow {
  margin: 0 0 24px;
  color: var(--bax-red);
  font-family: var(--bax-font-mincho);
  font-size: 11px;
  line-height: 1.4;
}

.service-flow__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--bax-content-inset);
  align-items: start;
  margin-bottom: 54px;
}

.service-flow__title {
  margin: 0;
  font-family: var(--bax-font-mincho);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.55;
}

.service-flow__lead {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.9;
}

.service-flow__list {
  position: relative;
  display: grid;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-flow__list::before {
  position: absolute;
  top: 52px;
  bottom: 52px;
  left: 20px;
  width: 4px;
  content: "";
  background: var(--bax-red);
}

.flow-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 40px;
  align-items: center;
}

.flow-item__number {
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--bax-white);
  background: var(--bax-red);
  border-radius: 50%;
  font-family: var(--bax-font-gothic);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.flow-item__box {
  min-height: 105px;
  padding: 25px 35px;
  background: var(--bax-flow-bg);
  border-radius: 4px;
}

.flow-item__title {
  margin: 0;
  font-family: var(--bax-font-mincho);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
}

.flow-item__text {
  margin: 8px 0 0;
  color: var(--bax-text-sub);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- PRICE ---------- */

.service-price {
  padding: var(--bax-section-space) 0;
  background: var(--bax-price-bg);
}

.service-price__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 32px;
}

.service-price__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bax-white);
  border-top: 3px solid var(--bax-red);
}

.service-price__column {
  min-height: 280px;
  padding: 34px 40px;
}

.service-price__column + .service-price__column {
  border-left: 1px solid var(--bax-rule);
}

.service-price__title {
  margin: 0;
  font-family: var(--bax-font-mincho);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}

.service-price__value {
  margin: 20px 0 0;
  font-family: var(--bax-font-gothic);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.service-price__column hr {
  margin: 34px 0 26px;
  border: 0;
  border-top: 1px solid var(--bax-rule);
}

.service-price__amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 20px 0 0;
  font-family: var(--bax-font-gothic);
  line-height: 1;
  white-space: nowrap;
}

.service-price__number {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.service-price__unit {
  font-size: 15px;
  font-weight: 400;
}

.service-price__text {
  margin: 28px 0 0;
  color: var(--bax-text-sub);
  font-size: 13px;
  line-height: 1.9;
}










.price-heading {
  position: relative;
  padding: 0 0 28px 28px;
  border-left: 4px solid #b40000;
  border-bottom: 1px solid #d7d1cd;
}
.price-heading > p{
	margin-bottom: 12px;
    color: #b40000;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .13em;
}
.price-heading h2 {
    margin-bottom: 10px;
    font-size: 31px;
    line-height: 1.55;
	font-weight:600;
	font-family:"Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.price-card {
  position: relative;
  min-height: 285px;
  padding: 62px 34px 24px;
  border: 1px solid #cfc7c2;
  background: #fff;
}

.price-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34px;
  background: #292929;
  border-top: 4px solid #b40000;
}

.price-card::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 52px;
  width: 5px;
  height: 145px;
  background: #b40000;
}

.price-card--accent::before {
  background: #b40000;
}

.price-card > p {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 7px;
  margin: 0;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
}

.price-card h3 {
  min-height: 48px;
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 1.55;
	font-weight:600;
	font-family:"Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 14px;
  color: #b40000;
  white-space: nowrap;
}

.price-value strong {
  font-family: Georgia, serif;
  font-size: 47px;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1;
}

.price-value span {
  font-size: 17px;
}

.price-card b,
.price-card small {
  display: block;
}

.price-card b {
  margin-bottom: 13px;
    color: var(--bax-text);
    font-family: var(--bax-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}

.price-card small {
	margin: 0;
    color: #403b38;
    font-family: var(--bax-sans);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}


/* ---------- FAQ ---------- */

.service-faq {
    background: var(--bax-white);
    height: auto;
    min-height: 401px;
    padding-bottom: 80px;
    padding: 45px 54px 80px;
    border-top: 1px solid #e6e1dd;
}

.service-faq__title {
  margin: 0 0 30px;
  font-family: var(--bax-font-mincho);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
	text-align:center;
}

.service-faq__subtitle {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.6;
	text-align:center;
	color:#b40000;
	font-weight:600;
	font-family:"Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

.faq-item {
  border-top: 1px solid var(--bax-rule);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--bax-rule);
}

.faq-item__button {
  display: grid;
  grid-template-columns: 26px 1fr 20px;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 55px;
  margin: 0;
  padding: 0 8px;
  color: #403b38;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
  cursor: pointer;
}

.faq-item__button::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-item__plus {
  transform: rotate(45deg);
}

.faq-item__q {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: #b40000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
	margin-right: 24px;
    color: #b40000;
    font-family: Georgia, serif;
}

.faq-item__plus {
  color:#b40000;
  font-size: 16px;
  line-height: 1;
  text-align: center;
	font-weight:600;
}

.faq-item__answer {
  padding: 0 72px 28px;
  color: var(--bax-text-sub);
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- CTA ---------- */

.service-cta {
  position: relative;
  min-height: 285px;
  color: var(--bax-white);
  background-position: center;
  background-size: cover;
}

.service-cta::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgb(168 18 121 / 76%);
}

.service-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: center;
  min-height: 285px;
}

.service-cta__title {
  margin: 0;
  color: var(--bax-white);
  font-family: var(--bax-font-mincho);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.55;
}

.service-cta__button {
  display: grid;
  min-height: 80px;
  place-items: center;
  padding: 20px 36px;
  color: var(--bax-purple);
  background: var(--bax-white);
  font-family: var(--bax-font-gothic);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

/* ---------- FOOTER ---------- */

.service-footer {
  padding: 56px 0 48px;
  color: var(--bax-white);
  background: var(--bax-footer-bg);
}

.service-footer__inner {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 42px;
}

.service-footer__heading {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 700;
}

.service-footer__text,
.service-footer__link {
  display: block;
  margin: 0 0 7px;
  color: rgb(255 255 255 / 72%);
  font-size: 11px;
  line-height: 1.75;
}

/* ---------- MOBILE：構造を変えず縮小・1列化 ---------- */

@media (max-width: 767px) {
  :root {
    --bax-page-gutter: 20px;
    --bax-content-inset: 0px;
    --bax-section-space: 56px;
    --bax-heading-gap: 24px;
    --bax-body-size: 14px;
    --bax-heading-size: 25px;
  }

  .service-hero__images {
    aspect-ratio: 750 / 520;
  }

  .site-header {
    height: 58px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    height: 58px;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__contact {
    height: 58px;
    padding-inline: 16px;
  }

  .service-hero__card {
    position: relative;
    left: auto;
    bottom: auto;
    width: calc(100% - 40px);
    min-height: 0;
    margin: -54px 20px 0;
    padding: 22px 20px 24px 28px;
  }

  .service-hero__title {
    gap: 8px;
    font-size: 34px;
  }

  .service-hero__title-en {
    font-size: 14px;
  }

  .service-intro {
    padding-top: 32px;
  }

  /* PC用の固定改行は、スマホでは自然な行送りに戻す。 */
  .service-intro__text br {
    display: none;
  }

  .service-feature,
  .service-feature:nth-child(even) {
    display: flex;
    min-height: 0;
    flex-direction: column;
    margin-bottom: 48px;
  }

  .service-feature__image,
  .service-feature:nth-child(even) .service-feature__image {
    order: 1;
    width: 100%;
  }

  .service-feature__content,
  .service-feature:nth-child(even) .service-feature__content {
    order: 2;
    width: 100%;
    padding: 26px 22px 0 34px;
  }

  .service-feature__content::before,
  .service-feature:nth-child(even) .service-feature__content::before {
    top: 28px;
    bottom: 0;
    left: 12px;
  }

  .service-feature__number {
    font-size: 40px;
  }

  .service-feature__en {
    font-size: 26px;
  }

  .service-feature__title {
    font-size: 20px;
  }

  .service-flow__header,
  .service-price__panel,
  .service-cta__inner,
  .service-footer__inner {
    grid-template-columns: 1fr;
  }

  .service-flow__header {
    gap: 20px;
    margin-bottom: 40px;
  }

  .service-flow__title {
    font-size: 28px;
  }

  .service-flow__list::before {
    left: 17px;
  }

  .flow-item {
    grid-template-columns: 34px 1fr;
    gap: 16px;
  }

  .flow-item__number {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .flow-item__box {
    min-height: 0;
    padding: 20px;
  }

  .service-price__column {
    min-height: 0;
    padding: 28px 24px;
  }

  .service-price__column + .service-price__column {
    border-top: 1px solid var(--bax-rule);
    border-left: 0;
  }

  .service-price__number {
    font-size: 42px;
  }

  .faq-item__button {
    grid-template-columns: 22px 1fr 16px;
    gap: 12px;
    min-height: 70px;
    font-size: 13px;
  }

  .faq-item__answer {
    padding: 0 42px 24px;
  }

  .service-cta__inner {
    gap: 30px;
    min-height: 0;
    padding-block: 48px;
  }

  .service-cta__title {
    font-size: 25px;
  }

  .service-cta__button {
    min-height: 70px;
    font-size: 14px;
  }

  .service-footer__inner {
    gap: 28px;
  }
}
