/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
:root {
    --color-main: #0F2350;
    /* Deep Navy: 信頼、知性、物流 */
    --color-accent: #C5A059;
    /* Champagne Gold: 高級感、アート、投資 */
    --color-text: #333333;
    /* Dark Gray: 可読性 */
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-gray: #F4F6F8;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
    --spacing-section: 100px;
    --spacing-mobile: 60px;
}

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

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease, color 0.3s ease;
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    object-fit: cover;
}

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--color-main);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 20px auto 0;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 10px;
    font-family: var(--font-base);
    font-weight: 500;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    :root {
        --spacing-section: 60px;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header__logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo span {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-family: var(--font-base);
    font-weight: 400;
    margin-top: 4px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header__nav-list {
    display: flex;
    gap: 30px;
}

.header__nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-main);
    position: relative;
}

.header__nav-item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.header__nav-item a:hover::after {
    width: 100%;
}

.header__tel {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.header__tel-label {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.header__tel-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-main);
    font-family: var(--font-base);
}

/* Language Switcher */
.header__lang {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--color-main);
    color: var(--color-main);
    padding: 2px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-base);
}

.lang-btn:hover,
.lang-btn.active {
    background-color: var(--color-main);
    color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-main);
    position: absolute;
    transition: 0.3s;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 11px;
}

.mobile-menu-btn span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-btn.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    bottom: 11px;
    transform: rotate(-45deg);
}

@media (max-width: 900px) {
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Full width on mobile for better UX */
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .header__nav.active {
        right: 0;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .header__tel {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: 0;
}

/* Background Slider Animation */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideShow 24s infinite;
}

.hero__bg-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 35, 80, 0.4), rgba(15, 35, 80, 0.7));
}

.hero__bg-img:nth-child(1) {
    background-image: url('../assets/images/hero_logistics.jpg');
    /* Logistics/Ship */
    animation-delay: 0s;
}

.hero__bg-img:nth-child(2) {
    background-image: url('../assets/images/hero_medical.jpg');
    /* Medical/Clean */
    animation-delay: 8s;
}

.hero__bg-img:nth-child(3) {
    background-image: url('../assets/images/hero_art.jpg');
    /* Art/Museum */
    animation-delay: 16s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    5% {
        opacity: 1;
    }

    33% {
        opacity: 1;
    }

    38% {
        opacity: 0;
        transform: scale(1);
    }

    100% {
        opacity: 0;
    }
}

.hero__content {
    text-align: center;
    padding: 20px;
    z-index: 1;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
    letter-spacing: 0.1em;
}

.hero__subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .hero__title {
        font-size: 2rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */
.philosophy {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg);
    position: relative;
}

.philosophy__inner {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.philosophy__text {
    flex: 1;
}

.philosophy__heading {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

.philosophy__heading span {
    color: var(--color-accent);
}

.philosophy__desc {
    margin-bottom: 20px;
    color: var(--color-text);
}

.philosophy__list {
    margin-top: 30px;
    padding-left: 0;
}

.philosophy__list li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    font-weight: 500;
}

.philosophy__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
}

.philosophy__image {
    flex: 1;
    position: relative;
}

.philosophy__image img {
    box-shadow: 20px 20px 0 var(--color-bg-gray), 0 0 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 900px) {
    .philosophy__inner {
        flex-direction: column;
    }

    .philosophy__image {
        width: 100%;
    }
}

/* ==========================================================================
   Business Section
   ========================================================================== */
.business {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg-gray);
}

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

