/*
Theme Name: SAKAZUKI
Theme URI: https://sakazuki.co.jp
Author: SAKAZUKI Inc.
Author URI: https://sakazuki.co.jp
Description: 株式会社SAKAZUKIコーポレートサイト用WordPressテーマ
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sakazuki
*/

/* =============================================
   SAKAZUKI Corporate Site - style.css
   ============================================= */

/* --- Splash Screen --- */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 1s ease;
}

.splash.splash-hide {
  opacity: 0;
}

.splash-logo {
  opacity: 0;
  animation: splashLogoIn 1.2s ease 0.3s forwards;
}

.splash-logo img {
  width: 200px;
  height: auto;
}

@keyframes splashLogoIn {
  to {
    opacity: 1;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "秀英角ゴシック金 M JIS2004", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #333;
  background: #fff;
  overflow-x: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
  transition: background 0.3s;
  mix-blend-mode: color-burn;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

.header-logo img {
  height: 24px;
  width: auto;
}

.header-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 4px 0;
}

.header-menu span {
  display: block;
  height: 2px;
  background: #000;
  border-radius: 1px;
  transition: 0.3s;
}

.header-menu span:nth-child(1) { width: 100%; }
.header-menu span:nth-child(2) { width: 70%; margin-left: auto; }
.header-menu span:nth-child(3) { width: 85%; margin-left: auto; }

.header-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.header-menu.active span:nth-child(2) {
  opacity: 0;
}
.header-menu.active span:nth-child(3) {
  width: 100%;
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Nav Overlay --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  text-align: center;
}

.nav-link {
  font-family: 'Anuphan', sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

.nav-link:hover {
  opacity: 0.6;
}

/* --- Section Common --- */
.section {
  position: relative;
  padding: 120px 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-header {
  margin-bottom: 48px;
}

.section-title-en {
  font-family: 'Anuphan', sans-serif;
  font-size: 64px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

.section-title-ja {
  font-family: "秀英角ゴシック金 B JIS2004", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-top: 4px;
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 48px;
}

.btn-more {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Anuphan', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.05em;
}

.btn-more-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid #000;
  border-radius: 50%;
  transition: 0.3s;
}

.btn-more:hover .btn-more-circle {
  background: #000;
  color: #fff;
}

/* --- Fixed Background Video --- */
.bg-video-fixed {
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: -3;
  object-fit: cover;
}

/* --- Hero --- */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}

.section-hero .section-inner {
  width: 100%;
  max-width: 100%;
  padding: 0 80px;
}

.hero-text {
  text-align: left;
}

.hero-heading {
  font-family: 'Anuphan', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
}

/* --- About --- */
.section-about {
  padding: 80px 0 120px;
}

.section-card {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0) 100%);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 80px;
  max-width: 900px;
  margin: 0 auto;
}

/* --- Section Decoration Images --- */
.section-deco-wrap {
  position: relative;
}

.section-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.section-deco img {
  width: 100%;
  height: auto;
  display: block;
}

/* ABOUT decorations */
.deco-about-tr {
  top: -60px;
  right: -80px;
  width: 220px;
}

.deco-about-bl {
  bottom: -40px;
  left: -100px;
  width: 180px;
}

.deco-about-br {
  bottom: -60px;
  right: -100px;
  width: 140px;
}

/* BUSINESS / EVENT decoration */
.deco-event-br {
  bottom: -80px;
  right: -120px;
  width: 300px;
}

/* NEWS decoration */
.deco-news-l {
  top: -40px;
  left: -140px;
  width: 220px;
}

.about-catch {
  font-family: "秀英角ゴシック金 B JIS2004", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #000;
  margin-bottom: 40px;
  line-height: 1.4;
}

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

