/* =================================================================
    TWB Official Website Stylesheet
    [3/3] Page-Specific Styles
    ================================================================= */

/* ===== 2. レイアウト (Layout & Spacing) - Page Specific ===== */
.intro-section,
.features-section,
.cases-section,
.policy-section,
.translator-section,
.service-phase-section,
.service-strengths-section,
.tech-stack-section,
.case-study-article,
.company-section,
.recruit-section,
.contact-section,
.value-details-section /* value-details-section をこちらに移動 */
{
    max-width: 960px; /* 基本のコンテンツ幅 */
    margin-left: auto;
    margin-right: auto;
}

/* 一部のセクションでは、より広いコンテンツ幅を許容 */
.value-details-section, 
.service-strengths-section,
.policy-section, 
.translator-section,
.tech-stack-section {
    max-width: 1000px;
}

.service-phase-section {
    max-width: 1200px;
}


/* ===== 7. 各ページの個別スタイル (Page Specific Styles) ===== */

/* ----- トップページ ----- */
.features-section {
    background-color: var(--section-bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.features-section h2, .features-section > p {
    text-align: center;
    max-width: 800px;
}
#main .cases-section h2, #main .cases-section > p {
    text-align: center;
    max-width: 800px;
}
#main .cases-section .card-body {
    padding: 1.5rem 1.5rem 1rem;
}
#main .cases-section .card-summary {
    display: none;
}
#main .cases-section .card-link {
    display: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.feature-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.feature-card-icon {
    margin: 0 auto 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #e7f0f7;
    color: var(--twb-blue);
}

/* ----- TWBの提供価値ページ & サービスページ ----- */
.value-card-number {
    display: block;
    font-weight: 700;
    color: var(--twb-blue);
    margin-bottom: 0.5rem;
}
.value-card-content h2, .value-card-content h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}
.value-card-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}
.value-card-content li {
    margin-bottom: 0.75rem;
}

/* ----- 開発ポリシーページ ----- */
.policy-intro-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}
.policy-intro-text {
    flex: 1 1 60%;
}
.policy-intro-text h2, .policy-intro-text p {
    text-align: left;
}
.policy-intro-image {
    flex: 1 1 40%;
}
.policy-intro-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.policy-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.policy-card h3 {
    border-bottom: 2px solid var(--twb-blue);
    padding-bottom: 0.5rem;
}

