@charset "UTF-8";
/*
Theme Name: My Portfolio
Author: Engineer
Description: Portfolio Theme
Version: 1.0.1
*/

/* ==========================================
   CSS Variables (カラー管理)
   ========================================== */
:root {
    --primary-color: #2c3e50;
    --accent-color: #16a085;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --text-sub: #7f8c8d;
    --border-color: #e2e8f0;
}

/* ==========================================
   Base Styles
   ========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.7;
}

ul {
    list-style: none;
}

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

/* ==========================================
   Layout & Components (BEM)
   ========================================== */
.section {
    padding: 80px 20px;
}

.section:nth-of-type(even) {
    background-color: var(--bg-light);
}

.section__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section__title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.section__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    /* ★中央に配置するための仕掛け */
    transform: translateX(-50%);
    /* ★中央に配置するための仕掛け */
    width: 40px;
    /* 線の長さを少しスマートに */
    height: 4px;
    background-color: var(--accent-color);
}

/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.header__list {
    display: flex;
    gap: 24px;
}

.header__list a:hover {
    color: var(--accent-color);
}

/* MV */
.mv {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: #ffffff;
    padding: 100px 20px;
    text-align: center;
}

.mv__inner {
    max-width: 1000px;
    margin: 0 auto;
}

.mv__sub {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.mv__title {
    font-size: 2.2rem;
    line-height: 1.5;
    font-weight: 700;
}

/* About */
.about__text {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* Skills */
.skills__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skills__list li {
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Policy */
.policy__dl {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.policy__dt {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.policy__dd {
    padding-left: 20px;
}

/* Works */
.works {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.works__item {
    background: #ffffff;
    padding: 25px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.works__name {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Contact */
.contact {
    text-align: center;
}

.contact__text {
    margin-bottom: 15px;
}

.contact__btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.contact__btn:hover {
    background-color: #117a65;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--text-sub);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* ==========================================
   Responsive (スマホ対応)
   ========================================== */
@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        gap: 15px;
    }

    .mv__title {
        font-size: 1.6rem;
    }

    .section {
        padding: 50px 20px;
    }

    .policy__dd {
        padding-left: 0;
    }
}

/* Worksの画像エリアのスタイル */
.works__img {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    /* 画像の下にできる謎の隙間を消す */
}

.works__img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* 横幅いっぱいに綺麗に収める */
}

/* ==========================================
   Animation Styles (フェードイン)
   ========================================== */
.js-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-fade.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Contact Form (BEM設計)
   ========================================================================== */

/* ブロック全体の枠組み */
.p-contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: #fcfcfc; /* サイトに合わせた薄い背景色 */
    border-radius: 8px;
}

/* 各入力項目の縦の余白 */
.p-contact-form__item {
    margin-bottom: 24px;
}

/* ラベル（項目名） */
.p-contact-form__label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333333; /* サイトのメインの文字色 */
    font-size: 14px;
}

/* 「必須」のバッジ */
.p-contact-form__required {
    background-color: #ff4d4d; /* アクセントカラー */
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

/* 1行入力欄（お名前・メール等）と複数行入力欄（本文）の共通設定 */
.p-contact-form__input,
.p-contact-form__textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #ffffff;
    font-size: 16px;
    color: #333333;
    transition: border-color 0.3s, box-shadow 0.3s;
}

    /* 入力欄にフォーカス（クリック）したときの動き（保守性と使いやすさの向上） */
    .p-contact-form__input:focus,
    .p-contact-form__textarea:focus {
        outline: none;
        border-color: #0073aa; /* サイトのテーマカラー */
        box-shadow: 0 0 5px rgba(0, 115, 170, 0.3);
    }

/* 本文入力欄の高さ */
.p-contact-form__textarea {
    height: 160px;
    resize: vertical; /* ユーザーが縦方向にだけサイズを伸ばせるようにする */
}

/* 送信ボタンのラッパー */
.p-contact-form__submit-wrap {
    text-align: center;
    margin-top: 32px;
}

/* 送信ボタン（サイト内の他のボタンとデザインを統一） */
.p-contact-form__submit {
    display: inline-block;
    min-width: 200px;
    padding: 16px 32px;
    background-color: #333333; /* ボタンの背景色 */
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 30px; /* 角丸ボタン */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

    /* 送信ボタンのホバーエフェクト */
    .p-contact-form__submit:hover {
        background-color: #555555;
        transform: translateY(-2px); /* 少し浮き上がらせるプロの演出 */
    }

CSS
/* エラーメッセージのデザインも統一 */
.wpcf7-not-valid-tip {
    color: #ff4d4d !important;
    font-size: 12px !important;
    margin-top: 4px;
    font-weight: bold;
}

.c-button {
    /* ディスプレイ・配置 */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* サイズ・余白（ボタン自体の外余白 margin は持たせない） */
    min-width: 240px; /* 横幅の最小値を保証 */
    max-width: 100%; /* スマホ画面でハミ出さないように */
    padding: 16px 24px; /* 内側の余白（上下、左右） */
    gap: 30px; /* ★縦に並んだエリア同士の間に、30pxの余白を作ります */
    /* 背景・枠線・角丸 */
    background-color: #007bbb; /* ★テーマカラー（例：鮮やかな青） */
    border: 1px solid transparent;
    border-radius: 4px; /* 清潔感のある緩やかな角丸 */
    /* 文字装飾 */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700; /* 文字を太字にして視認性を確保 */
    line-height: 1.5;
    text-decoration: none; /* aタグのアンダーラインを消す */
    /* その他・アクセシビリティ */
    cursor: pointer;
    box-sizing: border-box;
    /* アニメーション（ホバー時の変化を滑らかに） */
    transition: background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* ホバー時のスタイル */
@media (hover: hover) {
    .c-button:hover {
        background-color: #ffffff; /* 背景を白に反転 */
        border-color: #007bbb; /* 枠線にテーマカラーを付ける */
        color: #007bbb; /* 文字色をテーマカラーに */
        opacity: 0.9;
    }
}

/* フォームの送信ボタン（input[type="submit"]やbutton）のデフォルト挙動をリセット */
input.c-button,
button.c-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}