/* 企業理念：配置・円・写真・線・文字・スマホ表示
 * 既存の上書き順を保って整形。後半の調整も有効な指定として残しています。
 */
/* 案1・修正版。既存の他セクションへ影響しないよう #philosophy 内に限定。 */
#philosophy.po-section {
  background: #aa453b;
  color: #fff;
  margin: 0;
  padding: 30px 4.5% 36px;
  position: relative;
  overflow: visible;
  scroll-margin-top: 90px;
}

#philosophy.po-section * {
  box-sizing: border-box;
}

#philosophy .po-inner {
  max-width: 1400px;
  margin: 0 auto;
}

#philosophy .po-heading {
  text-align: center;
  margin: 0 0 44px;
}

#philosophy .po-heading h2 {
  position: relative;
  color: #fff;
  font-size: clamp(28px,3vw,42px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: normal;
  margin: 0;
  text-align: center;
}

#philosophy .po-heading h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 14px auto 0;
  background: #fff;
}

#philosophy .po-heading p {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #fff;
  font: 13px/1.5 Georgia,serif;
  letter-spacing: .25em;
  margin: 0;
}

#philosophy .po-heading p::before,#philosophy .po-heading p::after {
  content: "";
  width: 40px;
  height: 1px;
  background: #ffffff80;
}

#philosophy .po-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.7fr) minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 32px;
  row-gap: 100px;
  min-height: 640px;
  height: auto;
  align-items: start;
  isolation: isolate;
}

#philosophy .po-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  z-index: -1;
  pointer-events: none;
  overflow: visible;
}

#philosophy .po-diagram {
  position: relative;
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  justify-self: center;
  left: auto;
  top: auto;
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 1;
  min-width: 0;
}

#philosophy .po-ring {
  position: absolute;
  inset: 3%;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: linear-gradient(135deg,#dfa399,#bd756c);
}

#philosophy .po-logo {
  position: absolute;
  left: 27%;
  top: 27%;
  width: 46%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%,#ff896b,#d74c40 55%,#86372f);
}

#philosophy .po-logo span {
  display: none;
  font: italic clamp(40px,5vw,80px)/1 Georgia,serif;
  letter-spacing: -.1em;
  color: #fff;
  padding-right: .1em;
}

#philosophy .po-logo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: none;
  margin: 0;
}

#philosophy .po-logo.is-fallback span {
  display: block;
}

#philosophy .po-node {
  position: absolute;
  display: block;
  width: 32%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  z-index: 2;
  transition: transform .25s;
  text-decoration: none;
}

#philosophy .po-node--mission {
  left: 0;
  top: 0;
}

#philosophy .po-node--vision {
  left: 68%;
  top: 0;
}

#philosophy .po-node--value {
  left: 0;
  top: 68%;
}

#philosophy .po-node--ict {
  left: 68%;
  top: 68%;
  display: grid;
  place-items: center;
}

/* 画像と代替SVGを同時表示しない。どちらも同じ円の中央に配置。 */
#philosophy .po-node>svg {
  display: none;
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  margin: 0;
  transform: none;
}

#philosophy .po-node.is-fallback>svg {
  display: block;
}

#philosophy .po-node>img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: none;
  margin: 0;
  background: #fff;
}

#philosophy .po-node>img[hidden],#philosophy .po-logo>img[hidden] {
  display: none;
}

#philosophy .po-node strong {
  color: #d12426;
  font: 900 clamp(38px,5vw,74px)/1 Impact,"Arial Narrow",sans-serif;
  letter-spacing: -.03em;
}

#philosophy a.po-node:hover,#philosophy a.po-node:focus-visible {
  transform: scale(1.05);
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#philosophy .po-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
  scroll-margin-top: 130px;
}

#philosophy .po-mission {
  grid-column: 1;
  grid-row: 1;
}

#philosophy .po-vision {
  grid-column: 3;
  grid-row: 1;
}

#philosophy .po-value {
  grid-column: 1;
  grid-row: 2;
}

#philosophy .po-ict {
  grid-column: 3;
  grid-row: 2;
}

#philosophy .po-copy h3 {
  display: inline-block;
  font: 400 clamp(34px,3.4vw,52px)/1.1 Georgia,serif;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: 0;
  text-decoration: none;
}

#philosophy .po-copy .po-caption {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .03em;
  margin: 0 0 20px;
  color: #fff;
}

#philosophy .po-copy h4 {
  color: #fff;
  font-size: clamp(18px,1.65vw,25px);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 14px;
  letter-spacing: 0;
}

#philosophy .po-copy p {
  color: #fff;
  font-size: clamp(12px,1vw,14px);
  line-height: 1.9;
  margin: 0;
  overflow-wrap: break-word;
}

#philosophy .po-value ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#philosophy .po-value li {
  font-size: clamp(17px,1.6vw,23px);
  line-height: 1.8;
  margin: 0;
  padding: 0;
}

#philosophy .po-copy .po-ict-en {
  font: clamp(13px,1.25vw,18px)/1.5 Georgia,serif;
  margin: 0 0 20px;
}

@media (min-width:1025px) and (max-height:780px) {
  #philosophy.po-section {
    padding-top: 22px;
    padding-bottom: 26px;
  }

  #philosophy .po-heading {
    margin-bottom: 24px;
  }

  #philosophy .po-layout {
    row-gap: 90px;
    min-height: 620px;
  }

  #philosophy .po-copy h3 {
    font-size: 40px;
  }

  #philosophy .po-copy .po-caption {
    margin-bottom: 14px;
  }

  #philosophy .po-copy h4 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  #philosophy .po-copy p {
    font-size: 12px;
    line-height: 1.8;
  }

  #philosophy .po-value li {
    font-size: 19px;
  }

  #philosophy .po-diagram {
    max-width: 450px;
  }

}

