/* 企業理念セクション下余白 */
.philosophy-section {
  margin-bottom: 120px;
}
/* 企業理念ボトムメッセージ中央・サイズ・余白 */
.philosophy-bottom-message {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  margin-top: 120px;
}
/* Valueアイコンとテキスト横並び */
.philosophy-value-list .philosophy-value-item {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.philosophy-value-list .philosophy-value-item:last-child {
  margin-bottom: 0;
}
.philosophy-value-icon {
  flex: 0 0 auto;
  margin-right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.philosophy-value-icon img {
  display: block;
  width: 90px;
  height: 90px;
}
.philosophy-value-content {
  flex: 1 1 0%;
}
/* Valueアイコン画像用スタイル */
.philosophy-value-icon img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
/* 企業理念 右側画像 固定・サイズ指定 */
.philosophy-flex-wrap {
  display: flex;
  gap: 48px;
}
.philosophy-flex-left {
  flex: 1 1 0%;
  min-width: 0;
}
.philosophy-flex-right {
  flex: 0 0 240px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}
.philosophy-sticky-image {
  position: relative;
}
.philosophy-sticky-img {
  width: 240px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  position: sticky;
  top: 90px; /* 固定ヘッダー分の余白をさらに微調整 */
  z-index: 1;
}

/* レスポンシブ用の表示制御 */
.show-on-mobile {
  display: none;
}

/* 企業理念テキストの余白 */
.philosophy-text {
  margin-top: 40px;
}

/* 「続きを読む」ボタンのスタイル */
.philosophy-toggle-btn {
  display: inline-block;
  margin-top: 40px;
  padding: 8px 30px;
  background-color: transparent;
  color: #222222;
  border: 1px solid #222222;
  border-radius: 50px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.philosophy-toggle-btn:hover {
  background-color: #222222;
  color: #fff;
}

/* 開閉されるコンテンツのスタイル */
.philosophy-vv {
  overflow: hidden;
  transition: max-height 0.5s ease-out, opacity 0.5s ease-out, margin-top 0.5s ease-out;
  max-height: 0;
  opacity: 0;
  margin-top: 0 !important;
}
.philosophy-vv.is-open {
  max-height: 1500px; /* コンテンツの高さより十分に大きい値 */
  opacity: 1;
  margin-top: 80px !important;
}



/* 企業理念セクションのブロック間マージン */
.philosophy-block.philosophy-mission,
.philosophy-block.philosophy-value {
  margin-top: 80px;
}
/* ========================================
   About Section
======================================== */
.page-template-page-about .about-section {
  margin: 0 auto 120px;
}

.page-template-page-about .about-content {
  padding: 80px 120px;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
  margin-top: 80px;
}

.page-template-page-about .about-content:first-of-type {
  margin-top: 0;
}

.page-template-page-about .about-header {
  margin-bottom: 60px;
}

.page-template-page-about .section-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: left;
}

.page-template-page-about .section-subtitle {
  font-size: 24px;
  font-weight: 600;
}

/* About Category */
.page-template-page-about .about-category {
  margin-bottom: 80px;
}

/* h3 titles in about rely on common subpages h3 styles */

/* Case block layout */
.page-template-page-about .about-case {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 80px;
}

.page-template-page-about .about-case:last-child {
  margin-bottom: 0;
}

.page-template-page-about .about-text {
  flex: 1;
}

.page-template-page-about .about-media {
  flex: 0 0 360px;
}

.page-template-page-about .about-image,
.page-template-page-about .about-image-placeholder {
  width: 360px;
  height: 240px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}

.page-template-page-about .about-text p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-dark);
}

.page-template-page-about .about-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-template-page-about .about-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-template-page-about .about-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #999;
  font-size: 16px;
}

.page-template-page-about .about-item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
}

.page-template-page-about .about-item-desc {
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.8;
}

/* 会社概要 about-outline デザイン用スタイル */

