/*
Theme Name: Nexalis Custom Theme
Version: 1.1
*/

body {
    margin: 0 !important;
    font-family: 'Noto Serif JP', serif;
    color: #000;
    line-height: 1.6;
    background: #fff;
}

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

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

/* --- ヘッダー --- */
header {
    background: white;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    letter-spacing: 0.05rem;
    z-index: 1000;
}

.logo {
    width: 10%;
    margin-left: 4%;
}

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

nav ul li {
    font-weight: 500;
}

/* ハンバーガーアイコン */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 25px;
  margin: 4%;
  cursor: pointer;
  z-index: 1100;
}
.menu-toggle span {
  display: block;
  height: 3px;
  background: #000;
  margin: 4px 0;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ☰ → ✕ アニメーション */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* オーバーレイ */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.overlay.active {
  opacity: 1;
  visibility: visible;
}


/* --- メインビジュアル --- */
.fullscreen-image {
  display: flex;
  align-items: center;     
  justify-content: center; 
  width: 100%;
  height: 100vh;
  max-height: calc(100vw * 7.2 / 16); 
  background-size: cover;
  background-position: center;
  position: relative;
  aspect-ratio: 16 / 7.2;
}

.halfscreen-image {
  display: flex;
  align-items: center;    
  justify-content: center; 
  width: 100%;
  height: 100vh;
  max-height: calc(100vw * 6 / 16); 
  background-size: cover;
  background-position: top center;
  position: relative;
  aspect-ratio: 16 / 6;
}

.hero-text {
  position: absolute;
  width: 100%;
  text-align: center;
  color: white;
}

.hero-text h1 {
  margin: 0;
  font-size: 6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.2rem;
}

.hero-text p {
  font-size: 2rem;
  margin-top: 2.7rem !important;
  letter-spacing: 0.3rem;
}

.fullscreen-image .hero-text h1 {
  letter-spacing: 0.4rem;
}

.fullscreen-image .hero-text h1, .fullscreen-image .hero-text p {
  margin-left: 12%;
  margin-top: -0.8rem;
  text-align: left !important;
}


@media (max-aspect-ratio: 7.2/16) {
  .fullscreen-image {
    height: auto;
    aspect-ratio: 16 / 7.2;
    max-height: 100vh;
  }
}

@media (max-aspect-ratio: 6/16) {
  .halfscreen-image {
    height: auto;
    aspect-ratio: 16 / 6;
    max-height: 85vh;
  }
}

/* --- セクション全般 --- */
.section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section h2 {
    font-size: 6rem;
    letter-spacing: 0.2rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.section p {
  letter-spacing: 0.05rem;
}

.image-block-wrapper {
  max-width: 100%;
}
.image-block {
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 620px; 
}

.image-block > div{
  position: absolute;
}

.section-text-top {
  font-size: 2rem; 
  line-height: 4rem;
}

.section-text-down {
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 2rem;
}

.br-pc {
  display: block !important;
}

.br-sp {
  display: none;
}

.br-mid {
  display: none;
}

/* --- MEET NEXALIS セクション --- */
.meet-section {
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 2rem; 
  padding: 4rem 2rem; 
  overflow: hidden;
}

.meet-section-text {
  margin-left: 4rem; 
  position: relative; 
  z-index: 2;
}

/* --- NEWSセクション --- */
.news-section {
  margin: 0;
  max-width: 100%;
  background: #F4F4F4;
  padding: 4rem 2rem;
}

.news-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.news-card {
  flex: 1 1 200px;
  background: #fff;
  min-width: 250px;
  max-width: 250px;
  height: 350px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  transition: box-shadow 0.3s;
}

.news-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.news-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
}

.news-image img {
  width: 100%;
    height: auto;
    min-height: 125px;
    display: block;
    margin-bottom: 1rem;
    object-fit: contain;
}

.news-date {
  text-align: left;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
  letter-spacing: 0.1rem;
}

.news-title {
  font-weight: bold;
  font-size: 0.8rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.news-section h2 {
  text-align: center;
}
.subheading {
  text-align: center;
  margin-bottom: 2rem;
}

.news-section h2 {
  margin-top: 0;
}
.news-section .btn-outline {
  margin-bottom: 0;
}

.single-news .news-date {
  font-size: 1.1rem;
}

.single-news {
  padding: 3rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

.news-container {
  text-align: left;
}

.news-headline {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.news-featured-image img {
  width: 100%;
  height: auto;
}

.news-content {
  white-space: pre-line;
  margin-bottom: 2rem;
  color: #333;
}

.news-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-pagination .back {
  display: flex;
  text-align: center;
}

.news-pagination a {
  color: #000;
  text-decoration: none;
}

.news-pagination a:hover {
  text-decoration: underline;
}


.news-pagination .btn-outline {
  margin: 0;
}

/* --- SERVICEセクション --- */
.service-section {
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  gap: 2rem; 
  padding: 4rem 2rem; 
  overflow: hidden;
}

  .service-textbox {
    width: 42%;             
    margin-left: auto;
    text-align: left;       
    word-wrap: break-word;
  }

.scroll-arrow {
  position: fixed;
  bottom: 2%;
  left: calc(46 / 1728 * 100vw);
  text-align: center;
  font-weight: 700;
  font-size: calc(24 / 1728 * 100vw);
  color: #fff;
  z-index: 3;
}

.arrow {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.5rem;
  animation: arrowMove 1.4s infinite ease-in-out;
  position: relative;
}

.arrow::after {
  content: '\2193';
  display: inline-block;
}

/* アニメーション定義 */
@keyframes arrowMove {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* --- ギャラリー横スクロール --- */
.gallery-scroll {
  width: 100%;
  overflow: hidden;
  max-width: 100%;
  padding: 4rem 0 6rem;
}

.gallery-wrapper {
  overflow: hidden;
  width: 100%;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  width: max-content;
  animation: scroll-left 20s linear infinite;
}

.gallery-track img {
  width: 25vw;            /* ← 4枚で100%幅 */
  height: auto;
  flex-shrink: 0;
  object-fit: cover;
  margin-right: 0;        /* 余白をなくす */
}

/* 無限スクロールアニメーション */
@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);  /* 2セットあるうちの半分分だけ動かす */
  }
}


/* --- SERVICEカード（必要に応じて） --- */
.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.service-cards .card {
    flex: 1 1 calc(33% - 2rem);
    text-align: center;
}

.service-cards .card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

/* --- ボタン共通 --- */
a.button,
button,
input[type="submit"] {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

a.button:hover,
button:hover,
input[type="submit"]:hover {
    background: #333;
}

button {
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
}

button:hover {
  opacity: 0.85;
}

/* --- ボタン --- */
.button {
  margin-top: 1rem;
  padding: 0.8rem 2rem;
  transition: background 0.3s;
}

.button:hover {
  background: #333;
}
.button.white {
  background: #fff;
  color: #000;
}

.btn-contact {
  color: #fff !important;
  border: 1px solid #fff !important;
  margin: 0 !important;
}

/* --- Contactバナー --- */
.contact-banner {
    background: url('./images/contact-banner.jpg') center center/cover no-repeat;
    padding: 3rem 2rem;
    text-align: center;
}

.contact-banner p {
    color: white;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* --- フッター --- */
footer {
    background: #253227;
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* --- テーブル（会社概要） --- */
.company-info {
  border-collapse: collapse;
  margin: 0 auto;
  padding: 6rem 0 1rem;
  text-align: left;
  max-width: 100%;
}

.company-info th,
.company-info td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}



  /* --- 2カラム構成 --- */
  .two-column {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
  }
  .reverse {
    flex-direction: row-reverse;
  }
  .text-block {
    flex: 1;
  }
  .image-block {
    flex: 1;
  }
  .image-block img {
    width: 100%;
    height: auto;
  }
  
  
  

  
  /* --- CONTACTバナー --- */
  .contact-banner {
    background: url('../images/contact-banner.jpg') center center/cover;
    color: white;
    text-align: center;
    padding: 4rem 2rem;
  }
  .contact-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  
  /* --- レスポンシブ --- */
  @media (max-width: 768px) {
    
  }

  
  .nav-list {
    display: flex;
    gap: 30px;
    font-size: 1rem;
  }

  .site-header {
    background: white;
    border-bottom: 1px solid #ddd;
    height: 3.6rem;
  }
  .site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0 auto;
  }


  .main-nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
  }


  .contact-link a {
    background: #253227;
    color: white;
    padding: 1.2rem 1rem;
    font-weight: bold;
  }
  .footer-contact-banner {
    background: url('../images/contact-banner.jpg') center center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 5rem 2rem !important;
  }

  .footer-contact-banner h2 {
    font-size: 5rem;
    line-height: 8rem;
    letter-spacing: 0.2rem;
    margin: 0;
  }

  .footer-contact-banner p {
    margin-bottom: 5%;
    line-height: 2rem;
  }



  .site-footer {
    background: #253227;
    color: #fff;
    padding: 4rem 2rem 1rem;
    font-size: 0.9rem;
    text-align: left;
    letter-spacing: 0.1rem;
  }
  
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-left {
    flex: 1;
    min-width: 240px;
  }
  
  .footer-logo {
    width: 20rem;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }
  
  .footer-left p {
    line-height: 1.8;
  }
  
  .footer-right {
    flex: 1;
    text-align: left;
    min-width: 240px;
  }
  
  .footer-links {
    display: grid;
    grid-auto-flow: column;         
    grid-template-rows: repeat(3, auto);  
    column-gap: 3.2rem;
    row-gap: 1.6rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  
  .footer-links li a:hover {
    text-decoration: underline;
  }
  
  .footer-copy {
    text-align: center;
    margin-top: 5rem;
    font-size: 0.8rem;
    color: #ccc;
  }
  
  .company-logo {
    text-align: center;
    width: 30rem;
    margin-left: 1rem;
    max-width: 1200px;
  }
  
  .company-table {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-collapse: collapse;
    border-top: 1px solid #253227;
    border-bottom: 1px solid #253227;
  }
  
  .company-table th,
  .company-table td {
    border: none;
    padding: 1.2rem 0.75rem;
    text-align: left;
    font-size: 1.2rem;
  }
  
  .company-table th {
    color: #3e6b45;
    width: 30%;
    border-left: 1px solid #253227;
    border-right: 1px solid #253227;
    border-bottom: 1px solid #253227;
    padding-left: 4rem;
    background-color: #f4f4f4;
    font-weight: 900;
  }

  .company-table td {
    padding-left: 4rem;
    border-right: 1px solid #253227;
    border-bottom: 1px solid #253227;
  }

  .access-section {
    text-align: center;
    padding: 1rem 1rem 8rem;
  }
  
  .access-section h2 {
    font-size: 6rem;
    margin: 1.5rem 0;
    text-align: left;
  }
  
  .map-wrapper {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .map-wrapper img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
  }
  
  .map-note {
    width: 95%;
    margin: 1rem auto 0 auto; 
    font-size: 1.2rem;
    color: #000;
    line-height: 1.5;
    text-align: left;
  }
  

  .btn-outline {
    display: inline-block;
    position: relative;
    width: 290px;
    padding: 0.8rem 0;
    border: 1px solid #000;
    color: #000;
    background: transparent;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    margin-left: 4rem;
    margin-top: 1rem;
    margin-bottom: 4rem;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease;
  }

  .btn-outline::after {
    content: "\003E";          /* ← 矢印記号 */
    margin-left: 0.5rem;    /* テキストと矢印の間に余白 */
    display: inline-block;
  }
  
  .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #000;
    z-index: -1;
    transition: width 0.4s ease;
  }
  
  .btn-outline:hover {
    color: #fff;
  }
  
  .btn-outline:hover::before {
    width: 100%;
  }

  .icon-envelope {
    width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #ffffff;   
  stroke: #253227; 
  transition: all 0.3s ease;
  vertical-align: -0.3em;
  }

/* サービス全体のセクション */
.service-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* テキスト左側 */
.text-left {
  flex: 1;
  min-width: 300px;
}

.text-left h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.text-left p {
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

/* テキスト右側（reverse構成） */
.text-right {
  flex: 1;
  min-width: 300px;
  text-align: right;
}

.text-right h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.text-right p {
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

/* 画像ブロック（左右共通） */
.image-left,
.image-right {
  flex: 1;
  min-width: 300px;
}

.image-left img,
.image-right img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* reverse配置（画像左、テキスト右）用にflex方向を逆にする */
.service-block.reverse {
  flex-direction: row-reverse;
}

.service-overlay {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8rem auto;
  max-width: 1200px;
  position: relative;
  background: #fff;
  height: 36rem;
}

.service-overlay .service-img {
  flex: 1 1 50%;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  position: absolute;
  overflow: hidden !important;
  width: 80%;
  height: 100%;
}

.right .service-img, .left .service-text {
  right: 0;
}

.left .service-img, .right .service-text {
  left: 0;
}

.service-overlay .service-text {
  padding: 1rem 2rem;
  background: #fff;
  box-sizing: border-box;
  z-index: 2;
  top: 8%;
  display: block;
  width: 63%;
  height: 80%;
  min-height: 350px;
  position: absolute;
}

.service-overlay .service-text h2 {
  position: relative;
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
}

.service-overlay .service-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20%;
  width: 40%;
  height: 1px;  
  background-color: #333;
}

.service-overlay .service-text h3 {
  font-size: 1.8rem;
  font-weight: normal;
  margin-bottom: 0;
  display: inline-block;
  padding-bottom: 0.25rem;
  letter-spacing: 0.1rem;
}

.service-overlay .service-text p {
  font-size: 1.2rem;
  line-height: 2.5rem;
  letter-spacing: 0.1rem;
}

/* reverse layout */
.service-overlay.left {
  flex-direction: row-reverse;
}



.contact-main {
  background: #f8f8f8;
  padding: 3rem 1rem;
}

.contact-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 0 0;
  text-align: left;
}

.contact-info > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info img {
  width: 35%;
  object-fit: contain;
  margin-left: 5rem;
}

.contact-info-inner {
  width: 40%;
  padding-left: 7rem;
  border-left: 1px solid #000;
}

.contact-info-inner p {
  font-size: 1.3rem;
}

.contact-info > p {
  margin: 6rem 2rem 0;
}

.contact-logo {
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.contact-telmail {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-telmail a {
  color: #c00;
  text-decoration: underline;
}

.contact-description {
  background: #e6eef5;
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #333;
}

.contact-form-section {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: #F4F4F4;
  margin: 1rem auto 6rem;
  max-width: 100%;
}

.wpcf7 p {
  margin-bottom: 0;
}


/* 全体レイアウト */
.wpcf7 {
  max-width: 800px;
  margin: 0 auto;
}

/* フォームブロック */
.form-block {
  position: relative;
  display: flex;
  margin-bottom: 5rem;
}

.form-block-right {
  position: absolute;
  left: 50%;
}

/* 必須マーク */
.required {
  color: red;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

/* ボタンエリア */
.form-buttons {
  text-align: center;
  margin-top: 16rem;
}

/* 確認画面用 */
.confirm-value {
  position: absolute;
  left: 50%;
  padding: 0.8rem;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.6;
  border: 1px solid #ddd;
}

.confirm-last-button {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.confirm-last-button .form-buttons {
  margin: 0;
}

/* ボタン共通 */
.btn-submit, .btn-back, .wpcf7 input[type="submit"] {
  background: #000;
  color: #fff;
  padding: 0.8rem 2rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: opacity 0.3s;
}

.btn-submit:hover,
.btn-back:hover,
.wpcf7 input[type="submit"]:hover {
  opacity: 0.8;
}

/* 必須バッジ */
.required-badge {
  background: #ff3b3b;
  color: #fff;
  padding: 0.1em 0.6em;
  border-radius: 4px;
  font-size: 0.75rem;
  margin-left: 0.5em;
  vertical-align: middle;
  display: inline-block;
}

.form-block label {
  font-weight: bold;
  display: block;
}

.input-example {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.input-note {
  font-size: 0.75rem;
}

.slide-in, .top-slide-in {
  overflow: hidden;
}

.upAnime {
  opacity: 0;
}

.slideAnimeUpDown {
  animation-name: slideTextY-100;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.slideAnimeDownUp {
  animation-name: slideTextY100;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.slide-in_inner_up {
  display: inline-block;
}

.top-slide-in, .top-slide-in_inner {
  display: inline-block; /* ← transform を効かせる */
}

@keyframes slideTextY100 {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideTextY-100 {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.leftAnime {
  opacity: 0;
}

.slideAnimeLeftRight {
  animation-name: slideTextX100;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  /* animation-timing-function: ease-out; */
}

.slideAnimeRightLeft {
  animation-name: slideTextX-100;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  /* animation-timing-function: ease-out; */
}

@keyframes slideTextX100 {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideTextX-100 {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}


.text-animate span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-10px);
  animation: fadeInLeft 0.6s forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    /* transform: translateX(0); */
  }
}

.SlideInImage {
  flex: 1;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: right;
  background-repeat: no-repeat;
  z-index: 1;
}

.SlideInImage_left {
  flex: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
  z-index: 1;
}

.SlideInImage, .SlideInImage_left {
  opacity: 0;
}

.SlideInImage_in {
  animation: SlideInImage_in 0.8s forwards;
  animation-delay: 0.2s;
}

.SlideInImage_in_left {
  animation: 0.8s ease 0s 1 normal forwards running SlideInImage_in_left;
}

@keyframes SlideInImage_in {
  0% {
    transform: translate(100%, -100%);
    opacity: 0.3;
}
100% {
    transform: translate(0%, 0%);
    opacity: 1;
}
}

@keyframes SlideInImage_in_left {
  0% {
      transform: translate(-100%, -100%);
      opacity: 0.3;
  }
  100% {
      transform: translate(0%, 0%);
      opacity: 1;
  }
}



/* 入力欄統一 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  width: 24rem;
  padding: 0.8rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

/* テキストエリア */
.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

/* チェック＋ボタンをセンター揃え */
.center-align {
  text-align: center;
}

/* 確認画面表示 */
.confirm-value {
  background: #f5f5f5;
  padding: 0.8rem;
  border-radius: 6px;
  font-size: 1rem;
  border: 1px solid #ddd;
}

/* ボタン共通 */
.btn-submit,
.btn-back,
.wpcf7 input[type="submit"] {
  background: #000;
  color: #fff;
  padding: 0.8rem 4.2rem;
  border-radius: 0;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: opacity 0.3s;
  font-family: 'Noto Serif JP', serif;
}

.btn-submit:hover,
.btn-back:hover,
.wpcf7 input[type="submit"]:hover {
  opacity: 0.85;
}



/* --- レスポンシブ --- */
@media (max-width: 1400px) {
  .meet-section-text {
    margin-left: 0;
  }

  .service-textbox {
    width: 45%;
  }

  .SlideInImage_left {
    background-position: -30%;
  }
}

@media (max-width: 767px) {
  /* 画像・カードなどの横幅制御 */
  img, table, .news-card, .service-cards .card, .company-table {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* スクロール対策：ギャラリーやスライド系 */
  .gallery-wrapper,
  .gallery-track,
  .slide-in,
  .top-slide-in,
  .service-overlay,
  .contact-info > div {
    overflow-x: hidden;
  }
  
  /* 全要素 box-sizing 適用（意図しないはみ出しを防ぐ） */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html, body {
   overflow-x: hidden;
   font-weight: 500;
  }

  /* --- ヘッダー --- */
  header {
      flex-direction: column;
      align-items: flex-start;
  }

  nav ul {
      flex-direction: column;
      gap: 1rem;
  }

  /* メニュー全体 */
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease;
    z-index: 1002;
    display: flex;
  }

  .nav-list.active {
    right: 0;
  }

  .main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    list-style: none;
  }
  
  .main-nav li a {
    font-size: 1.1rem;
    text-decoration: none;
    color: #000;
  }

  /* CONTACTリンク */
  .contact-link a {
    background: #253227;
    color: white;
    padding: 1rem 1.2rem;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-list {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .main-nav ul {
    flex-direction: column;
  }


  /* --- MV --- */ 
  .hero-text h1 {
    font-size: calc(180 / 2000 * 100vw);
  }

  .hero-text p {
    font-size: calc(22 / 500 * 100vw);
    margin-top: 1rem !important;
    margin-bottom: 0;
    letter-spacing: 0.1rem;
  }

  .fullscreen-image {
    height: calc(419 / 390 * 100vw);
    max-height: calc(419 / 390 * 100vw);
  }

  .fullscreen-image .hero-text h1 {
    margin-top: 0;
    letter-spacing: 0.2rem;
    font-size: calc(180 / 2000 * 100vw);
    line-height: 3.2rem;
  }

  .fullscreen-image .hero-text p {
    margin-top: 1rem!important;
    margin-bottom: 0.1rem;
    font-size: calc(22 / 500 * 100vw);
    letter-spacing: 0.1rem;
  }

  .halfscreen-image {
    height: calc(419 / 500 * 100vw);
    max-height: calc(419 / 500 * 100vw);
  }

  .scroll-arrow {
    left: 2%;
    font-size: calc(24 / 900 * 100vw);
  }


  /* --- セクション共通 --- */
  .section h2 {
    font-size: calc(180 / 2000 * 100vw);
    margin: 0;
    letter-spacing: 0.1rem;
  }

  .section {
    padding: 2rem;
  }

  .section-text-top {
    font-size: calc(22 / 400 * 100vw); 
    line-height: 2rem;
    margin: 2rem 0 0 !important;
  }

  .section-text-down {
    font-size: 1rem;
    margin: 2rem 0;
    line-height: 1.5rem;
  }

  .btn-outline {
      width: 12rem;
      padding: 0.3rem 0.5rem;
      font-size: 0.9rem;
      margin: 0;
  }

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

  .br-pc {
    display: none !important;
  }

  .br-sp {
    display: block;
  }


  /* --- MEETセクション --- */
  .meet-section-text {
      margin-left: 0;
  }

  .meet-section-text h2 {
    margin: 4rem 0 5rem;
  }

  /* .meet-section-text .section-text-top {
    margin-top: 2.5rem !important;
  } */

  .SlideInImage_in {
    width: 80%;
    background-size: cover;
    background-position: top;
    height: 40%;
  }


  /* --- NEWSセクション --- */
  /* NEWSカード */
  .news-section .section-text-top {
    margin: 0 0 1.5rem !important;
  }

  .news-cards {
    flex-direction: column;
    align-items: center;
    margin-top: 1rem;
  }

  .news-card {
    max-width: 90%;
    height: auto;
  }

  .prev, .back, .next {
    font-size: 0.9rem;
  }

  /* --- SERVICEセクション --- */
  .SlideInImage_in_left {
    width: 60%;
    height: 40%;
    background-size: cover;
    background-position: top;
  }

  .service-textbox {
    width: 100%;
  }

  .service-textbox h2 {
    margin-top: 4rem;
    margin-bottom: 5rem;
    text-align: right;
  }


  /* --- ギャラリー ---  */
  .gallery-scroll {
    padding: 2rem 0;  
  }

  .gallery-track img {
    width: 80vw;
    height: auto;
  }

  /* --- フッター --- */
  .footer-contact-banner h2 {
    font-size: calc(180 / 2000 * 100vw);
    line-height: 1.6rem;
  }

  .footer-contact-banner p {
    font-size: 1rem;
    margin: 2rem 0;
    line-height: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-links {
    grid-auto-flow: row;
    justify-content: flex-start;
  }

  .footer-logo {
    width: 10rem;
  }


  /* --- COMPANYページ --- */
  .company-info {
    margin: 2rem auto 0;
  }

  .company-info div:nth-of-type(2) {
    padding: 1.5rem 0 !important;
  }

  .company-table {
    width: 100%;
  }

  .company-table th,
  .company-table td {
    font-size: 1rem;
    padding-left: 1rem;
  }

  .company-logo {
    width: 50%;
    margin-left: 0;
  }

  .map-note {
    font-size: 1rem;
  }

  .access-section {
    margin-bottom: 2rem;
  }

  .access-section h2 {
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
  }  

  .map-wrapper iframe {
    height: 270px;
  }

  /* SERVICEカード */
  .service-overlay,
  .service-overlay.left,
  .service-overlay.right {
    flex-direction: column;
    height: auto;
    margin: 4rem auto;
  }

  .service-overlay .service-img {
    position: relative;
    width: 90%;
    margin: 0 auto;
    height: 200px;
    min-height: 200px;
  }

  .service-overlay .service-text {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
  }

  .service-overlay .service-text h2 {
    font-size: calc(180 / 3300 * 100vw);
    margin-top: 0.5rem;
    margin-bottom: 1.2rem;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: 0.02rem;
  }

  .service-overlay .service-text h2::after {
    bottom: -25%;
  }

  .service-overlay .service-text h3 {
    margin: 1rem 0 0;
    font-size:  calc(180 / 3700 * 100vw);
  }

  .service-block,
  .service-block.reverse {
    flex-direction: column;
    text-align: left;
  }
  
  .service-cards {
    flex-direction: column;
    align-items: center;
  }

  .service-cards .card {
    flex: 1 1 100%;
    max-width: 90%;
    height: auto;
  }

  .text-left,
  .text-right,
  .image-left,
  .image-right {
    min-width: 100%;
  }

  .text-right {
    text-align: left;
  }

  /* Contactページ */
  .contact-info > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info img {
    width: 100%;
    margin: 0;
  }

  .contact-info > p {
    margin: 1rem 0 0;
  }

  .contact-info-inner {
    width: 100%;
    padding-left: 0;
    border-left: none;
    margin-top: 2rem;
  }

  .form-block {
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .form-block-right,
  .confirm-value {
    position: relative;
    left: auto;
    width: 100%;
  }

  .form-buttons {
    margin-top: 1rem;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    width: 100%;
  }

  .btn-submit, .btn-back, .wpcf7 input[type="submit"] {
    font-size: 0.9rem;
  }
}

/* 小型スマホ（〜480px） */
@media (max-width: 480px) {
  .logo {
    width: 50%;
  }

  .service-overlay .service-text p {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .gallery-track img {
    width: 90vw;
  }

  .wpcf7 input[type="text"],
  .wpcf7 input[type="email"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    width: 100%;
  }
}

/* 超小型スマホ（〜375px） */
@media (max-width: 375px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .meet-section-text .section-text-down {
     width: 40%;
  }

  .footer-contact-banner h2 {
    font-size: 1.6rem;
  }

  .news-card,
  .service-cards .card {
    width: 100%;
    max-width: 100%;
  }

    .service-overlay .service-text h2 {
    font-size: 1.5rem;
  }

  .service-overlay .service-text h3 {
    font-size: 1.2rem;
  }

  .service-overlay .service-text p {
    font-size: 1rem;
  }
}

/* 小型タブレット（768px〜991px） */
@media (min-width: 767px) and (max-width: 991px) {
  .logo {
    width: 20%;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .SlideInImage_left {
    background-size: cover;
    background-position: 55%;
    width: 70%;
  }

  .service-cards .card {
    flex: 1 1 45%;
  }

  .footer-contact-banner h2 {
    font-size: 2.5rem;
    line-height: 6rem;
  }

  .contact-info img {
    width: 30%;
  }

  .contact-info-inner {
    width: 40%;
    padding-left: 5rem;
  }
}


/* 大型タブレット（992px〜1199px） */
@media (min-width: 992px) and (max-width: 1199px) {
  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text p {
    font-size: 1.4rem;
  }

  .section h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
  }

  .SlideInImage_left {
    background-size: cover;
    background-position: 40%;
    width: 70%;
  }

  .service-cards .card {
    flex: 1 1 30%;
  }

  .footer-contact-banner h2 {
    font-size: 3rem;
    line-height: 6rem;
  }

  .gallery-track img {
    width: 30vw;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .br-pc {
    display: none !important;
  }

  .br-sp {
    display: block;
  }

  .br-mid {
    display: block !important;
  }

  .fullscreen-image {
    height: calc(419 / 600 * 100vw);
    max-height: calc(419 / 600 * 100vw);
  }

  .fullscreen-image .hero-text h1 {
    line-height: 1.2;
  }

  .halfscreen-image {
    height: calc(419 / 700 * 100vw);
    max-height: calc(419 / 700 * 100vw);
  }

  .scroll-arrow {
    font-size: 1rem;
  }

  .section-text-top {
    font-size: 1.4rem;
    line-height: 3rem;
  }

  .meet-section, .news-section, .service-section {
    padding: 4rem 3rem;
  }

  .meet-section-text .section-text-down {
    width: 45%;
  }
  
  .SlideInImage {
    background-size: cover;
    background-position: 40%;
  }

  .news-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
  }

  .news-card {
    max-width: 350px;
    margin: 0 auto;
  }

  .gallery-scroll {
    padding: 2rem 0;
  }

  .footer-contact-banner {
    padding: 4rem 3rem !important;
  }

  .btn-outline {
    margin: 0 0 2rem 0;
  }

  .company-logo {
    width: 30%;
    margin-left: 1.5rem;
  }

  .company-table th,
  .company-table td {
    padding-left: 1rem;
  }

  .service-section .btn-outline {
      margin: 0 0 2rem 0.5rem;
  }

  .service-overlay {
    width: 93%;
  }

  .service-overlay .service-text h2 {
    font-size: calc(180 / 5400 * 100vw);
    margin-top: 9%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    letter-spacing: 0.02rem;
  }

  .service-overlay .service-text h3 {
    margin: 1rem 0 0;
    font-size:  calc(180 / 5900 * 100vw);
  }

  .service-overlay .service-text p {
    font-size: 1.2rem;
  }

  .contact-info > p {
    margin: 4rem 3rem 0;
  }

  .form-block {
    margin-bottom: 5rem;
  }

  .btn-submit, .btn-back, .wpcf7 input[type="submit"] {
    font-size: 0.95rem;
  }
}