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

:root {
    /* カラーシステム */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-navy: #0a2540;
    --bg-navy-light: #12355a;
    --color-text-dark: #1e293b;
    --color-text-muted: #64748b;
    --color-text-light: #ffffff;
    --color-accent: #c5a880; /* シャンパンゴールド */
    --color-accent-hover: #b0936b;
    --color-primary: #0f52ba; /* サファイアブルー */
    --color-primary-light: #e6f0fa;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(10, 37, 64, 0.12);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* リセット */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Noto Sans JP', 'Outfit', sans-serif;
    line-height: 1.7;
    color: var(--color-text-dark);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

/* ヘッダー */
header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--bg-navy);
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 24px;
    background-color: var(--color-accent);
    border-radius: 4px;
}

.logo-sub {
    font-size: 10px;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    font-weight: 500;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

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

nav a:hover::after {
    width: 100%;
}

.header-cta {
    background-color: var(--bg-navy);
    color: var(--color-text-light) !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--bg-navy);
}

.header-cta:hover {
    background-color: transparent;
    color: var(--bg-navy) !important;
}

.header-cta::after {
    display: none;
}

/* ヒーローセクション */
.hero {
    position: relative;
    background-color: var(--bg-navy);
    background-image: linear-gradient(rgba(10, 37, 64, 0.85), rgba(18, 53, 90, 0.9)), 
                      url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    color: var(--color-text-light);
    padding: 140px 24px;
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(197, 168, 128, 0.15);
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.35;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: var(--color-accent);
}

.hero p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--bg-navy);
    border: 1px solid var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-text-light);
}

/* メインコンテンツレイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

section {
    margin-bottom: 100px;
}

section:last-child {
    margin-bottom: 0;
}

/* セクションタイトル */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
    display: block;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--bg-navy);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

/* 会社概要 (About) */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.intro-box {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.intro-box p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--color-text-dark);
}

.intro-box p:last-child {
    margin-bottom: 0;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-feature-item {
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.about-feature-item h4 {
    font-size: 16px;
    color: var(--bg-navy);
    margin-bottom: 8px;
    font-weight: 700;
}

.about-feature-item p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* 強み (Why Patstage) */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.strength-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.strength-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(197, 168, 128, 0.4);
}

.strength-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--bg-navy);
    transition: var(--transition-smooth);
}

.strength-card:hover::before {
    background-color: var(--color-accent);
}

.strength-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary-light);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
}

.strength-card h3 {
    font-size: 20px;
    color: var(--bg-navy);
    margin-bottom: 16px;
    font-weight: 700;
}

.strength-card p {
    font-size: 15px;
    color: var(--color-text-muted);
}

/* サービス (Services) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.service-card h3 {
    font-size: 22px;
    color: var(--bg-navy);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-card h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background-color: var(--color-primary);
    display: inline-block;
    border-radius: 2px;
}

.service-card p {
    font-size: 15px;
    color: var(--color-text-muted);
}

/* インタラクティブタブ (技術分野 & 実績) */
.tabs-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 30px;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--bg-navy);
    background-color: rgba(10, 37, 64, 0.05);
}

.tab-btn.active {
    background-color: var(--bg-navy);
    color: var(--color-text-light);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

/* 実績リスト */
.achievements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.achievement-item {
    background: var(--bg-primary);
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-accent);
    font-size: 15px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

/* 技術分野 */
.tech-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tech-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tech-card h4 {
    font-size: 18px;
    color: var(--bg-navy);
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-primary-light);
    padding-bottom: 8px;
}

.tech-card p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.tech-card p strong {
    color: var(--color-text-dark);
}

/* 料金セクション */
.pricing-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.table-responsive {
    overflow-x: auto;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
    table-layout: fixed;
}

/* 各列の幅の明示的調整 */
table th:nth-child(1), table td:nth-child(1) { width: 20%; } /* 調査種別 */
table th:nth-child(2), table td:nth-child(2) { width: 35%; } /* 調査概要 (狭く) */
table th:nth-child(3), table td:nth-child(3) { width: 20%; } /* 標準納期 (広く) */
table th:nth-child(4), table td:nth-child(4) { width: 25%; } /* 料金目安 (広く) */

