/**
 * YUZUFILM Static Pages Stylesheet
 *
 * Covers:
 * - TOP (front-page)
 * - About Me (page-about-me)
 * - Contact (page-contact)
 * - Corners decorations & Parallax sections
 * - Contact Form 7 custom style recreation
 *
 * @package YUZUFILM
 */

/* ==========================================================================
   Common Page Components (Corners Box & Parallax)
   ========================================================================== */
/* Qode Section Title with Corners (旧Dessau仕様) */
.qodef-section-title-holder {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.top-title {
  width: 100%;
  text-align: center;
}

.top-title-col {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  box-sizing: border-box;
}

.top-title .qodef-section-title-holder {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: block;
  padding: 0;
  box-sizing: border-box;
}

.top-title .qodef-section-title-holder.qodef-st-corners .qodef-st-inner {
  position: relative;
  display: block;
  width: 100%;
  padding: 30px 55px 33px;
  box-sizing: border-box;
  text-align: center;
}

.qodef-section-title-holder.qodef-st-corners .qodef-corner-line:before {
  content: "";
  background-color: #000000;
  position: absolute;
}

.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-1:before,
.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-3:before {
  height: 13px;
  width: 1px;
}

.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-1:before,
.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-2:before {
  left: 0;
  top: 0;
}

.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-3:before,
.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-4:before {
  right: 0;
  bottom: 0;
}

.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-2:before,
.qodef-section-title-holder.qodef-st-corners .qodef-corner-line.line-4:before {
  height: 1px;
  width: 13px;
}

.top-title .qodef-section-title-holder .qodef-st-title {
  display: block;
  margin: 0;
  font-family: "Heisei Mincho Std", "Noto Serif JP", serif !important;
  font-size: 35px;
  line-height: 1.314;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: #1b1b1b;
  text-align: center;
}

.top-title .qodef-section-title-holder .qodef-st-text {
  display: block;
  margin: 19px 0 0;
  font-family: "A-OTF UD Shin Go Pr6N", "游ゴシック Medium", YuGothic, YuGothicM, "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0.02em;
  color: #1b1b1b;
  text-align: center;
}

/* ==========================================================================
   1. TOP Page (front-page.php)
   ========================================================================== */
.front-page-wrapper {
  width: 100%;
  overflow: hidden;
}

/* Main Visual Hero (PC Video / SP Static Image) */
.top-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  overflow: hidden;
  background-color: #000000;
}

.top-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.top-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.top-hero-picture,
.top-hero-sp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Concept / Catchcopy Section (vc_custom_1626570930866 仕様再現) */
.top-concept-section {
  background-color: var(--color-bg);
}

.vc_custom_1626570930866 {
  padding-top: 100px !important;
  padding-right: 5% !important;
  padding-bottom: 100px !important;
  padding-left: 5% !important;
}

/* Photograph & Video Services Section (qodef-image-info-section-holder 仕様再現) */
.top-services-section {
  background-color: var(--color-bg);
}

.top-services-section.vc_custom_1626570936206 {
  padding-bottom: 175px !important;
}

/* Section Spacer (PC: 109px, SP: 30px) */
.top-services-spacer {
  height: 109px;
  width: 100%;
  display: block;
}

