@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200..900&family=Shippori+Mincho&display=swap');

/* ===== リセットCSS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Shippori Mincho", serif;
  color: #333;
  line-height: 1.6;
  background-color: #f9f9f9;
  overflow-x: hidden;
}

/* ===== 基本タイポグラフィ ===== */
h1, h2, h3, h4 {
  font-family: 'Noto Serif JP', serif;
}

/* ===== 背景要素 ===== */
.svg-background {
  position: fixed;
  top: -40vh;
  left: 0;
  width: 130vw;
  height: 140vh;
  z-index: -1;
  pointer-events: none;
  object-fit: cover;
  transform: translateY(0);
  will-change: transform;
  transform-origin: center top;
}

/* ===== ヘッダー ===== */
header {
  background-color: #5A6E78;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}

header.scrolled {
  background-color: #5A6E78;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.logo {
  /* font-size: 2rem; */
  font-weight: 700;
  color: #1a5276;
  transition: transform 0.3s ease;
  z-index: 1001;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  max-height: 40px;
  width: auto;
}

/* ===== ナビゲーション ===== */
nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 2rem;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  display: block;
  padding: 10px 15px;
  white-space: nowrap;
  text-align: center;
}

/* 日本語テキスト用の疑似要素 */
nav ul li a::before {
  content: attr(data-ja);
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  margin: auto;
  color: #fff;
  width: 100%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
}

nav ul li a:hover {
  color: transparent;
}

nav ul li a:hover::before {
  opacity: 1;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #1a5276;
  transition: width 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}

/* ハンバーガーメニュー */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* モバイルメニュー表示時のハンバーガーアイコン変形 */
.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

nav ul li a:hover::after {
  width: 100%;
}

/* ===== ヒーローセクション ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height:850px;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('/api/placeholder/1400/800'); */
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 30vh 20px 0 20px;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards 0.5s;
}

.hero-content h1 {
  font-size: 3.3rem;
  letter-spacing: 0.5em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 3rem;
  position: relative;
  line-height: 1.2;
  font-weight: 700;
  border: none;
}

.red {
  color: #fff;
}

/* ヒーローアニメーション要素 */
.hero-content h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #D6B679;
  animation: draw-top 1s forwards 1.5s;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 0;
  background-color: #D6B679;
  animation: draw-right 1s forwards 2.5s;
}

.hero-content::after {
  content: '';
  position: absolute;
  top: calc(50%);
  right: calc(50%);
  width: 1px;
  height: 0;
  background-color: #D6B679;
  animation: extend-down 1.5s forwards 5.5s;
  z-index: 0;
}

.hero-content h1 span::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1px;
  background-color: #D6B679;
  animation: draw-bottom 1s forwards 3.5s;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 0;
  background-color: #D6B679;
  animation: draw-left 1s forwards 4.5s;
}

.hero-content h1 span {
  padding-left: 2rem;
  padding-bottom: 2rem;
  font-size: 4.5rem;
  color: #D6B679;
  position: relative;
}

    /* copybox内のテキスト順次表示スタイル - 最終改良版 */
    .hero-content .copybox {
      margin-top: 1rem;
      margin-bottom: 1rem;
      max-width: 600px;
      background: #111;
      z-index: 1;
      
      /* 追加のスタイル */
      position: relative;
      display: block;
      margin-left: auto;
      margin-right: auto;
      overflow: hidden;
      
      /* 高さアニメーションのための準備 */
      transition: all 0.8s ease;
    }
    
    .hero-content .copybox p {
      /* margin-bottom: 1rem; */
      font-size: 1.2rem;
      line-height: 1.8;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
      padding: 1rem;
      margin-top: 0;
      width: auto;
      display: block;
    }
    
    /* 2つ目の段落のスタイル */
    .hero-content .copybox p:nth-of-type(2) {
      opacity: 0;
      max-height: 0;
      padding-top: 0;
      padding-bottom: 0;
      margin-top: 0;
      margin-bottom: 0;
      overflow: hidden;
      transform: translateY(10px);
      transition: opacity 0.8s ease, max-height 0.8s ease, padding 0.8s ease, margin 0.8s ease, transform 0.8s ease;
    }
    
    /* 2つ目の段落が表示される時のスタイル */
    .hero-content .copybox p:nth-of-type(2).active {
      opacity: 1;
      transform: translateY(0);
      padding: 1rem;
      margin-bottom: 1rem;
    }

/* スクロールダウン矢印 */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
  cursor: pointer;
}