.about-text p {
  font-size: 16px;
  line-height: 2;
  color: #000;
  margin-bottom: 24px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* --- Business --- */
.business-cards {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.business-card {
  display: block;
  position: relative;
  height: 360px;
}

.business-card-img {
  width: 100%;
  height: 100%;
  border-radius: 0px 50px 0px 50px;
  overflow: hidden;
}

.business-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.business-card-overlay {
  position: absolute;
  top: 0;
  left: 32px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  z-index: 2;
  transform: translateY(-40%);
}

.business-card-en {
  font-family: 'Anuphan', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.business-card-ja {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  padding-bottom: 4px;
}

/* --- Service --- */
.service-card {
  display: flex;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.service-card-left {
  flex: 0 0 50%;
  padding: 32px;
}

.service-screenshot {
  border-radius: 12px;
  width: 100%;
}

.service-card-right {
  flex: 1;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-label {
  font-size: 14px;
  font-weight: 600;
  color: #00d4aa;
  margin-bottom: 12px;
}

.service-pass-logo {
  width: 200px;
  margin-bottom: 24px;
}

.service-desc {
  font-size: 14px;
  line-height: 2;
  color: #333;
  margin-bottom: 32px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00d4aa;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 48px;
  border-radius: 8px;
  transition: 0.3s;
  text-align: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #00b894;
}

/* --- Work --- */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
}

.work-item {
  display: block;
  overflow: hidden;
  position: relative;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.work-item:hover img {
  transform: scale(1.05);
}

.work-item-large {
  grid-row: 1 / 3;
}

/* --- News --- */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: opacity 0.3s;
}

.news-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.news-item:hover {
  opacity: 0.6;
}

.news-date {
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  flex-shrink: 0;
  width: 100px;
}

.news-title {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* --- Company --- */
.company-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.company-left {
  flex: 1;
}

.company-right {
  flex: 0 0 380px;
}

.company-logo-card {
  background: #fff;
  border-radius: 24px;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.04);
}

.company-logo-card img {
  width: 280px;
}

.company-info {
  margin-top: 16px;
}

.company-row {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.company-row dt {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  width: 80px;
  letter-spacing: 0.15em;
}

.company-row dd {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

/* --- Contact --- */
.section-contact {
  padding-bottom: 80px;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
}

.required {
  color: #e74c3c;
  margin-left: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-size: 15px;
  color: #333;
  outline: none;
  transition: 0.3s;
}

.form-input:focus,
.form-textarea:focus {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.3);
}

.form-textarea {
  min-height: 180px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 16px;
  font-size: 14px;
}

.form-note {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 32px;
}

.btn-send {
  display: block;
  width: 360px;
  margin: 0 auto;
  padding: 16px;
  border: 1.5px solid #000;
  background: transparent;
  font-family: 'Anuphan', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
}

.btn-send:hover {
  background: #000;
  color: #fff;
}

/* --- Footer --- */
.footer {
  padding: 80px 40px 40px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-logo {
  width: 240px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 4px;
}

.footer-sub {
  font-family: 'Anuphan', sans-serif;
  font-size: 13px;
  color: #666;
}

.footer-nav {
  display: flex;
  gap: 80px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col a {
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  transition: opacity 0.3s;
}

.footer-nav-col a:hover {
  opacity: 0.6;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: #999;
  margin-top: 80px;
  padding-top: 20px;
}

/* =============================================
   SUB-PAGE STYLES
   ============================================= */

/* --- Sub-page Hero (CSS-only entrance animation) --- */
.section-subhero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.subhero-layout,
.section-subhero-simple .subhero-title-en,
.section-subhero-simple .section-header {
  animation: heroFadeIn 0.8s ease forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-subhero-simple {
  min-height: 50vh;
  padding-top: 120px;
}

.section-subhero-simple .subhero-title-en {
  font-family: 'Anuphan', sans-serif;
  font-size: 80px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.subhero-layout {
  display: flex;
  gap: 60px;
  align-items: center;
}

.subhero-img {
  flex: 0 0 50%;
  border-radius: 16px;
  overflow: hidden;
}

.subhero-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.subhero-text {
  flex: 1;
}

.subhero-title-en {
  font-family: 'Anuphan', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
}

.subhero-title-ja {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin-top: 8px;
  margin-bottom: 32px;
}

.subhero-desc {
  font-size: 15px;
  line-height: 2;
  color: #333;
}

/* --- Icon Grid (Creative/Event SERVICE) --- */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 32px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.icon-box {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(200, 220, 240, 0.5);
}

.icon-box .material-symbols-outlined {
  font-size: 36px;
  color: #6ec6e6;
}

.icon-item p {
  font-size: 13px;
  color: #333;
  text-align: center;
  font-weight: 500;
}

/* --- Case Grid (Event page) --- */
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.case-card {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  filter: brightness(0.6);
}

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

.case-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.case-card-en {
  font-family: 'Anuphan', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.05em;
}

.case-card-ja {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* --- Work Grid 3-column variant --- */
.work-grid-3col {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

.work-grid-3col .work-item {
  height: 260px;
}

/* --- Work Filter (work-all page) --- */
.work-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.work-filter-btn {
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 40px;
  border-radius: 50px;
  border: 1.5px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
}

.work-filter-btn.active,
.work-filter-btn:hover {
  background: #000;
  color: #fff;
}

/* --- Show More Button --- */
.btn-show-more {
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 60px;
  border-radius: 50px;
  border: 1.5px solid #000;
  background: transparent;
  color: #000;
  cursor: pointer;
  transition: 0.3s;
}

.btn-show-more:hover {
  background: #000;
  color: #fff;
}

/* --- Recruit Page --- */
.recruit-intro-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.recruit-catch {
  font-family: "秀英角ゴシック金 B JIS2004", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #000;
  line-height: 1.6;
  margin-bottom: 32px;
}

.recruit-desc {
  font-size: 15px;
  line-height: 2.2;
  color: #333;
}

/* Wanted Cards */
.wanted-cards {
  display: flex;
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.wanted-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
}

.wanted-card-title {
  font-family: 'Anuphan', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.wanted-card-desc {
  font-size: 14px;
  color: #555;
}

/* Flow Steps */
.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.flow-step {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 32px 40px;
  text-align: center;
  min-width: 160px;
}

.flow-step-num {
  font-family: 'Anuphan', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #000;
  display: block;
  margin-bottom: 8px;
}

.flow-step-text {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.flow-arrow {
  color: #999;
}

.flow-arrow .material-symbols-outlined {
  font-size: 32px;
}

/* Conditions */
.conditions-list {
  max-width: 800px;
  margin: 0 auto;
}

.conditions-row {
  display: flex;
  gap: 32px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.conditions-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.conditions-row dt {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  width: 120px;
}

.conditions-row dd {
  font-size: 14px;
  color: #333;
  line-height: 1.8;
}

/* Form Select */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23333' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 48px;
  cursor: pointer;
}

/* --- News All Page --- */
.section-news-all .news-list {
  max-width: 900px;
}

/* =============================================
   RESPONSIVE - SUB-PAGES
   ============================================= */

@media (max-width: 1024px) {
  .subhero-layout {
    flex-direction: column;
    gap: 40px;
  }

  .subhero-img {
    flex: auto;
    width: 100%;
  }

  .subhero-img img {
    height: 320px;
  }

  .subhero-title-en {
    font-size: 56px;
  }

  .section-subhero-simple .subhero-title-en {
    font-size: 56px;
  }

  .case-card {
    height: 220px;
  }

  .case-card-en {
    font-size: 22px;
  }

  .recruit-catch {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .section-subhero {
    min-height: 60vh;
    padding-top: 80px;
  }

  .section-subhero-simple {
    min-height: 40vh;
  }

  .subhero-title-en {
    font-size: 40px;
  }

  .section-subhero-simple .subhero-title-en {
    font-size: 40px;
  }

  .subhero-img img {
    height: 240px;
  }

  .icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 20px 16px;
  }

  .icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
  }

  .icon-box .material-symbols-outlined {
    font-size: 28px;
  }

  .icon-item p {
    font-size: 11px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    height: 200px;
  }

  .work-grid-3col {
    grid-template-columns: 1fr 1fr;
  }

  .work-grid-3col .work-item {
    height: 180px;
  }

  .work-filter-btn {
    padding: 10px 24px;
    font-size: 13px;
  }

  .wanted-cards {
    flex-direction: column;
  }

  .flow-steps {
    flex-direction: column;
    gap: 8px;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flow-step {
    width: 100%;
    min-width: auto;
  }

  .conditions-row {
    flex-direction: column;
    gap: 8px;
  }

  .conditions-row dt {
    width: auto;
  }

  .recruit-catch {
    font-size: 22px;
  }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure text stays black even during fade */
.section-title-en.fade-in,
.section-title-ja.fade-in {
  color: #000;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-heading {
    font-size: 56px;
  }

  .section-title-en {
    font-size: 48px;
  }

  .about-catch {
    font-size: 32px;
  }

  .company-layout {
    flex-direction: column;
  }

  .company-right {
    flex: auto;
    width: 100%;
  }

  .service-card {
    flex-direction: column;
  }

  .service-card-left {
    flex: auto;
  }

  .deco-about-tr { width: 160px; right: -40px; }
  .deco-about-bl { width: 140px; left: -60px; }
  .deco-about-br { width: 100px; right: -60px; }
  .deco-event-br { width: 200px; right: -60px; }
  .deco-news-l { width: 160px; left: -80px; }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-inner {
    padding: 0 20px;
  }

  .header {
    padding: 16px 20px;
  }

  .hero-heading {
    font-size: 40px;
  }

  .section-title-en {
    font-size: 36px;
  }

  .section-card {
    padding: 40px 24px;
  }

  .about-catch {
    font-size: 24px;
  }

  .business-card {
    height: 240px;
  }

  .business-card-en {
    font-size: 40px;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .work-item-large {
    grid-row: auto;
    grid-column: 1 / -1;
  }

  .company-layout {
    flex-direction: column;
  }

  .company-right {
    flex: auto;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav {
    gap: 40px;
  }

  .btn-send {
    width: 100%;
  }

  .section-deco {
    display: none;
  }
}

/* =============================================
   Single (Detail) Page
   ============================================= */

.section-single {
  padding-top: 140px;
  padding-bottom: 80px;
}

.single-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.single-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.single-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-body {
  padding: 40px;
}

.single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.single-category {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #fff;
}

.single-category--work {
  background: #1a1a1a;
}

.single-category--news {
  background: #5b9bd5;
}

.single-date {
  font-size: 0.85rem;
  color: #888;
  font-family: 'Anuphan', sans-serif;
}

.single-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 16px;
}

.single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.single-tag {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid #e8a0bf;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #d4789c;
}

.single-client {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.single-content {
  color: #333;
  line-height: 1.9;
  font-size: 0.95rem;
}

.single-content p {
  margin-bottom: 1.2em;
}

.single-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 2em;
  margin-bottom: 0.8em;
  padding-left: 12px;
  border-left: 3px solid #d4789c;
}

.single-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.single-content ul {
  margin-bottom: 1.2em;
  padding-left: 1.5em;
}

.single-content ul li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.single-content ul li::marker {
  color: #d4789c;
}

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

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #222;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  padding: 16px 32px;
  border: 2px solid rgba(0, 0, 0, 0.5);
  border-radius: 30px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(0, 0, 0, 0.8);
}

/* Single page animation */
.single-card {
  animation: heroFadeIn 0.8s ease forwards;
}

.single-back {
  animation: heroFadeIn 0.8s ease 0.2s forwards;
  opacity: 0;
}

/* --- Single Page Responsive --- */
@media (max-width: 768px) {
  .section-single {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .single-body {
    padding: 24px 20px;
  }

  .single-title {
    font-size: 1.3rem;
  }

  .single-content h2 {
    font-size: 1.1rem;
  }
}

/* =============================================
   Contact Form 7 Overrides
   ============================================= */

/* CF7 form wrapper — match .contact-form */
.wpcf7 {
  max-width: 700px;
  margin: 0 auto;
}

/* Reset CF7 default paragraph spacing */
.wpcf7-form p {
  margin: 0;
}

/* Ensure CF7 input wrappers fill width */
.wpcf7-form-control-wrap {
  display: block;
}

/* CF7 inputs already get .form-input / .form-textarea via class: tag,
   but reset CF7 defaults just in case */
.wpcf7-form .form-input,
.wpcf7-form .form-textarea {
  box-sizing: border-box;
}

/* CF7 acceptance (privacy checkbox) — align with .form-check */
.wpcf7-form .form-check .wpcf7-form-control-wrap {
  display: inline;
}

.wpcf7-form .form-check .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .form-check .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

/* CF7 submit button — already gets .btn-send via class: tag */
.wpcf7-form .wpcf7-submit {
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* CF7 validation messages */
.wpcf7-not-valid-tip {
  color: #e74c3c;
  font-size: 13px;
  margin-top: 6px;
  display: block;
}

.wpcf7-response-output {
  text-align: center;
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 20px 24px;
  margin: 32px 0 0;
  border: 1.5px solid #000;
  border-radius: 0;
  color: #000;
  background: transparent;
}

/* Success message */
.wpcf7-form.sent .wpcf7-response-output {
  border: 1.5px solid #000 !important;
  color: #000;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

/* Error message */
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  border: 1.5px solid #000 !important;
  color: #e74c3c;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

/* CF7 spinner */
.wpcf7-spinner {
  display: block;
  margin: 16px auto 0;
}

/* Responsive: btn-send width on mobile */
@media (max-width: 768px) {
  .wpcf7-form .btn-send {
    width: 100%;
  }
}
