/*
Theme Name: Ueno
Theme URI: https://hannantest06.com/ueno-seisakusho
Author: Your Name
Author URI: https://hannantest06.com
Description: Custom theme for Ueno Seisakusho
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ueno
*/

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

/* ===================== Scroll Animations ===================== */
/* 基本のアニメーションクラス */
.fade-in,
.fade-in-up,
.fade-in-down,
.fade-in-left,
.fade-in-right,
.scale-up {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* フェードイン */
.fade-in.animated {
  opacity: 1;
}

/* 下から上にフェードイン */
.fade-in-up {
  transform: translateY(30px);
}

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

/* 上から下にフェードイン */
.fade-in-down {
  transform: translateY(-30px);
}

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

/* 左からフェードイン */
.fade-in-left {
  transform: translateX(-30px);
}

.fade-in-left.animated {
  opacity: 1;
  transform: translateX(0);
}

/* 右からフェードイン */
.fade-in-right {
  transform: translateX(30px);
}

.fade-in-right.animated {
  opacity: 1;
  transform: translateX(0);
}

/* スケールアップ */
.scale-up {
  transform: scale(0.95);
}

.scale-up.animated {
  opacity: 1;
  transform: scale(1);
}

/* 遅延アニメーション用 */
.stagger-item {
  transition-delay: 0s;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f7f7f7;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.btn-portfolio {
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
}

.section-title span {
  display: block;
  font-size: 0.7rem;
}

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

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

/* ===================== Utility Classes ===================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.text-gold {
  color: #1CA4E8;
}
.text-red {
  color: #C53030 !important;
}
.text-white {
  color: #FFFFFF !important;
}
.text-blue {
  color: #4A90E2 !important;
}

.bg-dark-blue {
  background-color: #1a202c;
}

.bg-accent-light {
  background-color: #e0f2fe;
}

.border-accent {
  border-color: #1CA4E8;
}

/* ===================== Section Title ===================== */
.section-title {
  position: relative;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a202c;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: #1CA4E8;
  border-radius: 9999px;
}

/* ===================== Header ===================== */
.site-header {
  background: transparent;
  box-shadow: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-branding {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-title {
  margin: 0;
}

.site-branding-link {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.logo-initial {
  height: 48px;
  width: auto;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.logo-scrolled {
  height: 48px;
  width: auto;
  display: none;
  opacity: 0;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
}

.site-header.scrolled .logo-initial {
  opacity: 0;
}

.site-header.scrolled .logo-scrolled {
  display: block;
  opacity: 1;
}

.site-title-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-title-main {
  font-size: 0.8em;
  font-weight: 400;
  color: #fff;
  transition: color 0.3s ease;
}

.site-title-sub {
  font-size: 0.55em;
  font-weight: 100;
  padding-top: 5px;
  color: #fff;
  transition: color 0.3s ease;
}

.site-header.scrolled .site-title-main,
.site-header.scrolled .site-title-sub {
  color: #333;
}

.site-description {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1CA4E8;
  margin-top: 0.25rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.main-navigation a {
  color: #fff;
  font-weight: 500;
  transition: all 0.3s;
}

.main-navigation a:hover {
  color: #1CA4E8;
}

.site-header.scrolled .main-navigation a {
  color: #333;
}

.site-header.scrolled .main-navigation a:hover {
  color: #1CA4E8;
}

.site-header.scrolled .main-navigation a.contact-btn {
  color: white !important;
}

.site-header.scrolled .main-navigation a.contact-btn:hover {
  color: white !important;
}

.main-navigation a.contact-btn {
  background-color: #1a202c;
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: 0.25rem;
}

.main-navigation a.contact-btn:hover {
  background-color: #1CA4E8;
  color: white !important;
}

/* Mobile menu button */
.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: color 0.3s ease;
}

.site-header.scrolled .mobile-menu-toggle {
  color: #333;
}

@media (max-width: 768px) {
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.98);
    padding: 1rem 0;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-navigation a {
    display: block;
    padding: 1rem 1.5rem;
    color: #fff !important;
  }

  /* スマホメニューではcontact-btnも他と同じスタイルに */
  .main-navigation a.contact-btn {
    background-color: transparent;
    border-radius: 0;
    padding: 1rem 1.5rem;
    margin: 0;
    display: block;
    text-align: left;
  }

  .main-navigation a.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-toggle {
    display: block;
  }

  .logo-initial {
    height: 35px;
  }

  .site-title-main {
    font-size: 0.6em;
  }

  .site-title-sub {
    font-size: 0.45em;
    padding-top: 5px;
  }

  .logo-scrolled {
    height: 38px;
  }

  .logo-scrolled .site-title-main {
    font-size: 0.5em;
  }

  .logo-scrolled .site-title-sub {
    font-size: 0.35em;
    padding-top: 5px;
  }
}

/* ===================== Hero Section ===================== */
.hero-section {
  position: relative;
  background-color: #1a202c;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  animation: zoomIn 20s ease-out infinite alternate;
}

@keyframes zoomIn {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 800px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.125rem;
  font-style: italic;
  max-width: 750px;
  border-left: 4px solid #1CA4E8;
  padding-left: 1rem;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.7rem;
  }
}

/* ===================== Philosophy Section ===================== */
.philosophy-section {
  background-color: #fff;
  padding: 80px 0;
  font-family: 'Yu Mincho', 'YuMincho', '游明朝', 'Yu Mincho', serif;
}

.philosophy-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.philosophy-text {
  flex: 1 1 55%;
  min-width: 320px;
}

.philosophy-image {
  flex: 1 1 25%;
  text-align: right;
  display: flex;
  align-items: center;
}

.philosophy-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.philosophy-image-placeholder {
  width: 100%;
  max-width: 500px;
  height: 400px;
  background-color: #d1d5db;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-left: auto;
}

.philosophy-title {
  font-size: 2rem;
  line-height: 1.6;
  font-weight: 700;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.philosophy-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.philosophy-content p {
  font-size: 1.2rem;
  line-height: 2.2;
  color: #333;
  letter-spacing: 0.03em;
  margin-bottom: 1.8em;
  text-align: justify;
}

.philosophy-ceo {
  text-align: right;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 2em;
}

.philosophy-content-mobile {
  display: none;
}

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

  .philosophy-flex {
    flex-direction: column-reverse;
  }

  .philosophy-text,
  .philosophy-image {
    flex: 1 1 100%;
  }

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

  .philosophy-image img {
    max-width: 200px;
  }

  .philosophy-title {
    font-size: 1.5rem;
  }

  .philosophy-content p {
    font-size: 1rem;
  }

  .philosophy-ceo {
    text-align: right;
  }

  .philosophy-content-desktop {
    display: none;
  }

  .philosophy-content-mobile {
    display: block;
  }
}

/* ===================== About Us Section ===================== */
/* Block 1: CORPORATE VISION */
.corporate-vision-section {
  padding-top: 0rem;
  padding-bottom: 4rem;
  background: white;
}

.corporate-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.corporate-vision-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.corporate-vision-label {
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  color: #738D2B;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.corporate-vision-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #738D2B, #E3ECD4);
}

.corporate-vision-text {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .corporate-vision-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Block 2: Logo Divider */
.logo-divider-section {
  padding: 1rem 0 1rem;
  background: white;
}

.logo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-text {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.logo-ueno {
  font-size: 3.5rem;
  font-weight: 800;
  color: #738D2B;
  line-height: 1;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease;
}

.logo-manufactory {
  font-size: 3.5rem;
  font-weight: 800;
  color: #444;
  line-height: 1;
  letter-spacing: -0.025em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1s ease 0.3s;
}

.logo-color-bar {
  display: flex;
  gap: 0;
  margin-top: 1rem;
  width: 20rem;
  height: 1rem;
  background: linear-gradient(to right, #738D2B, #E3ECD4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s ease 0.6s;
}

.logo-content.animated .logo-ueno {
  opacity: 1;
  transform: translateY(0);
}

.logo-content.animated .logo-manufactory {
  opacity: 1;
  transform: translateY(0);
}

.logo-content.animated .logo-color-bar {
  transform: scaleX(1);
}

.color-bar-item {
  display: none;
}

@media (max-width: 768px) {
  .logo-ueno,
  .logo-manufactory {
    font-size: 2rem;
  }

  .color-bar-item {
    width: 1.5rem;
    height: 0.75rem;
  }
}

/* Block 3: MORE CREATIVE */
.more-creative-section {
  padding: 4rem 0 6rem;
  background: white;
}

.more-creative-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.more-creative-label {
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  color: #738D2B;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 1rem;
}

.more-creative-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #738D2B, #E3ECD4);
}

.more-creative-text {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.75;
}

.more-creative-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
  .more-creative-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ===================== Archive Hero Section ===================== */
.archive-hero-section {
  background: #1a202c;
  color: white;
  padding: 6rem 0 4rem;
  text-align: center;
}

.archive-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: white;
}

.archive-subtitle {
  font-size: 0.8rem;
  font-weight: 500;
  color: #1CA4E8;
  letter-spacing: 0.1em;
}

/* ===================== Portfolio Archive Section ===================== */
.portfolio-archive-section {
  padding: 4rem 0 6rem;
  background: white;
}

/* ===================== Privacy Policy Section ===================== */
.privacy-policy-section {
  padding: 4rem 0 6rem;
  background: white;
}

.privacy-policy-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #1CA4E8;
}

.privacy-policy-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a202c;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-policy-section p {
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #333;
}

.privacy-policy-section ul,
.privacy-policy-section ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.8;
  color: #333;
}

.privacy-policy-section li {
  margin-bottom: 0.5rem;
}

.privacy-contact {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid #1CA4E8;
}

.privacy-contact p {
  margin-bottom: 0;
}

.privacy-policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.archive-pagination {
  margin-top: 4rem;
  text-align: center;
}

.archive-pagination .page-numbers {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  background: #f7fafc;
  color: #4a5568;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
  background: #1CA4E8;
  color: white;
}

.archive-pagination .prev,
.archive-pagination .next {
  font-weight: 600;
}

.archive-home-btn {
  text-align: center;
  margin-top: 3rem;
}

.btn-home {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background-color: #1CA4E8;
  border-radius: 9999px;
  transition: background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-decoration: none;
}

.btn-home:hover {
  background-color: #1580c0;
}

/* ===================== Portfolio Section ===================== */
.portfolio-section {
  padding: 4rem 0 2rem;
  background: #f7fafc;
}

.portfolio-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  font-weight: 400;
}

.portfolio-grid {
  margin-bottom: 3rem;
}

/* 新しいカードレイアウトスタイル */
.portfolio-card-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  list-style: none;
  padding: 0;
}

.portfolio-card {
  width: 46%;
  margin-bottom: 75px;
  margin-right: 8%;
  opacity: 1;
  transition: all 0.6s;
}

.portfolio-card:nth-of-type(2n) {
  margin-right: 0;
}

.portfolio-card-image {
  position: relative;
  display: block;
  cursor: default;
}

.portfolio-card-image-inner {
  overflow: hidden;
}

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

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


.portfolio-card-info {
  position: relative;
  background: white;
  margin-left: 16%;
  margin-top: -35px;
  padding-top: 35px;
  padding-left: 40px;
  padding-right: 40px;
  padding-bottom: 25px;
  border-top: 2px solid #1CA4E8;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.portfolio-card-date {
  font-size: 1.0rem;
  font-family: 'Overpass', sans-serif;
  font-weight: 400;
  color: #4a5568;
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.portfolio-card-title {
  display: block;
  font-size: 1.2rem;
  color: #1a202c;
  transition: color 0.3s;
  line-height: 1.4;
  margin-bottom: 3px;
  font-weight: 500;
}

.portfolio-card-title:hover {
  color: #4a5568;
}

.portfolio-card-subtitle {
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.6;
}

.portfolio-card-link {
  text-align: right;
  font-size: 1.4rem;
  margin-top: 8px;
  margin-right: 16px;
}

a.portfolio-detail-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 16px;
  transition: color 0.3s ease;
}

a.portfolio-detail-trigger::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background-color: #1CA4E8;
  margin-right: 6px;
  transition: all 0.3s ease;
}

