/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    width: 100%;
    padding-top: 80px; /* ヘッダーの高さ分だけ下げる */
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px; /* ヘッダーの高さを明示的に設定 */
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #666;
}

/* Section styles - for standard sections */
section.works,
section.services,
section.contact {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 上に配置するように変更 */
    align-items: center;
    text-align: center;
    padding: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
                url('images/25765613.jpg') center/cover;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
    padding-top: 100px; /* 上部にパディングを追加 */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(200, 200, 200, 0.3); /* 灰色の半透明背景 */
    backdrop-filter: blur(10px); /* すりガラス効果 */
    -webkit-backdrop-filter: blur(10px); /* Safari対応 */
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-top: 10rem; /* 上部からの余白を減らして上に移動 */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    color: #000; /* 黒色に変更 */
    font-weight: 500; /* 少し太くして強調 */
    line-height: 1.6; /* 行間を広げて読みやすく */
    margin-bottom: 1rem; /* 下部に余白を追加 */
}

/* About section */
.about {
    padding: 5rem 0;
    width: 100%;
    position: relative;
    background-color: #f9f9f9;
}

.about h2 {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 5%;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center; /* stretchからcenterに変更 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 2rem;
}

.about-image {
    width: 50%;
    order: 1;
    display: flex;
    align-items: center; /* stretchからcenterに変更 */
    height: 400px; /* 高さを固定 */
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 10px; /* 角を丸く */
}

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

.about-text {
    width: 50%;
    text-align: left;
    max-width: none;
    margin: 0;
    order: 2;
    background: rgba(200, 200, 200, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Works section */
.works-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    transition: transform 0.3s ease;
}

.work-item:hover {
    transform: translateY(-5px);
}

.work-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

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

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

.work-item h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-size: 1.4rem;
    transition: background-color 0.3s ease;
}

.work-item:hover h3 {
    background: rgba(255, 255, 255, 1);
}

.work-item .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
    line-height: 1.6;
}

.work-item:hover .description {
    transform: translateY(0);
}

/* Services section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列に変更 */
    gap: 2rem; /* 間隔を調整 */
    max-width: 1200px; /* 最大幅を広げる */
    margin: 0 auto; /* 中央揃え */
}

.service-item {
    padding: 2.5rem; /* パディングを調整 */
    background: #f8f8f8;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.service-item h3 {
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.6rem; /* フォントサイズを調整 */
}

.service-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Contact section */
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.contact-method i {
    font-size: 2rem;
    color: #333;
}

.contact-method p {
    font-size: 1.2rem;
    font-weight: 500;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    font-size: 2rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #555;
}

/* Footer styles */
footer {
    background-color: #333;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 5%; /* 左右に余白を追加 */
}

.footer-info h3 {
    margin-bottom: 1rem;
}

.footer-info p {
    margin-right: 2rem; /* 右側に余白を追加 */
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ddd;
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding: 0 5%; /* 左右に余白を追加 */
}

/* Animation classes */
.animate {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

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

/* Responsive design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* タブレットでは2列に */
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    header {
        height: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.6rem;
        white-space: nowrap !important;
        padding: 0;
        line-height: 1.3;
        width: 100%;
        margin: 0;
    }
    
    .hero p {
        font-size: 0.9rem;
        white-space: nowrap !important;
        padding: 0;
        line-height: 1.4;
        width: 100%;
        margin: 0.5rem 0 0 0;
    }
    
    .hero-content {
        margin: 12rem 3% 0; /* 上部のマージンを6remから12remに増やして下げる */
        width: 94%;
        padding: 1rem 0.5rem;
        box-sizing: border-box;
    }
    
    .about-content {
        flex-direction: column;
        align-items: center;
    }
    
    .about-image, .about-text {
        width: 100%;
        order: 0;
    }
    
    .about-image {
        height: 300px; /* モバイルでは高さを調整 */
        margin-bottom: 2rem;
    }
    
    .about-text {
        text-align: center;
        margin: 0;
        width: 100%;
        padding: 1.5rem;
        box-sizing: border-box;
        font-size: 1.1rem;
        line-height: 1.7;
        white-space: normal; /* テキストの折り返しを許可 */
        overflow-wrap: break-word; /* 長い単語も折り返す */
        word-wrap: break-word; /* 長い単語も折り返す */
    }
    
    .work-item img {
        height: 300px;
    }
    
    .work-item h3 {
        font-size: 1.2rem;
        padding: 1rem;
    }
    
    .work-item .description {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr; /* モバイルでは1列に */
        gap: 2rem;
    }
    
    .service-item {
        padding: 2rem;
    }
    
    .service-item h3 {
        font-size: 1.5rem;
    }
    
    .service-item p {
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-info p {
        margin-right: 0; /* モバイル表示では右側の余白を削除 */
    }
    
    .footer-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* iPhone SEなどの小さい画面用 */
@media (max-width: 375px) {
    .hero h1 {
        font-size: 1.4rem;
        white-space: nowrap !important;
        padding: 0;
        margin: 0;
    }
    
    .hero p {
        font-size: 0.8rem;
        white-space: nowrap !important;
        padding: 0;
        margin: 0.5rem 0 0 0;
    }
    
    .about-text p {
        font-size: 0.9rem; /* フォントサイズを小さく */
        white-space: normal !important; /* 強制的に折り返し */
        padding: 0;
        margin: 0;
        line-height: 1.6; /* 行間を調整 */
    }
    
    .hero-content, .about-text {
        padding: 0.75rem 0.25rem;
        width: 94%;
        margin-left: 3%;
        margin-right: 3%;
    }
    
    .about-image {
        height: 250px; /* さらに小さい画面では高さを調整 */
    }
    
    .about-text {
        padding: 1.2rem;
        font-size: 1rem;
        white-space: normal; /* テキストの折り返しを許可 */
        overflow-wrap: break-word; /* 長い単語も折り返す */
        word-wrap: break-word; /* 長い単語も折り返す */
    }
}

/* Prices section */
.prices {
    padding: 5rem 0;
    background-color: #f9f9f9;
}

.prices h2 {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 5%;
    text-align: center;
}

.prices-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.price-category {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.price-category h3 {
    background: #333;
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.4rem;
    text-align: center;
}

.price-list {
    padding: 1.5rem;
}

.price-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    flex: 1;
    font-weight: 500;
    font-size: 1.1rem;
}

.price-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
    margin: 0 1.5rem;
}

.price-description {
    width: 100%;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.price-note {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 5%;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.price-note p {
    margin: 0.5rem 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .price-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .price-value {
        margin: 0.5rem 0;
    }
    
    .price-description {
        margin-top: 0.25rem;
    }
} 