/**
 * 北日本アイリス - Custom Styles
 */

/* MV Slider */
#mv-slider {
    height: 75vh;
}
@media (max-width: 1366px) {
    #mv-slider {
        height: 45vw;
    }
}
@media (max-width: 767px) {
    #mv-slider {
        height: 57vw;
    }
}

/* Sticky Nav (business-detail) */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: white;
    border-bottom: 2px solid #f4f4f4;
}
.nav-link {
    position: relative;
    transition: color 0.3s;
}
.nav-link:hover {
    color: #76b2da;
}
.nav-link.active {
    color: #76b2da;
    font-weight: 600;
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: #76b2da;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.page-numbers a,
.page-numbers span {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}
.page-numbers .current {
    background-color: #f0a0a9;
    color: white;
}
.page-numbers a {
    border: 2px solid #e5e7eb;
    color: rgb(41, 47, 74);
}
.page-numbers a:hover {
    background-color: #f9fafb;
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Form 7 Styles */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #76b2da;
}
.wpcf7 .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 3rem;
    border-radius: 9999px;
    font-weight: 700;
    color: white;
    background-color: #76b2da;
    cursor: pointer;
    transition: opacity 0.3s;
}
.wpcf7 .wpcf7-submit:hover {
    opacity: 0.9;
}
.wpcf7 .wpcf7-acceptance {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}
.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #76b2da;
    flex-shrink: 0;
}
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 0.875rem;
    color: rgb(41, 47, 74);
}
.wpcf7 .wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}
.wpcf7 .wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}
.wpcf7 .wpcf7-form .wpcf7-response-output {
    border: 2px solid #e5e7eb;
}
.wpcf7-form.sent .wpcf7-response-output {
    border-color: #76b2da;
    color: #76b2da;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    border-color: #ef4444;
    color: #ef4444;
}

/* ================================
   Single Post Content
   ================================ */
.single-content {
    color: rgb(41, 47, 74);
    line-height: 1.9;
    font-size: 1rem;
}

.single-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #76b2da;
}

.single-content h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
    border-left: 4px solid #76b2da;
}

.single-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.single-content p {
    margin-bottom: 1.25rem;
}

.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.single-content a {
    color: #76b2da;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.3s;
}

.single-content a:hover {
    opacity: 0.7;
}

.single-content ul,
.single-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.single-content ul {
    list-style: disc;
}

.single-content ol {
    list-style: decimal;
}

.single-content li {
    margin-bottom: 0.4rem;
}

.single-content blockquote {
    border-left: 4px solid #e5e7eb;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: #f9fafb;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #6b7280;
}

.single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.single-content th,
.single-content td {
    border: 1px solid #e5e7eb;
    padding: 0.625rem 0.875rem;
    text-align: left;
}

.single-content th {
    background: #f3f4f6;
    font-weight: 600;
}

.single-content figure {
    margin: 1.5rem 0;
}

.single-content figcaption {
    font-size: 0.875rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 0.5rem;
}