.scroll-down svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
}

/* ===== アニメーション定義 ===== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes draw-top {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes draw-right {
  0% { height: 0; }
  100% { height: 100%; }
}

@keyframes draw-bottom {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes draw-left {
  0% { height: 0; }
  100% { height: 100%; }
}

@keyframes extend-down {
  0% { height: 0; }
  100% { height: 450px; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* ===== CTA ボタン ===== */
.cta-button {
  display: inline-block;
  background-color: #1a5276;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
  z-index: -1;
}

.cta-button:hover {
  background-color: #154360;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover:before {
  left: 100%;
}

/* ===== スクロールダウン矢印 ===== */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 2;
  cursor: pointer;
}

.scroll-down svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
}

/* ===== 共通アニメーション ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== セクションコンテナと見出し ===== */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 3.0rem;
  text-align: left;
  margin-bottom: 1rem;
  color: #1a5276;
  position: relative;
  letter-spacing: 0.1em;
}

.section-title_center {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #1a5276;
  position: relative;
}

.section-title-animated .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.section-title-animated.animate .char {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 2段表示見出し ===== */
.section-header {
  position: relative;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #E0E0E0;
}

.section-title2 {
  position: relative;
  font-size: 3.0rem;
  text-align: left;
  margin-bottom: 0.5rem;
  color: #1a5276;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.title-jp {
  font-size: 3.0rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-family: 'Noto Serif JP', serif;
  position: relative;
  display: inline-block;
  padding-left: 1rem;
}

.title-jp::before {
  content: '';
  position: absolute;
  top: 25%;
  left: 0;
  height: 50%;
  width: 3px;
  background: #5A6E78;
}

.title-en {
  font-size: 1.1rem;
  color: #5A6E78;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.8;
  padding-left: 1rem;
}

.section-title-animated2 .title-jp,
.section-title-animated2 .title-en {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.section-title-animated2.animate .title-jp {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.section-title-animated2.animate .title-en {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* ===== 企業理念セクション ===== */
.philosophy {
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 140%;
  /* background-image: url('/api/placeholder/1400/900'); */
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
  transform: translateY(0);
  will-change: transform;
}

.philosophy-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
}

.philosophy-text {
  flex: 1;
  padding-right: 3rem;
}

.philosophy-text h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a5276;
  letter-spacing: 0.2em;
}

.philosophy-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.philosophy-image {
  flex: 1;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.8s ease;
}

.philosophy-image:hover {
  transform: perspective(1000px) rotateY(10deg);
}

.philosophy-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

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

.president-signature {
  text-align: right;
  margin-top: 3rem;
  font-family: 'Noto Serif JP', serif;
  line-height: 1.8;
}

.president-signature p {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.president-signature p::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #5A6E78, transparent);
}

.spirit {
  background-color: #f9f9f9;
}

/* ===== サービスセクション ===== */
.services {
  padding: 6rem 5%;
  background-color: rgba(231, 227, 220, 0.8);
  position: relative;
  overflow: hidden;
}

.services::before,
.services::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,82,118,0.05) 0%, rgba(26,82,118,0) 70%);
  z-index: 0;
}

.services::before {
  top: -200px;
  left: -200px;
}

.services::after {
  bottom: -200px;
  right: -200px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background-color: #fff;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateY(0) rotateX(0) rotateY(0);
  transform-style: preserve-3d;
  perspective: 1000px;
  display: flex;
  flex-direction: column;
}

.service-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
  transform-origin: center;
}

.service-card:hover .service-image {
  transform: scale(1.1);
}

.service-content {
  padding: 1.5rem;
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding-bottom: 3.5rem;
}

.service-content::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #1a5276;
  transition: width 0.3s ease;
}

.service-card:hover .service-content::before {
  width: 100%;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #1a5276;
}

.service-content p {
  margin-bottom: 1.5rem;
}

/* ===== リンクスタイル ===== */
.service-link, .detail-link {
  display: inline-block;
  color: #1a5276;
  text-decoration: none;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.service-link {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}

.service-link::before, .detail-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(26, 82, 118, 0.1);
  transition: height 0.3s ease;
  z-index: -1;
}

.service-link:hover::before, .detail-link:hover::before {
  height: 100%;
}

.service-link::after, .detail-link::after {
  content: '→';
  margin-left: 5px;
  transition: all 0.3s;
}

.service-link:hover::after, .detail-link:hover::after {
  margin-left: 10px;
  transform: translateX(2px);
}

