/* ======================================
   阿部寛のHP風スタイルシート
   - 背景はグレー系
   - テーブルレイアウト風
   - MSゴシック / MS Pゴシック
   - リンクは青・紫
   - とにかく素朴
   ====================================== */

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

body {
  color: #000000;
  font-family: "ＭＳ Ｐゴシック", "MS PGothic", "ヒラギノ角ゴ Pro", Osaka, sans-serif;
  font-size: 14px;
  line-height: 1.6;

}


/* ページ全体を中央寄せ・幅制限 */
.container {
  width: 780px;
  margin: 0 auto;
  border: 2px solid #000080;
  background-color: #fff;
}

/* ヘッダー */
.site-header {
  background-color: #000080;
  color: #ffffff;
  text-align: center;
  padding: 8px;
  border-bottom: 3px solid #ffcc00;
}

.site-header h1 {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
}

.site-header .subtitle {
  font-size: 11px;
  color: #ffcc00;
  margin-top: 2px;
}

/* ナビゲーション */
nav {
  background-color: #e0e0e0;
  border-bottom: 2px solid #808080;
  padding: 5px 0;
  text-align: center;
  font-size: small;
}

nav a {
  color: #0000ff;
  text-decoration: underline;
  margin: 0 10px;
  font-size: 14px;
  font-weight: bold;
}

nav a:visited {
  color: #800080;
}

nav a:hover {
  color: #ff0000;
  background-color: #ffff00;
}

/* メインコンテンツ */
.main-content {
  padding: 15px;
  min-height: 400px;
  background-color: #fff;
}

.main-content h2 {
  font-size: 18px;
  color: #000080;
  border-bottom: 2px solid #000080;
  padding-bottom: 3px;
  margin: 15px 0 10px 0;
}

.main-content h3 {
  font-size: 15px;
  color: #800000;
  margin: 10px 0 5px 0;
}

.main-content p {
  margin: 8px 0;
  background-color: white;
}

/* リンク */
a {
  color: #0000ff;
  text-decoration: underline;
}

a:visited {
  color: #800080;
}

a:hover {
  color: #ff0000;
}

/* 水平線 */
hr {
  border: none;
  border-top: 2px solid #000080;
  margin: 15px 0;
}

/* 点滅テキスト（今は@keyframesで再現） */
.blink {
  animation: blink-animation 1s steps(2, start) infinite;
  color: #ff0000;
  font-weight: bold;
}

.blink2 {
  animation: blink-animation 1s steps(2, start) infinite;
  color: #fbff00;
  font-weight: bold;
}

@keyframes blink-animation {
  to { visibility: hidden; }
}

/* マーキー風 */
.marquee-wrapper {
  background-color: #ffff00;
  color: #ff0000;
  font-weight: bold;
  padding: 3px 10px;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid #ff0000;
  margin: 10px 0;
}

.marquee-text {
  display: inline-block;
  animation: marquee-scroll 12s linear infinite;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* テーブル（実績ページなど） */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
}

table th {
  background-color: #000080;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 5px 8px;
  font-size: 13px;
  text-align: center;
}

table td {
  border: 1px solid #808080;
  padding: 5px 8px;
  font-size: 13px;
  background-color: #f0f0f0;
}

table tr:nth-child(even) td {
  background-color: #e8e8e8;
}

/* カウンター */
.counter {
  text-align: center;
  font-size: 11px;
  color: #808080;
  margin: 10px 0;
  padding: 5px;
  border-top: 1px dashed #808080;
}

.counter .count-num {
  font-family: "Courier New", monospace;
  font-size: 20px;
  color: #008000;
  font-weight: bold;
  background-color: #000000;
  padding: 2px 8px;
  letter-spacing: 3px;
}

/* フッター */
.site-footer {
  background-color: #000080;
  color: #ffffff;
  text-align: center;
  padding: 8px;
  font-size: 11px;
  border-top: 3px solid #ffcc00;
}

