/* ============================================================
   philosophy.css — SAクリニックの考え方ページ
   ============================================================ */

.philosophy-page {
  background-color: var(--color-white);
}

.philosophy-hero {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  background-color: var(--color-brand);
}

.philosophy-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.08) 0 0) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.philosophy-hero__inner {
  position: relative;
  padding-block: clamp(2rem, 4vw, 4.5rem);
}

.philosophy-hero__content {
  position: relative;
  overflow: hidden;
  min-height: clamp(30rem, 55vw, 42rem);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-xl);
  background-color: rgb(255 255 255 / 0.07);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.26);
}

.philosophy-hero__text {
  position: absolute;
  inset-block-end: clamp(1.5rem, 4vw, 4rem);
  inset-inline-start: clamp(1.25rem, 4vw, 4rem);
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  align-content: start;
  max-width: min(36rem, calc(100% - 2.5rem));
}

.philosophy-hero .section-head__en {
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.34);
  border-radius: var(--radius-full);
  background-color: rgb(255 255 255 / 0.08);
  justify-content: flex-start;
  margin-block-end: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--color-white);
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.16);
}

.philosophy-hero .section-head__en img {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.philosophy-hero__title {
  margin-block-start: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 4.6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: var(--color-white);
  text-shadow: 0 2px 16px rgb(0 0 0 / 0.28);
}

.philosophy-hero__lead {
  padding-block-start: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.7;
  color: rgb(255 255 255 / 0.88);
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.24);
}

.philosophy-hero__figure {
  position: absolute;
  inset: 0;
  overflow: hidden;
  margin: 0;
}

.philosophy-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.philosophy-section--alt {
  background-color: var(--color-bg-band);
}

.philosophy-section--lead {
  padding-block-start: 3.75rem;
  padding-block-end: 0;
}

.philosophy-lead {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.philosophy-lead__masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2vw, 1.75rem);
}

.philosophy-lead__deco {
  flex-shrink: 0;
  width: clamp(6.25rem, 10vw, 8.75rem);
  height: auto;
  transform: scaleX(-1);
}

.philosophy-lead__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.75rem, 3vw, 2.25rem) clamp(1.25rem, 2.6vw, 2.5rem);
  border: 6px solid var(--color-white);
  border-radius: var(--radius-xl);
  background-color: var(--color-bg-light);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.philosophy-section__head--lead {
  width: auto;
}

.philosophy-section__head--lead .section-head__en {
  justify-content: center;
}

.philosophy-section__head--lead .section-head__ja {
  margin-inline: auto;
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  line-height: 1.35;
}

.philosophy-section__head--lead .section-head__ja br {
  display: none;
}

.philosophy-section__head--lead .section-head__ja::after {
  width: min(6.25rem, 30%);
}

.philosophy-lead__title-break {
  white-space: nowrap;
}

.philosophy-lead__copy {
  display: grid;
  gap: var(--space-4);
  max-width: 58rem;
  font-size: var(--text-lg);
  line-height: 2;
  text-align: center;
}

.philosophy-lead__copy p {
  margin: 0;
}

.philosophy-metaphor__icon {
  flex-shrink: 0;
  width: clamp(3.5rem, 6vw, 5rem);
  aspect-ratio: 1;
}

.philosophy-metaphor__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.philosophy-section--metaphor {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgb(var(--color-brand-rgb) / 0.05) 0%, rgb(var(--color-white-rgb) / 0.98) 18%, var(--color-bg-light) 100%);
}

.philosophy-section--metaphor::before {
  content: "";
  position: absolute;
  inset: 1.5rem 0 0;
  background: radial-gradient(circle at 50% 0, rgb(var(--color-brand-rgb) / 0.08), transparent 58%);
  pointer-events: none;
}

.philosophy-section--metaphor .philosophy-section__stack {
  position: relative;
  z-index: 1;
  gap: var(--space-6);
}

.philosophy-section__head .section-head__en {
  justify-content: flex-start;
}

.philosophy-section__head .section-head__ja {
  position: relative;
  width: fit-content;
  max-width: 100%;
  padding-block-end: 0.85rem;
  font-size: var(--text-3xl);
  line-height: 1.45;
}

.philosophy-section__head .section-head__ja::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: min(6.5rem, 38%);
  height: 3px;
  border-radius: var(--radius-full);
  background-color: var(--color-brand-light);
}

