a.current {
    position: relative;
    text-decoration: none;
}
a.current::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
    top: 0.7em; /* ここを数値で調整可能。例: 1.4em, 24px, 20px など */
}
/*
Theme Name: Plotter Drawing Portfolio
Theme URI: https://example.com/
Author: 深地宏昌
Author URI: https://example.com/
Description: オリジナル静的HTMLから変換したWordPressテーマ
Version: 1.0
*/

/* =========================================
   1. 全ページ共通スタイル (Common)
   ========================================= */

/* 基本設定 */
body {
    font-family: "IBM Plex Mono", "dnp-shuei-gothic-gin-std", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    background-color: #ffffff;
    color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    font-style: normal;
}

/* フォントの太さリセット */
h1, h2, h3, p, a, span, li, dt, dd, label, input, textarea, button {
    font-weight: 400 !important; 
}

/* 選択範囲の色 */
::selection {
    background: #000;
    color: #fff;
}

/* 画像ピクセル化エフェクト用 (共通) */
.pixel-effect-container {
    position: relative;
    background-color: #f3f3f3; 
}
.pixel-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* --- ハンバーガーメニュー (共通) --- */
.hamburger-line {
    width: 28px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}
.hamburger-line + .hamburger-line {
    margin-top: 6px;
}
#hamburger-menu.open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#hamburger-menu.open .hamburger-line:nth-child(2) {
    transform: rotate(-45deg) translate(7px, -6px);
}
#hamburger-menu.active div:first-child {
    transform: translateY(4px) rotate(45deg);
}
#hamburger-menu.active div:last-child {
    transform: translateY(-4px) rotate(-45deg);
}
#hamburger-menu.active div {
    background-color: white; /* 必要に応じて調整 */
}
#mobile-menu {
    background-color: rgba(255, 255, 255, 1);
    color: black;
    z-index: 60; /* contactなど一番強い指定に統一 */
}

/* SPメニュー現在地 横線 */
.current {
    text-decoration: line-through;
}
header a {
    position: relative;
    z-index: 60;
    pointer-events: auto;
}


/* =========================================
   2. トップページ専用 (Front Page)
   ========================================= */

/* スクロールダウンのスロット風アニメーション */
@keyframes slotLoop {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0%); }
}
.animate-slot-loop {
    animation: slotLoop 1.5s linear infinite;
}

/* カルーセルアニメーション */
@keyframes carousel {
    0% { opacity: 1; }
    33.33% { opacity: 1; }
    33.34% { opacity: 0; }
    100% { opacity: 0; }
}
.carousel-slide {
    animation: carousel 3s infinite step-end;
}
.carousel-slide:nth-child(2) {
    animation: carousel 3s infinite step-end;
    animation-delay: -1s;
}
.carousel-slide:nth-child(3) {
    animation: carousel 3s infinite step-end;
    animation-delay: -2s;
}

/* 動画オーバーレイ */
.video-overlay {
    background: rgba(0, 0, 0, 0.4); 
}


/* =========================================
   3. Works / Showcase 詳細ページ (Detail)
   ========================================= */

.work-description p {
    line-height: 1.8;
    margin-bottom: 1.5em;
    text-align: justify;
}
.info-list {
    list-style-type: none;
    padding: 0;
}
.info-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.4em;
}


/* =========================================
   4. Aboutページ (Page-About)
   ========================================= */

/* プロフィール本文の行間設定 */
.profile-description p {
    line-height: 1.8 !important; 
}
@media (min-width: 768px) {
    .profile-description p {
        line-height: 29px !important; 
    }
}
/* 英文のみ行間を狭める設定 */
.profile-description p.text-en {
    line-height: 1.7 !important; 
}
@media (min-width: 768px) {
    .profile-description p.text-en {
        line-height: 25px !important; 
    }
}


/* =========================================
   5. Contactページ (Page-Contact)
   ========================================= */

input:focus, textarea:focus {
    outline: none;
    border-bottom-color: #000;
}
.input-text-shift {
    transform: translateY(-1px);
}


/* =========================================
   Contact Form 7 エラーメッセージのカスタマイズ
   ========================================= */

/* 1. 各項目の下にでる「必須項目に入力してください」の文字 */
.wpcf7-not-valid-tip {
    font-size: 12px;       /* 文字を小さく */
    color: #ff0000;        /* 色（赤。黒がいいなら #000000） */
    font-weight: normal;   /* 太字にしない */
    margin-top: 4px;       /* 入力欄との隙間 */
    display: block;
}

/* 2. エラー時の入力欄（下線）の色 */
/* input-text-shift クラスがついている要素が対象 */
.wpcf7-not-valid.input-text-shift {
    border-bottom-color: #ff0000 !important; /* 強制的に赤色にする */
    transition: border-color 0.3s;
}

/* 3. フォーム一番下に出る「入力内容に不備があります」の囲み枠 */
.wpcf7-response-output {
    border: none !important;       /* デフォルトの太い枠線を消す */
    background: transparent !important; /* 背景色を消す */
    padding: 0 !important;         /* 余白を消す */
    margin: 20px 0 0 0 !important; /* 上に少し余白 */
    font-size: 13px;               /* 文字サイズ */
    color: #ff0000;                /* 文字色 */
    text-align: left;            /* 中央寄せ（お好みで left でも） */
}

/* 成功メッセージ（もしJS制御が効かず表示されてしまった場合用） */
.wpcf7-mail-sent-ok {
    color: #000000; /* 黒色 */
}


/* =========================================
   Contact Form 7 送信ボタン周りの修正
   ========================================= */

/* 1. 勝手に出るローディングアイコン(スピナー)を消す */
/* デザイン重視なら非表示にするのが一番きれいです */
.wpcf7-spinner {
    display: none !important;
}

/* 2. 送信中にボタンが「半透明」になったり「グレー」になるのを防ぐ */
/* 押した瞬間もデザインを変えたくない場合 */
.wpcf7-submit[disabled] {
    opacity: 1 !important;
    cursor: not-allowed;
    background-color: #000; /* 送信中は黒背景にするなどお好みで */
    color: #fff;
}