/*
Theme Name: rexeed-them
Description: REXEED HP用のカスタムテーマ
Version: 1.0
Author: REXEED
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* CSS Variables - Color Palette */
:root {
  --main-color: #001f3f;
  --accent-color: #c5a059;
  --white: #ffffff;
  --dark-navy: #000d1a;
  --text-dark: #333333;
  --text-light: #666666;
  --border-light: rgba(255, 255, 255, 0.2);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* Container & Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* Glassmorphism */
.glass-morphism {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 31, 63, 0.08);
  padding: 0;
  transition: all 0.4s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.02);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 20px;
}

/* Logo Design */
.site-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--main-color);
  letter-spacing: 1px;
  position: relative;
  padding-left: 3rem;
  transition: all 0.3s ease;
}

.site-logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo::after {
  content: 'R';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.site-logo:hover {
  color: var(--accent-color);
  transform: translateX(3px);
}

/* Navigation with Modern Design */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  position: relative;
  padding: 0.8rem 1.5rem;
  color: var(--main-color);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: block;
}

.main-navigation a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.05), rgba(197, 160, 89, 0.05));
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-navigation a:hover::before {
  opacity: 1;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: calc(100% - 3rem);
}

.main-navigation a:hover {
  color: var(--accent-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--main-color);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 31, 63, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 1.5s forwards;
}

/* Scroll Down Icon */
.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.scroll-down::after {
  content: '';
  display: block;
  width: 2px;
  height: 50px;
  background: var(--white);
  margin: 10px auto 0;
  animation: scrollLineMove 2s ease-in-out infinite;
}

@keyframes scrollLineMove {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(20px); opacity: 0.3; }
}

/* Service Cards Section */
.services-section {
  background: #f8f9fa;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  color: var(--main-color);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Card Hover Effects */
.service-card {
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: attr(data-number);
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(0, 31, 63, 0.03);
  transition: all 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
  color: rgba(197, 160, 89, 0.1);
  right: 10px;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--accent-color);
}

.service-card h3 {
  color: var(--main-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* JavaScriptが無効な場合のフォールバック */
.no-js .reveal,
.reveal.no-animation {
  opacity: 1;
  transform: translateY(0);
}

/* ページ読み込み時に既に表示領域にある要素は即座に表示 */
.reveal.initial-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Character Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about-section {
  padding: 100px 0;
  background: white;
}

.about-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--text-light);
}

.company-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.info-item {
  background: white;
  padding: 3rem 2.5rem;
  border-radius: 15px;
  border: 2px solid #e8e8e8;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.info-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), var(--main-color));
  transform: scaleY(0);
  transition: transform 0.4s ease;
}

.info-item:hover::before {
  transform: scaleY(1);
}

.info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 31, 63, 0.15);
  border-color: var(--accent-color);
}

.info-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label::before {
  content: '●';
  font-size: 0.6rem;
}

.info-value {
  font-size: 1.3rem;
  color: var(--main-color);
  font-weight: 700;
  line-height: 1.8;
}

/* Access Section */
.access-section {
  padding: 100px 0;
  background: #f8f9fa;
}

.access-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.access-map {
  position: relative;
}

.map-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
}