th, td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    word-break: break-all;
}

th {
    background-color: var(--bg-navy);
    color: var(--color-text-light);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) td {
    background-color: var(--bg-secondary);
}

td strong {
    color: var(--bg-navy);
}

/* 料金開示トグル */
.price-disclosure {
    display: flex;
    align-items: center;
}

.reveal-price-btn {
    background-color: var(--color-accent);
    color: var(--bg-navy);
    border: 1px solid var(--color-accent);
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.reveal-price-btn:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

.price-value {
    font-weight: 700;
    color: var(--bg-navy);
    animation: fadeIn 0.4s ease;
}

.price-value.hidden {
    display: none;
}

/* 機密保持 & プライバシー */
.security-section {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    border: 1px solid var(--border-color);
}

.security-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 16px;
    color: var(--color-text-dark);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.security-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.security-card h4 {
    color: var(--bg-navy);
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-card h4::before {
    content: '✓';
    color: var(--color-accent);
    font-weight: bold;
}

.security-card p {
    font-size: 14px;
    color: var(--color-text-muted);
}

.privacy-toggle-btn {
    display: block;
    margin: 0 auto;
    background: none;
    border: 1px solid var(--bg-navy);
    color: var(--bg-navy);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.privacy-toggle-btn:hover {
    background-color: var(--bg-navy);
    color: var(--color-text-light);
}

.privacy-dropdown {
    display: none;
    margin-top: 30px;
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    animation: slideDown 0.4s ease;
}

.privacy-dropdown.active {
    display: block;
}

.privacy-dropdown h3 {
    margin: 24px 0 12px 0;
    font-size: 18px;
    color: var(--bg-navy);
}

.privacy-dropdown h3:first-child {
    margin-top: 0;
}

.privacy-dropdown ol, .privacy-dropdown ul {
    margin-left: 24px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.privacy-dropdown li {
    margin-bottom: 8px;
}

/* お問い合わせ（シンプル版） */
.contact-container-simple {
    max-width: 800px;
    margin: 0 auto;
}

.contact-card-simple {
    background-color: var(--bg-navy);
    color: var(--color-text-light);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card-simple h3 {
    font-size: 28px;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details-simple {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-detail-item-simple {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-detail-item-simple .icon {
    color: var(--color-accent);
    font-size: 20px;
}

.contact-detail-item-simple div h5 {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.contact-detail-item-simple div p {
    font-size: 15px;
    font-weight: 500;
}

.contact-btn-simple {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--bg-navy);
    padding: 16px 40px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-accent);
}

.contact-btn-simple:hover {
    background-color: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.2);
}

@media (max-width: 768px) {
    .contact-card-simple {
        padding: 40px 20px;
    }
    .contact-details-simple {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    .contact-detail-item-simple {
        justify-content: flex-start;
    }
}

/* フッター */
footer {
    background-color: var(--bg-navy);
    color: var(--color-text-light);
    padding: 60px 24px 30px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-brand h4 {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-smooth);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

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

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* スクロールアニメーション用 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ設計 */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .pricing-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        position: static;
    }
    .header-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .hero {
        padding: 100px 20px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    .tabs-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .tab-btn {
        text-align: center;
    }
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* 新規画像関連スタイル */
.about-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.tabs-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 30px;
    align-items: stretch;
}

.tabs-side-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tabs-side-img {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.security-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.security-img-wrapper {
    display: flex;
    justify-content: center;
}

.security-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* メディアクエリの調整 */
@media (max-width: 992px) {
    .tabs-wrapper {
        grid-template-columns: 1fr;
    }
    .tabs-side-img-wrapper {
        display: none; /* モバイルでは画像を非表示にして簡潔にするか、または下に配置 */
    }
    .security-layout {
        grid-template-columns: 1fr;
    }
    .security-img-wrapper {
        margin-top: 20px;
    }
}
