/* ==========================================================================
   Responsive — トップページ用（style.css ベースの上書き）
   ブレークポイント: 1024px（タブレット） / 768px（スマホ） / 420px（小型）
   ========================================================================== */

/* --------------------------------------------------------------------------
   Utilities — SPのみ（改行・表示切替）
   -------------------------------------------------------------------------- */
br.sp-only {
  display: none;
}

/* --------------------------------------------------------------------------
   Tablet（〜1024px）
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .introduction-group__title {
    font-size: 2rem;
  }

  .top-lineup__cards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .m-product-card {
    width: calc((100% - 3.6rem) / 3);
    box-sizing: border-box;
  }

  .top-voice__list {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 72rem;
    gap: 2.4rem 2rem;
  }

  .top-faq__list,
  .top-voice__lead {
    width: 100%;
    max-width: 72rem;
  }

  .top-quantity__calc,
  .top-feature__points {
    width: 100%;
    max-width: 72rem;
  }

  .contact-form,
  .top-contact__note {
    width: 100%;
    max-width: 64rem;
  }
}

/* --------------------------------------------------------------------------
   Mobile（〜768px）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  br.sp-only {
    display: inline;
  }

  :root {
    --header-cta-bar-offset: 7.2rem;
  }

  .wrapper {
    width: min(100% - 2.4rem, 1200px);
  }

  body {
    padding-bottom: calc(
      var(--header-cta-bar-offset) + env(safe-area-inset-bottom, 0px)
    );
  }

  /* --- Header / FV --- */
  .header {
    padding-top: 1.2rem;
  }

  .header__inner {
    align-items: flex-start;
  }

  .header__brand {
    gap: 0.8rem;
    max-width: calc(100% - 1rem);
  }

  .header__logo {
    width: 4.8rem;
  }

  .header__tagline {
    font-size: 1.1rem;
    line-height: 1.4;
    letter-spacing: 0.04em;
  }

  .header__cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-wrap: nowrap;
    justify-content: stretch;
    gap: 1rem;
    max-width: none;
    margin: 0;
    padding: 1rem 1.2rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    background: rgba(0, 0, 0, 0.78);
    box-shadow: 0 -0.6rem 2.4rem rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(0.6rem);
    -webkit-backdrop-filter: blur(0.6rem);
  }

  .header__cta .m-cta-img-link {
    --m-cta-img-max: 100%;
    flex: 1 1 calc((100% - 1rem) / 2);
    max-width: none;
    min-width: 0;
  }

  .fv {
    height: auto;
    min-height: clamp(38rem, 108vw, 56rem);
  }

  .fv__bg{
    opacity: .7;
  }
  .fv__inner {
    align-items: flex-end;
    width: 100%;
    max-width: none;
    min-height: clamp(38rem, 108vw, 56rem);
    padding-top: clamp(6rem, 18vw, 10rem);
    padding-right: 1.2rem;
    padding-bottom: 3.2rem;
    padding-left: 1.2rem;
  }

  .fv__content {
    width: 100%;
    max-width: none;
  }

  .fv__awards {
    width: 100%;
  }

  .fv__lead {
    margin-bottom: 0.8rem;
    font-size: 4.8vw;
    letter-spacing: 0.04em;
    white-space: normal;
    text-shadow:1px 2px 0 rgba(255, 255, 255, 1);
  }

  .fv__catch {
    font-size: 8.8vw;
    line-height: 1.32;
    letter-spacing: 0.02em;
    text-shadow:1px 2px 0 rgba(255, 255, 255, 1);
  }

  .fv__catch-line1,
  .fv__catch-line2 {
    white-space: normal;
  }

  .fv__catch-line2 > span {
    font-size: 14vw;
    line-height: 1.02;
  }

  .top-other {
    padding: 3.2rem 0;
  }

  .top-other__lead {
    width: 100%;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
  }

  /* --- ラインナップ --- */
  .top-lineup {
    padding: 3.2rem 0 4.8rem;
  }

  .top-lineup__pattern{
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("../img/top/bg-pattern-wave.jpg");
    background-size: 180%;
    opacity: 0.22;
    pointer-events: none;
    background-repeat: repeat;
  }

  .top-lineup__inner {
    --top-lineup-promo-width: 100%;
  }

  .top-lineup__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    margin-bottom: 2.4rem;
  }

  .top-lineup__copy {
    margin: 0 0 0.8rem;
    text-align: left;
    font-size: 1.4rem;
  }

  .m-section-heading__sub {
    font-size: 2rem;
  }

  .m-section-heading__main {
    font-size: clamp(2.6rem, 6.5vw, 3.4rem);
  }

  .m-section-heading--white::before {
    top: -1.6rem;
    left: -0.8rem;
    width: 8rem;
    height: 8rem;
  }

  .m-product-card {
    width: calc((100% - 1rem) / 2);
    box-sizing: border-box;
  }

  .m-product-card__desc {
    font-size: 1rem;
  }

  .top-lineup__cards {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem 1rem;
  }

  .top-lineup__cta {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    margin-top: 3.2rem;
  }

  .top-lineup__cta .m-cta-img-link {
    flex: none;
    width: 80%;
    min-width: 0;
    max-width: 80%;
  }

  .trial-box {
    width: 100%;
    padding: 2.4rem 1.6rem 2.2rem;
    box-sizing: border-box;
  }

  .trial-box__title {
    font-size: 1.8rem;
  }

  .trial-box__text {
    font-size: 1.15rem;
    line-height: 1.75;
  }

  .trial-box__price {
    font-size: 1.25rem;
  }

  .trial-box .m-cta-img-link--trial {
    --m-cta-img-max: 100%;
  }

  /* --- 導入実績 --- */
  .top-introduction {
    padding: 4rem 0 4rem;
  }

  .top-introduction__title {
    width: 100%;
    max-width: 36rem;
    margin-bottom: 2.4rem;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
  }

  .introduction-group__title {
    width: 100%;
    font-size: 1.8rem;
  }

  .top-introduction__groups .m-company-box {
    width: 48%;
    font-size: 1.1rem;
    min-height: 2.8rem;
    padding: 0.5rem 0.6rem 0.7rem;
  }

  /* --- 備蓄準備（重ね画像 → 縦並び） --- */
  .top-preparation {
    padding: 4.8rem 0 3.2rem;
  }

  .top-preparation__title {
    width: 100%;
    max-width: 36rem;
    margin-bottom: 2.4rem;
    font-size: clamp(2.4rem, 5.5vw, 3.2rem);
  }

  .top-preparation__items {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.4rem;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
  }

  .top-preparation__item {
    position: static;
  }

  .top-preparation__item--01,
  .top-preparation__item--02,
  .top-preparation__item--03 {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100%, 40rem);
    max-width: 100%;
    transform: none;
  }

  .top-preparation__item--04 {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(67%, 27rem);
    max-width: 100%;
    transform: none;
  }

  .case-list {
    padding-top: 3.2rem;
  }

  .case-list .case-item + .case-item {
    margin-top: 4.8rem;
  }

  /* --- Case / Point（共通・現状同じ見た目） --- */
  .case-list .case-item__heading,
  .point-item__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .case-list .case-item--02 .case-item__heading {
    align-items: flex-end;
    text-align: right;
  }

  .case-list .case-item--02 .case-item__label {
    order: 1;
    color: #2b2b2b;
  }

  .case-list .case-item--02 .case-item__title {
    order: 2;
  }

  .case-list .case-item--01 .case-item__heading,
  .case-list .case-item--01 .case-item__label,
  .case-list .case-item--01 .case-item__title,
  .case-list .case-item--01 .case-item__text,
  .case-list .case-item--02 .case-item__heading,
  .case-list .case-item--02 .case-item__label,
  .case-list .case-item--02 .case-item__title,
  .case-list .case-item--02 .case-item__text {
    color: #2b2b2b;
  }

  .case-list .case-item__text strong,
  .point-item__text strong,
  .point-item__title strong {
    color: #c51d27;
    text-decoration-color: #c51d27;
  }

  .case-list .case-item__heading::after,
  .point-item__heading::after {
    width: 100%;
    right: 0;
    left: 0;
  }

  .case-list .case-item--02 .case-item__heading::after {
    right: 0;
    left: 0;
  }

  .case-list .case-item__label,
  .point-item__label {
    width: auto;
    min-width: 10rem;
    height: auto;
    padding: 0.6rem 1.4rem;
    font-size: clamp(3rem, 10vw, 4.2rem);
  }

  .point-item__label{
    color: #2b2b2b;
  }

  .case-list .case-item__title,
  .point-item__title {
    font-size: clamp(2.4rem, 5vw, 2.8rem);
  }

  .case-list .case-item__title-strong {
    padding-bottom: 0.35rem;
  }

  .case-list .case-item__title-strong::after {
    bottom: 0.05em;
    left: -2%;
    width: 104%;
    aspect-ratio: 1 / 0.14;
  }

  .case-list .case-item__body,
  .point-item__body {
    flex-direction: column;
    gap: 2rem;
  }

  .case-list .case-item__visual,
  .point-item__visual {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
  }

  .case-list .case-item--01 .case-item__bg,
  .case-list .case-item--02 .case-item__bg {
    bottom: 0;
    width: 34%;
    height: 64%;
  }

  .case-list .case-item--01 .case-item__bg {
    top: auto;
    left: 0;
    right: auto;
  }

  .point-item--01 .point-item__bg {
    top: auto;
    left: 0;
    right: auto;
    bottom: 2.8rem;
    width: 34%;
    height: calc(64% + 2.8rem);
  }

  .case-list .case-item--02 .case-item__bg {
    top: auto;
    right: 0;
    left: auto;
  }

  .case-list .case-item__text,
  .point-item__text {
    font-size: 1.4rem;
    line-height: 1.75;
    text-align: left;
  }

  .point-item__content {
    margin-top: 1.6rem;
  }

  .case-list .case-item__text br,
  .point-item__text br {
    display: none;
  }

  /* --- ハードル --- */
  .top-hurdle {
    padding: 4.8rem 0 4.8rem;
  }

  .top-hurdle__title {
    width: 100%;
    max-width: 36rem;
    margin-bottom: 3.2rem;
    font-size: clamp(2.4rem, 5vw, 3rem);
  }

  .top-hurdle__cards {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .hurdle-card {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: 48rem;
    min-height: 0;
    padding: 2.4rem 2rem 2rem;
    box-sizing: border-box;
  }

  .top-hurdle__message {
    width: 100%;
    margin-top: 4rem;
    padding: 2.4rem 1.6rem 2.8rem;
  }

  .top-hurdle__message-title {
    width: 100%;
    max-width: 36rem;
    margin-bottom: 2rem;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
  }

  .top-hurdle__message-title strong {
    font-size: clamp(2.8rem, 7vw, 3.4rem);
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.08em;
  }

  .top-hurdle__message-box {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .top-hurdle__message-box p {
    font-size: 1.55rem;
  }

  .top-hurdle__next {
    margin-top: 3.2rem;
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    line-height: 1.55;
  }

  .top-hurdle__next-lead::before {
    width: clamp(3.6rem, 12vw, 4.8rem);
    height: clamp(3.6rem, 12vw, 4.8rem);
  }

  /* --- 結論 --- */
  .top-conclusion {
    padding: 0rem 0 4rem;
  }

  .top-conclusion__label {
    width: min(10rem, 32vw);
    margin-bottom: 1.6rem;
  }

  .top-conclusion__title {
    margin-bottom: 3.2rem;
    font-size: clamp(2.4rem, 5.5vw, 3.2rem);
  }

  .top-conclusion__lead {
    margin-top: 4rem;
    padding-left: 0;
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    line-height: 1.55;
  }

  .top-conclusion__lead::before {
    position: static;
    display: block;
    width: 7.2rem;
    height: 7.2rem;
    margin: 0 auto 1.2rem;
    transform: none;
  }

  /* --- 新提案 --- */
  .top-new-food {
    padding: 4rem 0 6rem;
  }

  .top-new-food__title {
    margin-bottom: 4rem;
    padding-left: 4rem;
    font-size: clamp(2.4rem, 5.5vw, 3.2rem);
  }

  .top-new-food__title::before {
    left: 0;
    width: 5.6rem;
    height: 5.6rem;
  }

  .top-new-food__items {
    gap: 4.8rem;
  }

  .new-food-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .new-food-item__visual {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
  }

  .new-food-item__visual img {
    width: 100%;
    height: auto;
  }

  .new-food-item__visual--double {
    min-height: 0;
  }

  .new-food-item__box {
    width: 100%;
    margin-left: 0;
    margin-top: 1.6rem;
    min-height: 0;
    padding: 3.2rem 1.6rem 2.8rem;
    box-sizing: border-box;
  }

  .new-food-item__title {
    margin-bottom: 1.6rem;
    font-size: clamp(2.4rem, 5vw, 2.8rem);
  }

  .new-food-item__lead {
    margin-bottom: 0.4rem;
    font-size: 1.75rem;
  }

  .new-food-item__text {
    font-size: 1.55rem;
  }

  .new-food-item__visual--double {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .new-food-item__main-img,
  .new-food-item__sub-img {
    width: 100%;
    max-width: none;
  }

  .new-food-item__sub-img {
    position: static;
    display: block;
    margin: 0;
    box-shadow: 0.3rem 0.3rem 0.8rem rgba(0, 0, 0, 0.2);
  }

  /* --- 特徴 --- */
  .top-feature {
    padding: 4rem 0 5.6rem;
  }

  .top-feature__title {
    margin-bottom: 3.2rem;
    padding-left: 4.2rem;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
  }

  .top-feature__title::before {
    left: 0;
    width: 6rem;
    height: 6rem;
  }

  .top-feature__compare {
    width: 100%;
    margin-bottom: 3.2rem;
  }

  .top-feature__points {
    width: 100%;
  }

  /* --- 実績・数量 --- */
  .top-result {
    padding: 4.8rem 0 4rem;
  }

  .top-result__title,
  .top-quantity__title {
    padding-left: 4.2rem;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
  }

  .top-result__title::before,
  .top-quantity__title::before {
    left: 0;
    width: 6.4rem;
    height: 6.4rem;
  }

  .top-result__lead {
    margin: 3.2rem 0 1.6rem;
    padding: 0 0.4rem;
    font-size: 1.5rem;
    text-align: left;
  }

  .top-result__lead br {
    display: none;
  }

  .result-item,
  .result-item--02 {
    flex-direction: column;
    gap: 0;
  }

  .result-item__photo {
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
  }

  .result-item__box {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .result-item__heading {
    width: min(100%, 48rem);
    margin-bottom: 0;
    padding: 1rem 1.2rem;
    font-size: clamp(2rem, 4.5vw, 2.6rem);
    box-sizing: border-box;
  }

  .result-item__body {
    padding: 2.8rem 1.6rem 2.4rem;
  }

  .result-item__body p {
    font-size: 1.45rem;
  }

  .top-quantity {
    padding: 2.4rem 0 5.6rem;
  }

  .top-quantity__lead {
    margin: 2.4rem 0 2.4rem;
    padding: 0 0.4rem;
    font-size: 1.5rem;
    text-align: left;
  }

  .top-quantity__calc {
    width: 100%;
  }

  /* --- お客様の声 --- */
  .top-voice {
    padding: 4rem 0 5.6rem;
  }

  .top-voice__lead {
    width: 100%;
    margin-bottom: 4rem;
  }

  .top-voice__lead-title {
    font-size: clamp(2.4rem, 5vw, 3rem);
  }

  .top-voice__lead-text {
    font-size: 1.35rem;
    text-align: left;
  }

  .top-voice__lead-text br {
    display: none;
  }

  .top-voice__title {
    margin-bottom: 3.2rem;
    padding-left: 4.2rem;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
  }

  .top-voice__title::before {
    left: 0;
    width: 6.4rem;
    height: 6.4rem;
  }

  .top-voice__title::after {
    width: min(100%, 24rem);
    right: 0;
  }

  .top-voice__list {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 2rem 1.2rem;
  }

  /* --- FAQ --- */
  .top-faq {
    padding: 4rem 0 5.6rem;
  }

  .top-faq__title {
    margin-bottom: 3.2rem;
    padding-left: 4.2rem;
    font-size: clamp(2.4rem, 5vw, 3.2rem);
  }

  .top-faq__title::before {
    left: 0;
    width: 6.4rem;
    height: 6.4rem;
  }

  .top-faq__title::after {
    width: min(100%, 16rem);
    right: 0;
  }

  .top-faq__list {
    width: 100%;
  }

  .faq-item + .faq-item {
    margin-top: 2.8rem;
  }

  .faq-item__question {
    display: block;
    padding-left: 4.8rem;
    padding-bottom: 0.8rem;
    font-size: 1.65rem;
    line-height: 1.5;
  }

  .faq-item__question span {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 3.6rem;
    line-height: 1;
  }

  .faq-item__question::after {
    right: 0;
    left: 4.8rem;
    width: auto;
  }

  .faq-item__answer {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 2rem 1.4rem;
  }

  .faq-item__answer span {
    flex-shrink: 0;
    font-size: 3.6rem;
    line-height: 1;
  }

  .faq-item__answer p {
    flex: 1;
    min-width: 0;
    font-size: 1.4rem;
    line-height: 1.85;
  }

  /* --- お問い合わせ --- */
  .top-contact {
    padding: 4rem 0 5.6rem;
  }

  .top-contact__head {
    margin-bottom: 3.2rem;
  }

  .top-contact__label {
    font-size: 1.5rem;
  }

  .top-contact__title {
    font-size: clamp(2.2rem, 5vw, 2.8rem);
  }

  .contact-form {
    width: 100%;
  }

  .contact-form__row + .contact-form__row {
    margin-top: 2rem;
  }

  .contact-form__label {
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea {
    font-size: 1.4rem;
  }

  .contact-form__input,
  .contact-form__select {
    height: 4.4rem;
    padding: 0 1.2rem;
  }

  .contact-form__textarea {
    height: 11rem;
    padding: 1.2rem;
  }

  .contact-form__select-wrap::after {
    font-size: 1.2rem;
    right: 1.2rem;
  }

  .contact-form__policy {
    margin-top: 2.4rem;
  }

  .contact-form__policy-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }

  .contact-form__policy-scroll {
    max-height: 14rem;
    padding: 1.2rem 1.4rem;
    font-size: 1.2rem;
    line-height: 1.7;
  }

  .contact-form__policy-heading {
    margin-top: 1.2rem;
    font-size: 1.25rem;
  }

  .contact-form__privacy {
    margin-top: 1.2rem;
  }

  .contact-form__privacy span {
    font-size: 1.25rem;
  }

  .contact-form__button {
    min-width: 0;
    width: min(100%, 32rem);
    max-width: 100%;
    min-height: 4rem;
    padding: 0.7rem 3rem;
    font-size: 1.5rem;
    box-sizing: border-box;
  }

  .top-contact__note {
    width: 100%;
    margin-top: 4rem;
    font-size: 1.2rem;
  }

  .top-contact__company {
    text-align: left;
  }

  /* --- Footer --- */
  .site-footer {
    padding: 3.2rem 0 3.2rem;
  }

  .site-footer__main {
    padding-bottom: 2.4rem;
  }

  .site-footer__contact-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .site-footer__tagline {
    font-size: 1.15rem;
  }

  .site-footer__logo {
    height: 3.4rem;
  }

  /* --- m-cta-btn（モジュールのメディアクエリをここへ集約） --- */
  .m-cta-btn {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    min-height: 4.4rem;
    padding: 0.7rem 1.2rem;
  }

  .m-cta-btn__sub {
    display: none;
  }

  .m-cta-btn__main {
    font-size: 1.2rem;
  }

  .m-cta-btn__arrow {
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
  }

  .m-cta-btn--tel .m-cta-btn__main {
    font-size: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   小型端末（〜420px）
   -------------------------------------------------------------------------- */
@media (max-width: 420px) {
  .top-lineup__cards .m-product-card {
    width: calc((100% - 1rem) / 2);
    max-width: none;
    margin-inline: 0;
  }

  .top-voice__list {
    gap: 1.6rem 1rem;
  }
}
