/* THE SKIN - Professional Stylesheet */

:root {
    --gold: #d4af37;
    --black: #1a1a1a;
    --white: #ffffff;
    --bg-light: #fafafa;
    --text-gray: #666666;
    --border: #e5e5e5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif;
    color: var(--black);
    line-height: 1.8;
    background: var(--white);
    font-feature-settings: 'palt';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; font-weight: 500; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-cta {
    background: var(--gold);
    color: var(--black);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--black);
    color: var(--white);
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 4rem 4rem;
    background: var(--white);
    text-align: center;
}

.hero-content {
    max-width: 900px;
}

/* Hero Animations - Sophisticated */
.hero-message {
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--black);
    margin-bottom: 2rem;
    font-weight: 600;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-title {
    font-size: 5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    font-family: 'Noto Serif JP', serif;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

.hero-cta {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 1.5rem 4rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.hero-cta:hover {
    background: var(--black);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.hero-price {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.0s forwards;
}

.hero-note {
    font-size: 0.95rem;
    color: var(--text-gray);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.1s forwards;
}

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

/* Section */
.section {
    padding: 6rem 4rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
}

.section-title {
    margin-bottom: 1.5rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

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

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

/* Card */
.card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(212,175,55,0.15);
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    color: var(--black);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card:hover h3 {
    color: var(--gold);
}

.card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Button */
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--black);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212,175,55,0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--black);
    padding: 1.2rem 3rem;
    border: 2px solid var(--black);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--black);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--black);
}

/* Footer */
.footer {
    background: var(--black);
    color: var(--white);
    padding: 4rem 4rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .section {
        padding: 5rem 2.5rem;
    }
    
    h1 { font-size: 3rem; }
    h2 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 80vh;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.4rem; }
    
    .hero-message {
        font-size: 1.4rem;
        line-height: 1.7;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-price {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        padding: 1.2rem 3rem;
        font-size: 1rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Better text wrapping on mobile */
    p, li {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section {
        padding: 3rem 1.2rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Sophisticated micro-interactions */
.nav-logo {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-logo:hover {
    transform: scale(1.05);
    letter-spacing: 0.08em;
}

.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

/* Grid stagger animation */
.grid-3 > *:nth-child(1) {
    animation-delay: 0.1s;
}

.grid-3 > *:nth-child(2) {
    animation-delay: 0.2s;
}

.grid-3 > *:nth-child(3) {
    animation-delay: 0.3s;
}

/* Image subtle zoom on page load */
img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img {
    transform: scale(1.03);
}

}

/* 日本語テキストの改行最適化 */
p, li, h1, h2, h3, .card {
    overflow-wrap: break-word;
}

/* より自然な改行 */
@media (max-width: 768px) {
    p {
        text-align: justify;
        text-justify: inter-character;
    }
}
/* Performance Optimization */

/* GPU加速を有効化 */
.card,
.btn-primary,
.btn-secondary,
.hero-message,
.hero-title,
.hero-subtitle,
.section {
    will-change: auto;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* アニメーションを軽量化 */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 重いエフェクトを軽減 */
.card::before {
    will-change: opacity;
}

/* スクロールパフォーマンス向上 */
.section {
    contain: layout style paint;
}

/* 適切な日本語改行設定 */
body, p, h1, h2, h3, li, .card {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* タイトルは改行させない */
h1, h2, h3 {
    word-break: keep-all;
}

/* 3カラムグリッドの幅を統一 */
.grid-3 > * {
    min-width: 0;
}

@media (min-width: 769px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-3 > * {
        width: 100%;
    }
}