.qodef-image-info-section-holder {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.qodef-image-info-section-holder .qodef-iis-image,
.qodef-image-info-section-holder .qodef-iis-text-holder {
  width: 50%;
  box-sizing: border-box;
}

.qodef-image-info-section-holder .qodef-iis-image-inner {
  width: 100%;
  overflow: hidden;
}

.qodef-image-info-section-holder .qodef-iis-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.qodef-image-info-section-holder .qodef-iis-image:hover img {
  transform: scale(1.02);
}

.qodef-image-info-section-holder .qodef-iis-text-holder {
  text-align: left;
  align-self: center;
}

/* Photograph: 画像右、テキスト左 (flex-direction: row-reverse) */
.qodef-image-info-section-holder.qodef-image-on-right-side {
  flex-direction: row-reverse;
}

.qodef-image-info-section-holder.qodef-image-on-right-side .qodef-iis-text-inner {
  position: relative;
  box-sizing: border-box;
  padding: 84px 80px 94px;
  border-top: 1px solid #363636;
  border-left: 1px solid #363636;
  border-bottom: 1px solid #363636;
  border-right: none;
  background-color: #ffffff;
  margin-right: -1px; /* 写真とピッタリ接合 */
  z-index: 2;
}

/* Video: 画像左、テキスト右 (flex-direction: row) */
.qodef-image-info-section-holder.qodef-image-on-left-side {
  flex-direction: row;
}

.qodef-image-info-section-holder.qodef-image-on-left-side .qodef-iis-text-inner {
  position: relative;
  box-sizing: border-box;
  padding: 84px 80px 94px;
  border-top: 1px solid #363636;
  border-right: 1px solid #363636;
  border-bottom: 1px solid #363636;
  border-left: none;
  background-color: #ffffff;
  margin-left: -1px; /* 写真とピッタリ接合 */
  z-index: 2;
}

.qodef-image-info-section-holder .qodef-iis-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.4;
  letter-spacing: 0.1em;
  color: #1b1b1b;
}

/* 旧サイト子テーマ仕様: texttext...は非表示 */
.about .qodef-iis-text-holder .qodef-iis-text {
  display: none;
}

.qodef-image-info-section-holder .qodef-iis-button {
  margin-top: 27px;
}

