/* Theme Name: yaruken */

/* Common Styles */
:where([class^='ri-'])::before {
  content: '\f3c2';
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  padding-top: 80px; /* Space for fixed header */
}

a {
  /* display: block; */
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.7 !important;
}

/* Hero Image */
.hero-image {
  background-position: right center;
  background-repeat: no-repeat;
  background-size: 55% 100%;
}

/* Doodle */
.doodle {
  position: absolute;
  z-index: 0;
}

/* Program Card */
.program-card {
  transition: all 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
}

/* Testimonial Card */
.testimonial-card {
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* Blog Card */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

/* News Card */
.news-card {
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Case Card */
.case-card {
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Floating Shapes Animation */
.floating-shape {
  position: absolute;
  animation: float 6s ease-in-out infinite;
  opacity: 0.15;
}

.shape-1 {
  animation-delay: 0s;
}

.shape-2 {
  animation-delay: 1.2s;
}

.shape-3 {
  animation-delay: 2.4s;
}

.shape-4 {
  animation-delay: 3.6s;
}

.shape-5 {
  animation-delay: 4.8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(8deg);
  }
}

/* SP表示での調整 */
@media (max-width: 768px) {
  /* 位置を上下左右に広げて重なりを減らす */
  .shape-1 {
    top: 5% !important;
    right: 5% !important;
    left: auto !important;
  }

  .shape-2 {
    top: 25% !important;
    right: 2% !important;
    left: auto !important;
  }

  .shape-3 {
    bottom: 10% !important;
    right: 8% !important;
    left: auto !important;
  }

  .shape-4 {
    top: 15% !important;
    left: 2% !important;
    right: auto !important;
  }

  .shape-5 {
    bottom: 5% !important;
    left: 5% !important;
    right: auto !important;
  }
}

/* Slide In Animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-100px) rotate(var(--rotation));
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(var(--rotation));
  }
}

.animate-slide-in {
  animation: slideIn 0.8s ease-out forwards;
}

/* Sticky Nav */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Fixed Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
}

/* Scrollbar Hide */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Tab Button Styles */
.tab-button {
  color: #4b5563;
  background-color: #f9fafb;
}

.tab-button:hover {
  transform: translateY(-1px);
}

.tab-button:not(.active) {
  border-color: transparent;
}

.tab-button.active {
  color: #dd0414;
  background-color: #ffffff;
  border-color: #e5e7eb;
  border-bottom-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(221, 4, 20, 0.08);
}

.tab-button.active .indicator {
  opacity: 1;
}

.tab-content.hidden {
  display: none;
}

/* Article Content Styles */
.article-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #dd0414;
}

.article-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #dd0414;
}

.article-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content h5 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.article-content h6 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #4b5563;
}

.article-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  overflow-wrap: break-word;
}

