@charset "utf-8";

/* Hero Section */
.hero {
    background-color: var(--white);
    color: var(--text-color);
    font-weight: bold;
    padding: 50px 20px;
    text-align: center;
}

.hero p { font-size: 16px; margin-bottom: 10px; }
.hero h2 { color: var(--main-color); font-size: 36px; font-weight: bold; }

/* Section Base Style */
.section {
    padding: 50px 20px;
}
.section.alt-bg {
    background-color: var(--secondary-bg);
}

/* Section Title */
.section-title {
    background-color: var(--main-color);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    margin-bottom: 40px;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--main-color);
}

/* Products Slider Section */
.swiper-container {
    padding: 0 20px;
    position: relative;
}
.swiper {
    width: 90%;
    height: 100%;
    padding-bottom: 50px; /* ページネーション分の余白 */
}
.swiper-slide {
    display: flex;
    align-items: stretch; /* 中の要素(カード)の高さを強制的に揃えます */
    height: auto;   
}
.product-card {
    width: 100%;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--primary-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%; /* 高さを揃える */
    position: relative;
}
.product-card-side::before,
.product-card-side::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 85%;
  background: rgba(0,0,0,0.85); /* 黒 */
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}
.product-card-side::before {
    left: 0;
}
.product-card-side::after {
    right: 0;
}
/* hover時だけ暗くする */
.product-card-side:hover::before,
.product-card-side:hover::after {
  opacity: 1;
}
.product-card-loading {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2; /* 動画より上 */
    display: none; /* デフォルト非表示 */
}
  
@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
.product-card-video {
        /* 絶対配置でカードの左上を起点にする */
        position: absolute;
        top: 0;
        left: 50%;
        transform: translate(-50%, 0);
        
        /* カード全体の幅と高さに広げる */
        width: auto;
        height: 85%;
        
        /* アスペクト比を保ちつつ、コンテナ全体を埋める */
        object-fit: cover;
        
        /* カード内のテキストなど、他の要素より手前に表示する */
        z-index: 10;
        
        /* 初期状態では透明にして非表示にする */
        opacity: 0;
        pointer-events: none; /* 透明な時に下の要素がクリックできるように */
        
        /* フワッと表示が切り替わるようにアニメーションを設定 */
        transition: opacity 0.4s ease-in-out;
}
/* カードにマウスが乗った時に動画を表示する */
.product-card:hover .product-card-video {
    opacity: 1; /* 動画を不透明にする */
    pointer-events: auto; /* 動画が表示されたら操作可能に */
}

