/* お問い合わせページ全般 */

.mailform {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 3rem;
    background: #fff;
    border-radius: 15px;
    padding: clamp(1rem, 3vw, 2.5rem);
    box-shadow: 0 10px 30px rgba(76, 116, 55, 0.08);
}


/* サブメニュー */
.sub-menu {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 3rem;
    padding: clamp(1rem, 3vw, 2rem);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(76, 116, 55, 0.08);
}

.sub-menu ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
    padding: 0;
    margin: 0;
}

.sub-menu li {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    padding: clamp(1rem, 2vw, 1.5rem);
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.sub-menu li:nth-child(1) { animation-delay: 0.1s; }
.sub-menu li:nth-child(2) { animation-delay: 0.3s; }

.sub-menu img {
    width: clamp(60px, 10vw, 96px);
    height: clamp(60px, 10vw, 96px);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #4c7437;
}

.contact-info {
    flex: 1;
}

.sub-menu-text-ms {
    display: block;
    line-height: 1.6;
}

.sub-menu-text-ms:first-child {
    color: #4c7437;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    margin-bottom: 0.5rem;
}

.sub-menu-text-ms:last-child {
    color: #666;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
}

/* セクションヘッダー */
.h4box {
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    text-align: center;
}

.h4box h4 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #4c7437;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.h4box h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 3px;
    background: #4c7437;
}

/* カテゴリーセクション */
.contact-category {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: clamp(1rem, 3vw, 2rem);
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid rgba(76, 116, 55, 0.1);
    animation: fadeInUp 0.6s ease forwards;
}

.contact-category:nth-child(2) { animation-delay: 0.2s; }
.contact-category:nth-child(3) { animation-delay: 0.4s; }

.contact-category h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
    color: #4c7437;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #4c7437;
}

/* ボタングリッド */
.contact-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    justify-items: center;
}

.contact-buttons a {
    display: block;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(76, 116, 55, 0.15);
}

.contact-buttons img {
    width: 260px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

/* 連絡先リスト */
.contact-list {
    background: #fff;
    border-radius: 15px;
    padding: clamp(1rem, 3vw, 2.5rem);
    box-shadow: 0 10px 30px rgba(76, 116, 55, 0.08);
}

.infomation table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    font-size: clamp(0.875rem, 1.3vw, 1rem);
}

.infomation th {
    background: #4c7437;
    color: #fff;
    padding: clamp(0.8rem, 1.5vw, 1rem);
    font-weight: 600;
    text-align: left;
}

.infomation td {
    padding: clamp(0.8rem, 1.5vw, 1rem);
    border-bottom: 1px solid #eee;
    background: #fff;
}

.infomation tr:hover td {
    background: #f8f9fa;
}

.text-s {
    font-size: clamp(0.75rem, 1.1vw, 0.85rem);
    color: #666;
    margin-left: 0.5rem;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
    .mailform,
    .sub-menu,
    .contact-list,
    .contact-category,
    .contact-buttons,
    .infomation {
        width: 100%;
        margin: 0 0 2rem;
        padding: 1rem;
        border-radius: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .infomation table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .contact-buttons img {
        height: 150px;
        width: 100%;
        object-fit: cover;
    }
}