.article-content ul {
  list-style-type: disc;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.article-content ol {
  list-style-type: decimal;
  padding-left: 1.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.article-content li {
  margin-bottom: 0.75rem;
}

.article-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: #4b5563;
  font-style: italic;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.article-content th,
.article-content td {
  border: 1px solid #d1d5db;
  padding: 1rem;
  text-align: left;
}

.article-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.article-content a {
  color: #dd0414;
  text-decoration: underline;
}

.article-content a:hover {
  text-decoration: none;
}

.article-content .pullquote {
  margin: 2.5rem auto;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 600;
  color: #dd0414;
  border-top: 3px solid #dd0414;
  border-bottom: 3px solid #dd0414;
  max-width: 80%;
}

.article-content .pullquote blockquote p {
  color: #dd0414;
}

.article-content .footnote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6b7280;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.article-content .cover-block {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  margin: 2.5rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.article-content .cover-block img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  margin: 0;
  border-radius: 0;
}

.article-content .cover-block .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.article-content .cover-block .cover-content {
  position: relative;
  z-index: 3;
  padding: 2rem;
}

.article-content .media-text-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.article-content .media-text-block .media {
  flex: 1 1 300px;
}

.article-content .media-text-block .text {
  flex: 1 1 300px;
}

.article-content .buttons-block {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2.5rem 0;
}

.article-content .button {
  background-color: #dd0414;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s;
}

.article-content .button.is-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.article-content .button:hover {
  background-color: #b90312;
}

.article-content .button.is-style-outline {
  background-color: transparent;
  color: #dd0414;
  border: 2px solid #dd0414;
}

.article-content .button.is-style-outline:hover {
  background-color: #dd0414;
  color: white;
}

.article-content .social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.article-content .social-icons a {
  font-size: 1.75rem;
  color: #6b7280;
  text-decoration: none;
}

.article-content .social-icons a:hover {
  color: #dd0414;
}

.article-content .read-more-separator {
  text-align: center;
  margin: 2.5rem 0;
}

.article-content .read-more-separator::before,
.article-content .read-more-separator::after {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 1px;
  background-color: #d1d5db;
  vertical-align: middle;
  margin: 0 1rem;
}

.article-content .author-profile {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 8px;
  align-items: center;
}

.article-content .author-profile img {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  margin: 0;
}

.article-content .table-of-contents {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.article-content .table-of-contents h3 {
  border: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.article-content .table-of-contents ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-content .table-of-contents li {
  margin-bottom: 0.5rem;
}

.article-content .table-of-contents a {
  text-decoration: none;
}

.article-content .table-of-contents a:hover {
  text-decoration: underline;
}

/* Sidebar Styles */
.sidebar {
  position: sticky;
  top: 128px;
  align-self: flex-start;
}

/* Company Info Card */
.company-info-card {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.company-info-card .title-badge {
  background-color: #1f2937;
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: bold;
  display: inline-block;
  position: relative;
  top: -4rem;
  margin-bottom: -3rem;
}

.company-info-card .logo {
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
}

.company-info-card .logo img {
  max-height: 60px;
}

.company-info-card .info-block {
  text-align: left;
  margin-bottom: 1.5rem;
}

.company-info-card .info-block dt {
  font-weight: bold;
  color: #4b5563;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.company-info-card .info-block dd {
  font-size: 0.95rem;
  color: #1f2937;
  line-height: 1.6;
}

.company-info-card .info-block a {
  word-break: break-all;
}

/* 追記 */
.wp-block-table thead {
  border-bottom: none !important;
}

.text-center.mt-12 {
  text-align: center;
  margin-top: 2rem;
}

.wp-block-buttons .wp-block-button__link {
  text-decoration: none !important;
}

.article-content blockquote {
  border-left: none !important;
  padding-left: 0 !important;
}

.text-4xl {
  font-size: 1.875rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  /* border-bottom: 2px solid #dd0414 !important; */
}

.wp-block-cover {
  border-radius: 8px;
}

.outline-button a {
  transition: all 0.3s ease;
}
.outline-button a:hover {
  background-color: #dd0414;
  color: #ffffff !important;
  border: 2px solid #dd0414 !important;
}

.flex-80 {
  flex: 80;
  min-width: 80px;
}

.flex-520 {
  flex: 520;
}

hr {
  --tw-border-opacity: 1 !important;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1)) !important;
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.wp-block-pullquote {
  margin: 2.5rem auto;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 600;
  color: #dd0414;
  border-top: 3px solid #dd0414;
  border-bottom: 3px solid #dd0414;
  max-width: 80%;
}

.wp-block-pullquote blockquote p {
  color: #dd0414;
}

.contact-form-radio-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

.contact-form-checkbox-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin-bottom: 0 !important;
}

/* Blog card hover effect - override inline styles */
a.blog-card {
  transition-property: opacity !important;
  transition-duration: 0.3s !important;
  transition-timing-function: ease !important;
}
a.blog-card:hover {
  opacity: 0.7 !important;
}
