:root {
    --primary-color: #052c65;
    --secondary-color: #0c3d7c;
    /*--secondary-color:#439295;*/
    --accent-color: #00d4ff;
    --text-primary-color: #020d21;
    --text-color: #e6f1ff;
    --text-muted: #8892b0;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

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

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background-color: var(--white);
    color: var(--text-primary-color);
}

header.sticky {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* スクロール時、ナビゲーションの文字色を紺色にする（白背景で見えるようにするため） */
header nav ul li a {
    color: var(--text-primary-color);
}

/* ホバー時はアクセントカラーを維持 */
header.sticky nav ul li a:hover {
    color: var(--accent-color);
}

header .container {
    max-width: 100%;
    /* 1100pxの制限を解除 */
    padding: 0 40px;
    /* 左右に程よい余白を作る */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    text-decoration: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1;
    background-color: #ffffff;
    padding: 0px 0px;
    border-radius: 4px;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.2);*/

}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-en {
    display: flex;
    flex-direction: row;
    /* This was column, causing line breaks */
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    /* border-right: 1px solid var(--primary-color); */
    padding-right: 0px;
    color: var(--text-primary-color);
    text-decoration: none;
}

.logo-en .pref {
    color: #337e8b;
}

.logo-en span {
    color: var(--text-primary-color);
}

.logo-jp {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary-color);
}

.logo-jp span {
    display: block;
}

.logo-jp .line1 {
    font-size: 0.8em;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/**/
.nav-link {
    color: #000;
}

/* Hero Section */
.hero {
    height: 100vh;
    /*
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(2, 12, 27, 0.9) 100%),
        url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
        */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('../images/products0.png') no-repeat center center;
    /*url('../images/catch_top1.png') no-repeat center center;*/
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 10;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
}

.hero p {
    font-size: 1.2rem;
    /*color: var(--text-muted);*/
    color: var(--accent-color);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    font-weight: 600;
}

.btn:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

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

.bg-dark {
    background: linear-gradient(135deg, var(--primary-color), #385d5b);
}

.bg-light {
    background-color: var(--secondary-color);
}

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

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.underline {
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 0 auto;
}

/**/
#services {}

/* About */
.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-image {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background: var(--secondary-color);
    border-radius: 10px;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-color);
    z-index: -1;
    border-radius: 10px;
}

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

.service-card {
    background: var(--primary-color);
    background: linear-gradient(135deg, #161d2b, #306474);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
}

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

.product-card {
    /*background: var(--primary-color);
    
    */
    background: linear-gradient(135deg, var(--primary-color), #161d2b);

    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
}

.product-card .product-img {
    max-width: 100%;
    height: 180px;
    /* 画像の高さを固定 */
    object-fit: contain;
    /* アスペクト比を維持しつつ、要素に収まるように */
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: var(--white);
    /* 画像の背景色を追加 */
    padding: 10px;
}

.product-card h3 {
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.product-card p {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 0.95rem;
    min-height: 70px;
    /* 記述の長さに合わせて高さを調整 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Contact */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

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

input,
textarea {
    width: 100%;
    padding: 15px;
    background: var(--white);
    /* 背景を白に変更 */
    border: 1px solid #ccc;
    /* 白背景で見えるように薄いグレーの枠線を追加 */
    border-radius: 4px;
    color: var(--primary-color);
    /* 文字色を濃い紺色に変更（入力した文字が見えるように） */
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

/* 入力欄にフォーカスした時 */
input:focus,
textarea:focus {
    border-color: var(--accent-color);
    /* フォーカス時にアクセントカラーの青にする */
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
    /* ほんのり光らせる */
}

/* プレースホルダー（入力前の薄い文字）の色調整 */
input::placeholder,
textarea::placeholder {
    color: #999;
}

/* Footer */
footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    background-color: var(--white);
    color: var(--text-primary-color);
    /*color: var(--text-muted);*/
    font-size: 0.9rem;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 1.5s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.5rem;
    }

    .about-flex {
        flex-direction: column;
    }

    nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* SMMS Hero Section */
.hero-smms {
    background: linear-gradient(rgba(0, 254, 254, 0.2), rgba(0, 0, 0, 0.6)),
        url('../images/smms/smms_hero4.png') no-repeat;

    background-size: cover;
    /* ここで上端に固定 */
    background-position: top;
    min-height: 400px;
    padding-top: 100px;
    /* Adjust based on header height */
}

#smms-about {
    background:
        linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)),
        /* 50%の白 */
        url('../images/smms/smms_logo1.png') no-repeat center center;
    background-size: cover;
}

#smms-about ul li {
    color: var(--primary-color) !important;
}

#smms-cloud {}

/* Specific styling for SMMS cards */
#smms-features .card {
    border: 1px solid var(--secondary-color);
    background-color: var(--secondary-color);
    /* background-color: var(--primary-color) was too dark for dark-on-dark if card defaults were different, but here we ensure internal consistency */
    color: var(--text-color);
}

#smms-features .card-title {
    color: var(--accent-color);
}

#smms-features .card-body i {
    color: var(--accent-color);
}

/* Pricing Table adjustments */
#smms-pricing .card-header {
    background-color: var(--secondary-color);
    color: var(--white);
}

#smms-pricing .card-title {
    color: var(--accent-color);
}

#smms-pricing .card-body ul li {
    color: #333333 !important;
}

/* SMES Hero Section */
.hero-smes {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/smes/smes_hero2.jpg') no-repeat center center;
    /* Placeholder image */
    background-size: cover;
    min-height: 400px;
    padding-top: 100px;
    /* Adjust based on header height */
}

/* Recruit Hero Section */
.hero-recruit {
    background: linear-gradient(rgba(0, 0, 10, 0.3), rgba(0, 5, 20, 0.3)), url('../images/recruit_hero.jpg') no-repeat center center;
    background-size: cover;
    min-height: 500px;
    padding-top: 100px;
    /* Adjust based on header height */
}

.bg-light,
.bg-light p,
.bg-light li {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

#smms-about li,
#smms-pricing p {
    color: var(--white) !important;
}

.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
    color: var(--primary-color) !important;
}

.service-card h3,
.service-card p {
    color: var(--white) !important;
}

#smms-features .card .card-body h5,
#smms-features .card .card-body p {
    color: var(--white) !important;
}

/* Recruit Page Specific Styles */
.hero-recruit {
    background: linear-gradient(rgba(0, 0, 10, 0.7), rgba(0, 5, 20, 0.7)), url('../images/recruit_hero.png') no-repeat center center;
    background-size: cover;
    min-height: 500px;
    padding-top: 100px;
    /* Adjust based on header height */
}

#ideal-candidate .col-md-4 {
    padding: 2rem;
}

/* Custom table styles */
.table {
    --bs-table-bg: var(--white);
    --bs-table-color: var(--primary-color);
    --bs-table-border-color: #dee2e6;
    --bs-table-striped-bg: #f2f2f2;
    --bs-table-hover-bg: #ececec;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

.table th,
.table td {
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
}

/* 最後の行のセルの下枠線を消す（テーブルの外枠と重なるため） */
.table tr:last-child th,
.table tr:last-child td {
    border-bottom: none;
}

/* 最後の列のセルの右枠線を消す（テーブルの外枠と重なるため） */
.table th:last-child,
.table td:last-child {
    border-right: none;
}

.table th {
    background-color: var(--white);
    color: var(--primary-color);
}

.hero-cpd {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/catch4.jpg') no-repeat center center;
    background-size: cover;
    min-height: 400px;
    padding-top: 100px;
    /* Adjust based on header height */
}