/* DEKIRU-JAN - Design System & Stylesheet */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* CSS Variables */
:root {
  --primary-color: #2c5282;      /* クリーンブルー (信頼・冷静) */
  --primary-light: #ebf8ff;
  --accent-color: #319795;       /* エメラルドグリーン (安心・回復) */
  --accent-light: #e6fffa;
  --text-dark: #2d3748;          /* 読みやすいダークグレー */
  --text-muted: #718096;         /* 補足用グレー */
  --bg-light: #f7fafc;           /* クリーンな淡いグレー */
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  
  --font-base: 'Noto Sans JP', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --box-shadow-subtle: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --box-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary-color);
}

p {
  margin-bottom: 1.0rem;
  font-weight: 400;
}

/* Typography Utilities */
.lead-text {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 2.0;
  color: var(--primary-color);
  margin-bottom: 24px;
}

/* Highlight & Box Utilities */
.highlight-box {
  background-color: var(--primary-light);
  padding: 24px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
  margin: 40px 0;
}

.info-card-accent {
  margin: 32px 0;
  padding: 24px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-light);
}

.info-card-accent h4 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 6px;
}

.text-muted-block {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  background-color: var(--primary-light);
  padding: 16px 20px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-color);
}

.text-center {
  text-align: center;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-bg {
  background-color: var(--bg-light);
}

/* Header & Navigation */
.header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  stroke: var(--accent-color);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-white);
  box-shadow: 0 4px 6px -1px rgba(49, 151, 149, 0.2);
}

.btn-primary:hover {
  background-color: #287d7b;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(49, 151, 149, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--bg-light) url('../images/hero_bg.jpg') no-repeat center center;
  background-size: cover;
  padding: 140px 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.15); /* ヘッダー画像を少し明るくする */
  z-index: 1;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background-color: var(--accent-light);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.75rem;
  color: var(--bg-white);
  margin-bottom: 24px;
  line-height: 1.25;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.65), 0 1px 2px rgba(0, 0, 0, 0.75);
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 40px;
  line-height: 1.75;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.62), 0 1px 2px rgba(0, 0, 0, 0.72);
}

.hero .lead-text,
.hero .hero-description p,
.hero .hero-description strong {
  color: rgba(255, 255, 255, 0.96);
}

.hero blockquote {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  text-shadow: none;
}

.hero blockquote p,
.hero blockquote strong {
  color: #163f5f !important;
  text-shadow: none;
}

.hero .btn-outline {
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.86);
  background-color: rgba(8, 23, 38, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.hero .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: var(--bg-white);
}

/* Grid & Columns (3 Columns Section) */
.section-title {
  font-size: 2rem;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px auto;
  font-size: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card {
  background-color: var(--bg-white);
  padding: 40px 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-subtle);
  transition: var(--transition-smooth);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--accent-color);
}

.card-icon {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 24px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Intro Section (2 Columns Split) */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-image-container {
  background-color: var(--bg-light);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--box-shadow-subtle);
}

