/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Meiryo", sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: normal;
    color: #ggg;
    font-family: "Meiryo", sans-serif;
    background-clip: text;
}

.success_logo {
    display: flex;
    align-items: center;
    justify-content: center;  /* 横方向中央揃え */
    margin-top: 100px;         /* 画面上からの余白 */
    gap: 10px;
    font-size: 1.0rem;
    font-weight: normal;
    color: #ggg;
    font-family: "Meiryo", sans-serif;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* === HERO SECTION === */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    background-image: url('../img/bg_top.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-60px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === SECTION STYLES === */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-family: "Meiryo", sans-serif;
    font-size: 2.0rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
}

/* === ABOUT SECTION === */
.about {
    background: #f8f9fa;
    background-image: url('../img/bg_company_profile.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.about-text-hello {
    font-size: 1.1rem;
    font-family: "Meiryo", sans-serif;
    line-height: 1.8;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
}

.about-text {
    font-size: 1.1rem;
    font-family: "Meiryo", sans-serif;
    line-height: 1.8;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 8px;
}

.about-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-image2 {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* 会社概要テーブルのデザイン */
.about-text table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border: none !important;
}

.about-text table td {
    padding: 10px 10px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    vertical-align: top;
    line-height: 1.6;
    color: #fff;
}

.about-text table tr:last-child td {
    border-bottom: none;
}

.about-text table td:first-child {
    font-weight: 700;
    width: 120px;
    min-width: 10px;
    font-size: 0.8em;
    letter-spacing: 0.5px;
}

.about-text table td:last-child {
    font-size: 0.8em;
    font-weight: 500;
}

.about-text table td:last-child br {
    margin-bottom: 8px;
}

iframe {
    width: 500px;
    height: 300px;
    border: 0;
}

/* === MESSAGE SECTION === */
.message {
    background: #f8f9fa;
}

.message-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.message-text {
    font-family: "Meiryo", sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
}

.message-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.ceo-name {
    margin-top: 2rem;
    font-family: "Yu Mincho", sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #333;
}

/* === SERVICES SECTION === */
.services {
    background: #f8f9fa;
    background-image: url('../img/bg_service.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    font-family: "Meiryo", sans-serif;
    font-size: 1.0rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.service-card h3 {
    font-family: "Meiryo", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* === VALUES SECTION === */
.values {
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    background-image: url('../img/bg_rinen.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    font-family: "Meiryo", sans-serif;
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.value-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-family: "Meiryo", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* === PRODUCTS SECTION === */
.products {
    background: white;
    background-image: url('../img/bg_products.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-header {
    padding: 2rem;
    background: white;
    position: relative;
}

.product-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
}

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.detail-btn {
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.detail-btn.active {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.product-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: white;
}

.product-details.active {
    max-height: 1000px;
    padding: 2rem;
    border-top: 1px solid #eee;
}

.product-details h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.product-details p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 1.5rem;
    color: black;
}

.features-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.product-image {
    margin: 1.5rem 0 2rem 0;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.product-image img:hover {
    transform: scale(1.02);
}

/* === CONTACT SECTION === */
.contact {
    background: white;
    color: #333;
}

.contact-content {
    display: grid;
    gap: 1rem;
    align-items: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-content > div:first-child {
    text-align: left;
}

.contact-form {
    background: transparent;
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #667eea;
    border-radius: 8px;
    background: transparent;
    color: #333;
    font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.btn-wrapper {
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #164ba2 100%);
    color: white;
    padding: 0.7rem 3rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* === FOOTER === */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.8rem;
}

/* === RESPONSIVE DESIGN === */
/* 中間サイズ（iPad等）での左右均等な縮小対応 */
@media (max-width: 1024px) {
    iframe {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 5/3;
    }

    .about-text table td:first-child {
        width: 25%;
        min-width: 80px;
    }
}

/* タブレット・小画面対応 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        background-image: none;
        background: linear-gradient(to bottom, #3498db, #2980b9);
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.0rem;
        margin-bottom: 1rem;
        opacity: 0;
        animation: fadeInUp 1s ease forwards;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .value-card h3 {
        font-size: 1.3rem;
    }

    .about {
        background-attachment: scroll;
    }

    .services {
        background-attachment: scroll;
    }

    .products {
        background-attachment: scroll;
    }

    .values {
        background-attachment: scroll;
    }

    .about-content,
    .contact-content,
    .message-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .service-card,
    .product-card {
        max-width: 100%;
        width: 100%;
    }

    .logo {
        gap: 6px;
        font-size: 1.0rem;
    }

    .logo img {
        width: 90px !important;
    }

    .success_logo {
        gap: 6px;
        font-size: 1.0rem;
        margin-top: 50px;         /* 画面上からの余白 */

    }

    .success_logo img {
        width: 90px !important;
    }

    .about-text-hello {
        font-size: 0.9rem;
        padding: 1rem;
    }

    .message-text {
        font-size: 0.9rem;
    }

    .ceo-name {
        font-size: 1.0rem;
    }

    footer {
        font-size: 0.6rem;
    }

    .about-text table {
        border-radius: 8px;
        margin: 0 auto;
        width: 100%;
    }

    .about-text table td {
        padding: 10px 10px;
    }

    .about-text table td:first-child {
        width: 100px;
        min-width: 5px;
        font-size: 13px;
    }

    .about-text table td:last-child {
        font-size: 0.7em;
    }

    iframe {
        width: 90%;
        border: 0;
    }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    .about-text {
        padding: 1rem;
    }

    .about-text table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .about-text table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .about-text table td {
        display: table-cell;
        white-space: normal;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        opacity: 0;
        animation: fadeInUp 1s ease forwards;
    }

    iframe {
        width: 90%;
        border: 0;
    }
}