/*
Theme Name: Ontrails Main Theme v2024
Theme URI: https://www.ontrails.jp
Author: Ontrails
Author URI: https://www.ontrails.jp
Description: Ontrails Main Website Theme - Enhanced drum roll navigation and responsive design
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ontrails_main_theme
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mount:wght@400;700;800;900&display=swap');

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

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 0;
  margin: 0;
  letter-spacing: 0.05em;
  background-color: #ffffff;
  color: #111111;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

body.loaded {
  opacity: 1;
}

/* Layout */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}



.single-app .app-content {
  margin-top: 40px;
}

.single-web .web-content {
  margin-top: 40px;
}

.single-privacy-policy .privacy-policy-content {
  margin-top: 20px;
}

.page-content {
  margin-top: 40px;
}

/* Header */
.l-header {
  position: relative;
  z-index: 100;
}

.l-header .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 30px;
  position: relative;
  z-index: 101;
}

/* Header Left */
.header-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Logo */
.site-logo {
  margin: 0;
  line-height: 1;
  transform: translateY(-5px);
}

.site-logo a {
  font-size: 1.5rem;
  font-family: 'Mount', sans-serif;
  font-weight: 900;
  text-decoration: none;
  color: #000000;
  letter-spacing: 0.05em;
  line-height: 1;
  display: inline-block;
}

/* Site Title */
.site-title {
  margin: 0;
  position: relative;
  z-index: 10;
}

.site-title a {
  font-size: 2rem;
  font-family: 'Mukta', sans-serif;
  font-weight: 700;
  text-decoration: none;
  color: #111111;
  transition: color 0.3s ease;
  cursor: pointer;
  display: block;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.site-title a:hover {
  color: #666666;
}

/* PC only: Limit title area to half of header content width */
@media (min-width: 768px) {
  .site-title {
    max-width: 50%;
    width: 50%;
  }
}

/* Add bottom margin to all pages except homepage */
body:not(.home) .l-main {
  margin-bottom: 50px !important;
  padding-bottom: 50px !important;
}

body:not(.home) {
  padding-bottom: 50px !important;
}

.single-app .app-content,
.single-web .web-content,
.single .container,
.page .container,
.contact-content,
.contact-form {
  margin-bottom: 50px !important;
}

/* Specific bottom padding for content areas */
.single-app,
.single-web,
.page:not(.home),
.page-contact,
body.page {
  padding-bottom: 50px !important;
}

/* Universal bottom spacing for non-homepage */
body:not(.home):not(.front-page) {
  min-height: calc(100vh - 50px);
  padding-bottom: 50px !important;
}

/* Navigation */
.site-navigation {
  display: flex;
  align-items: flex-start;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  text-align: left;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #666666;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  display: block;
}

.nav-menu a:hover {
  color: #666666;
}

.nav-menu a.current-menu-item,
.nav-menu a.current_page_item {
  color: #111111 !important;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
}

.lang-btn {
  background: none;
  border: none;
  color: #666666;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  color: #111111;
}

.lang-btn.active {
  font-weight: 600;
}

.lang-separator {
  font-size: 0.75rem;
}

/* Page Titles */
.about-title,
.page-title,
.contact-title,
.section-title,
.app-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: left;
  color: #111111;
  opacity: 1;
  visibility: visible;
}

/* .about-title.animation-ready,
.page-title.animation-ready,
.contact-title.animation-ready,
.section-title.animation-ready,
.app-title.animation-ready {
  opacity: 1;
  visibility: visible;
} */

.section-title {
  font-size: 2rem;
}

/* Page Sections */
.about-section,
.page-content,
.contact-section {
  margin: 60px 0;
}

.about-content,
.page-body,
.contact-content,
.privacy-policy-content {
  max-width: 800px;
  line-height: 1.8;
  color: #111111;
}

.about-content p,
.contact-content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.page-body {
  font-size: 1rem;
}

.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
  margin: 30px 0 15px 0;
  font-weight: 600;
  color: #111111;
}

.page-body h1 {
  font-size: 1.8rem;
}

.page-body h2 {
  font-size: 1.4rem;
}

.page-body h3 {
  font-size: 1.2rem;
}

.page-body p,
.privacy-policy-content p {
  margin-bottom: 15px;
  color: #111111;
}

.page-body ul,
.page-body ol,
.privacy-policy-content ul {
  margin: 15px 0;
  padding-left: 20px;
  color: #111111;
}

.page-body li,
.privacy-policy-content li {
  margin-bottom: 8px;
  color: #111111;
}

.page-body a,
.privacy-policy-content a {
  color: #007bff;
  text-decoration: none;
}

