/*
Theme Name: 1pixel Theme
Theme URI: https://1pixel-base.com
Author: 1pixel
Author URI: https://1pixel-base.com
Description: A custom WordPress theme for 1pixel.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 1pixel-theme
*/

/* ========================================= */
/* 1. CSS Reset (from reset.css)             */
/* ========================================= */

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

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ========================================= */
/* 2. Modern Styles & Variables (from modern-style.css) */
/* ========================================= */

/* CSS変数 */
:root {
  --primary-blue: #007acc;
  --secondary-blue: #005fa3;
  --light-blue: #e6f3ff;
  --dark-blue: #003d6b;
  --primary-gray: #4a5568;
  --light-gray: #f7fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #2d3748;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --text-color: #2d3748;
  --text-light: #718096;
  --shadow-color: rgba(0, 122, 204, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
  --gradient-light: linear-gradient(135deg, var(--light-blue), var(--white));
}

/* 基本設定 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* html要素の設定も追加 */
html {
  margin: 0;
  padding: 0;
  height: 100%;
}

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

/* ナビゲーション */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

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

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.nav-link.active {
  background: var(--primary-blue);
  color: var(--white);
}

.nav-link.active:hover {
  background: var(--secondary-blue);
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
}

/* モバイルでのヒーローセクション調整 */
@media (max-width: 768px) {
  .hero {
    height: calc(100vh - 60px) !important; /* ボトムナビの高さ分を差し引く */
    min-height: calc(100vh - 60px) !important;
  }
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 100 !important;
  position: relative !important;
  max-width: 800px;
  padding: 0 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  line-height: 1.2;
  z-index: 100 !important;
  position: relative !important;
}

.icon-wrapper {
  color: #ff8c42;
  display: inline-block;
  margin-right: 0.5rem;
}

.highlight {
  color: #ff8c42;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  text-align: justify; /* ジャスティファイ（均等割り付け） */
  text-align-last: left; /* 最終行は左詰め */
  z-index: 100 !important;
  position: relative !important;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(45deg, #ff8c42, #ffb366);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 140, 66, 0.4);
  background: linear-gradient(45deg, #ffb366, #ff8c42);
}

/* セクション共通 */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
  text-align: justify; /* ジャスティファイ（均等割り付け） */
  text-align-last: left; /* 最終行は左詰め */
}

/* サービスセクション */
.services {
  padding: 6rem 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  padding: 3rem 2rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.service-description {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 0.95rem;
  flex-grow: 1;
  text-align: justify;
  text-align-last: left;
}

/* 会社紹介セクション */
.about {
  padding: 6rem 0;
  background: var(--white);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

.about-description {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  color: var(--primary-blue);
  text-decoration: none;
  border-radius: 50%;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 会社紹介セクション - 各SNSのブランドカラー適用 */
.social-link[href*="x.com"] {
  background: #000000;
  color: var(--white);
}

.social-link[href*="instagram.com"] {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: var(--white);
}

.social-link[href*="facebook.com"] {
  background: #1877f2;
  color: var(--white);
}

.social-link[href*="threads.net"] {
  background: #000000;
  color: var(--white);
}

.social-link[href*="linkedin.com"] {
  background: #0a66c2;
  color: var(--white);
}

.social-link[href*="line.me"],
.social-link[href*="lin.ee"] {
  background: #00c300;
  color: var(--white);
}

.about-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ブログセクション */
.blog {
  padding: 6rem 0;
  background: var(--gray-50);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.blog-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-date {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-content {
  padding: 2rem;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.blog-excerpt {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-link:hover {
  color: var(--secondary-blue);
}

.blog-footer {
  text-align: center;
}

.blog-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-blue);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 122, 204, 0.3);
}

.blog-all-btn:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 122, 204, 0.4);
}

/* ブログアーカイブページ */
.archive-main {
  padding: 6rem 0;
  background: var(--white);
}

.archive-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

/* サイドバー */
.archive-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: var(--gray-50);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-title::before {
  content: "📝";
  font-size: 1rem;
}

.widget-content ul {
  list-style: none;
}

.widget-content ul li {
  margin-bottom: 0.5rem;
}

.widget-content ul li a {
  color: var(--gray-600);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding-left: 1rem;
}

.widget-content ul li a:hover {
  color: var(--primary-blue);
  background: rgba(37, 99, 235, 0.1);
  transform: translateX(5px);
}

.recent-post-item {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.recent-post-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.recent-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.recent-post-date {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.3rem;
}

.recent-post-title {
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recent-post-link:hover .recent-post-title {
  color: var(--primary-blue);
}

/* メインコンテンツエリア */
.archive-posts {
  min-height: 500px;
}

.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.post-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
  position: relative;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.05);
}

.post-date {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary-blue);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.post-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.post-category {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--primary-blue);
  font-weight: 500;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.post-title a {
  color: var(--gray-900);
  text-decoration: none;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: var(--primary-blue);
}

.post-excerpt {
  color: var(--gray-600);
  line-height: 1.6;
  flex-grow: 1;
  text-align: justify;
  text-align-last: left;
}

.post-link {
  align-self: flex-start;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-blue);
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
}

.post-link:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ページネーション */
.pagination-wrapper {
  margin-top: 3rem;
  text-align: center;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  align-items: center;
}

.pagination a,
.pagination span {
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a {
  background: var(--gray-100);
  color: var(--gray-600);
}

.pagination a:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--primary-blue);
  color: var(--white);
}

/* 記事が見つからない場合 */
.no-posts {
  text-align: center;
  padding: 4rem 2rem;
}

.no-posts h2 {
  font-size: 2rem;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.no-posts p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-home {
  display: inline-block;
  background: var(--primary-blue);
  color: var(--white);
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-home:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
}

/* フッター */
.footer {
  position: relative;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 50%, var(--light-blue) 100%);
  color: var(--text-color);
  padding: 0;
  overflow: hidden;
}

.footer-wave {
  position: relative;
  height: 60px;
  overflow: hidden;
}

.footer-wave svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.footer-wave svg path {
  animation: wave 3s ease-in-out infinite alternate;
}

@keyframes wave {
  0% {
    d: path("M0,60 C300,120 900,0 1200,60 L1200,120 L0,120 Z");
  }
  100% {
    d: path("M0,40 C300,80 900,20 1200,40 L1200,120 L0,120 Z");
  }
}

.footer-content {
  padding: 4rem 0 2rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-logo img {
  height: 50px;
  width: auto;
}

.footer-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.footer-connect h4 {
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.footer-connect h4::before {
  content: "🤝";
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social a {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.footer-social a:hover::before {
  left: 100%;
}

.footer-social a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* 各SNSのブランドカラー適用 */
.footer-social a[href*="x.com"] {
  background: #000000;
  color: var(--white);
}

.footer-social a[href*="instagram.com"] {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: var(--white);
}

.footer-social a[href*="facebook.com"] {
  background: #1877f2;
  color: var(--white);
}

.footer-social a[href*="threads.net"] {
  background: #000000;
  color: var(--white);
}

.footer-social a[href*="linkedin.com"] {
  background: #0a66c2;
  color: var(--white);
}

.footer-social a[href*="line.me"],
.footer-social a[href*="lin.ee"] {
  background: #00c300;
  color: var(--white);
}

.footer-copyright {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--medium-gray);
}

.footer-copyright p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
  text-align: center;
}

.footer-copyright a {
  color: var(--primary-blue);
  font-weight: 600;
}

.footer-copyright a {
  color: var(--primary-blue);
  text-decoration: none;
}

/* フッターリンクのスタイル調整 */
.footer-separator {
  margin: 0 0.8rem;
  color: var(--text-light);
}

.footer-copyright a {
  transition: color 0.3s ease;
}

.footer-copyright a:hover {
  color: var(--primary-blue);
}

/* アニメーション効果の向上 - モバイルでは無効化してfixed位置を確保 */
@media (min-width: 769px) {
  .services,
  .about,
  .blog {
    will-change: transform, opacity;
  }

  /* アニメーション中の要素のパフォーマンス向上 */
  .service-card,
  .blog-card {
    will-change: transform, opacity;
  }

  /* スムーズなアニメーション用のベーススタイル */
  .services.animate-from-left {
    transform: translateX(-50px) translateY(20px);
    opacity: 0;
  }

  .about.animate-from-right {
    transform: translateX(50px) translateY(20px);
    opacity: 0;
  }

  .blog.animate-from-left {
    transform: translateX(-50px) translateY(20px);
    opacity: 0;
  }
}

/* モバイルではアニメーション無効化してfixed位置を確保 */
@media (max-width: 768px) {
  .services,
  .about,
  .blog,
  .service-card,
  .blog-card {
    will-change: auto !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .nav-menu {
    display: none !important; /* モバイルでは通常のナビメニューを完全に非表示 */
  }

  .nav-menu.active {
    display: none !important; /* activeクラスがあっても非表示 */
  }

  .hero-title {
    font-size: 2rem !important; /* 2.5rem の 80% = 2rem */
    line-height: 1.3 !important;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* セクションタイトルをモバイルで80%に縮小 */
  .section-title {
    font-size: 2rem !important; /* 2.5rem の 80% = 2rem */
    line-height: 1.2 !important;
    text-align: center !important; /* モバイルでは中央配置 */
    margin-bottom: 1.5rem !important;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* アバウトセクションのテキストタイトルも中央配置 */
  .about-text .section-title {
    text-align: center !important;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* お問い合わせページをモバイルで縦並びに */
  .contact-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* アーカイブページのレスポンシブ */
  .archive-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .archive-sidebar {
    order: 2;
    position: static;
  }

  .post-card {
    grid-template-columns: 1fr;
  }

  .post-image img {
    height: 200px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    max-width: 100%;
  }

  .footer-social {
    justify-content: center;
  }

  /* フッターのプライバシーポリシーを改行表示 */
  .footer-separator {
    display: none !important; /* セパレーター（|）を非表示 */
  }

  .footer-copyright p {
    line-height: 1.8 !important; /* 行間を広げる */
  }

  .footer-copyright a[href*="privacy-policy"] {
    display: block !important; /* プライバシーポリシーを改行表示 */
    margin-top: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .footer-social {
    gap: 0.5rem;
  }
}

/* タブレット向けレスポンシブデザイン */
@media (max-width: 1024px) and (min-width: 769px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .archive-content {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }
}

/* ブログレイアウト共通 */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}

.blog-main {
  min-height: 500px;
}

/* メインコンテンツセクション（single.php用） */
.main {
  padding: 6rem 0;
  background: var(--white);
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

/* 記事詳細ページ（single.php） */
.single-article {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* アイキャッチ画像 */
.article-featured-image {
  position: relative;
  overflow: hidden;
  max-height: 400px;
}

.article-featured-image .featured-img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-article:hover .featured-img {
  transform: scale(1.02);
}

/* 記事メタ情報 */
.article-meta {
  padding: 2rem 2rem 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
}

.meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}

.meta-items span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.meta-items i {
  color: var(--primary-blue);
}

.meta-category a,
.meta-tags a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.meta-category a:hover,
.meta-tags a:hover {
  color: var(--secondary-blue);
}

.meta-tags a {
  background: var(--light-blue);
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

/* 記事ヘッダー */
.article-header {
  padding: 2rem 2rem 1rem;
}

.article-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
  margin: 0;
}

/* 記事本文 */
.article-content {
  padding: 0 2rem 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  color: var(--gray-900);
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.article-content h2 {
  font-size: 1.8rem;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.article-content p {
  margin: 1.5rem 0;
  text-align: justify;
  text-align-last: left;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.article-content blockquote {
  background: var(--gray-50);
  border-left: 4px solid var(--primary-blue);
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--gray-600);
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-content li {
  margin: 0.5rem 0;
}

.article-content a {
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s ease;
}

.article-content a:hover {
  color: var(--secondary-blue);
}

.article-content code {
  background: var(--gray-100);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.article-content pre {
  background: var(--gray-900);
  color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 2rem 0;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* 記事フッター */
.article-footer {
  padding: 2rem;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

/* ページリンク */
.page-links {
  margin-bottom: 2rem;
  text-align: center;
}

.page-links-title {
  font-weight: 600;
  color: var(--gray-700);
  margin-right: 1rem;
}

.page-links a,
.page-links span {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.3rem;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.3s ease;
}

.page-links a:hover {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* 前後記事ナビゲーション */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.nav-previous {
  justify-self: start;
}

.nav-next {
  justify-self: end;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 15px;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--gray-700);
  transition: all 0.3s ease;
  max-width: 300px;
}

.nav-btn:hover {
  border-color: var(--primary-blue);
  background: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.nav-btn i {
  font-size: 1.2rem;
  color: var(--primary-blue);
}

.nav-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nav-text small {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
}

.nav-title {
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

.nav-prev .nav-text {
  text-align: left;
}

.nav-next .nav-text {
  text-align: right;
}

/* ブログ一覧に戻るボタン */
.back-to-blog {
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid;
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background: var(--secondary-blue);
  border-color: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* コメントセクション */
.comments-area {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

.comments-area h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-body {
  border: 1px solid var(--gray-200);
  border-radius: 15px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--white);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-author-name {
  font-weight: 600;
  color: var(--gray-800);
}

.comment-metadata a {
  font-size: 0.9rem;
  color: var(--gray-500);
  text-decoration: none;
}

.comment-content p {
  line-height: 1.6;
  color: var(--gray-700);
}

.reply {
  text-align: right;
}

.comment-reply-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.comment-reply-link:hover {
  color: var(--secondary-blue);
}

/* コメントフォーム */
#respond {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: 15px;
}

#reply-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.comment-form p {
  margin-bottom: 1.5rem;
}

.comment-form label {
  display: block;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
  outline: none;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit input[type="submit"] {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit input[type="submit"]:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* フォームの必須項目マーク */
.required {
  color: #ff0000;
  margin-left: 0.2rem;
}

/* WordPressのクラスに対する追加スタイル */
.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* カスタムブロックのスタイル例 */
.wp-block-group.is-style-shadow {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  border-radius: 15px;
  background: var(--white);
  margin: 3rem 0;
}

/* グリッドレイアウトの例 */
.wp-block-columns {
  display: flex;
  gap: 2rem;
}

.wp-block-column {
  flex: 1;
}

/* モバイルフレンドリーなボトムメニューのスタイル */
.bottom-menu {
  display: flex; /* 基本的に表示 */
  position: fixed; /* 常に固定位置 */
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 60px;
  background: #2563eb; /* 青色背景 */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 999999;
  justify-content: space-around;
  align-items: center;
  padding: 0 5px;
}

/* PC画面では非表示 */
@media (min-width: 769px) {
  .bottom-menu {
    display: none !important;
  }
}

.bottom-menu-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 1;
  height: 100%;
  min-width: 0;
  border-radius: 8px;
}

.bottom-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.bottom-menu-link i {
  font-size: 18px;
  margin-bottom: 2px;
  line-height: 1;
  display: block;
}

.bottom-menu-link span {
  font-size: 10px;
  line-height: 1;
  font-weight: 500;
  text-align: center;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 強制的にボトムメニューを最前面に固定表示（モバイルのみ） */
@media (max-width: 768px) {
  /* 他のすべてのfixed要素のz-indexを下げる */
  .navbar,
  header,
  .header {
    z-index: 1000 !important;
  }

  /* ボトムメニューをモバイルでのみ表示・固定 */
  .bottom-menu {
    display: flex !important; /* モバイルで表示 */
    position: fixed !important;
    bottom: 0px !important;
    left: 0px !important;
    right: 0px !important;
    width: 100vw !important;
    height: 60px !important;
    z-index: 999999 !important;
    background: #2563eb !important; /* 青色背景 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2) !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 5px !important;
    margin: 0 !important;
    /* 確実なスクロール追従 */
    transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
  }

  /* iOS Safari対応（セーフエリア対応） */
  @supports (-webkit-touch-callout: none) {
    .bottom-menu {
      bottom: env(safe-area-inset-bottom, 0px) !important;
      padding-bottom: env(safe-area-inset-bottom, 0px) !important;
      height: calc(60px + env(safe-area-inset-bottom, 0px)) !important;
    }
  }

  /* ボトムメニューによるコンテンツのオーバーラップを防ぐ */
  body {
    padding-bottom: 70px !important;
  }

  /* フッターにもパディングを追加 */
  .footer {
    margin-bottom: 70px !important;
  }

  /* メインコンテンツにもマージンを追加 */
  main,
  .main,
  .archive-main,
  .blog,
  .services,
  .about,
  .contact,
  .privacy-policy {
    margin-bottom: 70px !important;
  }
}

/* お問い合わせページ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-section {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-intro h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-intro p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-form .form-group {
  margin-bottom: 2rem;
}

.contact-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.contact-form label i {
  color: var(--primary-blue);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 204, 0.1);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.required {
  color: #ff0000;
  margin-left: 0.2rem;
}

.contact-submit-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.contact-submit-btn:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 122, 204, 0.3);
}

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 15px;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info h3 i {
  color: var(--primary-blue);
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 12px;
  border-left: 3px solid var(--primary-blue);
}

.info-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
}

.info-content h4 {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.info-content p {
  color: var(--gray-600);
  line-height: 1.5;
  font-size: 0.9rem;
}

.contact-social {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.contact-social h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.contact-social h3 i {
  color: var(--primary-blue);
}

.contact-social .social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.contact-message {
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  margin-top: 2rem;
}

.contact-message.success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.contact-message.error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.contact-message i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-message h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* プライバシーポリシーページ */
.privacy-content {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-intro {
  background: linear-gradient(135deg, var(--light-blue), var(--white));
  padding: 3rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  text-align: justify;
  text-align-last: left;
}

.last-updated {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
}

.last-updated i {
  color: var(--primary-blue);
}

.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.privacy-section {
  background: var(--white);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--primary-blue);
}

.privacy-section .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.privacy-section .section-title i {
  font-size: 1.3rem;
}

.section-content {
  line-height: 1.8;
}

.section-content p {
  color: var(--gray-700);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  text-align: justify;
  text-align-last: left;
}

/* 太字を青色に */
.section-content strong,
.section-content b {
  color: var(--primary-blue);
  font-weight: 700;
}

/* 箇条書きスタイル */
.section-content ul {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.section-content ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.section-content ul li::before {
  content: "●";
  color: var(--primary-blue);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* 情報カード */
.info-card {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 3px solid var(--primary-blue);
}

.info-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card ul {
  margin: 0;
}

/* 目的リスト */
.purpose-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.purpose-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 12px;
  border-left: 3px solid var(--primary-blue);
}

.purpose-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.purpose-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.purpose-content p {
  color: var(--gray-600);
  margin: 0;
  line-height: 1.6;
  text-align: justify;
  text-align-last: left;
}

/* 重要なお知らせ */
.important-notice {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.important-notice i {
  color: #856404;
  font-size: 1.5rem;
}

.important-notice p {
  margin: 0;
  color: #856404;
}

/* セキュリティグリッド */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.security-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: 12px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.security-item:hover {
  border-color: var(--primary-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 122, 204, 0.1);
}

.security-item i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.security-item h4 {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.security-item p {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin: 0;
}

/* Cookie情報 */
.cookie-info {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.cookie-info h4 {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.cookie-note {
  background: var(--light-blue);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-note i {
  color: var(--primary-blue);
  flex-shrink: 0;
}

/* アナリティクス情報 */
.analytics-info {
  background: var(--gray-50);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.analytics-info h4 {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.analytics-info p {
  text-align: justify;
  text-align-last: left;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-blue);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.external-link:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* リクエスト情報 */
.request-info,
.contact-info {
  background: var(--light-blue);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.request-info h4,
.contact-info h4 {
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.request-info p,
.contact-info p {
  text-align: justify;
  text-align-last: left;
}

.contact-method {
  margin-bottom: 1rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-blue);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: var(--primary-blue);
  color: var(--white);
}

/* ページナビゲーション */
.privacy-navigation {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
}

/* WordPress管理バー対応 */
.admin-bar .bottom-menu {
  z-index: 99998 !important; /* 管理バーより下に設定 */
}

/* 管理バーがない場合のz-indexを高く設定 */
body:not(.admin-bar) .bottom-menu {
  z-index: 2147483647 !important; /* 最高優先度 */
}

/* 管理バー対応のボトムナビゲーション表示（統一版） */
@media (max-width: 768px) {
  .bottom-menu,
  .admin-bar .bottom-menu,
  body .bottom-menu,
  html .bottom-menu {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 60px !important;
    background: #2563eb !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 5px !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
    margin: 0 !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* 管理バーがある場合のz-index */
  .admin-bar .bottom-menu {
    z-index: 99998 !important;
  }

  /* 管理バーがない場合のz-index */
  body:not(.admin-bar) .bottom-menu {
    z-index: 2147483647 !important;
  }
}

/* 全てのページでボトムナビゲーションを強制表示（最高優先度） */
@media screen and (max-width: 768px) {
  .bottom-menu,
  body .bottom-menu,
  html .bottom-menu,
  div.bottom-menu {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 60px !important;
    background: #2563eb !important;
    z-index: 2147483647 !important; /* 最大値 */
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 5px !important;
    margin: 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  /* 他の要素がボトムナビゲーションを隠さないようにする */
  * {
    z-index: auto !important;
  }

  .bottom-menu {
    z-index: 2147483647 !important;
  }

  /* ボディのパディングも強制設定 */
  body,
  html body {
    padding-bottom: 70px !important;
  }
}

/* デバッグ用：最もシンプルなボトムナビゲーション */
.bottom-menu {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 60px !important;
  background: red !important; /* デバッグ用に赤色 */
  display: flex !important;
  z-index: 50 !important; /* ヒーローコンテンツより低く設定 */
  justify-content: space-around !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* PCでは非表示 */
@media (min-width: 769px) {
  .bottom-menu {
    display: none !important;
  }
}

.bottom-menu-link {
  color: white !important;
  text-decoration: none !important;
  text-align: center !important;
  flex: 1 !important;
  padding: 8px 4px !important;
}

/* 全てのページでボトムナビゲーションを強制表示（最強版） */
@media screen and (max-width: 768px) {
  /* transformやfilterを無効化してfixed位置を確保 */
  body,
  html,
  main,
  .main,
  .container,
  .hero,
  .services,
  .about,
  .blog,
  .archive-main,
  .privacy-content,
  .contact-content,
  section,
  article,
  div {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    will-change: auto !important;
  }

  .bottom-menu,
  body .bottom-menu,
  html .bottom-menu,
  div.bottom-menu {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 60px !important;
    background: #2563eb !important;
    z-index: 2147483647 !important; /* 最大値 */
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 5px !important;
    margin: 0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateZ(0) !important; /* ハードウェアアクセラレーション */
    backface-visibility: hidden !important;
    /* 親要素の影響を完全に無効化 */
    contain: layout style paint !important;
  }

  /* 他のすべての要素より前面に */
  .bottom-menu * {
    z-index: inherit !important;
  }

  /* リンクのスタイル */
  .bottom-menu-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    text-decoration: none !important;
    padding: 8px 4px !important;
    flex: 1 !important;
    height: 100% !important;
    border-radius: 8px !important;
    gap: 2px !important;
  }

  .bottom-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    text-decoration: none !important;
  }

  .bottom-menu-link i {
    font-size: 18px !important;
    margin-bottom: 2px !important;
  }

  .bottom-menu-link span {
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 500 !important;
  }
}

/* モバイルでのボディ調整 */
body {
  padding-bottom: 70px !important; /* ボトムナビ分のスペース確保 */
}

/* すべてのボトムナビゲーションを最前面で確実に固定表示 */
@media (max-width: 768px) {
  .bottom-menu {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 60px !important;
    display: flex !important;
    z-index: 2147483647 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 5px !important;
    margin: 0 !important;
    background: #2563eb !important; /* 元の青色に戻す */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15) !important;
    /* 親要素からの影響を完全に無効化 */
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    will-change: auto !important;
    contain: layout style paint !important;
  }
}
