@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

:root {
    --primary: #0077b6;
    --primary-dark: #005f8d;
    --secondary: #ffb703;
    --accent: #8ecae6;
    --text-main: #333333;
    --text-muted: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-main);
    background-color: var(--white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

.logo span {
    color: var(--secondary);
}

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-contact {
    background: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
}

.nav-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 90px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 500;
    animation: fadeInUp 1s ease 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--secondary);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Strengths */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.strength-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-bottom: 5px solid transparent;
}

.strength-card:hover {
    transform: translateY(-10px);
    border-bottom: 5px solid var(--secondary);
}

.strength-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.strength-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* News */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.news-date {
    font-weight: 700;
    color: var(--primary);
    min-width: 120px;
}

.news-category {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-title {
    flex-grow: 1;
}

/* Achievements Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Achievements Text List (Top Page) */
.achievements-text-list {
    max-width: 900px;
    margin: 0 auto;
}

.achievement-text-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white);
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    border-left: 4px solid var(--secondary);
    transition: var(--transition);
}

.achievement-text-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.achievement-text-title {
    font-weight: 700;
    flex-grow: 1;
}

.achievement-text-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 20px;
    white-space: nowrap;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 119, 182, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Greeting */
.greeting-section {
    background: var(--bg-light);
}

.greeting-flex {
    display: flex;
    gap: 60px;
    align-items: center;
}

.greeting-content {
    flex: 1;
}

.greeting-text {
    font-size: 1.1rem;
    white-space: pre-line;
    margin-bottom: 30px;
}

.greeting-signature {
    text-align: right;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Company Profile */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 40px;
}

.profile-table th, .profile-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.profile-table th {
    width: 250px;
    text-align: left;
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 700;
}

.map-container {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
footer {
    background: #1a1a1a;
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--secondary);
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Contact Form */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: 70px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    nav ul {
        display: none;
    }
    .greeting-flex {
        flex-direction: column;
    }
    .profile-table th {
        width: 120px;
        padding: 15px 10px;
    }
    section {
        padding: 60px 0;
    }
}
