@charset "UTF-8";

/* ===== Base Styles ===== */
:root {
  --color-primary: #74A801; /* Button green */
  --color-text: #513D20;
  --color-text-light: rgba(81, 61, 32, 0.7); /* #513D20を少し薄くした色 */
  --color-bg: #FCFCFA; /* Warm off-white */
  --color-bg-light: #F6F6F4; /* わずかに色付けするセクション用 */
  --color-border: #E0E0E0;
  
  --font-family-base: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-family-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  
  --layout-width: 1200px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.7;
}

a[href^="tel:"] {
  color: inherit !important;
  text-decoration: none !important;
  -webkit-text-decoration: none !important;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

ul, ol {
  list-style: none;
}

.l-container {
  max-width: var(--layout-width);
  margin: 0 auto;
  padding: 0 40px;
}
.l-container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== Typography ===== */
/* Breadcrumb */
.c-breadcrumb {
  padding: 16px 0;
  font-size: 12px;
  color: var(--color-text-light);
}
.c-breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.c-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-breadcrumb li:not(:last-child)::after {
  content: ">";
  font-size: 10px;
  opacity: 0.5;
}
.c-breadcrumb a {
  transition: opacity 0.3s;
}
.c-breadcrumb a:hover {
  opacity: 0.7;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: #fff;
  padding: 12px 32px;
  border-radius: 40px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  border: 1px solid var(--color-primary);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  text-decoration: none;
}

.c-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 250%;
  padding-bottom: 250%;
  background-color: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.c-btn:hover {
  color: var(--color-primary);
}

.c-btn:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* LINE green button */
.c-btn-line {
  background-color: #06C755;
  border-color: #06C755;
  color: #fff;
}
.c-btn-line:hover {
  color: #06C755 !important;
}

.c-btn--line {
  background-color: transparent;
  color: var(--color-primary);
}

.c-btn--line::before {
  background-color: var(--color-primary);
}

.c-btn--line:hover {
  color: #fff;
}

.c-btn-okune {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  padding: 20px 24px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  background-color: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.c-btn-okune::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 250%;
  padding-bottom: 250%;
  background-color: var(--color-primary);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: -1;
}

.c-btn-okune:hover {
  color: #fff;
  border-color: var(--color-primary);
}

.c-btn-okune:hover::before {
  transform: translate(-50%, -50%) scale(1);
}

/* ===== Header ===== */
.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.l-header__logo-company {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

.l-header__inner {
  height: 80px;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.l-header__logo img {
  width: 171px;
  height: 47px;
  object-fit: contain;
  position: relative;
  top: -4px;
}

.l-header__nav-link {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s;
}

.l-header__nav-link:hover {
  color: var(--color-primary);
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.l-header__nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.l-header__nav-list li:first-child {
  display: none;
}

.l-header__contact {
  display: flex;
  align-items: center;
  gap: 24px;
}
.l-header__sns {
  display: none;
}

.c-hamburger {
  display: none; /* デスクトップでは非表示 */
  position: relative;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 101;
}

@media screen and (max-width: 1260px) {
  .c-hamburger { display: block; }
  .l-header__nav { display: none; }
}

.c-hamburger span {
  display: block;
  position: absolute;
  width: 24px;
  height: 2px;
  left: 8px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.c-hamburger span:nth-child(1) { top: 12px; }
.c-hamburger span:nth-child(2) { top: 19px; }
.c-hamburger span:nth-child(3) { top: 26px; }

/* スマホ用メディアクエリ内での表示切替などは今後の実装に依存しますが、ハンバーガーの基本形を用意しました */


.l-header__tel {
  text-align: center;
  line-height: 1.2;
}

.l-header__tel-number {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.l-header__tel-time {
  font-size: 10px;
  color: var(--color-text-light);
}

main {
  padding-top: 80px;
}

/* ===== Hero Section ===== */
.p-hero {
  position: relative;
  height: calc(100vh - 80px); /* 画面高さ - ヘッダー */
  min-height: 600px;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden; /* スケールではみ出る分を隠す */
}

.p-hero .l-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.p-hero__content {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  position: relative;
  z-index: 2;
}

.p-hero__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.p-hero__text {
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
}

.p-hero__scroll {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-text-light);
  text-transform: uppercase;
}
.p-hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--color-text-light);
  margin-top: 8px;
}

.p-hero__images {
  flex: 0 0 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; /* スケールで隙間も大きくなるため固定値でOK */
  height: 100%;
  /* コンテンツ幅基準の表示を維持しつつ、スケーリングで全体を大きくしてループ感・重複感を軽減。
     左端基点にすることでキャッチコピー領域（左半分）に見切れないように配置 */
  transform: scale(1.4);
  transform-origin: left center;
  z-index: 1;
}

.p-hero__img-col {
  height: 100%;
}

.p-hero__img-col-inner {
  display: flex;
  flex-direction: column;
}

.p-hero__img-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
}

.p-hero__img-col--down .p-hero__img-col-inner {
  animation: scrollDown 60s linear infinite;
  transform: translateY(-50%);
}

.p-hero__img-col--up .p-hero__img-col-inner {
  animation: scrollUp 50s linear infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.p-hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
}

/* ===== Generic Section ===== */
.p-section {
  padding: 120px 0;
}
.p-section--bg {
  background-color: var(--color-bg-light);
}
.p-section__title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: 0.05em;
}
.p-section__text {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 40px;
  line-height: 2;
}

/* ===== Page Hero (共通下層) ===== */
.p-page-hero {
  padding: 100px 0 40px;
  text-align: center;
}
.p-page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.p-page-hero__en {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-page-hero__en img {
  height: 24px;
}
.p-page-hero__title {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.p-page-hero__subtitle {
  display: block;
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  color: var(--color-text-light);
}

/* ===== Media Object ===== */
.p-media {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.p-media:nth-child(even) {
  flex-direction: row-reverse;
}
.p-media__img {
  flex: 0 0 45%;
}
.p-media__img img {
  width: 100%;
  border-radius: 4px;
}
.p-media__content {
  flex: 1;
}
.p-media__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.p-media__text {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 2;
}

/* ===== Table ===== */
.p-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 60px;
  font-size: 15px;
}
.p-table th, .p-table td {
  padding: 24px 0;
  border-bottom: 1px dashed var(--color-border);
  vertical-align: top;
}
.p-table th {
  width: 25%;
  text-align: left;
  font-weight: 500;
}
.p-table td {
  color: var(--color-text-light);
}

/* ===== Step ===== */
.p-step {
  margin-bottom: 40px;
  position: relative;
  padding-left: 60px;
}
.p-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -40px;
  width: 1px;
  background-color: var(--color-primary);
  opacity: 0.3;
}
.p-step:last-child::before {
  display: none;
}
.p-step__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
}
.p-step__num {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.p-step__text {
  font-size: 15px;
  color: var(--color-text-light);
}


/* ===== Forms ===== */
.p-form__row {
  display: flex;
  border-bottom: 1px dashed var(--color-border);
  padding: 32px 0;
}
.p-form__label {
  flex: 0 0 240px;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.p-form__req {
  background-color: var(--color-primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
}
.p-form__input {
  flex: 1;
}
.p-form__input input[type="text"],
.p-form__input input[type="email"],
.p-form__input textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  background-color: #fff;
}
.p-form__input textarea {
  height: 200px;
  resize: vertical;
}
.p-form__submit {
  text-align: center;
  margin-top: 0;
}
.p-contact-form {
  padding: 60px 48px;
}


/* ===== Services Section (TOP) ===== */
.p-services {
  padding: 120px 0;
  position: relative;
}

.p-services__bg-text {
  position: absolute;
  top: 40px;
  left: 0;
  font-size: 160px;
  font-weight: 700;
  color: rgba(0,0,0,0.02);
  line-height: 1;
  letter-spacing: 0.1em;
  z-index: 0;
  pointer-events: none;
  white-space: nowrap;
}

.p-services .l-container {
  position: relative;
  z-index: 1;
}

.p-services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 80px;
}

.p-service-card__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 24px;
  border-radius: 4px;
}

.p-service-card__num {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.p-service-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.p-service-card__title small {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-light);
}

.p-service-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.p-service-card__link {
  font-size: 16px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.p-service-card__link::after {
  content: '→';
  font-family: sans-serif;
}


/* ===== Footer ===== */
.l-footer-cta {
  background-color: transparent;
  padding: 120px 0;
  text-align: center;
}
.l-footer-cta__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-text);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.l-footer-cta__text {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 2;
  margin-bottom: 40px;
}
.l-footer-cta__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.l-footer-cta__tel {
  text-align: center;
}
.l-footer-cta__tel-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0;
  letter-spacing: 0.05em;
  line-height: 1;
}
.l-footer-cta__tel-time {
  font-size: 11px;
  color: var(--color-text-light);
}

