/* モバイル専用要素（PCでは非表示） */
.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
}

/* Product Card */
.product-card {
    position: relative;
    overflow: hidden;
    background-color: transparent;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 注釈化: TOPpage内で上書きされます */
/*
.product-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    overflow: hidden;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
*/

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-link {
    display: inline-block;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
}

.product-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.product-card:hover .product-link::after {
    margin-left: 10px;
}

/* About Page */
.about-section {
    padding: 25px 0;
}

.company-info {
    display: block;
    margin-bottom: 60px;
}

.company-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 40px;
    padding: 0;
}

.company-image img {
    width: 100%;
    height: auto;
}

.company-details {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Team Members */
.team-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--grid-gap);
}

.member-card {
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.member-card:hover {
    transform: translateY(-5px);
}

.member-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    position: relative;
    overflow: hidden;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-name {
    font-size: 1.2em;
    font-weight: 500;
    margin-bottom: 5px;
}

.member-position {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 1em;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Contact Info Section */
.contact-info {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #eee;
}

.contact-info h3 {
    text-align: center;
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 40px;
    position: relative;
}

.contact-info h3:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.contact-info-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-item {
    flex: 1 1 300px;
    padding: 30px;
    text-align: center;
}

.contact-info-item h4 {
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-info-item p {
    line-height: 1.8;
    color: #666;
}

/* モバイルメニュースタイル */
@media (max-width: 768px) {
    .menu-open {
        overflow: hidden; /* メニュー表示時にスクロール無効化 */
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 10000; /* ヘッダーより高いz-index */
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px 0;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .global-nav .menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 9998; /* ヘッダーより低く、トグルボタンより低いz-index */
        padding-top: var(--header-height); /* ヘッダー分の余白 */
    }

    .global-nav .menu.active {
        right: 0;
    }

    .global-nav .menu li {
        margin: 15px 0;
    }
    
    .close-menu-btn.mobile-only {
        position: absolute;
        top: 15px;
        right: 55px;
        background: none;
        border: none;
        font-size: 28px;
        color: var(--primary-color);
        cursor: pointer;
        z-index: 10000;
        display: none; /* デフォルトでは非表示 */
    }

    .global-nav .menu.active .close-menu-btn.mobile-only {
        display: block; /* メニューが開いているときのみ表示 */
    }
    
    /* モバイルでは少し大きく表示 */
    .global-nav .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* モバイル用のアイコングループスタイル */
    .icon-container {
        margin: 15px 0;
    }
    
    .icons-group {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
    .header-container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .section-title {
        font-size: 2em;
    }

    .products-grid,
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .company-info {
        flex-direction: column;
    }

    .company-image {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .members-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.6em;
    }

    .product-title-large {
        font-size: 1.8em;
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        padding-bottom: 0;
        border-bottom: none;
    }

    .contact-form {
        padding: 20px;
    }
    
    .map-container {
        padding: 0 15px;
    }
    
    
    .office-map h3 {
        font-size: 1.5em;
    }
    
    .office-details {
        padding: 10px;
        font-size: 0.9em;
    }
}
