/* リセットと基本設定 */
:root {
    --primary-color: #0056b3; /* 信頼感のある青 */
    --primary-dark: #003d82;
    --secondary-color: #00a8e8; /* 明るい青 */
    --accent-color: #ff9f1c; /* アクセントカラー（オレンジ系） */
    --text-color: #333333;
    --text-light: #666666;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --font-base: 'Noto Sans JP', sans-serif;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --gradient-hero: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%);
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #00a8e8 100%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-base);
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* スクロール検知用クラス */
.animate-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.animate-trigger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延表示用 */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ボタン */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.4);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.03);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    transition: height 0.3s ease;
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.logo img {
    height: 55px;
    width: auto;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 45px;
}

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

.nav-list a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:not(.btn-nav):hover::after {
    width: 100%;
}

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

.btn-nav {
    background: var(--gradient-primary);
    color: var(--white) !important;
    padding: 12px 32px; /* 上下10px->12px, 左右24px->32px に拡大 */
    border-radius: 4px; /* 角丸を少し調整する場合もありますが、今回は余白メイン */
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
    display: inline-block; /* インラインブロックを明示 */
    min-width: 140px; /* 最小幅を設定して安定させる */
    text-align: center; /* テキストを中央揃え */
    font-weight: 700; /* 文字を少し太くして視認性アップ */
    letter-spacing: 0.05em; /* 文字間隔を少し空ける */
    line-height: 1; /* 高さの計算をシンプルに */
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 86, 179, 0.3);
    color: var(--white) !important;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: var(--text-color);
    margin: 6px 0;
    transition: 0.3s;
}

/* ヒーローセクション（ダーウィン風） */
.hero {
    margin-top: 80px;
    padding: 0; /* 全画面表示のためパディング解除 */
    height: calc(100vh - 80px); /* ヘッダー分引いた全画面 */
    min-height: 600px;
    /* 背景画像（ビル群のまま） */
    background: linear-gradient(rgba(0, 20, 40, 0.6), rgba(0, 20, 40, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 40px;
    z-index: 2;
    text-align: left; /* 左揃えに戻す（参考サイト風） */
}

.hero-content {
    position: relative;
}

/* 縦書きの英語装飾（参考サイト風） */
.hero-decoration {
    position: absolute;
    left: -60px;
    top: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.5);
    height: 100%;
    display: flex;
    align-items: center;
    transform: rotate(180deg); /* 下から上へ */
}

.hero-title-wrapper {
    margin-bottom: 40px;
    border-left: 1px solid rgba(255,255,255,0.3); /* 左に細い線 */
    padding-left: 40px;
}

.hero-content h1 {
    font-size: 4.5rem; /* かなり大きく */
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    text-shadow: none; /* フラットに */
    /* グラデーション解除 */
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0;
    display: block;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content p {
    font-size: 1rem;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    max-width: 500px;
    margin-left: 40px; /* 線の内側に合わせる */
}

.hero-buttons {
    margin-top: 50px;
    margin-left: 40px;
}

/* アニメーション（スライドイン） */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-anim-delay-1 { animation-delay: 0.2s; }
.hero-anim-delay-2 { animation-delay: 0.4s; }
.hero-anim-delay-3 { animation-delay: 0.6s; }

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .hero {
        height: auto;
        padding: 120px 0 100px;
        text-align: left;
    }
    
    .hero-container {
        padding: 0 24px;
    }
    
    .hero-decoration {
        display: none;
    }
    
    .hero-title-wrapper {
        padding-left: 20px;
        margin-bottom: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content p, .hero-buttons {
        margin-left: 20px;
    }
}

/* ボタンのスタイル調整（背景あり用） */
.hero-buttons .btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.hero-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* セクション共通 */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Aboutセクション */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

/* サービスセクション */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    align-items: flex-start; /* 上揃えで配置 */
}

.service-card {
    width: 240px; /* 幅を少し調整 */
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 背景・影などは削除し、要素ごとのスタイルへ移行 */
    background: transparent;
    box-shadow: none;
    border: none;
    height: auto; /* 高さを自動に */
    padding: 0;
    border-radius: 0;
}

/* 円形画像エリア */
.service-image-circle {
    width: 160px; /* サイズを200pxから160pxへ縮小 */
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 25px; /* 余白を少し広げる */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); /* 影を少し控えめに */
    border: 3px solid var(--white);
    transition: all 0.4s ease;
    position: relative;
}

