@charset "utf-8";

h1, h2, h3, h4, h5, h6 {
	text-align: center;
}

.page .site-body {
    padding: 0;
}
.wp-singular .site-header {
	box-shadow: none;
}
.site-body .container {
	max-width: inherit;
	padding-right: 0;
  padding-left: 0;
}


/*タイトルの下の文字*/
.page-header-title::after {
    content: "HISTORY";
    text-align: left;
  display: block;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 1px;
}




/* ===================================================
   【最上部背景画像エリア】↓↓
   =================================================== */
.page_main-visual {
    width: 100%;
    height: 450px;
    background-image: url('../img/history/hist_bg.webp');
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
  margin-top: -170px;
}
/* ===================================================
   【最上部背景画像エリア】↑↑
   =================================================== */

/* ===================================================
   【沿革】↓↓
   =================================================== */
.sec_history {
  padding: 50px;
}


.history_table {
    border-collapse: collapse !important;
    border: none !important;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
}


.history_table td {
    border: none !important;
    background: transparent !important;
    padding: 35px 0 !important; /* 余白をたっぷり取ると高級感が出ます */
    position: relative;
    vertical-align: top;
}

/* 左側：年月エリア */
.history_table .column-1 {
    width: 30%;
    text-align: right;
    padding-right: 50px !important;
    line-height: 1.4;
}

/* 西暦 */
.year-main {
    display: block;
    color: #000;
    font-size: 1.4rem; /* 大きく */
    font-weight: 800;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

/* 和暦*/
.year-sub {
    display: block;
    color: #888;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 右側：内容 */
.history_table .column-2 {
    text-align: left;
    padding-left: 50px !important;
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    padding-top: 35px !important; /* 西暦の高さに微調整 */
}

/* 中央の縦線 */
.history_table .column-1::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(26, 42, 68, 0.1), 
        rgba(26, 42, 68, 1) 15%, 
        rgba(26, 42, 68, 1) 85%, 
        rgba(26, 42, 68, 0.1)
    );
}

/* 最初の行と最後の行の線調整 */
.history_table .row-1 .column-1::after {
    top: 45px; /* ドットの位置 */
    height: calc(100% - 45px);
}
.history_table tr:last-child .column-1::after {
    height: 45px;
}

/* 二重円ドット */
.history_table .column-1::before {
    content: "";
    position: absolute;
    top: 45px;
    right: -6px;
    width: 12px;
    height: 12px;
    background-color: #021887;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(26, 42, 68, 0.15);
}

/* マウスホップで少し浮き上がる（PC用） */
.history_table tr:hover .column-1::before {
    background-color: #cd162c;
    box-shadow: 0 0 0 6px rgba(205, 22, 44, 0.2);
    transition: all 0.3s ease;
}


/* ===================================================
   【沿革】↑↑
   =================================================== */



/* ===================================================
   【店舗数】↓↓
   =================================================== */

.sec_store-count {
    width: 100%;
    padding: 80px 0;
    box-sizing: border-box;
  /*margin: 120px 0;*/
}


.sec_store-count .count_inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}


.count_title-block {
    text-align: center;
    color: #fff;
    margin-bottom: 50px;
}

.sec_store-count .ttl_middle_page, .sec_store-count .subtitle_m_page {
  color: #fff;
}



.count_title-block .count_lead {
    font-size: 24px;
    line-height: 1.8;
    margin: 25px 0 0 0;
    letter-spacing: 0.05em;
}


.count_content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}


.count_card_total {
    width: 32%;
    background: #ffffff;
    border-radius: 24px;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.count_card_total h3 {
    font-size: 24px;
    font-weight: bold;
    color: #021887;
    margin: 0 0 20px 0;
}

.count_card_total-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}


.count_store-icon {
    width: 130px;
   
    position: relative;
    margin-bottom: 15px;
}


.count_total-number {
    display: flex;
    align-items: flex-end;
    color: #021887;
}

.count_total-number .count_num {
    font-size: 110px;
    font-weight: bold;
    line-height: 0.9;
    font-family: 'Arial Black', sans-serif;
}