/* 黒丸「＋」ボタン (qodef-btn-dessau 仕様再現) */
.qodef-btn.qodef-btn-dessau {
  display: inline-block;
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.qodef-btn.qodef-btn-dessau .qodef-btn-plus {
  background-color: #363636;
  border-radius: 50%;
  position: relative;
  top: 0;
  width: 38px;
  height: 38px;
  transition: transform 0.25s ease, background-color 0.25s ease;
  will-change: transform;
}

.qodef-btn.qodef-btn-dessau .qodef-btn-plus .qodef-btn-line-1,
.qodef-btn.qodef-btn-dessau .qodef-btn-plus .qodef-btn-line-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.qodef-btn.qodef-btn-dessau .qodef-btn-plus .qodef-btn-line-1:before,
.qodef-btn.qodef-btn-dessau .qodef-btn-plus .qodef-btn-line-2:before {
  background-color: #dedede;
  content: "";
  position: absolute;
}

.qodef-btn.qodef-btn-dessau .qodef-btn-plus .qodef-btn-line-1:before {
  width: 1px;
  height: 15px;
}

.qodef-btn.qodef-btn-dessau .qodef-btn-plus .qodef-btn-line-2:before {
  height: 1px;
  width: 15px;
}

.qodef-btn.qodef-btn-dessau:hover .qodef-btn-plus {
  transform: rotate(-90deg);
  background-color: #1b1b1b;
}

/* Parallax Section (細長い横帯: padding-top: 17% / padding-bottom: 13%) */
.top-parallax-section,
.qodef-parallax-row-holder {
  width: 100%;
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.vc_custom_1626570939721 {
  padding-top: 17% !important;
  padding-bottom: 13% !important;
}

/* Instagram Section (下部余白 166px) */
.top-instagram-section {
  background-color: var(--color-bg);
}

.vc_custom_1626570944175 {
  padding-top: 100px !important;
  padding-right: 5% !important;
  padding-bottom: 100px !important;
  padding-left: 5% !important;
}

.vc_custom_1626570947653 {
  padding-bottom: 166px !important;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .top-services-spacer {
    height: 60px;
  }

  .qodef-image-info-section-holder {
    display: block;
  }

  .qodef-image-info-section-holder .qodef-iis-image,
  .qodef-image-info-section-holder .qodef-iis-text-holder {
    width: 100%;
    display: block;
  }

  .qodef-image-info-section-holder.qodef-image-on-right-side .qodef-iis-text-inner,
  .qodef-image-info-section-holder.qodef-image-on-left-side .qodef-iis-text-inner {
    border: 1px solid #363636 !important;
    padding: 50px 30px;
    margin: 15px 0 0 0;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .top-hero-section {
    height: 70vh;
    min-height: 480px;
    max-height: 650px;
  }

  .top-title {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .top-title-col {
    width: 100%;
    max-width: 100%;
  }

  .top-title .qodef-section-title-holder {
    max-width: 100%;
  }

  /* SP 見出し・本文の中央揃え (ユーザー指示: 文字揃えは中央寄せを維持) */
  .top-title .qodef-section-title-holder.qodef-st-corners .qodef-st-inner {
    padding: 36px 20px 36px !important;
    text-align: center !important;
  }

  .top-title .qodef-section-title-holder .qodef-st-title {
    font-size: 24px;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: center !important;
    margin-bottom: 16px;
  }

  .top-title .qodef-section-title-holder .qodef-st-text {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 14px;
    text-align: center !important;
    display: inline-block;
  }

  .top-services-spacer {
    height: 30px;
  }

  .vc_custom_1626570930866,
  .vc_custom_1626570944175 {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .top-services-section.vc_custom_1626570936206 {
    padding-bottom: 60px !important;
  }

  /* SP INSTAGRAM前の画像帯: 縦幅をしっかり確保 (レビュー反映: 3-2-2) */
  .top-parallax-section.vc_custom_1626570939721 {
    padding-top: 40% !important;
    padding-bottom: 35% !important;
    min-height: 260px;
    background-attachment: scroll;
  }

  .vc_custom_1626570947653 {
    padding-bottom: 60px !important;
  }

  /* SP Photograph / Video 紹介ブロックの見た目改善 (レビュー反映: 3-2-1) */
  .qodef-image-info-section-holder.qodef-image-on-right-side .qodef-iis-text-inner,
  .qodef-image-info-section-holder.qodef-image-on-left-side .qodef-iis-text-inner {
    padding: 48px 24px 52px;
    margin: 16px 0 0 0;
    text-align: center;
    border: 1px solid #363636 !important;
    background-color: #ffffff;
    box-sizing: border-box;
  }

  .qodef-image-info-section-holder .qodef-iis-title {
    font-size: 22px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    padding-bottom: 0;
    margin: 0 0 20px 0;
    text-align: center;
  }

  .qodef-image-info-section-holder .qodef-iis-button {
    margin-top: 0;
    display: flex;
    justify-content: center;
  }

  .top-instagram-feed-container {
    margin-top: 30px;
  }
}

@media (max-width: 480px) {
  body .top-title {
    padding-top: 50px !important;
    padding-bottom: 30px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .top-title .qodef-st-title {
    font-size: 22px !important;
    text-align: center !important;
  }

  .top-title .qodef-st-inner .qodef-st-text {
    font-size: 15px !important;
    line-height: 1.75 !important;
    text-align: center !important;
  }

  .top-title .qodef-section-title-holder.qodef-st-corners .qodef-st-inner {
    padding: 28px 16px 30px !important;
    text-align: center !important;
  }

  .top-parallax-section.vc_custom_1626570939721 {
    min-height: 240px;
  }
}

.instagram-fallback-notice {
  padding: 40px;
  background: #fdfdfd;
  border: 1px dashed #dcdcdc;
  display: inline-block;
  margin: 20px auto;
}

.insta-link-btn {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #111111;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   2. About Me Page (page-about-me.php)
   ========================================================================== */
.about-hero-section {
  padding: 60px 0 40px 0;
}

.about-hero-img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.about-profile-section {
  padding: 80px 0 100px 0;
}

.profile-card-holder {
  max-width: 860px;
  margin: 0 auto;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 0 0 12px 0;
  color: var(--color-text);
}

.profile-role {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  color: #888888;
  margin-bottom: 36px;
}

.profile-bio-text {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 2.25;
  letter-spacing: 0.06em;
  color: #333333;
  text-align: left !important;
  display: block;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* Equipment Showcase */
.about-gear-section {
  padding: 80px 0;
  background-color: var(--color-bg);
}

.gear-card-wrapper {
  display: flex;
  justify-content: center;
}

.gear-corners-box {
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 60px 80px;
}

.gear-heading {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 0 0 28px 0;
}

.gear-list-text {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 2.5;
  letter-spacing: 0.08em;
  color: #222222;
}

/* Parallax Divider Section (復元: 旧Dessau仕様) */
.about-parallax-section {
  position: relative;
  width: 100%;
  padding-top: 16%;
  padding-bottom: 14%;
  min-height: 280px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  display: block;
}

@media (max-width: 768px) {
  .about-parallax-section {
    background-attachment: scroll;
    padding-top: 25%;
    padding-bottom: 25%;
    min-height: 200px;
  }
}

.about-instagram-section {
  padding: 100px 0 120px 0;
}

.about-instagram-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  margin: 0 0 40px 0;
}

/* ==========================================================================
   3. Contact Page (page-contact.php)
   ========================================================================== */
.contact-page-header {
  padding: 40px 0 0 0;
}

.contact-page-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}

.contact-page-subtitle {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text-sub);
  letter-spacing: 0.06em;
  margin: 0 0 16px 0;
  text-align: center;
}

.contact-form-section {
  padding: 0 0 100px 0;
}

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

.contact-form-inner .wpcf7,
.contact-form-inner .wpcf7-form,
.contact-form-inner .cf7-fallback-form,
.contact-form-inner .qodef-newsletter {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.contact-form-inner .wpcf7-form > *:first-child,
.contact-form-inner .qodef-newsletter > *:first-child,
.contact-form-inner .cf7_custom_style_1 p:first-of-type,
.contact-form-inner .fallback-field:first-of-type,
.contact-form-inner .wpcf7-form-control-wrap:first-child,
.contact-form-inner input.wpcf7-text:first-of-type {
  margin-top: 0 !important;
}

/* CF7 Custom Style 1 Recreation */
.cf7_custom_style_1 input[type="text"],
.cf7_custom_style_1 input[type="email"],
.cf7_custom_style_1 textarea {
  width: 100%;
  padding: 16px 20px;
  margin-bottom: 24px;
  border: 1px solid #eeeeee;
  background-color: #fafbfc;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #222222;
  box-sizing: border-box;
  outline: none;
  transition: border-color var(--transition-normal), background-color var(--transition-normal);
}

.cf7_custom_style_1 input[type="text"]:focus,
.cf7_custom_style_1 input[type="email"]:focus,
.cf7_custom_style_1 textarea:focus {
  border-color: #111111;
  background-color: #ffffff;
}

/* 必須マーク（*）の赤色表示 */
.contact-form-inner .wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

.cf7-req-asterisk {
  position: absolute;
  right: 18px;
  top: 18px;
  color: #e53e3e;
  font-size: 1.125rem;
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
}

.required-mark {
  color: #e53e3e;
  font-weight: bold;
  margin-left: 2px;
}

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

.cf7_custom_style_1 input[type="submit"],
.cf7_custom_style_1 .wpcf7-submit {
  display: block;
  width: 240px;
  height: 52px;
  margin: 16px auto 0 auto;
  background-color: #111111;
  color: #ffffff;
  border: 1px solid #111111;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--transition-normal), color var(--transition-normal), opacity var(--transition-normal);
}

.cf7_custom_style_1 input[type="submit"]:hover,
.cf7_custom_style_1 .wpcf7-submit:hover {
  background-color: #333333;
  opacity: 0.9;
}

/* CF7 Validation Notices */
.wpcf7-not-valid-tip {
  color: #d93838;
  font-size: 0.8125rem;
  margin-top: -16px;
  margin-bottom: 20px;
  display: block;
  text-align: left;
}

.wpcf7-response-output {
  margin-top: 30px !important;
  padding: 16px 20px !important;
  font-size: 0.9375rem !important;
  text-align: center;
  border-radius: 0 !important;
}

.wpcf7-mail-sent-ok {
  border: 1px solid #2e7d32 !important;
  background-color: #f1f8e9 !important;
  color: #2e7d32 !important;
}

.wpcf7-validation-errors {
  border: 1px solid #d93838 !important;
  background-color: #ffebee !important;
  color: #d93838 !important;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .hero-brand-title {
    font-size: 2.75rem;
  }
  .service-flex-container {
    flex-direction: column !important;
    gap: 40px;
  }
  .service-content-col,
  .service-image-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .gear-corners-box {
    padding: 40px 30px;
  }
}

@media (max-width: 640px) {
  .hero-brand-title {
    font-size: 2rem;
    letter-spacing: 0.15em;
  }
  .top-hero-section {
    height: 70vh;
    min-height: 440px;
  }
  .corners-box {
    padding: 32px 20px;
  }
  .concept-heading,
  .instagram-heading {
    font-size: 1.375rem;
  }
  .concept-lead-text,
  .instagram-lead-text {
    font-size: 0.875rem;
  }
  .top-concept-section,
  .top-instagram-section {
    padding: 60px 0 40px 0;
  }
  .service-heading {
    font-size: 1.25rem;
  }
  .profile-name {
    font-size: 1.75rem;
  }
  .profile-bio-text {
    font-size: 0.9375rem;
    line-height: 2.1;
    text-align: left !important;
  }
  .gear-list-text {
    font-size: 1rem;
    line-height: 2.2;
  }
  .contact-page-header {
    padding: 30px 0 0 0;
  }
  .contact-page-title {
    font-size: 1.875rem;
    margin-bottom: 8px;
  }
  .contact-page-subtitle {
    margin-bottom: 14px;
    text-align: center;
  }
  .contact-form-section {
    padding: 0 0 60px 0;
  }
  .cf7_custom_style_1 input[type="submit"],
  .cf7_custom_style_1 .wpcf7-submit {
    width: 100%;
  }
}

/* ==========================================================================
   4. Search Results Page (search.php)
   ========================================================================== */
.search-page-wrapper {
  width: 100%;
}

.search-page-header {
  padding: 80px 0 24px;
}

.search-page-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin: 0 0 10px;
  color: var(--color-text);
  text-transform: uppercase;
}

.search-query-summary {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text-sub);
  margin: 8px 0 20px;
}

.search-query-summary strong {
  color: var(--color-text);
  font-weight: 600;
}

.search-query-summary span {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-text);
  margin: 0 4px;
}

.search-page-form-holder {
  max-width: 480px;
  margin: 0 auto;
}

.search-page-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #1b1b1b;
  padding-bottom: 6px;
}

.search-page-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  color: #1b1b1b;
  padding: 8px 36px 8px 4px;
  outline: none;
}