.service-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.5s ease;
}

/* ホバー時の動き */
.service-card:hover .service-image-circle {
    transform: translateY(-5px); /* 動きも少し控えめに */
    box-shadow: 0 12px 25px rgba(0, 86, 179, 0.15);
}

.service-card:hover .service-image-circle img {
    transform: scale(1.1);
}

/* テキストエリア（円の下） */
.service-content {
    padding: 0 5px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.15rem; /* フォントサイズ微調整 */
    color: var(--text-color);
    font-weight: 700;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    display: block; 
    overflow: visible;
    -webkit-line-clamp: unset;
}

/* 偶数番目の要素を少し下げる（PCのみ） */
@media (min-width: 993px) {
    .service-card:nth-child(even) {
        margin-top: 70px; /* サイズ変更に合わせて調整 */
    }
}

/* スマホ対応 */
@media (max-width: 768px) {
    .service-card {
        width: 100%;
        max-width: 320px;
    }
    
    .service-image-circle {
        width: 140px; /* スマホではさらに少し小さく */
        height: 140px;
    }
}

/* 不要になったスタイル（アイコン関連など）は削除または上書き済み */
.service-icon {
    display: none;
}

/* 背景に薄い装飾を追加して空間をリッチにする */
.section:has(.services-grid)::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 60%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 86, 179, 0.03) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* 会社概要セクション */
.company-table-wrapper {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

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

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

.company-table tr:last-child th, 
.company-table tr:last-child td {
    border-bottom: none;
}

/* お問い合わせセクション */
.contact-section {
    background: linear-gradient(rgba(0, 40, 85, 0.9), rgba(0, 60, 130, 0.9)), url('https://images.unsplash.com/photo-1557804506-669a67965ba0?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); /* 画像をUnsplashに変更 */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス効果 */
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 2.8rem;
    margin-bottom: 24px;
    color: var(--white);
    font-weight: 700;
}

.contact-text {
    margin-bottom: 60px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px 50px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.contact-details .label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-details .value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    word-wrap: break-word;      /* 長い単語は折り返す */
    overflow-wrap: break-word;  /* 標準的な折り返し */
    word-break: normal;         /* break-all（強制改行）を廃止 */
}

/* 白枠ボタン（暗い背景用） */
.btn-outline-white {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* フッター */
.footer {
    background-color: #1a1a1a;
    color: #999;
    padding: 60px 0 30px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

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

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

.footer-nav a {
    transition: color 0.3s ease;
}

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

.copyright {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* =========================================
   下層ページ用追加スタイル
   ========================================= */

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 120px 0 60px;
    color: var(--white);
    text-align: center;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.breadcrumb {
    font-size: 0.95rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: var(--white);
    text-decoration: underline;
}

.breadcrumb a:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* 導入フロー */
.flow-steps {
    max-width: 900px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.flow-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    bottom: -50px;
    width: 2px;
    background-color: #e0e0e0;
    z-index: 0;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.3);
}

.step-content {
    flex: 1;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--primary-color);
}

.step-content h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--primary-color);
}

/* お問い合わせフォーム */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-color);
}

.required {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: 0.3s;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.1);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
}

/* サービス詳細 */
.service-detail-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-detail-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-text {
    flex: 1;
}

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

.service-detail-text p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-detail-image {
    flex: 1;
}

.service-detail-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease;
}

.service-detail-image img:hover {
    transform: scale(1.02);
}

.service-list-check {
    margin-top: 20px;
}

.service-list-check li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-weight: 500;
}

.service-list-check li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .service-detail-item, 
    .service-detail-item:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    .nav-list.active {
        right: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* モバイル向けヒーロー調整 */
    .hero {
        background-attachment: scroll; /* モバイルでの表示崩れ防止 */
        padding: 120px 0 100px;
    }

    .hero-container {
        /* flex-direction: column-reverse; 画像削除に伴い不要 */
        text-align: center;
        gap: 30px;
    }

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

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .company-table-wrapper {
        padding: 25px;
    }

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

    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
        color: var(--secondary-color);
    }
    
    .company-table td {
        padding-top: 0;
        border-bottom: 1px solid #eee;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .contact-item {
        min-width: auto;
        padding: 25px;
    }

    .contact-details .value {
        font-size: 1.1rem; /* モバイルではサイズを落として見切れを防止 */
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}
