body{
    background-color: rgb(255, 255, 255);
}

h2 {
    text-align: center;
    color: #ddd;
}

h1 {
    width: 1000px;
        background: -moz-linear-gradient(top, #233B6C, #494949);
        background: -webkit-linear-gradient(top, #233B6C, #494949);
        background: linear-gradient(to bottom, #233B6C, #494949);

    padding: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 30px;
    text-shadow:
           1px 1px 0px #000, -1px -1px 0px #000,
          -1px 1px 0px #000,  1px -1px 0px #000,
           1px 0px 0px #000, -1px  0px 0px #000,
           0px 1px 0px #000,  0px -1px 0px #000;
    margin-top: 30px;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    border: 6px groove #aaaaaa;
    
}

#kabu{
    margin-left: 20px;
    height: 80px;
    font-weight: bold;
    font-size: 20px;
}

#sagau_name{
    height: 80px;
    margin-top: 40px;
    font-weight: bold;
}

#companyName{
    font-size: 40px;
}

#sagafu{
    margin-top: 20px;
}

header{
    height: auto;
    position: static;
    background-color: #233B6C;
    width: 100%;
    height: 50px;
    text-align: center;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
}

#menuBar {
/*  background: -moz-linear-gradient(top, #51f342, #494949);
  background: -webkit-linear-gradient(top, #51f342, #494949);*/
  background: linear-gradient(to bottom, #233B6C, #494949);
  /*グラデーション以外は省略*/
}

#btnMenuS {
    width: 1500px;

}

/* ===== ページ全体 ===== */
html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main{
    flex: 1;
    width: 100%;
    float: none;
    margin-top: 0;
}

/* ===== フッター本体 ===== */
footer {
    /*background: linear-gradient(to bottom, #51f342, #494949);
    width: 100%;*/
}

/* フッターの読み込み先div */
#in-footer {
    width: 100%;
    text-align: center;
    background: linear-gradient(to bottom, #233B6C, #494949);
    width: 100%;
}

/* フッターメニュー1個ずつ */
#in-footer ul li {
    display: inline-block;
    padding: 0;
    
}

/* フッターリンク */

.spaser{
    height: 100px;
}

.slanting {
    position: relative;
    height: 200px;
    background: #ddd;
}
svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 200px;
    fill: #5f5f5f;
}

.main {
  flex: 1;
}
.main-contents, .left-navi, .right-navi {
    height: 100%;
}
.main-contents{
    width: 1030px;
    margin: 30px auto;
}
#CompanyProfile{
    width: 1530px;
    background-color: rgb(228, 226, 226);
}
.main{
    width: 100%;
    float: right;
    margin-top: 64px;
}

#mapDiv{
    margin-left: -100px;
}

.company-table {
  border-collapse: collapse;
  width: 560px;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 140px;
  font-weight: normal;
  white-space: nowrap;
}

#company-table-div{
    width: 1200px;
}

#gmap{
    margin-top: 100px;
    margin-left: 10px;
}

.wrap {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.wrap iframe {
  width: 35%;
  height: 400px;
  border: 0;
}

.company-info-box {
    width: 900px;
    margin: 20px auto;
    font-family: sans-serif;
    color: #222;
}

.company-info-box h2 {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #111;
}

.company-info-table {
    width: 100%;
    border-collapse: collapse;
}

.company-info-table th,
.company-info-table td {
    padding: 6px 10px;
    vertical-align: top;
    font-size: 18px;
    line-height: 1.5;
}

.company-info-table th {
    width: 160px;
    text-align: left;
    font-weight: bold;
    white-space: nowrap;
}

.company-info-table td {
    text-align: left;
}

.company-info-box {
    width: 900px;
    max-width: calc(100% - 40px);
    margin: 40px auto; /* ←これで中央 */
}

#Greeting{
    background-color: #f2f2f2;
    height: 250px;
    width: 1030px;  
}

#company-profile{
    background-color: #f2f2f2;
    height: 650px;
    width: 1030px;  
}

#Corporate-philosophy{
    background-color: #f2f2f2;
    height: 500px;
    width: 1030px;  
}

#company-message-p {
    margin-left: 20px;
}

div#eapps-instagram-feed-1 {
    margin-top: 10px;
}



#img_sagafu {
    height: 150px;
}

.mainVisual {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #000;
    margin-top: -30px;
}

.mainSlide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.05);
    animation: slideShow 24s infinite;
}

/* 画像パスは環境に合わせて変更 */
.slide01 {
    background-image: url("../img/main01.jpg");
    animation-delay: 0s;
}

.slide02 {
    background-image: url("../img/main02.jpg");
    animation-delay: 6s;
}

.slide03 {
    background-image: url("../img/main03.jpg");
    animation-delay: 12s;
}

.slide04 {
    background-image: url("../img/main04.jpg");
    animation-delay: 18s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    8% {
        opacity: 1;
    }

    25% {
        opacity: 1;
    }

    33% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.mainVisualText {
    position: absolute;
    z-index: 10;
    top: 120px;
    left: 8%;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.mainVisualText h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* タブレット */
@media screen and (max-width: 1024px) {
    .mainVisual {
        height: 500px;
    }

    .mainVisualText h1 {
        font-size: 38px;
    }
}

/* スマホ */
@media screen and (max-width: 768px) {
    .mainVisual {
        height: 400px;
    }

    .mainVisualText {
        top: 90px;
        left: 6%;
        right: 6%;
    }

    .mainVisualText h1 {
        font-size: 28px;
    }
}

.mainCatch {
    white-space: nowrap;
    margin-top: -30px;
    color: #fff;
    font-size: clamp(40px, 5vw, 80px);
    text-shadow:
        0 0 5px rgba(0,0,0,0.8),
        0 0 15px rgba(0,0,0,0.5),
        2px 2px 6px rgba(0,0,0,0.8);
}