@charset "UTF-8";
/*
Theme Name: ENY Solutions Child
Template: cocoon-master
Version: 1.0.0
Description: 株式会社エニィソリューションズ専用 Cocoon子テーマ
Author: ENY SOLUTIONS
*/

/* =====================================
   ENY SOLUTIONS - Custom Design
   親テーマ：Cocoon
   ===================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --ink: #0A0E14;
  --stone: #78716C;
  --warm: #A8A29E;
  --fog: #F5F4F2;
  --cream: #FAFAF8;
  --white: #FFFFFF;
  --gold: #C4A35A;
  --gold-light: #EDE0C8;
  --accent: #2D5A4E;
  --accent-light: #E8F0EE;
}

body {
  font-family: 'Noto Sans JP', sans-serif !important;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
}

/* Cocoonのデフォルト装飾を一部リセット */
#header-container, #header { background: transparent !important; }
.header-container-in { padding: 0 !important; }

/* ===== ヘッダー（Cocoonのヘッダーをカスタム） ===== */
.eny-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 72px;
  background: rgba(10,14,20,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196,163,90,0.15);
}

.eny-logo { display: flex; flex-direction: column; text-decoration: none; }
.eny-logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  line-height: 1;
}
.eny-logo-ja {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.eny-nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.eny-nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s;
}
.eny-nav-links a:hover { color: var(--gold-light); }

.eny-nav-btn {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--ink) !important;
  background: var(--gold);
  text-decoration: none !important;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.25s;
}
.eny-nav-btn:hover { background: #B8943F; }

/* ===== HERO ===== */
.eny-hero {
  padding-top: 72px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #0A0E14 0%, #131826 50%, #1A2236 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.eny-hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 0;
}

.eny-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(196,163,90,0.25) 0%, transparent 60%),
    linear-gradient(180deg, rgba(10,14,20,0.4) 0%, rgba(10,14,20,0.7) 100%);
  z-index: 1;
}

.eny-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: 5rem 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.eny-hero-text {
  background: linear-gradient(135deg, rgba(10,14,20,0.6) 0%, rgba(10,14,20,0.3) 100%);
  backdrop-filter: blur(2px);
  padding: 2rem;
  border-left: 2px solid var(--gold);
}

.eny-hero-line { width: 40px; height: 1px; background: var(--gold); margin-bottom: 1.5rem; }

.eny-hero-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.eny-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 4.2vw, 4.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem !important;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.eny-hero-title em { font-style: italic; color: var(--gold-light); }

.eny-hero-sub-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  font-style: italic;
}

.eny-hero-desc {
  font-size: 0.85rem;
  line-height: 2;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
}

.eny-hero-cta-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.eny-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gold);
  color: var(--ink) !important;
  padding: 14px 28px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none !important;
  transition: all 0.25s;
  box-shadow: 0 4px 24px rgba(196,163,90,0.3);
}
.eny-cta-main:hover { background: #B8943F; transform: translateY(-1px); }

.eny-cta-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6) !important;
  letter-spacing: 0.15em;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.eny-cta-link:hover { color: rgba(255,255,255,0.95) !important; }

/* HERO 右側カード */
.eny-hero-cards { display: flex; flex-direction: column; gap: 1rem; }

.eny-hero-img-card {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(196,163,90,0.3);
}
.eny-hero-img-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.eny-float-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,163,90,0.25);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(12px);
}
.eny-fcq-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.eny-fcq-author {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(196,163,90,0.6);
}

/* ===== セクション共通 ===== */
.eny-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 3rem;
}

.eny-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.eny-eyebrow::after { content: ''; flex: 0 0 32px; height: 1px; background: var(--gold); }

.eny-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.25rem !important;
}

.eny-desc {
  font-size: 0.9rem;
  line-height: 2.1;
  color: var(--stone);
  max-width: 540px;
  margin-bottom: 3.5rem;
}

/* ===== サービス ===== */
.eny-svc-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
.eny-svc-imgs img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.eny-svc-list {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(196,163,90,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.eny-svc-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2rem;
  border-bottom: 1px solid rgba(196,163,90,0.12);
  background: var(--white);
  transition: background 0.2s;
}
.eny-svc-row:last-child { border-bottom: none; }
.eny-svc-row:hover { background: var(--fog); }

.eny-svc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold-light);
}

