/* ===== Studio-specific Additional Styles ===== */
/* Main styles are in style.css - this file is for studio-specific overrides */

/* Studio room subtitle in card header */
.studio-room-sub {
    font-size: 0.8em;
    font-weight: 400;
    color: #718096;
}

/* Clickable card link */
a.studio-card-link,
a.studio-card-link:hover,
a.studio-card-link:focus,
a.studio-card-link:active {
    display: block;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

/* Studio card price highlight */
.studio-meta-item .value.price {
    font-size: 15px;
}

/* Use tag colors by type */
.tag-use-band {
    background: #fef2f2;
    color: #dc2626;
}
.tag-use-dance {
    background: #f0fdf4;
    color: #16a34a;
}
.tag-use-recording {
    background: #eef2ff;
    color: #4338ca;
}
.tag-use-solo {
    background: #fff7ed;
    color: #c2410c;
}
.tag-use-ensemble {
    background: #eff6ff;
    color: #2563eb;
}

/* Single studio info table */
.studio-info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.studio-info-table th,
.studio-info-table td {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}
.studio-info-table th {
    width: 140px;
    background: #f8fafc;
    color: #4a5568;
    font-weight: 600;
    white-space: nowrap;
}
.studio-info-table tr:nth-child(even) th {
    background: #f1f5f9;
}
.studio-info-table td {
    color: #1a202c;
}

/* Related studios section */
.related-studios {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}
.related-studios h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #1a202c;
}

@media (max-width: 768px) {
    .studio-info-table th {
        width: 100px;
    }
}


/* ========================================
   Front Page: Hero
======================================== */
.hero {
    background: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
    color: #fff;
    padding: 56px 16px 48px;
    text-align: center;
}
.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}
.hero-title {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.hero-tagline {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.hero-search {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.hero-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.hero-search input[type="text"] {
    flex: 1 1 100%;
    height: 44px;
    padding: 0 14px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}
.hero-search select {
    flex: 1 1 calc(33.333% - 6px);
    height: 44px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.hero-search .btn-search {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 28px;
    background: #c2410c;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.hero-search .btn-search:hover {
    background: #7c2d12;
}
.hero-stats {
    font-size: 14px;
    opacity: 0.85;
}
.hero-stats strong {
    font-size: 20px;
    font-weight: 800;
}

/* ========================================
   Front Page: Sections
======================================== */
.section {
    padding: 40px 16px;
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #ea580c;
}
.section-more {
    text-align: center;
    margin-top: 24px;
}

/* ========================================
   Front Page: Use Buttons
======================================== */
.use-links {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 20px 16px;
}
.use-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.use-btn {
    display: inline-block;
    padding: 6px 18px;
    background: #fff7ed;
    color: #c2410c;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.use-btn:hover {
    background: #ea580c;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   Front Page: Studio Grid (New Studios)
======================================== */
.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.studio-card-grid {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.studio-card-grid:hover {
    box-shadow: 0 4px 16px rgba(234, 88, 12, 0.1);
    border-color: #fed7aa;
}
.studio-card-grid .studio-name {
    font-size: 16px;
    margin-bottom: 8px;
}
.studio-card-grid .studio-meta {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}
.studio-card-grid .studio-tags {
    margin-bottom: 0;
}

/* ========================================
   Front Page: Area Grid
======================================== */
.area-links {
    background: #f7fafc;
}
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.area-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.area-item:hover {
    border-color: #ea580c;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.08);
    text-decoration: none;
}
.area-name {
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
}
.area-count {
    font-size: 12px;
    color: #a0aec0;
    background: #f7fafc;
    border-radius: 10px;
    padding: 2px 8px;
}

/* ========================================
   Front Page: Responsive
======================================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    .hero-search select {
        flex: 1 1 100%;
    }
    .studio-grid {
        grid-template-columns: 1fr;
    }
    .area-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .area-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   Single Studio: Header
======================================== */
.single-studio-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}
.single-studio-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.single-studio-name {
    font-size: 24px;
    font-weight: 800;
    color: #1a202c;
}

/* ========================================
   Single Studio: Info Table
======================================== */
.single-studio-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}
.single-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid #ea580c;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.info-table th,
.info-table td {
    padding: 12px 16px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.info-table td {
    word-break: break-all;
    overflow-wrap: break-word;
}
.info-table tr:nth-child(even) {
    background: #f7fafc;
}
.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}
.info-table th {
    width: 160px;
    font-weight: 600;
    color: #4a5568;
    background: #f7fafc;
    white-space: nowrap;
}
.info-table tr:nth-child(even) th {
    background: #edf2f7;
}
.info-table td a {
    color: #ea580c;
}
.info-table td a:hover {
    text-decoration: underline;
}
.price-value {
    color: #e53e3e;
    font-weight: 700;
    font-size: 16px;
}
.sqm-value {
    font-weight: 700;
    font-size: 16px;
    color: #2d3748;
}
.no-data {
    color: #cbd5e0;
}

/* ========================================
   Single Studio: Description
======================================== */
.single-studio-description {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}
.studio-content {
    font-size: 14px;
    line-height: 1.8;
    color: #4a5568;
}
.studio-content p {
    margin-bottom: 14px;
}
.studio-content h2,
.studio-content h3 {
    margin: 24px 0 12px;
    color: #1a202c;
}
.studio-content ul,
.studio-content ol {
    margin: 12px 0;
    padding-left: 24px;
}
.studio-content li {
    margin-bottom: 6px;
}

/* ========================================
   Single Studio: Related
======================================== */
.single-studio-related {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.related-card {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px;
    transition: border-color 0.2s;
}
.related-card:hover {
    border-color: #fed7aa;
}
.related-card .studio-name {
    font-size: 14px;
    margin-bottom: 6px;
}
.related-card .studio-meta {
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

/* ========================================
   Single Studio: Back Button
======================================== */
.single-studio-back {
    text-align: center;
    margin-top: 8px;
    padding-bottom: 20px;
}
.btn-back {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 32px;
    background: #fff;
    color: #ea580c;
    border: 2px solid #ea580c;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.btn-back:hover {
    background: #ea580c;
    color: #fff;
    text-decoration: none;
}

/* ========================================
   Single Studio: Responsive
======================================== */
@media (max-width: 768px) {
    .single-studio-name {
        font-size: 20px;
    }
    .info-table th {
        width: 120px;
        font-size: 13px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 広さ数値入力フィールド ===== */
.sqm-custom-label {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #718096;
}
input[name="sqm_min_custom"] {
    width: 100%;
    height: 34px;
    padding: 4px 8px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 4px;
    box-sizing: border-box;
}
.hero-search input[name="sqm_min_custom"] {
    width: 140px;
}
.hero-search .sqm-custom-label {
    display: inline;
    margin-left: 8px;
    margin-right: 4px;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== お問い合わせページ ===== */
.contact-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}
.contact-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 32px;
}
.contact-field {
    margin-bottom: 20px;
}
.contact-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
}
.contact-field .required {
    color: #e53e3e;
}
.contact-field input,
.contact-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}
.contact-success {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
}
.contact-success p {
    font-size: 16px;
    color: #276749;
    margin-bottom: 20px;
}
.contact-errors {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}
.contact-errors p {
    color: #c53030;
    font-size: 14px;
    margin: 4px 0;
}
