/*
 * Standard customer design palettes.
 * Layout is based on the Aquaring project; only reusable color roles live here.
 * Missing/invalid application values are normalized to sunny by PHP.
 */
:root,
[data-design-palette="sunny"] {
  --trf-primary: #9f6900;
  --trf-primary-soft: #fff3cc;
  --trf-primary-shadow: rgba(159, 105, 0, .30);
  --trf-secondary: #b85c3e;
  --trf-secondary-dark: #7a3826;
  --trf-secondary-soft: #f3c7a7;
}

/* Aquaring project source colors, retained as an explicit selectable reference. */
[data-design-palette="aquaring"] {
  --trf-primary: #f2635f;
  --trf-primary-soft: #fff1f1;
  --trf-primary-shadow: rgba(242, 99, 95, .35);
  --trf-secondary: #f08d00;
  --trf-secondary-dark: #8a5100;
  --trf-secondary-soft: #f9cc80;
  --color_main: #f2635f;
  --color_text: #211715;
  --color_link: #f2635f;
  --color_htag: #f2635f;
  --color_main_thin: rgba(255, 124, 119, .05);
  --color_main_dark: rgba(182, 74, 71, 1);
}

[data-design-palette="coral"] {
  --trf-primary: #cc4743;
  --trf-primary-soft: #fff1f1;
  --trf-primary-shadow: rgba(204, 71, 67, .35);
  --trf-secondary: #c86d00;
  --trf-secondary-dark: #7a4100;
  --trf-secondary-soft: #f3c47c;
}

[data-design-palette="green"] {
  --trf-primary: #2f7668;
  --trf-primary-soft: #eaf4f1;
  --trf-primary-shadow: rgba(47, 118, 104, .35);
  --trf-secondary: #b76500;
  --trf-secondary-dark: #704000;
  --trf-secondary-soft: #e8c58e;
}

/* Existing utility roles used by both the WordPress theme and Cake catalog. */
.u-text-ac1 { color: var(--trf-primary) !important; }
.u-text-ac2 { color: var(--trf-secondary) !important; }
.u-bg-ac1 { background-color: var(--trf-primary) !important; }
.u-bg-ac2 { background-color: var(--trf-secondary) !important; }
.u-bg-ac3 { background-color: var(--trf-primary-soft) !important; }

/* Company-wide surfaces that are images or neutral colors remain unchanged. */
a:not([class]) { color: var(--trf-secondary); }
a:not([class]):hover,
a:not([class]):focus { color: var(--trf-secondary-dark); }
.swiper-pagination-bullet-active { background: var(--trf-secondary) !important; }