.eny-svc-info h3 {
  font-size: 1rem !important;
  font-weight: 500 !important;
  margin: 0 0 0.35rem 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: var(--ink) !important;
}

.eny-svc-info p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--stone);
  margin: 0;
}

.eny-svc-badge {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  padding: 5px 14px;
  border-radius: 100px;
  font-weight: 500;
  white-space: nowrap;
}
.eny-badge-green { background: var(--accent-light); color: var(--accent); }
.eny-badge-gold { background: var(--gold-light); color: #7A6030; }

/* ===== Philosophy ===== */
.eny-philosophy {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.eny-philosophy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(196,163,90,0.1) 0%, transparent 40%);
}

.eny-phil-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eny-big-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  color: rgba(196,163,90,0.15);
  line-height: 0.8;
  margin-bottom: -1rem;
}

.eny-quote-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.eny-quote-attr {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.eny-phil-right h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.eny-phil-right p {
  font-size: 0.85rem;
  line-height: 2.1;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
}

.eny-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.eny-val-item {
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.eny-val-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.eny-val-ja { font-size: 0.75rem; color: rgba(255,255,255,0.5); }

/* ===== About ===== */
.eny-about-bg { background: var(--fog); }

.eny-about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.eny-about-card {
  background: var(--white);
  border: 1px solid rgba(196,163,90,0.2);
  border-radius: 4px;
  overflow: hidden;
}

.eny-about-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.eny-about-body { padding: 1.5rem 2rem; }

.eny-info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--fog);
  font-size: 0.85rem;
}
.eny-info-row:last-child { border-bottom: none; }
.eny-info-label { color: var(--warm); letter-spacing: 0.1em; }
.eny-info-val { font-weight: 500; }

.eny-about-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1.25rem !important;
}

.eny-about-text p {
  font-size: 0.88rem;
  line-height: 2.1;
  color: var(--stone);
  margin-bottom: 2rem;
}

.eny-cert-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 10px;
}

.eny-cert-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 700;
}

/* ===== Blog Teaser ===== */
.eny-blog-teaser-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.eny-blog-more {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.eny-blog-more:hover { color: #B8943F; }

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

.eny-blog-card {
  background: var(--white);
  border: 1px solid rgba(196,163,90,0.2);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.25s;
}
.eny-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(10,14,20,0.08);
}

.eny-blog-card a { text-decoration: none; color: inherit; display: block; }

.eny-blog-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.eny-blog-thumb-fallback {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--gold-light), var(--fog));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--gold);
}

.eny-blog-body { padding: 1.5rem; }

.eny-blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
}

.eny-blog-tag {
  background: var(--gold-light);
  color: #7A6030;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eny-blog-meta time {
  font-size: 0.72rem;
  color: var(--warm);
  font-family: 'Cormorant Garamond', serif;
}

.eny-blog-card h3 {
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.5;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  color: var(--ink) !important;
}

.eny-blog-card p {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--stone);
  margin: 0;
}

/* ===== Contact ===== */
.eny-contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.eny-contact-info h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 1.25rem !important;
}

.eny-contact-info p {
  font-size: 0.88rem;
  line-height: 2.1;
  color: var(--stone);
  margin-bottom: 2.5rem;
}

.eny-promises {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.eny-promise {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--stone);
}
.eny-promise-line {
  width: 20px; height: 1px;
  background: var(--gold);
}

.eny-form-wrap {
  background: var(--white);
  border: 1px solid rgba(196,163,90,0.2);
  border-radius: 4px;
  padding: 2.5rem;
}

/* Contact Form 7 整形 */
.eny-form-wrap .wpcf7-form p { margin: 0 0 1rem 0; }

.eny-form-wrap label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--stone);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.eny-form-wrap input[type=text],
.eny-form-wrap input[type=email],
.eny-form-wrap input[type=tel],
.eny-form-wrap select,
.eny-form-wrap textarea {
  width: 100% !important;
  border: 1px solid rgba(196,163,90,0.3) !important;
  border-radius: 3px !important;
  padding: 11px 14px !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  font-size: 0.9rem !important;
  background: var(--fog) !important;
  outline: none !important;
  transition: all 0.2s;
}
.eny-form-wrap input:focus,
.eny-form-wrap select:focus,
.eny-form-wrap textarea:focus {
  border-color: var(--gold) !important;
  background: var(--white) !important;
}
.eny-form-wrap textarea { min-height: 110px; resize: vertical; }

