/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-white: #FFFFFF;
    --color-black: #111111;
    --color-gray: #666666;
    --color-border: #EAEAEA;
    --color-accent: #B89A5E;
    --color-bg-gray: #F8F8F8;
    --font-primary: 'Inter', 'Noto Sans JP', sans-serif;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: var(--color-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-top {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-black);
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.7;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav {
    padding: 16px 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 40px;
}

.nav-menu li a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--color-black);
}

.nav-menu li a:hover {
    color: var(--color-accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-black);
    transition: var(--transition);
}

/* ========================================
   Hero Slideshow
   ======================================== */
.hero-slideshow {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 600px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.active {
    opacity: 1;
    position: relative;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
    color: var(--color-white);
}

.hero-title-en {
    font-size: 56px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 16px;
    color: var(--color-white);
}

.hero-title-jp {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--color-white);
}

.hero-description {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color: var(--color-white);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Hero Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.hero-arrow-prev {
    left: 40px;
}

.hero-arrow-next {
    right: 40px;
}

/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: var(--transition);
}

.hero-indicator.active {
    background: var(--color-white);
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
}

.btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-secondary {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-black);
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.btn-view-all {
    background: transparent;
    color: var(--color-black);
    border-color: var(--color-border);
    padding: 14px 36px;
    font-size: 12px;
    letter-spacing: 1.5px;
}

.btn-view-all:hover {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

/* Header Contact Button */
.btn-header-contact {
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: transparent;
    color: var(--color-black);
    border: 1px solid var(--color-black);
    border-radius: 0;
    transition: var(--transition);
}

.btn-header-contact:hover {
    background: var(--color-black);
    color: var(--color-white);
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-gray {
    background: var(--color-bg-gray);
}

.section-title {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-gray);
    text-align: center;
    margin-bottom: 60px;
}

.section-footer {
    text-align: center;
    margin-top: 60px;
}

/* ========================================
   Service Cards (Large)
   ======================================== */
.service-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-card-large {
    background: var(--color-white);
    padding: 50px 40px;
    border: 1px solid var(--color-border);
    text-align: center;
}

.service-icon-large {
    font-size: 64px;
    color: var(--color-black);
    margin-bottom: 24px;
}

.service-title-large {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--color-black);
}

.service-description-large {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 32px;
}

.service-list {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto 32px;
}

.service-list li {
    font-size: 14px;
    line-height: 2;
    color: var(--color-black);
    padding-left: 28px;
    position: relative;
}

.service-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--color-black);
}

/* ========================================
   Product Section
   ======================================== */
.product-category {
    margin-bottom: 80px;
}

.product-category:last-child {
    margin-bottom: 0;
}

.product-category-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product-card {
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-image {
    width: 100%;
    padding-bottom: 120%;
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-black);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Brand Section
   ======================================== */
.brand-category-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 60px;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.brand-category-title:first-of-type {
    margin-top: 0;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.brand-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 32px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.brand-card:hover {
    background: var(--color-bg-gray);
    border-color: var(--color-accent);
}

.brands-note {
    text-align: center;
    font-size: 14px;
    color: var(--color-gray);
    margin-top: 40px;
}

/* ========================================
   Strength Section
   ======================================== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.strength-card {
    background: var(--color-white);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--color-border);
}

.strength-icon {
    font-size: 48px;
    color: var(--color-black);
    margin-bottom: 24px;
}

.strength-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-black);
}

.strength-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray);
}

/* ========================================
   Flow Section
   ======================================== */
.flow-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-section-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-accent);
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.flow-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.flow-step-number {
    width: 48px;
    height: 48px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    flex-shrink: 0;
}

.flow-step-content {
    flex: 1;
}

.flow-step-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-black);
}

.flow-step-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-gray);
}

/* ========================================
   Company Section
   ======================================== */
.company-info {
    max-width: 800px;
    margin: 0 auto;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid var(--color-border);
}

.company-table th,
.company-table td {
    padding: 24px 20px;
    text-align: left;
}

.company-table th {
    width: 200px;
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-bg-gray);
}

.company-table td {
    color: var(--color-gray);
    line-height: 1.8;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}

.contact-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray);
    text-align: center;
    margin-bottom: 60px;
}

.contact-methods {
    display: grid;
    gap: 32px;
    margin-bottom: 48px;
}

.contact-method {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px;
    background: var(--color-bg-gray);
    border-radius: 8px;
}

.contact-method-icon {
    width: 64px;
    height: 64px;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.contact-method-content {
    flex: 1;
}

.contact-method-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-black);
}

.contact-method-detail {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 4px;
}

.contact-method-note {
    font-size: 13px;
    color: var(--color-gray);
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    font-size: 13px;
    color: #999;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    font-size: 20px;
    color: #999;
}

