/* 
 * このファイルはCSS分割のために整理されました
 * 共通スタイル → css/common.css
 * コンタクト関連 → contact.css
 * ページ固有スタイル → css/pages.css
 * アニメーション → css/animations.css
 */

/* 
* 基本スタイルシート
* アニメーション以外の基本的なスタイル定義
*/

/* コンタクトセクション内のヘッダースタイル */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.contact-header .logo {
  margin: 30px;
  font-weight: bold;
  font-size: 2rem;
}

.contact-header a.logo-link {
  text-decoration: none;
  color: white;
}

.contact-header .header-right {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.contact-header .menu-button {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  border: 1px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 4rem;
  position: relative;
}

.contact-header .contact-link {
  background-color: transparent;
  border: 1px solid white;
  border-radius: 9999px;
  padding: 1.4rem 3rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: white;
}

/* 白色のハンバーガーアイコン */
.hamburger-icon-white::before,
.hamburger-icon-white::after {
  background-color: white !important;
}

/* ハンバーガーアイコン - 2本線バージョン */
.hamburger-icon {
  width: 20px;
  height: 2px;
  background-color: transparent;
  position: relative;
  display: inline-block;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000;
  transition: transform 0.3s ease;
}

.hamburger-icon::before {
  top: -4px;
}

.hamburger-icon::after {
  bottom: -4px;
}

.hamburger-icon-white {
  background-color: transparent;
}

.contact-section-title {
  font-size: 1.75rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.75rem;
}

.contact-section-subtitle {
  text-align: center;
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-card {
  min-height: 300px;
  background-color: rgba(50, 50, 50, 0.8);
  color: white;
  border-radius: 30px;
  padding: 1.5rem;
  transition: transform 0.3s ease;
  position: relative;
  border: 1px solid white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card-title {
  font-weight: bold;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.contact-card-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-card-image {
  height: 7rem;
  width: 7rem;
  opacity: 0.3;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

.contact-shape {
  position: absolute;
  opacity: 0.3;
  z-index: 0;
}

.contact-shape.red {
  color: #b71c1c;
  border: 2px solid #e74c3c;
}

.contact-shape.blue {
  color: #0d47a1;
  border: 2px solid #3498db;
}

.title-text{
    font-size: 4rem;
    margin:50px 0;
}

/* --- html/css/styles.css の内容 --- */
nav {
  background: #333;
  color: #fff;
}

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

nav li {
  padding: 10px 15px;
}

nav a {
  color: #fff;
  text-decoration: none;
}

/* --- html/layout.css の内容 --- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 100px;
}

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

@media (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.flex-item {
  flex: 1 0 300px;
  margin: 10px;
}

/* --- html/buttons.css の内容 --- */
.btn {
  display: inline-block;
  background: #50b3a2;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: #3a8279;
}

.btn-secondary {
  background: #95a5a6;
}

.btn-secondary:hover {
  background: #7f8c8d;
}

.btn-danger {
  background: #e74c3c;
}

.btn-danger:hover {
  background: #c0392b;
}

/* --- html/forms.css の内容 --- */
form {
  margin: 20px 0;
}

input, textarea, select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type="submit"] {
  background: #50b3a2;
  color: white;
  width: auto;
  cursor: pointer;
}

input[type="submit"]:hover {
  background: #3a8279;
}

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

.form-check {
  display: flex;
  align-items: center;
}

.form-check input {
  width: auto;
  margin-right: 10px;
}

/* --- privacy_policy のスタイル --- */
.diagonal-line {
  position: relative;
}

.diagonal-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(135deg, transparent 49.5%, #e5e5e5 49.5%, #e5e5e5 50.5%, transparent 50.5%);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

/* --- ourbuissinnes のスタイル --- */

.service-card {
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-placeholder {
  min-height: 150px;
}

.diagonal-line {
  position: relative;
  overflow: hidden;
}

.diagonal-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(230, 230, 230, 0.15) 25%, transparent 25%, transparent 50%, rgba(230, 230, 230, 0.15) 50%, rgba(230, 230, 230, 0.15) 75%, transparent 75%, transparent);
  background-size: 100px 100px;
  z-index: -1;
}

/* --- service のスタイル --- */
.contact-box {
  background-color: rgba(50, 50, 50, 0.5);
  border-radius: 8px;
}

/* --- /recruit のスタイル --- */
.timeline-dot {
  width: 16px;
  height: 16px;
  background-color: #ccc;
  border-radius: 50%;
  margin-right: 12px;
}

.timeline-line {
  width: 2px;
  background-color: #ccc;
  height: 100%;
  position: absolute;
  left: 7px;
  top: 16px;
}

.footer-link {
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #b71c1c;
}

.geo-shape {
  position: absolute;
  opacity: 0.3;
}

.geo-shape.red {
  color: #b71c1c;
}

.geo-shape.blue {
  color: #0d47a1;
}

/* --- contact のスタイル --- */
.required::after {
  content: "(必須)";
  color: #e53e3e;
  margin-left: 4px;
  font-size: 0.8rem;
}

.submit-button {
  background-color: #9B2226;
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 4px;
  cursor: pointer;
}

.dark-geometric-bg {
  background-color: #111;
  position: relative;
  overflow: hidden;
}

.dark-geometric-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='100' height='100' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 100 0 L 0 100' stroke='%23222' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)' /%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
}

.shape {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid;
  z-index: 1;
}

.shape-1 {
  top: 20%;
  left: 15%;
  border-color: red;
  transform: rotate(15deg);
}

.shape-2 {
  top: 40%;
  right: 25%;
  border-color: blue;
  transform: rotate(-10deg);
}

.shape-3 {
  bottom: 30%;
  left: 30%;
  border-color: red;
  transform: rotate(45deg);
}

.contact-form{
    margin: 0 100px;
}

.achievement-image-container {
  position: relative;
}

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

/* --- about のスタイル --- */
.geometric-shapes {
  position: relative;
  overflow: hidden;
}

.geometric-shape {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0.7;
}

.shape-red {
  border: 2px solid #e74c3c;
}

.shape-blue {
  border: 2px solid #3498db;
}

/* --- news のスタイル --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 100px;
}

.news-title {
  bottom: -25px;
  left: 0;
  font-size: 14px;
}

/* ニュースページの放物線背景 */
.news-parabola path {
  transition: stroke-dasharray 2s ease;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}

.news-parabola path:nth-child(1) {
  animation: dash 2s ease-in-out forwards;
}

.news-parabola path:nth-child(2) {
  animation: dash 2.5s ease-in-out 0.3s forwards;
}

.news-parabola path:nth-child(3) {
  animation: dash 3s ease-in-out 0.6s forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- ミッションページスタイル --- */
.mission {
    background-color: #111;
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #333;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 20px;
}

.view-more .circle {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more .circle svg {
    width: 12px;
    height: 12px;
    fill: #111;
}

/* NEWSセクション */
.news {
    padding: 40px 20px 60px;
    background-color: white;
    position: relative;
}

.news h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* OUR BUSINESSセクション */
.business {
    background-color: #111;
    color: white;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.diagonal-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
}

/* SERVICEセクション */
.service {
    background-color: #111;
    color: white;
    padding: 40px 20px 60px;
}

.service h2 {
    font-size: 32px;
    margin-bottom: 30px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.service-card h4 {
    font-size: 30px;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.recruit-hero{
    display: flex;
}

/* CONTACT */
.contact {
    background-color: #111;
    color: white;
    position: relative;
    overflow: hidden;
}

.contact h2 {
    font-size: 60px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    padding-top: 100px;
}

.contact-text {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-bottom: 100px;
}

.recruit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 100px;
}

.contact-card .box {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: #444;
}

/* ニュースページの放物線背景 */
.news-parabola path {
  transition: stroke-dasharray 2s ease;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
}

.news-parabola path:nth-child(1) {
  animation: dash 2s ease-in-out forwards;
}

.news-parabola path:nth-child(2) {
  animation: dash 2.5s ease-in-out 0.3s forwards;
}

.news-parabola path:nth-child(3) {
  animation: dash 3s ease-in-out 0.6s forwards;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}

/* --- 新しいRECRUITセクションスタイル --- */
.recruit-section {
    background-color: #f8f8f8;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.recruit-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.recruit-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 60px;
    color: #111;
    position: relative;
}

.recruit-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0px;
	padding-left: 20px;
    padding-right: 20px;
}

.recruit-text {
    flex: 1;
    max-width: 600px;
}

.recruit-subtitle {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 30px;
    line-height: 1.4;
    color: #111;
}

.recruit-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.recruit-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #fff;
    color: white;
    /* padding: 12px 24px; */
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    max-width: 175px;
}

.recruit-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.button-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
}

.button-arrow svg {
    fill: #111;
}

.recruit-image {
    flex: 1;
    max-width: 500px;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
    color: #777;
}

#recruit-diamonds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 992px) {
    .recruit-content {
        flex-direction: column;
        gap: 50px;
    }
    
    .recruit-text, .recruit-image {
        max-width: 100%;
        width: 100%;
    }
    
    .recruit-subtitle {
        font-size: 1.8rem;
    }
    
    .recruit-title {
        font-size: 3rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .recruit-section {
        padding: 80px 0;
    }
    
    .recruit-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .recruit-subtitle {
        font-size: 1.5rem;
    }
    
    .recruit-description {
        font-size: 0.9rem;
    }
}

/* 近未来四角アニメーション */
.space-animation-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.space-sphere {
    position: absolute;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(180, 180, 180, 0.8), rgba(120, 120, 120, 0.6), rgba(80, 80, 80, 0.4));
    box-shadow: 
        0 0 20px rgba(160, 160, 160, 0.6),
        0 0 40px rgba(120, 120, 120, 0.4),
        0 0 60px rgba(80, 80, 80, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    transform-origin: center;
    opacity: 0.7;
}

.sphere-1 {
    width: 24px;
    height: 24px;
    top: -10%;
    right: -5%;
    animation: flowCurve1 8s infinite;
    background: linear-gradient(45deg, rgba(200, 200, 200, 0.9), rgba(160, 160, 160, 0.7));
    box-shadow: 
        0 0 20px rgba(180, 180, 180, 0.8),
        0 0 40px rgba(140, 140, 140, 0.4);
    animation-delay: 0s;
}

.sphere-2 {
    width: 18px;
    height: 18px;
    top: -5%;
    right: -3%;
    animation: flowCurve2 6s infinite;
    background: linear-gradient(45deg, rgba(180, 180, 180, 0.9), rgba(140, 140, 140, 0.7));
    box-shadow: 
        0 0 18px rgba(160, 160, 160, 0.8),
        0 0 36px rgba(120, 120, 120, 0.4);
    animation-delay: 1.5s;
}

.sphere-3 {
    width: 32px;
    height: 32px;
    top: -15%;
    right: -8%;
    animation: flowCurve3 10s infinite;
    background: linear-gradient(45deg, rgba(160, 160, 160, 0.9), rgba(120, 120, 120, 0.7));
    box-shadow: 
        0 0 24px rgba(140, 140, 140, 0.8),
        0 0 48px rgba(100, 100, 100, 0.4);
    animation-delay: 3s;
}

.sphere-4 {
    width: 14px;
    height: 14px;
    top: -8%;
    right: -2%;
    animation: flowCurve4 5s infinite;
    background: linear-gradient(45deg, rgba(140, 140, 140, 0.9), rgba(100, 100, 100, 0.7));
    box-shadow: 
        0 0 14px rgba(120, 120, 120, 0.8),
        0 0 28px rgba(80, 80, 80, 0.4);
    animation-delay: 4.5s;
}

.sphere-5 {
    width: 28px;
    height: 28px;
    top: -12%;
    right: -6%;
    animation: flowCurve5 7s infinite;
    background: linear-gradient(45deg, rgba(190, 190, 190, 0.9), rgba(150, 150, 150, 0.7));
    box-shadow: 
        0 0 22px rgba(170, 170, 170, 0.8),
        0 0 44px rgba(130, 130, 130, 0.4);
    animation-delay: 2s;
}

.sphere-6 {
    width: 20px;
    height: 20px;
    top: -7%;
    right: -4%;
    animation: flowCurve6 9s infinite;
    background: linear-gradient(45deg, rgba(170, 170, 170, 0.9), rgba(130, 130, 130, 0.7));
    box-shadow: 
        0 0 16px rgba(150, 150, 150, 0.8),
        0 0 32px rgba(110, 110, 110, 0.4);
    animation-delay: 1s;
}

.sphere-7 {
    width: 16px;
    height: 16px;
    top: -6%;
    right: -3%;
    animation: flowCurve7 4s infinite;
    background: linear-gradient(45deg, rgba(160, 160, 160, 0.9), rgba(120, 120, 120, 0.7));
    box-shadow: 
        0 0 12px rgba(140, 140, 140, 0.8),
        0 0 24px rgba(100, 100, 100, 0.4);
    animation-delay: 3.5s;
}

.sphere-8 {
    width: 26px;
    height: 26px;
    top: -11%;
    right: -7%;
    animation: flowCurve8 6.5s infinite;
    background: linear-gradient(45deg, rgba(180, 180, 180, 0.9), rgba(140, 140, 140, 0.7));
    box-shadow: 
        0 0 20px rgba(160, 160, 160, 0.8),
        0 0 40px rgba(120, 120, 120, 0.4);
    animation-delay: 5s;
}

.sphere-9 {
    width: 12px;
    height: 12px;
    top: -4%;
    right: -2%;
    animation: flowCurve9 5.5s infinite;
    background: linear-gradient(45deg, rgba(150, 150, 150, 0.9), rgba(110, 110, 110, 0.7));
    box-shadow: 
        0 0 10px rgba(130, 130, 130, 0.8),
        0 0 20px rgba(90, 90, 90, 0.4);
    animation-delay: 6.5s;
}

.sphere-10 {
    width: 30px;
    height: 30px;
    top: -14%;
    right: -9%;
    animation: flowCurve10 8.5s infinite;
    background: linear-gradient(45deg, rgba(200, 200, 200, 0.9), rgba(160, 160, 160, 0.7));
    box-shadow: 
        0 0 24px rgba(180, 180, 180, 0.8),
        0 0 48px rgba(140, 140, 140, 0.4);
    animation-delay: 0.5s;
}

@keyframes flowCurve1 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    30% { 
        transform: translate(-10vw, 40vh) rotate(120deg) scale(1.1);
        opacity: 0.7;
    }
    60% { 
        transform: translate(-25vw, 80vh) rotate(240deg) scale(1.2);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-40vw, 120vh) rotate(360deg) scale(1.3);
        opacity: 0;
    }
}

@keyframes flowCurve2 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    25% { 
        transform: translate(-8vw, 35vh) rotate(-90deg) scale(0.9);
        opacity: 0.7;
    }
    55% { 
        transform: translate(-20vw, 75vh) rotate(-200deg) scale(0.8);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-35vw, 110vh) rotate(-360deg) scale(0.7);
        opacity: 0;
    }
}

