/* ===================================================
   スリープシステム研究所 — www2.splco.net
   Responsive HTML5 Stylesheet
   =================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "Hiragino Kaku Gothic Pro", "Meiryo", "MS PGothic", sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #333;
    background: #323232;
}

a {
    color: #05478B;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* --- Layout Wrapper --- */
.site-wrapper {
    background: #f9f9f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header --- */
.site-header {
    max-width: 810px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.site-header .site-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #555;
}

.site-header .site-title a {
    color: inherit;
}

.header-links {
    font-size: 0.75rem;
}

.header-links a {
    color: #666;
    margin-left: 8px;
}

/* --- Navigation --- */
.site-nav {
    max-width: 810px;
    width: 100%;
    margin: 0 auto;
    background: #446688;
    border-radius: 0;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.site-nav li {
    flex: 1 1 auto;
}

.site-nav a {
    display: block;
    text-align: center;
    padding: 10px 4px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: bold;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.site-nav li:last-child a {
    border-right: none;
}

/* --- Main Content Area --- */
.content-area {
    max-width: 810px;
    width: 100%;
    margin: 16px auto;
    background: #fff;
    border: 1px solid #ddd;
    flex: 1;
}

/* Page Banner */
.page-banner {
    background: #446688;
    color: #fff;
    padding: 30px 24px;
    font-size: 1.3rem;
    font-weight: bold;
}

/* Breadcrumb */
.breadcrumb {
    padding: 8px 24px;
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #05478B;
}

/* Content Layout (Main + Sidebar) */
.content-layout {
    display: flex;
    gap: 24px;
    padding: 24px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 220px;
    flex-shrink: 0;
}

/* --- Section Headings --- */
.section-heading {
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 0;
    margin-bottom: 12px;
    border-bottom: 2px solid #446688;
    color: #333;
}

/* --- Product List (Top Page) --- */
.product-list {
    list-style: none;
}

.product-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    align-items: flex-start;
}

.product-item:last-child {
    border-bottom: none;
}

.product-item img {
    width: 118px;
    height: 85px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-item .product-info h3 {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.product-item .product-info h3 a {
    color: #05478B;
}

.product-item .product-info p {
    font-size: 0.85rem;
    color: #555;
}

/* --- Company Outline Table --- */
.outline-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.outline-table th,
.outline-table td {
    padding: 10px 12px;
    border: 1px solid #ccc;
    vertical-align: top;
    text-align: left;
}

.outline-table th {
    background: #555;
    color: #fff;
    white-space: nowrap;
    width: 100px;
    font-weight: normal;
}

.outline-table td {
    background: #f5f5f5;
}

/* --- Message Page --- */
.message-box {
    background: #f5f5f5;
    padding: 20px;
    line-height: 1.9;
    font-size: 0.85rem;
}

.message-signature {
    text-align: right;
    margin-top: 24px;
}

.message-signature img {
    width: 100px;
    height: auto;
}

/* --- Contact Page --- */
.contact-info {
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.contact-info strong {
    display: block;
    margin-top: 8px;
}

.map-container {
    margin-top: 16px;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

.access-info {
    margin-top: 12px;
    font-size: 0.85rem;
}

/* --- Privacy Policy --- */
.policy-section {
    margin-bottom: 20px;
}

.policy-section h3 {
    font-size: 0.9rem;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ccc;
}

.policy-section p {
    font-size: 0.85rem;
    line-height: 1.8;
}

.policy-date {
    text-align: right;
    margin-top: 24px;
    font-size: 0.85rem;
}

/* --- Sitemap Page --- */
.sitemap-columns {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.sitemap-columns ul {
    list-style: none;
}

.sitemap-columns>ul {
    flex: 1;
    min-width: 200px;
}

.sitemap-columns li {
    padding: 4px 0;
}

.sitemap-columns li::before {
    content: "▸ ";
    color: #446688;
}

.sitemap-columns ul ul {
    padding-left: 16px;
}

.sitemap-columns ul ul li::before {
    content: "– ";
    color: #999;
}

/* --- Sidebar --- */
.sidebar-box {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 16px;
    font-size: 0.8rem;
    line-height: 1.7;
}

.sidebar-box h3 {
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ccc;
    color: #446688;
}

.sidebar-box .contact-btn {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 8px;
    background: #446688;
    color: #fff;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Index hero banner (top page) */
.hero-tagline {
    text-align: center;
    border-bottom: 1px solid #eee;
}

.hero-tagline img {
    display: block;
    width: 100%;
    height: auto;
}

.intro-text {
    font-weight: bold;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #446688;
}

/* --- Footer --- */
.site-footer {
    background: #323232;
    padding: 20px 16px;
    text-align: center;
}

.footer-links {
    max-width: 810px;
    margin: 0 auto 12px;
    font-size: 0.8rem;
}

.footer-links a {
    color: #ababab;
    margin: 0 6px;
}

.footer-links span {
    color: #666;
}

.footer-copy {
    font-size: 0.7rem;
    color: #ababab;
}

/* --- Service List (製品案内ページ) --- */
.service-list {
    list-style: none;
}

.service-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item img {
    width: 118px;
    height: 85px;
    object-fit: cover;
    flex-shrink: 0;
}

.service-item a {
    font-size: 0.9rem;
    font-weight: bold;
}

/* --- Responsive --- */
@media (max-width: 840px) {

    .site-header,
    .site-nav,
    .content-area {
        margin-left: 8px;
        margin-right: 8px;
    }
}

@media (max-width: 640px) {
    .content-layout {
        flex-direction: column;
        padding: 16px;
    }

    .sidebar {
        width: 100%;
    }

    .site-nav ul {
        flex-direction: column;
    }

    .site-nav a {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 12px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item,
    .service-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item img,
    .service-item img {
        width: 100%;
        height: auto;
        max-width: 200px;
    }

    .sitemap-columns {
        flex-direction: column;
        gap: 16px;
    }

    .page-banner {
        padding: 20px 16px;
        font-size: 1.1rem;
    }

    .outline-table th {
        display: block;
        width: 100%;
    }

    .outline-table td {
        display: block;
        width: 100%;
    }

    .map-container iframe {
        height: 250px;
    }
}