/**
 * パーツ共通のスタイル
 */

/* セクションタイトル */
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #0073aa;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.btn:hover {
    background-color: #005177;
    color: #fff;
}

.btn-recruit {
    display: inline-block;
    padding: 15px 40px;
    background-color: #ff6b6b;
    color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-recruit:hover {
    background-color: #ee5a5a;
    color: #fff;
}

.btn-load-more {
    display: block;
    margin: 2rem auto;
    padding: 12px 30px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

/* お問い合わせフォーム */
.contact-form-wrapper {
    max-width: 600px;
    margin: 2rem auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group .required {
    color: #d63638;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    padding: 12px 40px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #005177;
}

/* ============================================
   ヘッダー（全ページ共通）
   ============================================ */
#masthead.site-header,
.site-header {
    background-color: #fff;
    height: 80px;
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
}

#masthead.site-header.is-sticky,
.site-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.header-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-branding {
    flex-shrink: 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.site-logo-icon {
    width: 32px;
    height: 32px;
    background-color: #e76f51;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon-img {
    width: auto;
    height: auto;
    font-size: 20px;
    color: #fff;
    display: block;
}

.site-logo-text {
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 24px;
    line-height: 32px;
    color: #4a4a4a;
    letter-spacing: 0.6px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-nav-menu li {
    margin: 0;
    position: relative;
}

.header-nav-item-dropdown {
    position: relative;
}

.header-nav-menu a {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-nav-menu a:hover {
    color: #e76f51;
}

/* 事業内容ドロップダウンメニューの親リンク（クリック不可） */
.header-nav-item-dropdown > a {
    cursor: default;
}

.header-nav-item-dropdown > a:hover {
    color: #4a4a4a;
}

/* 事業内容ドロップダウンメニュー */
.header-services-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.header-nav-item-dropdown:hover .header-services-dropdown,
.header-services-dropdown:hover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header-services-dropdown-container {
    background-color: #fff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -2px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 24px;
    min-width: 600px;
}

.header-service-card {
    flex: 1;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.header-service-card:hover {
    background-color: #fef5f3;
    border: 2px solid #e76f51;
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.header-service-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-service-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffebe8;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-service-card-icon img {
    width: 32px;
    height: 32px;
    display: block;
}

/* Font Awesomeアイコン用 */
.header-service-card-icon i {
    font-size: 16px;
    color: #e76f51;
    display: block;
}

.header-service-card:hover .header-service-card-icon {
    background-color: #e76f51;
}

.header-service-card:hover .header-service-card-icon img {
    filter: brightness(0) invert(1);
}

/* Font Awesomeアイコン用のホバー効果 */
.header-service-card:hover .header-service-card-icon i {
    color: #fff;
}

.header-service-card-title {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
    color: #4a4a4a;
    margin: 0;
    transition: color 0.3s ease;
    flex: 1;
}

.header-service-card:hover .header-service-card-title {
    color: #e76f51;
}

.header-service-card-subtitle {
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 16px;
    color: #4a4a4a;
    margin: 0;
    padding-left: 42px;
}

.header-contact-btn {
    background-color: #e76f51;
    color: #fff;
    padding: 0 24px;
    height: 40px;
    border-radius: 50px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 40px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-contact-btn:hover {
    background-color: #d65a40;
    color: #fff;
}

/* 事業内容のchevron（デスクトップでは非表示、モバイルで表示） */
.header-nav-chevron {
    display: none;
}

/* ハンバーガーボタン（デスクトップでは非表示・見た目は768px以下で指定） */
.menu-toggle {
    display: none;
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   フッター（全ページ共通）
   ============================================ */
.site-footer {
    background: linear-gradient(to bottom, #f8e9da, rgba(248, 233, 218, 0.5));
    padding: 64px 0 0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 2fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background-color: #e76f51;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon-img {
    width: auto;
    height: auto;
    font-size: 20px;
    color: #fff;
    display: block;
}

.footer-logo-text {
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 28px;
    color: #e76f51;
}

.footer-company-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-address,
.footer-phone,
.footer-email {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-info-icon {
    width: auto;
    height: auto;
    font-size: 20px;
    color: #4a4a4a;
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-block;
}

.footer-address-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-address-text p,
.footer-phone p,
.footer-email p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: rgba(74, 74, 74, 0.8);
    margin: 0;
}

.footer-menu,
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.footer-menu-title {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: #4a4a4a;
    margin: 0;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-link {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: rgba(74, 74, 74, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: #e76f51;
}

/* フッターの事業内容リンク（クリック不可） */
.footer-nav-link-no-click {
    cursor: default;
}

.footer-nav-link-no-click:hover {
    color: rgba(74, 74, 74, 0.8);
}

.footer-nav-sublinks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
}

.footer-nav-sublink {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: rgba(74, 74, 74, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-sublink:hover {
    color: #e76f51;
}

.footer-copyright {
    border-top: 0.8px solid rgba(74, 74, 74, 0.1);
    padding: 32.8px 0;
    text-align: center;
}

.footer-copyright p {
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: #8b8b8b;
    margin: 0;
}

/* ============================================
   ヘッダー・フッター レスポンシブ対応
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
    
    .footer-menu,
    .footer-legal {
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 20px 0;
    }
    
    .header-container {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0 20px;
    }
    
    .site-branding {
        min-height: 56px;
        display: flex;
        align-items: center;
    }
    
    .menu-toggle,
    button.menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        padding: 0;
        border: none;
        background-color: rgba(0, 0, 0, 0.04);
        color: #4a4a4a;
        cursor: pointer;
        border-radius: 8px;
        transition: color 0.3s ease, background-color 0.3s ease;
    }
    
    .menu-toggle:hover,
    button.menu-toggle:hover {
        color: #e76f51;
        background-color: rgba(231, 111, 81, 0.08);
    }
    
    .menu-toggle:focus,
    button.menu-toggle:focus {
        outline: 2px solid #e76f51;
        outline-offset: 2px;
    }
    
    .menu-toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
    }
    
    .menu-toggle-icon-close {
        display: none;
    }
    
    .menu-toggle.active .menu-toggle-icon-bars {
        display: none;
    }
    
    .menu-toggle.active .menu-toggle-icon-close {
        display: flex;
    }
    
    .menu-toggle.active {
        color: #333;
        background-color: transparent;
    }
    
    .main-navigation {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        order: 3;
        padding: 20px 20px 24px;
        margin: 0 -20px 0;
        border-top: 1px solid rgba(74, 74, 74, 0.12);
        background-color: #fff;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }
    
    .main-navigation.active {
        display: flex;
        position: fixed;
        top: 96px;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        z-index: 99;
        margin: 0;
        border-radius: 0 0 16px 16px;
        box-shadow: none;
        align-items: stretch;
        flex-direction: column;
        /* ヘッダー直下の余白は0にする */
        padding: 0 24px 32px;
        background-color: #fcfbf7;
    }
    
    .main-navigation.active .header-nav-menu {
        display: flex;
        flex-shrink: 0;
        flex-direction: column;
        width: 100%;
    }
    
    .header-nav-menu {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .header-nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
    }
    
    .header-nav-menu li:last-of-type {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .header-nav-menu a {
        font-size: 16px;
        padding: 16px 20px;
        min-height: 48px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        color: #333;
    }
    
    .header-nav-item-dropdown > a {
        justify-content: space-between;
    }
    
    /* 事業内容：線を3事業の上に表示（「事業内容」行と3事業の間に線） */
    .header-nav-item-dropdown {
        border-bottom: none;
    }
    
    .header-nav-chevron {
        display: inline-flex;
        align-items: center;
        margin-left: auto;
        font-size: 12px;
        color: #333;
    }
    
    /* 768px以下ではドロップダウンはタップで開閉（hover無効） */
    .header-nav-item-dropdown:hover .header-services-dropdown {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    
    .header-services-dropdown {
        display: none;
    }
    
    .header-nav-item-dropdown.is-open .header-services-dropdown {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .header-services-dropdown {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
        margin-top: -12px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 12px;
    }
    
    .header-services-dropdown-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-direction: column;
        align-items: stretch;
        /* 3事業をやや上に寄せる */
        padding: 0;
        gap: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .header-service-card {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        text-align: left;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px 20px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background-color: transparent;
        box-sizing: border-box;
        overflow: hidden;
    }

    .header-service-card:last-child {
        border-bottom: none;
    }
    
    .header-service-card-top,
    .header-service-card-title {
        min-width: 0;
    }
    
    .header-service-card-subtitle {
        padding-left: 0;
        min-width: 0;
    }
    
    .main-navigation.active .header-contact-btn {
        display: flex;
        width: 100%;
        margin-top: 32px;
        padding: 16px 24px;
        min-height: 48px;
        border-radius: 50px;
        text-align: center;
        justify-content: center;
        align-items: center;
        background-color: #e76f51;
        box-sizing: border-box;
    }
    
    .main-navigation.active .header-contact-btn:hover {
        background-color: #d65a40;
    }
    
    .header-contact-btn {
        align-self: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-bottom: 40px;
    }
    
    /* スマホフッター：ロゴ中央・連絡先ボックス・ナビ・法的情報1行・コピーライト */
    .site-footer {
        padding: 56px 24px 0;
    }
    
    .footer-container {
        padding: 0;
    }
    
    .footer-company {
        align-items: center;
        gap: 24px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-logo-text {
        color: #4a4a4a;
    }
    
    .footer-company-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-address {
        order: 1;
    }
    
    .footer-phone {
        order: 2;
    }
    
    .footer-email {
        order: 3;
    }
    
    .footer-address,
    .footer-phone,
    .footer-email {
        background: rgba(231, 111, 81, 0.12);
        border-radius: 12px;
        padding: 14px 16px;
        align-items: center;
        gap: 10px;
    }
    
    .site-footer .footer-info-icon {
        color: #e76f51;
    }
    
    .footer-address-text p,
    .footer-phone p,
    .footer-email p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .footer-menu .footer-menu-title,
    .footer-legal .footer-menu-title {
        display: none;
    }
    
    .footer-menu,
    .footer-legal {
        align-items: stretch;
    }
    
    .footer-menu .footer-nav {
        gap: 4px;
    }
    
    .footer-menu .footer-nav-link,
    .footer-menu .footer-nav-sublink {
        min-height: 44px;
        padding: 10px 0;
        display: inline-flex;
        align-items: center;
    }
    
    .footer-menu .footer-nav-sublinks {
        padding-left: 16px;
    }
    
    .footer-legal {
        border-top: 1px solid rgba(74, 74, 74, 0.1);
        padding-top: 24px;
    }
    
    .footer-legal .footer-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0;
    }
    
    .footer-legal .footer-nav-link {
        display: inline;
        padding: 0;
        min-height: 0;
        font-size: 14px;
        color: rgba(74, 74, 74, 0.6);
    }
    
    .footer-legal .footer-nav-link:hover {
        color: #e76f51;
    }
    
    .footer-legal .footer-nav-link::after {
        content: ' | ';
        color: rgba(74, 74, 74, 0.35);
        margin-left: 4px;
        margin-right: 4px;
    }
    
    .footer-legal .footer-nav-link:last-child::after {
        content: none;
        margin: 0;
    }
    
    .footer-copyright {
        border-top: 1px solid rgba(74, 74, 74, 0.08);
        padding: 24px 0;
    }
    
    .footer-copyright p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }
    
    .main-navigation {
        margin: 0 -16px 0;
        padding: 16px 16px 20px;
    }
    
    .main-navigation.active {
        top: 88px;
        /* ヘッダー直下の余白は0にする */
        padding: 0 20px 28px;
        background-color: #fcfbf7;
        border-radius: 0 0 16px 16px;
    }
    
    .header-nav-menu {
        align-items: stretch;
        width: 100%;
    }
    
    .header-nav-menu li {
        width: 100%;
    }
    
    .header-nav-menu a {
        justify-content: flex-start;
        width: 100%;
        padding: 16px 20px;
        min-height: 48px;
    }
    
    .header-nav-item-dropdown > a {
        justify-content: space-between;
    }
    
    /* 事業内容：線を3事業の上に表示 */
    .header-nav-item-dropdown {
        border-bottom: none;
    }
    
    .header-services-dropdown {
        position: static;
        transform: none;
        margin-top: -12px;
        width: 100%;
        display: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding-top: 12px;
    }
    
    .header-nav-item-dropdown.is-open .header-services-dropdown {
        display: block;
    }
    
    .header-services-dropdown {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .header-services-dropdown-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        align-items: stretch;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .header-service-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        background-color: transparent;
        box-sizing: border-box;
        overflow: hidden;
    }

    .header-service-card:last-child {
        border-bottom: none;
    }
    
    .header-service-card-top,
    .header-service-card-title {
        min-width: 0;
    }
    
    .header-service-card-icon {
        width: 32px;
        height: 32px;
    }
    
    .header-service-card-icon img {
        width: 16px;
        height: 16px;
    }
    
    .header-service-card-icon i {
        font-size: 16px;
    }
    
    .header-service-card-title {
        font-size: 14px;
    }
    
    .header-service-card-subtitle {
        font-size: 13px;
        padding-left: 0;
        min-width: 0;
    }
    
    .site-footer {
        padding: 48px 16px 0;
    }
    
    .footer-container {
        padding: 0;
    }
    
    .footer-content {
        gap: 32px;
    }
    
    .footer-nav-link,
    .footer-nav-sublink {
        min-height: 44px;
        padding: 8px 0;
        display: inline-flex;
        align-items: center;
    }
}