.split-image {
  width: 100%;
  height: 380px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.split-content h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.split-content p {
  font-size: 1rem;
  color: var(--text-dark);
}

/* Process Steps */
.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-item {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 25px;
  top: 60px;
  bottom: -40px;
  width: 2px;
  background-color: var(--border-color);
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.step-content {
  padding-top: 6px;
}

.step-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step-description {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Profile Section */
.profile-section {
  display: flex;
  gap: 48px;
  align-items: center;
  background-color: var(--bg-light);
  padding: 48px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.profile-avatar-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-white);
  box-shadow: var(--box-shadow-subtle);
  flex-shrink: 0;
}

.profile-content h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.profile-sub {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Call to Action (CTA) */
.cta {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a365d 100%);
  color: var(--bg-white);
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cta h2 {
  color: var(--bg-white);
  font-size: 2.25rem;
  margin-bottom: 20px;
  line-height: 1.4;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
}

.cta .btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.cta .btn-primary:hover {
  background-color: #287d7b;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background-color: #1a202c;
  color: #a0aec0;
  padding: 60px 0;
  border-top: 1px solid #2d3748;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-nav a {
  color: #a0aec0;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--bg-white);
}

.copyright {
  font-size: 0.85rem;
  margin-top: 24px;
  border-top: 1px solid #2d3748;
  padding-top: 24px;
}

/* ==========================================
   Subpages / Lower-level Pages Styles
   ========================================== */

/* Subpage Header (Hero block) */
.page-header {
  position: relative;
  background: var(--primary-color) url('../images/hero_bg.jpg') no-repeat center center;
  background-size: cover;
  padding: 70px 0;
  text-align: center;
  color: var(--bg-white);
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* 暗くして文字を読ませる */
  z-index: 1;
}

.page-header-container {
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 2.25rem;
  color: var(--bg-white);
  margin-bottom: 8px;
}

.page-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

/* Breadcrumb Navigation */
.breadcrumb {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  gap: 8px;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--text-muted);
}

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

.breadcrumb-item::after {
  content: '/';
  margin-left: 8px;
}

.breadcrumb-item:last-child::after {
  content: '';
}

.breadcrumb-item.active {
  color: var(--text-dark);
  font-weight: 500;
}

/* Main Content Layout for Subpages */
.main-wrapper {
  padding: 80px 0;
}

.content-single {
  max-width: 800px;
  margin: 0 auto;
}

/* Article & Styled Text styling */
.post-body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.post-body h2 {
  font-size: 1.6rem;
  margin: 48px 0 24px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-color);
}

.post-body h3 {
  font-size: 1.35rem;
  margin: 36px 0 18px 0;
  padding-left: 14px;
  border-left: 4px solid var(--primary-color);
}

.post-body p {
  margin-bottom: 1.8rem;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.8rem;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 0.5rem;
}

.post-body blockquote {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary-color);
  padding: 24px 32px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

.post-body strong {
  color: var(--primary-color);
}

/* Tables (Pricing etc.) */
.post-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

.post-table th, .post-table td {
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.post-table th {
  background-color: var(--bg-light);
  color: var(--primary-color);
  font-weight: 700;
  width: 250px;
}

.post-table td {
  background-color: var(--bg-white);
}

/* Blog List Card styling additions */
.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.blog-tag {
  background-color: var(--primary-light);
  color: var(--primary-color);
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.blog-tag.tag-accent {
  background-color: var(--accent-light);
  color: var(--accent-color);
}

.read-more-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.read-more-link:hover {
  color: var(--primary-color);
}

/* Post navigation (Next/Prev article) */
.post-navigation {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  padding-top: 30px;
}

.post-nav-item {
  max-width: 45%;
}

.post-nav-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.post-nav-title {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Responsive Design Adjustments */
@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .split-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .split-image {
    height: 280px;
  }
  
  .hero {
    padding: 100px 0;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-title {
    font-size: 2.25rem;
  }
  
  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
  }
  
  .header-container {
    position: relative;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .nav-toggle-label {
    display: flex;
    align-items: center;
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 1000;
  }
  
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background-color: var(--text-dark);
    position: absolute;
    height: 2px;
    width: 24px;
    border-radius: 2px;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .nav-toggle-label span::before {
    content: '';
    top: -8px;
  }
  
  .nav-toggle-label span::after {
    content: '';
    bottom: -8px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--border-color);
    padding: 24px;
    z-index: 999;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
  }
  
  .nav-list li {
    width: 100%;
    text-align: center;
  }
  
  .nav-list li a.btn {
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
  }
  
  .nav-toggle:checked ~ .nav-menu {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span {
    background-color: transparent;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::before {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span::after {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .post-table th {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  
  .post-table td {
    display: block;
    width: 100%;
  }
  
  .post-navigation {
    flex-direction: column;
    gap: 20px;
  }
  
  .post-nav-item {
    max-width: 100%;
  }
}

/* ==========================================
   Aesthetics & Animations Enhancements
   ========================================== */

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Base Transitions for Interactive Elements */
.card-icon {
  transition: var(--transition-smooth);
}

.card:hover .card-icon {
  transform: scale(1.05);
}

/* Button Active State */
.btn:active {
  transform: translateY(0);
}

/* Keyframes for Fade In Up */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animation Delays */
.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

/* ==========================================
   LINE Contact Specific Styles
   ========================================== */

.btn-line {
  background-color: #06c755;
  color: var(--bg-white) !important; /* Ensure override */
  box-shadow: 0 4px 6px -1px rgba(6, 199, 85, 0.2);
}

.btn-line:hover {
  background-color: #05ab49;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(6, 199, 85, 0.3);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: flex-start;
  margin-top: 40px;
}

.contact-qr-container {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 32px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--box-shadow-subtle);
}

.contact-qr-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-qr-container {
    display: none; /* Mobile visitors use direct tap-to-link, QR scanner hidden */
  }
}

