/*
Theme Name: My Portfolio
Author: cf230495
Description: Security Specialist Portfolio Theme
Version: 1.1
*/

body {
    margin: 0; padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", sans-serif;
    background-color: #f8fafc; color: #1e293b; line-height: 1.6;
}

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

/* Header */
header { background: #0f172a; color: #fff; padding: 100px 0; text-align: center; }
header h1 { margin: 0; font-size: 2.5rem; letter-spacing: 2px; }
header p { opacity: 0.8; margin-top: 10px; }

/* Section Card */
.section-title { text-align: center; margin: 50px 0 30px; font-size: 1.8rem; }
.card {
    background: #fff; border-radius: 12px; padding: 30px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); margin-bottom: 20px;
}

/* Work Link */
.work-link {
    display: inline-block; background: #3b82f6; color: #fff;
    padding: 10px 25px; border-radius: 5px; text-decoration: none;
    font-weight: bold; transition: background 0.3s;
}
.work-link:hover { background: #2563eb; }

footer { text-align: center; padding: 40px 0; color: #64748b; font-size: 0.9rem; }

/* Works Grid Layout */
.works-grid {
    display: grid;
    /* 画面幅に合わせて自動で列数を調整（最小300px） */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* カード同士の間隔 */
    margin-top: 30px;
}

/* カード内の画像を親要素の幅に合わせる */
.works-grid .card img {
    width: 100%;
    height: 200px;
    object-fit: cover; /* 画像の比率を保ちつつ枠を埋める */
    border-radius: 8px;
    margin-bottom: 15px;
}

/* カードのホバーエフェクト（少し浮き上がる演出） */
.works-grid .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.works-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
/* Contact Form 7 Custom Style */
.wpcf7-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 8px;
    box-sizing: border-box;
}

.wpcf7-submit {
    background: #0f172a !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 40px !important;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    transition: 0.3s;
}

.wpcf7-submit:hover {
    background: #3b82f6 !important;
}

.wpcf7-list-item { display: block; margin-left: 0; }

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.skill-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-top: 4px solid #0f172a; /* セキュリティらしい重厚な色 */
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.skill-card h3 {
    margin: 0 0 15px 0;
    color: #0f172a;
}

.skill-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #64748b;
    font-size: 0.95rem;
}

.skill-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.skill-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

@media (max-width: 600px) {
    .hide-mobile {
        display: none !important;
    }
}
/* カテゴリータグのスタイル */
.cat-tag {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    background-color: #f1f5f9; /* 薄いグレー */
    color: #475569; /* 濃いグレー */
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* 特定のカテゴリー（例：官公庁）だけ色を変えたい場合 */
/* カテゴリー名が「官公庁サイト」の場合の例 */
.cat-tag:contains("官公庁") {
    background-color: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
/* お問い合わせフォーム全体の調整 */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 15px;
    margin-top: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #f8fafc;
    font-size: 1rem;
    box-sizing: border-box; /* 枠線がはみ出さないように */
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 送信ボタンのカスタマイズ */
.contact-form-wrapper input[type="submit"] {
    width: 100%;
    background-color: #0f172a;
    color: #fff;
    padding: 16px;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-wrapper input[type="submit"]:hover {
    background-color: #3b82f6;
}

/* ラベル（項目名）の強調 */
.contact-form-wrapper label {
    font-weight: bold;
    color: #334155;
}