.page-body a:hover,
.privacy-policy-content a:hover {
  text-decoration: underline;
}

.about-content a {
  color: #111111;
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-content a:hover {
  color: #666666;
}

/* Aboutページのコンタクトリンクスタイル */
.contact-email a {
  color: #111111;
  text-decoration: underline;
  font-size: inherit;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.contact-email a:hover {
  color: #666666;
}

/* Works Section */
.works .work-items-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 1fr;
  gap: 0;
  margin-top: 40px;
}

/* トップページのみ、ヘッダーとグリッドの隙間をなくす */
body.home .works .work-items-container {
  margin-top: 0;
}

.works .work-item {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.5s ease;
  background-color: #EFEFEF;
  opacity: 1;
  aspect-ratio: 1 / 1;
}



.works .work-item:hover {
  transform: translateY(-2px);
}

/* Work Content */
.work-content-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumbnail-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  opacity: 1;
}


.work-content-wrapper:hover .app-thumbnail {
  transform: scale(1.05);
}





.work-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px 20px 10px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-content-wrapper:hover .work-info-box {
  transform: translateY(0);
}

.work-content-wrapper:hover .work-description {
  display: none;
}

.work-title {
  margin-bottom: 2px;
  line-height: 1.0;
  min-height: auto;
}

.work-title a {
  text-decoration: none;
  color: #111111;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.0;
  display: block;
}

.work-title .app-name {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: #111111;
  text-decoration: none;
  transition: color 0.3s ease;
  line-height: 1.0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.work-title .app-name:hover {
  color: #666666;
}

.work-description {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.1;
}

.app-link-wrapper,
.theme-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

/* Single Work */
.single-work-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.2;
  color: #111111;
}

.single-work-body {
  margin-top: 40px;
  line-height: 1.8;
  font-size: 1rem;
  color: #111111;
}

.app-body {
  margin-top: 40px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #111111;
}

.app-content-main {
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #111111;
}

.app-content-main img,
.app-content-en img,
.app-content-jp img,
.full-width-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px 0;
}

/* App Support */
.app-support {
  margin-top: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.app-support p {
  margin-bottom: 10px;
  color: #111111;
}

.app-support .support-email {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
}

/* App Store Links */
.app-store-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Unified link styles for store links, privacy policy links, and support email */
.store-link,
.privacy-policy-link a,
.app-support .support-email a {
  color: #111111;
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.store-link:hover,
.privacy-policy-link a:hover,
.app-support .support-email a:hover {
  color: #666666;
}



.privacy-policy-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: left;
  color: #111111;
  opacity: 1;
  visibility: visible;
}

/* .privacy-policy-title.animation-ready {
  opacity: 1 !important;
  visibility: visible !important;
} */

.privacy-policy-body {
  margin-top: 40px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #111111;
}

.privacy-policy-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 30px 0 15px 0;
  color: #111111;
}

.privacy-policy-body a {
  color: #111111;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.privacy-policy-body a:hover {
  color: #666666;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
}

/* Contact Form 7 多言語化 */
/* フォーム要素の多言語化用クラス */
.contact-form-multilingual {
  position: relative;
}

/* 言語切り替え時のアニメーション */
.contact-form-multilingual .wpcf7-form {
  transition: opacity 0.3s ease;
}

.contact-link {
  margin-top: 20px;
}

.wpcf7-form {
  margin-top: 20px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: #111111;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.wpcf7-form select.wpcf7-select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: #111111;
  transition: border-color 0.3s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #111111;
}

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

