/* 会社詳細ページ専用スタイル */

/* パンくずリスト */
.breadcrumb {
    background-color: #f9f9f9;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
    margin-top: 8rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumb-list li {
    font-size: 1.4rem;
    color: #666;
    position: relative;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin: 0 1rem;
    color: #ccc;
}

.breadcrumb-list li a {
    color: #2A9D8F;
}

.breadcrumb-list li a:hover {
    text-decoration: underline;
}

.breadcrumb-list li:last-child {
    color: #333;
    font-weight: 500;
}

/* 会社プロフィールセクション */
.company-profile {
    background-color: #fff;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.profile-logo {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-title {
    flex: 1;
}

.profile-title h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.profile-rating {
    display: flex;
    align-items: center;
}

.rating-stars {
    color: #FFD700;
    margin-right: 1rem;
    font-size: 1.8rem;
}

.rating-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
    color: #333;
}

.review-count {
    font-size: 1.6rem;
    color: #666;
}

.profile-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.phone-link {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 500;
    color: #2A9D8F;
}

.phone-link i {
    margin-right: 1rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tag {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: #f1f9f8;
    color: #2A9D8F;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #2A9D8F;
    color: #fff;
}

.profile-gallery {
    margin-bottom: 4rem;
}

.main-image {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.thumb-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.thumb-image {
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumb-image.active {
    opacity: 1;
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.3);
}

.thumb-image:hover {
    opacity: 1;
}

.thumb-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.profile-description h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: #333;
}

.profile-description p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.profile-description h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    color: #333;
}

.feature-list {
    padding-left: 2rem;
}

.feature-list li {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 1rem;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    top: 0.9rem;
    left: -2rem;
    width: 0.8rem;
    height: 0.8rem;
    background-color: #2A9D8F;
    border-radius: 50%;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.info-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #333;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 1.2rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.5rem;
}

.info-table th {
    width: 30%;
    color: #666;
    text-align: left;
    font-weight: 500;
}

.info-table td {
    color: #333;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.reform-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.reform-type {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #333;
}

.reform-type i {
    margin-right: 1rem;
}

.reform-type i.fa-check-circle {
    color: #2A9D8F;
}

.reform-type i.fa-times-circle {
    color: #e74c3c;
}

/* タブメニューナビゲーション */
.tab-nav {
    position: sticky;
    top: 8rem;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    z-index: 90;
}

.tab-list {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
}

.tab-item {
    padding: 1.5rem 2.5rem;
    white-space: nowrap;
    font-size: 1.6rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2A9D8F;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.tab-item.active {
    color: #2A9D8F;
    font-weight: 600;
}

.tab-item.active::after {
    transform: scaleX(1);
}

.tab-item:hover {
    color: #2A9D8F;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 施工事例セクション */
.case-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.8rem 2rem;
    background-color: #f1f1f1;
    color: #666;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #2A9D8F;
    color: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
}

.case-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.case-image-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: #eee;
}

.case-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.image-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 5px;
}

.case-content {
    padding: 2.5rem;
}