.detail-link--card-bottom {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
}

.detail-link--light {
  color: #fff;
}

.detail-link--light::before {
  background-color: rgba(255, 255, 255, 0.2);
}

.detail-link--small {
  padding: 0.2rem 0.5rem;
  font-size: 0.9em;
}

.detail-link--large {
  padding: 0.6rem 1rem;
  font-size: 1.1em;
}

/* ===== プロセスセクション ===== */
.process {
  padding: 6rem 5%;
  background-color: #fff;
  position: relative;
  overflow: hidden;
}

.process-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('/api/placeholder/1400/700'); */
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.process-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 150px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
}

.step.active {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: #1a5276;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(26, 82, 118, 0.3);
}

.step-number::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
  top: -50%;
  left: -50%;
  transition: all 0.5s ease;
}

.step:hover .step-number::before {
  top: 0;
  left: 0;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1a5276;
}

.step p {
  font-size: 0.9rem;
  color: #666;
  text-align: left;
}

/* ===== ワークフロー ===== */
.workflow-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10rem 2rem;
  font-family: "Shippori Mincho", serif;
  background-color: #f9f9f9;
}

.workflow-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.workflow-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
  position: relative;
  display: inline-block;
  font-family: 'Noto Serif JP', serif;
}

.workflow-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: #5A6E78;
}

.workflow-description {
  font-size: 1.3rem;
  margin: 1.5rem 0 0.5rem;
  color: #333;
  line-height: 1.4;
}

.workflow-subtitle {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
  background: rgba(0,0,0,0.05);
  padding: 0.4rem 1rem;
  display: inline-block;
}

.workflow-container {
  width: 80%;
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.workflow-item {
  position: relative;
  z-index: 1;
}

.workflow-card {
  background: #fff;
  padding: 2rem 2rem 2rem 2.5rem;
  box-shadow: 0 15px 25px rgba(0,0,0,0.05);
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.workflow-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: #5A6E78;
}

.workflow-item h3 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #333;
  padding-left: 1rem;
  font-family: 'Noto Serif JP', serif;
}

.workflow-item p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  padding-left: 1rem;
}

.workflow-item-large {
  padding-bottom: 1.5rem;
}

.workflow-number {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 36px;
  height: 36px;
  background: #5A6E78;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 2;
}

.workflow-detail-list {
  list-style-type: none;
  padding: 0 0 0 1rem;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.workflow-detail-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: #333;
}

.workflow-detail-list li:before {
  content: '●';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #5A6E78;
  font-size: 0.8rem;
}

.workflow-highlight {
  background: #E7E3DC;
  padding: 1.5rem;
  margin-top: 1rem;
  margin-left: 1rem;
}

.workflow-highlight p {
  padding: 0;
  font-weight: 500;
}

.workflow-arrow {
  position: relative;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -1rem;
  margin-bottom: -1rem;
  z-index: 0;
}

.workflow-arrow-line {
  position: relative;
  width: 2px;
  height: 40px;
  background: #5A6E78;
}

.workflow-arrow-line::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #5A6E78;
  box-shadow: 0 0 10px rgba(90, 110, 120, 0.3);
}

/* ===== 実績セクション ===== */
.portfolio {
  padding: 6rem 5%;
  background-color: #E7E3DC;
  position: relative;
  overflow: hidden;
}

.portfolio-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#1a5276 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.1;
  z-index: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.portfolio-item {
  overflow: hidden;
  position: relative;
  height: 300px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-item.active {
  opacity: 1;
  transform: scale(1);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(26, 82, 118, 0.9), rgba(26, 82, 118, 0.6));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 2rem;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.1) rotate(2deg);
}

.portfolio-overlay h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.1s;
}

.portfolio-overlay p {
  color: #e0e0e0;
  margin-bottom: 1.5rem;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.2s;
}

.portfolio-overlay .cta-button {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease 0.3s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .cta-button {
  transform: translateY(0);
  opacity: 1;
}

/* ===== お問い合わせセクション ===== */
.contact {
  padding: 6rem 5%;
  background-color: #1a5276;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('/api/placeholder/1400/800'); */
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
  will-change: transform;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact h2 {
  color: #fff;
}

.contact h2::after {
  background-color: #fff;
}

.contact p {
  max-width: 700px;
  margin: 2rem auto;
  font-size: 1.1rem;
}

.contact-button {
  font-family: 'Noto Sans JP', sans-serif;
  display: inline-block;
  background-color: #fff;
  color: #1a5276;
  padding: 1rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 82, 118, 0.2), transparent);
  transition: left 0.7s;
  z-index: -1;
}

