
/* 共通見出しクラス */
.section_title {
  font-size: 64px;
  color: #1976D2;
  margin-bottom: 24px;
  line-height: 1.2;
  text-align: center;
}
@media (max-width: 768px) {
  .section_title {
    font-size: 36px;
  }
}

.section_title .tit_ja{
  color: #222;
  font-size: 24px;
  display: block;
}


.message_section .section_title{
  font-size: 52px;
  text-align: left;
}
.history_section .section_title{
  text-align: left;
}


/* ページロード時のフェードイン用 */
/*.company_page_contents {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.company_page_contents.is_visible {
  opacity: 1;
  transform: translateY(0);
}*/



/* ========================================================================= */
/* Daiichiの経営理念 */


.about_section {
    padding: 64px 24px;
    position: relative;
  }

  .about_section .about_inner{
    max-width: 1366px;
    margin: 0 auto;
  }
  
  .about_mission {
    text-align: center;
    margin-bottom: 64px;
  }

  .about_mission .about_sub {
    font-size: 24px;
    color: #444;
  }
  .about_mission .about_text {
    font-size: 16px;
    line-height: 2.4;
    color: #444;
  }
  .about_mission .about_text .bText{
    font-size: 20px;
    color: #003E85;
  }

  
  .about_conduct {
    padding-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
  }


  .about_conduct_image img {
    width: 100%;
    max-width: 520px;
    border-radius: 8px;
  }
  /* scroll animation */
  .about_conduct_image img.zoom-target {
    opacity: 0;
    transform: scale(0.6) rotate(45deg);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  .about_conduct_image img.zoom-target.inview {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  @media (min-width: 769px) {
      
    .about_conduct_image img {
      width: 27.083333333333332vw;
      max-width: initial;
    }

    .about_conduct_image img.zoom-target.inview {
      transition-delay: 0.3s;
    }

  }


  .about_conduct_text {
    flex: 1;
  }

  .about_conduct_text p {
    font-size: 16px;
    margin-bottom: 12px;
    color: #444;
  }
  

  .about_conduct_text h3{
    font-size: 28px;
    color: #1976D2;
    padding-bottom: 24px;
  }
  
  .conduct_list {
    list-style: none;
    padding: 0;
    margin: 0 0 0 1rem;
  }
  
  .conduct_list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #444;
  }
  
  .conduct_en {
    width: 152px;
    display: inline-block;
    font-weight: bold;
    font-size: 24px;
    color: #0b4b93;
  }
  
  .c_head {
    font-size: 42px;
    color: #0b4b93;
  }
  
  .conduct_jp {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1rem;
    color: #1976D2;
    padding-left: 60px;
    margin-left: 18px;
    margin-right: 8px;
    position: relative;
  }
  .conduct_jp::before{
    content: '';
    background: url(../images/)no-repeat;
    width: 46.5px;
    height: 2px;
    position: absolute;
    top: 50%;
    left: 0px;
    transform: translateY(-50%);
  }
  
  .conduct_desc {
    padding-left: 18px;
    margin-top: 4px;
    font-size: 16px;
    text-align: right;
    color: #444;
  }


  /* SP対応 */
  @media (max-width: 768px) {
    .about_mission{ margin-bottom: 0; }
    .about_mission .about_text,
    .about_mission .about_text .bText{ font-size: 16px; }

    .about_conduct { flex-direction: column; gap: 18px; }
    .about_conduct_text { text-align: center; }

    .conduct_list{ margin: 0 auto; }
    .conduct_desc{ padding-left: 0; display: block; font-size: 14px; text-align: center; }

    .circle_border_b, .circle_border_p, .circle_par_p, .circle_dots_p { display: none; }
  }
  


/* ========================================================================= */
/* 代表メッセージ ＆ コンセプトアート説明 */


.message_section {
  box-sizing: border-box;
  width: 100%;
  background: #f5f7fc;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 24px 24px;
  padding: 120px 0;
  position: relative;
}
.message_section::before{
  content: '';
  width: 100%;
  height: 320px;
  border-radius: 100%;
  background: #f5f7fc;
  position: absolute;
  top: -160px;
  left: 0;
  z-index: -1;
}
  
  .message_inner {
    max-width: 1366px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
    z-index: 5;
  }
  
  .message_image img {
    border-radius: 8px;
    display: block;
    object-fit: cover;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  }
  
  .message_content {
    flex: 1;
    min-width: 320px;
  }
  
  .message_label {
    font-size: 24px;
    color: #222;
  }
  

  .message_text p {
    font-size: 16px;
    line-height: 2;
    color: #444;
    margin-bottom: 24px;
  }
  .message_text p.message_lead {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #222;
  }
  
  .message_signature {
    text-align: right;
    font-size: 16px;
    margin-top: 36px;
  }
  
  /* スマホ対応 */
  @media (max-width: 768px) {

    .about_conduct_text h3{ font-size: 20px; padding-bottom: 12px; }
    .message_section{ padding: 0; }
    .message_section::before{ height: 100px; top: -50px; }
    .message_section .section_title{ margin-top: 24px; font-size: 36px; }
    .message_section .section_title .tit_ja{ font-size: 18px; }
    .message_inner { flex-direction: column; gap: 0; padding: 48px 24px; }
    .message_lead{ font-size: 18px; }
    .message_signature { text-align: left; }

    .message_image .msg_img{ position: relative; }
    .message_image .msg_img_02{ display: none; }
    .message_image.rsView{ display: block; margin-top: 64px; }

  }


  @media (min-width: 769px) {

    .message_inner{ padding: 0 24px; }
    
    .message_image.rsView{ display: none; }

    .message_image {
      /* width: 720px; */
      width: 37.5vw;
      height: auto;
      flex-shrink: 0;
      position: -webkit-sticky;
      position: sticky;
      top: 180px; /* 固定位置：ヘッダーなどとバランス調整 */
      aspect-ratio: 1920 / 1678;
      align-self: flex-start;
    }

    .message_image .msg_img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      opacity: 0;
      transition: opacity 0.8s ease;
    }
    
    .message_image .msg_img_01 {
      opacity: 1;
      z-index: 1;
    }
    
    .message_image.active .msg_img_01 {
      opacity: 0;
    }
    
    .message_image.active .msg_img_02 {
      opacity: 1;
      z-index: 2;
    }
  

    .message_content { flex: 1; }
  
    .message_text { margin-top: 24px; }
    .message_text.sEvent02{ margin-top: 70vh; padding-bottom: 15vh; }


  }
  


