@charset "UTF-8";

/* ==========================================================================
   Variables - ブランドカラー・共通設定
   ========================================================================== */
:root {
    --primary: #0F172A;      /* 深いネイビー（信頼・誠実） */
    --secondary: #1E293B;    /* セカンダリネイビー */
    --accent: #2563EB;       /* アクセントブルー（挑戦・革新） */
    --bg-light: #F8FAFC;     /* 背景色（薄いグレー） */
    --text-main: #1F2937;    /* メインテキスト */
    --text-muted: #64748B;   /* 補足テキスト */
    --white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.1);
}

/* ==========================================================================
   Base - 基本設定
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   Layout - 共通レイアウト
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-small {
    max-width: 850px;
}

.section {
    padding: clamp(80px, 10vw, 120px) 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-30 { margin-bottom: 30px; }
.mb-50 { margin-bottom: 50px; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--primary); }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Header - ヘッダー
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

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

.nav-menu a:hover::after, .nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--white);
}

/* CTA Button */
.btn-cta {
    background: var(--accent);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-cta:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section - ヒーロー
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 48px;
    opacity: 0.9;
    max-width: 700px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border: none;
}

.btn-primary { background: var(--accent); color: var(--white); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* ==========================================================================
   Page Headers - 下層ページ用ヘッダー
   ========================================================================== */
.page-header {
    background: var(--primary);
    padding: 160px 0 80px;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}

.page-header p {
    opacity: 0.7;
    font-size: 1rem;
}

/* ==========================================================================
   Components - 汎用パーツ
   ========================================================================== */
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 60px;
    font-weight: 700;
}

.tag {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 15px;
}

/* Card Styles */
.card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Member Card */
.member-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: 100%;
}

