/* ========== ファーストビュー（近接・コントラスト） ========== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
    background-image: url('../images/hero/main-desktop.jpg');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative;
    min-height: 100vh;
}

/* Desktop image */
.hero.loaded {
    background-image: url('../images/hero/main-desktop.jpg');
}

/* アスペクト比による背景サイズ調整 */
@media (aspect-ratio > 16/9) {
    .hero {
        background-size: contain;
        background-color: #000;
    }
}

/* 横長画面での最適化 */
@media (min-aspect-ratio: 3/2) {
    .hero {
        background-size: contain;
        background-position: center center;
    }
}

/* 縦長画面での最適化 */
@media (max-aspect-ratio: 3/4) {
    .hero {
        background-size: contain;
        background-position: center bottom;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-size: 64px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 32px;
    color: #ffffff;
    line-height: 1.2;
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
}

.hero-title-line:nth-child(1) {
    animation: slideUpFadeIn 1.2s ease-out 0.5s forwards;
}

.hero-title-line:nth-child(2) {
    animation: slideUpFadeIn 1.2s ease-out 0.8s forwards;
}

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 1.2s ease-out 1.1s forwards;
}

.hero-president {
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
    margin-top: 16px;
    text-align: left;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFadeIn 1.2s ease-out 1.4s forwards;
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== お客様の声（整列・近接） ========== */
.testimonials {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 1040px;
    margin: 0 auto;
    justify-items: stretch;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 32px;
    width: 100%;
}

.testimonial-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.testimonial-image {
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 24px;
    background: #111;
    height: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.testimonial-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    box-shadow: none;
    transition: transform 0.4s ease;
}

.testimonial-card:hover .testimonial-image img {
    transform: scale(1.05);
}

/* ========== お客様の声：写真フレーム角丸をゼロに統一 ========== */
.testimonial-image,
.testimonial-image img {
    border-radius: 0 !important;
}


.testimonial-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #ffffff;
}

.testimonial-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 10px;
}

.testimonial-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
    transition: border-color 0.3s ease;
}

.testimonial-link:hover {
    border-color: #ffffff;
}

/* ========== 商品ラインナップ（整列・反復） ========== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.product-image {
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    padding: 16px;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.product-card:hover .product-image img {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.product-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
}

/* カタログカードのスタイル（コントラスト） */
.catalog-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.catalog-card .product-image {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
}

.catalog-card .product-image::after {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.download-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    text-decoration: none;
    font-size: 12px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.download-link:hover {
    background-color: #ffffff;
    color: #000000;
}

/* ========== メンバー（整列・近接） ========== */
.members {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.member-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 48px;
    text-align: center;
    transition: all 0.3s ease;
}

.member-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.member-image {
    margin-bottom: 32px;
}

.member-image img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.member-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.member-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.member-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ========== 会社概要（整列・近接） ========== */
.company {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.company-table {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    width: 100%;
}

.company-table th,
.company-table td {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.company-table th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    width: 30%;
}

.company-table td {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
    border-bottom: none;
}

/* ========== お問い合わせ（整列・近接） ========== */
.contact {
    background-color: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 32px;
    color: #ffffff;
}

.contact-item {
    margin-bottom: 32px;
    padding: 32px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item strong {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #ffffff;
}

.contact-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
}

/* ========== モバイル対応 ========== */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
}