/* ========================================================================= */
/* 沿革 */


  .history_section {
    position: relative;
    padding: 80px 24px;
  }
  
  .history_inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 50;
  }
  
  .history_list {
    list-style: none;
    padding-top: 24px;
    margin: 0 0 0 12px;
    position: relative;
  }
  
  .history_list li {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 36px;
    padding-bottom: 36px;
  }
  
  .history_list li::before {
    content: '';
    width: 20px;
    height: 20px;
    background: #1976D2;
    border-radius: 50%;
    position: absolute;
    left: -7px;
    top: 4px;
    z-index: 5;
  }
  .history_list li::after{
    content: '';
    width: 6px;
    height: 100%;
    background: #EEF3FF;
    position: absolute;
    bottom: -4px;
    left: 0;
    z-index: 2.5;
  }
  .history_list li:last-child::after{
    display: none;
  }
  
  .history_list li .year {
    font-size: 18px;
    font-weight: bold;
    color: #1976D2;
    min-width: 80px;
    margin-right: 8px;
    white-space: nowrap;
  }
  
  .history_list li .dot_line::after {
    content: "── …";
    color: #1976D2;
    margin-right: 8px;
  }
  
  .history_list li .event {
    padding-left: 12px;
    flex: 1;
    line-height: 1.8;
    font-size: 15px;
    color: #444;
  }
  
  /* スマホ対応 */
  @media (max-width: 768px) {

    .history_section{ padding: 40px 24px; }
    .section_title { font-size: 36px; }
    .history_list li { flex-direction: column; padding-left: 24px; }
    .history_list li .year { margin-bottom: 4px; }
    .history_list li .dot_line::after{ display: none; }
    
  }
  


/* ========================================================================= */
/* 下層ページリンク */


  .company_link_section {
    background: #eef3fe;
    padding: 64px 24px;
  }
  
  .company_link_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1366px;
    margin: 0 auto;
  }
  
  .company_link_card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #222;
    box-shadow: 0 0 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
  }
  
  .company_link_card img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .company_link_info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1976D2;
    position: relative;
  }
  .company_link_info::after {
    content: '\f061'; /* Font Awesomeの右矢印 */
    color: #fff;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    font-size: 14px;
    transition: transform 0.3s ease;
  }

  
  .link_title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
  }


  @media (hover: hover) {
    .company_link_card:hover {
      transform: scale(1.02);
    }  

    .company_link_card:hover .company_link_info::after {
      transform: translateY(-50%) scale(1.3);
    }
  }


  /* スマホ対応 */
  @media (max-width: 768px) {

    .company_link_section{ padding: 36px 12px; }
    .company_link_grid { grid-template-columns: 1fr; gap: 12px; }
    .company_link_card{ border-radius: 6px; }
    
  }
  