.about-outline {
  background: #fff;
  border-radius: 24px;
  padding: 80px 120px;
  margin-top: 60px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

.about-outline-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-outline-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.about-outline-row dt {
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  font-weight: bold;
  font-size: 18px;
  color: #222;
  letter-spacing: 0.04em;
  line-height: 1.7;
  text-align: left;
  margin: 0;
  flex-shrink: 0;
}

.about-outline-row dd {
  flex: 1;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  color: #222;
  line-height: 1.9;
  letter-spacing: 0.01em;
}

.about-outline-representative {
  display: flex;
  gap: 32px;
}

.about-rep-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.about-rep-img {
  width: 240px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  background: #f0f0f0;
}

.about-rep-title {
  font-size: 0.95em;
  color: #666;
}

.about-map-block {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 32px;
  margin-top: 8px;
}

.about-map-block > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.about-map-block iframe {
  width: 480px;
  height: 360px;
  border-radius: 16px;
  border: none;
}

.about-map-address {
  font-size: 1em;
  color: #222;
  line-height: 1.8;
  min-width: 180px;
  margin-top: 0;
}

.about-map-block a {
  font-size: 0.97em;
  color: #222;
  text-decoration: underline;
  margin-top: 4px;
  display: inline-block;
}

@media (max-width: 900px) {
  /* --- レスポンシブ用の表示制御 --- */
  .show-on-desktop {
    display: none;
  }
  .show-on-mobile {
    display: block;
  }
  /* --- 企業理念セクションのレスポンシブ対応 --- */
  .philosophy-flex-wrap {
    flex-direction: column;
  }

  .philosophy-flex-right.philosophy-sticky-image {
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 0;
    width: 100%;
  }

  .philosophy-sticky-img {
    position: static; /* sticky解除 */
    width: 240px;
    width: 90%;
    height: auto;
    max-width: 320px; /* 画像が大きくなりすぎないように最大幅を指定 */
    margin: 0 auto;
    display: block;
    border-radius: 26px;
  }
  /* ----------------------------------------- */

  .about-outline {
    padding: 32px 10px 24px 10px;
  }

  .about-outline-row {
    flex-direction: column;
    gap: 8px;
  }

  .about-outline-representative {
    flex-direction: column;
    gap: 16px;
  }

  .about-rep-img {
    width: 100%;
    max-width: 220px;
    height: auto;
  }

  .about-map-block {
    flex-direction: column;
    gap: 8px;
  }

  .about-map-block iframe {
    width: 100%;
    min-width: 0;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .about-outline {
    padding: 12px 2vw 12px 2vw;
    border-radius: 12px;
  }

  .about-outline-list {
    gap: 18px;
  }

  .about-outline-row dt {
    min-width: 0;
    font-size: 1em;
  }

  .about-rep-img {
    max-width: 100%;
    height: auto;
    border-radius: 24px;
  }
}

@media (max-width: 480px) {
  .page-template-page-about .about-section {
    padding: 0 20px 0;
  }
  .philosophy-section {
    padding: 0 20px 0;
  }
  .philosophy-bottom-message {
    margin-top: 60px;
  }

  /* philosophy-value-icon のサイズ調整 */
  .philosophy-value-icon {
    width: 70px;
    height: 70px;
  }
  /* アイコン内の画像を親要素に合わせる */
  .philosophy-value-icon img {
    width: 100%;
    height: 100%;
  }
  .about-outline {
    padding: 60px 20px;
    margin-top: 40px;
  }
  .about-outline-row + .about-outline-row {
    margin-top: 40px;
  }
}

@media (min-width: 769px) {
  .about-outline-representative {
    display: flex;
    flex-direction: row;
    gap: 32px;
  }
  .about-map-block {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .about-outline {
    padding: 60px 80px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .about-outline {
    padding: 60px 40px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .about-outline-representative {
    display: flex;
    flex-direction: row;
    gap: 24px;
  }
}