/* =======================================
   会社概要ページ用 company.css
   - 理念（company_policy）
   - 4つの柱（pillars）
   - メッセージ（company_message）
   - 沿革（history）
   - 法人概要（company-company / overview）
   - アクセス（access）
   ======================================= */

/* ---------------------------------------
   理念
   --------------------------------------- */

   .company_policy {
    margin-top: 142px;
  }
  
  .company_policy h2 {
    margin-top: 19px;
    margin-left: 51px;
    margin-bottom: 60px;
    font-size: 2.1875rem;
    line-height: 67px;
  }
  
  .company_policy .company_policy-img {
    position: relative;
  }
  
  .company_policy .company_policy-img img {
    width: 100%;
  }
  
  /* 理念セクション内の画像＆葉っぱ */
  .company_policy .company_policy-img .right-leaf {
    position: absolute;
    right: -88px;
    top: 349px;
  }
  
  /* 理念テキストブロック */
  .policy {
    margin-top: 42.89px;
  }
  
  /* ---------------------------------------
     4つの柱
     --------------------------------------- */
  
  .pillars {
    background-color: #E7D4A5;
    border-radius: 34px;
    margin-bottom: 100px;
    width: 100%;
    padding: 114px 0;
  }
  
  .pillars .pillars-ttl {
    position: relative;
    justify-content: space-between;
    align-items: center;
    width: 975px;
    margin: 0 auto 112px;
  }
  
  .pillars .pillars-ttl h3 {
    display: inline-block;
    margin-top: 123px;
    width: 542px;
    height: auto;
    line-height: 48px;
  }
  
  .pillars .pillars-ttl .right-leaf {
    position: absolute;
    bottom: -80px;
    right: -146px;
  }
  
  /* 各柱のコンテンツブロック */
  .pillar-content {
    margin: 0 auto 112px;
    width: 975px;
    grid-column-gap: 59px;
    grid-row-gap: 27px;
    grid-template-columns: 375px 548.71px;
    grid-template-rows: 100px 1fr;
    grid-template-areas:
      "h1-area brank"
      "text-area img-area";
  }
  
  .pillar-content h2 {
    margin: 0 auto;
    grid-area: h1-area;
  }
  
  .pillar-content p {
    grid-area: text-area;
  }
  
  .pillar-content .pillar-img {
    grid-area: img-area;
    margin-top: -18px;
  }
  
  .pillar-content .pillar-img img {
    width: 100%;
  }
  
  /* h2 が2行になるタイプのバリエーション */
  .pillar-content.type2 {
    grid-column-gap: 59px;
    grid-row-gap: 27px;
    grid-template-columns: 375px 548.71px;
    grid-template-rows: 158px 1fr;
    grid-template-areas:
      "h1-area brank"
      "text-area img-area";
  }
  
  /* 固定表示用ラッパ（4つの柱で使用） */
  #container {
    position: relative;
    z-index: 1; /* header と footer を手前にするため数字を小さく */
  }
  
  section.fixed {
    position: -webkit-sticky; /* Safari */
    position: sticky;
  }
  
  /* ---------------------------------------
     メッセージ
     --------------------------------------- */
  
  .company_message {
    width: 1021.31px;
    margin: 150px auto 240px;
  }
  
  .company_message .message-ttl {
    width: 975px;
    margin: 0 auto 28px;
    align-items: center;
  }
  
  .company_message .message-ttl h2 {
    margin-left: 26px;
  }
  
  /* メッセージ本文 */
  .company_message p {
    display: block;
    margin: 30px auto 0;
    width: 975px;
    font-size: 1.2rem;
  }
  
  /* メッセージ下のイメージエリア（署名や葉っぱなど） */
  .company_policy-img {
    position: relative;
  }
  
  .company_policy-img .right-leaf {
    position: absolute;
    bottom: -1400px;
    right: -120px;
  }
  
  .company_policy-img .sign {
    position: absolute;
    bottom: -1315px;
    right: 40px;
  }
  
  /* ---------------------------------------
     沿革
     --------------------------------------- */
  
     .history {
      padding: 80px 0 100px;
      background-color: #E6D09E; /* 会社概要の背景色に合わせて */
      position: relative;
      width: 100%;
    }
    
    .history h2 {
      text-align: center;
      margin-bottom: 40px;
    }
    .history h2 img{
      margin: 0 auto;
    }
    
    .history .container {
      width: min(900px, 92%);
      margin: 0 auto;
      position: relative;
      padding-left: 40px;
    }
    
    /* 真ん中の縦ライン */
    .history .container::before {
      content: "";
      position: absolute;
      left: 18px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: rgba(109, 123, 82, 0.35);
    }
    
    /* 1ステップごとのブロック */
    .history .step {
      display: flex;
      align-items: flex-start;
      gap: 24px;
      margin-bottom: 24px;
      position: relative;
    }
    
    /* 緑のドット */
    .history .step::before {
      content: "";
      position: absolute;
      left: -28px;
      top: 4px;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: var(--color-main);
      box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
    }
    
    /* 年月 */
    .history .step-title {
      width: 140px;
      margin: 0;
      font-size: 1.375rem;
      font-weight: 600;
      color: #3F6430;
    }
    
    /* 内容カード */
    .history .step-text {
      flex: 1;
      margin: 0;
      padding: 12px 16px;
      background: rgba(255, 255, 255, 0.9);
      border-radius: 999px;
      font-size: 1rem;
      font-weight: 500;
      line-height: 1.7;
    }
    
    /* 葉っぱの位置を少し上げる */
    .history .yellow-leaf {
      position: absolute;
      left: 0;
      bottom: 0;
    }
 /* ================================
   法人概要（Company Overview）
================================ */

