@charset "utf-8";

/* ==========================================================================
   Modern Reset & Variables
   ========================================================================== */
:root {
    --primary-color: #1469aa;
    --primary-light: #2085d5;
    --primary-dark: #0d4e80;
    --secondary-color: #6fc9d8;
    --accent-color: #c70003;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f8fa;
    --bg-white: #ffffff;
    --border-color: #dddddd;
    --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 8px 15px rgba(0, 0, 0, 0.1);
    --font-sans: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-light);
    -webkit-text-size-adjust: 100%;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 50px 0;
}

.section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 2px;
    background-color: var(--primary-color);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding-top: 8px;
}

.header-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.2;
}

.header-info a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-info a:hover {
    color: var(--primary-color);
}

.header-phone {
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 1.1;
}

.header-phone i {
    font-size: 2rem;
}

/* Menu Toggle Button (Mobile Only) */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

/* ==========================================================================
   Global Navigation
   ========================================================================== */
.global-nav {
    background-color: var(--primary-color);
    color: var(--bg-white);
}

.nav-list {
    display: flex;
    justify-content: center;
}

.nav-item {
    flex: 1;
    max-width: 200px;
}

.nav-item a {
    display: block;
    padding: 15px 0;
    text-align: center;
    color: var(--bg-white);
    font-weight: bold;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.nav-item:last-child a {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item a:hover {
    background-color: var(--primary-light);
}

/* Mobile only items (hidden on desktop) */
.sp-only {
    display: none;
}

/* ==========================================================================
   Hero Visual
   ========================================================================== */
.hero {
    background-color: #0b1a2e;
    overflow: hidden;
    position: relative;
}

.hero-inner {
    position: relative;
    max-height: 400px;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    opacity: 0.75;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 105, 170, 0.6) 0%, rgba(11, 26, 46, 0.8) 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--bg-white);
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    margin-bottom: 15px;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W6", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.hero-subtitle {
    font-size: 3rem;
    font-weight: bold;
    opacity: 1;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W6", "Hiragino Mincho ProN", "MS PMincho", serif;
}

/* For subpages */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    padding: 40px 0;
}

.page-title {
    font-size: 2rem;
    font-weight: bold;
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb-area {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 0.85rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-light);
}

.breadcrumb-item::after {
    content: '>';
    margin-left: 10px;
    color: #ccc;
}

.breadcrumb-item:last-child::after {
    content: '';
}

.breadcrumb-item a {
    color: var(--text-light);
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ==========================================================================
   Main Content Area (2 Column for Home)
   ========================================================================== */
.main-wrapper {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-subtle);
    border-radius: 8px;
    margin: 30px auto;
    overflow: hidden;
}

.content-grid {
    display: flex;
    gap: 40px;
    padding: 40px 20px;
}

.main-content {
    flex: 1;
}

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


/* Sidebar Styling */
.sidebar-widget {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
}
.sidebar-menu {
    padding-left: 0;
    margin-bottom: 0;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu li a {
    display: block;
    padding: 10px 15px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: bold;
    color: var(--text-color);
    text-align: center;
    transition: all 0.3s;
}

.sidebar-menu li a:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

/* ==========================================================================
   Home Components (Greetings, News)
   ========================================================================== */
.greetings {
    margin-bottom: 50px;
}

.greetings h2 {
    font-size: 1.6rem;
    line-height: 1.4;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.greetings p {
    margin-bottom: 15px;
    color: var(--text-color);
}

.news-widget {
    margin-bottom: 30px;
}

.news-list li {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-color);
    gap: 15px;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--bg-light);
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-size: 0.95rem;
}

.news-pdf {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 0.85rem;
    border: 1px solid var(--accent-color);
    padding: 2px 8px;
    border-radius: 3px;
    transition: all 0.3s;
    margin-left: 10px;
}

.news-pdf:hover {
    background-color: var(--accent-color);
    color: var(--bg-white);
}

/* ==========================================================================
   About Page Components
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 40px;
}

/* Modern definition table list */
.profile-table {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.profile-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    width: 120px;
    background-color: var(--bg-light);
    padding: 15px 20px;
    font-weight: bold;
    color: var(--primary-dark);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.profile-value {
    flex: 1;
    padding: 15px 20px;
}

.profile-value ul {
    list-style-type: disc;
    padding-left: 20px;
}

.profile-value li {
    margin-bottom: 5px;
}

.profile-list {
    margin: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.profile-row {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    width: 140px;
    margin: 0;
    padding: 15px 20px;
    background-color: var(--bg-light);
    color: var(--primary-dark);
    font-weight: bold;
    flex-shrink: 0;
}

.profile-value {
    flex: 1;
    margin: 0;
    padding: 15px 20px;
}

.profile-value ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.profile-value li {
    margin-bottom: 5px;
}

.profile-value li:last-child {
    margin-bottom: 0;
}



.office-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-subtle);
}

.office-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-dark);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

.office-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.office-text ul {
    margin-top: 10px;
}

