/*
Theme Name: Inno Mark Renewal Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A minimal WordPress theme skeleton converted from the React app.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: inno-mark-renewal
*/

/* Basic reset / starter styles */
* {
  box-sizing: border-box;
}
html{
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #fff;
  color: #0f172a;
  line-height: 1.6;
  word-break: normal;
}

body.menu-open {
  overflow: hidden;
}

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

/* Container */
.site {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== HEADER STYLES ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: transparent;
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  padding: 0.75rem 0;
}

.site-header.scrolled .mobile-menu {
  padding-top: 70px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .header-container {
    padding: 0 2rem;
  }
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.5rem;
  color: #0f172a;
  text-decoration: none;
  transition: opacity 0.3s;
}

.site-logo:hover {
  opacity: 0.8;
}

.logo-image {
  height: 40px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-image {
    height: 32px;
  }
}

.logo-icon {
  width: 2rem;
  height: 2rem;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.logo-text {
  display: inline-block;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-right: 1rem;
}

.nav-item {
  position: relative;
}

/* ドロップダウンメニューと親要素の間のギャップを埋める透明なブリッジ */
.has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: transparent;
  z-index: 49;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link:hover {
  color: #f97316;
}

.nav-link .chevron {
  transition: transform 0.3s;
}

.has-dropdown:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  width: 16rem;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0;
  z-index: 50;
}

/* ホバー時にドロップダウンメニューを表示 */
.has-dropdown:hover .dropdown-menu,
.has-dropdown .dropdown-menu:hover {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #64748b;
  text-decoration: none;
  transition: all 0.3s;
}

.dropdown-item:hover {
  background: #fff7ed;
  color: #f97316;
}

.dropdown-title {
  font-weight: 600;
  color: #334155;
}

.dropdown-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 0.25rem 0;
}

/* Header CTA Buttons */
.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-documents {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  color: #f97316;
  border: 1px solid #f97316;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-documents:hover {
  background: #fff7ed;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-contact {
  background: #f97316;
  color: white;
  padding: 0.625rem 1.5rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 1002;
}

@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 24px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.mobile-toggle.active .hamburger {
  background: transparent;
}

.mobile-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100vh;
  background: white;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  z-index: 1001;
  padding-top: 80px;
}

@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: block;
  color: #334155;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.mobile-nav-link:hover {
  background: #f8fafc;
}

/* Mobile Dropdown */
.mobile-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: #334155;
  font-weight: 500;
  padding: 0.75rem 0.5rem;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  font-size: 1rem;
}

.mobile-dropdown-toggle:hover {
  background: #f8fafc;
}

.mobile-dropdown-toggle .chevron {
  transition: transform 0.3s;
}

.mobile-dropdown.active .mobile-dropdown-toggle .chevron {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  display: flex;
}

.mobile-dropdown-item {
  display: block;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.mobile-dropdown-item:hover {
  background: #f8fafc;
}

/* Mobile CTA Buttons */
.mobile-cta-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mobile-btn-documents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: white;
  color: #f97316;
  border: 1px solid #f97316;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-btn-documents:hover {
  background: #fff7ed;
}

.mobile-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f97316;
  color: white;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-btn-contact:hover {
  background: #ea580c;
}

/* ===== BREADCRUMB STYLES ===== */
.l-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .l-inner {
    padding: 0 2rem;
  }
}

.c-breadcrumbs {
  background: white;
  padding: 1rem 0;
}

#breadcrumbs {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

/* Breadcrumb NavXT の基本スタイル - すべての要素をリセット */
#breadcrumbs * {
  margin: 0;
  padding: 0;
  display: inline;
  font-size: inherit;
  line-height: inherit;
}

/* 各項目のコンテナ */
#breadcrumbs span[itemprop="itemListElement"] {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* リンクスタイル */
#breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s;
  display: inline;
}

#breadcrumbs a:hover {
  color: #f97316;
  text-decoration: underline;
}

/* テキスト要素（リンクなし） */
#breadcrumbs span[itemprop="name"] {
  color: #64748b;
  display: inline;
}

/* 現在のページ（リンクなしのspan） */
#breadcrumbs span[itemprop="name"]:not(a) {
  color: #334155;
  font-weight: 500;
}

/* 区切り文字 - 様々な形式に対応 */
#breadcrumbs .breadcrumb_sep,
#breadcrumbs .breadcrumb_separator,
#breadcrumbs > span:not([itemprop]):not([itemtype]),
#breadcrumbs > span:not([itemprop])::after {
  margin: 0 0.5rem;
  color: #94a3b8;
  display: inline;
}

/* 区切り文字がテキストノードの場合のスタイル */
#breadcrumbs::before,
#breadcrumbs::after {
  display: none;
}

/* メタ情報（非表示） */
#breadcrumbs meta[itemprop] {
  display: none;
}

/* ホームリンクの特別なスタイル */
#breadcrumbs a[href*="home"],
#breadcrumbs a[href*="/"]:first-of-type {
  color: #64748b;
}

#breadcrumbs a[href*="home"]:hover,
#breadcrumbs a[href*="/"]:first-of-type:hover {
  color: #f97316;
}
