/*
  Company + Philosophy integration (desktop)
  Scoped to company.html.
*/

@media (min-width: 768px) {
  .company-subnav {
    position: sticky;
    top: 108px;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
  }

  .company-subnav__list {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    list-style: none;
  }

  .company-subnav__link {
    display: block;
    padding: 18px 10px 15px;
    border-bottom: 3px solid transparent;
    color: #333;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .company-subnav__link:hover,
  .company-subnav__link--active {
    color: #512294;
    border-bottom-color: #512294;
  }

  .company-philosophy {
    --ph-purple: #512294;
    --ph-lime: #b2ff3b;
    --ph-ink: #111;
    --ph-muted: #666;
    --ph-line: #dedede;
    --ph-pale: #f5f5f7;
    color: #333;
    font-family: "Noto Sans JP", sans-serif;
  }

  .company-philosophy__inner {
    width: min(1120px, calc(100% - 64px));
    margin: 0 auto;
  }

  .company-philosophy__section {
    padding: 96px 0;
  }

  .company-philosophy__eyebrow {
    display: block;
    margin-bottom: 14px;
    color: var(--ph-purple);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.24em;
  }

  .company-philosophy__title {
    margin: 0 0 24px;
    color: var(--ph-ink);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.35;
  }

  .company-philosophy__lead {
    max-width: 720px;
    color: var(--ph-muted);
    font-size: 16px;
    line-height: 2;
  }

  .company-philosophy__story {
    background: #fff;
  }

  .company-philosophy__story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 80px;
    align-items: center;
  }

  .company-philosophy__origin {
    position: relative;
    min-height: 360px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ph-line);
    background: #fff;
    overflow: hidden;
  }

  .company-philosophy__origin::before,
  .company-philosophy__origin::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    border: 1px solid rgba(81, 34, 148, 0.24);
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .company-philosophy__origin::before {
    width: 260px;
    height: 260px;
  }

  .company-philosophy__origin::after {
    width: 180px;
    height: 180px;
  }

  .company-philosophy__origin-core {
    position: relative;
    z-index: 1;
    text-align: center;
  }

  .company-philosophy__origin-ja {
    color: var(--ph-purple);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.2;
  }

  .company-philosophy__origin-en {
    margin-top: 12px;
    color: #888;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.26em;
  }

  .company-philosophy__origin-node {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--ph-purple);
    box-shadow: 0 0 0 6px rgba(81, 34, 148, 0.12);
  }

  .company-philosophy__origin-node--a { top: 50px; left: 62px; }
  .company-philosophy__origin-node--b { top: 76px; right: 54px; background: var(--ph-lime); }
  .company-philosophy__origin-node--c { bottom: 54px; left: 92px; }
  .company-philosophy__origin-node--d { right: 84px; bottom: 74px; }

  .company-philosophy__mission {
    background: var(--ph-pale);
  }

  .company-philosophy__section-head {
    margin-bottom: 52px;
  }

  .company-philosophy__mission-grid,
  .company-philosophy__values-grid,
  .company-philosophy__spirit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .company-philosophy__mission-item {
    position: relative;
    min-height: 300px;
    padding: 36px 30px 32px;
    border-top: 4px solid var(--ph-purple);
    background: #fff;
  }

  .company-philosophy__mission-num {
    color: rgba(81, 34, 148, 0.16);
    font-family: "Inter", sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
  }

  .company-philosophy__tag {
    display: inline-block;
    margin: 18px 0 14px;
    color: var(--ph-purple);
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
  }

  .company-philosophy__mission-item h3,
  .company-philosophy__value-item h3,
  .company-philosophy__spirit-item h3 {
    margin: 0 0 14px;
    color: var(--ph-ink);
    font-size: 19px;
    line-height: 1.55;
  }

  .company-philosophy__mission-item p,
  .company-philosophy__value-item p,
  .company-philosophy__spirit-item p {
    margin: 0;
    color: var(--ph-muted);
    font-size: 14px;
    line-height: 1.9;
  }

  .company-philosophy__value {
    background: #fff;
  }

  .company-philosophy__value-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: center;
  }

  .company-philosophy__quote {
    margin: 34px 0 24px;
    color: var(--ph-ink);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.55;
  }

  .company-philosophy__problem-flow {
    position: relative;
    display: grid;
    gap: 12px;
  }

  .company-philosophy__problem-flow::before {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 32px;
    left: 31px;
    width: 1px;
    background: rgba(81, 34, 148, 0.28);
  }

  .company-philosophy__problem {
    position: relative;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 22px;
    align-items: center;
    padding: 22px 24px 22px 0;
    border-bottom: 1px solid var(--ph-line);
  }

  .company-philosophy__icon {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ph-purple);
    color: #fff;
    font-size: 22px;
  }

  .company-philosophy__problem strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ph-ink);
    font-size: 16px;
  }

  .company-philosophy__problem span {
    color: var(--ph-muted);
    font-size: 13px;
    line-height: 1.7;
  }

  .company-philosophy__principles {
    background: #111;
    color: #fff;
  }

  .company-philosophy__principles .company-philosophy__title {
    color: #fff;
  }

  .company-philosophy__principles .company-philosophy__lead {
    color: rgba(255, 255, 255, 0.64);
  }

  .company-philosophy__values-grid {
    margin-bottom: 72px;
  }

  .company-philosophy__value-item,
  .company-philosophy__spirit-item {
    padding: 32px 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #171717;
  }

  .company-philosophy__value-item h3,
  .company-philosophy__spirit-item h3 {
    color: #fff;
  }

  .company-philosophy__value-item p,
  .company-philosophy__spirit-item p {
    color: rgba(255, 255, 255, 0.62);
  }

  .company-philosophy__card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ph-purple);
    color: #fff;
    font-size: 20px;
  }

  .company-philosophy__spirit-head {
    margin-bottom: 28px;
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .company-philosophy__act {
    background: #fff;
  }

  .company-philosophy__act-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(460px, 1.1fr);
    gap: 80px;
    align-items: center;
  }

  .company-philosophy__act-message {
    margin-top: 30px;
    padding: 24px 26px;
    border-left: 4px solid var(--ph-purple);
    background: var(--ph-pale);
    color: #444;
    font-size: 14px;
    line-height: 1.9;
  }

  .company-philosophy__funnel {
    display: grid;
    gap: 14px;
    margin: 0;
    aspect-ratio: 1413 / 628;
    overflow: hidden;
  }

  .company-philosophy__funnel-image {
    display: block;
    width: 100.0%;
    max-width: none;
    height: auto;
    transform: translate(-0.69%, -1.15%);
  }

  .company-philosophy__funnel-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 18px;
    align-items: center;
  }

  .company-philosophy__funnel-bar {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(81, 34, 148, 0.35);
    background: rgba(81, 34, 148, 0.08);
    clip-path: polygon(3% 0, 97% 0, 91% 100%, 9% 100%);
  }

  .company-philosophy__funnel-row--speak .company-philosophy__funnel-bar {
    width: 76%;
    justify-self: center;
    background: rgba(81, 34, 148, 0.18);
  }

  .company-philosophy__funnel-row--act .company-philosophy__funnel-bar {
    width: 52%;
    justify-self: center;
    border-color: var(--ph-purple);
    background: var(--ph-purple);
    color: #fff;
    clip-path: none;
  }

  .company-philosophy__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    max-width: 190px;
  }

  .company-philosophy__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(81, 34, 148, 0.45);
  }

  .company-philosophy__funnel-row--act .company-philosophy__dot {
    background: var(--ph-lime);
  }

  .company-philosophy__funnel-label strong {
    display: block;
    color: var(--ph-ink);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .company-philosophy__funnel-label span {
    display: block;
    margin-top: 4px;
    color: var(--ph-muted);
    font-size: 13px;
  }

  .company-philosophy__funnel-row--act .company-philosophy__funnel-label strong,
  .company-philosophy__funnel-row--act .company-philosophy__funnel-label span {
    color: var(--ph-purple);
  }

  .company-philosophy__standard {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 9px;
    background: var(--ph-lime);
    color: #111;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
  }

  .culture#profile {
    scroll-margin-top: 170px;
  }
}