.case-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.case-details {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

.case-description {
    font-size: 1.4rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cases-more {
    text-align: center;
    margin-top: 5rem;
}

/* 口コミ・評判セクション */
.review-summary {
    display: flex;
    gap: 5rem;
    margin-bottom: 4rem;
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.summary-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 5rem;
    border-right: 1px solid #eee;
}

.score-number {
    font-size: 6rem;
    font-weight: 700;
    color: #2A9D8F;
    line-height: 1;
    margin-bottom: 1rem;
}

.score-stars {
    font-size: 2.4rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

.review-count {
    font-size: 1.6rem;
    color: #666;
}

.summary-bars {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.rating-label {
    width: 5rem;
    font-size: 1.5rem;
    color: #666;
    display: flex;
    align-items: center;
}

.rating-label i {
    margin-left: 0.5rem;
    color: #FFD700;
}

.bar-container {
    flex: 1;
    height: 1rem;
    background-color: #f1f1f1;
    border-radius: 10px;
    margin: 0 1.5rem;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #2A9D8F;
    border-radius: 10px;
}

.rating-percentage {
    width: 4rem;
    font-size: 1.4rem;
    color: #666;
    text-align: right;
}

.review-filters {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    margin-bottom: 3rem;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 1rem;
    font-size: 1.4rem;
    color: #666;
}

.filter-group select {
    padding: 0.8rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.4rem;
    color: #333;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: #2A9D8F;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.reviews-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.review-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-size: 1.6rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 1.4rem;
    color: #999;
}

.review-rating {
    display: flex;
    align-items: center;
}

.review-rating .rating-stars {
    font-size: 1.6rem;
}

.review-rating .rating-number {
    font-size: 1.6rem;
}

.review-category {
    margin-bottom: 1.5rem;
}

.category-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #f1f9f8;
    color: #2A9D8F;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
}

.review-content p {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.7;
}

.reviews-more {
    text-align: center;
    margin-top: 5rem;
}

/* プラン・費用セクション */
.plans-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.plans-intro {
    margin-bottom: 4rem;
}

.plans-intro p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.7;
}

.plan-categories {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.plan-category {
    border-top: 1px solid #eee;
    padding-top: 3rem;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.category-header h3 {
    font-size: 2.2rem;
    color: #333;
}

.price-range {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2A9D8F;
}

.plan-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.plan-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.plan-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.plan-item h4 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2A9D8F;
    margin-bottom: 1.5rem;
}

.plan-features {
    padding-left: 2rem;
}

.plan-features li {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 0.8rem;
    position: relative;
}

.plan-features li::before {
    content: '';
    position: absolute;
    top: 0.8rem;
    left: -1.5rem;
    width: 0.6rem;
    height: 0.6rem;
    background-color: #2A9D8F;
    border-radius: 50%;
}

.category-notes {
    font-size: 1.4rem;
    color: #999;
    font-style: italic;
}

.plans-cta {
    margin-top: 5rem;
    background-color: #f1f9f8;
    border-radius: 10px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-message {
    margin-bottom: 2.5rem;
}

.cta-message h3 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.cta-message p {
    font-size: 1.6rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* リフォームの流れセクション */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.flow-steps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4rem;
    width: 2px;
    height: 100%;
    background-color: #f1f1f1;
    z-index: 0;
}

.flow-step {
    display: flex;
    gap: 3rem;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 8rem;
    height: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2A9D8F;
    color: #fff;
    font-size: 2.4rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(42, 157, 143, 0.2);
}

.step-content {
    flex: 1;
    padding-top: 1rem;
}

.step-content h3 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 1.5rem;
}

.step-content p {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.7;
}

/* FAQ セクション */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.faq-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.8rem;
    color: #333;
    flex: 1;
}

.toggle-icon {
    font-size: 1.6rem;
    color: #2A9D8F;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2.5rem 2.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 1.5rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.faq-answer li {
    font-size: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

/* お問い合わせフォーム */
.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.5rem;
    color: #333;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2A9D8F;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
}

.required {
    color: #e74c3c;
}

.checkbox-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 3.5rem;
    cursor: pointer;
    font-size: 1.5rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 2.5rem;
    width: 2.5rem;
    background-color: #f1f1f1;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #e1e1e1;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #2A9D8F;
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 0.9rem;
    top: 0.5rem;
    width: 0.7rem;
    height: 1.2rem;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    color: #666;
}

.checkbox-text a {
    color: #2A9D8F;
    text-decoration: underline;
}

.form-submit {
    margin-top: 3rem;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #333;
}

.contact-method {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.contact-method:last-child {
    margin-bottom: 0;
}

.method-icon {
    width: 5rem;
    height: 5rem;
    background-color: #f1f9f8;
    color: #2A9D8F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.method-details {
    flex: 1;
}

.method-details h4 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.phone-number,
.email-address,
.showroom-address {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.operation-hours,
.response-time,
.showroom-hours,
.showroom-info {
    font-size: 1.4rem;
    color: #666;
}

.info-map {
    position: relative;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* レスポンシブデザイン */
@media (max-width: 1200px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .main-image {
        height: 350px;
    }
    
    .thumb-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .review-summary {
        flex-direction: column;
        gap: 3rem;
    }
    
    .summary-score {
        padding-right: 0;
        padding-bottom: 2rem;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    
    .plan-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tab-list {
        justify-content: space-between;
    }
    
    .tab-item {
        padding: 1.5rem 1rem;
        font-size: 1.4rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .flow-steps::before {
        left: 3rem;
    }
    
    .step-number {
        width: 6rem;
        height: 6rem;
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .profile-rating {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .profile-cta {
        width: 100%;
    }
    
    .tab-item {
        padding: 1.5rem 0.8rem;
        font-size: 1.3rem;
    }
    
    .flow-steps::before {
        display: none;
    }
    
    .flow-step {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-method {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
}