/* ================================================================================================================ */
/* 下層ページ */



  .company_page_section {
    max-width: 1366px;
    margin: 64px auto 0;
    padding: 0 24px;
  }
  
  .company_page_inner {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    position: relative;
  }
  
  
  /* 下層ページナビ */
  .company_page_nav {
    width: 260px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 120px;
  }
  
  .company_page_nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: none;
  }
  
  .company_page_nav li {
    border-bottom: 1px solid #E6EEF8;
    position: relative;
  }
  
  .company_page_nav li:last-child {
    border-bottom: 1px solid #E6EEF8;
  }
  
  .company_page_nav a {
    display: block;
    padding: 16px 48px 16px 20px;
    text-decoration: none;
    font-weight: bold;
    color: #222;
    background: #fff;
    position: relative;
    transition: 0.3s;
  }
  
  .company_page_nav li.active a {
    background: #f0f6ff; /* アクティブ背景 */
    color: #1976D2;
    pointer-events: none;
    padding-left: 36px;
  }
  
  .company_page_nav a::after {
    content: '\f061';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    font-size: 12px;
    color: #1976D2;
    transition: color 0.3s;
  }
  
  .company_page_nav li:not(.active) a::after {
    color: #1976D2; /* 非アクティブ時も青アイコンで統一 */
  }
  
  .company_page_nav a:hover {
    background: #f0f6ff;
    color: #1976D2;
  }



  /* 下層ページ コンテンツ */
  .company_page_contents{
    width: 100%;
  }

  .section_head_single{
    font-size: 28px;
    color: #003E85;
    margin-bottom: 12px;
  }
  .section_head_dual {
    display: flex;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 24px;
  }
  .section_head_dual .en {
    color: #1976D2;
    font-size: 36px;
    font-weight: bold;
    line-height: 36px;
    margin-right: 28px;
    position: relative;
    padding-right: 28px;
  }
  .section_head_dual .en::after {
    content: "";
    display: block;
    width: 6px;
    height: 100%;
    background: #003E85;
    position: absolute;
    top: 0;
    right: 0;
  }
  
  .section_head_dual .ja {
    color: #222;
    font-size: 22px;
  }
  
  

/* ================================================================================================================ */
/* 会社概要・アクセス */



  /* ------------------------ */
  /* 会社概要リストデザイン    */
  /* ------------------------ */
  
  .company_overview_list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 48px;
    padding: 0;
  }
  
  .overview_item {
    display: flex;
    align-items: center;
    background: #f5f7fc; /* 背景薄グレー */
    border-radius: 12px;
    overflow: hidden;
    min-height: 64px;
  }
  
  .overview_label {
    width: 200px;
    min-width: 200px;
    font-weight: bold;
    font-size: 16px;
    color: #222;
    padding: 20px;
    border-right: 1px solid #d6deeb; /* 縦線 */
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .overview_value {
    flex: 1;
    font-size: 16px;
    color: #444;
    padding: 20px 20px 20px 36px;
    display: flex;
    align-items: center;
  }
  
  
  .company_map_block{
    margin-bottom: 36px;
  }
  .company_map_block p{
    margin-bottom: 12px;
  }


/* SP対応 */
@media (max-width: 768px) {

  .company_page_section{ margin: 28px auto 0; padding: 0; }
  .section_head_dual{ border-left: 6px solid #003E85; padding-left: 1rem; margin-bottom: 24px; line-height: 1.6rem; flex-direction: column; align-items: flex-start; }
  .section_head_dual .en{ font-size: 28px; padding-right: 24px; margin-right: 24px; }
  .section_head_dual .en::after{ display: none; }
  .section_head_dual .ja{ font-size: 18px; }

  .company_page_inner { flex-direction: column-reverse; padding: 24px 12px 0; gap: 24px; }

  .company_page_nav { width: 100%; margin-bottom: 24px; }


  .overview_item {
    flex-direction: column;
    align-items: stretch;
  }

  .overview_label {
    width: 100%;
    min-width: auto;
    border-right: none;
    border-bottom: 1px solid #d6deeb;
    text-align: left;
    justify-content: flex-start;
    padding: 16px;
  }

  .overview_value {
    width: 100%;
    padding: 16px;
  }

}



/* ================================================================================================================ */
/* 営業所一覧 グループ企業一覧 */



.office_card_inner{
  padding-bottom: 12px;
  margin-bottom: 36px;
}


.office_card {
  padding: 18px;
  margin-bottom: 12px;
  background: #fff;
  border: 12px solid #eef3fe;
  border-radius: 12px;
}

.office_card_head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dotted #1976D2;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.office_card_head h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: bold;
  color: #003E85;
}
.office_card_head h3 img.head-logotitle{
  display: inline-block;
  width: 120px;
}

.map_open_btn {
  display: inline-block;
  background: #1976D2;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.map_open_btn:hover {
  opacity: 0.8;
}

.office_info_block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
}
.office_info_block:last-child{
  margin-bottom: 0;
}

