/*
Theme Name: VILEM
Theme URI: https://vilem.jp
Author: VILEM
Author URI: https://vilem.jp
Description: 九州の「海外観光客向け」映像制作会社VILEMのオフィシャルテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vilem
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* Base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: #111827;
  line-height: 1.5;
}

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

a {
  text-decoration: none;
}

.no-underline {
  text-decoration: none !important;
}

/* Utility classes */
.min-h-screen {
  min-height: 100vh;
}

.min-h-80vh {
  min-height: 80vh;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2-5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.pt-8 {
  padding-top: 2rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-4 {
  padding: 1rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-0-5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mt-8 {
  margin-top: 2rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.h-24 {
  height: 6rem;
}

.h-5 {
  height: 1.25rem;
}

.h-6 {
  height: 1.5rem;
}

.h-12 {
  height: 3rem;
}

.h-4 {
  height: 1rem;
}

.h-64 {
  height: 16rem;
}

.w-full {
  width: 100%;
}

.w-6 {
  width: 1.5rem;
}

.w-5 {
  width: 1.25rem;
}

.w-36 {
  width: 9rem;
}

.w-4 {
  width: 1rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-lg {
  max-width: 32rem;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.flex-col {
  flex-direction: column;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-12 {
  gap: 3rem;
}

.gap-0 {
  gap: 0;
}

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

.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

.text-60px {
  font-size: 3.75rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.leading-tight {
  line-height: 1.25;
}

.leading-snug {
  line-height: 1.375;
}

.leading-none {
  line-height: 1;
}

.tracking-tighter {
  letter-spacing: -0.05em;
}

.text-white {
  color: #fff;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-900 {
  color: #111827;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-600 {
  color: #4b5563;
}

.text-gray-500 {
  color: #6b7280;
}

.text-gray-300 {
  color: #d1d5db;
}

.navy-text {
  color: #1a2e4c;
}

.bg-white {
  background-color: #fff;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-gray-800 {
  background-color: #1f2937;
}

.bg-yellow-400 {
  background-color: #fbbf24;
}

.bg-yellow-400-90 {
  background-color: rgba(251, 191, 36, 0.9);
}

.bg-yellow-50 {
  background-color: #fffbeb;
}

.bg-white-20 {
  background-color: rgba(255, 255, 255, 0.2);
}

.bg-transparent {
  background-color: transparent;
}

.bg-opacity-50 {
  background-color: rgba(0, 0, 0, 0.5);
}

.bg-opacity-95 {
  background-color: rgba(255, 255, 255, 0.95);
}

.border {
  border-width: 1px;
}

.border-0 {
  border-width: 0 !important;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-400 {
  border-color: #9ca3af;
}

.border-gray-800 {
  border-color: #1f2937;
}

.border-gray-700 {
  border-color: #374151;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-white-30 {
  border-color: rgba(255, 255, 255, 0.3);
}

.border-yellow-200 {
  border-color: #fef08a;
}

.rounded-md {
  border-radius: 0.375rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.overflow-hidden {
  overflow: hidden;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.drop-shadow-lg {
  filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1));
}

.drop-shadow-sm {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.object-cover {
  object-fit: cover;
}

.object-contain {
  object-fit: contain;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.z-0 {
  z-index: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

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

.aspect-square {
  aspect-ratio: 1 / 1;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.aspect-4-3 {
  aspect-ratio: 4 / 3;
}

.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Header styles */
.logo-container {
  position: relative;
  width: 8rem;
  height: 2.5rem;
}

.logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer logo container */
.footer-logo-container {
  position: relative;
  width: 120px;
  height: 40px;
  margin-bottom: 0.5rem;
}

.footer-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.header-button {
  transition: all 0.3s ease;
}

.header-button:hover {
  background-color: #1f2937;
  color: white;
}

/* Header catchphrase */
.header-catchphrase {
  color: #1a2e4c;
  font-weight: 500;
}

/* Company description style - 削除 */
/* Company description style */
.company-description {
  position: relative;
  display: inline-block;
  padding: 0 2px;
}

.company-description::before,
.company-description::after {
  content: "";
  position: absolute;
  left: -2px;
  top: 0;
  color: #1a2e4c;
}

.company-description::after {
  content: "";
  left: auto;
  right: -2px;
}

/* Hero section */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-image-container {
  width: 100%;
  height: 100%;
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hover effects */
.hover-bg-gray-800:hover {
  background-color: #1f2937;
}

.hover-bg-gray-700:hover {
  background-color: #374151;
}

.hover-bg-yellow-300:hover {
  background-color: #fcd34d;
}

.hover-bg-gray-200:hover {
  background-color: #e5e7eb;
}

.hover-text-white:hover {
  color: #fff;
}

/* Order classes for responsive layouts */
.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

/* Media Queries */
@media (min-width: 640px) {
  .sm-hidden {
    display: none;
  }

  .sm-inline {
    display: inline;
  }

  .sm-text-3xl {
    font-size: 1.875rem;
  }

  .sm-text-2xl {
    font-size: 1.5rem;
  }

  .sm-text-xl {
    font-size: 1.25rem;
  }
}

@media (min-width: 768px) {
  .md-block {
    display: block;
  }

  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md-order-1 {
    order: 1;
  }

  .md-order-2 {
    order: 2;
  }

  .md-p-8 {
    padding: 2rem;
  }

  .md-items-end {
    align-items: flex-end;
  }

  .md-text-4xl {
    font-size: 2.25rem;
  }

  .md-text-3xl {
    font-size: 1.875rem;
  }

  .md-text-2xl {
    font-size: 1.5rem;
  }

  .md-text-xl {
    font-size: 1.25rem;
  }

  .md-text-lg {
    font-size: 1.125rem;
  }

  .md-text-base {
    font-size: 1rem;
  }

  .section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .md\:h-auto {
    height: auto;
  }

  .md\:items-end {
    align-items: flex-end;
  }
}

@media (min-width: 1024px) {
  .lg-text-5xl {
    font-size: 3rem;
  }

  .lg-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ボタンスタイルの修正 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border-radius: 0.375rem;
  transition-property: background-color, border-color, color;
  transition-duration: 300ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  border: 0;
}

.btn-primary {
  background-color: #1a2e4c;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary:hover {
  background-color: #2c4a7c;
}

.btn-outline {
  background-color: #1a2e4c;
  color: white;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-outline:hover {
  background-color: #2c4a7c;
  color: white;
}

.btn-yellow {
  background-color: #fbbf24;
  color: #111827;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  border: 0;
}

.btn-yellow:hover {
  background-color: #fcd34d;
}

.btn-white {
  background-color: white;
  color: #1f2937;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.btn-white:hover {
  background-color: #e5e7eb;
}

/* レスポンシブ修正 */
@media (max-width: 767px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  .hero-section h2 {
    font-size: 1.25rem;
  }

  .hero-section p.text-lg {
    font-size: 1.125rem;
  }

  .section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* 制作実績セクションのレスポンシブ対応 */
  .grid.md-grid-cols-2 > div {
    width: 100%;
  }

  .grid.md-grid-cols-2 > div.order-1.md-order-2 {
    order: 1;
    margin-bottom: 0rem;
  }

  .grid.md-grid-cols-2 > div.order-2.md-order-1 {
    order: 2;
    margin-top: 0rem;
  }

  /* セクション間の余白を調整 */
  .section-padding {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* 見出しのマージンを調整 */
  .mb-12 {
    margin-bottom: 2rem;
  }

  /* 制作実績カードの余白を調整 */
  .mb-16 {
    margin-bottom: 2.5rem;
  }

  /* 制作実績カードの内部余白を統一 */
  .portfolio-content {
    padding: 1.25rem;
  }
}

/* チェックボックスのスタイル */
.w-6.h-6.border.border-gray-400.flex-shrink-0.mt-0-5.relative {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9fafb;
}

.w-6.h-6.border.border-gray-400.flex-shrink-0.mt-0-5.relative svg {
  color: #1f2937;
}

/* WordPress特有のスタイル */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.entry-content {
  margin: 1.5rem 0;
}

.entry-title {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.page-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.post-thumbnail {
  margin-bottom: 1.5rem;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
}

.nav-previous,
.nav-next {
  max-width: 48%;
}

.nav-subtitle {
  display: block;
  font-size: 0.875rem;
  color: #6b7280;
}

.nav-title {
  font-weight: 500;
}

.cat-links,
.tags-links {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

/* アイコンを含むボタンのスタイル */
.btn-with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-with-icon svg {
  margin-left: 0.5rem;
}

/* 制作実績セクションのレスポンシブ対応強化 */
@media (max-width: 767px) {
  .grid.md-grid-cols-2 {
    display: flex;
    flex-direction: column;
  }

  .grid.md-grid-cols-2 > div.relative.aspect-video {
    height: 200px;
  }

  .grid.md-grid-cols-2 > div.p-6 {
    padding: 1rem;
  }

  /* 画像の高さを固定し、モバイル表示時に適切なサイズになるようにする */
  .h-64 {
    height: 200px !important;
  }
}

/* 画像コンテナのスタイル調整 */
.relative.aspect-video.w-full.h-64 {
  overflow: hidden;
}

/* 画像のオブジェクトフィット調整 */
.relative.aspect-video.w-full.h-64 img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* デスクトップ表示時の画像高さを自動に戻す */
@media (min-width: 768px) {
  .md\:h-auto {
    height: auto !important;
  }
}

/* 制作実績セクションのスタイル */
.portfolio-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 768px) {
  .portfolio-image {
    height: auto;
  }

  .portfolio-content {
    padding: 2rem;
  }

  .portfolio-card .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 課題提起セクションの画像と下のテキストの間隔調整 */
.grid.md-grid-cols-2.gap-12.items-center.mb-4 + p.text-center {
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .grid.md-grid-cols-2.gap-12.items-center.mb-4 {
    margin-bottom: 0.5rem;
  }

  .grid.md-grid-cols-2.gap-12.items-center.mb-4 + p.text-center {
    margin-top: 0.5rem;
  }
}

/* デスクトップ表示時の調整 */
@media (min-width: 768px) {
  .grid.md-grid-cols-2.gap-12.items-center.mb-4 + p.text-center {
    margin-top: 0.5rem;
  }
}

/* こんな悩みを抱えていませんか？セクションの間隔調整 */
@media (max-width: 767px) {
  .grid.md-grid-cols-2.gap-12.items-center.mb-4 {
    margin-bottom: 0.5rem;
  }

  .grid.md-grid-cols-2.gap-12.items-center.mb-4 + p.text-center {
    margin-top: 0.5rem;
  }
}

/* デスクトップ表示時の調整 */
@media (min-width: 768px) {
  .grid.md-grid-cols-2.gap-12.items-center.mb-4 + p.text-center {
    margin-top: 0.5rem;
  }
}

/* 課題提起セクションのレスポンシブ対応 */
.problem-section .mobile-problem-conclusion {
  display: none;
}

@media (max-width: 767px) {
  .problem-section .mobile-problem-conclusion {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0;
  }

  .desktop-problem-conclusion {
    display: none;
  }
}

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

  .desktop-problem-conclusion {
    display: block;
  }
}