.contact-button:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-button:hover:before {
  left: 100%;
}

/* ===== お問い合わせフォーム ===== */
.contact-form {
  padding: 6rem 5%;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.contact-form-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background-image: url('/api/placeholder/1400/800'); */
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
  will-change: transform;
}

.contact-form-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 3rem auto 0;
}

.contact-form-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-form-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group .required {
  color: #E57373;
  margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #E0E0E0;
  background-color: #fff;
  font-family: "Shippori Mincho", serif;
  font-size: 1rem;
  color: #333;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #5A6E78;
  outline: none;
  box-shadow: 0 0 0 2px rgba(90, 110, 120, 0.1);
}

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

.form-group.privacy-policy {
  display: flex;
  align-items: center;
  grid-column: span 2;
  margin-top: 1rem;
}

.form-group.privacy-policy input {
  width: auto;
  margin-right: 8px;
}

.form-group.privacy-policy label {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.form-group.privacy-policy a {
  color: #1a5276;
  text-decoration: none;
  margin-right: 5px;
  position: relative;
}

.form-group.privacy-policy a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #1a5276;
  transition: width 0.3s;
}

.form-group.privacy-policy a:hover::after {
  width: 100%;
}

.form-button {
  grid-column: span 2;
  text-align: center;
  margin-top: 1rem;
}

.submit-button {
  display: inline-block;
  background-color: #5A6E78;
  color: #fff;
  padding: 1rem 4rem;
  border: none;
  border-radius: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.submit-button:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.7s;
}

.submit-button:hover {
  background-color: #495a63;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.submit-button:hover:before {
  left: 100%;
}

.submit-button:focus {
  outline: none;
}

/* ===== フッター ===== */
footer {
  background-color: #5A6E78;
  color: #fff;
  padding: 4rem 5% 2rem;
  position: relative;
  overflow: hidden;
}

.footer-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.1;
  z-index: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-info {
  flex: 1;
  min-width: 300px;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.footer-logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: width 0.3s;
}

.footer-logo:hover::after {
  width: 100%;
}

.footer-info p {
  margin-bottom: 1rem;
  color: #ccc;
}

.footer-links {
  flex: 2;
  display: flex;
  justify-content: space-between;
  min-width: 300px;
}

.footer-links-column {
  margin-bottom: 2rem;
  flex: 1;
  padding: 0 15px;
  display: flex;
  flex-direction: column;
}

.footer-links-column h3 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

.footer-links-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: width 0.3s;
}

.footer-links-column:hover h3::after {
  width: 50px;
}

.footer-links-column ul {
  list-style: none;
  padding: 0;
}

.footer-links-column ul li {
  margin-bottom: 0.8rem;
}

.footer-links-column ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s;
  position: relative;
  display: inline-block;
  padding-left: 0;
  margin-right: 8px;
}

.footer-links-column ul li a:hover {
  color: #fff;
  transform: translateX(8px);
}

.footer-links-column ul li a::before {
  content: '›';
  position: absolute;
  left: -10px;
  opacity: 0;
  transition: all 0.3s;
}

.footer-links-column ul li a:hover::before {
  left: -8px;
  opacity: 1;
}

/* 追加: マップ用のスタイル */
.footer-map {
  /* border-radius: 6px; */
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
  height: 100%;
  min-height: 220px;
  display: flex;
}

.footer-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  /* border-radius: 6px; */
  flex: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #ccc;
  position: relative;
  z-index: 1;
}

/* ===== ページヘッダー ===== */
.page-header {
  position: relative;
  width: 100%;
  height: 20vh;
  min-height:250px;
  overflow: hidden;
  margin-top: 0;
}

.page-header-image-html {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.page-header-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 3;
  padding: 0 5%;
  color: #fff;
}

.sec_header_inner{
  width:1200px;
  margin:50px auto 0;
}

.page-header-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 3rem;
  font-family: 'Noto Serif JP', serif;
  letter-spacing: 0.1em;
}

.page-header-subtitle {
  font-size: 1.2rem;
  margin-top: 0.5rem;
  opacity: 0.9;
  font-family: "Shippori Mincho", serif;
}

.page-content {
  padding-top: 2rem;
}

/* ===== ユーティリティクラス ===== */
.w100 {
  width: 100%;
  text-align: right;
}

.headt {
  color: #F08080;
  font-size: 1.3em;
}

