
body {
    margin: 0;
    padding: 0;
    font-family: "Noto Serif JP", serif;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #ffffff, #e3f3ff, #d4ecff);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body h2 {
    font-size: 50px;
    color: #2e478b;
}

* {
    box-sizing: border-box;
}

/* ヒーロー画像（余白ゼロが重要） */
.hero {
    position: relative;
    margin: 0;
    padding: 0;
    /* 画像下の謎の隙間対策 */
}

/* 画像を完全フル幅＋高さ調整 */
.hero img {
    width: 100vw;
    height: 600px;
    object-fit: cover;
    display: block;
    /* これ超重要（隙間消える） */
}

/* テキスト重ね */
.hero-text h2 {
    position: absolute;
    top: 48%;
    left: 7%;
    transform: none;
    color: white;
    font-size: 3rem;
    padding: 10px 20px;
    border-radius: 5px;
}

/* セクション */
.section {
    width: 100%;
}

.breadcrumb {

    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0073aa;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    margin: 0 6px;
    color: #999;
}

.center {
    text-align: center;
    width: 100%;
    text-align: center;
    padding: 30px 20px;
}

.center h3 {
    margin-top: 20px;
    font-size: 30px;
}

.center p {
    line-height: 1.8;
    font-size: 20px;
    color: #333;
}

/* 代表挨拶 */
.flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

.flex img {
    width: 300px;
    border-radius: 10px;
}

.tg {
    background: #fff;
}

.tt {
    display: flex;
    padding: 20px;
    border-radius: 10px;

}

/* セクション全体中央 */
.president {
    text-align: center;
    padding: 40px 120px;

}

/* 画像 */
.president-image img {
    width: 600px;
    height: 600px;
    object-fit: cover;
    margin: 20px 0;
    border: 3px solid #ddd;
}

.president-text-box {
    max-width: 1100px;
    margin: auto;
    position: relative;
    padding: 20px;
}

/* テキスト */
.president-text {
    max-width: 530px;
    font-size: 18px;
    color: #333;
    text-align: left;
}

/* 署名（右下） */
.president-name {
    text-align: right;
    margin-top: 20px;
    font-weight: bold;
    font-size: 25px;
    color: #444;
}

.president h2 {
    color: #2e478b;
}


/* 会社概要2列 */
.company-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;
    max-width: 1000px;
    margin: auto;
}

.section-company {
    text-align: center;
}

.gallery {
    text-align: center;
    padding: 0 0px;
}

.history {
    list-style: none;
    /* ・を消す */
    padding-left: 0;
    margin: 0;
}

.history li {
    padding: 10px 0;
    /* 余白 */
    border-bottom: 1px solid #ccc;
    /* 区切り線 */
}


.carousel {
    position: relative;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

/* 横並び */
.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease;
}

/* 1枚 */
.item {
    min-width: 100%;
    height: 400px;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-top: 20px;
}


.kk {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 75%;
    margin: 20px 212px;

}

/* 矢印 */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 130px;
}

.next {
    right: 130px;
}


/* 戻るボタン */
.back {
    text-align: center;
    margin: 30px;
}

/* 外枠 */
.company-box {
    max-width: 800px;
    margin: 0 auto;
    border: 2px solid #2448ae;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* 1行ごとの箱 */
.company-row {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.company-row:last-child {
    border-bottom: none;
}

/* 左側（項目名） */
.label {
    width: 180px;
    background: #2e478b;
    /* 濃い色 */
    color: white;
    padding: 15px;
    font-weight: bold;
}

/* 右側（内容） */
.value {
    flex: 1;
    background: #f7f7f7;
    /* 薄いグレー */
    padding: 15px;
    color: #333;
}


.address {
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    width: 75%;
    margin: 60px 212px;
}

/* 地図の枠 */
.map {
    max-width: 900px;
    margin: 20px auto 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
}

.diagonal-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 50px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    overflow: hidden;
    border: 1px solid #333;
    margin-top: 20px;
    border-radius: 6px;
}

/* 左下から */
.diagonal-button::before {
    content: "";
    position: absolute;
    inset: -150%;
    background: #477bff;
    transform: translate(-10%, 80%) rotate(45deg);
    transition: transform .6s cubic-bezier(.77, 0, .18, 1);
}

/* 右上から */
.diagonal-button::after {
    content: "";
    position: absolute;
    inset: -150%;
    background: #477bff;
    transform: translate(10%, -80%) rotate(45deg);
    transition: transform .6s cubic-bezier(.77, 0, .18, 1);
}

.diagonal-button span {
    position: relative;
    z-index: 1;
}

/* ホバー */
.diagonal-button:hover::before {
    transform: translate(0, 0) rotate(45deg);
}

.diagonal-button:hover::after {
    transform: translate(0, 0) rotate(45deg);
}

@media screen and (max-width: 1500px) {

    .president-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
}

@media screen and (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .breadcrumb {

        font-size: 9px;
    }


    .tt {
        flex-direction: column;
        align-items: center;
    }

    .kk {
        width: 95%;
        margin: 20px auto;
    }

    body h2 {
        font-size: 16px;
    }

    .hero img {
        height: 200px;
    }

    .hero-text h2 {
        font-size: 18px;
        top: 48%;
        left: 7%;
    }

    .president {
        padding: 31px 0px;
    }

    .president h2 {
        font-size: 16px;
    }

    .gallery {
        padding: 0;
    }

    .next.swiper-button-prev,
    .prev.swiper-button-next {
        display: none;
    }

    .president-image img {
        width: 100%;
        height: auto;
        max-height: 300px;
    }

    .president-text {
        font-size: 12px;
    }

    .president-name {
        font-size: 16px;
    }

    .label {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }

    .company-row {
        flex-direction: column;
    }

    .value {
        padding: 10px;
        font-size: 12px;
    }

    .prev {
        left: 4px;
        padding: 5px 10px;
    }

    .next {
        right: 4px;
        padding: 5px 10px;

    }



    .address {
        font-size: 14px;
    }

    .address {
        width: 95%;

        margin: 16px 10px;
    }

    .map iframe {
        height: 250px;
    }


    .address p {
        font-size: 13px;
    }


}