.eny-form-wrap input[type=submit],
.eny-form-wrap .wpcf7-submit {
  width: 100% !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 3px !important;
  padding: 15px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.2em !important;
  cursor: pointer;
  transition: background 0.25s;
  margin-top: 1.5rem;
}
.eny-form-wrap input[type=submit]:hover,
.eny-form-wrap .wpcf7-submit:hover { background: var(--accent) !important; }

/* ===== Footer ===== */
#footer, .footer-in { background: var(--ink) !important; }
.eny-footer-wrap {
  background: var(--ink);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.eny-footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.22em;
}
.eny-footer-ja {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.18em;
}
.eny-footer-links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0.5rem 0; }
.eny-footer-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
}
.eny-footer-links a:hover { color: var(--gold); }
.eny-footer-copy {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.2);
}

/* ===== ブログ単体記事ページ ===== */
.eny-article-hero {
  background: var(--ink);
  padding: 130px 3rem 5rem;
  text-align: center;
}
.eny-article-hero-inner { max-width: 760px; margin: 0 auto; }
.eny-article-hero .eny-blog-meta { justify-content: center; margin-bottom: 1.5rem; }
.eny-article-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  font-weight: 700 !important;
  color: var(--white) !important;
  line-height: 1.4 !important;
}

.single .entry-content {
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 5rem 3rem !important;
  font-size: 0.95rem;
  line-height: 2;
}

.single .entry-content h2 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin: 2.5rem 0 1rem !important;
  padding-left: 1rem !important;
  border-left: 3px solid var(--gold) !important;
  background: none !important;
  border-radius: 0 !important;
}

.single .entry-content h3 {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin: 2rem 0 0.75rem !important;
  color: var(--accent) !important;
  background: none !important;
}

.single .entry-content blockquote {
  background: var(--gold-light) !important;
  border-left: 3px solid var(--gold) !important;
  padding: 1.25rem 1.5rem !important;
  font-style: italic;
  color: #5a4520;
  margin: 1.5rem 0;
}

