
body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    line-height: 1.7;
}

main {
    flex: 1;
    padding: 2.5rem 1rem;
}

footer {
    background: linear-gradient(90deg, rgba(34,34,34,1) 60%, rgba(224,59,59,1) 100%);
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
    position: static;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 8px rgba(224,59,59,0.12);
    border-radius: 18px 18px 0 0;
    font-size: 1.05rem;
}

html {
    margin: 0;
    padding: 0;
    min-height: 0;
    height: auto;
    background-color: #f7f8fa;
}

html {
    scroll-behavior: smooth;
}

html::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('assets/bg.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    pointer-events: none;
}

.container {
    display: flex;
    min-height: 80vh;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.top-fixed {
    position: fixed;
    top: 0.1rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: calc(100% - 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 0.6rem;
    background: rgba(231, 234, 237, 0.95);
    backdrop-filter: blur(6px);
    z-index: 1000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.6);
    border-radius: 12px;
}


[id] {
    scroll-margin-top: 84px;
}
.top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.2rem 1rem;
    border-radius: 8px;
}
.top-nav ul {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: row;
}
.top-nav li {
    white-space: nowrap;
}

.top-nav a {
    color: #111 !important;
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
}
.top-nav a:hover {
    background: rgba(224,59,59,0.12);
    transform: translateY(-2px);
}

.menu-bottom {
    display: none;
    position: absolute;
    left: 0;
    bottom: 1.5rem;
    width: auto;
    text-align: left;
    background: #fff;
    flex-direction: row;
}


.card-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0;
    margin: 0 -0.5rem 0 -0.5rem;
}

.card-group {
    display: flex;
    gap: 0.8rem;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    width: auto;
    max-width: 840px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.card {
    background: rgba(255,244,244,0.8);
    border: 2px solid rgb(224,59,59);
    box-shadow: 0 8px 32px rgba(224,59,59,0.12), 0 1.5px 8px rgba(0,0,0,0.6);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
    box-sizing: border-box;
    flex: 1 1 180px;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;

    text-align: center;

    white-space: nowrap;
    overflow: visible;
}
.card:hover {
    box-shadow: 0 6px 24px rgba(224,59,59,0.6);
    transform: translateY(-4px) scale(1.03);
}

.card > h3, .card > p {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    margin: 0 0.5rem;
}

h1, h2, h3 {
    font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    letter-spacing: 0.04em;
    color: rgb(207, 71, 84);
    margin-bottom: 0.6rem;
}

img, .card, header, footer {
    border-radius: 18px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.no-margin { margin: 0; }

.menu-title {
    display: inline-grid;
    padding: 0 0.7rem;
    color: #fff;
    font-weight: 700;
    border-radius: 8px;
    background-image: url('assets/menu_bg.png');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.menu-logo {
    font-size: 0.8rem;
    margin-top: 0.1rem;
    margin-bottom: -0.2rem;
    display: inline-block;
    color: #fff;
    -webkit-text-stroke: 1px #000;
    letter-spacing: 0.2em;
    text-shadow:
        0 0 0 #000,
        1.5px 0 0 #000,
        -1.5px 0 0 #000,
        0 1.5px 0 #000,
        0 -1.5px 0 #000,
        1.5px 1.5px 0 #000,
        -1.5px -1.5px 0 #000,
        1.5px -1.5px 0 #000,
        -1.5px 1.5px 0 #000;
}

.menu-companyname-zabuton {
    display: flex;
    justify-content: center;
    font-size: 0.6rem;
    margin: 0;
    padding: 0.2rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
    line-height: 1;
}

.company-outer {
    display: flex;
    justify-content: center;
}
.company-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.company-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    align-items: center;
}
.icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem;
    border-radius: 6px;
}
.icon-link:focus {
    outline: 2px solid rgba(224,59,59,0.4);
    outline-offset: 2px;
}
.icon-img {
    width: 1.6rem;
    height: 1.6rem;
    display: block;
}
.company-title {
    margin: 0;
    text-align: left;
}
.company-table {
    text-align: left;
    margin-top: 0;
}

.full-bleed {
    position: relative;
    /* Use the left:50% and negative 50vw margins technique which is more
       consistent across browsers (avoids some Safari 100vw/scrollbar bugs). */
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background: rgba(255,244,244,0.8);
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.contact-form {
    width: 40vw;
    max-width: 720px;
    min-width: 320px;
    box-sizing: border-box;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .contact-form {
        width: calc(100% - 2rem);
        max-width: none;
        min-width: 0;
    }
}