.pc{display:block;}
.sp{display:none;}

/* ===== レスポンシブデザイン ===== */
@media (max-width: 1024px) {
  .philosophy-content {
    flex-direction: column;
  }
  
  .philosophy-text {
    padding-right: 0;
    margin-bottom: 2rem;
  }
  
  .process-steps {
    flex-direction: column;
    align-items: center;
  }
  
  .process-steps::before {
    display: none;
  }
  
  .step {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
    nav > ul {
      display: none !important;
    }

    .menu-toggle {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
      position: absolute !important;
      right: 20px !important;
      top: 50% !important;
      transform: translateY(-50%) !important;
      z-index: 9999 !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      width: 30px !important;
      height: 21px !important;
      cursor: pointer !important;
    }
    
    .menu-toggle span {
      background-color: #fff !important;
      height: 3px !important;
      width: 100% !important;
      display: block !important;
      border-radius: 3px !important;
      transition: all 0.3s ease !important;
    }
    
    /* モバイルメニュー表示時のハンバーガーアイコン変形 */
    .menu-toggle.active span:nth-child(1) {
      transform: translateY(9px) rotate(45deg) !important;
    }
    
    .menu-toggle.active span:nth-child(2) {
      opacity: 0 !important;
    }
    
    .menu-toggle.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg) !important;
    }

    nav {
      width: 100%;
      /* margin-top: 1rem; */
    }
    
    nav ul {
      justify-content: center;
    }
    
    nav ul li {
      margin: 0 1rem;
      
    }/* モバイルメニュー */
    nav ul.active {
      display: flex !important;
      position: fixed !important;
      top: 0 !important;
      right: 0 !important;
      width: 90% !important;
      /* max-width: 300px !important; */
      height: 100vh !important;
      background-color: #5A6E78 !important;
      flex-direction: column !important;
      padding: 80px 0 30px !important;
      box-shadow: -5px 0 15px rgba(0,0,0,0.1) !important;
      z-index: 1000 !important;
      transition: right 0.3s ease !important;
      margin: 0 !important;
    }
    
    nav ul li {
      margin: 0 !important;
      width: 100% !important;
      text-align: center !important;
    }
    
    nav ul li a {
      padding: 15px !important;
      width: 100% !important;
      display: block !important;
      border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    }
    
    /* オーバーレイ */
    .menu-overlay {
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      width: 100% !important;
      height: 100% !important;
      background-color: rgba(0,0,0,0.5) !important;
      z-index: 999 !important;
      opacity: 0 !important;
      visibility: hidden !important;
      transition: all 0.3s ease !important;
    }
    
    .menu-overlay.active {
      opacity: 1 !important;
      visibility: visible !important;
    }

    .hero-content {
      padding: 10vh 20px 0 20px;
    }

    .hero-content h1 span::before {
      content: '';
      position: absolute;
      bottom: 0;
      right: 0;
      width: 0;
      height: 1px;
      background-color: #D6B679;
      animation: draw-bottom 1s forwards 3.5s;
    }
    
    .hero-content h1 span::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: -50px;
      width: 1px;
      height: 0;
      background-color: #D6B679;
      animation: draw-left 1s forwards 4.5s;
    }
    
    .hero-content h1 span {
      padding-left: 2rem;
      padding-bottom: 4rem;
      font-size: 4.5rem;
      color: #D6B679;
      position: relative;
    }

    .hero h1 {
      font-size: 2.5rem;
    }
    
    .hero p {
      font-size: 1rem;
    }
    
    .section-title {
      font-size: 2rem;
      font-family: "Noto Serif JP", serif;
    }
    
    .header-container {
      padding: 0.5rem 5%;
      flex-direction: column;
      align-items: center;
      gap: 0;
    }
    
    .header-container a {
      /* margin:0; */
    }

    .sec_header_inner{
      width:100%;
    }
    .footer-content {
      flex-direction: column;
    }
    
    .footer-links {
      flex-direction: column;
      width: 100%;
    }
    
    .footer-links-column {
      width: 100%;
      padding: 0;
    }
    
    .footer-map {
      margin-bottom: 20px;
    }
    
    .workflow-detail-list {
      grid-template-columns: 1fr;
    }
    
    .workflow-title {
      font-size: 1.8rem;
    }
    
    .workflow-description {
      font-size: 1.1rem;
    }
    
    .inquiry-form {
      grid-template-columns: 1fr;
    }
    
    .form-group.full-width,
    .form-group.privacy-policy,
    .form-button {
      grid-column: span 1;
    }
    
    .philosophy-text {
      padding-right: 0;
    }
    
    .president-signature {
      margin-top: 2rem;
    }
    
    .page-header-title {
      font-size: 1.8rem;
      margin-top: 2rem;
      margin:0;
      padding:0;
    }
    
    .page-header-subtitle {
      font-size: 1rem;
      margin-top: 0.5rem;
      margin:0;
      padding:0;
    }
    
    .title-jp {
      font-size: 2rem;
    }
    
    .title-en {
      font-size: 0.9rem;
    }
    
    .hero-content p {
      font-size: 1.2rem;
      line-height: 1.8em;
    }

    .pc{display:none;}
    .sp{display:block;}

}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  nav ul {
    flex-wrap: wrap;
  }
  
  nav ul li {
    margin: 0.5rem;
  }
  
  .hero-content h1 {
    padding: 1.5rem;
  }
  
  .hero-content h1 span {
    font-size: 3rem;
  }
}


