* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
  --vw-base: 390;
}

/* sidemenu */
.side_menu {
    display: none;
}

/* ヘッダーのスタイル*/
header {
    width: 100%;
    height: 18vh;
}

header .header_menu {
    position: fixed;
    width: 94%;
    height: 8%;
    top: 5%;
    left: 3%;
    border-radius: 10px;
    z-index: 10;
    display: flex;
    flex-direction: Row;
    justify-content: space-between;
    padding: 5px 2% 5px 2%;
    background-color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1)
}

.logo {
    display:flex;
    height: 100%;
    flex-direction: Row;
    align-items: center;
}
.logo_img{
    height: 100%;
}

.logo_img img {
    height: 100%;
    padding: 0 3px 0 0;
}
.logo_text a{
    text-decoration: none;
    color: black;
}

.nav_menu {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav_menu ul {
    display: flex;
    list-style: none;
}

.nav_menu li {
    position: relative;
}

.sub_menu {
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    padding: 18% 0 0 0;
    transition: opacity 0.3s ease
}

.sub_menu_ul {
    border-radius: 5%;
    background-color: white;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    width: 14vw;
    flex-direction: column;
    padding: 5% 3%;
}

.nav_menu a {
    padding: 0 10px;
    text-decoration: none;
    color: black;
    transition: color 0.3s;
}
.nav_menu a:hover {
    color: gray;
}
.nav_menu .has_sub_menu:hover .sub_menu {
    opacity: 1;
}

/* メニューボタン（PC版では非表示） */
.menu-button {
    display: none;
}

/* ヘッダーの背景画像 */
.header_img {
    display: flex;
    height: 100%;
    width: 100%;
    background-image: url("../images/image7.jpeg");
    background-size: cover;
    background-position: center;
}

.heading-11 {
    font-size: 4vw;
    max-height: 2.4em;
    position: relative;
    padding: .5em .7em;
    background-color: #2b2b2b;
    color: #fff;
}

.heading-11::before {
    position: absolute;
    top: 100%;
    left: 0;
    border-bottom: solid 10px transparent;
    border-right: solid 20px #1b1b1b;
    content: '';
}

#title1 {
    margin-top: 15%;
    margin-left: 20%;
}
#title2 {
    margin-top: 30%;
    margin-left: -10%;
}


/* mainセクションのスタイル */
.main_section {
    padding: 10%;
    display: flex;/* 子要素を柔軟に並べるモード */
    flex-direction: column; /* 縦方向に並べる */
    font-family: 'Noto Serif', serif;
    /* background-color: yellow; */
}

.container {
    display: flex;/* 子要素を柔軟に並べるモード */
    flex-direction: row; /* 横方向に並べる */
    border-radius: 12px;           /* 角丸の半径 */
    margin: 0 0 5% 0;
    transition: transform 0.8s;
    width: 100%;
}

.container:hover {
    transform: translateY(-5px); /* 上に5px移動 */
    box-shadow: 3px 10px 15px  rgba(0, 0, 0, 0.15); /* 影を強調 */
}

.container_label{
    padding: 3% 3%;
    width: 25%;
}

.container_label h1{
    font-family: "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
    font-size: calc(100vw / var(--vw-base)* 12);
}

.container_content {
    padding: 3% 0;
    font-size: calc(100vw / var(--vw-base)* 5);
    width: 75%;
}

/* 会社概要 */
.main_section dl {
}

.data_table_row {
    width: 100%;
    padding: 3% 0;
    display: flex;/* 子要素を柔軟に並べるモード */
    border-bottom: 2px solid rgba(0, 0, 0, 0.1); /* 線の太さ、種類、色 */
}

.main_section dt {
    font-weight: bold;
    width: 15%;
}

.main_section dd {
    margin: 0;
}


/* 沿革 */
.timeline {
    display: flex;/* 子要素を柔軟に並べるモード */
    flex-direction: row; /* 横方向に並べる */
}

.timeline_date {
    width: 20%;
    display: flex;/* 子要素を柔軟に並べるモード */
    flex-direction: row; /* 横方向に並べる */
    justify-content: space-between;
    color: #0099ff;
    font-weight: bold;
}
.year {
}

.month {
    padding: 0 0 20% 0;
}

.center_line {
    width: 20px;
    display: flex;
    justify-content: center;
    position: relative;
    align-items: flex-start; /* ← 上揃えにする */
}

.center_line::before {
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #0066cc;
    transform: translateX(-50%);
    z-index: 0;
}

.circle {
  width: 12px;
  height: 12px;
  background: #0099ff;
  border-radius: 50%;
  top: 6px;
  z-index: 1;
  position: relative;
  transform: translateY(-50%);
}

.month {
}

.timeline_content{
    width: 80%;
    padding: 0 5%;
    display: flex;
    align-items: left;
    flex-direction: column; /* 横方向に並べる */
}

.next_p {
    padding: 0 0 0 3%;
}

/* 関連事業社 */
.group_company {
    padding: 5% 0 5% 0;
    justify-content: center;
    align-items: center;
    height: 100%;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.group_company a {
    text-decoration: none;
    color: black;
    font-size: calc(100vw / var(--vw-base)* 7);
    width: 75%;
}

.group_company a:hover{
    text-decoration: underline;
}

.group_company h1{
    font-family: "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
    font-size: calc(100vw / var(--vw-base)* 12);
    padding: 3% 3%;
    width: 25%;
}

/* map */
.address dt {
    font-weight: bold;
    width: 15%;
}
.address dd {
    padding: 0 0 3% 0;
    margin: 0;
}
.googlemap iframe {
    width: 95%;
    min-height: 30vh;
}


/* お問い合わせフォーム */
.contact_form {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
}

.form_group {
    margin-bottom: 25px;
}

.form_group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form_group input,
.form_group select,
.form_group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}