.translator-section {
    background-color: var(--section-bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.translator-section h2, .translator-section > p {
    text-align: center;
    max-width: 800px;
}
.translator-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0 auto;
}
.translator-step {
    text-align: center;
}
.translator-step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    background-color: var(--twb-blue);
    color: white;
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ----- 提供サービスページ ----- */
.service-phase-section h2, .service-strengths-section h2, .service-strengths-section p {
    text-align: center;
    max-width: 800px;
}
.phase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.phase-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.phase-card h3 {
    border-bottom: 2px solid var(--twb-blue);
    padding-bottom: 0.5rem;
}
.phase-card ul {
    list-style-type: '✓ ';
    padding-left: 1.5rem;
}
.phase-card li {
    margin-bottom: 0.75rem;
}

.service-strengths-section {
    background-color: var(--section-bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.service-strengths-section .value-card-content h3 {
    font-size: 1.4rem;
}

.tech-stack-container {
    display: flex;
    gap: 3rem;
}
.tech-stack-column {
    flex: 1;
}
.tech-stack-column h2 {
    border-bottom: 2px solid var(--twb-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tag-list li {
    background-color: #e7f0f7;
    color: var(--twb-blue);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ----- 導入事例詳細ページ ----- */
.case-study-main-visual {
    margin-bottom: 3rem;
}
.case-study-main-visual img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.case-study-summary {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.summary-item {
    padding: 1.5rem;
}
.summary-label {
    font-weight: 700;
    color: var(--twb-blue);
    margin-bottom: 0.5rem;
}
.summary-value {
    font-size: 1rem;
}
.case-study-content h2 {
    margin-top: 3rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.case-study-content h3 {
    border-left: 4px solid var(--twb-blue);
    padding-left: 1rem;
}
.case-study-content p:last-child {
    margin-bottom: 0;
}
.pm-summary {
    margin-top: 3rem;
    background-color: var(--section-bg-color);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--twb-blue);
}
.pm-summary h3 {
    margin-top: 0;
    border-left: none;
    padding-left: 0;
}

/* ----- 会社案内ページ ----- */
.company-section.bg-light {
    background-color: var(--section-bg-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: none;
}

.greeting-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.greeting-text {
    flex: 1 1 60%;
}
.greeting-image {
    flex: 1 1 40%;
    text-align: center;
}
.greeting-image img {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.philosophy-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.philosophy-card h3 {
    color: var(--twb-blue);
}

.pledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.pledge-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.pledge-card h3 {
    border-bottom: 2px solid var(--twb-blue);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.profile-table {
    width: 100%;
    border: 1px solid var(--border-color);
}
.profile-table th, .profile-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    text-align: left;
}
.profile-table tr:last-child th, .profile-table tr:last-child td {
    border-bottom: none;
}
.profile-table th {
    background-color: var(--section-bg-color);
    font-weight: 700;
    width: 25%;
}

.access-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.map-embed {
    flex: 1 1 60%;
}
.map-embed iframe {
    width: 100%;
    height: 350px;
    border-radius: 8px;
}
.address-details {
    flex: 1 1 40%;
}
.address-details h3 {
    font-size: 1.4rem;
}

.history-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 2rem;
    border-left: 3px solid var(--twb-blue);
    padding-left: 2rem;
}
.history-list dt {
    font-weight: 700;
    grid-column: 1;
}
.history-list dd {
    grid-column: 2;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border-color);
}
.history-list dt:last-of-type + dd {
    border-bottom: none;
}

/* ----- 採用情報ページ ----- */
.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
    color: #555;
}
.message-container {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.message-text {
    flex: 2;
}
.message-image {
    flex: 1;
    text-align: center;
}
.message-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.message-signature {
    text-align: right;
    margin-top: 1rem;
}
.message-signature img {
    width: 200px;
    height: auto;
}
.job-description {
    margin-bottom: 3rem;
}
.job-description .checklist {
    list-style: '✓ ';
    padding-left: 1.5em;
    margin: 1.5rem 0;
}
.job-details-table {
    width: 100%;
    border: 1px solid var(--border-color);
}
.job-details-table th, .job-details-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
    text-align: left;
    vertical-align: top;
}
.job-details-table tr:last-child th, .job-details-table tr:last-child td {
    border-bottom: none;
}
.job-details-table th {
    background-color: var(--section-bg-color);
    font-weight: 700;
    width: 20%;
}

/* ----- お問い合わせページ ----- */
.contact-form-container {
    max-width: 800px;
    background-color: var(--surface-color);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.form-group .required {
    color: var(--twb-orange);
    font-size: 0.8em;
    margin-left: 0.25rem;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}
.privacy-policy-agreement {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}
.privacy-policy-agreement input[type="checkbox"] {
    margin-right: 0.5rem;
}
.privacy-policy-agreement a {
    text-decoration: underline;
}
.submit-button-container {
    text-align: center;
}


/* ===== 9. レスポンシブ対応 (Responsive) ===== */
@media (max-width: 1280px) {
    h1 {
        white-space: normal;
    }
}
@media (max-width: 992px) {
    header nav {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    header ul, .header-info {
        display: none;
    }
}
@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.1rem; }
    
    .page-hero {
        padding: 3rem 1.5rem;
    }
    .page-hero h1 {
        font-size: 1.8rem;
    }

    .intro-content, .policy-card, .phase-card, .pledge-card, .philosophy-card, .contact-form-container {
        padding: 2rem;
    }

    .value-card, .value-card.reverse, .policy-intro-content, .tech-stack-container, .greeting-container, .philosophy-container, .access-container, .message-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .value-card {
        padding: 1.5rem;
    }
    
    .summary-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .profile-table th, .profile-table td, .job-details-table th, .job-details-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .profile-table th, .job-details-table th {
        border-bottom: 1px solid var(--border-color);
    }
    .profile-table tr:not(:last-child) td, .job-details-table tr:not(:last-child) td {
        border-bottom: 1px solid #ddd;
    }
}