@charset "utf-8";
/* ============================================================
 *  トップページ セクション共通リニューアル
 *  - 統一見出し(.sec-head)
 *  - 技術情報(#tech-info: showcase丸カード流用)
 *  - 動画コンテンツ(#home-videos: サムネ+斜め再生ボタン)
 *  既存配色: #164a84 紺 / #1d61ae 青 / #e95464 赤(馴染む赤)
 * ============================================================ */

/* ---- 共通セクション見出し ---- */
.sec-head {
    text-align: center;
    margin-bottom: 2.2em;
}
.sec-head .en {
    display: block;
    font-size: 88%;
    letter-spacing: 0.22em;
    font-weight: 700;
    color: #1d61ae;
}
.sec-head .ja {
    display: block;
    font-family: 'Noto Serif JP', serif;
    font-size: 200%;
    font-weight: 600;
    color: #164a84;
    margin-top: 0.2em;
    letter-spacing: 0.06em;
}
.sec-head .ja::after {
    content: "";
    display: block;
    width: 2.4em;
    height: 3px;
    margin: 0.5em auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, #1d61ae, #5383c3);
}
@media screen and (max-width: 640px) {
    .sec-head .ja { font-size: 150%; }
}

/* ---- 技術情報（showcase の丸カードを流用） ---- */
#tech-info {
    max-width: 72em;
    margin: 0 auto;
    padding: 4.5em 1em;
    text-align: center;
}
/* showcase-item を流用しつつ、技術情報は1枚を広め(約300px)に */
#tech-info .showcase-items {
    max-width: 64em;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2em;
}
#tech-info .showcase-item {
    width: 300px;
    max-width: 300px;
    padding: 2em 1.5em;
}
#tech-info .showcase-img-wrap {
    width: 8.5em;
    height: 8.5em;
}
#tech-info .showcase-name {
    font-size: 115%;
}
#tech-info .showcase-desc {
    font-size: 90%;
}
@media screen and (max-width: 640px) {
    #tech-info { padding: 3em 0.75em; }
    #tech-info .showcase-items { gap: 1.2em; }
    #tech-info .showcase-item {
        width: 100%;
        max-width: 340px;
    }
}

/* ---- 動画コンテンツ ---- */
#home-videos {
    max-width: 72em;
    margin: 0 auto;
    padding: 4.5em 1em 5em;
}

.home-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5em;
    margin-bottom: 2.5em;
}

.home-video-card {
    display: block;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e6ec;
    box-shadow: 0 2px 8px rgba(22, 74, 132, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.home-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(22, 74, 132, 0.18);
    border-color: #c7d3e2;
}

.home-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f5;
}
.home-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.home-video-card:hover .home-video-thumb img {
    transform: scale(1.05);
}

/* YouTube風・斜めの再生ボタン（左下に可愛く配置） */
.hv-play {
    position: absolute;
    left: 0.7em;
    bottom: 0.7em;
    width: 3.2em;
    height: 2.25em;
    border-radius: 0.6em;
    background: #e8384c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
    transform: rotate(-9deg);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}
.hv-play::before {
    content: "";
    border-style: solid;
    border-width: 0.46em 0 0.46em 0.78em;
    border-color: transparent transparent transparent #fff;
    margin-left: 0.14em;
}
.home-video-card:hover .hv-play {
    transform: rotate(0deg) scale(1.12);
    background: #ff2740;
}

.home-video-body {
    padding: 0.9em 1em 1.1em;
}
.home-video-date {
    display: block;
    font-size: 78%;
    color: #7a8699;
    font-variant-numeric: tabular-nums;
    margin-bottom: 0.35em;
}
.home-video-title {
    font-weight: 700;
    font-size: 96%;
    line-height: 1.5;
    color: #223;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-video-card:hover .home-video-title {
    color: #164a84;
}

.home-videos-more {
    text-align: center;
}
.home-videos-more a {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: #fff;
    font-weight: 700;
    padding: 0.9em 3em;
    border-radius: 6px;
    background: #1d61ae;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.home-videos-more a:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.home-videos-empty {
    text-align: center;
    color: #99a;
    padding: 2em 0;
    grid-column: 1 / -1;
}

@media screen and (max-width: 960px) {
    .home-videos-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2em; }
}
@media screen and (max-width: 640px) {
    #home-videos { padding: 0.5em 0.75em 3em; }
    .home-videos-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8em; }
    .home-video-body { padding: 0.7em 0.7em 0.9em; }
    .hv-play { width: 2.6em; height: 1.9em; }
}

/* ---- 製品案内: カードを大きめに（3+2 の2行・説明文をしっかり） ---- */
#product-showcase .showcase-items {
    flex-wrap: wrap;
    max-width: 66em;
    margin: 0 auto;
    gap: 2em;
    align-items: stretch;
}
#product-showcase .showcase-item {
    width: 320px;
    max-width: 320px;
    padding: 2.2em 1.6em;
}
#product-showcase .showcase-img-wrap {
    width: 9em;
    height: 9em;
}
#product-showcase .showcase-name {
    font-size: 118%;
    margin-bottom: 0.6em;
}
#product-showcase .showcase-desc {
    font-size: 90%;
    line-height: 1.7;
    text-align: left;
}
@media screen and (max-width: 960px) {
    #product-showcase .showcase-item { width: calc(50% - 1em); max-width: 340px; }
}
@media screen and (max-width: 640px) {
    #product-showcase .showcase-item { width: 100%; max-width: 360px; }
    #product-showcase .showcase-desc { text-align: center; }
}

/* ---- 会社概要（画像 + テキストの分割セクション） ---- */
#home-about {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf5 100%);
    padding: 5em 1em;
}
.home-about-inner {
    max-width: 72em;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3.5em;
}
.home-about-img {
    flex: 1 1 52%;
    min-width: 0;
}
.home-about-img img {
    width: 100%;
    height: 100%;
    max-height: 24em;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(22, 74, 132, 0.20);
}
.home-about-body {
    flex: 1 1 44%;
    min-width: 0;
}
.sec-head--left {
    text-align: left;
    margin-bottom: 1.2em;
}
.sec-head--left .ja::after {
    margin-left: 0;
}
.home-about-catch {
    font-family: 'Noto Serif JP', serif;
    font-size: 150%;
    font-weight: 600;
    color: #164a84;
    line-height: 1.55;
    margin-bottom: 1em;
}
.home-about-text {
    color: #555;
    line-height: 1.95;
    font-weight: 300;
    margin-bottom: 1.8em;
}
.home-about-btn {
    display: inline-block;
    padding: 0.9em 3em;
    border-radius: 6px;
    background: #1d61ae;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.home-about-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}
@media screen and (max-width: 768px) {
    #home-about { padding: 3.5em 1em; }
    .home-about-inner { flex-direction: column; gap: 1.8em; }
    .home-about-img, .home-about-body { flex-basis: auto; width: 100%; }
    .home-about-catch { font-size: 135%; }
}
