/* Auxiliary Pages Styles for Oto no Tabi - Modern Design */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background-color: #ffffff;
}

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

/* Color Variables */
:root {
  --primary-color: #1a365d;
  --secondary-color: #2d5a87;
  --accent-color: #e53e3e;
  --text-color: #2d3748;
  --light-bg: #f7fafc;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-xxl: 64px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  --gradient-overlay: linear-gradient(
    135deg,
    rgba(26, 54, 93, 0.8) 0%,
    rgba(45, 90, 135, 0.6) 100%
  );
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  color: var(--primary-color);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.5;
}

ul,
ol {
  margin-bottom: var(--spacing-sm);
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color);
}

/* Header with Background Image */
.header {
  position: relative;
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  padding: var(--spacing-xxl) 0;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://images.pexels.com/photos/164821/pexels-photo-164821.jpeg?auto=compress&cs=tinysrgb&w=1920&h=600&fit=crop");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: -1;
}

.header-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  width: 60px;
  height: 60px;
  margin-bottom: var(--spacing-sm);
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.brand-name {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: var(--spacing-xs);
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
  font-style: italic;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.main-content {
  padding: var(--spacing-xxl) 0;
  min-height: 60vh;
  background: linear-gradient(to bottom, var(--light-bg) 0%, var(--white) 100%);
}

.page-header {
  text-align: center;
  margin-bottom: var(--spacing-xxl);
  padding-bottom: var(--spacing-lg);
  position: relative;
}

.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.page-header h1 {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
  font-style: italic;
}

/* Content Sections with Images */
.content-section {
  margin-bottom: var(--spacing-xxl);
  padding: var(--spacing-xl);
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.content-section:last-child {
  margin-bottom: 0;
}

/* Add decorative images to specific sections */
.content-section:nth-child(2)::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 120px;
  background-image: url("https://images.pexels.com/photos/7005474/pexels-photo-7005474.jpeg?auto=compress&cs=tinysrgb&w=400&h=240&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  border-radius: 0 16px 0 50px;
  z-index: 0;
}

.content-section:nth-child(4)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 180px;
  height: 100px;
  background-image: url("https://images.pexels.com/photos/1181244/pexels-photo-1181244.jpeg?auto=compress&cs=tinysrgb&w=360&h=200&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  border-radius: 16px 0 50px 0;
  z-index: 0;
}

.content-section:nth-child(6)::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 160px;
  height: 90px;
  background-image: url("https://images.pexels.com/photos/159832/book-reading-reading-book-open-159832.jpeg?auto=compress&cs=tinysrgb&w=320&h=180&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  border-radius: 50px 0 16px 0;
  z-index: 0;
}

.content-section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--accent-color);
}

