/*
 * Pitout Kobe Theme Custom Styles
 */

body {
    background-color: #FFFFFF;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif; /* 日本語フォントの指定 */
}

a {
    color: #D32F2F; /* Red accent */
    text-decoration: none;
}

a:hover {
    color: #000000;
}

/* Header */
.site-header {
    border-bottom: 1px solid #eee;
    background-color: #FFFFFF; /* ヘッダー背景を白に */
}

.site-branding img {
    transition: transform 0.3s ease;
}

.site-branding img:hover {
    transform: scale(1.05);
}

/* Sections */
.section-title {
    color: #000000;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 300px; /* 赤い線を長く */
    height: 5px;
    background: #D32F2F; /* Red accent */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}


/* Hero Section */
.hero-with-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/landing.jpg') no-repeat center center;
    background-size: cover;
    min-height: 500px; /* Adjust as needed */
    position: relative;
}

.hero-with-bg h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-with-bg p {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Responsive adjustments for Hero Section */
@media (max-width: 768px) {
    .hero-with-bg h1, .hero-title {
        font-size: 2.5rem; /* Adjust for tablets and smaller */
    }
}

@media (max-width: 576px) {
    .hero-with-bg h1, .hero-title {
        font-size: 1.8rem; /* Adjust for small phones like iPhone SE */
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
}

/* Services Section */
.services-section .card {
    border: none;
    transition: transform .3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Ensure image corners are rounded with card */
}

.services-section .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.services-section .card-img-top {
    border-bottom: 3px solid #D32F2F; /* Red accent border */
}

.services-section .card-title {
    color: #D32F2F; /* Red accent */
    font-weight: bold;
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* CTA Section */
.cta-section {
    background-color: #F8F9FA; /* Light gray background */
    padding: 60px 0;
}

.cta-section h2 {
    font-weight: bold;
    color: #333;
}

.cta-section .btn-danger {
    background-color: #D32F2F;
    border-color: #D32F2F;
    padding: 15px 40px;
    font-size: 1.3rem;
    border-radius: 50px; /* Pill shape */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cta-section .btn-danger:hover {
    background-color: #B71C1C; /* Darker red on hover */
    border-color: #B71C1C;
}

.cta-section .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    padding: 15px 40px;
    font-size: 1.3rem;
    border-radius: 50px; /* Pill shape */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.cta-section .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}


/* Shop Info Section */
.shop-info-section h4 {
    color: #D32F2F;
    font-weight: bold;
    margin-bottom: 20px;
}

.map-placeholder {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.shop-info-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

.shop-info-card .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.shop-info-card .info-item i {
    font-size: 1.5rem;
    color: #D32F2F;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.shop-info-card .info-item p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #555;
}


/* Footer */
.site-footer {
    background-color: #000000; /* Black background */
    color: #ccc;
    padding-top: 40px;
    padding-bottom: 40px;
}

.site-footer h5 {
    color: #FFFFFF;
    border-bottom: 2px solid #D32F2F;
    padding-bottom: 10px;
    display: inline-block;
    margin-bottom: 20px;
}

.site-footer a {
    color: #ccc;
}

.site-footer a:hover {
    color: #FFFFFF;
    text-decoration: none;
}

.site-footer .site-info {
    color: #888;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar .widget {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sidebar .widget-title {
    color: #D32F2F;
    font-size: 1.4rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 8px;
}

.sidebar ul li a {
    color: #555;
    transition: color 0.2s ease;
}

.sidebar ul li a:hover {
    color: #D32F2F;
}

/* Blog Post Styles */
.blog .site-main .container,
.single .site-main .container {
    padding-top: 50px;
    padding-bottom: 50px;
}

article.post {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
}

article.post .entry-header {
    margin-bottom: 20px;
}

article.post .entry-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}

article.post .entry-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

article.post .entry-title a:hover {
    color: #D32F2F;
}

article.post .entry-meta {
    font-size: 0.9rem;
    color: #777;
}

article.post .entry-content {
    line-height: 1.8;
    color: #444;
}

article.post .entry-content p {
    margin-bottom: 1em;
}

article.post .wp-post-image {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.page-title {
    color: #000000;
    font-weight: bold;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-align: center;
}

.page-title::after {
    content: '';
    position: absolute;
    display: block;
    width: 300px;
    height: 5px;
    background: #D32F2F;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.navigation.pagination .nav-links .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #D32F2F;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation.pagination .nav-links .page-numbers.current,
.navigation.pagination .nav-links .page-numbers:hover {
    background-color: #D32F2F;
    color: #fff;
    border-color: #D32F2F;
}

.navigation.pagination .nav-links .prev,
.navigation.pagination .nav-links .next {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.navigation.pagination .nav-links .prev:hover,
.navigation.pagination .nav-links .next:hover {
    background-color: #D32F2F;
    color: #fff;
    border-color: #D32F2F;
}

/* Header Navigation */
#masthead .navbar-dark .navbar-nav .nav-item {
    margin-left: 0.5em;
}

#masthead .navbar-dark .navbar-nav .nav-link {
    color: #ffffff; /* 白文字 */
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

#masthead .navbar-dark .navbar-nav .nav-link:hover,
#masthead .navbar-dark .navbar-nav .nav-link:focus,
#masthead .navbar-dark .navbar-nav .current-menu-item > .nav-link {
    color: #cc0000; /* ホバー時とアクティブ時 */
    border-bottom-color: #cc0000;
}

/* Contact Page Specific Styles */
.contact-info-card,
.contact-form-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-info-card p {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #555;
}

.contact-info-card i {
    font-size: 1.3rem;
    width: 25px;
    text-align: center;
}

/* Adjust Contact Form 7 default styles for better integration */
.wpcf7-form p {
    margin-bottom: 1rem;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel']:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    border-color: #D32F2F;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25);
}


/* Contact Form 7 Submit Button Styles */
#my-custom-submit-button {
    display: inline-block;
    width: auto; /* Adjust width to content */
    padding: 12px 30px;
    background-color: #D32F2F; /* Red accent */
    color: #FFFFFF;
    border: 2px solid #D32F2F;
    border-radius: 50px; /* Pill shape */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    -webkit-appearance: none; /* Remove default button styles for consistency */
    -moz-appearance: none;
    appearance: none;
}

#my-custom-submit-button:hover {
    background-color: #B71C1C; /* Darker red on hover */
    border-color: #B71C1C;
    color: #FFFFFF;
}

#my-custom-submit-button:active {
    background-color: #A51A1A; /* Even darker red on active */
    border-color: #A51A1A;
}



.wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-validation-errors {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Date link styling */
.entry-meta .posted-on a {
    color: inherit; /* Inherit color from parent .entry-meta */
    text-decoration: none; /* Remove underline */
}

.entry-meta .posted-on a:hover {
    color: #000; /* Keep hover effect for consistency, or change to a subtle highlight */
    text-decoration: underline; /* Add underline on hover for discoverability */
}

/* Pagination styling for bike inventory list */
.pagination-wrap {
    clear: both;
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center; /* Center the pagination */
}

.pagination-wrap ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block; /* To center the ul itself */
}

.pagination-wrap ul li {
    display: inline-block;
    margin: 0 2px;
}

.pagination-wrap ul li span,
.pagination-wrap ul li a {
    display: block;
    padding: 8px 15px;
    background: #f9f9f9;
    text-decoration: none;
    color: #D32F2F;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.pagination-wrap ul li span.current {
    background: #D32F2F;
    color: white;
    border-color: #D32F2F;
    font-weight: bold;
}

.pagination-wrap ul li a:hover {
    background-color: #D32F2F;
    color: #fff;
    border-color: #D32F2F;
}

/* サイドバー内のバイクリストを縦並びにする */
.widget-area .bike-inventory-list {
    display: block !important; /* または display: flex !important; flex-direction: column !important; */
}

/* 各バイクアイテムの幅を調整（必要であれば） */
.widget-area .bike-inventory-list .bike-item {
    width: 100% !important;
    margin-bottom: 25px; /* アイテム間の余白 */
}