.wpcf7-form select.wpcf7-select {
  background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath stroke='%23111111' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 9-7 7-7-7'/%3e%3c/svg%3e") no-repeat right 12px center;
  background-size: 20px;
  padding: 12px 45px 12px 12px;
  cursor: pointer;
  appearance: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #111111;
  transition: all 0.3s ease;
  position: relative;
  min-height: 45px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wpcf7-form select.wpcf7-select:hover {
  border-color: #111111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wpcf7-form select.wpcf7-select:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

/* セレクトボックスのオプションスタイル */
.wpcf7-form select.wpcf7-select option {
  padding: 12px;
  background: #fff;
  color: #111111;
  font-size: 0.9rem;
  border: none;
}

.wpcf7-form select.wpcf7-select option:hover {
  background: #f8f9fa;
}

.wpcf7-form select.wpcf7-select option:checked {
  background: #111111;
  color: #fff;
}

/* カスタムセレクトボックスコンテナ */
.select-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

/* セレクトボックスのラベルスタイル */
.wpcf7-form label:has(select) {
  margin-bottom: 15px;
  display: block;
}

/* プロジェクト選択の特別なスタイル */
.wpcf7-form select[name="inquiry-project"] {
  background-color: #fafafa;
  border: 2px solid #e5e5e5;
  font-weight: 500;
}

.wpcf7-form select[name="inquiry-project"]:hover {
  background-color: #fff;
  border-color: #111111;
}

.wpcf7-form select[name="inquiry-project"]:focus {
  background-color: #fff;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

.wpcf7-form input[type="submit"],
.wpcf7-form input[type="button"] {
  background: #111111;
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form input[type="button"]:hover {
  background: #333333;
}

/* Form Validation */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border: 2px solid #dc3545;
  color: #dc3545;
  background: #f8d7da;
  padding: 12px;
  border-radius: 6px;
  margin-top: 20px;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: 2px solid #28a745;
  color: #155724;
  background: #d4edda;
}

.wpcf7 form .wpcf7-response-output {
  padding: 12px;
  border-radius: 6px;
  margin-top: 20px;
  font-weight: 600;
}

/* Footer - 削除 */
.l-footer {
  display: none;
}

/* フッター削除によりレイアウト調整 */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.l-main {
  min-height: 100vh;
}

/* ドラムロール新レイアウト */
.drum-roll-main {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.background-image-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0;
}

.background-image-container.active {
  opacity: 0.7;
}

.drum-roll-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
  z-index: 1;
  overflow: hidden;
}


.drum-roll-list {
  display: flex;
  flex-direction: column;
  gap: 3.6px;
  transform: translateY(0);
  width: 100%;
}

.drum-roll-item {
  cursor: pointer;
  padding: 0;
  opacity: 0.3;
  transition: opacity 0.3s ease;
  width: 100%;
}

.drum-roll-item.center {
  opacity: 1;
}

.drum-roll-item.near-center {
  opacity: 0.6;
}

.app-title {
  font-size: 14.4px;
  font-weight: 600;
  color: #111111;
  margin: 0;
  text-align: left;
  font-family: 'Mount', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: none;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.drum-roll-item.center .app-title {
  color: #111111;
  text-shadow: none;
  font-weight: 700;
}

.l-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin: 0 auto;
}

.footer-left {
  flex: 3;
  width: 75%;
  padding-right: 40px;
}

.app-links {
  margin-top: 0.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9rem;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.app-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: normal;
  word-break: break-word;
}

.app-links a:hover {
  color: #ccc;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  width: 25%;
  flex-shrink: 0;
}

.footer-right .site-logo {
  margin: 0;
}

.footer-right .site-logo a {
  font-size: 1.5rem;
  font-family: 'Mount', sans-serif;
  font-weight: 900;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.05em;
}

.footer-right .language-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.8rem;
  font-weight: 500;
}

.footer-right .lang-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-right .lang-btn:hover,
.footer-right .lang-btn.active {
  color: #ccc;
}

.footer-right .lang-btn.active {
  font-weight: 600;
}

.footer-right .lang-separator {
  font-size: 0.75rem;
  color: #fff;
}

/* Error 404 */
.error-404 {
  text-align: center;
  padding: 80px 20px;
  color: #111111;
}

.error-404 .section-title {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #111111;
}

.error-404 p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #111111;
}

.error-404 a {
  display: inline-block;
  padding: 12px 24px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.error-404 a:hover {
  background: #333333;
}

/* WordPress Admin Bar Hide */
#wpadminbar {
  display: none !important;
}

