/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background: #fff;
}

/* 見出し用フォント設定 */
h1, h2, h3, h4, h5, h6,
.section-title,
.hero-title,
.nav-logo h1 {
    font-family: 'Noto Serif JP', 'Noto Sans JP', serif;
    font-weight: 700;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-tagline {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 500;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #2563eb;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #4a5568;
    transition: 0.3s;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url('hero.png'), linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%232563eb" opacity="0.1"/><circle cx="80" cy="40" r="2" fill="%232563eb" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="%232563eb" opacity="0.1"/></svg>');
    background-size: 100px 100px;
    opacity: 0.5;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #1a202c;
    text-shadow: none;
}

.highlight {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: none;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: none;
}

.hero-cta {
    margin-top: 2rem;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* セクション共通 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* 提供サービス */
.services {
    padding: 6rem 0;
    background: #fff;
}

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

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.service-card p {
    color: #64748b;
    line-height: 1.6;
}

/* なぜ選ばれるか */
.why-choose {
    padding: 6rem 0;
    background: #f8fafc;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.why-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.why-number {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.why-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.why-item p {
    color: #64748b;
    line-height: 1.7;
}

/* 支援実績 */
.results {
    padding: 6rem 0;
    background: #fff;
}

.results-table {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr;
    border-top: 1px solid #e2e8f0;
}

.table-cell {
    padding: 1.5rem;
    border-right: 1px solid #e2e8f0;
}

.table-cell:last-child {
    border-right: none;
}

.result-highlight {
    font-weight: 700;
    color: #2563eb;
}

/* モバイル用実績カード */
.results-mobile {
    display: none;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.result-card .result-client {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.result-card .result-content {
    color: #64748b;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.result-card .result-period {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.result-card .result-outcome {
    background: #f0f9ff;
    color: #2563eb;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-align: center;
}

/* FAQ */
.faq {
    padding: 6rem 0;
    background: #f8fafc;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0;
}

.faq-question i {
    color: #2563eb;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #64748b;
    line-height: 1.7;
}

/* プロフィール */
.profile {
    padding: 6rem 0;
    background: #fff;
}

.profile-content {
    margin-bottom: 3rem;
}

.profile-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.profile-career {
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.profile-details p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.profile-credentials {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.credential-item h4 {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.credential-item p {
    color: #64748b;
    font-size: 0.95rem;
}

.profile-philosophy {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.profile-philosophy h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.philosophy-points {
    margin-top: 1rem;
}

.philosophy-point {
    margin-bottom: 1rem;
    color: #64748b;
    line-height: 1.7;
}

.philosophy-point strong {
    color: #2563eb;
}

.profile-message {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.profile-message h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.profile-message p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* 新しいプロフィールセクションのスタイル */
.company-overview {
    text-align: center;
    margin-bottom: 4rem;
}

.company-overview p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.profile-summary {
    background: #f8fafc;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.profile-summary p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.profile-summary p:last-child {
    margin-bottom: 0;
}

.profile-text {
    text-align: center;
    margin-bottom: 3rem;
}

.profile-text p {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.7;
}

.profile-text p:last-child {
    margin-bottom: 0;
}

.profile-link {
    text-align: center;
    margin-top: 2rem;
}

/* 会社基本情報テーブル */
.company-basic-info {
    margin-bottom: 4rem;
}

.company-basic-info .company-table {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-width: 700px;
    margin: 0 auto;
}

/* 会社概要詳細ページ用スタイル */
.page-header {
    padding: 8rem 0 4rem;
    background: #f8fafc;
    text-align: center;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.breadcrumb {
    color: #64748b;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

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

.company-detail {
    padding: 6rem 0;
    background: #fff;
}

.philosophy-section {
    padding: 6rem 0;
    background: #f8fafc;
}

.philosophy-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.philosophy-items {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-item {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 4px solid #2563eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.philosophy-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
}

.philosophy-item p {
    color: #64748b;
    line-height: 1.7;
}

.message-section {
    padding: 6rem 0;
    background: #fff;
}

.message-content {
    max-width: 900px;
    margin: 0 auto;
}

.message-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.message-highlight {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
    text-align: center;
}

.contact-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn {
    background: white;
    color: #2563eb;
}

.cta-content .btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* 会社概要 */
.company {
    padding: 6rem 0;
    background: #f8fafc;
}

.company-table {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    max-width: 800px;
    margin: 0 auto;
}

.company-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    border-bottom: 1px solid #e2e8f0;
}

.company-row:last-child {
    border-bottom: none;
}

.company-label {
    padding: 1.5rem;
    background: #f8fafc;
    font-weight: 700;
    color: #374151;
    border-right: 1px solid #e2e8f0;
}

.company-value {
    padding: 1.5rem;
    color: #64748b;
}

/* お問い合わせ */
.contact {
    padding: 6rem 0;
    background: #fff;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.contact-item i {
    font-size: 1.5rem;
    color: #2563eb;
    width: 40px;
    text-align: center;
}

.contact-item h4 {
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #64748b;
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* フォームラベルスタイル */
.contact-form label {
    display: block;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 1rem;
}

.contact-form .required {
    color: #ef4444;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    margin-top: 0.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* 送信結果メッセージ */
#responseMsg {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

#responseMsg.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#responseMsg.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.hidden {
    display: none !important;
}

/* 従来のform-groupスタイルも残す（互換性のため） */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* フッター */
.footer {
    background: #1a202c;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 0;
}

.footer-brand p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.footer-section p {
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 2rem;
}

.footer-nav a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #2563eb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: white;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .nav-logo {
        gap: 0.75rem;
    }
    
    .nav-tagline {
        font-size: 0.8rem;
    }
    
    .results-table {
        display: none;
    }
    
    .results-mobile {
        display: block;
    }
    
    .company-row {
        grid-template-columns: 1fr;
    }
    
    .company-label {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .why-item {
        padding: 2rem 1.5rem;
    }
    
    .profile-message {
        padding: 2rem 1.5rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* スムーズなスクロール時のアニメーション */
.service-card,
.why-item,
.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}