@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url('https://fonts.cdnfonts.com/css/helvetica-neue-55');
html {
    font-family: "Noto Sans JP", serif;
}

/* 全体のスタイル */
body {
    font-family: "Noto Sans JP", serif;
    margin: 0;
    padding: 0;
    min-width: 1300px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダーのスタイル */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background-color: #fff;
}

.logo-img {
    max-width: 150px;
}

.nav {
    flex-grow: 1;
}

.nav-list {
    display: flex;
    font-size: 16px;
    justify-content: space-around;
    list-style: none;
    padding: 0;
    margin-left: 50%;
}

.nav-item {
    margin: 0 15px;
}

.nav-link {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.contact-button {
    background-color: #ff0000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

/* メインビジュアルのスタイル */
.main-visual {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 0;
    margin-left: -20px;
    margin-right: -20px;
}

.main-visual-img {
    width: 100%;
    height: auto;
}

.main-visual-title {
    font-style: italic;
    text-align: left;
    color: white;
    position: absolute;
    top: 65%;
    left: 25%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 10px;
    margin-top: 3%;
}

/* サンテックについてのセクションスタイル */
.about-suntek {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 90px;
}

.about-suntek2 {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 80px;
}

.gray-area {
    min-height: 160px;
    width: 100%;
    background-color: #FAFAFA;
}

.section-title {
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 38px;
    font-weight: 600;
}

.section-title2 {
    font-family: "Hiragino Mincho ProN", sans-serif;
    font-size: 32px;
    font-weight: 600;
    padding-top: 54px;
}

.diagonal-section {
    width: 100%;
    background-color: #fff;
    /* セクションごとに余白や影などを付けたい場合はここで */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* コンテントのレイアウト用 */
.section-content {
    display: flex;
    flex-wrap: nowrap;  /* 画面幅が狭い時に縦積みになるように */
    align-items: stretch;
    overflow: hidden; /* clip-pathのはみ出しを隠す */
}

/* 左右レイアウトの切り替え */
.left-text .text-block {
    font-family: "Hiragino Mincho ProN", sans-serif;
    order: 1; /* テキストが左 */
}
.left-text .image-block {
    order: 2;
}
.right-text .text-block {
    font-family: "Hiragino Mincho ProN", serif;
    order: 2; /* テキストが右 */
}
.right-text .image-block {
    order: 1;
}

/* テキストブロック */
.text-block {
    flex: 1 1 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-block-description {
    font-family: "Noto Sans JP", serif;
    font-weight: 400;
    font-size: 14px;
    text-align: left;
    margin-left: 10%;
}

.text-block h2 {
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 40px;
    line-height: 60px;
    margin-bottom: 1rem;
    text-align: left;
    color: #2F4F8A;
    margin-left: 10%;
}

.text-block h2::before {
    position: relative;
    border-left: 3px solid #2F4F8A;
    background-color: #2F4F8A;
    margin-right: 2%;
    content: "";
    left: 0%;
    top: 2%;
    bottom: 3%;
    width: 2px;
    height: 10%;
}


.text-block p {
    line-height: 1.8;
}

/* 画像ブロック */
.image-block {
    position: relative;
    flex: 1 1 50%;
    overflow: hidden; /* clip-pathの外が出ないように */
    min-width: 50.1%;
    max-height: 400px;
}

.image-block-bottom {
    position: relative;
    flex: 1 1 50%;
    overflow: hidden; /* clip-pathの外が出ないように */
    min-width: 51.2%;
    max-height: 400px;
}

/* 画像のクリップ（斜めにカット） */
.image-block-right img {
    width: 100%;
    height: auto;
    display: block;
    /* 斜めカットのclip-path (上: 0%, 右: 100%, 下: 85%, 左: 100%) 等を調整 */
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    -webkit-clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
    object-fit: cover;
}

.image-block-left img {
    width: 100%;
    height: auto;
    display: block;
    /* 斜めカットのclip-path (上: 0%, 右: 100%, 下: 85%, 左: 100%) 等を調整 */
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    -webkit-clip-path: polygon(0 0, 99.9% 0, 90% 100%, 0 100%);
    object-fit: cover;
}

.image-block-left-2 img {
    width: 100%;
    height: auto;
    display: block;
    /* 斜めカットのclip-path (上: 0%, 右: 100%, 下: 85%, 左: 100%) 等を調整 */
    clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
    -webkit-clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
    object-fit: cover;
}



/* セクション間のメリハリを付けるために任意でスペーシング */
.diagonal-section + .diagonal-section {
}



.section-description {
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 28px;
    font-weight: 600;
}

.under-bar-red {
    margin: 0 auto;
    display: flex;
    width: 60px;
    border-bottom: 2px solid #D6001C;
}

.features {
    display: flex;
    justify-content: center;
}

.feature {
    width: 30%;
    text-align: center;
    position: relative;
    margin-left: -3%;
    margin-right: -3%;
}

.feature-header {
    position: relative;
    display: inline-block;
    padding: 10px;
    border: 1px solid #2F4F8A;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    min-width: 250px;
}

.feature-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 20px 0 0;
    border-color: #d00000 transparent transparent transparent; /* Red triangle inverted */
}

.feature-title {
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 5px;
    color: #2F4F8A;
}

.feature-description {
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 80%;
    min-height: 45px;
    margin: 10px 0 20px;
}

.feature-description-two-line {
    font-size: 14px;
    font-weight: 400;
    color: #2F4F8A;
    line-height: 20px;
    min-height: 60px;
    margin: 10px 0;
}

.feature-icon {
    max-width: 280px;
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 40px;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background-color: #147CC2;
    color: #fff;
    font-weight: 400;
    font-size: 24px;
    min-width: 30%;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 4px 4px 6px rgba(0, 0, 0, 0.7);
}

.btn-primary:active {
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #147CC2;
    color: #fff;
    font-weight: 600;
    font-size: 24px;
    min-width: 30%;
}

/* 製品紹介セクションのスタイル */
.products-section {
    padding: 20px 0 90px 0;
    text-align: center;
    background-color: #FAFAFA;
}

.products-title {
    font-family: "Hiragino Mincho ProN", serif;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

.product-items {
    display: flex;
    gap: 1px;
    justify-content: center;
    margin: 30px 2.5% 0;
}

.product-item {
    position: relative;
    width: 24%;
    max-height: 400px;
    min-height: 200px;
    overflow: hidden;
    border-radius: 0;
    font-weight: 300;
    color: #2F4F8A;
    margin-right: 2px;
}

.product-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent black filter */
    z-index: 1;
}

.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: rgba(0, 0, 0, 0.4);
}

.product-overlay {
    position: absolute;
    align-items: center;
    bottom: 10px;
    left: 10px;
    color: white;
    max-height: 210px;
    overflow: hidden;
    padding: 10px 0;
    z-index: 2;
    display: inline-block;
}

.product-description,
.product-name,
.view-detail {
    position: relative;
    z-index: 3;
}

.product-description {
    font-weight: 500;
    font-size: 14px;
    margin-top: 1px;
    margin-bottom: 2px;
    text-align: center;
    display: inline-block;
}

.product-name {
    font-size: 36px;
    font-weight: bold;
    margin-top: 1px;
    margin-bottom: 8px;
    text-align: center;
    display: inline-block;
    line-height: 1;
}

.view-detail {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    text-align: center;
    background: rgba(255, 255, 255, 0.2); /* 半透明の黒背景 */
}

.view-detail:hover {
    background: white;
    color: gray;
}

/* 最新情報セクションのスタイル */
.news {
    padding: 50px 0 60px 0;
    text-align: center;
}

.news-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.news-item {
    width: 30%;
    margin-bottom: 20px;
    text-align: left;
}

.news-img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.news-title {
    font-size: 1rem;
    color: #000;
}

/* フッターのスタイル */
.footer {
    background-color: #333;
    color: #fff;
    padding: 55px 0 2px 0;
    text-align: center;
}

.footer-logo-img {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.footer-nav-item {
    margin: 0 15px;
}

.footer-nav-link {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
}

.footer-credit {
    margin-top: 50px;
    font-size: 0.8rem;
}