.philosophy-section__head--metaphor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  border: 1px solid rgb(139 69 19 / 0.16);
  border-radius: var(--radius-xl);
  background-color: var(--color-white);
  box-shadow: 0 10px 24px rgb(139 69 19 / 0.05);
  text-align: center;
}

.philosophy-section__head--metaphor .section-head__en {
  justify-content: center;
  color: rgb(139 69 19 / 0.88);
}

.philosophy-section__heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.875rem, 1.6vw, 1.25rem);
  width: 100%;
}

.philosophy-section__head--metaphor .section-head__ja {
  margin-block-end: 0;
}

.philosophy-section__head--metaphor .section-head__ja::after {
  width: min(7.5rem, 55%);
  background-color: rgb(139 69 19 / 0.38);
}

.philosophy-panel {
  position: relative;
  padding: clamp(1.25rem, 1.8vw, 2rem);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.philosophy-panel--wide {
  width: 100%;
}

.philosophy-copy {
  display: grid;
  gap: var(--space-4);
  color: var(--color-ink);
}

.philosophy-copy p {
  margin: 0;
  line-height: 1.9;
}

.philosophy-copy strong {
  font-weight: 900;
}

.philosophy-copy--columns {
  max-width: none;
  column-count: 2;
  column-gap: 1.5rem;
}

.philosophy-copy--columns p {
  break-inside: avoid;
  margin-block-end: var(--space-3);
}

.philosophy-copy--columns p:last-child {
  margin-block-end: 0;
}

.philosophy-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 var(--space-4);
  padding: 1rem;
  border: 1px solid rgb(139 69 19 / 0.18);
  border-radius: var(--radius-lg);
  background-color: rgb(139 69 19 / 0.055);
}

.philosophy-checklist li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 2.75rem;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  box-shadow: 0 1px 0 rgb(var(--color-brand-rgb) / 0.04);
  font-weight: 700;
  line-height: 1.7;
}

.philosophy-checklist li::before {
  content: "";
  position: absolute;
  inset-block-start: 1.1rem;
  inset-inline-start: 1rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 1.5px solid var(--color-brand-mid);
  border-radius: 50%;
  box-sizing: border-box;
}

.philosophy-checklist li::after {
  content: "";
  position: absolute;
  inset-block-start: 1.55rem;
  inset-inline-start: 1.5rem;
  width: 0.28rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--color-brand-mid);
  border-bottom: 1.5px solid var(--color-brand-mid);
  transform: rotate(45deg) translate(-1px, -1px);
}

.philosophy-media {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
}

.philosophy-media--reverse .philosophy-media__figure {
  order: 2;
}

.philosophy-media__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background-color: var(--color-bg-light);
  box-shadow: var(--shadow-image);
  aspect-ratio: 3 / 2;
}

.philosophy-media__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.philosophy-text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-block-start: var(--space-5);
  font-weight: 900;
  color: var(--color-brand);
}

.philosophy-text-link::after {
  content: "";
  width: 1.15em;
  height: 1.15em;
  background: url("../images/icons/icon__arrow--right.svg") center / contain no-repeat;
}

.philosophy-compare {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.philosophy-compare__notice {
  display: none;
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.7;
  color: var(--color-brand);
}

.philosophy-compare__table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
}

.philosophy-compare__table th,
.philosophy-compare__table td {
  padding: 1rem;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.philosophy-compare__table thead th {
  background-color: var(--color-brand);
  color: var(--color-white);
  font-weight: 900;
}

.philosophy-compare__table tbody th {
  width: 9rem;
  background-color: var(--color-bg-light);
  color: var(--color-brand);
  font-weight: 900;
}

.philosophy-compare__table tbody td:last-child {
  background-color: rgb(var(--color-brand-rgb) / 0.06);
}

.philosophy-compare__sa {
  font-weight: 700;
}

.philosophy-network {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: var(--space-6);
  align-items: center;
  margin: 0;
  margin-inline: auto;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.philosophy-network > img {
  order: 2;
  width: 100%;
  height: auto;
}

.philosophy-network figcaption {
  order: 1;
  display: grid;
  gap: var(--space-5);
}

.philosophy-network__center {
  width: fit-content;
  margin: 0;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  background-color: var(--color-brand);
  color: var(--color-white);
  font-size: var(--text-lg);
  font-weight: 900;
}

.philosophy-network__labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.philosophy-network__labels li {
  padding: var(--space-3);
  border-inline-start: 3px solid var(--color-brand-mid);
  border-radius: var(--radius-sm);
  background-color: rgb(var(--color-brand-rgb) / 0.06);
  font-size: var(--text-sm);
  font-weight: 900;
  line-height: 1.5;
}

/* D-4: 樹・芽・根による「設計された治療」 */
.philosophy-treatment-design {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--space-6);
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding-block-start: 6.25rem;
  padding-block-end: var(--space-6);
}

.philosophy-treatment-design::before {
  content: '';
  position: absolute;
  inset: 4.25rem 0 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--color-brand-light) 0%, var(--color-bg-light) 92.31%, var(--color-white) 100%);
  clip-path: polygon(0 clamp(100px, 11vw, 160px), 100% 0, 100% 100%, 0 100%);
}