.l-footer {
  background-color: var(--color-text);
  color: #fff;
  padding: 60px 0;
  font-size: 16px;
}
.l-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.l-footer__logo img { height: 64px; margin-bottom: 16px; }
.l-footer__info { line-height: 1.8; color: #aaa; }
.l-footer__nav {
  display: flex;
  gap: 32px;
}
.l-footer__nav a {
  color: #fff;
}

/* ===== Floating Consultation Buttons ===== */
.floating-consult {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1000;
}
.floating-consult__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 4px 0 0 4px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}
.floating-consult__btn:hover {
  opacity: 0.85;
}
.floating-consult__btn--line {
  background: #06C755;
  color: #fff;
}
.floating-consult__btn--tel {
  background: #fff;
  color: var(--color-text, #513D20);
  border: 1px solid #e0d6cf;
  border-right: none;
  display: none;
}

@media screen and (max-width: 768px) {
  .floating-consult {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    transform: none;
    flex-direction: row;
    gap: 0;
    width: 100%;
  }
  .floating-consult__btn {
    flex: 1;
    writing-mode: horizontal-tb;
    border-radius: 0;
    padding: 14px 8px;
    font-size: 14px;
    letter-spacing: 0.05em;
  }
  .floating-consult__btn--tel {
    display: flex;
    border: none;
    border-top: 1px solid #e0d6cf;
  }
  .floating-consult__btn--line {
    border-top: 1px solid #06C755;
  }
}

/* ===== Responsive: Header (1290px) ===== */
@media (max-width: 1290px) {
  body.is-menu-open {
    overflow: hidden;
  }

  .l-header__inner {
    padding: 0 20px;
    height: 60px;
  }

  .l-header {
    height: 60px;
    border-bottom: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }

  main {
    padding-top: 60px;
  }

  .l-header__logo img {
    height: 32px;
    width: auto;
  }

  .c-hamburger {
    display: block;
    z-index: 200;
  }
  
  .c-hamburger.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .c-hamburger.is-active span:nth-child(2) {
    opacity: 0;
  }
  .c-hamburger.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .l-header__nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 40px;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 100;
    overflow-y: auto;
  }

  .l-header__nav.is-active {
    transform: translateX(0);
  }
  
  .l-header__nav-list {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .l-header__nav-link {
    font-size: 16px;
    font-weight: 700;
  }

  .l-header__nav-list li:first-child {
    display: list-item;
  }

  .l-header__contact {
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
  }

  .l-header__sns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 8px;
  }
  .l-header__sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: opacity 0.3s;
  }
  .l-header__sns a:hover {
    opacity: 0.7;
  }
  .l-header__sns-instagram {
    background-color: #E1306C;
    color: #fff;
  }
  .l-header__sns-line {
    background-color: #06C755;
    color: #fff;
  }
  
  .l-header__tel-number {
    font-size: 32px !important;
  }
  .l-header__tel-number svg {
    width: 28px;
    height: 28px;
  }
}

