﻿@charset "UTF-8";

/* =====================================================
   基本設定
===================================================== */
body {
    margin: 0;
    padding: 0;
    font-family: "Times New Roman", "游明朝", serif;
    background-color: #f4f1ec;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* =====================================================
   ヘッダー
===================================================== */
header {
    background-color: #2e2a25;
    color: #fff;
    padding: 1rem 0 0.1rem;
}

header h1 {
    margin: 0 1.5rem;
    font-size: 2rem;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    margin-left: 1.5rem;
    padding-left: 0;
    display: flex;
    gap: 1rem;
}

nav a {
    position: relative;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding-bottom: 4px;
}
nav a:hover{
     text-decoration: underline;
}


/* =====================================================
   Hero / Slideshow
===================================================== */
#hero {
    max-width: none;
    margin: 0;
    padding: 0;
    width: 100vw;
    position: relative;
    z-index: 1;
}


.hero-slideshow {
    position: relative;
    width: 100vw;
    height: 60vh;
    overflow: hidden;
}

/* 共通スライド */
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeSlide 16s infinite;
}

/* 各画像 */
.slide1 {
    background-image: url("images/hero1.png");
    animation-delay: 0s;
}
.slide2 {
    background-image: url("images/b1.png");
    animation-delay: 4s;
}
.slide3 {
    background-image: url("images/hero2.png");
    animation-delay: 8s;
}
.slide4 {
    background-image: url("images/lw1.png");
    animation-delay: 12s;
}

/* フェード */
@keyframes fadeSlide {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    30%  { opacity: 1; }
    38%  { opacity: 0; }
    100% { opacity: 0; }
}



/* =====================================================
 Hero テキスト 
===================================================== */
.hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    top: 50%;
    transform: translateY(-50%);
}

.hero-text h2 {
    font-size: 2.5rem;
    letter-spacing: 2px;
}

.hero-text p {
    margin-top: 0.5rem;
    font-size: 1.3rem;
}


/* =====================================================
   セクション共通
===================================================== */
section {
    max-width: 1300px;
    margin: auto;
    padding: 2rem;
}

section h2 {
    display: inline-block;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #8b5e3c;
    letter-spacing: 1px;
}


/* =====================================================
   テキスト微調整
===================================================== */
.custom-text-about,
.custom-text-works,
.custom-text-concept,
.custom-text-contact {
    line-height: 1.7;
}

.custom-text-about p,
.custom-text-works p,
.custom-text-concept p,
.custom-text-contact p {
    margin-bottom: 1em;
    line-height: 1.5;
}


/* =====================================================
   Works
===================================================== */
.works-layout {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 5rem;
    align-items: start;
}

.works-intro {
    padding-top: 0.5rem;
}

#works {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Works カード */
.work-item {
    background-color: #f5f5f5;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.work-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

/* Works カード */
.work-item p {
    margin: 0;            /* 一旦、上下の余白をすべて0にする */
    text-align: center;
    font-size: 1.3rem;
    color: #555;
}

/* 1つ目の文字（Leather Craft）と画像の間隔だけ空ける */
.work-item p:first-of-type {
    margin-top: 1rem;
}

/* 2つ目の文字（ページ）との間隔を微調整（0.2remでお好みに） */
.work-item p:nth-of-type(2) {
    margin-top: 0;
}

.work-item a {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* =====================================================
   Concept Image
===================================================== */
.concept-image {
    max-width: 100%;
    margin: 4rem auto 1rem;
}

.concept-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}


/* =====================================================
   Contact / SNS
===================================================== */
#contact {
    position: relative;
    z-index: 10;
}

.social-links ul {
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 1px solid #8b5e3c;
    color: #8b5e3c;
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #8b5e3c;
    color: #fff;
}


/* =====================================================
   フッター
===================================================== */
footer {
    background-color: #2e2a25;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 0.8rem;
}


/* =====================================================
   Back To Top
===================================================== */
#backToTop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    border: none;
    background-color: #8b5e3c;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

#backToTop:hover {
    opacity: 0.8;
}


/* =====================================================
   レスポンシブ
===================================================== */
@media screen and (max-width: 768px) {

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .works-layout {
        grid-template-columns: 1fr;
    }

    .concept-image img {
        height: auto;
        object-fit: contain;
    }
}