.form_group input:focus,
.form_group select:focus,
.form_group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.form_group textarea {
    resize: vertical;
    min-height: 120px;
}

.required {
    color: #dc3545;
}

.submit_btn {
    display: block;
    width: 200px;
    margin: 30px auto 0;
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit_btn:hover {
    background-color: #0056b3;
}


/* お問い合わせボタン */
#contact_container {
    align-items: center;/* 子要素を中央ぞろえ */
    flex-direction: column;
    display: flex;
    width: 100%;
}

a.btn-border {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;

  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  position: relative;
  display: inline-block;
  padding: 1rem 4rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-transition: all 0.3s;
  transition: all 0.3s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #212529;

  border-radius: 0;

  width: 45%;
}

a.btn-border:before,
a.btn-border:after {
  -webkit-box-sizing: inherit;
  box-sizing: inherit;

  position: absolute;

  width: 100%;
  height: 2px;

  content: '';
  -webkit-transition: all .3s;
  transition: all .3s;

  background: #000;
}

a.btn-border:before {
  top: 0;
  left: 0;
}

a.btn-border:after {
  right: 0;
  bottom: 0;
}

a.btn-border:hover:before,
a.btn-border:hover:after {
  width: 0;
}

/* フッターのスタイル */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

footer .container {
    width: 80%;
    margin: 0 auto;
}

footer address {
    font-size: 14px;
    margin-top: 10px;
}


/* スマホ向けスタイル */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

/* メニュー表示 */
header .nav_menu{
    display: none;
}
header .header_menu_phone {

}
.menu-button {
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1vh;
  width: 6vh;
  height: 6vh;
  background-color: #ffffff;
  border: 0px;
}

.menu-button__line,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 60%;
  height: 2px;
  background-color: #000000;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-button.is-opened .menu-button__line {
  opacity: 0;
}

.menu-button.is-opened::before {
  transform: translateY(1.4vh) rotate(45deg);
}

.menu-button.is-opened::after {
  transform: translateY(-1.4vh) rotate(-45deg);
}

.side_menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    right: 0;
    z-index: 5;
    width: 100%;
    height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background-color: #555555;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100vh);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
    color: #ffffff;
}
.side_menu.is-opened {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.side_menu h2 {
  text-align: center;
  padding: 10% 0 15% 0;
}

.side_menu ul {
  list-style: none;
  width: 90%;
  text-align: center;
}

.side_menu li {
    border-bottom: 1px solid #ffffff;
    padding: 5% 0 ;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.side_menu a {
  text-decoration: none;
  text-align: left;
  color: #ffffff;
  padding: 0 5%;
  width: 100%;
  height: 100%;
}
.space {
    display: inline-block;
    width: 1em;
}
div .space{
    height: 20%;
}

.submenuItems {
  display: none;
  background: #C8E6C9;
  li {
    border-bottom: 1px solid #B6B6B6;
  }
}

.submenuItems a {
  display: block;
  color: #727272;
  padding: 12px 12px 12px 45px;
  transition: all 0.4s ease-out;
  &:hover {
    background-color: #CDDC39;
    color: #fff;
  }
}

/* 　＝＝＝　　header　　＝＝＝　　 */
.heading-11 {
    font-size: 6vw;
    max-height: 2.4em;
    max-width: 300%;
    position: absolute;
    padding: .5em .7em;
    background-color: #2b2b2b;
    color: #fff;
}

.heading-11::before {
    position: absolute;
    top: 100%;
    left: 0;
    border-bottom: solid 10px transparent;
    border-right: solid 20px #1b1b1b;
    content: '';
}

#title1 {
    top: 20%;
    left: -10%;
}
#title2 {
    top: 30%;
    left: 25%;
}

/* mainセクション */
.main_section{
    padding: 5% ;
    width: 100%;
}
main .container {
    margin: 0;
    width: 100%;
    padding: 0;
}


.container {
    flex-direction: column;
    align-items: center;
    box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.15); /* 影を強調 */
    margin: 0 0 5% 0;
    padding: 0 3%;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform: translateY(20px);
    opacity: 0;
}

.container.visible {
    transform: translateY(0);
    opacity: 1;
}

.container_label{
    width: 100%;
    text-align: center;
    h1{
        font-size: 5vw;
    }
}

.container_content {
    padding: 5% 0;
    font-size: 3vw;
    width: 94%;
}
.main_section dt {
    width: 5em;
}
.main_section dd {
    padding: 0 0 0 2%;
}

/* 沿革 */
.timeline_date {
    width: 30%;
}
.timeline_content{
    width: 70%;
}

/* 関連会社 */
.group_company {
    padding: 5% 0 5% 0;
    justify-content: center;
    align-items: center;
    height: 100%;
    display: flex;
    flex-direction: row;
    .h1 {
        width: 30%;
    }
    .a {
        width: 70%;
    }
}

/* お問い合わせボタン */
a.btn-border {
    width: 90%;
    padding: 0 5%;
    font-size: 7vw;
}
}