a.portfolio-detail-trigger svg {
  width: 14px;
  height: 14px;
  stroke: #1CA4E8;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

a.portfolio-detail-trigger:hover {
  color: #1CA4E8;
}

a.portfolio-detail-trigger:hover::before {
  width: 32px;
}

a.portfolio-detail-trigger:hover svg {
  transform: translateX(4px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .portfolio-card {
    width: 100%;
    margin-right: 0 !important;
  }
}

/* 旧スタイル（後方互換性のため保持） */
.portfolio-item {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

.portfolio-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio-title {
  font-size: 1.125rem;
  font-weight: bold;
  color: #1a202c;
}

.portfolio-spec {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4a5568;
  border-left: 2px solid #1CA4E8;
  padding-left: 0.5rem;
}

.portfolio-desc {
  font-size: 0.75rem;
  color: #374151;
  line-height: 1.6;
}

.portfolio-image {
  background: #e5e7eb;
  height: 12rem;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #d1d5db;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-cta {
  text-align: center;
  margin-bottom: 3rem;
}

.btn-portfolio {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background-color: #1CA4E8;
  border-radius: 9999px;
  transition: background-color 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-portfolio:hover {
  background-color: #1580c0;
}

.client-list {
  background: #f7fafc;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.client-list-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #d1d5db;
  padding-bottom: 0.5rem;
}

.client-grid {
  display: grid;
  gap: 1rem;
  font-size: 0.875rem;
}

.client-item {
  display: flex;
  align-items: start;
}

.client-name {
  width: 40%;
  font-weight: 600;
  color: #1a202c;
  padding-right: 0.5rem;
}

.client-work {
  width: 60%;
  color: #374151;
  border-left: 1px solid #d1d5db;
  padding-left: 0.75rem;
}

/* モーダルスタイル */
.portfolio-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.portfolio-modal.active {
  display: block;
}

.portfolio-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.portfolio-modal-content {
  position: relative;
  max-width: 900px;
  margin: 3% auto;
  background: white;
  border-radius: 8px;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10000;
}

.portfolio-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 40px;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  z-index: 100;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.portfolio-modal-close:hover {
  color: #1CA4E8;
}

.portfolio-modal-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* スライダー用スタイル */
.portfolio-modal-slider-wrapper {
  position: relative;
  width: 100%;
  order: 1; /* 上に配置 */
}

.portfolio-modal-text {
  width: 100%;
  order: 2; /* 下に配置 */
}

.portfolio-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.portfolio-slider-container {
  position: relative;
  width: 100%;
  max-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.portfolio-slide {
  display: none;
  width: 100%;
}

.portfolio-slide.active {
  display: block;
}

.portfolio-slide img {
  width: 100%;
  max-height: 350px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* スライダーナビゲーションボタン */
.portfolio-slider-prev,
.portfolio-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.portfolio-slider-prev:hover,
.portfolio-slider-next:hover {
  background: rgba(28, 164, 232, 0.9);
}

.portfolio-slider-prev {
  left: 10px;
}

.portfolio-slider-next {
  right: 10px;
}

/* スライダーインジケーター */
.portfolio-slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.portfolio-slider-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.portfolio-slider-indicator.active {
  background: #1CA4E8;
}

.portfolio-slider-indicator:hover {
  background: #1CA4E8;
  opacity: 0.7;
}

.portfolio-modal-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 8px;
}

.portfolio-modal-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  color: #4a5568;
  border-left: 3px solid #1CA4E8;
  padding-left: 12px;
  margin-bottom: 15px;
}

.portfolio-modal-description {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

@media (min-width: 768px) {
  /* 1カラムレイアウトを維持 */
  .portfolio-modal-inner {
    gap: 40px;
  }

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

  .portfolio-image {
    height: 16rem;
  }

  .client-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }
}

@media (max-width: 767px) {
  .portfolio-modal-content {
    margin: 5% 5%;
    padding: 30px 20px;
    max-height: 90vh;
  }

  .portfolio-modal-title {
    font-size: 1.5rem;
  }

  .portfolio-modal-subtitle {
    font-size: 1rem;
  }

  .portfolio-modal-description {
    font-size: 0.9rem;
  }

  .portfolio-modal-inner {
    gap: 15px;
  }

  .portfolio-slider-container {
    max-height: 250px;
  }

  .portfolio-slide img {
    max-height: 250px;
  }
}

/* ===================== Company Details Section ===================== */
.company-section {
  padding: 4rem 0 6rem;
  background: white;
}


.plx_original.clearfix {
  clear: both;
}

.plx_text_content.company-content {
  width: 100%;
}

.plx_desc {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.company-content-wrap {
  width: 70%;
}

.company-img-wrap {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}


.company-img-wrap img {
  width: 100%;
  box-shadow: 6px 6px 9px rgba(0, 0, 0, 0.4);
}

.company-table {
  width: 90%;
}

.company-table tr th {
  color: #294a87;
  border: none;
  border-bottom: 1px solid rgba(170, 170, 170, 0.48);
  background: none;
  padding: 15px 15px 15px 0;
  font-weight: 700;
  font-size: 1.0rem;
  text-align: left;
  width: 200px;
}

.company-table tr td {
  border: none;
  border-bottom: 1px solid rgba(170, 170, 170, 0.48);
  background: none;
  padding: 15px 0;
  font-size: 1rem;
  color: #333;
}

@media (max-width: 767px) {
  .company-subtitle {
    text-align: center;
  }

  .plx_desc {
    display: block;
  }

  .company-content-wrap {
    width: 100%;
  }

  .company-img-wrap {
    width: 80%;
    margin: 0 auto;
    margin-top: 30px;
  }

  .company-img-wrap::before {
    display: none;
  }

  .company-table {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 30px;
  }

  .company-table tr th,
  .company-table tr td {
    display: block;
    width: 100%;
  }

  .company-table tr th {
    padding-bottom: 10px;
    border-bottom: none;
  }

  .company-table tr td {
    padding-top: 0;
    padding-bottom: 20px;
  }
}

/* ===================== History Section ===================== */
.history-section {
  padding: 4rem 0 6rem;
  background: #2d3748;
  color: white;
}

.history-section .section-title {
  color: #fff;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.history-title-group h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.history-subtitle {
  font-size: 1.25rem;
  font-weight: 500;
  color: #1CA4E8;
  letter-spacing: 0.1em;
}

.history-tagline {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  color: #9ca3af;
}

.history-nav {
  display: none;
  gap: 1rem;
}

.history-nav-btn {
  padding: 0.75rem;
  border: 1px solid #4a5568;
  border-radius: 9999px;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.history-nav-btn:hover {
  border-color: #1CA4E8;
  color: #1CA4E8;
}

.history-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.history-slider-container {
  overflow-x: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.history-slider-container::-webkit-scrollbar {
  display: none;
}

.timeline-card {
  min-width: 280px;
  max-width: 280px;
  scroll-snap-align: start;
  position: relative;
  padding: 1.5rem;
  background: #374151;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.timeline-year {
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  position: absolute;
  top: 40px;
  right: 20px;
  z-index: 0;
  line-height: 1;
}

.timeline-title {
  font-size: 1rem;
  font-weight: bold;
  color: #d1d5db;
  margin-bottom: 6rem;
  position: relative;
  z-index: 10;
}

.timeline-desc {
  font-size: 0.875rem;
  line-height: 1.89;
  position: relative;
  z-index: 10;
  padding: 25px 5px;
}

.scroll-indicator-wrapper {
  margin-top: 2rem;
}

.scroll-indicator-bar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  position: relative;
  max-width: 32rem;
  margin: 0;
}

.scroll-indicator-progress {
  height: 100%;
  width: 0;
  background-color: #1CA4E8;
  border-radius: 9999px;
  transition: width 0.3s ease-out;
}

@media (min-width: 640px) {
  .history-nav {
    display: flex;
  }

  .timeline-card {
    min-width: 320px;
    max-width: 320px;
  }
}

@media (min-width: 768px) {
  .timeline-card {
    min-width: 340px;
    max-width: 340px;
  }
}

@media (min-width: 1024px) {
  .timeline-card {
    min-width: 360px;
    max-width: 360px;
  }
}

/* ===================== Footer ===================== */
.site-footer {
  background: #1a202c;
  color: white;
  padding: 3rem 0 4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  border-bottom: 1px solid #4a5568;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-company-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  color: #1CA4E8;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section p {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #1CA4E8;
  transition: opacity 0.3s;
}

.footer-section a:hover {
  opacity: 0.8;
}

.footer-copyright {
  text-center;
  color: #9ca3af;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================== Contact Form Section ===================== */
.page-contact {
  padding: 4rem 0 6rem;
  background: white;
}

.page-contact .contact-form-wrapper {
  margin: 0 auto;
}

.page-contact .contact-form-intro {
  text-align: center;
  margin-bottom: 40px;
}

.page-contact .contact-form-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  font-family: 'Noto Sans JP', sans-serif;
}

.page-contact .contact-form-info {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 30px;
}

.page-contact .form-group {
  margin-bottom: 30px;
}

.page-contact .form-label {
  display: flex;
  align-items: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.page-contact .required-badge {
  display: inline-block;
  background-color: #1CA4E8;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
}

.page-contact .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.page-contact .radio-group .mwform-radio-field {
  display: flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
}

.page-contact .radio-group .mwform-radio-field input {
  margin-right: 5px;
}

.page-contact .radio-group .mwform-radio-field .mwform-radio-field-text {
  font-size: 16px;
}

.page-contact .form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.page-contact .form-textarea {
  resize: vertical;
  min-height: 150px;
}

.page-contact .privacy-policy {
  text-align: center;
}

.page-contact .privacy-policy .checkbox-label {
  display: flex;
  justify-content: center;
}

.page-contact .privacy-policy .checkbox-label a {
  color: #1CA4E8;
}

.page-contact .privacy-policy .privacy-label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
}

.page-contact .privacy-policy .privacy-label br {
  display: none;
}

.page-contact .privacy-policy .privacy-label a {
  color: #1CA4E8;
  text-decoration: underline;
}

.page-contact .privacy-policy .mwform-checkbox-field {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.page-contact .privacy-policy .mwform-checkbox-field input {
  margin-right: 5px;
}

.page-contact .privacy-policy .mwform-checkbox-field .mwform-checkbox-field-text {
  color: #1CA4E8;
  text-decoration: underline;
}

.page-contact .privacy-notice {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.page-contact .form-submit {
  text-align: center;
  margin-top: 30px;
}

.page-contact .submit-button {
  background-color: #1CA4E8;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 15px 60px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 100%;
  max-width: 400px;
}

.page-contact .submit-button:hover {
  background-color: #1580c0;
}

.page-contact .error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
}

.page-contact .mw_wp_form_confirm .privacy-policy {
  display: none;
}

/* 確認画面のスタイル */
.mw_wp_form_confirm {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.mw_wp_form_confirm .form-group {
  background: #f9f9f9;
  padding: 10px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  border-left: 4px solid #1CA4E8;
}

.mw_wp_form_confirm .form-group .form-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 16px;
}

.mw_wp_form_confirm .form-group .required-badge {
  display: none;
}

.mw_wp_form_confirm .radio-group,
.mw_wp_form_confirm .form-group br + * {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
  margin-top: 5px;
}

.mw_wp_form_confirm .privacy-policy {
  display: none;
}

.mw_wp_form_confirm .form-submit {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.mw_wp_form_confirm .submit-button {
  background-color: #1CA4E8;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 15px 60px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 200px;
}

.mw_wp_form_confirm .submit-button:hover {
  background-color: #1580c0;
}

.mw_wp_form_confirm input[type="button"] {
  background-color: #999;
  color: white;
  border: none;
  border-radius: 999px;
  padding: 15px 60px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 200px;
}

.mw_wp_form_confirm input[type="button"]:hover {
  background-color: #777;
}

/* 確認画面のcontent-area */
.content-area {
  margin: 120px 0;
}

/* 確認画面のentry-content */
.entry-content {
  padding: 0;
}

/* 確認画面のタイトル */
.entry-header .entry-title {
  text-align: center;
  color: #1CA4E8;
}

/* 送信完了画面のスタイル */
.mw_wp_form_complete {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
}

.mw_wp_form_complete .mw-wp-form-complete-message {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 60px 40px;
}

.mw_wp_form_complete .complete-icon {
  width: 80px;
  height: 80px;
  background: #1CA4E8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 48px;
  color: white;
  font-weight: bold;
}

.mw_wp_form_complete .complete-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.mw_wp_form_complete .complete-text {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
}

.page-contact .mw_wp_form_complete {
  text-align: center;
}

.page-contact .mw_wp_form_complete p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* エラーメッセージのスタイル */
.mw_wp_form .error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
  display: block;
  font-weight: 600;
}

.mw_wp_form .mwform-error {
  background: #ffe6e6;
  border: 2px solid #e74c3c;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  color: #e74c3c;
  font-weight: 600;
}

@media (max-width: 768px) {
  .page-contact {
    padding: 3rem 0 4rem;
  }

  .page-contact .radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-contact .radio-group .mwform-radio-field {
    margin-right: 0;
    margin-left: 0;
  }

  .page-contact .form-control {
    padding: 10px;
  }

  .page-contact .submit-button {
    padding: 12px 40px;
    font-size: 16px;
  }

  .archive-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
  }

  /* スマホでのフォーム調整 */
  .page-contact .privacy-label {
    font-size: 14px;
  }

  .page-contact .form-group {
    margin-bottom: 25px;
  }

  /* 送信ボタンのタップ領域確保 */
  .page-contact .form-submit {
    padding: 20px 0;
    position: relative;
    z-index: 10;
  }
}
