/* ========================================
   TOMOT Website - Main Stylesheet
   ======================================== */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0052a3;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    flex: 1;
    margin: 0 2rem;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__item a {
    color: #333;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.nav__item a:hover {
    color: #0066cc;
}

.nav__item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.nav__item a:hover::after {
    width: 100%;
}

.header__cta a {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: #0066cc;
    color: #fff;
}

.btn--primary:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
}

.btn--secondary {
    background-color: #ff6b6b;
    color: #fff;
}

.btn--secondary:hover {
    background-color: #ee5a52;
    transform: translateY(-2px);
}

.btn--tertiary {
    border: 2px solid #0066cc;
    color: #0066cc;
    background-color: transparent;
}

.btn--tertiary:hover {
    background-color: #f0f7ff;
    border-color: #0052a3;
    color: #0052a3;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero__title {
    font-size: 2.5rem;
    color: #000;
    line-height: 1.3;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: #666;
}

.hero__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    padding: 4rem 0;
}

.section__title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #000;
}

/* Concept Section */
.concept {
    background-color: #f9f9f9;
}

.concept__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.concept__item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.concept__item h3 {
    margin-bottom: 1rem;
    color: #0066cc;
}

/* Products Grid */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product__card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product__card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product__card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #000;
}

.product__card p {
    padding: 0 1.5rem;
    color: #666;
}

.product__card .btn {
    margin: 1.5rem;
    display: block;
    text-align: center;
}

.products__footer {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
}

/* Learning Ecosystem */
.learning-ecosystem {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.learning-ecosystem .section__title {
    color: #fff;
}

.ecosystem__content p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tech-stack {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tech-stack li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #fff;
}

/* News Section */
.news__list {
    margin-bottom: 2rem;
}

.news__item {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.news__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news__item time {
    color: #999;
    font-size: 0.9rem;
}

.news__item h3 {
    margin: 0.5rem 0;
    color: #000;
}

.news__item p {
    color: #666;
    margin-bottom: 1rem;
}

.link--arrow::after {
    content: ' →';
}

/* Media Grid */
.media__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.media__item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.media__item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    height: 100%;
    color: #000;
    transition: all 0.3s ease;
}

.media__item:hover {
    background-color: #f0f7ff;
}

.media__item:hover a {
    color: #0066cc;
}

.media__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.media__item p {
    font-weight: 600;
}

/* Company CTA Section */
.cta__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.cta__item {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
}

.cta__item h3 {
    margin-bottom: 1rem;
    color: #0066cc;
}

.cta__item .btn {
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 4rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__info {
    grid-column: 1;
}

.footer__title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer__links, .footer__social, .footer__external {
    display: flex;
    flex-direction: column;
}

.footer__links h4, .footer__social h4, .footer__external h4 {
    margin-bottom: 1rem;
    color: #0066cc;
}

.footer__links ul, .footer__social ul, .footer__external ul {
    list-style: none;
}

.footer__links li, .footer__social li, .footer__external li {
    margin-bottom: 0.5rem;
}

.footer__links a, .footer__social a, .footer__external a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer__links a:hover, .footer__social a:hover, .footer__external a:hover {
    color: #0066cc;
}

address {
    font-style: normal;
}

address p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer__bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #999;
}

/* Additional Styles for Product Pages */
.hero--secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3rem 0;
}

.hero--secondary .hero__title {
    color: #fff;
}

.hero--secondary .hero__subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
}

