.page-mv__section .mv-image {
  background-image: url(/assets/img/company_mv_img.jpg);
}

section.philosophy-wrapper {
  display: flex;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
      margin-bottom: 200px;
  /* デモ用に長くしてあります */
}

.fixed-area {
  flex: 0 0 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.scroll-area {
  flex: 0 0 50%;
  padding: 100px 50px;
}

.scroll-inner {
  padding: 50px 75px;
}

.scroll-block {
  height: 100vh;
}

.scroll-block h4 {
  color: #aa1e3a;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
}

.scroll-block h3 {
  font-size: 4rem;
  margin: 0 0 30px;
  line-height: 1.5;
}

.scroll-block p {
  line-height: 2.5;
  margin: 0;
  font-size: 1.8rem;
}

.scroll-block ul {
  padding-left: 1.2em;
}

.scroll-block li {
  margin-bottom: 8px;
}

.group-synergy {
position: relative;
width: 100%;
margin-bottom: 80px;
}

.section-header {
  position: absolute;
  top: -30px;
  right: -100px;
  width: 650px;
  padding: 10px 25px;
  background-color: var(--white-color);
  display: flex;
  align-items: center;
      z-index: 10;
}

.section-header .en-title {
  color: #aa1e3a;
  font-size: 2.4rem;
  margin: 0 20px 0 0;
  line-height: 1;
  display: inline-block;
  font-family: var(--font-family-obun);
}

.section-header .ja-title {
  font-size: 1.4rem;
  display: inline-block;
  margin-top: 9px;
}

.top-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
}

.group-synergy-content {
  display: grid;
  flex-wrap: wrap;
  gap: 40px;
}

.synergy-heading {
  color: #aa1e3a;
  font-weight: bold;
  margin-bottom: 12px;
}


.synergy-column {
  margin: 0 50px;
  position: relative;
  top: -100px;
  z-index: 1;
}
.synergy_img {
  position: relative;
  margin-bottom: 40px;
}

.synergy_img::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: solid 5px var(--white-color);
}

h5.synergy-ttl {
  font-size: 1.8rem;
  color: var(--corporate-color);
  font-weight: 600;
  margin-bottom: 20px;
}

.synergy-text {
  font-size: 1.4rem;
  line-height: 2;
}

.company__profile {
  padding: 150px 100px;
  position: relative;
  background-color: var(--white-color);
}

.message__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.message__image {
  margin: 0 50px;
}

.message__image img {
  width: 100%;
  height: auto;
  display: block;
}

.message__caption {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #666;
}

.message__content {
  margin: 0 25px;
}

.message__label-en {
  font-size: 14px;
  color: var(--corporate-color);
  margin-right: 10px;
  letter-spacing: 1px;
}

.message__label-line {
  flex: 1;
  height: 1px;
  background-color: var(--corporate-color);
  border: none;
}

.message__body {
  font-size: 1.4rem;
  line-height: 2;
  color: #333;
}

.message__text {
  font-size: 1.5rem;
  line-height: 1,8;
  letter-spacing: 0.1;
  margin-bottom: 20px;
  text-align: justify;
}

.message__signature {
  text-align: right;
}

.message__headline {
  font-size: 3.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.message__headline p {
    line-height: 1.5;
}

.message__main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  font-family: var(--font-family-jp-serif);
}

.company__table {
  border-bottom: 1px solid var(--gray-color);
    width: 850px;
      margin: 0 auto;
        margin-top: 100px;
        font-size: 1.5rem;
}

.company__table-list {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  row-gap: 16px;
  column-gap: 24px;
  padding: 30px 10px;
  border-top: 1px solid var(--gray-color);
}

.company__table-title {
  font-weight: 500;
  color: var(--corporate-color)
}

.company__table-data {
  line-height: 1.8;
}

.access__section {
  margin-top: 100px;;
}

.access__container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 5%;
}

.access__map {
  width: 100%;
  aspect-ratio: 9 / 9.4;
  min-width: 300px;
  padding: 0 50px;
}
.access__map iframe {
  width: 100%;
  height: 100%;
}

.access__images {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 50px;
}

.access__image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.access__caption {
  font-size: 1.2rem;
  color: #444;
  margin-top: 10px;
}
.philosophy__list {
  margin-top: 40px;
}
.philosophy__list li{
  font-size: 2.0rem;
  margin-bottom: 40px;
  position: relative;
  padding-left: 30px;
  font-weight: 500;
}

.philosophy__list li span {
  position: absolute;
  font-size: 1.5rem;
  color: var(--corporate-color);
  left: -15px;
}

