/* 共通タイトルは stylesheet.css で定義。以下は会社概要ページ専用 */
.profile_card_container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;

    margin-top: 2rem;
}
.profile_card {
    position: relative;
    width: 100%;
    padding: 2.2rem 2.2rem 2.4rem;
    background: #ffffff;
    border-radius: 1.4rem;
    border: 1px solid rgba(0, 91, 172, 0.06);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    color: #555;
}
.profile_card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, #c8102e, #005bac);
    opacity: 0.9;
}
.profile_card table{
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
    margin-top: 4px;
}
.profile_card table tr {
    border-bottom: 1px solid #eee;
}
.profile_card table tr:last-child {
    border-bottom: none;
}
.profile_card table th,
.profile_card table td {
    padding: 10px 0;
    vertical-align: top;
}
.profile_card table th {
    width: 28%;
    font-weight: 600;
    color: #005bac;
    padding-right: 14px;
}
.profile_card table td {
    line-height: 1.8;
}

.philosophy_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 10rem 0 0;
}
.philosophy_card_container {
    width: 95%;
    display: flex;
    gap: 2.2rem;
}

.philosophy_card {
    flex: 1;
    position: relative;
    padding: 2.2rem 2.2rem 2.4rem;
    background: #ffffff;
    border-radius: 1.4rem;
    border: 1px solid rgba(0, 91, 172, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
    text-align: left;
    transition: all 0.25s ease;
    overflow: hidden;
    cursor: pointer;
    color: #555;
}
.philosophy_card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 14px;
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(to right, #c8102e, #005bac);
    opacity: 0.9;
}
.philosophy_label {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #005bac;
    margin-top: 10px;
    margin-bottom: 6px;
}
.philosophy_card h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: #222;
}
.philosophy_card p {
    font-size: 1.4rem;
    line-height: 1.9;
    margin: 0;
}
.philosophy_card ul {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0;
    font-size: 1.4rem;
    line-height: 1.9;
}
.philosophy_card ul li {
    padding-left: 1em;
    position: relative;
}
.philosophy_card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #c8102e;
}
.philosophy_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
    color: #111;
}
.history_container{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 0 10%;
    margin: 10rem 0 6rem 0;
}
.history_item_container {
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0 0 0 4rem;
    border-left: 2px solid rgba(0, 91, 172, 0.18);
}
.history_item {
    position: relative;
    margin-bottom: 2.4rem;
}
.history_year_badge {
    position: absolute;
    left: -3.2rem;
    top: 0.6rem;
    width: 6.4rem;
    padding: 0.4rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    border-radius: 99.9rem;
    background: linear-gradient(to right, #c8102e, #005bac);
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    z-index: 1;
    transition: all 0.25s ease;
}
.history_item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #c8102e;
}
.history_card {
    margin-left: 2.4rem;
    padding: 1.4rem 3rem 1.4rem;
    background: #ffffff;
    border-radius: 1.2rem;
    border: 1px solid rgba(0,91,172,0.06);
    box-shadow: 0 0.8rem 2.2rem rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    cursor: pointer;
    color: #555;
}
.history_card h3 {
    font-size: 1.6rem;
    margin: 0 0 4px;
    color: #222;
}
.history_card p {
    font-size: 1.4rem;
    line-height: 1.9;
    margin: 0;
}
.history_item:hover .history_card {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
    color: #111;
}
.history_item:hover .history_year_badge {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}

/* 沿革 続きを見る（開閉アニメーション） */
.history_item_container .history_more_wrapper {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.55s ease-in-out;
    /* 年月バッジ（left: -3.2rem, width: 6.4rem）が切れないよう左に余白 */
    margin-left: -10rem;
    padding-left: 10rem;
}
.history_item_container .history_more_wrapper.is-open {
    max-height: 3000px;
}
.history_more_btn_wrapper {
    text-align: center;
    margin-top: 2rem;
}
.history_more_btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.4rem;
    color: #005bac;
    background: #fff;
    border: 2px solid #005bac;
    border-radius: 99.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}
.history_more_btn:hover {
    color: #fff;
    background: #005bac;
}
.history_more_btn.is-open {
    border-color: #555;
    color: #555;
}
.history_more_btn.is-open:hover {
    color: #fff;
    background: #555;
    border-color: #555;
}