.office-text li {
    font-size: 0.95rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.office-img img {
    border-radius: 4px;
    box-shadow: var(--shadow-subtle);
    width: 100%;
}

.office-map {
    margin-top: 20px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

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

/* History (Timeline) */
.history-timeline {
    position: relative;
    padding: 20px 0;
}

.history-timeline::before {
    content: '';
    position: absolute;
    left: 140px;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.history-item {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.history-date {
    width: 120px;
    flex-shrink: 0;
    font-weight: bold;
    color: var(--primary-color);
    text-align: right;
    padding-right: 20px;
    padding-top: 2px;
    white-space: nowrap;
}

.history-badge {
    position: absolute;
    left: 136px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--bg-white);
    z-index: 2;
}

.history-desc {
    flex: 1;
    padding-left: 30px;
    font-size: 0.95rem;
}

/* ==========================================================================
   Products Page Components
   ========================================================================== */
.products-intro {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-light);
}

.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    box-shadow: var(--shadow-subtle);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-light);
}

.product-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.product-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.product-card-title {
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--primary-dark);
}

.product-list li {
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-list li::before {
    content: '・';
    color: var(--primary-color);
    font-weight: bold;
}

.etc-products-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.etc-product-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s;
}

.etc-product-card:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.etc-product-card img {
    width: 25px;
    height: 25px;
}

/* ==========================================================================
   Trade Page Components
   ========================================================================== */
.trade-intro {
    font-size: 1rem;
    margin-bottom: 40px;
    color: var(--text-light);
    text-align: center;
}

.syllabary-section {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    gap: 30px;
    align-items: flex-start;
    scroll-margin-top: 100px;
}

.syllabary-letter {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.trade-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.trade-list li {
    font-size: 0.9rem;
    color: var(--text-color);
    padding: 6px 12px;
    background-color: var(--bg-light);
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    word-break: break-all;
}

/* Trade Index */
.trade-index {
    margin-top: 30px;
}

.trade-index-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.trade-index-grid a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 8px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.trade-index-grid a:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-subtle);
}

.trade-index-grid img {
    width: 100%;
    max-width: 45px;
    height: auto;
}

/* ==========================================================================
   Sitemap Page Components
   ========================================================================== */
.sitemap-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px 0;
}

.sitemap-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 25px;
    box-shadow: var(--shadow-subtle);
}

.sitemap-card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.sitemap-card-title a {
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitemap-card-title a:hover {
    color: var(--primary-light);
}

.sitemap-card-desc {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #122130;
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 20px;
    font-size: 0.9rem;
    margin-top: 50px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-company {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.footer-logo img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--bg-white);
    margin-bottom: 8px;
}

.footer-address {
    font-style: normal;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--bg-white);
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
.head-back {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 999;
}

.head-back:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
}

.head-back a {
    color: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (max-width: 900px) {
    .content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .sidebar-menu {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sidebar-menu li {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    /* Header Stack */
    .header-inner {
        height: auto;
        padding: 15px 0;
        flex-direction: column;
        gap: 15px;
        position: relative;
    }
    
    .header-right {
        align-items: center;
        width: 100%;
    }
    
    .header-info {
        display: none;
    }

    .sp-only {
        display: block;
    }

    .header-phone {
        font-size: 1.8rem;
    }

    /* Menu Toggle Activation */
    .menu-btn {
        display: block;
        position: absolute;
        right: 10px;
        top: 20px;
    }

    /* Navigation Overlay / Slide Toggle */
    .global-nav {
        display: none; /* Controlled by jQuery */
        width: 100%;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        max-width: 100%;
    }

    .nav-item a {
        border-left: none;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px;
    }

    /* Hero Responsive */
    .hero-img {
        height: 250px;
    }
    .hero-inner {
        height: 250px;
    }
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-subtitle {
        font-size: 1.8rem;
    }
    /* index News Responsive */
    .news-list li {
        flex-direction: column;
        gap: 6px;
    }

    .news-date {
        align-self: flex-start;
    }

    .news-title {
        width: 100%;
    }

    /* About Responsive */
    .profile-row {
        display: block;
    }
    .profile-label {
        width: 100%;
        padding: 10px 15px;
    }
    .profile-value {
        padding: 12px 15px 16px;
    }
    .office-card {
        padding: 15px;
    }
    .office-map iframe {
        height: 250px;
    }
    .history-timeline {
        padding: 10px 0;
    }
    .history-timeline::before {
        left: 10px;
    }
    .history-item {
        display: block;
        padding-left: 32px;
        margin-bottom: 25px;
    }
    .history-date {
        width: 100%;
        text-align: left;
        padding: 0;
        margin-bottom: 5px;
    }
    .history-badge {
        left: 6px;
        top: 7px;
    }
    .history-desc {
        padding-left: 0;
    }
    
    /* Trade Responsive */
    .syllabary-section {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 15px;
    }
    .trade-list {
        width: 100%;
        grid-template-columns: 1fr;
    }

    /* Sitemap Responsive */
    .sitemap-list {
        grid-template-columns: 1fr;
    }

    /* Footer Responsive */
    .footer-inner {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    .footer-company {
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    .lead-tagline {
        font-size: 1.25rem !important;
    }
}

@media (max-width: 575.98px) {
    .profile-row {
        display: block;
    }

    .profile-label {
        width: 100%;
        padding: 10px 15px;
    }

    .profile-value {
        padding: 12px 15px 16px;
    }
}

/* Lead Tagline Style */
.lead-tagline {
    font-size: 1.6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 25px;
    line-height: 1.6;
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W6", "Hiragino Mincho ProN", "MS PMincho", serif;
}