.single .entry-content img {
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* アーカイブページ */
.archive .entry-card-wrap,
.blog .entry-card-wrap,
.category .entry-card-wrap {
  background: var(--white);
  border: 1px solid rgba(196,163,90,0.2);
  border-radius: 4px;
  overflow: hidden;
}

/* ============================================
   アニメーション（将来の動画・モーション基盤）
   ============================================ */

/* スクロールフェードイン */
.eny-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.eny-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 左からスライドイン */
.eny-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.eny-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* 右からスライドイン */
.eny-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.eny-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* スケールアップ */
.eny-scale-in {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.eny-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* 連続表示の遅延（子要素を順次表示） */
.eny-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.eny-stagger.is-visible > *:nth-child(1) { transition-delay: 0.0s; opacity: 1; transform: translateY(0); }
.eny-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.eny-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.eny-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.eny-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.eny-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* ヒーロータイトルのアニメーション（読み込み時） */
.eny-hero-title em {
  position: relative;
  display: inline-block;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.eny-hero-title em {
  animation: shimmer 4s ease-in-out infinite;
}

/* CTAボタンのパルス効果 */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 24px rgba(196,163,90,0.3); }
  50% { box-shadow: 0 4px 36px rgba(196,163,90,0.6); }
}
.eny-cta-main {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ホバー時のアニメーション強化 */
.eny-svc-row,
.eny-blog-card,
.eny-val-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.eny-svc-row:hover {
  transform: translateX(4px);
}

.eny-blog-card:hover img.eny-blog-thumb {
  transform: scale(1.05);
  transition: transform 0.6s ease;
}

.eny-blog-card .eny-blog-thumb,
.eny-blog-card img {
  transition: transform 0.6s ease;
}

/* 動画背景用のスタイル */
.eny-hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

/* YouTube埋め込み用 */
.eny-video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: 2rem 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(196,163,90,0.2);
}
.eny-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 数値カウントアップ用（将来の実績表示用） */
.eny-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* スクロールインジケーター */
.eny-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.eny-scroll-indicator::after {
  content: '';
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, rgba(196,163,90,0.8), transparent);
  animation: scroll-down 2s ease-in-out infinite;
}
@keyframes scroll-down {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* モーション削減ユーザーへの配慮 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .eny-fade-in,
  .eny-slide-left,
  .eny-slide-right,
  .eny-scale-in,
  .eny-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   レスポンシブ - 段階的に最適化
   ============================================ */

/* タブレット・小型ノートPC（〜900px） */
@media (max-width: 900px) {
  .eny-nav { padding: 0 1.5rem; }
  .eny-nav-links { display: none; }
  .eny-hero-content { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2rem; }
  .eny-section { padding: 4rem 1.5rem; }
  .eny-phil-inner { grid-template-columns: 1fr; padding: 4rem 2rem; gap: 3rem; }
  .eny-about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .eny-contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .eny-svc-imgs { grid-template-columns: 1fr; }
  .eny-blog-grid { grid-template-columns: 1fr; }
  .eny-form-wrap { padding: 1.75rem; }
  .single .entry-content { padding: 3rem 1.5rem !important; }
  .eny-article-hero { padding: 110px 1.5rem 3rem; }
}

/* スマートフォン（〜600px） - 主要対策 */
@media (max-width: 600px) {
  /* ナビゲーション */
  .eny-nav {
    padding: 0 1rem;
    height: 60px;
  }
  .eny-logo-en { font-size: 1rem; letter-spacing: 0.12em; }
  .eny-logo-ja { font-size: 0.55rem; letter-spacing: 0.18em; }
  .eny-nav-btn {
    font-size: 0.65rem;
    padding: 8px 14px;
    letter-spacing: 0.12em;
  }

  /* ヒーロー */
  .eny-hero {
    padding-top: 60px;
    min-height: auto;
  }
  .eny-hero-content {
    padding: 2.5rem 1rem;
    gap: 1.5rem;
  }
  .eny-hero-text {
    padding: 1.5rem 1.25rem;
  }
  .eny-hero-line { width: 30px; margin-bottom: 1rem; }
  .eny-hero-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
  }
  .eny-hero-title {
    font-size: 2.2rem !important;
    line-height: 1.2;
    margin-bottom: 0.5rem !important;
  }
  .eny-hero-sub-title {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  .eny-hero-desc {
    font-size: 0.78rem;
    line-height: 1.9;
    margin-bottom: 2rem;
  }

  /* ヒーローCTAボタン */
  .eny-hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  .eny-cta-main {
    justify-content: center;
    padding: 13px 20px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }
  .eny-cta-link {
    text-align: center;
    font-size: 0.72rem;
  }

  /* セクション全般 */
  .eny-section {
    padding: 3.5rem 1rem;
  }
  .eny-eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    margin-bottom: 1rem;
  }
  .eny-h2 {
    font-size: 1.7rem !important;
    line-height: 1.25;
    margin-bottom: 1rem !important;
  }
  .eny-desc {
    font-size: 0.82rem;
    line-height: 1.95;
    margin-bottom: 2.5rem;
  }

  /* サービス画像グリッド */
  .eny-svc-imgs {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .eny-svc-imgs img {
    aspect-ratio: 16/10;
  }

  /* サービスリスト */
  .eny-svc-row {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    padding: 1.25rem 1rem;
  }
  .eny-svc-num { font-size: 1.5rem; }
  .eny-svc-info h3 {
    font-size: 0.92rem !important;
    margin-bottom: 0.4rem !important;
  }
  .eny-svc-info p { font-size: 0.78rem; line-height: 1.65; }
  .eny-svc-badge {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0.5rem;
    font-size: 0.6rem;
    padding: 4px 10px;
  }

  /* Philosophy */
  .eny-philosophy .eny-phil-inner {
    padding: 3.5rem 1.25rem;
    gap: 2rem;
  }
  .eny-big-quote {
    font-size: 3rem;
    margin-bottom: -0.5rem;
  }
  .eny-quote-body {
    font-size: 1.25rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }
  .eny-phil-right h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  .eny-phil-right p {
    font-size: 0.78rem;
    line-height: 1.95;
    margin-bottom: 1.5rem;
  }
  .eny-value-grid {
    gap: 0.75rem;
  }
  .eny-val-item { padding: 0.85rem; }
  .eny-val-en { font-size: 0.9rem; }
  .eny-val-ja { font-size: 0.7rem; }

  /* About */
  .eny-about-grid { gap: 2rem; }
  .eny-about-body { padding: 1.25rem 1.5rem; }
  .eny-info-row { font-size: 0.78rem; padding: 0.6rem 0; }
  .eny-about-text h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem !important;
  }
  .eny-about-text p {
    font-size: 0.8rem;
    line-height: 1.95;
    margin-bottom: 1.5rem;
  }
  .eny-cert-row { font-size: 0.78rem; gap: 10px; }

  /* ブログティーザー */
  .eny-blog-teaser-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }
  .eny-blog-more { font-size: 0.75rem; }
  .eny-blog-grid {
    gap: 1.25rem;
  }
  .eny-blog-card h3 {
    font-size: 0.92rem !important;
    line-height: 1.5;
  }
  .eny-blog-card p {
    font-size: 0.78rem;
    line-height: 1.6;
  }
  .eny-blog-body { padding: 1.25rem 1.1rem; }
  .eny-blog-tag { font-size: 0.6rem; padding: 2px 8px; }

  /* Contact */
  .eny-contact-info h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem !important;
  }
  .eny-contact-info p {
    font-size: 0.8rem;
    line-height: 1.95;
    margin-bottom: 2rem;
  }
  .eny-promise { font-size: 0.78rem; }
  .eny-form-wrap {
    padding: 1.5rem 1.25rem;
  }
  .eny-form-wrap label {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }
  .eny-form-wrap input,
  .eny-form-wrap select,
  .eny-form-wrap textarea {
    font-size: 16px !important; /* iOS自動ズーム防止 */
    padding: 10px 12px !important;
  }
  .eny-form-wrap input[type=submit],
  .eny-form-wrap .wpcf7-submit {
    padding: 13px !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.15em !important;
  }

  /* フッター */
  .eny-footer-wrap {
    padding: 2rem 1rem;
  }
  .eny-footer-logo { font-size: 1.2rem; letter-spacing: 0.18em; }
  .eny-footer-ja { font-size: 0.62rem; }
  .eny-footer-links { gap: 1rem 1.25rem; }
  .eny-footer-links a { font-size: 0.62rem; letter-spacing: 0.1em; }
  .eny-footer-copy { font-size: 0.58rem; padding: 0 0.5rem; }

  /* ブログ単体記事 */
  .eny-article-hero {
    padding: 90px 1rem 2.5rem;
  }
  .eny-article-hero h1 {
    font-size: 1.4rem !important;
    line-height: 1.45 !important;
  }
  .single .entry-content {
    padding: 2.5rem 1rem !important;
    font-size: 0.88rem;
  }
  .single .entry-content h2 {
    font-size: 1.15rem !important;
    margin: 2rem 0 0.85rem !important;
  }
  .single .entry-content h3 {
    font-size: 1rem !important;
    margin: 1.5rem 0 0.6rem !important;
  }

  /* 浮きカード等の余白詰め */
  .eny-float-card {
    padding: 1.25rem 1.4rem;
  }
  .eny-fcq-text { font-size: 0.95rem; }

  /* ヒーロー右画像（スマホでは表示） */
  .eny-hero-cards {
    display: flex !important;
    gap: 1rem;
  }
  .eny-hero-img-card {
    aspect-ratio: 16/10;
    max-height: 220px;
  }

  /* 統計（hero-stats）が表示されている場合 */
  .eny-hero-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
  }
  .eny-hstat-num { font-size: 1.5rem; }
  .eny-hstat-label { font-size: 0.62rem; }
}

/* 超小型スマホ（〜380px） */
@media (max-width: 380px) {
  .eny-hero-title { font-size: 1.85rem !important; }
  .eny-h2 { font-size: 1.5rem !important; }
  .eny-section { padding: 3rem 0.85rem; }
  .eny-form-wrap { padding: 1.25rem 1rem; }
  .eny-svc-row { padding: 1rem 0.85rem; gap: 0.75rem; }
}

/* 横長デバイス対策（横向きスマホ） */
@media (max-height: 500px) and (orientation: landscape) {
  .eny-hero { min-height: auto; padding: 80px 0 3rem; }
  .eny-hero-title { font-size: 1.8rem !important; }
}

/* タッチデバイス全般の最適化 */
@media (hover: none) and (pointer: coarse) {
  .eny-nav-btn,
  .eny-cta-main,
  .eny-blog-card a,
  .cf-submit,
  .eny-form-wrap input[type=submit] {
    min-height: 44px; /* Appleガイドラインのタップ最小サイズ */
  }
}
