/* ===================================
   小野晋平税理士事務所 - 共通スタイル
   =================================== */

/* 変数定義 */
:root {
  --primary-color: #008AE4;
  --primary-dark: #0066B3;
  --primary-light: #33A1EC;
  --primary-lighter: #66B8F2;
  --accent-color: #00C6FF;
  --accent-gradient: linear-gradient(135deg, #008AE4 0%, #00C6FF 100%);
  --accent-gradient-reverse: linear-gradient(135deg, #00C6FF 0%, #008AE4 100%);
  --hero-gradient: linear-gradient(135deg, rgba(0, 138, 228, 0.9) 0%, rgba(0, 102, 179, 0.95) 50%, rgba(0, 198, 255, 0.85) 100%);
  --text-color: #333333;
  --text-light: #666666;
  --bg-light: #f0f8ff;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 138, 228, 0.1), 0 2px 4px -1px rgba(0, 138, 228, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 138, 228, 0.15), 0 4px 6px -2px rgba(0, 138, 228, 0.08);
  --shadow-blue: 0 10px 40px rgba(0, 138, 228, 0.3);
  --transition: all 0.3s ease;
}

/* リセットと基本設定 */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-feature-settings: "palt";

}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.8;
  color: var(--text-color);
  background-color: var(--bg-white);
  opacity: 0;
  animation: pageFadeIn 1s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

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

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  flex-direction: column;
}

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

.logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: 0.05em;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  font-family: 'Cormorant Garamond', serif;
}

/* ナビゲーション */
.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

/* メガドロップダウン */
.nav-item-has-dropdown {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.mega-menu {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 40px;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-item-has-dropdown:hover .mega-menu {
  visibility: visible;
  opacity: 1;
}

.mega-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
  padding: 20px;
  border-radius: 8px;
  transition: background 0.3s;
  text-decoration: none;
  height: 100%;
}

.mega-menu-item:hover {
  background: #f5f9fc;
}

.mega-menu-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}

.mega-menu-content {
  flex: 1;
  width: 100%;
}

.mega-menu-title {
  font-weight: bold;
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: block;
}

.mega-menu-desc {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.5;
  display: block;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  padding: 10px;
  z-index: 999;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background-color: var(--primary-dark);
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* セクション共通 */
.section {
  padding: 100px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-en {
  font-size: 0.9rem;
  color: var(--primary-color);
  letter-spacing: 0.3em;
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--accent-gradient);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-desc {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
  line-height: 2;
}

/* 共通コンポーネント: ボタン */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  text-align: center;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 138, 228, 0.4);
  color: var(--bg-white);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--bg-white);
  color: var(--bg-white);
}

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

/* CTAセクション */
.cta {
  padding: 80px 0;
  text-align: center;
  position: relative;
  background: var(--bg-light);
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  background: var(--accent-gradient);
  border-radius: 16px;
  color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.cta-title {
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  margin-bottom: 15px;
  position: relative;
  white-space: nowrap;
}

.cta-desc {
  margin-bottom: 30px;
  opacity: 0.9;
  position: relative;
}

.cta-phone {
  font-size: clamp(1.5rem, 8vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  position: relative;
  white-space: nowrap;
}

.cta-phone a {
  color: var(--bg-white);
}

.cta-hours {
  font-size: 0.9rem;
  opacity: 0.8;
  position: relative;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #004080 100%);
  color: var(--bg-white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-desc {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--bg-white);
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-contact p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* スクロールトップボタン */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-blue);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ページヘッダー（下層ページ共通） */
.page-header {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: 70px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-gradient);
  opacity: 0.9;
}

.page-header-content {
  position: relative;
  text-align: center;
  color: var(--bg-white);
}

.page-header-title-en {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
  font-family: 'Cormorant Garamond', serif;
}

.page-header-title {
  font-size: 2.5rem;
  font-weight: 600;
}

/* パンくずリスト */
.breadcrumb {
  padding: 15px 0;
  background: linear-gradient(90deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '>';
  margin: 0 10px;
  color: var(--text-light);
}

.breadcrumb-list a {
  color: var(--text-light);
}

.breadcrumb-list a:hover {
  color: var(--primary-color);
}

.breadcrumb-list li:last-child {
  color: var(--primary-color);
}

/* レスポンシブ: モバイルナビ */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 100px 40px 100px;
    gap: 0;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1rem;
    text-align: center;
  }

  .hamburger {
    display: flex;
  }

  .logo-img {
    height: 22px;
  }

  .mega-menu {
    position: static;
    transform: none;
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    visibility: visible;
    opacity: 1;
    box-shadow: none;
  }

  .nav-menu.active .nav-item-has-dropdown .mega-menu {
    max-height: 1000px;
    padding-top: 10px;
  }

  .mega-menu-item {
    flex-direction: row;
    padding: 15px 10px;
    background: #f9f9f9;
    margin-bottom: 5px;
    border-radius: 4px;
    gap: 10px;
    text-align: left;
  }

  .mega-menu-thumb {
    display: none;
  }

  .mega-menu-title {
    font-size: 0.9rem;
    margin-bottom: 0;
  }

  .mega-menu-desc {
    display: none;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-header-title {
    font-size: 1.8rem;
  }
}

/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out forwards;
}

/* ほんのりとしたエフェクト（Reveal） */
.reveal {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-up {
  transform: translateY(30px);
}

.reveal-down {
  transform: translateY(-30px);
}

.reveal-left {
  transform: translateX(30px);
}

.reveal-right {
  transform: translateX(-30px);
}

.reveal-scale {
  transform: scale(0.95);
}

.reveal.active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* カードのほんのりとした浮き出し */
.service-card-v2,
.philosophy-card,
.feature-item,
.access-box,
.pricing-card {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card-v2:hover,
.philosophy-card:hover,
.access-box:hover,
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 138, 228, 0.15);
}