.content-section h3 {
  color: var(--secondary-color);
  font-size: 1.3rem;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  position: relative;
  z-index: 1;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.content-section ul {
  margin-bottom: var(--spacing-md);
  position: relative;
  z-index: 1;
}

.content-section li {
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: var(--spacing-sm);
}

.content-section li::before {
  content: "▸";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Special styling for contact sections */
.content-section:last-child {
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
}

.content-section:last-child h2 {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.content-section:last-child h2::after {
  background: var(--white);
}

.content-section:last-child p,
.content-section:last-child li {
  color: rgba(255, 255, 255, 0.95);
}

.content-section:last-child li::before {
  color: var(--white);
}

/* Enhanced visual elements */
.content-section strong {
  color: var(--primary-color);
  font-weight: 600;
}

.content-section:last-child strong {
  color: var(--white);
}

/* Footer */
.footer {
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xxl);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("https://images.pexels.com/photos/2506923/pexels-photo-2506923.jpeg?auto=compress&cs=tinysrgb&w=1200&h=300&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  justify-content: center;
}

.footer-links a {
  color: var(--white);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-info {
  opacity: 0.9;
}

.footer-info p {
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: var(--spacing-xl) 0;
    min-height: 300px;
  }

  .brand-name {
    font-size: 2rem;
  }

  .logo {
    width: 50px;
    height: 50px;
  }

  .tagline {
    font-size: 0.9rem;
  }

  .main-content {
    padding: var(--spacing-xl) 0;
  }

  .page-header {
    margin-bottom: var(--spacing-xl);
  }

  .page-header h1 {
    font-size: 2.2rem;
  }

  .content-section {
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .content-section h3 {
    font-size: 1.2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  /* Hide decorative images on mobile for better performance */
  .content-section::before {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .header {
    min-height: 250px;
  }

  .brand-name {
    font-size: 1.8rem;
  }

  .logo {
    width: 45px;
    height: 45px;
  }

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

  .content-section {
    padding: var(--spacing-md);
    border-radius: 12px;
  }

  .content-section h2 {
    font-size: 1.3rem;
  }

  .content-section p,
  .content-section li {
    font-size: 1rem;
  }

  .footer {
    padding: var(--spacing-lg) 0;
  }

  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.25rem;
  }
  h3 {
    font-size: 1.1rem;
  }
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

.content-section:nth-child(even) {
  animation-delay: 0.1s;
}

.content-section:nth-child(odd) {
  animation-delay: 0.2s;
}

/* Print styles */
@media print {
  .header::before,
  .footer::before,
  .content-section::before {
    display: none !important;
  }

  .header,
  .footer {
    background: var(--white) !important;
    color: var(--text-color) !important;
  }

  .brand-name,
  .tagline {
    color: var(--text-color) !important;
    text-shadow: none !important;
  }

  .content-section {
    box-shadow: none !important;
    border: 1px solid var(--border-color) !important;
    break-inside: avoid;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .content-section {
    animation: none;
  }

  .content-section:hover {
    transform: none;
  }

  .footer-links a:hover {
    transform: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .content-section {
    border-width: 2px;
  }

  .content-section h2::after {
    height: 3px;
  }
}
.otonotabi-style-blog-list {
  padding: 4vw 5vw;
  background-color: #fafafa;
  font-family: "Noto Serif JP", serif;
}

.otonotabi-style-blog-list-title {
  font-size: 2.5vw;
  margin-bottom: 2vw;
  text-align: center;
  color: #222;
}

.otonotabi-style-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2vw;
}

.otonotabi-style-blog-card {
  display: block;
  padding: 2vw;
  border: 1px solid #ddd;
  border-radius: 1vw;
  text-decoration: none;
  background-color: white;
  transition: box-shadow 0.3s ease;
  color: #333;
}

.otonotabi-style-blog-card:hover {
  box-shadow: 0 0.4vw 1.2vw rgba(0, 0, 0, 0.1);
}

.otonotabi-style-blog-card h3 {
  font-size: 1.4vw;
  margin-bottom: 1vw;
  color: #111;
}

.otonotabi-style-blog-card p {
  font-size: 1vw;
  line-height: 1.6;
  color: #666;
}
.otonotabi-style-blog-article {
  max-width: 70vw;
  margin: 5vw auto;
  padding: 3vw;
  background-color: #ffffff;
  border-radius: 1vw;
  box-shadow: 0 0.4vw 1vw rgba(0, 0, 0, 0.05);
  font-family: "Noto Serif JP", serif;
  color: #333;
  line-height: 1.8;
}

/* Заголовок статті */
.otonotabi-style-blog-article h1 {
  font-size: 2.5vw;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2.5vw;
  color: #1a1a1a;
}

.otonotabi-style-blog-article h2 {
  font-size: 1.8vw;
  font-weight: 500;
  margin-top: 3vw;
  margin-bottom: 1vw;
  color: #2a2a2a;
  border-left: 0.4vw solid #aaa;
  padding-left: 1vw;
}
.otonotabi-style-blog-article h3 {
  font-size: 1.8vw;
  font-weight: 500;
  margin-top: 3vw;
  margin-bottom: 1vw;
  color: #2a2a2a;
  border-left: 0.4vw solid #aaa;
  padding-left: 1vw;
}

/* Абзаци */
.otonotabi-style-blog-article p {
  font-size: 1.1vw;
  margin-bottom: 1.5vw;
  color: #444;
}

/* Посилання */
.otonotabi-style-blog-article a {
  color: #0066cc;
  text-decoration: underline;
}

.otonotabi-style-blog-article a:hover {
  text-decoration: none;
}
.sr-only {
  visibility: hidden;
}

/* Медіа-запит для мобільних */
@media screen and (max-width: 768px) {
  .otonotabi-style-blog-article {
    max-width: 88vw;
    padding: 6vw;
  }

  .otonotabi-style-blog-article h1 {
    font-size: 6vw;
  }
  .otonotabi-style-blog-article h2 {
    font-size: 4.5vw;
  }
  .otonotabi-style-blog-article h3 {
    font-size: 4.5vw;
  }

  .otonotabi-style-blog-article p {
    font-size: 4vw;
  }
}