main {
  padding-top: 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  body {
    padding: 0;
    margin: 0;
  }

  /* ヘッダーロゴサイズ調整 */
  .site-logo a {
    font-size: 1.1rem;
  }

  /* ヘッダーロゴの位置を上に調整 */
  .site-logo,
  .site-logo a {
    margin-top: -0.75rem !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .l-main {
    padding-top: 0;
  }

  .container {
    padding: 0 15px;
  }

  .l-header .container {
    padding: 15px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .header-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .site-navigation {
    display: flex;
    align-items: flex-start;
  }

  .nav-menu {
    flex-direction: row;
    gap: 10px;
    font-size: 0.7rem;
  }

  .nav-menu a {
    font-size: 0.7rem;
  }

  .about-section,
  .page-content,
  .contact-section {
    margin: 40px 0;
  }

  .about-title,
  .page-title,
  .contact-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }


  .language-switcher {
    font-size: 0.65rem;
  }

  .lang-btn {
    font-size: 0.65rem;
    padding: 1px 2px;
  }

  .lang-separator {
    font-size: 0.65rem;
  }

  /* ドラムロールモバイル対応 */
  .drum-roll-container {
    padding: 0 15px;
  }

  .drum-roll-list {
    gap: 2.8px;
  }

  .app-title {
    font-size: 11.2px;
  }

  .works .work-items-container {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 0;
  }

  .works .work-item {
    background-color: #EFEFEF;
    opacity: 1;
  }

  /* Footer Responsive */
  .l-footer {
    padding: 15px 0 0 0;
  }

  .l-footer .container {
    padding: 0 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
  }

  .footer-left {
    order: 2;
    width: 100%;
    padding-right: 0;
    padding-bottom: 30px;
  }

  .footer-right {
    order: 1;
    align-items: center;
    width: 100%;
  }

  .app-links {
    justify-content: flex-start;
    gap: 10px;
    font-size: 0.85rem;
  }

  .footer-right .site-logo a {
    font-size: 1.25rem;
  }
  
  /* モバイルでのロゴspanタグのフォントサイズ */
  .site-logo a span {
    font-size: 1.25rem !important;
  }

  .footer-right .site-logo a span {
    font-size: 1.25rem !important;
    font-family: 'Mount', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em !important;
  }

  .footer-right .language-switcher {
    justify-content: center;
  }

  /* モバイルでのグリッドホバーメニュー */
  .work-info-box {
    padding: 10px;
    min-height: 50px;
  }

  .work-title {
    margin-bottom: 1px;
  }

  .work-title a,
  .work-title .app-name {
    font-size: 0.9rem;
  }

  /* モバイルではホバー効果を無効化 */
  .work-content-wrapper:hover .work-info-box {
    transform: translateY(100%);
  }

  .work-content-wrapper:hover .work-description {
    display: block;
  }

  .work-content-wrapper:hover .app-thumbnail {
    transform: none;
  }

  /* モバイルでのセレクトボックススタイル */
  .wpcf7-form select.wpcf7-select {
    padding: 10px 40px 10px 10px;
    font-size: 1rem;
    min-height: 50px;
  }

  .wpcf7-form select.wpcf7-select option {
    padding: 15px;
    font-size: 1rem;
  }

  /* モバイルでのプロジェクト選択スタイル */
  .wpcf7-form select[name="inquiry-project"] {
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
  }

  /* モバイルでの画像スタイル */
  .wp-block-image {
    margin: 20px;
    text-align: center;
  }

  .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .wp-block-image.size-full img {
    width: 100%;
    height: auto;
  }

  .wp-block-image.size-large img {
    max-width: 100%;
    height: auto;
  }

  .wp-block-image.size-medium img {
    max-width: 100%;
    height: auto;
  }

  .wp-block-image.size-thumbnail img {
    max-width: 100px;
    height: auto;
  }

  .wp-block-image figcaption {
    font-size: 0.8rem;
    margin-top: 6px;
    text-align: center;
  }

  /* モバイルでのappページ画像スタイル */
  .single-app .wp-block-image {
    margin: 20px 0;
    text-align: center;
  }

  .single-app .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }

  .single-app .wp-block-image figcaption {
    font-size: 0.8rem;
    margin-top: 6px;
    text-align: center;
  }
}

/* Random Text Animation Styles */
[data-text-animation="fadeIn"] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  pointer-events: none;
}

[data-text-animation="fadeIn"].animation-ready {
  opacity: 1;
}

[data-text-animation="fadeIn"] span {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: inline-block;
}

[data-text-animation="fadeIn"] span.is-active {
  opacity: 1;
}

/* アニメーション完了時の要素のスタイル */
[data-text-animation="fadeIn"]:not(:has(span:not(.is-active))) {
  pointer-events: auto;
}

/* ヘッダーとタイトル要素のアニメーション調整 */
.site-logo a span,
.nav-menu a span,
.section-title span,
.footer-right .site-logo a span {
  transition: opacity 0.2s ease-in-out;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  color: inherit;
}

/* ロゴのspanタグに強制的にフォントサイズを設定 */
.site-logo a span {
  font-size: 1.5rem !important;
  font-family: 'Mount', sans-serif !important;
  font-weight: 900 !important;
  color: #000000 !important;
  letter-spacing: 0.05em !important;
}