.philosophy-treatment-design::after {
  content: '';
  position: absolute;
  inset-block-start: var(--plant-line-top, var(--space-6));
  inset-block-end: var(--plant-line-bottom, var(--space-6));
  inset-inline-start: calc(50% - 0.5px);
  z-index: 0;
  width: 1px;
  background-color: var(--color-brand);
  pointer-events: none;
}

.philosophy-treatment-design__title-wrap {
  position: relative;
  z-index: 10;
  width: fit-content;
  margin-block-end: 6rem;
  margin-inline: auto;
}

.philosophy-treatment-design__deco {
  position: absolute;
  inset-inline-end: calc(100% + 1.25rem);
  top: 50%;
  width: 6.25rem;
  height: 10.25rem;
  aspect-ratio: 25 / 41;
  transform: translateY(-50%) rotate(-5.9deg);
}

.philosophy-treatment-design__title {
  margin: 0;
  color: var(--color-brand);
  font-size: clamp(1.25rem, calc(0.795rem + 1.94vw), 2.25rem);
  font-weight: 700;
  line-height: 1.11;
  text-align: center;
}

.philosophy-treatment-design__title-rule {
  display: block;
  width: 6.25rem;
  height: 1px;
  margin: 1.875rem auto;
  background-color: var(--color-brand);
}

.philosophy-treatment-design__items {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: min(100% - 2rem, 55.625rem);
  margin: 0;
  margin-inline: auto;
  padding: 0;
  list-style: none;
}