.company-company {
  padding: 80px 0 120px;
  background: #f6f5e7; /* 全体のトーンに合わせた背景 */
  width: 100%;
}

.company-company h2 {
  text-align: center;
  margin-bottom: 50px;
}
.company-company h2 img{
  margin: 0 auto;
}

.company-company .overview {
  width: min(900px, 92%);
  margin: 0 auto;
  background: #fff;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border: 1px solid #e6e6d5;
}

.company-company dl {
  display: grid;
  grid-template-columns: 200px 1fr;
  row-gap: 28px;
  column-gap: 20px;
}

.company-company dt {
  font-size: 1.375rem;
  font-weight: 600;
  color: #4a6c3f;
  display: flex;
  align-items: center;
  position: relative;
}

/* 左側の下線（装飾） */
.company-company dt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #7cbc5b;
  margin-left: 16px;
  opacity: 0.4;
}

.company-company dd {
  font-size: 1.2rem;
  color: #4a4a4a;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
/* ================================
   アクセス（Access）
================================ */

.access {
  padding: 80px 0 120px;
  width: 100%;
}

.access h2 {
  text-align: center;
  margin-bottom: 40px;
}
.access h2 img{
  margin: 0 auto;
}
/* マップをカード風に */
.access iframe {
  display: block;
  width: min(975px, 92%);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border: 1px solid #e6e6d5;
}

/* PC/SP 切り替え用の高さは、元の width/height でOK */
@media (min-width: 769px) {
  .access iframe.pc-only {
    height: 360px;
    display: block;
  }
  .access iframe.sp-only {
    display: none;
  }
}
@media (max-width: 768px) {
  .access iframe.sp-only {
    height: 320px;
    display: block;
  }
  .access iframe.pc-only {
    display: none;
  }
}

/* 施設一覧 */
.access dl {
  width: min(975px, 92%);
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: 1fr 1.4fr; /* 左：施設名／右：住所 */
  row-gap: 16px;
  column-gap: 20px;
  font-size: 0.98rem;
}

/* 施設名側（.area-border + dt） */
.access .area-border {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 10px 0;
}

.access .area-border dt {
  font-weight: 600;
  color: #4a6c3f;
  position: relative;
}

/* 左側の小さなアクセントライン */
.access .area-border dt::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7cbc5b;
  margin-right: 8px;
}

