/* ==========================================================================
   Espada Official - Site Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #e67e22;
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-footer-bg: #333;
    --color-footer-text: #fff;
    --color-border: #ddd;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
    --max-width: 1200px;
    --content-width: 900px;
    --header-height: 80px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo:hover {
    opacity: 0.8;
}

.logo-image {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 0.9rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-text);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    left: 0;
}

.menu-icon::before {
    top: -8px;
}

.menu-icon::after {
    top: 8px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 30px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Page Content
   -------------------------------------------------------------------------- */
.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 40px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-primary);
    display: inline-block;
}

/* Section Title */
.section-title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-primary);
    margin: 40px 0 15px;
    padding-left: 10px;
    border-left: 3px solid var(--color-primary);
}

.section-divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 10px 0 20px;
}

/* --------------------------------------------------------------------------
   Hero Section (Home)
   -------------------------------------------------------------------------- */
.hero-section {
    width: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   News Section (Home)
   -------------------------------------------------------------------------- */
.news-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 40px;
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-banner {
    display: block;
    flex-shrink: 0;
}

.news-banner img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.news-item:last-child {
    border-bottom: none;
}

.news-link {
    color: var(--color-primary);
    line-height: 1.6;
}

/* PC: 2カラムレイアウト */
@media (min-width: 992px) {
    .news-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .news-banner {
        width: 45%;
    }

    .news-list {
        width: 55%;
    }
}

/* --------------------------------------------------------------------------
   Company Info Table
   -------------------------------------------------------------------------- */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.info-table th,
.info-table td {
    padding: 15px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.info-table th {
    background: #f9f9f9;
    font-weight: 400;
    width: 120px;
    white-space: nowrap;
}

.info-table td {
    background: var(--color-bg);
}

/* --------------------------------------------------------------------------
   Lists
   -------------------------------------------------------------------------- */
.content-list {
    margin: 20px 0;
    padding-left: 25px;
}

.content-list li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.form-label .required {
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

.btn-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.btn-submit:hover {
    opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Google Maps
   -------------------------------------------------------------------------- */
.map-container {
    margin: 20px 0;
    border-radius: 4px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

/* --------------------------------------------------------------------------
   Works Page
   -------------------------------------------------------------------------- */
.works-banner {
    margin: 20px 0;
    max-width: 600px;
}

.works-banner img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.works-description {
    margin: 15px 0;
    line-height: 1.8;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        padding: 20px;
    }

    .main-nav:not(.show) {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-link {
        padding: 12px 0;
    }

    .nav-link::after {
        left: 0;
        right: auto;
        width: 30px;
    }

    .page-content {
        padding: 40px 20px;
    }

    .info-table th {
        width: 100px;
        font-size: 0.9rem;
    }

    .info-table td {
        font-size: 0.9rem;
    }
}
