/* style.css */
:root {
    --text: #243044;
    --subtext: #5c6577;
    --navy: #071326;
    --blue: #78aee8;
    --lavender: #b7a7f2;
    --line: rgba(118, 143, 178, 0.22);
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: rgba(255, 255, 255, 0.84);
    --shadow: 0 20px 50px rgba(35, 65, 105, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    margin: 0;
    line-height: 1.8;
    color: var(--text);
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.52), rgba(245,248,255,0.28)),
        url('cielomagia-bg.png') center top / cover fixed no-repeat;
}

body.page-home { background-position: center top; }
body.page-service { background-position: right top; }
body.page-company { background-position: left center; }
body.page-contact { background-position: right center; }

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 22% 22%, rgba(255,255,255,0.62), transparent 31%),
        radial-gradient(circle at 88% 10%, rgba(183,167,242,0.16), transparent 38%),
        radial-gradient(circle at 70% 72%, rgba(120,174,232,0.13), transparent 42%);
    z-index: -1;
}

header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.76);
    border-bottom: 1px solid rgba(255, 255, 255, 0.62);
    z-index: 100;
    box-shadow: 0 8px 24px rgba(34, 53, 89, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 15px 22px;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    color: #141b27;
    letter-spacing: 0.02em;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 20px;
}

nav a {
    text-decoration: none;
    color: #424b5d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    transition: color 0.25s ease, opacity 0.25s ease;
}

nav a:hover { color: #2b6bb3; }

section {
    padding: 78px 34px;
    max-width: 1000px;
    margin: 44px auto;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body.page-home section:first-of-type {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.52), rgba(255,255,255,0.26));
}

h1, h2, h3 { color: #172234; }

h1 {
    text-shadow: 0 8px 24px rgba(255,255,255,0.8);
    letter-spacing: 0.04em;
}

h2 {
    border-left: 4px solid var(--blue);
    padding-left: 15px;
    margin-bottom: 40px;
    letter-spacing: 0.08em;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 12px;
    background: linear-gradient(90deg, var(--blue), transparent);
}

h3 { letter-spacing: 0.03em; }
p { color: var(--subtext); }
strong { color: var(--text); }

/* ソーシャルボタン */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 14px 38px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    min-width: 150px;
    transition: transform 0.22s ease, opacity 0.25s ease, box-shadow 0.25s ease;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.34);
    box-shadow: 0 12px 28px rgba(37, 57, 91, 0.18);
}

.btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.btn-x { background: linear-gradient(135deg, #111827, #000); }
.btn-booth { background: linear-gradient(135deg, #fc4d50, #ff777a); }
.btn-marshmallow { background: linear-gradient(135deg, #ffd5df, #ffb6c1); color: #333; }
.btn:not(.btn-x):not(.btn-booth):not(.btn-marshmallow) { background: linear-gradient(135deg, #101c33, #263653); }

/* テーブル共通 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    background: rgba(255,255,255,0.46);
    border-radius: 18px;
    overflow: hidden;
}

th, td {
    padding: 19px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

tr:last-child th,
tr:last-child td { border-bottom: none; }

th {
    width: 250px;
    background: rgba(255,255,255,0.48);
    font-weight: 700;
    color: #26334a;
}

label { color: #28364d; }

input[type="text"],
input[type="email"],
textarea {
    width: 100% !important;
    padding: 13px 15px !important;
    border: 1px solid rgba(112, 139, 178, 0.38) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,0.82) !important;
    color: var(--text) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #78aee8 !important;
    box-shadow: 0 0 0 4px rgba(120, 174, 232, 0.16), inset 0 1px 0 rgba(255,255,255,0.65);
}

.footer {
    background: rgba(7, 19, 38, 0.92);
    padding: 34px 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.74);
    border-top: 1px solid rgba(255,255,255,0.12);
}

.footer p { color: rgba(255,255,255,0.74); margin: 0; }

@media (max-width: 768px) {
    body { background-attachment: scroll; }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav { justify-content: flex-start; }

    section {
        margin: 22px 14px;
        padding: 56px 20px;
        border-radius: 20px;
    }

    body.page-home section:first-of-type { min-height: 360px; }

    h1 { font-size: 2.2rem !important; }

    th, td {
        display: block;
        width: 100% !important;
        padding: 14px 16px;
    }

    th {
        border-bottom: none;
        padding-bottom: 6px;
    }

    td { padding-top: 6px; }
}