/* ローディング画面のスタイル */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading.hidden {
  opacity: 0;
  visibility: hidden;
}

/* スピナーのスタイル */
.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(215, 125, 0, 0.2);
  border-radius: 50%;
  border-top-color: #D6B679;
  animation: spin 1s ease-in-out infinite;
}

/* ロゴを追加する場合 */
.loading-logo {
  position: absolute;
  max-width: 120px;
  margin-bottom: 100px;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

/* フェードイン効果（ページコンテンツ用） */
.fade-in-content {
  opacity: 0;
  transition: opacity 1s ease-in;
}

.fade-in-content.visible {
  opacity: 1;
}



/* PPT説明スタイル */
.ppt-explanation {
  padding: 1.5rem;
  margin-top: 1rem;
  margin-left: 1rem;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.ppt-explanation h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #5A6E78;
  font-family: 'Noto Serif JP', serif;
  font-weight: bold;
}

.ppt-explanation p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.ppt-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 15px;
}

.ppt-header {
  background-color: #FFE44D;
  color: #333;
  padding: 10px 30px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  min-width: 180px;
  /* border-radius: 4px; */
}

.ppt-departments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background-color: rgba(90, 110, 120, 0.7);
  padding: 20px;
  /* border-radius: 4px; */
}

.ppt-department {
  background-color: white;
  padding: 12px;
  text-align: center;
  min-width: 110px;
  /* border-radius: 4px; */
  font-weight: 500;
}

@media (max-width: 768px) {
  .ppt-departments {
      flex-direction: column;
      align-items: center;
  }
  
  .ppt-department {
      width: 80%;
  }
}


/* 新しいポートフォリオアイテムスタイル */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.portfolio-item-new {
  background-color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  /* border-radius: 6px; */
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.portfolio-image-container {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.portfolio-item-new .portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* .portfolio-item-new:hover .portfolio-image {
  transform: scale(1.05);
} */

.portfolio-content {
  padding: 1.5rem;
  position: relative;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: #1a5276;
  font-family: 'Noto Serif JP', serif;
}

.portfolio-content p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* レスポンシブデザイン調整 */
@media (max-width: 1024px) {
  .portfolio-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .portfolio-grid {
      grid-template-columns: 1fr;
      max-width: 90%;
      margin-left: auto;
      margin-right: auto;
  }
  
  .portfolio-image-container {
      height: 200px;
  }
}

/* 擬似要素のアニメーションをデフォルトで止める */
.hero-content:not(.loaded) h1::before,
.hero-content:not(.loaded) h1::after,
.hero-content:not(.loaded)::after,
.hero-content:not(.loaded) h1 span::before,
.hero-content:not(.loaded) h1 span::after {
  animation: none !important;
}
/* 「.loaded」が付いたら、元のdelay付きアニメーションを適用 */
.hero-content.loaded h1::before {
  animation: draw-top 1s forwards 1.5s;
}
.hero-content.loaded h1::after {
  animation: draw-right 1s forwards 2.5s;
}
.hero-content.loaded::after {
  animation: extend-down 1.5s forwards 5.5s;
}
.hero-content.loaded h1 span::before {
  animation: draw-bottom 1s forwards 3.5s;
}
.hero-content.loaded h1 span::after {
  animation: draw-left 1s forwards 4.5s;
}

.item-description {
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  font-weight: 500;
  border-bottom:1px solid #ccc;
}

.item-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
  color: #555;
}

.item-meta li {
  margin-bottom: 0.3em;
}