.count_total-number .count_unit {
    font-size: 20px;
    font-weight: bold;
    margin-left: 8px;
    margin-bottom: 5px;
}


.count_grid_sub-cards {
    width: 65%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.count_card_sub {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px 10px;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.count_card_sub h4 {
    font-size: 18px;
    font-weight: bold;
    color: #021887;
    margin: 0;
    line-height: 1.4;
    word-break: break-all;
}

.count_card_sub .count_num {
    font-size: 60px;
    font-weight: bold;
    color: #021887;
    margin: 10px 0 0 0;
    line-height: 1;
    font-family: 'Arial Black', sans-serif;
}


/* ===================================================
   【店舗数】↑↑
   =================================================== */

/**************************************************************************/
/****************** media queries *****************************************/
/**************************************************************************/
/********************************************************************/
/************ max-width: 1100px *************************************/
/********************************************************************/

@media screen and (max-width: 1100px) {

}

/********************************************************************/
/************ max-width: 1024px *************************************/
/********************************************************************/
/*タブレット横*/
@media screen and (max-width: 1024px) {
  /* ===================================================
   【店舗数】↓↓
   =================================================== */
  .count_grid_sub-cards {
        grid-template-columns: repeat(3, 1fr);
    }
  .count_title-block .count_lead {
    text-align: left;
}
/* ===================================================
   【店舗数】↑↑
   =================================================== */
}



/********************************************************************/
/* max-width: 991px ハンバーガー切替サイズ*******************************/
/********************************************************************/
@media screen and (max-width: 991px) {


}

/********************************************************************/
/************ max-width: 834px *************************************/
/********************************************************************/
/*タブレット縦*/
@media screen and (max-width: 834px) {


}

/********************************************************************/
/************ max-width: 768px *************************************/
/********************************************************************/
/*タブレット縦*/
@media screen and (max-width: 768px) {

 
  /* ===================================================
   【最上部背景画像エリア】↓↓
   =================================================== */
  .page_main-visual {
        height: 220px;
    margin-top: -64px;
    }
  /* ===================================================
   【最上部背景画像エリア】↑↑
   =================================================== */

  /* ===================================================
   【沿革】↓↓
   =================================================== */
  .sec_history {
  padding: 20px;
}
  .history_table .column-1 {
        width: 35%;
        padding-right: 30px !important;
    }
    .year-main { font-size: 1.1rem; }
    .year-sub { font-size: 0.75rem; }
    
    .history_table .column-2 {
        padding-left: 30px !important;
        font-size: 15px;
    }

  
  /* ===================================================
   【沿革】↑↑
   =================================================== */
    /* ===================================================
   【店舗数】↓↓
   =================================================== */
   .sec_store-count {
        padding: 50px 0;
     /*margin: 40px 0;*/
    }

.count_title-block {
    margin-bottom: 20px;
}

    .count_title-block .count_lead {
        font-size: 16px;
    }
    .count_title-block .count_lead br {
        display: none;
    }

    .count_content {
        flex-direction: column;
    }

    .count_card_total {
        width: 100%;
        margin-bottom: 25px;
        padding: 25px;
    }
    
    .count_total-number .count_num {
        font-size: 76px;
    }

    .count_grid_sub-cards {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .count_card_sub {
        min-height: 120px;
        padding: 15px 10px;
    }

    .count_card_sub .count_num {
        font-size: 50px;
    }
/* ===================================================
   【店舗数】↑↑
   =================================================== */
  }


/********************************************************************/
/************ max-width: 480px *************************************/
/********************************************************************/
/*スマホ縦*/
@media screen and (max-width: 480px) {
  /* ===================================================
   【沿革】↓↓
   =================================================== */
      .history_table .column-1 {
        padding-right: 20px !important;
    }
  .year-main {
        font-size: 14px;
    }
      .history_table .column-2 {
        padding-left: 20px !important;
        padding-top: 31px !important;
    }
  .history_table .column-1::before {
    top: 39px;
}
  /* ===================================================
   【沿革】↑↑
   =================================================== */
  /* ===================================================
   【店舗数】↓↓
   =================================================== */
/* ===================================================
   【店舗数】↑↑
   =================================================== */
  }