/*
 * style.css - カスタムCSSとカラースキーム定義
 * ウルトラモダンで洗練されたハンドメイド作家向けウェブサイトのスタイル
 * PCファースト (max-width) 設計
 */

/* ======================================= */
/* 1. カラー変数とフォント設定 (一括管理) */
/* ======================================= */
:root {
    /* プライマリカラー (ソフトピンク/ブラシピンク) */
    --color-primary: #D4C1C5;
    --color-primary-hover: #C1B0B4;

    /* 背景とテキストの色 */
    --color-background-soft: linear-gradient(145deg, #f9f9f9, #ffffff, #f0f0f0);
    --color-background-hero: #f7f3f0;
    /* ソフトベージュ/オフホワイト */
    --color-text-main: #2d3748;
    /* gray-800 */
    --color-text-secondary: #4a5568;
    /* gray-700 */
    --color-text-subtle: #a0aec0;
    /* gray-500 */
    --color-border: #e2e8f0;
    /* gray-200 */

    /* フォント設定 */
    --font-family: 'Inter', 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    --font-weight-light: 300;
    --font-weight-extralight: 200;
    --font-weight-medium: 500;
    --font-weight-normal: 400;
}

/* ======================================= */
/* 2. ベーススタイルとレイアウトユーティリティ */
/* ======================================= */
html {
    font-family: var(--font-family);
    scroll-behavior: smooth;
}

body {
    background: var(--color-background-soft);
    color: var(--color-text-main);
    line-height: 1.6;
    margin: 0;
}

/* 最大幅コンテナ */
.max-w-base {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* セクション共通スタイル (PCデフォルト) */
.section-padding {
    padding: 8rem 6rem;
    /* default to large padding */
}

.section-border-top {
    border-top: 1px solid var(--color-border);
}

/* タブレット・小型PC向け (1024px未満) */
@media (max-width: 1023px) {
    .section-padding {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* モバイル向け (768px未満) */
@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 1.5rem;
    }
}

/* タイポグラフィ */
.title {
    font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.25rem);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.1em;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--color-text-secondary);
}

.subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    font-weight: var(--font-weight-extralight);
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-text-subtle);
}

@media (max-width: 767px) {
    .subtitle {
        margin-bottom: 2rem;
    }
}

.image-full-width {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* PCファーストでの表示制御 */
.mobile-only {
    display: none;
    /* デフォルト非表示 */
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
        /* モバイルでのみ表示 */
    }
}


/* ======================================= */
/* 3. コンポーネントスタイル */
/* ======================================= */

/* CTA Button (Primary) */
.cta-button {
    background-color: var(--color-primary);
    color: white;
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.15em;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: inline-block;
    text-decoration: none;
    font-size: 0.875rem;
    text-align: center;
}

.cta-button-lg {
    padding: 1rem 3rem;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: var(--color-primary-hover);
}

/* SNS Icon */
.sns-icon {
    color: var(--color-text-secondary);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.sns-icon:hover {
    color: var(--color-primary);
    transform: scale(1.1);
}

/* ======================================= */
/* 4. セクション固有スタイル */
/* ======================================= */

/* HERO Section */
.hero-section {
    background-color: var(--color-background-hero);
    background-image: url('../images/hero-background-02.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
    }
}

.hero-bg-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 3rem;
    /* PC Default */
    transition: transform 0.5s;
}

@media (max-width: 767px) {
    .hero-content {
        padding: 1.5rem;
    }
}

.hero-title {
    font-size: clamp(2rem, 1.7rem + 1.3vw, 2.5rem);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.1em;
    line-height: 1.25;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    max-width: 56rem;
    margin: 0 auto 3rem auto;
    font-size: 1.2rem;
    /* PC Default (from original 768px query) */
    font-weight: var(--font-weight-extralight);
    opacity: 0.9;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .hero-subtitle {
        font-size: 1rem;
        /* from original 640px query */
    }
}

@media (max-width: 639px) {
    .hero-subtitle {
        font-size: 1.125rem;
        /* from original base */
    }
}

/* ABOUT Section */
.about-section {
    position: relative;
}

@media (max-width: 767px) {
    .about-section {
        padding: 3rem 1.5rem 2rem;
    }
}


.about-bg-overlay {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(244, 237, 230, 0.3), rgba(244, 237, 230, 0.3)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f4ede6" width="1200" height="800"/><circle cx="300" cy="200" r="150" fill="%23e8d5c4" opacity="0.3"/><circle cx="900" cy="500" r="200" fill="%23d4a574" opacity="0.2"/><path d="M0,400 Q300,300 600,400 T1200,400" fill="none" stroke="%23c9b5a0" stroke-width="3" opacity="0.3"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.8;
    z-index: -100;
    transition: transform 0.1s ease-out;
}

.about-title-spacing {
    margin-bottom: 6rem;
    /* PC Default */
}


@media (max-width: 767px) {
    .about-title-spacing {
        margin-bottom: 2rem;
    }
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 6rem;
    /* PC (Large) Default */
}

