/* ========================================
   リセット & 基本設定
   ======================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ========================================
   共通レイアウト
   ======================================== */

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

.section {
    padding: 100px 0;
}

.section-gray {
    background-color: #f8f9fa;
}

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

.section-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: #0066cc;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* ========================================
   ヘッダー
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

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

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0066cc;
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-list a {
    font-weight: 500;
    color: #333;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   ヒーローセクション
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0066cc 0%, #004999 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-title-main {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
}

.hero-title-sub {
    font-size: 28px;
    font-weight: 400;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    animation: fadeIn 1s ease 1s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
    animation: scrollAnimation 2s ease infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollAnimation {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(20px);
    }
}

/* ========================================
   ボタン
   ======================================== */

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.btn-primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #0066cc;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* ========================================
   会社概要セクション
   ======================================== */

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover .about-image {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 102, 204, 0.95), transparent);
    padding: 30px;
    color: white;
}

.overlay-content {
    text-align: center;
}

.overlay-content i {
    font-size: 36px;
    margin-bottom: 10px;
}

.overlay-content p {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

.about-text-content {
    padding: 20px 0;
}

.about-heading {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.about-description {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

.about-info-section {
    width: 100%;
}

.info-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-table tr {
    border-bottom: 1px solid #eee;
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table th,
.info-table td {
    padding: 18px 20px;
    text-align: left;
}

.info-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 140px;
    white-space: nowrap;
}

.info-table td {
    color: #555;
    line-height: 1.8;
}

/* ========================================
   事業内容セクション
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0066cc, #00aaff);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0066cc, #004999);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.service-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #004999);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-icon::after {
    opacity: 0.5;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.service-icon i {
    font-size: 36px;
    color: white;
    position: relative;
    z-index: 1;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.service-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 25px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.service-list i {
    color: #0066cc;
    font-size: 12px;
}

/* ========================================
   私たちの強みセクション
   ======================================== */

.strength {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.03), rgba(0, 170, 255, 0.03));
    position: relative;
}

.strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/digital-transformation.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.03;
    pointer-events: none;
}

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

.strength-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.strength-item {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.strength-item:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.strength-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, #0066cc, #004999);
    transition: width 0.3s ease;
}

.strength-item:hover::before {
    width: 8px;
}

.strength-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: rgba(0, 102, 204, 0.1);
    position: absolute;
    top: 20px;
    right: 30px;
}

.strength-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.strength-description {
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    position: relative;
    z-index: 1;
}

/* ========================================
   お問い合わせセクション
   ======================================== */

.contact-intro {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: stretch;
}

.contact-intro-text {
    background: linear-gradient(135deg, #0066cc, #004999);
    color: white;
    padding: 50px 40px;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.contact-intro-text::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.intro-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.intro-icon i {
    font-size: 32px;
    color: white;
}

.contact-intro-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.5;
    position: relative;
}

.contact-intro-text p {
    font-size: 16px;
    line-height: 1.8;
    opacity: 0.95;
    position: relative;
}

.contact-location {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-location:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.location-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0066cc, #004999);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.location-icon i {
    font-size: 28px;
    color: white;
}

.location-details h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.location-details p {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.contact-form-section {
    width: 100%;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.contact-form-wrapper::before {
    content: 'お問い合わせフォーム';
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    margin-top: 10px;
}

/* ========================================
   フッター
   ======================================== */

.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.footer-company {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
    color: #999;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: #ccc;
}

.footer-links a:hover {
    color: #0066cc;
    padding-left: 5px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: start;
    gap: 10px;
    font-size: 14px;
    color: #ccc;
}

.footer-contact i {
    color: #0066cc;
    margin-top: 3px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #999;
}

/* ========================================
   ページトップボタン
   ======================================== */

.page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0066cc, #004999);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 102, 204, 0.3);
}

.page-top.visible {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 102, 204, 0.4);
}

.page-top i {
    font-size: 20px;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */

@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .strength-grid {
        gap: 30px;
    }

    .contact-intro {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-intro-text {
        padding: 40px 35px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .section-description {
        font-size: 15px;
    }

    /* ヘッダー */
    .header-content {
        padding: 15px 0;
    }

    .logo-text {
        font-size: 24px;
    }

    .logo-sub {
        font-size: 11px;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
    }

    .nav.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }

    .nav-list li {
        border-bottom: 1px solid #eee;
    }

    .nav-list a {
        display: block;
        padding: 15px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* ヒーロー */
    .hero {
        min-height: 500px;
    }

    .hero-title-main {
        font-size: 36px;
    }

    .hero-title-sub {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-description br {
        display: none;
    }

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

    .btn {
        width: 100%;
    }

    /* 会社概要 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .about-image-wrapper {
        max-height: 400px;
    }

    .about-heading {
        font-size: 26px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

    .info-table th {
        font-size: 13px;
        width: 100px;
    }

    .info-table td {
        font-size: 14px;
    }

    /* 事業内容 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* 強み */
    .strength-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .strength-item {
        padding: 30px;
    }

    .strength-number {
        font-size: 56px;
    }

    /* お問い合わせ */
    .contact-intro {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .contact-intro-text {
        padding: 40px 30px;
    }

    .contact-intro-text h3 {
        font-size: 20px;
    }

    .contact-location {
        padding: 30px 20px;
    }

    .contact-form-wrapper {
        padding: 30px 20px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form-wrapper::before {
        font-size: 20px;
        margin-bottom: 25px;
    }

    /* フッター */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* ページトップボタン */
    .page-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .page-top i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .hero-title-main {
        font-size: 28px;
    }

    .hero-title-sub {
        font-size: 18px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-table th,
    .info-table td {
        padding: 12px 15px;
        font-size: 13px;
    }

    .contact-form-wrapper {
        padding: 25px 15px;
    }
}