.philosophy-treatment-design__item {
  display: flex;
  align-items: flex-end;
  width: 100%;
  padding-block: 2.5rem;
  padding-inline: 1.875rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.philosophy-treatment-design__item--tree {
  border: 2px solid var(--color-brand-mid);
  background-color: var(--color-brand);
}

.philosophy-treatment-design__arrow {
  display: grid;
  place-items: center;
  padding-block: 1.875rem;
}

.philosophy-treatment-design__arrow img {
  width: 2rem;
  height: 2rem;
}

.philosophy-treatment-design__image {
  flex-shrink: 0;
  width: clamp(14rem, 25vw, 22.5rem);
  aspect-ratio: 360 / 210;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.philosophy-treatment-design__image picture,
.philosophy-treatment-design__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.philosophy-treatment-design__image,
.philosophy-treatment-design__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.philosophy-treatment-design__items p {
  margin: 0;
  line-height: 1.8;
}

.philosophy-treatment-design__name {
  color: var(--color-brand);
  font-size: var(--text-xl);
  font-weight: 900;
}

.philosophy-treatment-design__item--tree .philosophy-treatment-design__name,
.philosophy-treatment-design__item--tree .philosophy-treatment-design__phase {
  color: var(--color-white);
}

.philosophy-treatment-design__item--sprout .philosophy-treatment-design__name {
  color: rgb(90 140 90);
}

.philosophy-treatment-design__item--roots .philosophy-treatment-design__name {
  color: rgb(139 69 19);
}

.philosophy-treatment-design__icon {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0;
}

.philosophy-treatment-design__phase {
  display: block;
  margin: 0;
  color: var(--color-ink);
  font-size: var(--text-base);
  font-weight: 400;
}

p.philosophy-treatment-design__copy {
  width: 100%;
  padding-block: 0.9375rem;
  padding-inline: 0.625rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.philosophy-treatment-design__item--tree .philosophy-treatment-design__phase {
  background-color: transparent;
}

.philosophy-treatment-design__item--tree .philosophy-treatment-design__copy {
  background-color: var(--color-brand-mid);
  color: var(--color-white);
}

.philosophy-treatment-design__item--sprout .philosophy-treatment-design__copy {
  background-color: rgb(90 140 90 / 0.2);
  color: rgb(90 140 90);
}

.philosophy-treatment-design__item--roots .philosophy-treatment-design__copy {
  background-color: rgb(139 69 19 / 0.2);
  color: rgb(139 69 19);
}

.philosophy-approach-figure {
  display: grid;
  gap: var(--space-4);
  margin: 0;
}

.philosophy-approach-figure__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.philosophy-approach-figure__items > div {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  text-align: center;
}

.philosophy-approach-figure__items img {
  width: min(100%, 15rem);
  height: auto;
}

.philosophy-approach-figure__items p,
.philosophy-approach-figure figcaption {
  margin: 0;
  font-weight: 900;
  line-height: 1.6;
}

.philosophy-approach-figure__items > div:last-child p {
  color: var(--color-brand);
  font-size: var(--text-lg);
  font-weight: 900;
}

.philosophy-approach-figure__items > div:last-child {
  background-color: rgb(var(--color-brand-rgb) / 0.06);
}

.philosophy-approach-figure__items span {
  color: var(--color-brand-mid);
  font-size: var(--text-sm);
}

.philosophy-approach-figure figcaption {
  color: var(--color-brand);
  text-align: center;
}

@media (max-width: 767px) {
  .philosophy-section--lead {
    padding-block-start: var(--space-6);
  }

  .philosophy-lead {
    flex-direction: column;
  }

  .philosophy-lead__masthead {
    flex-direction: column;
    gap: 0.75rem;
  }

  .philosophy-lead__deco {
    display: none;
  }

  .philosophy-lead__body {
    gap: 1rem;
    padding: var(--space-4);
  }

  .philosophy-section__head--lead .section-head__ja {
    font-size: var(--text-2xl);
  }

  .philosophy-section__head--lead .section-head__ja br {
    display: block;
  }

  .philosophy-lead__title-break {
    white-space: normal;
  }

  .philosophy-lead__copy {
    text-align: center;
  }

  .philosophy-compare__notice {
    display: block;
  }

  .philosophy-section__head--metaphor {
    gap: 0.75rem;
  }

  .philosophy-section__heading-row {
    gap: 0.75rem;
  }

  .philosophy-metaphor__icon {
    width: 3.5rem;
  }

  .philosophy-section__head--metaphor .section-head__ja {
    max-width: none;
  }

  .philosophy-treatment-design {
    padding-block-end: 3.125rem;
  }

  .philosophy-treatment-design__deco {
    display: none;
  }

  .philosophy-treatment-design__title-wrap {
    margin-block-end: 1.25rem;
  }

  .philosophy-treatment-design__title-rule {
    margin-block: 0.9375rem;
  }

  .philosophy-treatment-design__item {
    flex-direction: column;
    align-items: stretch;
    padding-block: var(--space-6);
    padding-inline: var(--space-4);
  }

  .philosophy-treatment-design__image {
    width: 100%;
    margin-block-end: 0.9375rem;
  }

  .philosophy-treatment-design__arrow {
    padding-block: 0.9375rem;
  }
  .philosophy-approach-figure__items {
    grid-template-columns: 1fr;
  }
}

@media print, screen and (width <= 768px) {
  .philosophy-network {
    grid-template-columns: 1fr;
  }

  .philosophy-network > img,
  .philosophy-network figcaption {
    order: initial;
  }

  .philosophy-network__center {
    margin-inline: auto;
  }

  .philosophy-hero__inner {
    padding-block: var(--space-4);
  }

  .philosophy-hero__content {
    min-height: 34rem;
  }

  .philosophy-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .philosophy-hero__lead {
    font-size: var(--text-lg);
  }

  .philosophy-hero .section-head__en {
    padding-inline: 0.75rem;
  }

  .philosophy-hero__figure img {
    object-position: center center;
  }

  .philosophy-copy--columns {
    column-count: 1;
  }

  .philosophy-checklist {
    grid-template-columns: 1fr;
    padding: 0.875rem;
  }

  .philosophy-media {
    grid-template-columns: 1fr;
  }

  .philosophy-media--reverse .philosophy-media__figure {
    order: 0;
  }
}
