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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #1A1A1D; /* ベースカラー（ダーク） */
    color: #F4F4F9; /* ベースカラー（ライト） */
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

h1, h2, h3 {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-weight: 700;
}

/* --- Utility Classes --- */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #1A1A1D;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #6A2E41; /* メインカラー */
    margin: 10px auto 0;
}

/* --- Header --- */
.header {
    background-color: rgba(26, 26, 29, 0.9);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo h1 {
    font-size: 1.8rem;
    color: #F4F4F9;
}

/* ロゴ画像サイズ */
.logo-image {
    width: 200px;
    height: auto;
    display: block;
}

.header-nav ul {
    display: flex;
    align-items: center;
}

.header-nav li {
    margin-left: 30px;
}

.header-nav a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: #F4F4F9;
    transition: color 0.3s ease;
}

.header-nav a:hover {
    color: #6A2E41;
}

.btn-contact {
    background-color: #3A86FF; /* アクセントカラー */
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-contact:hover {
    background-color: #D4AF37; /* アクセントカラー(ゴールド) on hover */
}


/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #1A1A1D;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: 200px; /* 仮 */
    margin-bottom: 30px;
}

.hero-catchphrase {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero-sub-catchphrase {
    font-size: 1.2rem;
    color: #F4F4F9;
    font-family: 'Noto Sans JP', sans-serif;
}

/* --- Services Section --- */
.services {
    background-color: #F4F4F9; /* ベースカラー（ライト） */
}

.services .section-title {
    color: #1A1A1D;
}

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

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 30px 30px 0 0;
    border-color: #6A2E41 transparent transparent transparent; /* メインカラー */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 3rem;
    color: #6A2E41; /* メインカラー */
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.5rem;
    color: #1A1A1D;
    margin-bottom: 15px;
    margin-top: 20px;
}

.card-text {
    font-size: 1rem;
    color: #555;
}

/* --- Strength Section --- */
.strength {
    background-color: #1A1A1D; /* ベースカラー（ダーク） */
    position: relative;
    overflow: hidden;
}

.strength .section-title {
    color: #F4F4F9;
}

.strength .container {
    position: relative;
    z-index: 2;
}

/* 菱形パターンの背景を疑似要素で作成 */
.strength::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(45deg, #2a2a2d 25%, transparent 25%),
        linear-gradient(-45deg, #2a2a2d 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #2a2a2d 75%),
        linear-gradient(-45deg, transparent 75%, #2a2a2d 75%);
    background-size: 60px 60px;
    opacity: 0.05;
    z-index: 1;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.strength-icon {
    font-size: 3rem;
    color: #3A86FF; /* アクセントカラー */
    margin-bottom: 20px;
}

.strength-title {
    font-size: 1.5rem;
    color: #F4F4F9;
    margin-bottom: 15px;
}

.strength-text {
    font-size: 1rem;
    color: #ccc;
}

/* --- Works Section --- */
.works {
    background-color: #F4F4F9; /* ベースカラー（ライト） */
}

.works .section-title {
    color: #1A1A1D;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    overflow: hidden;
    display: block;
    border-radius: 8px;
}

.work-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.work-item:hover .work-image {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(106, 46, 65, 0.85); /* メインカラーの半透明 */
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 20px;
}

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

.work-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.work-category {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: transform 0.4s 0.1s ease; /* 少し遅れて表示 */
}

.work-item:hover .work-title,
.work-item:hover .work-category {
    transform: translateY(0);
}

/* --- About Us Section --- */
.about {
    background-color: #1A1A1D;
    background-image: linear-gradient(rgba(26, 26, 29, 0.95), rgba(26, 26, 29, 0.95)), url('https://placehold.co/1920x1080/cccccc/cccccc?text=+');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* パララックス効果 */
    color: #F4F4F9;
}

.about .section-title {
    color: #F4F4F9;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.5rem;
    color: #3A86FF; /* アクセントカラー */
    margin-top: 20px;
    margin-bottom: 10px;
}
.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #ccc;
    line-height: 1.8;
}

.about-ceo {
    text-align: center;
}

.ceo-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3A86FF;
    margin-bottom: 20px;
}

.ceo-message {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #F4F4F9;
}

.ceo-message strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* --- Contact Section --- */
.contact {
    background-color: #F4F4F9;
}

.contact .section-title {
    color: #1A1A1D;
}

.contact-lead {
    text-align: center;
    max-width: 600px;
    margin: -30px auto 40px;
    color: #555;
    font-size: 1.1rem;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1A1A1D;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3A86FF;
    box-shadow: 0 0 5px rgba(58, 134, 255, 0.5);
}

.form-buttons {
    text-align: center;
    margin-top: 30px;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    color: #fff;
}

.btn-primary {
    background-color: #3A86FF; /* アクセントカラー */
}

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

.btn-secondary {
    background-color: #6A2E41; /* メインカラー */
}

.btn-secondary:hover {
    background-color: #8b3a55;
    transform: translateY(-2px);
}


/* --- Footer --- */
.footer {
    background-color: #1A1A1D;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid #333;
}

/* --- Animations --- */
.will-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}