/* =========================================
   Reset & Base Styles
========================================= */
:root {
    --color-primary: #111111;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-light: #fafafa;
    --color-border: #eaeaea;
    --color-accent: #8b7355; /* Subtle elegant accent */
    
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Playfair Display', serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Typography & Utilities
========================================= */
h1, h2, h3, h4 {
    color: var(--color-primary);
    line-height: 1.3;
}

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

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.section-title span {
    display: block;
    font-family: var(--font-jp);
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background-color: var(--color-primary);
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: 50px;
    transition: var(--transition);
    border: 1px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px); /* Glassmorphism */
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding:0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* ========= Logo ========= */

.logo{
    margin:0;
}

.logo-link{
    display:flex;
    align-items:center;
    gap:0;
}

.logo-symbol{
    height:56px;
    width:auto;
    display:block;
}

.logo-text{
    height:40px;
    width:auto;
    display:block;
    margin-left: -28px; /* SVG内の余白を相殺してロゴと一体化させる */
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

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

/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* 背景画像と半透明 of 白オーバーレイを重ねる */
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('images/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%93%E3%82%B8%E3%83%A5%E3%82%A2%E3%83%AB.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.03) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    /* 文字の輪郭を白く保護するソフトなシャドウを追加 */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 8px rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-family: var(--font-en);
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    /* サブタイトルにも同様のシャドウを適用 */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* =========================================
   About Section
========================================= */
.about {
    position: relative;
    z-index: 1;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/about%E8%83%8C%E6%99%AF.png');
    background-size: cover;
    background-position: center;
    opacity: 0.3; /* 不透明度30% */
    z-index: -1;
    pointer-events: none;
}

.about-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9); /* カードの背景を少し半透明にする */
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    z-index: 1;
}

.about-text {
    text-align: center;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2rem;
}

.skills-block h4 {
    font-family: var(--font-en);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.tool-list,
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tool-list li,
.skill-list li {
    background-color: var(--color-bg-light);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: var(--transition);
}

.tool-list li:hover,
.skill-list li:hover {
    border-color: var(--color-accent);
    color: var(--color-primary);
    background-color: #fff;
}

.concept{
    margin-bottom:1.5rem;
    font-size:1.15rem;
    color:var(--color-primary);
    letter-spacing:.08em;
}

.concept strong{
    font-weight:600;
}

/* =========================================
   Services Section
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-border);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
    color: var(--color-primary);
    margin: 0 auto;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* =========================================
   Works Section
========================================= */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: var(--transition);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    color: var(--color-primary);
}

.filter-btn.active::after, .filter-btn:hover::after {
    width: 80%;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.work-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: var(--color-bg-light); /* Added to blend empty space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-item img {
    width: 100%;
    height: 250px;
    object-fit: contain; /* Changed from cover to prevent cropping */
    transition: transform 0.5s ease;
}

.work-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

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

.work-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-zoom-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

/* =========================================
   Contact Section
========================================= */
.contact {
    text-align: center;
}

.contact-text {
    margin-bottom: 2.5rem;
    color: var(--color-text-light);
}

.contact-btn {
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
}

.mail-icon {
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.mail-icon svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   Footer
========================================= */
.footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-family: var(--font-en);
}

/* =========================================
   Lightbox
========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 2rem;
    overflow: auto; /* Allow scrolling for tall images like LPs */
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    width: 95%;
    margin: auto;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    animation: zoomIn 0.3s ease;
    max-height: 90vh;
}

@media (min-width: 992px) {
    .lightbox-container {
        flex-direction: row;
        align-items: stretch;
    }
}

.lightbox-img-wrapper {
    flex: 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.lightbox-content {
    max-width: 100%;
    height: auto;
    display: block;
}

.lightbox-desc-wrapper {
    width: 100%;
    padding: 2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
}

@media (min-width: 992px) {
    .lightbox-desc-wrapper {
        width: 380px;
        flex-shrink: 0;
        border-top: none;
        border-left: 1px solid var(--color-border);
    }
}

#lightbox-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.lightbox-desc-content {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-wrap; /* Preserve line breaks in JS string */
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: var(--color-primary);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(5px);
}

.lightbox-close svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.5;
}

.lightbox-close:hover {
    color: var(--color-text-light);
    transform: rotate(90deg) scale(1.1);
}

/* =========================================
   Animations
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* =========================================
   Responsive
========================================= */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .nav ul {
        gap: 1.25rem;
    }
    
    .nav a {
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        padding: 1.5rem;
    }
.logo-link{
    gap:0;
}

.logo-icon{
    width:42px;
}

.logo-title{
    font-size:1.1rem;
}

.logo-sub{
    font-family: 'Inter', sans-serif;
    font-size:0.72rem;
    color:var(--color-text-light);
    letter-spacing:0.12em;
    margin-top:4px;
    text-transform:none;
}
}
