/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
    font-weight: 300;
    opacity: 0;
    animation: forestLight 1.2s ease-out forwards;
}

@keyframes forestLight {
    0% {
        opacity: 0;
        filter: brightness(0.5);
    }
    100% {
        opacity: 1;
        filter: brightness(1);
    }
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 18px 36px;
    text-decoration: none;
    border: none;
    border-radius: 2px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: rgba(44, 62, 80, 0.9);
    color: white;
    border: 2px solid rgba(44, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.btn-primary:hover {
    background-color: rgba(44, 62, 80, 0.7);
    border-color: rgba(44, 62, 80, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

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

/* 送信ボタン専用スタイル */
.contact-form .btn-primary {
    background-color: rgba(52, 73, 94, 0.9);
    border-color: rgba(52, 73, 94, 0.9);
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.contact-form .btn-primary:hover {
    background-color: rgba(52, 73, 94, 0.7);
    border-color: rgba(52, 73, 94, 0.7);
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 500;
    color: #000;
    margin: 0;
    letter-spacing: 3px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 400;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-family: 'Zen Old Mincho', serif;
}

.nav-menu a:hover {
    color: #000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: #000;
    margin: 4px 0;
    transition: 0.3s;
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
    transition: transform 0.1s ease-out;
}

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

.hero-content {
    max-width: 1000px;
    padding: 0 20px;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 2rem;
}

.logo-image {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-top: 80px;
}

.hero-title-container {
    margin-bottom: 2rem;
    position: relative;
}

.hero-title {
    font-size: 4.0rem;
    font-weight: 100;
    color: #fff;
    margin: 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    font-family: 'Zen Old Mincho', serif;
}

.title-line {
    display: block;
    position: relative;
    overflow: hidden;
}

.title-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: translateY(-50%);
    transition: left 0.8s ease;
}

.title-line::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    transition: width 0.8s ease;
}

.title-line:first-child::after {
    animation: expandWidth 1.5s ease-out 1.2s both;
}

.title-line:last-child::after {
    animation: expandWidth 1.5s ease-out 1.5s both;
}

@keyframes expandWidth {
    to {
        width: 100%;
    }
}

/* ホバー効果 */
.hero-title-container:hover .title-line::before {
    left: 100%;
}

.hero-title-container:hover .title-line::after {
    width: 100%;
}

.title-line:first-child::before {
    animation: slideInLeft 1.2s ease-out 0.3s both;
}

.title-line:last-child::before {
    animation: slideInLeft 1.2s ease-out 0.6s both;
}

.japanese-line {
    font-size: 1.4rem;
    font-weight: 100;
    color: #fbf9f9;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    font-family: 'Zen Old Mincho', serif;
}

@keyframes slideInLeft {
    to {
        left: 100%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 3px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

section {
    padding: 120px 0;
}

/* About Section */
.about {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23e0e0e0" opacity="0.3"/><circle cx="75" cy="75" r="1" fill="%23e0e0e0" opacity="0.3"/><circle cx="50" cy="10" r="0.5" fill="%23e0e0e0" opacity="0.2"/><circle cx="10" cy="60" r="0.5" fill="%23e0e0e0" opacity="0.2"/><circle cx="90" cy="40" r="0.5" fill="%23e0e0e0" opacity="0.2"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

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

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(250, 248, 248, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.about-text {
    font-size: 1.4rem;
    line-height: 2;
    color: #333;
    font-weight: 300;
    margin: 0;
}

.about-text br {
    display: block;
    margin: 0.5rem 0;
}

.about-visual {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.tree-symbol {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.tree-line {
    width: 3px;
    background: linear-gradient(to top, #2c3e50, #34495e);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.tree-line:nth-child(1) { height: 40px; }
.tree-line:nth-child(2) { height: 60px; }
.tree-line:nth-child(3) { height: 80px; }
.tree-line:nth-child(4) { height: 60px; }
.tree-line:nth-child(5) { height: 40px; }

.tree-line::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #27ae60;
    border-radius: 50%;
    transform: translateX(-8.5px) translateY(-10px);
    animation: sway 3s ease-in-out infinite;
}

.tree-line:nth-child(1)::before { animation-delay: 0s; }
.tree-line:nth-child(2)::before { animation-delay: 0.2s; }
.tree-line:nth-child(3)::before { animation-delay: 0.4s; }
.tree-line:nth-child(4)::before { animation-delay: 0.6s; }
.tree-line:nth-child(5)::before { animation-delay: 0.8s; }

@keyframes sway {
    0%, 100% {
        transform: translateX(-8.5px) translateY(-10px) rotate(0deg);
    }
    25% {
        transform: translateX(-8.5px) translateY(-10px) rotate(-3deg);
    }
    50% {
        transform: translateX(-8.5px) translateY(-10px) rotate(0deg);
    }
    75% {
        transform: translateX(-8.5px) translateY(-10px) rotate(3deg);
    }
}

.about-content:hover .tree-line {
    transform: scaleY(1.1);
}

.about-content:hover .tree-line:nth-child(1) { height: 44px; }
.about-content:hover .tree-line:nth-child(2) { height: 66px; }
.about-content:hover .tree-line:nth-child(3) { height: 88px; }
.about-content:hover .tree-line:nth-child(4) { height: 66px; }
.about-content:hover .tree-line:nth-child(5) { height: 44px; }

/* Services Section */
.services {
    position: relative;
    overflow: hidden;
}

.services-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
}

.services-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3) contrast(1.2);
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

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

.services .section-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5rem 7rem;
    text-align: center;
    position: relative;
    border-radius: 0;
    clip-path: polygon(
        50% 0%,
        75% 15%,
        85% 35%,
        90% 50%,
        85% 65%,
        75% 85%,
        50% 100%,
        25% 85%,
        15% 65%,
        10% 50%,
        15% 35%,
        25% 15%
    );
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 120px 30px at 50% 50%, transparent 49%, rgba(34, 139, 34, 0.06) 50%, transparent 51%),
        linear-gradient(45deg, transparent 40%, rgba(34, 139, 34, 0.04) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(34, 139, 34, 0.04) 50%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 45%, rgba(34, 139, 34, 0.03) 50%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(34, 139, 34, 0.03) 50%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.service-card > * {
    position: relative;
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    background: 
        radial-gradient(ellipse 120px 30px at 50% 50%, transparent 49%, rgba(34, 139, 34, 0.1) 50%, transparent 51%),
        linear-gradient(45deg, transparent 40%, rgba(34, 139, 34, 0.06) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(34, 69, 34, 0.06) 50%, transparent 60%);
}

.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 120px;
    margin: 0 auto 1.5rem auto;
    color: #000;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    color: #333;
    transform: scale(1.1);
}

.service-card h3 {
    color: #000;
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
}

.service-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 300;
    color: #666;
    margin-top: 0.3rem;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.service-subtitle-description {
    display: block;
    font-size: 0.8rem; 
    font-weight: 300;
    color: #666;
    margin-top: 0.3rem;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}


.service-card p {
    margin: 0 0 0 0;
    color: #666;
    font-weight: 300;
    text-align: center;
    line-height: 1.6;
    padding: 0 1rem;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.contact .section-title {
    color: #495057;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 2px;
    font-size: 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    font-weight: 300;
}

.contact-info p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-weight: 300;
    font-size: 0.95rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.contact-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #868e96;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #495057;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dee2e6;
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: white;
    color: #495057;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

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

/* Footer */
.footer {
    background-color: #000;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 3px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.footer-logo p {
    color: #ccc;
    font-weight: 300;
}

.footer-gallery h4 {
    color: white;
    margin-bottom: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-item {
    height: 80px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    font-weight: 400;
    text-align: center;
    padding: 4px 0;
    letter-spacing: 1px;
    font-family: 'Zen Kaku Gothic New', sans-serif;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.gallery-item:hover .gallery-label {
    background-color: rgba(0, 0, 0, 0.9);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.example-item {
    height: 150px;
    overflow: hidden;
}

.example-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.example-item:hover img {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #ccc;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        justify-items: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-content {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-content {
        max-width: 600px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        height: 85fvh;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content {
        padding: 1.5rem;
        color: #4e4e4e;
    }
    
    .about-text {
        font-size: 1.2rem;
        color: #111111;
    }
    
    .tree-symbol {
        gap: 0.8rem;
    }
    
    .tree-line:nth-child(1) { height: 30px; }
    .tree-line:nth-child(2) { height: 45px; }
    .tree-line:nth-child(3) { height: 60px; }
    .tree-line:nth-child(4) { height: 45px; }
    .tree-line:nth-child(5) { height: 30px; }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        max-width: 400px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
    }
    
    .service-card h3 {
        margin: 1.5rem 1.5rem 1rem;
        font-size: 1.1rem;
    }
    
    .service-card p {
        margin: 0 1.5rem 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }

    .about-text {
        font-size: 1.2rem;
        color: #111111;
    }

}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Smooth transitions */
.service-card,
.contact-content,
.about-content {
    transition: all 0.6s ease;
}