.product-card-header {
    background-color: var(--main-color);
    color: #fff;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    flex-shrink: 0;
    
    /* ▼▼▼ ここから下を追加 ▼▼▼ */
    min-height: 85px;       /* ヘッダーの最小の高さを設定（2行分を想定） */
    display: flex;          /* Flexboxを有効化 */
    align-items: center;    /* 上下中央揃え */
    justify-content: center;/* 左右中央揃え */
    box-sizing: border-box; /* paddingを含めて高さを計算 */
}
.product-card-body {
    padding: 20px;
    flex-grow: 1; /* 内容が少なくても高さを埋める */
    display: flex;
    flex-direction: column;
}
.product-card-image {
    text-align: center;
    padding: 10px 0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-card-image img { max-height: 100%; transition: transform 0.5s ease; }
.product-card-image img:hover { transform: scale(1.1); }
.product-card h3 { font-size: 20px; margin-top: 10px; }
.product-card .company-name { font-size: 14px; margin-top: 5px; color: var(--light-text-color); }
.product-card .date { font-size: 12px; color: #999; margin-top: 10px; }
.product-card .description {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    flex-grow: 1;
}
.btn {
    display: block;
    width: 80%;
    margin: 20px auto 0;
    padding: 15px;
    background: var(--link-color);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
    flex-shrink: 0;
}
.btn:hover { background-color: var(--hover-link-color); }

/* Swiper Controls */
.swiper-button-next, .swiper-button-prev {
    color: var(--main-color);
}
.swiper-pagination-bullet-active {
    background: var(--main-color);
}

/* Introduction Section */
.introduction_section {
    background-color: #eef6ff!important;
    position: relative;
    overflow: hidden;
}
.introduction_section::after {
    content: "New Offerings";
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 90px;
    color: #d5e9ff;
    z-index: 0;
    white-space: nowrap;
}
.introduction { text-align: left; font-size: 16px; line-height: 1.8; max-width: 760px; margin: 0 auto; padding: 1rem 0; }

.introduction span {
    font-weight: bold;
}

@media screen and (max-width: 768px) {
    .introduction_section {
        padding-bottom: 60px!important;
    }
}

.event-section {
    margin: 0 auto;
    width: 100%;
}

/* Event Section */
.event-card {
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    display: flex;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.event-card-left {
    width: 180px;
    padding: 20px;
    text-align: center;
    background-color: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-right: 1px solid var(--border-color);
}
.event-card-right {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.event-info .event-title { font-size: 20px; font-weight: bold; margin-bottom: 5px; }
.event-info .company-name { display: inline-block; margin-left: 15px; font-size: 14px; color: var(--light-text-color); }
.event-info .date { font-size: 12px; color: #999; margin-bottom: 10px; }
.event-info .event-details { font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.event-info .summary { font-size: 14px; }

.event-btn {
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    align-self: center;
    white-space: nowrap;
    transition: background-color 0.3s, transform 0.3s;
}
.event-btn:hover { background-color: #e8704a; transform: scale(1.05); }

/* Review Section */
.review-box {
    border: 1px solid var(--border-color);
    padding: 25px;
}
.review-box h3 { font-size: 18px; margin-bottom: 20px; font-weight: bold; }
.review-content {
    background-color: #e9f5ff;
    padding: 20px;
    border-left: 5px solid #0077c8;
}
.review-content h4 { font-size: 16px; margin: 10px auto; font-weight: bold; }
.review-content p { font-size: 14px; line-height: 1.6; }

/* CTA Section */
.cta-section {
    padding: 40px 0;
    background-color: #fdf0e4;
    border: 2px solid var(--accent-color);
    text-align: center;
    border-radius: 8px;
}
.cta-section h3 { font-size: 24px; font-weight: bold; margin-bottom: 15px; }
.cta-section p { font-size: 16px; margin-bottom: 25px; }
.cta-btn {
    display: inline-block;
    width: 60%;
    padding: 15px 0;
    background-color: var(--accent-color);
    color: #fff;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}
.cta-btn:hover { background-color: var(--hover-link-color); }

/* Operator Info */
.operator-info h3 { font-size: 22px; font-weight: bold; text-align: center; margin-bottom: 15px; }
.operator-info p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; text-align: left; }
.portal-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.portal-links a {
    display: block;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.portal-links a:hover {
    transform: translateY(-5px);
}
.portal-links img { width: 160px; }

/* Responsive */
@media (max-width: 768px) {
    .hero { padding-bottom: 0; }
    .hero h2 { font-size: 28px; }
    .section { padding: 40px 15px; }
    .section-title { font-size: 24px; }
    
    .event-card { flex-direction: column; }
    .event-card-left { width: 100%; border-right: none; border-bottom: 1px solid var(--border-color); }
    .event-card-right { flex-direction: column; gap: 20px; text-align: center; }
    .event-info .company-name { margin-left: 0; display: block; margin-top: 5px; }
    .cta-section p { display: inline-block; margin: 10px auto; width: 80%; }
    .cta-btn { width: 70%; }
    .portal-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .header h1 { font-size: 20px; }
    .hero h2 { font-size: 24px; }
    .hero p { font-size: 14px; }
    .section-title { font-size: 22px; }
    .cta-section h3 { font-size: 20px; }
    .cta-btn { font-size: 18px; }
    .portal-links { grid-template-columns: 1fr; }
}