/* 住所側 */
.access dd {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: #4a4a4a;
}

  /* =======================================
     ここからスマホ（max-width:600px）
     ※ responsive.css に分離してもOK
     ======================================= */
  
  @media (max-width: 600px) {
    /* 理念（SP） */
    .company_policy {
      margin-top: 10vw;
    }
  
    .company_policy h3 {
      margin-top: 19px;
      margin-left: 51px;
      margin-bottom: 60px;
      font-size: 2.1875rem;
      line-height: 67px;
    }
  
    .company_policy .company_policy-img {
      position: relative;
      width: 90vw;
      order: 1;
    }
  
    .company_policy-img img[alt="子供と車いすの高齢女性"] {
      width: 100%;
    }
  
    .policy {
      flex-direction: column;
      width: 90vw;
      margin: 0 auto;
    }
  
    .policy h2 {
      order: 0;
      width: 90vw;
      text-align: center;
      margin: 0 auto;
    }
  
    .policy h2 img {
      width: 25vw;
    }
  
    .policy h3 {
      order: 2;
      margin: 5vw 0;
      font-size: 5vw;
      line-height: 1.6;
    }
  
    .company_policy .company_policy-img .right-leaf {
      position: absolute;
      right: -7vw;
      top: 25vw;
    }
  
    /* メッセージ（SP） */
    .company_message {
      width: 95vw;
      margin: 20vw auto;
    }
  
    .company_message .message-ttl {
      width: 90vw;
      margin: 0 auto;
      align-items: center;
      flex-direction: column;
    }
  
    .company_message .message-ttl h2 {
      margin: 0 auto;
      width: 90vw;
      text-align: center;
    }
  
    .company_message .message-ttl h2 img {
      width: 30vw;
      margin: 0 auto;
    }
  
    .company_message .message-ttl h3 {
      margin: 0 auto;
      font-size: 1.375rem;
    }
  
    .company_message p {
      display: block;
      margin: 5vw auto 0;
      width: 84vw;
      font-size: 3vw;
      line-height: 1.8;
    }
  
    .company_policy-img {
      position: relative;
      width: 90vw;
      margin: 0 auto;
    }
  
    .company_policy-img img {
      width: 100%;
    }
  
    .company_policy-img .right-leaf {
      position: absolute;
      width: 20vw;
      bottom: -330vw;
      right: -8vw;
    }
  
    .company_policy-img .sign {
      width: 40vw;
      position: absolute;
      bottom: -320vw;
      right: 6vw;
    }
  
    /* 4つの柱（SP） */
    .pillars {
      background-color: #E7D4A5;
      border-radius: 5px;
      width: 100%;
      padding: 20vw 0;
    }
  
    .pillars .pillars-ttl {
      position: relative;
      flex-direction: column;
      align-items: center;
      width: 90vw;
      margin: 0 auto 10vw;
    }
  
    .pillars-ttl h2 {
      width: 90vw;
      margin: 0 auto;
      text-align: center;
    }
  
    .pillars-ttl h2 img {
      width: 50vw;
    }
  
    .pillars .pillars-ttl h3 {
      display: inline-block;
      margin: 10vw 0;
      width: 90vw;
      height: auto;
      font-size: 4vw;
      line-height: 1.6;
    }
  
    .pillars .pillars-ttl .right-leaf {
      position: absolute;
      bottom: 4vw;
      width: 10vw;
      right: -5vw;
    }
  
    .pillars .pillars-ttl .right-leaf img {
      width: 100%;
    }
  
    .pillar-content {
      margin: 0 auto 15vw;
      width: 90vw;
      grid-template-columns: 90vw;
      grid-template-rows: repeat(3, auto);
      grid-row-gap: 3vw;
      grid-template-areas:
        "h1-area"
        "img-area"
        "text-area";
    }
  
    .pillar-content h2 {
      width: 90vw;
      margin: 0 auto;
      text-align: center;
      grid-area: h1-area;
    }
  
    .pillar-content h2 img {
      width: 50vw;
    }
  
    .pillar-content.type2 {
      margin: 0 auto 5vw;
      width: 90vw;
      grid-template-columns: 90vw;
      grid-template-rows: repeat(3, auto);
      grid-row-gap: 3vw;
      grid-template-areas:
        "h1-area"
        "img-area"
        "text-area";
    }
  
    .pillar-content.type2 h2 img {
      width: 40vw;
    }
  
    .pillar-content.type2.title4 h2 img {
      width: 55vw;
    }
  
    .pillar-content p {
      grid-area: text-area;
    }
  
    .pillar-content .pillar-img {
      grid-area: img-area;
      margin: 0;
      width: 90vw;
    }
  
    .pillar-content .pillar-img img {
      width: 100%;
    }
  
    #container {
      position: relative;
      z-index: 1;
    }
  
    section.fixed {
      position: -webkit-sticky;
      position: sticky;
    }
  
    /* 沿革（SP） */
    .history {
      padding: 60px 0 80px;
    }
    .history h2 img{
      width: 25%;
    }
    .history .container {
      padding-left: 26px;
    }
  
    .history .container::before {
      left: 13px;
    }
  
    .history .step {
      display: block;
      padding-left: 18px;
    }
  
    .history .step::before {
      left: -18px;
    }
  
    .history .step-title {
      width: 100%;
      margin-bottom: 4px;
      font-size: 1rem;
    }
  
    .history .step-text {
      border-radius: 16px;
      font-size: 0.9rem;
      padding: 10px 12px;
      width: auto;
    }
  
    .history .yellow-leaf {
      left: 0;
      bottom: 0;
      width: 50px;
    }
  
    .history .yellow-leaf img {
      width: 100%;
      height: auto;
    }
  
    /* 法人概要（SP） */
    .company-company h2 img{
      width: 40%;
    }
    .company-company .overview {
      padding: 30px 20px;
    }
  
    .company-company dl {
      grid-template-columns: 1fr;
    }
  
    .company-company dt::after {
      display: none;
    }
  
    .company-company dd {
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(0,0,0,0.15);
    }
  
    /* アクセス（SP） */
    .access h2 img{
      width: 40%;
    }
    .access dl {
      grid-template-columns: 1fr;
    }
    .access dt {
      margin-top: 1rem;
    }

  
    .access .area-border,
    .access dd {
      padding: 8px 4px;
    }
  
    .access dd {
      border-bottom: 1px solid rgba(0,0,0,0.15);
      margin: 0;
    }
  }
  