.social-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #666;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .service-cards {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .strength-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    /* Header */
    .header-top {
        padding: 16px 0;
    }

    .logo {
        font-size: 24px;
    }

    .btn-header-contact {
        font-size: 13px;
        padding: 8px 16px;
    }

    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        background: var(--color-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 16px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero */
    .hero-slideshow {
        min-height: 500px;
    }

    .hero-slide {
        min-height: 500px;
    }

    .hero-title-en {
        font-size: 40px;
    }

    .hero-title-jp {
        font-size: 20px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .hero-arrow-prev {
        left: 20px;
    }

    .hero-arrow-next {
        right: 20px;
    }

    .hero-indicators {
        bottom: 20px;
    }

    /* Sections */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }

    /* Service Cards */
    .service-card-large {
        padding: 40px 24px;
    }

    /* Product Grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    /* Brand Grid */
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .brand-card {
        padding: 24px 16px;
        font-size: 12px;
    }

    /* Strength Grid */
    .strength-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Contact */
    .contact-container {
        padding: 0 20px;
    }

    .contact-title {
        font-size: 18px;
    }

    .contact-description {
        font-size: 14px;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
        align-items: center;
    }

    .contact-method-icon {
        margin: 0 auto 16px;
    }

    .contact-method-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-method-title {
        text-align: center;
        font-size: 15px;
    }

    .contact-method-detail {
        text-align: center;
        font-size: 16px;
    }

    .contact-method-note {
        text-align: center;
        font-size: 12px;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 16px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-slideshow {
        min-height: 450px;
    }

    .hero-slide {
        min-height: 450px;
    }

    .hero-title-en {
        font-size: 32px;
    }

    .hero-title-jp {
        font-size: 18px;
    }

    .hero-arrow {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .hero-arrow-prev {
        left: 10px;
    }

    .hero-arrow-next {
        right: 10px;
    }

    .hero-indicator {
        width: 10px;
        height: 10px;
    }

    .section-title {
        font-size: 20px;
    }

    .product-name {
        font-size: 13px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .company-table th {
        width: 120px;
        font-size: 13px;
    }

    .company-table td {
        font-size: 13px;
    }

    .contact-title {
        font-size: 16px;
    }

    .contact-method {
        padding: 28px 20px;
    }

    .contact-method-title {
        font-size: 14px;
    }

    .contact-method-detail {
        font-size: 15px;
    }

    .contact-method-note {
        font-size: 11px;
    }
}

/* ========================================
   Legal Pages (特定商取引法等)
   ======================================== */
.page-header {
    background: var(--color-bg-gray);
    padding: 80px 0 60px;
    text-align: center;
}

.page-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 16px;
    color: var(--color-black);
}

.page-subtitle {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    color: var(--color-gray);
    text-transform: uppercase;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}

.legal-table tr {
    border-bottom: 1px solid var(--color-border);
}

.legal-table th,
.legal-table td {
    padding: 20px 16px;
    text-align: left;
}

.legal-table th {
    width: 200px;
    font-weight: 600;
    color: var(--color-black);
    background: var(--color-bg-gray);
}

.legal-table td {
    color: var(--color-gray);
    line-height: 1.8;
}

.legal-section {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-black);
}

.legal-item-title {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--color-black);
}

.legal-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-gray);
    margin-bottom: 16px;
}

.legal-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.legal-list li {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-gray);
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.legal-list li:before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--color-black);
}

.legal-contact {
    background: var(--color-bg-gray);
    padding: 32px;
    border-left: 3px solid var(--color-black);
}

.legal-contact p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

.legal-contact strong {
    color: var(--color-black);
    font-weight: 600;
}

.legal-link {
    color: var(--color-black);
    text-decoration: underline;
}

.legal-link:hover {
    color: var(--color-gray);
}

.legal-intro {
    margin-bottom: 60px;
    padding: 32px;
    background: var(--color-bg-gray);
    border-left: 3px solid var(--color-black);
}

.legal-intro .legal-text {
    margin-bottom: 0;
}

.legal-sublist {
    list-style: none;
    padding-left: 20px;
    margin-top: 12px;
}

.legal-sublist li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 8px;
}

.legal-sublist li:before {
    content: "- ";
    color: var(--color-black);
}

.legal-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--color-border);
    text-align: center;
}

.legal-footer .legal-text {
    color: var(--color-gray);
    font-size: 14px;
}

.back-to-top {
    text-align: center;
    margin-top: 60px;
}

/* Responsive for Legal Pages */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 28px;
    }

    .legal-table th {
        width: 120px;
        font-size: 13px;
        padding: 16px 12px;
    }

    .legal-table td {
        font-size: 14px;
        padding: 16px 12px;
    }

    .legal-section-title {
        font-size: 20px;
    }

    .legal-item-title {
        font-size: 16px;
    }

    .legal-text,
    .legal-list li {
        font-size: 14px;
    }

    .legal-contact {
        padding: 24px 20px;
    }
}