@media (max-width:1024px) {
  #philosophy .po-layout {
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
    row-gap: 44px;
    min-height: 0;
  }

  #philosophy .po-lines {
    display: none;
  }

  #philosophy .po-diagram {
    grid-column: 1/-1;
    grid-row: 1;
    width: min(430px,85%);
  }

  #philosophy .po-mission {
    grid-column: 1;
    grid-row: 2;
  }

  #philosophy .po-vision {
    grid-column: 2;
    grid-row: 2;
  }

  #philosophy .po-value {
    grid-column: 1;
    grid-row: 3;
  }

  #philosophy .po-ict {
    grid-column: 2;
    grid-row: 3;
  }

  #philosophy .po-copy p {
    font-size: 14px;
  }

  #philosophy .po-copy h4 {
    font-size: 22px;
  }

  #philosophy .po-node strong {
    font-size: 60px;
  }

}

@media (max-width:650px) {
  #philosophy.po-section {
    padding: 28px 6% 36px;
  }

  #philosophy .po-heading {
    margin-bottom: 22px;
  }

  #philosophy .po-layout {
    grid-template-columns: minmax(0,1fr);
    gap: 38px;
  }

  #philosophy .po-diagram {
    width: min(350px,100%);
    grid-column: 1;
    grid-row: 1;
  }

  #philosophy .po-mission,#philosophy .po-vision,#philosophy .po-value,#philosophy .po-ict {
    grid-column: 1;
    grid-row: auto;
    border-top: 1px solid #ffffff50;
    padding-top: 22px;
  }

  #philosophy .po-copy h3 {
    font-size: 36px;
  }

  #philosophy .po-copy .po-caption {
    margin-bottom: 14px;
  }

  #philosophy .po-copy h4 {
    font-size: 21px;
  }

  #philosophy .po-copy h4 br {
    display: none;
  }

  #philosophy .po-copy p {
    font-size: 14px;
    line-height: 1.9;
  }

  #philosophy .po-value li {
    font-size: 20px;
  }

  #philosophy .po-node strong {
    font-size: 46px;
  }

  #philosophy .po-logo span {
    font-size: 56px;
  }

}

@media (prefers-reduced-motion:reduce) {
  #philosophy .po-node {
    transition: none;
  }

}

/* Original artwork: show only the icon circle, leaving embedded text outside the viewBox. */
#philosophy .po-node>svg.po-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  transform: none;
}

#philosophy .po-node--mission,#philosophy .po-node--vision,#philosophy .po-node--value,#philosophy .po-node--ict {
  width: 32%;
  height: auto;
  aspect-ratio: 1;
}

#philosophy .po-logo img {
  object-fit: cover;
}

/* Restore the soft transition above the red section; keep it outside the section. */
#philosophy.po-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  width: 100%;
  height: 121px;
  background: linear-gradient(to bottom,rgba(170,69,59,0),#aa453b);
  pointer-events: none;
}

/* Mirror the text columns around the centered diagram. */
@media (min-width:1025px) {
  #philosophy .po-mission,#philosophy .po-value {
    text-align: right;
    justify-self: stretch;
    padding: 0;
    margin: 0;
  }

  #philosophy .po-vision,#philosophy .po-ict {
    text-align: left;
    justify-self: stretch;
    padding: 0;
    margin: 0;
  }

  #philosophy .po-copy {
    width: 100%;
  }

  #philosophy .po-mission ul,#philosophy .po-value ul {
    text-align: right;
  }

}

/* Rotating white orbit around the central logo; artwork remains stationary. */
#philosophy .po-diagram::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(255,255,255,.94);
  border-right-color: rgba(255,255,255,.58);
  z-index: 1;
  pointer-events: none;
  transform-origin: center;
}

#philosophy .po-node {
  cursor: default;
}

@keyframes po-orbit-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}

@media (prefers-reduced-motion:reduce) {
  #philosophy .po-diagram::after {
    animation: none;
  }

}

/* Enlarge text groups gently, without resizing the diagram or leader lines. */
@media (hover:hover) and (pointer:fine) {
  #philosophy .po-copy {
    transition: transform .3s ease;
    transform-origin: left center;
  }

  #philosophy .po-mission,#philosophy .po-value {
    transform-origin: right center;
  }

  #philosophy .po-copy:hover {
    transform: scale(1.10);
    z-index: 3;
  }

}

@media (prefers-reduced-motion:reduce) {
  #philosophy .po-copy {
    transition: none;
  }

}

/* 中央の白い周回線を2本にし、約2倍の速さで回転。 */
#philosophy .po-diagram::before, #philosophy .po-diagram::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(255, 255, 255, .94);
  border-right-color: rgba(255, 255, 255, .58);
  z-index: 1;
  pointer-events: none;
  transform-origin: center;
}

#philosophy .po-diagram::after {
  inset: 6%;
  animation: po-orbit-spin 9s linear infinite;
}

#philosophy .po-diagram::before {
  inset: 10%;
  animation: po-orbit-spin 8s linear infinite reverse;
}

@media (prefers-reduced-motion: reduce) {
  #philosophy .po-diagram::before, #philosophy .po-diagram::after {
    animation: none;
  }

}