.search-page-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #1b1b1b;
  font-size: 1.125rem;
  cursor: pointer;
  padding: 6px 8px;
  transition: opacity 0.2s ease;
}

.search-page-submit:hover {
  opacity: 0.6;
}

.search-content-section {
  padding: 16px 0 40px;
}

.search-content-section .site-content-container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.search-results-list {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.search-result-item {
  display: flex;
  background: #ffffff;
  border: 1px solid #eeeeee;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.search-result-item:hover {
  border-color: #dddddd;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.search-item-media {
  flex: 0 0 240px;
  max-width: 240px;
  background-color: #f7f7f7;
  position: relative;
  overflow: hidden;
}

.search-item-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.search-item-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.search-result-item:hover .search-item-thumb {
  transform: scale(1.04);
}

.search-item-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  font-size: 2.25rem;
}

.search-item-body {
  flex: 1 1 auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}

.search-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.search-badge {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 3px 8px;
  line-height: 1;
  text-transform: uppercase;
}

.badge-portfolio {
  background-color: #1b1b1b;
  color: #ffffff;
}

.badge-page {
  background-color: #f0f0f0;
  color: #555555;
}

.badge-post {
  background-color: #e8e8e8;
  color: #333333;
}

.search-item-category {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: #888888;
  letter-spacing: 0.05em;
}