@keyframes flowCurve3 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    35% { 
        transform: translate(-12vw, 45vh) rotate(180deg) scale(1.3);
        opacity: 0.7;
    }
    65% { 
        transform: translate(-30vw, 90vh) rotate(450deg) scale(1.5);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-45vw, 130vh) rotate(720deg) scale(1.7);
        opacity: 0;
    }
}

@keyframes flowCurve4 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    20% { 
        transform: translate(-5vw, 30vh) rotate(-60deg) scale(0.8);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-15vw, 65vh) rotate(-120deg) scale(0.6);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-30vw, 100vh) rotate(-180deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes flowCurve5 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    40% { 
        transform: translate(-15vw, 50vh) rotate(270deg) scale(1.2);
        opacity: 0.7;
    }
    70% { 
        transform: translate(-35vw, 85vh) rotate(450deg) scale(1.4);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-50vw, 125vh) rotate(540deg) scale(1.5);
        opacity: 0;
    }
}

@keyframes flowCurve6 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    35% { 
        transform: translate(-18vw, 42vh) rotate(150deg) scale(1.1);
        opacity: 0.7;
    }
    65% { 
        transform: translate(-32vw, 78vh) rotate(300deg) scale(1.3);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-45vw, 115vh) rotate(450deg) scale(1.4);
        opacity: 0;
    }
}