.map-marker {
  background: var(--accent-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 5px 20px rgba(197, 160, 89, 0.4);
  animation: markerPulse 2s ease-in-out infinite;
}

@keyframes markerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.access-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.access-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.access-card:hover {
  transform: translateX(10px);
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.access-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.access-card h3 {
  color: var(--main-color);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.access-card p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: white;
}

.contact-message {
  max-width: 700px;
  margin: 0 auto 2rem;
  padding: 1.5rem 2rem;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-message.fade-out {
  animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.contact-message i {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-message.success {
  background: #d4edda;
  color: #155724;
  border: 2px solid #c3e6cb;
}

.contact-message.success i {
  color: #28a745;
}

.contact-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 2px solid #f5c6cb;
}

.contact-message.error i {
  color: #dc3545;
}

.contact-message p {
  margin: 0;
  line-height: 1.6;
  flex: 1;
}

.message-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-close:hover {
  opacity: 1;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-light);
}

.contact-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.contact-tab {
  background: white;
  border: 2px solid #e8e8e8;
  padding: 1.5rem 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 150px;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.contact-tab i {
  font-size: 2rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.contact-tab span {
  font-weight: 500;
  color: var(--main-color);
}

.contact-tab:hover {
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-tab.active {
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  border-color: var(--main-color);
  box-shadow: 0 10px 30px rgba(0, 31, 63, 0.2);
}

.contact-tab.active i,
.contact-tab.active span {
  color: white;
}

.contact-forms-container {
  max-width: 800px;
  margin: 0 auto;
}

/* デフォルトで最初のフォームを表示（noscript対応） */
.contact-form-wrapper {
  animation: fadeIn 0.5s ease;
}

/* JavaScriptが有効な場合、すべてを非表示 */
.contact-forms-container .contact-form-wrapper {
  display: none;
}

/* active クラスが付いたフォームのみ表示 */
.contact-form-wrapper.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #f0f0f0;
}

.form-header h3 {
  color: var(--main-color);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-light);
  font-size: 1rem;
}

/* フォームトグル - アクセシビリティ対応 */
.contact-form-toggle {
  display: none;
  animation: fadeInForm 0.4s ease forwards;
}

.contact-form-toggle.is-visible {
  display: block;
}

@keyframes fadeInForm {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* JavaScriptなしでも表示可能 */
.contact-form-toggle:target {
  display: block;
}

.contact-form {
  background: #f8f9fa;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--main-color);
  font-weight: 500;
  font-size: 0.95rem;
}

.required {
  color: #e74c3c;
  font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  transition: all 0.3s ease;
  background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(135deg, var(--main-color), var(--accent-color));
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2rem auto 0;
  box-shadow: 0 5px 20px rgba(0, 31, 63, 0.2);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 31, 63, 0.3);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-btn i {
  font-size: 1rem;
}

.submit-btn .fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.coming-soon {
  text-align: center;
  padding: 5rem 3rem;
  background: #f8f9fa;
  border-radius: 15px;
}

.coming-soon i {
  font-size: 4rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.coming-soon h4 {
  color: var(--main-color);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Footer */
/* ============================================
   Modern Footer Design
   ============================================ */

.site-footer.footer-modern {
  background: linear-gradient(180deg, var(--main-color) 0%, #000d1a 100%);
  color: var(--white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* 装飾ライン */
.footer-decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  pointer-events: none;
}

.footer-line-svg {
  width: 100%;
  height: 100%;
}

.footer-line {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 1;
  opacity: 0.3;
}

/* フッターメインコンテンツ */
.footer-content-modern {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding: 80px 0 60px;
}

/* ブランドエリア */
.footer-brand {
  padding-right: 2rem;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.footer-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  border: 1px solid var(--accent-color);
  border-radius: 14px;
  color: var(--accent-color);
  font-size: 1.8rem;
  font-weight: 400;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
  transition: all 0.3s ease;
}

.footer-logo-link:hover .footer-logo-badge {
  background: var(--accent-color);
  color: var(--main-color);
  transform: scale(1.05);
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}

.footer-logo-main {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
}

.footer-logo-link:hover .footer-logo-main {
  color: var(--accent-color);
}

.footer-logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--accent-color);
  letter-spacing: 0.25em;
}

.footer-tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-top: 1.5rem;
}

.tagline-jp {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* セクション共通 */
.footer-heading {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-color);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: var(--accent-color);
}

/* 会社情報リスト */
.footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(197, 160, 89, 0.1);
  border-radius: 8px;
  color: var(--accent-color);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.info-text {
  padding-top: 5px;
}

/* ナビゲーションリスト */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 0.8rem;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  padding-left: 0;
}

.footer-nav-list a::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-color);
  padding-left: 20px;
}

.footer-nav-list a:hover::before {
  width: 12px;
}

/* フッター下部 */
.footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 25px 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

.footer-accent-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
}

/* レスポンシブ */
@media (max-width: 992px) {
  .footer-content-modern {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    padding-right: 0;
    text-align: center;
  }
  
  .footer-logo-link {
    justify-content: center;
  }
  
  .footer-tagline {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .footer-content-modern {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 60px 0 40px;
  }
  
  .footer-brand,
  .footer-info-section,
  .footer-nav-section {
    text-align: center;
  }
  
  .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-info-list li {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .info-text {
    padding-top: 0;
  }
  
  .footer-nav-list a {
    padding-left: 0;
  }
  
  .footer-nav-list a:hover {
    padding-left: 0;
  }
  
  .footer-nav-list a::before {
    display: none;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-accent-line {
    width: 40px;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .site-logo {
    font-size: 1.3rem;
    padding-left: 2.5rem;
  }
  
  .site-logo::before {
    width: 35px;
    height: 35px;
  }
  
  .site-logo::after {
    font-size: 1.2rem;
    left: 8px;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 2rem 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
    overflow-y: auto;
  }
  
  .main-navigation.active {
    right: 0;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .main-navigation a {
    padding: 1rem 1.5rem;
    border-left: 3px solid transparent;
    border-radius: 0;
  }
  
  .main-navigation a::after {
    display: none;
  }
  
  .main-navigation a:hover {
    border-left-color: var(--accent-color);
    background: rgba(0, 31, 63, 0.03);
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .company-info-grid {
    grid-template-columns: 1fr;
  }
  
  .access-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .access-card:hover {
    transform: translateY(-5px);
  }
  
  .contact-tabs {
    flex-direction: column;
    align-items: stretch;
  }
  
  .contact-tab {
    flex-direction: row;
    justify-content: center;
  }
  
  .contact-form {
    padding: 2rem 1.5rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  section {
    padding: 60px 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.5rem; }
}

/* ============================================
   デザイン改善パッチ（今っぽく・上品に）
   ============================================ */

/* ----------------------------------------
   1. ヘッダーとナビの改善
   ---------------------------------------- */

/* ヘッダーの余白を詰める */
.site-header .container {
  padding: 0.9rem 20px;
}

/* ロゴ本体のhover translateXを削除、色変化のみ */
.site-logo {
  transition: color 0.3s ease;
}

.site-logo:hover {
  transform: none;
}

/* ロゴの疑似要素をa要素に移動してクリック領域を統一 */
.site-logo::before,
.site-logo::after {
  display: none;
}

.site-logo a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.site-logo a::before,
.site-logo a::after {
  display: none;
}

/* エレガントなロゴバッジ */
.logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, var(--main-color) 0%, #0a2540 100%);
  border-radius: 12px;
  color: white;
  font-size: 1.6rem;
  font-weight: 400;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
  letter-spacing: 0;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 12px rgba(0, 31, 63, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ゴールドのアクセントボーダー */
.logo-badge::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 10px;
  border: 1px solid var(--accent-color);
  opacity: 0.6;
  transition: all 0.4s ease;
}

/* シャインエフェクト */
.logo-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.6s ease;
  border-radius: 12px;
}

.site-logo a:hover .logo-badge::after {
  left: 100%;
}

.site-logo a:hover .logo-badge {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(0, 31, 63, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.site-logo a:hover .logo-badge::before {
  opacity: 1;
  border-color: var(--accent-color);
}

/* ロゴテキストコンテナ */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

/* メインロゴテキスト - REXEED */
.logo-main {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--main-color);
  letter-spacing: 0.2em;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
}

/* REXEEDのアンダーラインアクセント */
.logo-main::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-color), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.site-logo a:hover .logo-main::after {
  transform: scaleX(1);
}

/* サブテキスト - 合同会社 */
.logo-sub {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--accent-color);
  letter-spacing: 0.25em;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.site-logo a:hover .logo-main {
  color: var(--main-color);
  letter-spacing: 0.22em;
}

.site-logo a:hover .logo-sub {
  letter-spacing: 0.3em;
}

/* ナビのhover表現を絞る - 下線アニメ無効化 */
.main-navigation a::after {
  display: none;
}

.main-navigation a::before {
  background: rgba(0, 31, 63, 0.06);
}

.main-navigation a:hover {
  color: var(--main-color);
  font-weight: 500;
}

/* 最後のナビ項目（お問い合わせ）をCTAボタン化 */
.main-navigation li:last-child a {
  background: var(--main-color);
  color: white;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.8rem 1.8rem;
}

.main-navigation li:last-child a::before {
  display: none;
}

.main-navigation li:last-child a:hover {
  background: var(--dark-navy);
  color: white;
}

/* アクセシビリティ - focus-visible アウトライン */
.site-logo a:focus-visible,
.main-navigation a:focus-visible,
.contact-tab:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

/* ----------------------------------------
   2. タイポグラフィと余白の調整
   ---------------------------------------- */

/* セクションの余白を詰める */
section {
  padding: 84px 0;
}

/* 見出しを可変サイズに（clamp使用） */
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

/* body line-heightと段落余白を調整 */
body {
  line-height: 1.7;
}

p {
  margin-bottom: 0.85rem;
}

/* ヒーローのタイトルとサブタイトルも調整 */
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
}

/* ----------------------------------------
   3. パフォーマンスと挙動
   ---------------------------------------- */

/* モバイルではhero背景のfixed無効化 */
@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
  }
  
  section {
    padding: 56px 0;
  }
}

/* アニメーション削減設定の尊重 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------
   4. 仕上げの微調整
   ---------------------------------------- */

/* サービスカードのhover上昇量を控えめに */
.service-card:hover {
  transform: translateY(-6px);
}

/* アクセスカードのhoverを縦方向に統一 */
.access-card:hover {
  transform: translateY(-5px);
}

/* PCでもアクセスカードは縦方向に統一 */
@media (min-width: 769px) {
  .access-card:hover {
    transform: translateY(-5px);
  }
}

/* ----------------------------------------
   モバイル対応の再調整
   ---------------------------------------- */

@media (max-width: 768px) {
  /* ロゴサイズ調整 */
  .site-logo a {
    gap: 0.7rem;
  }
  
  .logo-badge {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    border-radius: 10px;
  }
  
  .logo-badge::before {
    inset: 2px;
    border-radius: 8px;
  }
  
  .logo-main {
    font-size: 1.15rem;
    letter-spacing: 0.15em;
  }
  
  .logo-sub {
    font-size: 0.5rem;
    letter-spacing: 0.2em;
  }
  
  /* モバイルメニューのCTAボタンは通常スタイル */
  .main-navigation li:last-child a {
    background: transparent;
    color: var(--main-color);
    padding: 1rem 1.5rem;
    border-left: 3px solid transparent;
  }
  
  .main-navigation li:last-child a:hover {
    background: rgba(0, 31, 63, 0.03);
    border-left-color: var(--accent-color);
  }
}

/* ============================================
   パッチ終了
   ============================================ */

/* ============================================
   LINE Contact Integration
   ============================================ */

.contact-method-options {
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.03) 0%, rgba(197, 160, 89, 0.03) 100%);
  border: 1px solid rgba(0, 31, 63, 0.15);
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

.contact-method-divider {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-methods-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.contact-method-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-method-btn > * {
  position: relative;
  z-index: 1;
}

/* LINEボタン */
.line-btn {
  background: linear-gradient(135deg, #00b300 0%, #00a300 100%);
  color: white;
  border-color: #00a300;
  box-shadow: 0 4px 15px rgba(0, 179, 0, 0.2);
}

.line-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 179, 0, 0.35);
}

.line-btn:hover::before {
  opacity: 1;
}

.line-btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.contact-method-btn.line-btn i {
  font-size: 1.75rem;
}

/* フォーム送信ボタン */
.form-btn {
  background: linear-gradient(135deg, var(--main-color) 0%, rgba(0, 31, 63, 0.8) 100%);
  color: white;
  border-color: var(--main-color);
  box-shadow: 0 4px 15px rgba(0, 31, 63, 0.2);
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 31, 63, 0.35);
  background: linear-gradient(135deg, rgba(0, 31, 63, 0.95) 0%, rgba(0, 31, 63, 0.7) 100%);
}

.form-btn:hover::before {
  opacity: 1;
}

.form-btn:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

.form-btn i {
  font-size: 1.2rem;
}

/* ============================================
   レスポンシブ対応（複数ブレークポイント）
   ============================================ */

/* 超小型デバイス（320px以上） */
@media (min-width: 320px) {
  .contact-method-options {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
  }
  
  .contact-method-divider {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
  }
  
  .contact-methods-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  
  .contact-method-btn {
    flex-direction: row;
    align-items: center;
    padding: 1.2rem 1rem;
    gap: 0.8rem;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  
  .contact-method-btn span {
    flex: 1;
    text-align: left;
    word-break: break-word;
    white-space: normal;
    line-height: 1.3;
  }
  
  .contact-method-btn.line-btn i {
    font-size: 1.4rem;
    flex-shrink: 0;
  }
  
  .contact-method-btn i {
    font-size: 0.95rem;
    flex-shrink: 0;
  }
}

/* 小型タブレット（480px以上） */
@media (min-width: 480px) {
  .contact-method-options {
    padding: 1.8rem 1.2rem;
    margin-bottom: 2rem;
  }
  
  .contact-method-divider {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
  }
  
  .contact-methods-grid {
    gap: 1rem;
  }
  
  .contact-method-btn {
    padding: 1.4rem 1.2rem;
    font-size: 0.97rem;
    gap: 1rem;
  }
  
  .contact-method-btn span {
    line-height: 1.4;
  }
  
  .contact-method-btn.line-btn i {
    font-size: 1.5rem;
  }
  
  .contact-method-btn i {
    font-size: 1rem;
  }
}

/* 中型タブレット（768px以上） */
@media (min-width: 768px) {
  .contact-method-options {
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
  }
  
  .contact-method-divider {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
    letter-spacing: 1px;
  }
  
  .contact-methods-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  
  .contact-method-btn {
    flex-direction: column;
    padding: 2rem 1.5rem;
    font-size: 1rem;
    gap: 0.8rem;
    border-radius: 10px;
  }
  
  .contact-method-btn span {
    text-align: center;
    white-space: nowrap;
  }
  
  .contact-method-btn.line-btn i {
    font-size: 1.75rem;
  }
  
  .contact-method-btn i {
    font-size: 1.2rem;
  }
}

/* デスクトップ（1024px以上） */
@media (min-width: 1024px) {
  .contact-method-options {
    padding: 2.5rem 2rem;
  }
  
  .contact-method-btn {
    padding: 2.2rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .contact-method-btn:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  }
}

/* 大型デスクトップ（1440px以上） */
@media (min-width: 1440px) {
  .contact-method-options {
    padding: 3rem 2.5rem;
  }
  
  .contact-method-btn {
    padding: 2.5rem 2rem;
    font-size: 1.05rem;
  }
  
  .contact-method-btn.line-btn i {
    font-size: 2rem;
  }
}

/* reduced-motion対応 */
@media (prefers-reduced-motion: reduce) {
  .contact-method-btn {
    transition: none;
  }
  
  .contact-method-btn:hover {
    transform: none;
  }
}

/* ============================================
   汎用レスポンシブ改善
   ============================================ */

/* すべてのテキストフィールドで改行制御 */
.contact-method-btn span,
.contact-method-divider {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* フォーム全体のレスポンシブ改善 */
.contact-form {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.form-group {
  width: 100%;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ボタンの幅調整（モバイルのみ） */
@media (max-width: 576px) {
  .submit-btn {
    width: 100%;
    min-width: 120px;
  }
}

/* ============================================
   Modern Hero Section - REXEED Original Design
   ============================================ */

.hero-modern {
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #f0f2f5 100%);
  color: var(--main-color);
  overflow: hidden;
}

.hero-modern::before {
  display: none;
}

/* 背景の建築的ライン */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.architectural-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
}

.line-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.line-path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: drawLine 3s ease forwards;
}

.line-1 {
  stroke: var(--accent-color);
  opacity: 0.6;
  animation-delay: 0.5s;
}

.line-2 {
  stroke: var(--main-color);
  opacity: 0.3;
  animation-delay: 0.8s;
}

.line-3 {
  stroke: var(--accent-color);
  opacity: 0.4;
  animation-delay: 1.1s;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* 幾何学的アクセント */
.geometric-accent {
  position: absolute;
  border: 2px solid var(--accent-color);
  opacity: 0;
  animation: fadeInScale 1.5s ease forwards;
}

.accent-1 {
  top: 15%;
  right: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  animation: fadeInScale 1.5s ease forwards;
  animation-delay: 1s;
}

.accent-2 {
  bottom: 25%;
  left: 8%;
  width: 80px;
  height: 80px;
  transform: rotate(45deg);
  animation: fadeInScaleRotate 1.5s ease forwards;
  animation-delay: 1.3s;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}

/* 花の中心のアニメーション（完全な不透明度） */
@keyframes bloomFlowerCenter {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInScaleRotate {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0.5);
  }
  100% {
    opacity: 0.3;
    transform: rotate(45deg) scale(1);
  }
}

/* 種から花が咲くアニメーション */
.seed-to-flower-animation {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: none;
  animation: flowerFadeOut 1s ease forwards;
  animation-delay: 4.5s;
}

@keyframes flowerFadeOut {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.8);
  }
}

.seed-flower-svg {
  width: 280px;
  height: 400px;
}

/* 種のアニメーション */
.seed {
  transform-origin: center;
  animation: seedPulse 1s ease forwards;
  opacity: 0;
}

@keyframes seedPulse {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 茎の成長アニメーション */
.stem {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: growStem 2s ease forwards;
  animation-delay: 1s;
}

@keyframes growStem {
  to {
    stroke-dashoffset: 0;
  }
}

/* 葉のアニメーション */
.leaf {
  opacity: 0;
  transform-origin: 100px 200px;
  animation: growLeaf 0.8s ease forwards;
}

.leaf-1 {
  animation-delay: 2s;
}

.leaf-2 {
  animation-delay: 2.3s;
}

@keyframes growLeaf {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 花びらのアニメーション */
.flower {
  transform-origin: 100px 100px;
}

.petal {
  opacity: 0;
  animation: bloomPetal 0.8s ease forwards;
}

.petal-1 {
  animation-delay: 3s;
}

.petal-2 {
  animation-delay: 3.1s;
}

.petal-3 {
  animation-delay: 3.2s;
}

.petal-4 {
  animation-delay: 3.2s;
}

.petal-5 {
  animation-delay: 3.25s;
}

.petal-6 {
  animation-delay: 3.3s;
}

.petal-7 {
  animation-delay: 3.35s;
}

.petal-8 {
  animation-delay: 3.4s;
}

@keyframes bloomPetal {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 花の中心 */
.flower-center,
.flower-center-inner,
.flower-center-dot {
  opacity: 0;
  transform-origin: center;
  animation: bloomFlowerCenter 0.5s ease forwards;
}

.flower-center {
  animation-delay: 3.5s;
}

.flower-center-inner {
  animation-delay: 3.7s;
}

.flower-center-dot {
  animation-delay: 3.9s;
}

/* キラキラ効果 */
.sparkle {
  opacity: 0;
  animation: sparkleAnim 0.8s ease forwards;
}

.sparkle-1 {
  animation-delay: 3.8s;
}

.sparkle-2 {
  animation-delay: 3.9s;
}

.sparkle-3 {
  animation-delay: 4.0s;
}

.sparkle-4 {
  animation-delay: 4.1s;
}

@keyframes sparkleAnim {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
  100% {
    opacity: 0.8;
    transform: scale(1);
  }
}

/* ヒーローコンテンツ */
.hero-modern .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  padding: 0 30px;
}

/* ブランドメッセージ - REXEED = RE × EXCEED */
.hero-brand-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 4.5s;
}

.brand-real,
.brand-seed {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.brand-real {
  color: var(--main-color);
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

.brand-seed {
  color: #2d6a4f;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
}

.brand-x {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--accent-color);
  margin: 0 0.4rem;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-style: italic;
}

.hero-title-modern {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2rem;
  letter-spacing: 0.08em;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
  animation-delay: 4.8s;
}

.title-line:nth-child(2) {
  animation-delay: 5.1s;
}

.title-line:nth-child(3) {
  animation-delay: 5.4s;
}

.accent-text {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.accent-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.6s ease forwards;
  animation-delay: 5.6s;
}

@keyframes underlineGrow {
  to {
    transform: scaleX(1);
  }
}

/* インラインアクセント（説明文内） */
.accent-text-inline {
  color: var(--accent-color);
  font-weight: 500;
}

.hero-subtitle-modern {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 5.5s;
}

.hero-description {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-dark);
  line-height: 2;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 5.8s;
  max-width: 800px;
  margin: 0 auto;
}

.hero-description-highlight {
  display: block;
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-weight: 500;
  color: var(--main-color);
  border-top: 1px solid rgba(197, 160, 89, 0.3);
}

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  
  .sp-only {
    display: inline;
  }
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeInScrollIndicator 1s ease forwards;
  animation-delay: 6.5s;
}

.scroll-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--main-color);
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--main-color), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 15px;
  background: var(--accent-color);
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% {
    transform: translateY(-15px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(50px);
    opacity: 0;
  }
}

@keyframes fadeInScrollIndicator {
  to {
    opacity: 1;
  }
}

/* モバイル対応 */
@media (max-width: 768px) {
  .hero-modern {
    min-height: 600px;
  }
  
  .hero-title-modern {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  
  .sp-only {
    display: inline;
  }
  
  /* モバイルではSVGラインを非表示（テキストとの重複を防止） */
  .architectural-lines {
    display: none;
  }
  
  .geometric-accent {
    display: none;
  }
  
  /* モバイルでは花のサイズを調整 */
  .seed-flower-svg {
    width: 180px;
    height: 260px;
  }
  
  .seed-to-flower-animation {
    top: 40%;
  }
  
  .accent-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 5%;
  }
  
  .accent-2 {
    width: 50px;
    height: 50px;
    left: 5%;
  }
  
  .scroll-indicator {
    bottom: 30px;
  }
  
  .scroll-line {
    height: 40px;
  }
}

/* タブレット */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-modern {
    min-height: 800px;
  }
  
  .hero-title-modern {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  
  /* タブレットではラインの高さを調整（テキストとの重複を防止） */
  .architectural-lines {
    height: 35%;
  }
  
  .accent-1 {
    width: 100px;
    height: 100px;
  }
  
  .accent-2 {
    width: 60px;
    height: 60px;
  }
}

/* アニメーション削減設定 */
@media (prefers-reduced-motion: reduce) {
  .hero-modern .title-line,
  .hero-modern .hero-subtitle-modern,
  .hero-modern .hero-description,
  .hero-modern .scroll-indicator,
  .hero-brand-message,
  .line-path,
  .geometric-accent,
  .accent-text::after,
  .scroll-line::after,
  .seed,
  .stem,
  .leaf,
  .petal,
  .flower-center,
  .flower-center-inner,
  .flower-center-dot,
  .sparkle,
  .seed-to-flower-animation {
    animation: none;
    opacity: 1;
  }
  
  .seed-to-flower-animation {
    opacity: 0;
  }
  
  .stem {
    stroke-dashoffset: 0;
  }
  
  /* 回転は保持（デザイン意図の維持） */
  .accent-2 {
    transform: rotate(45deg);
  }
  
  .line-path {
    stroke-dashoffset: 0;
  }
}