.search-item-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 10px;
}

.search-item-title a {
  color: #1b1b1b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.search-item-title a:hover {
  color: #777777;
}

.search-item-excerpt {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #666666;
  margin: 0 0 16px;
}

.search-item-action {
  margin-top: auto;
}

.search-item-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: #1b1b1b;
  text-decoration: none;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.search-item-more-link:hover {
  gap: 12px;
  opacity: 0.7;
}

/* Pagination */
.search-pagination-holder {
  max-width: 880px;
  margin: 36px auto 0;
  text-align: center;
}

.search-pagination-holder .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-pagination-holder .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  color: #1b1b1b;
  text-decoration: none;
  border: 1px solid #eeeeee;
  transition: all 0.2s ease;
}

.search-pagination-holder .page-numbers.current,
.search-pagination-holder .page-numbers:hover {
  background-color: #1b1b1b;
  border-color: #1b1b1b;
  color: #ffffff;
}

/* Zero Results (検索0件専用: WordPress標準 body.search-no-results との衝突を防ぐため search-empty-state を使用) */
.search-empty-state {
  width: 100%;
  max-width: 680px;
  margin: 24px auto 40px;
  padding: 48px 32px;
  background-color: #fafbfc;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: center;
}

.search-empty-icon {
  font-size: 2.5rem;
  color: #bbbbbb;
  margin: 0 0 16px;
  line-height: 1;
}