@keyframes flowCurve7 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    25% { 
        transform: translate(-6vw, 28vh) rotate(-45deg) scale(0.9);
        opacity: 0.7;
    }
    55% { 
        transform: translate(-18vw, 58vh) rotate(-135deg) scale(0.7);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-28vw, 85vh) rotate(-225deg) scale(0.6);
        opacity: 0;
    }
}

@keyframes flowCurve8 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    30% { 
        transform: translate(-13vw, 38vh) rotate(180deg) scale(1.2);
        opacity: 0.7;
    }
    60% { 
        transform: translate(-28vw, 72vh) rotate(360deg) scale(1.4);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-42vw, 108vh) rotate(540deg) scale(1.6);
        opacity: 0;
    }
}

@keyframes flowCurve9 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    20% { 
        transform: translate(-4vw, 25vh) rotate(-30deg) scale(0.8);
        opacity: 0.7;
    }
    50% { 
        transform: translate(-12vw, 55vh) rotate(-90deg) scale(0.6);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-22vw, 80vh) rotate(-150deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes flowCurve10 {
    0% { 
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% { opacity: 0.7; }
    40% { 
        transform: translate(-20vw, 48vh) rotate(240deg) scale(1.3);
        opacity: 0.7;
    }
    70% { 
        transform: translate(-38vw, 88vh) rotate(480deg) scale(1.5);
        opacity: 0.7;
    }
    90% { opacity: 0.7; }
    100% { 
        transform: translate(-55vw, 130vh) rotate(720deg) scale(1.8);
        opacity: 0;
    }
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
    .space-animation-container {
        width: 100%;
        right: 0;
        opacity: 0.6;
    }
    
    .sphere-1 { width: 18px; height: 18px; }
    .sphere-2 { width: 14px; height: 14px; }
    .sphere-3 { width: 24px; height: 24px; }
    .sphere-4 { width: 12px; height: 12px; }
    .sphere-5 { width: 20px; height: 20px; }
    .sphere-6 { width: 16px; height: 16px; }
    .sphere-7 { width: 12px; height: 12px; }
    .sphere-8 { width: 20px; height: 20px; }
    .sphere-9 { width: 10px; height: 10px; }
    .sphere-10 { width: 22px; height: 22px; }
}

/* コンタクトページボタン用*/
.has-spinner{
  background: #A0292B!important;
  width: 200px!important;
  border-radius: 20px!important;
}

p:has(> input.has-spinner){
  display:flex;
  justify-content:center;
  margin:0;
}

.wpcf7-spinner{
  display: none!important;
}