/*
Theme Name: SKT Partners Original Theme
Author: Gemini
Description: 医療・介護コンサルティング「株式会社SKTパートナーズ」のオリジナルテーマ
Version: 1.3
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary-color: #007b8f;
    /* ロゴや見出しの青緑色 */
    /* --accent-green: #00a651; */
    --accent-green: #007b8f;
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #fff;
    --border-color: #e0e0e0;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 50px;
    font-weight: 700;
}

/* =========================================
   Header & Navigation
   ========================================= */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
    /* margin-top: 20px; */
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.insta-btn {
    background: #e1306c;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-cta {
    text-align: center;
}

.cta-text {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-color);
}

.cta-btn {
    background: var(--accent-green);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.cta-btn:hover {
    opacity: 0.9;
}

/* Hamburger animation */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 1001;
    /* メニューの被りより上にするため */
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* Hamburger active transformation */
.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

body.menu-open {
    overflow: hidden;
    /* スマホメニュー開閉時の背面のスクロールを禁止 */
}

/* =========================================
   Hero Section
   ========================================= */
#hero {
    height: 600px;
    margin-top: 80px;
    position: relative;
    background-color: #cbd5e1;
    /* 画像が無い場合のダミー背景色 */
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 50, 70, 0.4);
    /* 暗くするオーバーレイ */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 50px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: serif;
}

.hero-philosophy {
    position: absolute;
    bottom: -50px;
    background-color: var(--accent-green);
    color: var(--white);
    max-width: 950px;
    width: 90%;
    display: flex;
    align-items: center;
    padding: 35px 50px;
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.philosophy-title {
    flex: 0 0 25%;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    padding-right: 35px;
}

.philosophy-jp {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.philosophy-en {
    display: block;
    font-size: 2.8rem;
    font-family: "Times New Roman", Times, serif;
    letter-spacing: 1px;
}

.philosophy-text {
    flex: 1;
    padding-left: 45px;
    text-align: left;
}

.philosophy-text p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
}

/* =========================================
   Subpage Headers
   ========================================= */
.subpage-main {
    padding-bottom: 80px;
}

.page-header {
    background-color: var(--primary-color);
    padding: 150px 20px 60px;
    /* Fixed Header考慮 */
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 700;
}

/* =========================================
   Services Section
   ========================================= */
#services {
    background-color: var(--bg-light);
    padding-top: 140px;
    /* Hero Philosophyの飛び出し分を考慮 */
}

.capability-bar {
    background-color: var(--primary-color);
    /* 添付画像にある深い緑色 */
    padding: 25px 0;
    margin-bottom: 60px;
    /* Heroと同じように全幅に広げるためのネガティブマージン手法 */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.capability-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.capability-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.8);
    padding: 0 10px;
    line-height: 1.4;
}

.capability-item:last-child {
    border-right: none;
}

.capability-item i {
    font-size: 2rem;
    margin-bottom: 12px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 50px 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.service-card p {
    font-size: 1rem;
    text-align: justify;
    line-height: 1.7;
}

/* 新しく追加したサービスの画像スタイル */
.service-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    /* ダミー枠用の比率 */
    background-color: #e2e8f0;
    /* ダミー背景色 */
    color: #64748b;
    /* 画像がない場合のテキスト色 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    border-radius: 8px;
    margin-top: 25px;
    object-fit: cover;
}

/* =========================================
   Works Section
   ========================================= */
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4列表示に変更 */
    gap: 30px;
}

.work-item {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
}

.work-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    /* 画像がない場合の比率 */
    background-color: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    object-fit: cover;
}

.work-info {
    padding: 25px;
}

.work-info h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.work-info p {
    font-size: 0.95rem;
    color: #555;
}

/* =========================================
   Company Section
   ========================================= */
#company {
    background-color: var(--bg-light);
}

.company-layout {
    display: flex;
    align-items: stretch;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.company-table {
    flex: 1;
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 25px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.company-table th {
    width: 30%;
    color: var(--primary-color);
    font-weight: 700;
}

.company-photo {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.company-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #cbd5e1;
}

/* =========================================
   Contact Section
   ========================================= */
.contact-flow {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

.flow-card {
    flex: 1;
    background: var(--white);
    padding: 30px 25px;
    text-align: left;
    border-radius: 8px;
    border: 3px solid var(--accent-green);
    box-shadow: 8px 8px 0px var(--accent-green);
    position: relative;
}

.flow-num {
    display: inline-block;
    background-color: var(--accent-green);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 900;
    padding: 8px 15px;
    margin-bottom: 20px;
}

.flow-title {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.flow-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
}

.contact-form {
    max-width: 850px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 35px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

.form-group textarea {
    min-height: 180px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 60px;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: opacity 0.3s;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Contact Form 7 のエラーメッセージ等の調整 */
.wpcf7-not-valid-tip {
    color: #ff3333;
    font-size: 0.9rem;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin-top: 30px !important;
    border-radius: 4px;
}

/* =========================================
   Archive (Columns)
   ========================================= */
.archive-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-tab {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.category-tab:hover,
.category-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.column-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.column-card:hover {
    transform: translateY(-5px);
}

.column-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.column-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e2e8f0;
}

.column-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.column-card-title {
    padding: 20px;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
    color: var(--text-color);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 50px;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
}

.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 30px;
    text-align: center;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: #aaa;
    margin: 0 15px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    color: #777;
    font-size: 0.85rem;
}

/* スマホ表示用改行 */
.br-sp {
    display: none;
}

/* =========================================
   Responsive Design (SP)
   ========================================= */
@media (max-width: 992px) {
    .br-sp {
        display: block;
    }

    /* Hamburger & Slide menu */
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: 29px; /* Header高度80pxの中央 */
    }

    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 100px 40px 40px;
        z-index: 1000;
        overflow-y: auto;
    }

    .header-right.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        margin-top: 0; /* PC用の縦線位置合わせを解除 */
    }

    .header-cta {
        display: block;
        margin-top: 30px;
        text-align: left;
    }

    /* Hero Section Fixes */
    #hero {
        height: 100vh;
        margin-top: 0px;
        min-height: 100vh;
        padding-top: 120px;
        justify-content: center;
    }

    .hero-content {
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-philosophy {
        position: static;
        flex-direction: column;
        padding: 30px 20px;
        width: 100%;
        box-shadow: none;
    }

    .philosophy-title {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
        text-align: center;
        width: 100%;
        flex: auto;
    }

    .philosophy-text {
        padding-left: 0;
        text-align: center;
    }

    .philosophy-text p {
        font-size: 1rem;
    }

    /* Services padding adjustment due to static philosophy */
    #services {
        padding-top: 80px;
    }

    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .company-layout {
        flex-direction: column;
        padding: 20px;
    }

    .company-photo {
        width: 100%;
        height: 300px;
    }

    /* Contact Flow */
    .contact-flow {
        flex-direction: column;
    }

    /* Column Grid */
    .column-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .works-grid {
        grid-template-columns: 1fr;
    }

    .capability-list {
        flex-wrap: wrap;
        gap: 0;
    }

    .capability-item {
        flex: 1 1 45%;
        /* スマホ時は2列並びなど */
        border-right: 1px solid rgba(255, 255, 255, 0.4);
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
        padding: 15px 5px;
    }

    .capability-item:nth-child(even) {
        border-right: none;
    }

    .company-photo {
        height: 220px;
    }

    /* Column Grid */
    .column-grid {
        grid-template-columns: 1fr;
    }
}