.site-footer a {
  color: #ffcc00;
}

/* 画像スタイル */
.profile-img {
  border: 3px solid #000080;
  margin: 5px;
}

/* GIF風装飾（工事中アイコンなど） */
.under-construction {
  text-align: center;
  color: #ff0000;
  font-weight: bold;
  font-size: 16px;
  margin: 15px 0;
}

/* キラキラ装飾テキスト */
.sparkle::before,
.sparkle::after {
  content: "★";
  color: #ffcc00;
}

/* 「NEW!」バッジ */
.new-badge {
  color: #ff0000;
  font-size: 10px;
  font-weight: bold;
  animation: blink-animation 1s steps(2, start) infinite;
  vertical-align: super;
}

/* ゲストブック風 */
.guestbook-link {
  display: inline-block;
  background-color: #008000;
  color: #ffffff !important;
  padding: 3px 10px;
  border: 2px outset #00cc00;
  text-decoration: none !important;
  font-weight: bold;
  font-size: 12px;
}

.guestbook-link:hover {
  background-color: #00aa00;
  border-style: inset;
}

/* ローディング */
#loading {
  text-align: center;
  padding: 30px;
  color: #808080;
  font-size: 13px;
}

/* 実績タイトルセル（長文対応） */
.works-title-cell {
  max-width: 280px;
  word-break: break-all;
  line-height: 1.4;
}

/* YouTubeサムネイル */
.yt-thumb {
  width: 120px;
  height: 68px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  border: 2px solid #000080;
}

.yt-thumb:hover {
  border-color: #ff0000;
  opacity: 0.85;
}

/* YouTubeモーダル */
#yt-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.yt-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.yt-modal-box {
  position: relative;
  background: #000080;
  border: 3px outset #c0c0c0;
  padding: 8px;
  width: 640px;
  max-width: 95vw;
  z-index: 1;
}

.yt-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 6px;
}

#yt-modal-title {
  flex: 1;
  line-height: 1.4;
  word-break: break-all;
}

.yt-modal-close {
  background: #c0c0c0;
  border: 2px outset #ffffff;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 8px;
  font-family: "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  color: #000000;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.yt-modal-close:hover {
  background: #a0a0a0;
  border-style: inset;
}

.yt-iframe-wrapper {
  position: relative;
  padding-top: 56.25%;
  background: #000000;
}

.yt-iframe-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* アコーディオン（プロフィールページ） */
details {
  border: 1px solid #000080;
  margin: 6px 0;
}

details summary {
  background-color: #000080;
  color: #ffffff;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  list-style: none;
  user-select: none;
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::before {
  content: "▶ ";
  font-size: 11px;
}

details[open] summary::before {
  content: "▼ ";
}

details summary:hover {
  background-color: #0000cc;
}

details .content {
  padding: 10px;
  background-color: #ffffff;
}

/* サービス一覧 */
.service-item {
  border: 1px dashed #808080;
  padding: 10px;
  margin: 10px 0;
  background-color: #fffff0;
}

/* 問い合わせフォーム埋め込み */
.form-embed {
  border: 2px inset #808080;
  margin: 10px 0;
}

body{
  background-image:url("../{css,js,images}/1264131.jpg");
  background-repeat: repeat;
  background-size: 100px;
  background-color: rgba(255, 255, 255, 0.7);
  background-blend-mode: hue;
}

.star {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #fff;
            border-radius: 50%;
            pointer-events: none; /* マウスイベントを邪魔しない */
            box-shadow: 0 0 10px #fff, 0 0 20px #ff00ff; /* 光り輝くエフェクト */
            animation: fall 1s linear forwards;
            z-index: 10;
        }

        /* 落ちて消えていくアニメーション */
        @keyframes fall {
            0% {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
            100% {
                transform: translateY(100px) scale(0); /* 下に落ちながら小さくなる */
                opacity: 0;
            }
        }