/* ヘッダーロゴの色を強制的に黒に設定 */
.l-header .site-logo a,
.l-header .site-logo a span,
.site-logo a,
.site-logo a span {
  color: #000000 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* フッターロゴの色を強制的に白に設定 */
.footer-right .site-logo a,
.footer-right .site-logo a span {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ロゴ要素の表示設定 */
.site-logo,
.site-logo a {
  margin-top: -0.5rem;

  opacity: 1 !important;
  visibility: visible !important;
}

/* ロゴ要素をアニメーション対象から除外 */
.site-logo,
.site-logo a,
.site-logo a span {
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* ロゴ要素にアニメーション属性が付与されても無効化 */
.site-logo[data-text-animation],
.site-logo a[data-text-animation],
.site-logo a span[data-text-animation] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* アプリテキスト要素をアニメーション対象から除外 */
.app-title,
.app-title span,
.drum-roll-item .app-title,
.drum-roll-item .app-title span {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* アプリテキスト要素にアニメーション属性が付与されても無効化 */
.app-title[data-text-animation],
.app-title span[data-text-animation],
.drum-roll-item .app-title[data-text-animation],
.drum-roll-item .app-title span[data-text-animation] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.footer-right .site-logo a span {
  font-size: 1rem !important;
  font-family: 'Mount', sans-serif !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  letter-spacing: 0.05em !important;
}

/* WordPress Block Editor Image Styles - Desktop Only */
@media screen and (min-width: 769px) {
  .wp-block-image {
    margin: 20px 0;
    text-align: left;
  }

  .wp-block-image img {
    max-width: 75%;
    height: auto;
    border-radius: 8px;
    display: block;
  }

  .wp-block-image.size-full img {
    max-width: 75%;
    height: auto;
  }

  .wp-block-image.size-large img {
    max-width: 75%;
    height: auto;
  }

  .wp-block-image.size-medium img {
    max-width: 50%;
    height: auto;
  }

  .wp-block-image.size-thumbnail img {
    max-width: 120px;
    height: auto;
  }

  .wp-block-image figcaption {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
  }

  /* App page specific image styles */
  .single-app .wp-block-image {
    margin: 20px 0;
    text-align: left;
  }

  .single-app .wp-block-image img {
    max-width: 75%;
    height: auto;
    border-radius: 8px;
    display: block;
  }

  .single-app .wp-block-image figcaption {
    text-align: left;
    font-size: 0.9rem;
    color: #666;
    margin-top: 8px;
    font-style: italic;
  }
}

/* Web Gallery Slideshow Styles */
.web-gallery {
  margin: 40px 0;
}

.gallery-slideshow {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

/* PC only: Left align web gallery slideshow */
@media (min-width: 768px) {
  .web-gallery {
    text-align: left !important;
  }

  .gallery-slideshow {
    margin: 0 !important;
    text-align: left !important;
    max-width: 800px !important;
    width: 800px !important;
    display: inline-block !important;
  }

  .slideshow-container {
    width: 100% !important;
    max-width: 800px !important;
  }

  .gallery-controls {
    justify-content: center !important;
    margin-top: 20px !important;
  }

  .gallery-dots {
    justify-content: center !important;
  }
}

/* Unify image heights for APP and WEB pages */
.slideshow-container {
  position: relative;
  width: 100%;
  height: 400px !important;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}

.slideshow-container .slide img {
  height: 100% !important;
  width: 100% !important;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-position: center !important;
}

.single-app .app-content-main img,
.single-app .app-content-en img,
.single-app .app-content-jp img {
  height: 400px !important;
  object-fit: cover !important;
  width: 100% !important;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.gallery-prev,
.gallery-next {
  background: none;
  color: #111111;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-prev:hover,
.gallery-next:hover {
  color: #666666;
}

.gallery-prev:disabled,
.gallery-next:disabled {
  color: #ccc;
  cursor: not-allowed;
}

.gallery-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ddd;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-dot.active {
  background: #111111;
}

.gallery-dot:hover {
  background: #666666;
}

/* Mobile styles for gallery */
@media screen and (max-width: 768px) {
  .slideshow-container {
    height: 300px;
  }

  .gallery-controls {
    gap: 20px;
    margin-top: 15px;
  }

  .gallery-prev,
  .gallery-next {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .gallery-dot {
    width: 6px;
    height: 6px;
  }
}

/* Web Links and Support Styles */
.web-links {
  margin-top: 20px;
}

.web-project-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.project-link {
  color: #111111;
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.project-link:hover {
  color: #666666;
}

.privacy-policy-link {
  margin-top: 15px;
}

.privacy-policy-link a {
  color: #111111;
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.privacy-policy-link a:hover {
  color: #666666;
}

.web-support {
  margin-top: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.web-support p {
  margin-bottom: 10px;
  color: #111111;
}

.support-email {
  margin-top: 20px;
}

.support-email a {
  color: #111111;
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.2;
  transition: color 0.3s ease;
}

.support-email a:hover {
  color: #666666;
}

/* Mobile styles for web links */
@media screen and (max-width: 768px) {
  .web-project-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .web-support {
    margin-top: 30px;
    padding: 20px;
  }
}