/* Product Page Styles */
.product-hero {
    padding: 4rem 0;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.product-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-hero__content h1 {
    font-size: 2.5rem;
}

.product-hero__subtitle {
    font-size: 1.25rem;
    color: #0066cc;
    font-weight: 600;
}

.product-hero__description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

.product-hero__cta {
    display: flex;
    gap: 1rem;
}

.product-hero__image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Product Specifications */
.company-table {
    overflow-x: auto;
    margin-top: 2rem;
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.company-table th,
.company-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.company-table th {
    background-color: #f9f9f9;
    font-weight: 600;
    color: #0066cc;
}

.company-table tr:hover {
    background-color: #f9f9f9;
}

/* Comparison Table */
.comparison__table {
    overflow-x: auto;
}

.comparison__table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comparison__table th,
.comparison__table td {
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.comparison__table th {
    background-color: #0066cc;
    color: #fff;
    font-weight: 600;
}

.comparison__table td:first-child {
    text-align: left;
    font-weight: 600;
    background-color: #f9f9f9;
}

/* Product Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #0066cc;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: #0066cc;
}

/* Article Styles */
.article-header {
    background-color: #f9f9f9;
    padding: 3rem 0;
    border-bottom: 2px solid #e0e0e0;
}

.article-header__breadcrumb {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.article-header__breadcrumb a {
    color: #0066cc;
}

.article-header__title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #000;
}

.article-header__meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    color: #666;
}

.article-category {
    display: inline-block;
    background-color: #0066cc;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.article-header__image {
    margin-top: 2rem;
}

.article-header__image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

/* Article Content */
.article-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    padding: 3rem 0;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

.article-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #0066cc;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    border-left: 4px solid #0066cc;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.article-body blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    color: #999;
}

.article-body hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.article-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.tag {
    display: inline-block;
    background-color: #f0f7ff;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.tag a {
    color: #0066cc;
}

/* Article Sidebar */
.article-sidebar {
    padding-top: 1rem;
}

.sidebar-box {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-box h3 {
    margin-bottom: 1rem;
    color: #0066cc;
    font-size: 1.1rem;
}

.sidebar-box ul {
    list-style: none;
}

.sidebar-box li {
    margin-bottom: 0.75rem;
}

.sidebar-box a {
    color: #0066cc;
}

.sidebar-box a:hover {
    text-decoration: underline;
}

.social-links-inline {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Article Navigation */
.article-navigation {
    background-color: #f9f9f9;
    padding: 3rem 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.nav-articles {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.nav-prev,
.nav-next {
    font-size: 0.9rem;
}

.nav-prev p,
.nav-next p {
    color: #999;
    margin-bottom: 0.5rem;
}

.nav-prev a,
.nav-next a {
    font-weight: 600;
    color: #0066cc;
}

.nav-back {
    text-align: center;
}

.nav-back a {
    font-weight: 600;
    color: #0066cc;
}

/* News List Full -->
.news__full-list {
    margin-bottom: 3rem;
}

.news__item--full {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.news__image {
    height: 100%;
    min-height: 200px;
}

.news__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__content--full {
    padding: 1.5rem;
}

.news__date {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.news__item--full h2 {
    margin-bottom: 0.5rem;
}

.news__item--full h2 a {
    color: #000;
}

.news__item--full h2 a:hover {
    color: #0066cc;
}

.news__excerpt {
    color: #666;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination__item {
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #0066cc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination__item:hover {
    background-color: #f0f7ff;
}

.pagination__item--active {
    background-color: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* Timeline Styles */
.timeline-items {
    position: relative;
    padding: 2rem 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-date {
    font-weight: 600;
    color: #0066cc;
    font-size: 1.1rem;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
}

/* Mission & Vision Cards */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.mv-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
}

.mv-card h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Core Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    border-top: 4px solid #0066cc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.value-card h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

/* Access Cards */
.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.access-card {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.access-card h3 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.access-card p {
    color: #666;
    line-height: 1.6;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Styles */
.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #000;
    user-select: none;
}

.faq-item summary:hover {
    color: #0066cc;
}

.faq-item p {
    margin-top: 1rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .header__content {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .header__nav {
        margin: 0;
        order: 3;
        width: 100%;
    }

    .nav__list {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }

    .hero__title {
        font-size: 1.75rem;
    }

    .product-hero__grid,
    .article-content,
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .news__item {
        grid-template-columns: 1fr;
    }

    .news__item img {
        height: 200px;
    }

    .news__item--full {
        grid-template-columns: 1fr;
    }

    .news__image {
        min-height: 200px;
    }

    .media__grid,
    .cta__grid,
    .products__grid,
    .features-grid,
    .access-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
    }

    .nav-articles {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .nav-back {
        text-align: left;
    }

    .product-hero__cta {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    
    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    section {
        padding: 2rem 0;
    }

    .nav__list {
        gap: 0.5rem;
    }

    .product__card h3,
    .product__card p {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .article-header__meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-header__title {
        font-size: 1.5rem;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .product-hero__content h1 {
        font-size: 1.5rem;
    }

    .pagination__item {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
    }
}