/* ============================================
   スマートフォン対応 (768px以下)
   ============================================ */
@media (max-width: 768px) {
  
  /* メインビジュアル */
  .page-mv__section .mv-image {
    background-image: url(/assets/img/company_mv_imgsp.jpg);
    background-size: 100%;
  background-position: top right;
  }


  
  /* フィロソフィーセクション */
  section.philosophy-wrapper {
    flex-direction: column;
    min-height: auto;

  }
  
  .fixed-area {
    flex: none;
    position: static;
    height: 250px;
    order: 2;
    margin: 0 30px;
  }
  
  .scroll-area {
    flex: none;
    padding: 50px 20px;
    order: 1;
  }
  
  .scroll-inner {
    padding: 20px;
  }
  
  .scroll-block {
    height: auto;
    margin-bottom: 50px;
  }
  
  .scroll-block h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }
  
  .scroll-block p {
    font-size: 1.4rem;
    line-height: 2;
  }
  
  .philosophy__list li {
    font-size: 1.6rem;
    margin-bottom: 25px;
    padding-left: 25px;
  }
  
  .philosophy__list li span {
    font-size: 1.2rem;
    left: -10px;
  }
  
  /* グループシナジー */
  .section-header {
    top: -45px;
    right: -15px;
    max-width: 300px;
    width: 100%;
    margin: 20px 0;
    padding: 15px 20px;
    display: block;
    align-items: none;

  }
  
  .section-header .en-title {
    font-size: 1.6rem;
    margin-right: 10px;

  }
  
  .section-header .ja-title {
    font-size: 1.0rem;
    margin: 0;
  }
  
  .synergy-column {
    margin: 0 30px 60px 30px;
    top: 0;
  }
  
  .synergy_img {
    margin-bottom: 25px;
  }
  
  .synergy_img::after {
    border-width: 3px;
  }
  
  h5.synergy-ttl {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
  
  .synergy-text {
    font-size: 1.3rem;
  }
  
  /* 会社プロフィール */
  .company__profile {
    padding: 70px 20px;
    margin: 0;
  }
  
  /* メッセージセクション */
  .message__container {
    flex-direction: column;
    gap: 30px;
    padding: 0;
  }
  
  .message__image {
    margin: 0;
  }
  
  .message__content {
    margin: 0;
  }
  
  .message__main {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 80px;
  }
  
  .message__headline {
    font-size: 2.2rem;
    writing-mode: horizontal-tb;
    text-align: center;
    order: 1;
    width: 100%;
  }
  
  .message__body {
    order: 2;
    margin: 0 15px;
  }
  
  .message__text {
    font-size: 1.3rem;
    line-height: 2;
    margin-bottom: 15px;
    margin-top: 30px;
  }
  .message__signature {
    font-size: 1.3rem;
  }
  
  /* 会社情報テーブル */
  .company__table {
    width: 100%;
    margin-top: 50px;
    font-size: 1.3rem;
  }
  
  .company__table-list {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 20px 15px;
  }
  
  .company__table-title {

    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 5px;
  }
  
  .company__table-data {
    margin-bottom: 0;
  }
  
  /* アクセス */
  .access__section {
    margin-top: 50px;
  }
  
  .access__container {
    flex-direction: column;
    padding: 40px 20px;
    gap: 30px;
  }
  
  .access__map {
    padding: 0;
    aspect-ratio: 4 / 3;
  }
  
  .access__images {
    padding: 0;
    gap: 10px;
    flex-direction: row;
    margin-top: 20px;
  }
  
  .access__caption {
    font-size: 1.0rem;
    margin-top: 5px;
  }
  
}



/* ============================================
   タブレット対応 (769px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  
  .scroll-area {
    padding: 80px 30px;
  }
  
  .scroll-inner {
    padding: 30px 50px;
  }
  
  .scroll-block h3 {
    font-size: 3.2rem;
  }
  
  .scroll-block p {
    font-size: 1.6rem;
  }
  
  .section-header {
    right: -50px;
    width: 500px;
  }
  
  .section-header .en-title {
    font-size: 2rem;
  }
  
  .section-header .ja-title {
    font-size: 1.2rem;
  }
  
  .synergy-column {
    margin: 0 30px;
    top: -50px;
  }
  
  .company__profile {
    padding: 120px 50px;
  }
  
  .message__headline {
    font-size: 3rem;
  }
  
  .company__table {
    width: 700px;
  }
  
  .access__map {
    padding: 0 25px;
  }
  
  .access__images {
    padding: 0 25px;
  }
}