.info_label {
  display: inline-block;
  min-width: 80px;
  background: #1976D2;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 4px;
  text-align: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.info_value {
  flex: 1;
  font-size: 16px;
  color: #444;
}


/* 本店一覧 */
.office_image_info_wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 24px auto 0;
}

.office_image_box img {
  width: 200px; /* 画像サイズ調整 */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.office_image_info_text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.office_image_info_text h3{
  color: #003E85;
}

.office_sns_links {
  display: flex;
  gap: 12px;
  margin: 12px 0 16px;
}

.office_sns_links .sns_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  color: #fff;
  background: #ccc;
  text-decoration: none;
  transition: 0.3s;
}
.office_sns_links .sns_btn.pworld {
  background: #E60012; /* P-WORLDの赤 */
  width: auto;
  padding: 0 18px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: bold;
  font-family: sans-serif;
  line-height: 1;
}
.office_sns_links .sns_btn.line {
  background: #06C755; /* LINEグリーン */
}
.office_sns_links .sns_btn.x {
  background: #000; /* X(旧Twitter)ブラック */
}
.office_sns_links .sns_btn:hover {
  opacity: 0.8;
}


.office_info_block .official_site_btn {
  display: inline-block;
  margin-left: auto;
  border: 1px solid #1976D2;
  background: #1976D2;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 9999px;
  text-decoration: none;
  float: right;
  transition: 0.3s;
}
@media (hover: hover) {
  .office_info_block .official_site_btn:hover{
    background: #fff;
    color: #1976D2;
    transform: scale(1.05);
  }
}


@media (max-width: 768px) {

  .office_image_info_wrap{ margin-top: 32px; flex-direction: column; gap: 12px; }

  .office_info_block .official_site_btn{
    display: block;
    width: 120px;
    text-align: center;
    float: none;
    margin-top: 8px;
    margin-left: auto;
  }

}


/* map modal */
.map_modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.map_modal_overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.map_modal_box {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  max-width: 960px;
  width: 90%;
  position: relative;
  transform: translateY(40px);
  opacity: 0;
  transition: 0.4s ease;
}

.map_modal_overlay.active .map_modal_box {
  transform: translateY(0);
  opacity: 1;
}

.map_modal_close {
  width: 48px;
  height: 48px;
  border-radius: 0 12px 0 12px;
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px;
  background: #1976d2;
  border: none;
  font-size: 0;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.map_modal_close::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 600;
  content: "\f00d";
  font-size: 24px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s;
}

.map_modal_close:hover {
  opacity: 0.7;
}

.map_modal_bg {
  position: absolute;
  inset: 0;
  cursor: pointer;
}



/* ================================================================================================================ */
/* 社会活動について */


.company_page_contents p.text{
  line-height: 2.4rem;
  padding-left: 1rem;
  margin-bottom: 32px;
  color: #444;
}
.highlight_blue {
  color: #1976D2;
  font-size: 1.2em; /* 少し大きく */
  font-weight: bold;
}


.mecenat_section {
  /*background: linear-gradient(to right, #ffffff 60%, #f9fbff 100%);*/
  background: url(../images/company/pastel_gradient_1.jpg)no-repeat center;
  background-size: cover;
  margin: 48px auto;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.mecenat_section::after{
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: .7;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.mecenat_box {
  max-width: 90%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  z-index: 5;
}

.section_head_blue {
  font-size: 24px;
  color: #1976D2;
  font-weight: bold;
  margin-bottom: 24px;
}

.mecenat_box p {
  font-size: 16px;
  line-height: 2;
  color: #222;
  margin-bottom: 32px;
}

.mecenat_box .site_util_button{
  margin: 0 auto;
}



.activity_section {
  position: relative;
  padding: 0;
  margin: 64px auto;
}

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

.activity_content {
  padding:24px 0 0;
}

.activity_buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.activity_buttons{
  width: 90%;
  margin: 24px auto 0;
}


@media (max-width: 768px) {

  .activity_buttons{ flex-direction: column; gap: 0; }

}