.search-empty-title {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 500;
  margin: 0 0 12px;
  color: #1b1b1b;
  line-height: 1.4;
}

.search-empty-lead {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: #555555;
  margin: 0 0 20px;
  line-height: 1.6;
}

.search-empty-lead strong {
  color: #1b1b1b;
}

.search-empty-tips {
  list-style: disc;
  text-align: left;
  display: inline-block;
  margin: 0 auto 28px;
  padding-left: 20px;
  color: #777777;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.9;
  box-sizing: border-box;
}

.search-empty-tips li {
  margin-bottom: 4px;
}

.search-empty-action {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.search-empty-action .btn {
  padding: 10px 24px;
  font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 768px) {
  .search-page-header {
    padding: 44px 0 16px;
  }
  .search-page-title {
    font-size: 1.625rem;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
  }
  .search-content-section {
    padding: 10px 0 30px;
  }
  .search-result-item {
    flex-direction: column;
  }
  .search-item-media {
    flex: 0 0 200px;
    max-width: 100%;
    height: 200px;
  }
  .search-item-body {
    padding: 20px;
  }
  .search-item-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   Thank You Page (サンクスページ)
   ========================================================================== */
.thanks-page-wrapper {
  padding: 100px 0 120px;
  background-color: #fff;
}

.thanks-content-inner {
  max-width: 760px;
  margin: 0 auto;
}

.thanks-main-title {
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #1b1b1b;
  margin-bottom: 28px;
  line-height: 1.5;
}

.thanks-description {
  font-size: 0.9375rem;
  line-height: 2;
  color: #555;
  margin-bottom: 44px;
}

.thanks-action-area {
  margin-top: 36px;
}

.thanks-btn-back-home {
  display: inline-block;
  padding: 16px 42px;
  background-color: #1b1b1b;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid #1b1b1b;
}

.thanks-btn-back-home:hover {
  background-color: transparent;
  color: #1b1b1b;
}

@media (max-width: 768px) {
  .thanks-page-wrapper {
    padding: 60px 0 80px;
  }
  .thanks-main-title {
    font-size: 1.3125rem;
    margin-bottom: 20px;
  }
  .thanks-description {
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 32px;
  }
  .thanks-btn-back-home {
    padding: 14px 32px;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
   Default Page / Privacy Policy (汎用固定ページ & プライバシーポリシー)
   ========================================================================== */
.default-page-wrapper {
  padding: 80px 0 120px;
  background-color: #fff;
}

.default-page-inner {
  max-width: 860px;
  margin: 0 auto;
}

.default-page-inner.entry-content {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #333;
}

.default-page-inner h2 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #111;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.default-page-inner h2:first-child {
  margin-top: 0;
}

.default-page-inner h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: #222;
  margin: 32px 0 14px;
}

.default-page-inner p {
  margin-bottom: 24px;
}

.default-page-inner ul,
.default-page-inner ol {
  margin: 0 0 24px 20px;
  padding: 0;
}

.default-page-inner li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.default-page-inner a {
  color: #111;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.default-page-inner a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .default-page-wrapper {
    padding: 50px 0 80px;
  }
  .default-page-inner h2 {
    font-size: 1.125rem;
    margin: 36px 0 16px;
  }
  .default-page-inner.entry-content {
    font-size: 0.875rem;
    line-height: 1.8;
  }
}