.business__card {
    background: #fff;
    border-top: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

/* 7つ目の要素（国際貿易）を横長にするレイアウト調整 */
.business__card:last-child {
    grid-column: span 3;
    flex-direction: row;
}

.business__card:last-child .business__img {
    width: 50%;
    height: auto;
}

.business__card:last-child .business__content {
    width: 50%;
    padding: 40px;
}

.business__img {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.business__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.business__card:hover .business__img img {
    transform: scale(1.05);
}

.business__content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.business__title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--color-main);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.business__icon {
    color: var(--color-accent);
    font-size: 1.2em;
}

.business__desc {
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
}

.business__detail-list {
    margin-top: auto;
    font-size: 0.9rem;
    background-color: #fafafa;
    padding: 15px;
    border-radius: 4px;
}

.business__detail-list li {
    margin-bottom: 6px;
    padding-left: 15px;
    position: relative;
    color: var(--color-text);
}

.business__detail-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.business__detail-list li:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .business__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business__card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .business__grid {
        grid-template-columns: 1fr;
    }

    .business__card:last-child {
        grid-column: auto;
        flex-direction: column;
    }

    .business__card:last-child .business__img,
    .business__card:last-child .business__content {
        width: 100%;
    }
}

/* ==========================================================================
   Company Section
   ========================================================================== */
.company {
    padding: var(--spacing-section) 0;
    background-color: var(--color-bg);
}

.company__table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company__table th,
.company__table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.company__table th {
    width: 30%;
    color: var(--color-main);
    font-weight: 700;
    background-color: #fafafa;
}

@media (max-width: 600px) {

    .company__table th,
    .company__table td {
        display: block;
        width: 100%;
    }

    .company__table th {
        padding-bottom: 5px;
        border-bottom: none;
    }

    .company__table td {
        padding-top: 5px;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 80px 0;
    background-color: var(--color-main);
    color: #fff;
    text-align: center;
}

.contact__inner {
    max-width: 800px;
    margin: 0 auto;
}

.contact__title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact__text {
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact__phone {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.contact__phone-label {
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
    color: var(--color-accent);
}

.contact__phone-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-base);
    letter-spacing: 0.05em;
}

.contact__sub-number {
    font-size: 1rem;
    margin-top: 5px;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: #fff;
    padding: 15px 50px;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #a38240;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #081226;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer__copy {
    font-size: 0.8rem;
}

/* ==========================================================================
   Subpage Styles
   ========================================================================== */
.subpage-hero {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    margin-top: 80px;
    /* Header height */
}

.subpage-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 35, 80, 0.6);
}

.subpage-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.subpage-hero__title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 15px;
}

.subpage-hero__subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.breadcrumb {
    background-color: #f9f9f9;
    padding: 15px 0;
    font-size: 0.9rem;
}

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

.breadcrumb__list li::after {
    content: '>';
    margin-left: 10px;
}

.breadcrumb__list li:last-child::after {
    content: none;
}

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

.content-section {
    padding: var(--spacing-section) 0;
}

.content-section:nth-child(even) {
    background-color: var(--color-bg-gray);
}

.content-h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-main);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--color-accent);
    padding-left: 20px;
}

.content-h3 {
    font-size: 1.5rem;
    color: var(--color-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-text {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.service-card h4 {
    font-size: 1.2rem;
    color: var(--color-main);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.faq-list {
    margin-top: 30px;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 20px;
    background: #fdfdfd;
    font-weight: 700;
    color: var(--color-main);
    cursor: pointer;
    position: relative;
    padding-right: 50px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-accent);
}

.faq-answer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: none;
    /* JS toggle needed or simple hover? JS best */
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.subpage-cta {
    background-color: var(--color-main);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.subpage-cta h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.subpage-cta p {
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Contact Form */
.contact-form {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #003366;
    outline: none;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px 30px;
    background-color: #003366;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.form-btn:hover {
    background-color: #002244;
    transform: translateY(-2px);
}

/* Map */
.contact-map {
    width: 100%;
    height: 400px;
    margin-top: 60px;
    border: 0;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }
}
/* ==========================================================================
   Gallery Styles (Karate Page)
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

.gallery-item p {
    font-size: 0.9rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: 5px;
    font-weight: 500;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: auto;
        aspect-ratio: 4/3;
    }
}

/* Larger Gallery Item for Schedule */
.gallery-item--large {
    grid-column: span 2;
}

.gallery-item--large img {
    height: auto;
    max-height: 600px;
    object-fit: contain;
    width: 100%;
}

@media (max-width: 600px) {
    .gallery-item--large {
        grid-column: auto; /* Reset on mobile */
    }
}
