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

/* 基本設定 */
:root {
    --primary-color: #1e3a8a; /* 落ち着いたブルー */
    --accent-color: #dc2626; /* レッド */
    --text-color: #333;
    --bg-color: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #666;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

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

/* ページ遷移フェード */
body {
    animation: fadeIn 0.5s ease-in;
}

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

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.header.scrolled .nav-list a {
    color: var(--text-color);
}

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

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

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: var(--transition);
}

.header.scrolled .hamburger span {
    background: var(--text-color);
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

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

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1;
    width: 90%;
    max-width: 1000px;
}

.hero-text-first,
.hero-text-second {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.hero-text-first {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: firstTextAnimation 3s ease-in-out forwards;
}

.hero-text-second {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 0;
    white-space: normal;
    animation: secondTextAnimation 3s ease-in-out 3s forwards;
}

@keyframes firstTextAnimation {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
        visibility: hidden;
    }
}

@keyframes secondTextAnimation {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0);
    }
}
/* 事業紹介セクション */
.services {
    padding: 100px 0;
    background: var(--white-light);
    margin-top: calc(100vh - 80px);
}

.service-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 50px;
    margin-bottom: 100px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.service-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.service-text {
    line-height: 1.8;
    color: var(--gray-medium);
}

.service-samples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.service-samples img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.service-samples img:hover {
    transform: scale(1.05);
}

.service-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    font-weight: 500;
    align-self: flex-start;
    transition: var(--transition);
}

.service-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 会社紹介セクション */
.company {
    padding: 100px 0;
    background: #fff;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    padding: 20px 0 0;
    margin-bottom: 30px;
}

.company-text p {
    line-height: 1.8;
    color: var(--gray-medium);
}

.company-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* お問い合わせ誘導セクション */
.contact-cta {
    padding: 100px 0;
    background: var(--gray-light);
    text-align: center;
}

.contact-cta-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.contact-cta-image {
    max-width: 600px;
    margin: 0 auto 40px;
}

.contact-cta-image img {
    width: 100%;
    border-radius: 10px;
}

.contact-cta-button {
    display: inline-block;
    padding: 15px 50px;
    background: var(--accent-color);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.contact-cta-button:hover {
    background: var(--primary-color);
    transform: scale(1.05);
}

/* フッター */
.footer {
    background: var(--text-color);
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
}

/* フェードアップアニメーション */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

/* レスポンシブ - タブレット */
@media (max-width: 1024px) {
    .service-item {
        grid-template-columns: 150px 1fr;
        gap: 30px;
        margin-bottom: 80px;
    }
    
    .company-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* レスポンシブ - スマホ */
@media (max-width: 768px) {
    /* ヘッダー */
    .nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* モバイルメニュー */
    .nav.active {
        display: block;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active .nav-list {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav.active .nav-list a {
        color: var(--text-color);
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }
    
    /* ヒーロー */
    .hero-slide:not(:first-child) {
        display: none;
    }
    
    /* 事業紹介 */
    .services {
        padding: 60px 0;
    }
    
    .service-item {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 60px;
        text-align: center;
    }
    
    .service-icon {
        margin-bottom: 20px;
    }
    
    .service-samples {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .service-button {
        align-self: center;
    }
    
    /* 会社紹介 */
    .company {
        padding: 60px 0;
    }
    
    /* お問い合わせ誘導 */
    .contact-cta {
        padding: 60px 0;
    }
    
    .contact-cta-title {
        font-size: 2rem;
    }
}

/* サブページ共通 */
.page-header {
    background: var(--primary-color);
    color: #fff;
    padding: 120px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #fff;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.page-content {
    padding: 80px 0;
}

/* フォーム */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-label .required {
    color: var(--accent-color);
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.form-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 50px auto 0;
    padding: 15px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* テーブル */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background: var(--gray-light);
    font-weight: 500;
    width: 30%;
}

@media (max-width: 768px) {
    .table,
    .table tbody,
    .table th,
    .table td,
    .table tr {
        display: block;
    }
    
    .table th {
        width: 100%;
        background: var(--primary-color);
        color: #fff;
    }
    
    .table td {
        padding-left: 20px;
    }
    
    .table tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }
}