:root {
    --accent: #00f2ff;
    --accent-sub: #1e90ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.15);
    --bg-black: #050505;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-black);
    color: #fff;
    font-family:'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Background */
#liquid-bg {
    position: fixed; top: 0; left: 0; z-index: -1;
    width: 100%; height: 100%; filter: blur(50px);
}

/* Container System (Unified Margins) */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
.glass-header {
    position: fixed; width: 100%; top: 0; z-index: 3000;
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    /*border-bottom: 1px solid var(--glass-border);*/
}

.header-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 20px 40px; display: flex; justify-content: space-between; align-items: center;
}

.header-logo {
    padding-top: 10px;
}

.nav-pc a {
    color: #fff; text-decoration: none; margin-left: 20px;
    font-size: 1rem; letter-spacing: 2px;
    transition: 0.3s;
}
.nav-pc a:hover { color: var(--accent-sub); }

/* Hamburger Menu (Modified) */
.hamburger {
    background: none; border: none; cursor: pointer;
    width: 30px; height: 24px; display: none; /* Desktop Hidden */
    flex-direction: column; justify-content: space-between; align-items: flex-end;
    z-index: 3100; padding: 0;
}

.line {
    width: 30px; height: 1.5px; background: #fff;
    transition: 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

/* 真ん中の線の長さ修正: 全て30pxで統一 */
.line-2 { width: 30px; } 

/* Active State (X Button) */
.hamburger.active .line-1 { transform: translateY(11px) rotate(45deg); }
.hamburger.active .line-2 { opacity: 0; }
.hamburger.active .line-3 { transform: translateY(-11px) rotate(-45deg); }

/* Mobile Nav Overlay */
.sp-nav {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(30px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2500; transition: 0.7s cubic-bezier(0.8, 0, 0.2, 1);
}
.sp-nav.active { right: 0; }
.sp-nav a {
    color: #fff; text-decoration: none; font-size: 2rem; margin: 20px 0;
    font-family: "Libre Baskerville", serif; letter-spacing: 4px; display: block; text-align: center;
}

/* Sections & Components */
#hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-full-bg { position: absolute; inset: 0; z-index: -1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.9); transform: scale(1.1); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, #000 100%); }
.reveal-text { font-family: "Libre Baskerville", serif; font-size: clamp(3rem, 5vw, 8rem); letter-spacing: 5px; text-align: center; line-height: 1.2;}
.hero-sub {text-align: center; margin-top: 20px;}

.section-padding { padding: 50px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.glass-card { background: var(--glass-bg); backdrop-filter: blur(20px); /*border: 1px solid var(--glass-border); border-radius: 40px;*/ padding: 100px 50px; }
.section-title {
    font-family: "Libre Baskerville", serif;
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* 最小1.8remに制限 */
    margin-bottom: 50px;
    letter-spacing: clamp(2px, 1vw, 6px); /* スマホ時は字間を狭める */
    text-align: center;
    word-wrap: break-word; /* 長い単語の折り返し */
}

/* Service Grid */
.service-item {
    margin-bottom: 30px;
}

.service-item h3 {
    margin-bottom: 10px;
}

/* Works Grid */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.works-item {
    transition: 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    cursor: pointer; border-radius: 20px; overflow: hidden;
    /*border: 1px solid var(--glass-border);*/
    background: rgba(255,255,255,0.02);
}
/* ホバー時の強調拡大 */
.works-item:hover {
    transform: scale(1.05);
    /*border-color: var(--accent);*/
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.5);
    background: rgba(255,255,255,0.05);
    z-index: 2;
}
.works-img { aspect-ratio: 1; overflow: hidden; }
.works-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.works-item:hover .works-img img { transform: scale(1.1); }
.works-info { padding: 20px; text-align: center; background: rgba(255,255,255,0.02); }

/* Form */
.form-group { margin-bottom: 20px; }
.secure-form input, .secure-form textarea {
    width: 100%; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    padding: 15px; color: #fff; border-radius: 10px; outline: none; transition: 0.3s;
}
.secure-form input:focus, .secure-form textarea:focus { border-color: var(--accent-sub); }
.liquid-btn {
    width: 50%; padding: 18px; background: transparent; border: 1px solid var(--accent-sub);
    color: var(--accent-sub); border-radius: 50px; cursor: pointer; font-weight: bold;
    letter-spacing: 3px; transition: 0.4s;
}
.liquid-btn:hover { background: rgba(0, 242, 255, 0.3); color: #000; box-shadow: 0 0 20px var(--accent); }

/* 簡易フォーム */
#contact a {
    color: #ffffff;
    transition: 0.3s;
    text-align: center;
}

#contact a:hover {
    color: #ffffff;
    color: var(--accent-sub);
}

/* Footer */
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 50px; }
.footer-logo { margin-bottom: 10px;}
.sns-icons { display: flex; gap: 20px; margin-top: 20px; }
.sns-icons a { color: #fff; font-size: 1.5rem; transition: 0.3s; }
.sns-icons a:hover { color: var(--accent); }
.footer-info {padding-left: 20px}
.footer-map iframe { width: 100%; height: 300px; border: 1px solid var(--glass-border); filter: grayscale(1) invert(0.9); }
.copyright { text-align: center; font-size: 0.8rem; opacity: 0.5; /*border-top: 1px solid var(--glass-border);*/ padding-top: 30px; }

/* Responsive */
@media (max-width: 1024px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) and  (orientation: portrait){
    .header-logo {padding-top: 20px;}
    .nav-pc { display: none; }
    .hamburger { display: flex; }
    .works-grid { grid-template-columns: 1fr; }
    .header-inner { padding: 15px 25px; }
}
/* 簡易フォーム */
@media (min-width: 768px) {
    #contact p {text-align: center;}
}