/*================================================================
  Responsive (Tablet)
================================================================*/
@media (max-width: 992px) {
  .section-title {
    font-size: var(--text-2xl);
  }

  .hero-title {
    font-size: var(--text-3xl);
  }

  .hero-lead {
    font-size: var(--text-md);
  }

  .about-grid,
  .access-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .about-grid img {
    margin-bottom: var(--space-md);
  }

  .catch {
    font-size: var(--text-xl);
  }

  /* Process grid - 2 columns on tablet */
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step::after {
    display: none;
  }

  .promise-title {
    font-size: var(--text-2xl);
  }
}

/*================================================================
  Responsive (Mobile)
================================================================*/
@media (max-width: 768px) {

  /* --- Navbar --- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Start off-screen */
    width: 80%;
    height: 100vh;
    /* Slightly transparent white background */
    background: rgba(255, 255, 255, 0.9);
    flex-direction: column;
    padding-top: 80px;
    transition: right 0.5s ease;
    align-items: center;
  }

  #nav-toggle:checked~.nav-menu {
    right: 0;
  }

  /* Reduce spacing between items in hamburger menu */
  .nav-menu li {
    margin: 5px 0;
  }

  /* Reduce padding and line-height inside links */
  .nav-menu a {
    display: block;
    padding: 6px 0;
    line-height: 1.2;
  }

  .icon-burger {
    display: block;
    position: relative;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    /* Above navbar */
  }

  .icon-burger span,
  .icon-burger span::before,
  .icon-burger span::after {
    content: '';
    display: block;
    background: var(--text-color);
    height: 3px;
    width: 100%;
    position: absolute;
    transition: all 0.3s ease;
  }

  .icon-burger span {
    top: 50%;
    transform: translateY(-50%);
  }

  .icon-burger span::before {
    top: -10px;
  }

  .icon-burger span::after {
    top: 10px;
  }

  #nav-toggle:checked~.icon-burger span {
    background: transparent;
  }

  #nav-toggle:checked~.icon-burger span::before {
    transform: rotate(45deg);
    top: 0;
  }

  #nav-toggle:checked~.icon-burger span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* --- Sections (tighter spacing) --- */
  .section {
    padding: 32px 0;
  }

  .container {
    width: 92%;
    padding: 0 12px;
  }

  .section-title {
    font-size: var(--text-2xl);
  }

  .section-sub {
    margin-bottom: 12px;
  }

  .hero {
    height: auto;
    padding-top: 60px;
  }

  .hero-image-pair {
    gap: 8px;
    padding: 0 12px;
  }

  .hero-image-pair img {
    height: 200px;
    width: calc(50% - 4px);
    border-radius: var(--radius-md);
  }

  .hero-title-above {
    font-size: 1.3rem;
    padding: 48px 0 10px;
    letter-spacing: 0.08em;
  }

  .hero-text-area {
    padding: var(--space-sm) var(--space-sm) var(--space-md);
  }

  .hero-inner {
    padding: var(--space-md);
    margin: 0 var(--space-sm);
  }

  .hero-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
  }

  .hero-lead {
    font-size: var(--text-md);
    margin-bottom: var(--space-sm);
    line-height: 1.8;
  }

  /* Smaller catch phrase on mobile */
  .catch {
    font-size: var(--text-xl);
  }

  .main-catchphrase .catch {
    font-size: var(--text-xl);
  }

  .scroll-hint,
  .case-scroll-hint,
  .diet-scroll-hint {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    padding-right: 4px;
  }

  .scroll-hint-text {
    font-size: 0.7rem;
    color: #a0a8b0;
    letter-spacing: 0.05em;
    animation: scroll-hint-fade 2.5s ease-in-out infinite;
  }

  @keyframes scroll-hint-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
  }

  .card-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .card-grid .card {
    flex: 0 0 75%;
    min-width: 240px;
    scroll-snap-align: center;
    padding: 12px 12px;
  }

  /* ===================== Text left-align (non-headings) ===================== */
  .section-lead-text,
  .split-text,
  .problem-list,
  .features-note,
  .features-note p,
  .diet-summary,
  .diet-summary p,
  .diet-intro,
  .causes-conclusion,
  .process-footer,
  .trial-body p,
  .trial-closing,
  .target-closing,
  .reassurance-item p,
  .reassurance-item h4,
  .case-study-intro,
  .intro-body p,
  .section-split-layout .split-text,
  .section-split-layout .split-text p {
    text-align: left;
  }

  /* ===================== Before & After horizontal slider ===================== */
  .case-card-slider {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .case-card-slider .case-card {
    flex: 0 0 88%;
    min-width: 300px;
    scroll-snap-align: center;
    margin: 0;
    max-width: none;
  }

  /* ===================== Diet cards 2-column grid ===================== */
  .diet-card-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-bottom: 0;
  }

  .diet-card-grid .diet-card {
    min-width: unset;
  }

  /* ===================== Features Flow — horizontal on mobile ===================== */
  .features-flow {
    flex-direction: row !important;
    gap: 8px;
    margin: var(--space-md) auto;
    flex-wrap: nowrap;
  }

  .flow-arrow {
    transform: none !important;
    font-size: 0.8rem;
  }

  .flow-step {
    padding: var(--space-sm) 8px;
    flex: 1;
    min-width: 0;
  }

  .flow-step h4 {
    font-size: var(--text-sm);
  }

  .flow-step p {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .flow-icon {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  /* ===================== Process grid & images ===================== */
  .process-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .process-step {
    padding: var(--space-sm);
    border-bottom: none;
  }

  .process-step-image {
    height: 120px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
  }




  .concerns-lead {
    font-size: var(--text-md);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* ===================== Case Study Cards responsive ===================== */
  .case-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
  }

  .case-card-meta {
    flex-wrap: wrap;
    gap: 6px;
  }

  .case-card-meta li {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .case-card-photos {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: var(--space-sm);
  }

  .case-photo-pair {
    gap: var(--space-xs);
  }

  .case-card-data {
    padding: var(--space-sm);
  }

  .case-data-table {
    font-size: var(--text-xs);
  }

  .case-data-table th,
  .case-data-table td {
    padding: 8px 6px;
  }

  .staff-card {
    flex-direction: column;
    text-align: left;
  }

  .staff-card img {
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    max-width: 500px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer .logo {
    margin-bottom: 20px;
  }

  .sns li:first-child {
    margin-left: 0;
  }

  /* ===================== Testimonials slider ===================== */
  .testimonial-grid-full {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
  }

  .testimonial-card {
    flex: 0 0 80%;
    scroll-snap-align: center;
    max-width: 80%;
    position: relative;
    cursor: pointer;
  }

  /* Collapse long content */
  .testimonial-card .testimonial-qa {
    max-height: 160px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  /* Fade gradient + "タップで続きを読む" overlay — on card, not inside overflowed qa */
  .testimonial-card::after {
    content: "タップで続きを読む ▼";
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0 4px;
    font-size: 0.7rem;
    color: #8a9aa0;
    letter-spacing: 0.08em;
    background: linear-gradient(transparent, rgba(255,255,255,1) 40%);
    margin-top: -30px;
    position: relative;
    z-index: 1;
  }

  .testimonial-card.expanded .testimonial-qa {
    max-height: none;
  }

  .testimonial-card.expanded::after {
    display: none;
  }

  /* Removed Gallery horizontal scroll as it is managed by animation CSS */
  /* ===================== Service horizontal scroll ===================== */
  .service-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .service-card {
    flex: 0 0 85%;
    min-width: 280px;
    scroll-snap-align: center;
  }

  /* Force service images to have uniform size */
  .service-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 5px !important;
  }

  /* Swipe hint text */
  .swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
  }

  .swipe-hint i {
    animation: swipe-nudge 2s ease-in-out infinite;
  }

  @keyframes swipe-nudge {

    0%,
    100% {
      transform: translateX(0);
    }

    25% {
      transform: translateX(6px);
    }

    75% {
      transform: translateX(-6px);
    }
  }

  /* Scroll dot indicator */
  .scroll-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: var(--space-sm) 0;
  }

  .scroll-indicator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.3s ease;
  }

  .scroll-indicator .dot.active {
    background: var(--text-color);
    transform: scale(1.3);
  }

  /* Force strength images to be circular and centered */
  .feature-icon {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .strength-image {
    width: 150px !important;
    height: 150px !important;
    max-width: 150px !important;
    max-height: 150px !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 auto 20px auto !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .section-heading-serif {
    font-size: var(--text-xl);
    line-height: 1.7;
    margin-bottom: 10px;
  }

  .section-lead-text {
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
  }

  /* Hero adjustments */
  .hero-title {
    font-size: 1.3rem;
    line-height: 1.7;
  }

  .hero-eyebrow {
    font-size: var(--text-xs);
    margin-bottom: var(--space-sm);
  }

  .hero-sub {
    font-size: var(--text-xs);
    line-height: 1.9;
  }

  .hero-sub-accent {
    font-size: var(--text-xs);
  }

  .sp-only {
    display: inline;
  }

  .problem-list {
    padding: 8px var(--space-sm);
  }

  .problem-list p {
    font-size: var(--text-sm);
    padding-left: var(--space-sm);
    padding-top: 4px;
    padding-bottom: 4px;
    line-height: 1.6;
  }

  .problem-bridge {
    font-size: var(--text-md);
  }

  .problem-conclusion {
    font-size: var(--text-md);
    margin-top: var(--space-sm);
  }

  /* Term Notes */
  .term-notes {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .term-note-inline {
    flex-direction: column;
    gap: 4px;
  }

  .term-label {
    white-space: normal;
  }

  /* Diet Cards - handled by horizontal slider above */
  /* Features Flow - handled by horizontal layout above */

  .diet-card {
    padding: var(--space-md);
  }

  /* Reassurance */
  .reassurance-list {
    padding: var(--space-sm) var(--space-md);
  }

  /* Process */
  .process-icon {
    font-size: 1.4rem;
  }

  .process-footer {
    font-size: var(--text-sm);
  }

  /* Target */
  .target-list li {
    font-size: var(--text-sm);
  }

  /* Trial */
  .trial-body p {
    font-size: var(--text-sm);
  }

  .trial-closing {
    font-size: var(--text-md);
  }

  /* Mid CTA */
  .mid-cta {
    padding: var(--space-md) 0;
  }

  .mid-cta-inner p {
    font-size: var(--text-sm);
  }

  .section-problem .problem-content {
    margin-bottom: var(--space-sm);
  }

  .section-problem .problem-body {
    margin-bottom: 0;
  }

  /* Section Image Layouts */
  .section-split-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .section-split-layout .split-image {
    order: -1;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }

  .section-split-layout .split-text {
    text-align: left;
  }

  .section-image-accent {
    max-width: 100%;
    margin: var(--space-md) auto;
  }

  .section-image-accent.accent-narrow {
    max-width: 300px;
  }

  .diet-support-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .diet-support-showcase .showcase-image {
    max-width: 280px;
    margin: 0 auto;
  }

  .diet-support-showcase .showcase-text {
    padding: var(--space-sm);
    text-align: left;
  }

  .section-inline-image {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 auto var(--space-md);
    display: block;
  }

  /* Causes grid - 2col on mobile */
  .causes-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .cause-item {
    padding: var(--space-sm);
  }

  /* Reassurance grid - 2col on mobile */
  .reassurance-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .reassurance-item {
    padding: var(--space-sm);
  }

  /* Diet card image height on mobile */
  .diet-card-image {
    height: 140px;
  }

  .mid-cta {
    padding: 10px 0;
  }

  .mid-cta-inner p {
    font-size: var(--text-sm);
    margin-bottom: 8px;
  }

  .sub-nav-banner {
    padding: 8px 0;
  }

  .sub-nav-banner a {
    font-size: var(--text-xs);
  }

  .link-card-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .link-card {
    padding: var(--space-md);
  }

  /* Tighter causes section (override) */
  .causes-grid {
    gap: 10px;
  }

  .cause-item {
    padding: 10px;
  }

  .cause-image {
    height: 100px;
  }

  .cause-item h4 {
    font-size: var(--text-sm);
    margin-bottom: 2px;
  }

  .cause-item p {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  /* ===================== FAQ heading size ===================== */
  .faq-item h4 {
    font-size: 0.9rem;
  }

  /* Tighter reassurance (override) */
  .reassurance-grid {
    gap: 10px;
  }

  .reassurance-item {
    padding: 12px 10px;
  }

  .reassurance-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .reassurance-item h4 {
    font-size: var(--text-sm);
    margin-bottom: 4px;
  }

  .reassurance-item p {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  /* Process section tighter */
  .process-number {
    font-size: var(--text-xl);
  }

  .process-step h4 {
    font-size: var(--text-sm);
    margin-bottom: 4px;
  }

  .process-step p {
    font-size: 0.75rem;
    line-height: 1.7;
  }

  .process-icon {
    display: none;
  }

  /* Price cards tighter */
  .card {
    padding: var(--space-md) var(--space-sm);
  }

  .card .price {
    font-size: var(--text-2xl);
    margin-bottom: 4px;
  }

  .card h4 {
    font-size: var(--text-md);
    margin-bottom: 6px;
  }

  .recommend-badge {
    font-size: 0.65rem;
    padding: 4px 12px;
    margin-bottom: 6px;
  }

  /* ビフォーアフター コンパクト化 */
  .case-card {
    margin: 0 auto var(--space-sm);
  }

  .case-card-slider {
    gap: 10px;
  }

  .case-card-slider .case-card {
    flex: 0 0 90%;
  }

  .case-card-header {
    padding: 8px 12px;
  }

  .case-card-name {
    font-size: var(--text-md);
  }

  .case-study-intro {
    margin-bottom: var(--space-sm);
  }

  /* 栄養カードコンパクト */
  .diet-card {
    padding: 10px;
  }

  .diet-card h4 {
    font-size: var(--text-md);
    margin-bottom: 2px;
  }

  .diet-card-sub {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .diet-card-image {
    height: 100px;
    margin-bottom: 6px;
  }

  .diet-card p:last-child {
    font-size: 0.7rem;
    line-height: 1.5;
  }

  .diet-intro {
    margin-bottom: var(--space-sm);
  }

  .diet-summary {
    margin-top: var(--space-sm);
    padding: 0 var(--space-sm);
  }

  /* diet scroll hint hidden (now 2-col grid) */
  .diet-scroll-hint {
    display: none;
  }

  /* セクションサブ間隔 */
  .section-sub + .card-grid,
  .price-tier-label {
    margin-top: var(--space-sm);
  }

  .tab-container {
    margin-top: var(--space-md);
  }

  .tab-btn {
    font-size: 0.7rem;
    padding: 8px 10px;
    min-width: 70px;
  }

  .tab-content {
    padding: var(--space-sm);
  }

  /* Contact Form - Mobile */
  .form-radio-group,
  .form-checkbox-group {
    flex-direction: column;
    gap: 6px;
  }

  .form-radio,
  .form-checkbox {
    padding: 10px 14px;
    font-size: var(--text-sm);
  }

  .form-notice p br {
    display: none;
  }

  .form-info-list dd br {
    display: none;
  }

  .form-submit-area .btn-primary {
    width: 100%;
    min-width: unset;
  }

  /* Floating CTA - mobile: horizontal, left of back-to-top */
  .floating-cta {
    bottom: 24px;
    right: 72px;
    width: auto;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    line-height: 1;
    letter-spacing: 0.05em;
  }

  .floating-cta span br {
    display: none;
  }

  .back-to-top {
    bottom: 24px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}