@media (max-width: 1023px) {
    .about-layout {
        gap: 4rem;
        /* Tablet gap */
    }
}

@media (max-width: 767px) {
    .about-layout {
        display: block;
        /* Mobile stack */
    }
}

.about-image-column {
    width: 50%;
    /* PC Default */
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .about-image-column {
        width: 100%;
        margin-bottom: 3rem;
    }
}

.about-text-column {
    width: 50%;
    /* PC Default */
}

@media (max-width: 767px) {
    .about-text-column {
        width: 100%;
    }
}

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

.about-image-wrapper img {
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
    cursor: pointer;
    width: 70%;
    height: auto;
    object-fit: cover;
    border-radius: 0.75rem;
    overflow: hidden;
}

.about-image-wrapper img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.caption-text {
    text-align: center;
    font-size: 0.875rem;
    font-weight: var(--font-weight-light);
    letter-spacing: 0.05em;
    color: var(--color-text-subtle);
    margin-top: 1rem;
}

.decorative-line {
    width: 25%;
    height: 2px;
    background-color: var(--color-primary);
    margin: 0.5rem auto 0.5rem auto;
    opacity: 0.7;
}

.about-text-area {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    margin-bottom: 2.5rem;
}

.philosophy-block {
    margin-top: 2.5rem;
}

.profile-heading {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
}

.profile-text {
    font-size: 1.5rem;
    /* PC Default */
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    letter-spacing: 0.025em;
}

@media (max-width: 767px) {
    .profile-text {
        font-size: 1.25rem;
    }
}

.philosophy-text {
    font-size: 1.125rem;
    /* PC Default */
    font-weight: var(--font-weight-extralight);
    line-height: 1.8;
}

@media (max-width: 767px) {
    .philosophy-text {
        font-size: 1rem;
    }
}

.highlight-text {
    font-weight: var(--font-weight-normal);
}

.highlight-text-dark {
    font-weight: var(--font-weight-normal);
    color: var(--color-text-secondary);
}



/* FEATURED WORKS Section */


.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* PC Default */
    gap: 2rem;
}

@media (max-width: 1023px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* Work Card */
.work-card {
    background-color: white;
    padding: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.work-card:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.work-image-container {
    overflow: hidden;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

.work-card:hover .work-image {
    transform: scale(1.05);
}

.work-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
}

.work-specs {
    font-size: 0.875rem;
    font-weight: var(--font-weight-extralight);
    color: var(--color-text-subtle);
    margin-bottom: 1rem;
    text-align: center;
}

.work-description {
    font-size: 0.875rem;
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 16rem;
}

.work-cta {
    font-size: 0.75rem;
    padding: 0.5rem 1.5rem;
}


/* GALLERY Section */
.filter-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.filter-button {
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.075em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
    background: none;
    border: none;
    cursor: pointer;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.filter-button:hover {
    color: var(--color-primary);
}

.filter-button-active {
    color: var(--color-text-secondary);
    border-color: var(--color-primary);
}

.gallery-section {
    background: linear-gradient(135deg, #faf6f1 0%, #f4ede6 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* PC Default */
    gap: 2rem;
}

@media (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background-color: white;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.3s;
}

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

.gallery-details {
    padding: 1rem;
}

.gallery-title {
    font-size: 1rem;
    font-weight: var(--font-weight-light);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
    color: var(--color-text-secondary);
}

.gallery-specs {
    font-size: 0.75rem;
    font-weight: var(--font-weight-extralight);
    color: var(--color-text-subtle);
    margin-bottom: 0.75rem;
}

.gallery-link-button {
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.gallery-link-button:hover {
    background-color: var(--color-primary);
    color: white;
}

.cta-container {
    text-align: center;
    margin-top: 5rem;
}

.all-works-cta {
    display: inline-block;
    border: 1px solid var(--color-text-subtle);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.1em;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.all-works-cta:hover {
    border-color: var(--color-text-secondary);
    color: var(--color-text-main);
}

/* CONTACT Section */
.contact-subtitle {
    max-width: 26rem;
}

.contact-container {
    display: flex;
    flex-direction: row;
    /* PC Default */
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

@media (max-width: 767px) {
    .contact-container {
        flex-direction: column;
    }
}

.contact-text-area {
    width: 50%;
    /* PC Default */
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .contact-text-area {
        width: 100%;
        margin-bottom: 2rem;
    }
}

.contact-text {
    font-size: 1.25rem;
    font-weight: var(--font-weight-light);
    line-height: 1.6;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.contact-subtle-text {
    display: block;
    margin-top: 0.5rem;
    color: var(--color-text-subtle);
    font-size: 0.875rem;
    font-weight: var(--font-weight-extralight);
}

.contact-sns-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-cta-area {
    width: 50%;
    /* PC Default */
    text-align: right;
}

@media (max-width: 767px) {
    .contact-cta-area {
        width: 100%;
        text-align: center;
    }
}

/* Footer */
footer {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-subtle);
    border-top: 1px solid var(--color-border);
}