.president_container {
    height: 55vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 10%;
    margin: 10rem 0 6rem 0;
}
.president_content_container {
    width: 100%;
    display: flex;
    gap: 1%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.president_img_card {
    width: 30%;
    height: 30rem;
}
.president_img_card img {
    width: 100%;
    height: 100%;
    border-radius: 1.4rem;
    object-fit: cover;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}
.president_message_card {
    width: 69%;
    height: 30rem;
    padding: 4.5rem 3rem 1.9rem;
    background: #ffffff;
    border-radius: 1.4rem;
    border: 1px solid rgba(0, 91, 172, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    color: #555;
}
.president_message_card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.8rem;
    width: 4.2rem;
    height: 0.3rem;
    border-radius: 99.9rem;
    background: linear-gradient(to right, #c8102e, #005bac);
    opacity: 0.9;
}
.president_message_card p {
    font-size: 1.4rem;
    line-height: 1.9;
    letter-spacing: 0.05rem;
    margin: 0 0 0.9rem;
}
.president_sign {
    margin-top: 1.4rem;
    text-align: right;
    font-size: 1.4rem;
    color: #333;
}
.president_sign span {
    display: inline-block;
    margin-left: 0.4rem;
}
.president_name {
    font-size: 1.35rem;
    font-weight: 600;
    padding-right: 1rem;
}
.president_message_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    color: #111;
}
/* =========================================================
   スマホ（SP） 〜768px：会社概要ページ専用レスポンシブ
========================================================= */
@media (max-width: 768px) {

  /* ---------- 共通 ---------- */
  .top_title_container {
    width: 90%;
    padding-top: 3rem;
    margin-bottom: 2rem;
  }
  .title_container{
    width:100%;
    padding:0 5%;
  }
  .title_container h1 {
    font-size: 2rem;
  }
  .title_container p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
  }
  /* ==========================
      ① 会社概要カード（Profile）
     ========================== */
  .profile_card_container {
    text-align: left;
  }
  .profile_card {
    padding: 1.8rem 1.8rem 2rem;
    color: #111;
  }

  .profile_card table {
    font-size: 1.3rem;
  }
  .profile_card table th {
    width: 100%;
    display: block;
    margin-top: 1.4rem;
  }
  .profile_card table td {
    display: block;
    padding-top: 0.5rem;
  }
  .profile_card table tr {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: block;
  }

  /* ==========================
      ② 経営理念（Philosophy）
     ========================== */
  .philosophy_container {
    height: auto;
    padding: 8rem 5% 2rem;
  }

  .philosophy_card_container {
    flex-direction: column;
    gap: 1.8rem;
  }

  .philosophy_card {
    padding: 1.8rem;
  }
  .philosophy_card h3 {
    font-size: 1.5rem;
  }
  .philosophy_label {
    font-size: 1.1rem;
  }
  .philosophy_card p,
  .philosophy_card ul {
    font-size: 1.3rem;
  }

  /* ==========================
      ③ 歴史・沿革（History）
     ========================== */
  .history_container {
    height: auto;
    padding: 3rem 5%;
  }

  .history_item_container {
    padding: 0;
    border-left: none;
  }

  .history_item {
    margin-bottom: 2rem;
    padding-left: 0;
  }

  .history_year_badge {
    position: relative;
    left: 0;
    top: 0;
    margin-bottom: 0.8rem;
  }

  .history_item::before {
    display: none;
  }

  .history_card {
    margin-left: 0;
    padding: 1.5rem 2rem;
  }

  .history_item_container .history_more_wrapper {
    margin-left: 0;
    padding-left: 0;
  }

  /* ==========================
      ④ 社長メッセージ（President）
     ========================== */
  .president_container {
    height: auto;
    padding: 4rem 5%;
  }

  .president_content_container {
    flex-direction: column;
    gap: 2rem;
  }

  .president_img_card {
    width: 100%;
    height: auto;
  }

  .president_img_card img {
    height: auto;
  }

  .president_message_card {
    width: 100%;
    height: auto;
    padding: 2rem 2rem 2.5rem;
  }

  .president_message_card p {
    font-size: 1.3rem;
  }

  .president_sign {
    font-size: 1.3rem;
  }
}