/* ===== Responsive: Content (1070px) ===== */
@media (max-width: 1070px) {
  /* スマホ版 H1・H2 のフォントサイズ縮小調整 */
  h1, .p-page-hero__title {
    font-size: 24px !important;
  }
  h2 {
    font-size: 22px !important;
  }

  /* Breadcrumb Mobile */
  .c-breadcrumb {
    font-size: 10px;
    padding: 12px 0;
  }

  /* スマホ対応用ユーティリティクラス（仮想ページ用） */
  .u-sp-flex-col {
    flex-direction: column !important;
    gap: 32px !important;
  }
  .u-sp-flex-col > * {
    flex: none !important;
    width: 100% !important;
  }
  .u-sp-flex-col-reverse {
    flex-direction: column-reverse !important;
    gap: 32px !important;
  }
  .u-sp-flex-col-reverse > * {
    flex: none !important;
    width: 100% !important;
  }
  .u-sp-padding-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }
  table.u-sp-table-block,
  table.u-sp-table-block tbody,
  table.u-sp-table-block tr,
  table.u-sp-table-block th,
  table.u-sp-table-block td {
    display: block !important;
    width: 100% !important;
  }
  table.u-sp-table-block th {
    padding-bottom: 8px !important;
  }
  table.u-sp-table-block td {
    padding-top: 0 !important;
    padding-bottom: 24px !important;
  }
  .u-sp-static {
    position: static !important;
  }
  .u-sp-w-100 {
    width: 100% !important;
    min-width: 0 !important;
  }
  .u-sp-text-center {
    text-align: center !important;
  }
  .u-sp-mb-16 {
    margin-bottom: 16px !important;
  }
  .u-sp-p-16 {
    padding: 16px !important;
  }

  /* Form Mobile */
  .p-contact-form {
    padding: 16px !important;
  }
  .p-form__row {
    flex-direction: column;
    padding: 24px 0;
    margin-bottom: 0 !important;
  }
  .p-form__label {
    flex: none;
    margin-bottom: 12px;
  }

  .l-container {
    padding: 0 20px;
  }

  .l-footer__logo img {
    height: 32px;
    width: auto;
  }

  .p-hero {
    min-height: auto;
    height: auto;
    padding-bottom: 60px;
    overflow: hidden;
  }
  
  .p-hero .l-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .p-hero__images {
    display: contents;
  }

  .p-hero__img-col {
    height: 180px;
    width: 100vw;
    margin-bottom: 0;
  }

  .p-hero__img-col:nth-child(1) { 
    order: 1; 
    margin-bottom: 40px; 
  }
  
  .p-hero__content { 
    order: 2; 
    padding: 0 20px; 
    margin-bottom: 40px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .p-hero__img-col:nth-child(2) { 
    display: none; 
  }
  
  .p-hero__img-col:nth-child(3) { 
    order: 3; 
  }

  .p-hero__content > div {
    align-items: center !important;
  }

  .p-hero__title {
    font-size: 32px;
    margin-bottom: 24px;
  }
  
  .p-hero__text {
    font-size: 14px;
  }

  .p-hero__scroll {
    display: none;
  }

  .p-hero__img-col-inner {
    flex-direction: row;
    width: max-content;
    transform: none !important;
  }
  
  .p-hero__img-group {
    flex-direction: row;
    padding-bottom: 0;
    padding-right: 16px;
    gap: 16px;
  }

  .p-hero__img {
    height: 180px;
    width: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .p-hero__img-col:nth-child(1) .p-hero__img-col-inner {
    animation: scrollRightMobile 40s linear infinite !important;
  }
  
  .p-hero__img-col:nth-child(3) .p-hero__img-col-inner {
    animation: scrollLeftMobile 40s linear infinite !important;
  }
  
  @keyframes scrollRightMobile {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
  }
  
  @keyframes scrollLeftMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }

  .p-services__list {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .p-services > .l-container > div {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .p-services > .l-container > div > div {
    display: grid;
    grid-template-columns: 104px 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas:
      "img num"
      "img h3"
      "img p"
      "img link";
    gap: 2px 16px;
    align-items: start;
  }

  .p-services > .l-container > div > div > img {
    grid-area: img;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
    margin-bottom: 0 !important;
  }

  .p-services > .l-container > div > div > div:nth-child(2) {
    grid-area: num;
    margin-bottom: 0 !important;
    font-size: 14px !important;
  }

  .p-services > .l-container > div > div > h3 {
    grid-area: h3;
    margin-bottom: 4px !important;
    font-size: 18px !important;
  }

  .p-services > .l-container > div > div > p {
    grid-area: p;
    margin-bottom: 8px !important;
    font-size: 12px !important;
  }

  .p-services > .l-container > div > div > div:last-child {
    grid-area: link;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .p-services > .l-container > div > div > div:last-child a {
    font-size: 12px !important;
  }

  .p-media {
    flex-direction: column !important;
    gap: 32px;
  }

  .p-section {
    padding: 60px 0;
  }
  
  .p-section__title {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .l-footer-cta__actions {
    flex-direction: column;
    gap: 24px;
  }

  .l-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
  }

  .l-footer__nav {
    flex-direction: column;
    gap: 16px;
  }

  /* Specific index.html fixes */
  .p-services {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
  }

  .p-services__bg-text {
    font-size: 11vw !important;
    top: 20px !important;
    left: 0 !important;
  }
  
  .p-section.p-section--bg .l-container > div:nth-child(2) {
    font-size: 48px !important;
  }
  
  .p-section.p-section--bg .l-container > div > div {
    flex-direction: column !important;
  }
  
  .p-section.p-section--bg .l-container > div > div > div {
    flex: none !important;
    width: 100% !important;
  }
  
  .p-section.p-section--bg .l-container > div > div .c-btn-okune {
    margin-top: 20px;
  }
  
  .p-section[style*="min-height: 600px;"] {
    flex-direction: column;
    min-height: auto !important;
    padding: 60px 0;
  }
  
  .p-section[style*="min-height: 600px;"] > div:first-child {
    position: relative !important;
    width: 100% !important;
    height: 300px !important;
    margin-bottom: 40px;
  }
  
  .p-section[style*="min-height: 600px;"] .l-container > div {
    width: 100% !important;
    padding-right: 0 !important;
  }
  
  .p-section[style*="min-height: 600px;"] .l-container h2 {
    font-size: 24px !important;
  }
  
  .p-section[style*="min-height: 600px;"] .l-container h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-sm: 12px;
    --font-size-base: 14px;
  }
}
