/* ===== 基本設定 ===== */
:root {
    --primary-color: #3498db;
    --primary-color-rgb: 52, 152, 219;
    --text-color: #333;
    --background-color: #fff;
    --secondary-color: #f8f9fa;
    --border-color: #eaeaea;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --transition-speed: 0.3s;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    font-family: 'Quicksand', 'Noto Sans JP', sans-serif;
}

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

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Quicksand', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.btn:hover::before {
    left: 100%;
}

/* ===== ロゴ ===== */
.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    color: var(--text-color);
}

.logo h1 {
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-color);
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

.nav ul {
    display: flex;
}

.nav ul li {
    margin: 0 15px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
    padding: 5px 0;
    font-family: 'Quicksand', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width var(--transition-speed) ease;
}

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

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== セクション共通 ===== */
.section {
    min-height: 100vh;
    padding: 100px 0;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 18px;
    color: #666;
}

/* ===== ホームセクション ===== */
#home {
    background-color: var(--background-color);
    position: relative;
    padding-top: 0;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    opacity: 0.5;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.15) 0%, rgba(var(--primary-color-rgb), 0) 70%);
    opacity: 0.8;
    filter: blur(3px);
    transition: all 0.5s ease;
}

.hero:hover .circle {
    filter: blur(0);
}

.circle-1 {
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    animation: float 8s infinite ease-in-out, pulse 5s infinite alternate;
}

.circle-2 {
    bottom: 10%;
    right: 15%;
    width: 400px;
    height: 400px;
    animation: float 10s infinite ease-in-out reverse, pulse 7s infinite alternate-reverse;
}

.circle-3 {
    top: 40%;
    right: 25%;
    width: 200px;
    height: 200px;
    animation: float 6s infinite ease-in-out 2s, pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* 文字のランダム浮遊アニメーション */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    50% {
        transform: translateY(0) translateX(10px);
    }
    75% {
        transform: translateY(15px) translateX(5px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

.hero-content {
    max-width: 1000px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-in-out;
}

.hero-title {
    font-size: 80px;
    line-height: 1.1;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-color);
    text-transform: uppercase;
}

.animate-title {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    transition: transform 0.3s ease;
    perspective: 1000px;
}

.animate-title:hover {
    transform: translateY(-5px) rotateX(10deg);
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.line1 {
    animation: fadeUpIn 0.8s ease-out 0.2s forwards;
}

.line2 {
    animation: fadeUpIn 0.8s ease-out 0.6s forwards;
}

.line3 {
    animation: fadeUpIn 0.8s ease-out 1s forwards, colorPulse 5s ease-in-out 2s infinite, float 6s ease-in-out 2s infinite alternate;
}

@keyframes fadeUpIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes colorPulse {
    0%, 100% {
        color: var(--text-color);
        text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    25% {
        color: #3498db;
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
    }
    50% {
        color: #e74c3c;
        text-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
    }
    75% {
        color: #2ecc71;
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
    }
}

.animate-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.5s ease;
}

.animate-title:hover::after {
    width: 100%;
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 40px;
    text-transform: uppercase;
    color: var(--text-color);
    font-weight: 400;
    animation: fadeIn 1s ease-in-out 1.5s forwards;
    opacity: 0;
}

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

.scroll-btn {
    position: relative;
    padding-right: 40px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: fadeIn 1s ease-in-out 2s forwards;
    opacity: 0;
}

.scroll-btn::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

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

/* ===== 会社概要セクション ===== */
#about {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-in-out;
}

.about-text {
    max-width: 800px;
    margin-bottom: 40px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-text .emphasis {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.company-info {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-radius: 10px;
    overflow: hidden;
}

.company-info th, .company-info td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

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

.company-info th {
    width: 30%;
    font-weight: 500;
    color: var(--primary-color);
    background-color: rgba(var(--primary-color-rgb), 0.05);
}

/* ===== サービスセクション ===== */
#services {
    background-color: var(--background-color);
}

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

.service-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.8;
}

/* ===== お問い合わせセクション ===== */
#contact {
    background-color: var(--secondary-color);
}

.contact-form {
    background-color: var(--background-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow-color);
    position: relative;
}

.form-response-message {
    display: none;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.form-response-message i {
    font-size: 32px;
    margin-bottom: 10px;
}

.success-message {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.error-message {
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.form-response-message.visible {
    display: flex;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color var(--transition-speed) ease;
}

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

.submit-group {
    display: flex;
    align-items: center;
}

.submit-spinner {
    display: none;
    margin-left: 15px;
    font-size: 20px;
    color: var(--primary-color);
}

.submit-spinner.visible {
    display: block;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-message {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 10px;
}

.contact-message p {
    line-height: 1.8;
    font-style: italic;
}

/* ===== フッター ===== */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo-svg {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    color: #fff;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 14px;
    opacity: 0.7;
    max-width: 300px;
    line-height: 1.6;
}

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

.footer-links a {
    margin-bottom: 10px;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    opacity: 0.7;
}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 992px) {
    .section-title {
        font-size: 32px;
    }
    
    .hero-title {
        font-size: 60px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .circle-1, .circle-2, .circle-3 {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--background-color);
        box-shadow: -5px 0 15px var(--shadow-color);
        transition: right var(--transition-speed) ease;
        z-index: 1001;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 80px 30px;
    }
    
    .nav ul li {
        margin: 15px 0;
    }
    
    .menu-toggle {
        display: block;
        z-index: 1002;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 46px;
    }
    
    .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
    
    .about-text p {
        font-size: 14px;
    }
    
    .about-text .emphasis {
        font-size: 18px;
    }
    
    .company-info th, .company-info td {
        padding: 12px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        margin-bottom: 20px;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 0 10px 10px;
    }
    
    .circle-1, .circle-2, .circle-3 {
        transform: scale(0.6);
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .hero-subtitle {
        font-size: 12px;
        letter-spacing: 1px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 12px;
    }
    
    .circle-1, .circle-2, .circle-3 {
        transform: scale(0.5);
    }

    .animate-title::after {
        height: 2px;
    }
} 