/* Demo-only fallbacks use the existing human-designed page rhythm and disappear when real customer data exists. */
.trf-demo-page { padding-top: 48px; padding-bottom: 80px; }
.trf-demo-notice { border-left: 5px solid var(--trf-primary); background: var(--trf-primary-soft); padding: 14px 18px; margin: 0 auto 42px; line-height: 1.7; }
.trf-demo-lead { padding: 10px 0 52px; border-bottom: 1px solid #ddd4c7; }
.trf-demo-kicker { color: var(--trf-primary); font-weight: 700; margin-bottom: 12px; }
.trf-demo-lead h2 { font-size: clamp(27px, 4vw, 42px); line-height: 1.45; margin-bottom: 22px; }
.trf-demo-lead > p:last-child { max-width: 720px; line-height: 2; }
.trf-demo-section { padding: 52px 0; border-bottom: 1px solid #ddd4c7; }
.trf-demo-section > h2 { font-size: 28px; margin-bottom: 30px; }
.trf-company-table > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); border-top: 1px solid #ddd4c7; }
.trf-company-table > div:last-child { border-bottom: 1px solid #ddd4c7; }
.trf-company-table dt, .trf-company-table dd { padding: 18px 20px; }
.trf-company-table dt { background: var(--trf-primary-soft); font-weight: 700; }
.trf-photo-steps { list-style: none; margin: 0; padding: 0; }
.trf-photo-steps li { display: flex; gap: 22px; align-items: center; padding: 22px 0; border-top: 1px solid #ddd4c7; }
.trf-photo-steps li:last-child { border-bottom: 1px solid #ddd4c7; }
.trf-photo-steps b { color: var(--trf-primary); font-size: 32px; width: 40px; }
.trf-photo-steps strong, .trf-photo-steps span { display: block; }
.trf-photo-steps span { margin-top: 5px; color: #655f59; }
.trf-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.trf-photo-grid figure { margin: 0; border-bottom: 3px solid var(--trf-secondary); background: #fff; }
.trf-photo-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f7f4ef; }
.trf-photo-grid figcaption { padding: 14px 10px; font-weight: 700; text-align: center; }
.trf-demo-contact { padding: 42px; margin-top: 52px; color: #fff; background: var(--trf-primary); text-align: center; }
.trf-demo-contact h2 { font-size: 24px; margin-bottom: 12px; }
.trf-demo-contact__links { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.trf-demo-contact__links a { display: inline-block; min-width: 190px; padding: 13px 22px; color: var(--trf-primary); background: #fff; font-weight: 700; text-decoration: none; }
.trf-demo-work .wo-card__link { cursor: default; }
.trf-reference-page > .post_content { padding-right: 16px; padding-left: 16px; }

@media (max-width: 767px) {
  .trf-demo-page { padding-top: 28px; padding-bottom: 50px; }
  .trf-demo-notice { margin-bottom: 30px; }
  .trf-demo-lead { padding-bottom: 36px; }
  .trf-demo-section { padding: 38px 0; }
  .trf-demo-section > h2 { font-size: 23px; }
  .trf-company-table > div { grid-template-columns: 105px minmax(0, 1fr); }
  .trf-company-table dt, .trf-company-table dd { padding: 14px 12px; }
  .trf-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .trf-demo-contact { padding: 30px 20px; }
  .trf-demo-contact__links { flex-direction: column; }
  .trf-demo-contact__links a { width: 100%; }
}

/* Keep the proven theme layout; only correct tenant-variable content that exceeds its original assumptions. */
@media (min-width: 768px) {
  .l-header__logo,
  .l-header__logo img {
    width: 190px;
    max-width: 190px;
    height: auto;
  }

  .tp-category__price.--numeric {
    display: grid;
    grid-template-columns: 22px 76px 51px;
    align-items: center;
    column-gap: 1px;
    width: 151px;
  }

  .tp-category__price.--numeric .tp-category__komi {
    width: 22px;
  }

  .tp-category__price.--numeric .u-text-ac5 {
    min-width: 0;
    font-size: 23px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
  }

  .tp-category__price.--numeric .tp-category__en {
    font-size: 10px;
    line-height: 1.3;
  }

  .tp-category__price.--digits-7 .u-text-ac5 {
    font-size: 19px;
  }

  .l-header__bottom > .l-header__tel {
    width: 228px;
    min-height: 65px;
    font-size: 22px;
  }

  .l-header__bottom > .l-header__tel img {
    width: 42px;
    height: 42px;
  }
}

.trf-brand-name,
.trf-text-logo {
  color: var(--trf-primary);
  font-weight: 700;
  letter-spacing: .04em;
}

.trf-brand-name {
  display: block;
  font-size: 20px;
  line-height: 1.3;
}

.trf-text-logo {
  font-size: 24px;
}

.l-footer__logo.trf-text-logo {
  width: auto;
  white-space: nowrap;
}

/* Aquaring reference: keep the original phone hierarchy instead of a bare number. */
.trf-header-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #211715;
  line-height: 1.05;
  text-decoration: none;
}

.trf-header-tel > img {
  flex: 0 0 auto;
}

.trf-header-tel__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
}

.trf-header-tel__body strong {
  color: #211715;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .01em;
}

.trf-header-tel__body small {
  color: #898989;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}

.trf-fixed-line.c-fixedBtn2 {
  z-index: 10;
}

@media (max-width: 767px) {
  .l-header__top > .l-header__logo {
    order: 0;
    width: auto;
    max-width: 145px;
    margin-right: auto;
    text-align: left;
  }

  .l-header__top .trf-brand-name {
    width: auto;
    max-width: 145px;
    font-size: 16px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .l-header__top > .trf-header-tel {
    order: 0;
    width: auto;
    gap: 4px;
    margin-right: 48px;
  }

  .l-header__top > .trf-header-tel img {
    width: 22px;
    margin-right: 0;
  }

  .trf-header-tel__body strong {
    font-size: 14px;
  }

  .trf-header-tel__body small {
    display: none;
  }

  .pr-recommend__list .swiper-wrapper {
    transition-duration: 0s !important;
  }

  .trf-fixed-line.c-fixedBtn2 {
    justify-content: flex-end;
  }

  .trf-fixed-line.c-fixedBtn2 > a.c-fixedBtn__btn {
    width: 22.3% !important;
    margin-left: auto;
  }
}