.member-role {
    display: block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.member-info h3 {
    margin-bottom: 24px;
    font-size: 1.4rem;
}

/* ==========================================================================
   About Page - アバウト特有のスタイル
   ========================================================================== */
.mission-container {
    padding: 40px 0;
}

.vision-lead {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    line-height: 1.6;
}

.message-content p {
    margin-bottom: 24px;
    color: var(--secondary);
    text-align: justify;
}

/* 代表署名エリア */
.signature-area {
    margin-top: 60px;
}

.signature-img {
    max-width: 220px;
    height: auto;
    margin: 10px 0 0 auto; /* 右寄せ */
}

.signature-fallback {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: var(--secondary);
    border-bottom: 1px solid #cbd5e1;
    display: inline-block;
    padding-bottom: 5px;
}

/* ==========================================================================
   Legal Page - 利用規約・プライバシーポリシー
   ========================================================================== */
.legal-document {
    background: var(--white);
    padding: 60px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .legal-document { padding: 30px 20px; }
}

.legal-document h1 {
    font-size: 1.8rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 15px;
}

.legal-section {
    margin-bottom: 45px;
}

.legal-section h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-left: 4px solid var(--accent);
    padding-left: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.legal-section ol, .legal-section ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.legal-section li {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.my-50 {
    margin: 60px 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

/* Service Card Custom Styles */
.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.service-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.6;
}

.service-icon {
    font-size: 2.2rem;
    color: var(--accent);
}

.service-body h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.bg-dark .service-body h3 {
    color: var(--white);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.bg-dark .service-desc {
    color: rgba(255,255,255,0.7);
}

.service-feature-list {
    padding: 0;
    margin: 0;
}

.service-feature-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.bg-dark .service-feature-list li {
    color: var(--white);
}

.service-feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* ==========================================================================
   Footer - フッター
   ========================================================================== */
.footer {
    background: var(--primary);
    color: var(--white);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav h4 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-nav a {
    display: block;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #94A3B8;
}

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

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #475569;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

/* ==========================================================================
   Animations - スクロールアニメーション
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background: var(--white);
        margin: 6px 0;
        transition: 0.4s;
    }
}
/* ==========================================================================
   Case Study Styles - 画像サイズを統一する設定
   ========================================================================== */
.case-image {
    width: 100%;           /* 横幅は親要素（グリッド）に合わせる */
    height: 250px;         /* 高さを一定にする（ここを好きな数値に固定） */
    overflow: hidden;      /* はみ出た部分を隠す */
    border-radius: 8px;    /* 角を少し丸くする */
}

.case-image img {
    width: 100%;           /* 横幅を枠に合わせる */
    height: 100%;          /* 高さを枠に合わせる */
    object-fit: cover;     /* 画像を歪ませず、枠いっぱいに広げて切り抜く */
    object-position: center; /* 画像の中央を基準に切り抜く */
}

/* ホバー時に画像を少し大きくする演出（お好みで） */
.case-image:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   Design Update - 3 Sections
   ========================================================================== */

/*共通設定 */
.section-header {
    margin-bottom: 60px;
}

/* 1. Problem Section - 悩み (左ラインと薄い影で上品に) */
.problem-card {
    background: var(--white);
    padding: 40px;
    border-left: 4px solid #e2e8f0; /* 控えめなライン */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.problem-card:hover {
    border-left-color: var(--accent);
    transform: translateX(10px);
}

.problem-icon {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.8;
}

.problem-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* 2. Service Overview - できること (カードを浮かせて奥行きを出す) */
.service-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.service-box-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.service-box-header i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: block;
}

.service-box-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.service-list {
    padding: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.service-list li i {
    color: var(--accent);
    font-size: 0.8rem;
}

/* 3. Why Us - なぜ選ばれるか (タイポグラフィを強調) */
.why-grid {
    display: grid;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #e2e8f0;
}

.why-item:last-child {
    border-bottom: none;
}

.why-number {
    font-family: 'Montserrat', sans-serif; /* もしあれば */
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.2;
    line-height: 1;
    min-width: 80px;
}

.why-text h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.why-text p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .why-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .why-number {
        font-size: 2.5rem;
    }
}

/* サービスボタンのリンク */
.btn-text {
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}
.btn-text:hover {
    color: var(--accent);
}

/* ==========================================================================
   Header Logo - ロゴと会社名
   ========================================================================== */
.logo {
    display: flex;            /* 横並びにする */
    align-items: center;      /* 垂直中央に揃える */
    gap: 12px;                /* 画像と文字の間の隙間 */
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
}

.header-logo-img {
    width: 32px;              /* ロゴの横幅（お好みで調整してください） */
    height: 32px;             /* ロゴの高さ */
    object-fit: cover;        /* 正方形に収める */
    border-radius: 4px;       /* 少しだけ角を丸くする（任意） */
    display: block;
}

/* ==========================================================================
   Access / Company Styles
   ========================================================================== */
.info-list {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px 30px;
}

.info-list dt {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    position: relative;
    padding-top: 5px;
}

.info-list dd {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper iframe {
    filter: grayscale(0.2) contrast(1.1); /* 少しだけシックな色味に */
}

@media (max-width: 768px) {
    .info-list {
        grid-template-columns: 1fr; /* スマホでは縦並び */
        gap: 5px 0;
        margin-bottom: 30px;
    }
    .info-list dt {
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }
    .info-list dt:first-child {
        border-top: none;
    }
}

/* ==========================================================================
   Improved Footer Styles
   ========================================================================== */
.footer {
    background-color: #0a0f1d; /* より深いネイビー */
    color: var(--white);
    padding: 80px 0 40px;
    font-size: 0.95rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Brand Column */
.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Social Icons */
.footer .social-links {
    display: flex;
    gap: 20px;
    margin-top: 0; /* Override previous style */
}

.footer .social-links a {
    color: var(--white);
    font-size: 1.4rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer .social-links a:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-3px);
}

/* Common Column Styles */
.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px;
}

/* Info Column */
.office-info {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent) !important;
    padding: 12px 20px;
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.3);
    font-weight: 600;
}

.footer-cta-link:hover {
    background: var(--accent);
    color: var(--white) !important;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal {
    display: flex;
    gap: 30px;
}

.footer-legal a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}