@charset "utf-8";

/* -----------------
ベース
----------------- */

html {
  font-size: 62.5%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-size: 1.6rem;
  font-family: "Shippori Mincho", serif;
  font-weight: 600;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  vertical-align: bottom;
  width: 100%;
}

:root {
  --header-h: 120px; /* 実測に合わせて調整（今の top:120px 想定） */
}

@media (max-width:800px) {
  body {
    font-size: 1.4rem;
  }
}

.sp-only {
  display: none;
}

@media (max-width:800px) {
  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }
}

/* -----------------
共通
----------------- */
.content-section {
  position: relative;
  z-index: 2; /* ← KVより上 */
  background-color: #fff;
  margin-top: 100vh
}

/* タイトル */
.section-title {
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
}

.small-title {
  font-weight: 600;
}

.section-title .small-title::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 4px;
  background-color: #fff;
  margin-bottom: 3px;
  margin-right: 3px;
}

.section-title h3 {
  font-size: 3.5rem;
  font-weight: 800;
}

.section-title.blue {
  color: #2258a7;
}

.section-title.blue .small-title::before {
  background-color: #2258a7;
}

@media (max-width:800px) {

  .section-title {
    margin-bottom: 20px;
  }

  .section-title h3 {
    font-size: 2.5rem;
  }


}

/* ボタン */
.btn {
  text-align: center;
  font-weight: 600;
  margin-top: 60px;
  margin-bottom: 60px;
}

/* ボタン */
.btn a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  color: #2258a7;
  border: 2px solid #2258a7;
  border-radius: 10px;
  padding: 15px 80px;
  font-size: 1.8rem;
  transition: all 0.4s ease;
}

/* → の矢印を線で描く */
.btn a::after {
  content: "";
  display: inline-block;
  width: 1.4em;              /* 棒の長さ */
  height: 2px;               /* 棒の太さ */
  background-color: currentColor;
  position: relative;
  transform-origin: left center;
  transition: all 0.3s ease;
}

/* くの字の先端（棒の端にくっつける） */
.btn a::before {
  content: "";
  position: absolute;
  right: calc(90px - 0.7em); /* padding-rightに合わせて微調整 */
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

/* ホバー時（背景＆矢印の動き） */
.btn a:hover {
  background-image: linear-gradient(
    90deg,
    rgba(62, 190, 222, 1),
    rgba(50, 156, 216, 1) 45%,
    rgba(34, 88, 167, 1)
  );
  color: #fff;
}

.btn a:hover::after {
  transform: translateX(6px);
}

.btn a:hover::before {
  right: calc(90px - 0.7em - 6px); /* →動きに合わせてくっつけたまま */
}

@media (max-width:500px) {
  .btn a {
      background-image: linear-gradient(
      90deg,
      rgba(62, 190, 222, 1),
      rgba(50, 156, 216, 1) 45%,
      rgba(34, 88, 167, 1)
    );
    border: none;
    color: #fff;
    font-size: 1.4rem;
    padding: 15px 60px;
  }

  .btn a::before {
    right: calc(70px - 0.7em);
}

.btn a:hover::before {
  right: calc(70px - 0.7em - 6px); /* →動きに合わせてくっつけたまま */
}

}

/* -----------------
CTAセクション
----------------- */
.cta {
  background: url(../img/contact_background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding: 160px 20px;
}

.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 30px;
}

.cta-inner .section-title {
  margin-bottom: 30px;
}

.contact-message {
  margin-bottom: 60px;
}

.link-wrapper {
  display: flex;
}

.link-wrapper .item {
  width: 50%;
}

.link-wrapper .link-icon {
  opacity: 0.3s;
}

.link-wrapper .link-icon:hover {
  opacity: 0.6;
}

.link-wrapper .item img {
  max-width: 62px;
  object-fit: contain;
  margin-bottom: 20px;
}

.link-wrapper .btn {
  margin: 0;
}

.tel-num  a {
  color: #2258a7;
  font-size: 4rem;
  font-weight: 800;
  transition: 0.3s;
}

.tel-text {
  color: #2258a7;
  font-size: 1.8rem;
  font-weight: 800;
}

.tel-num  a:hover {
  opacity: 0.7;
}

.mail-item {
  position: relative;
}

@media (max-width:800px) {
  .link-wrapper {
    flex-direction: column;
    gap: 80px;
  }

  .mail-item::after {
    content: "";
    width: 75%;
    height: 2px;
    background-color: #2258a7;
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
  }

  .link-wrapper .item {
    width: 100%;
  }

  .cta {
    padding: 25px 20px;
  }

  .cta .btn a {
    background-image: none;
    color: #2258a7;
  }

  .tel-num a {
    font-size: 2.4rem;
  }

  .tel-text {
    font-size: 1.2rem;
  }
}

/* -----------------
ヘッダー（共通）
----------------- */
header { 
  width: 100%; 
  background-color: #fff; 
  position: fixed; 
  top: 0; 
  left: 0; 
  z-index: 100; 
  font-family: "Noto Sans JP", sans-serif; 
  font-weight: 600; 
} 

.header-inner { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
} 

.logo { 
  max-width: 140px; 
  z-index: 1001;
} 

.logo a {
  transition: 0.3s;
}

.logo a:hover {
  opacity: 0.6;
}

.navigation { 
  display: flex; 
  gap: 20px; 
  align-items: center; 
}

.navigation li a {
  color: #0c072a; 
} 

.navigation .contact-btn { 
  background-image: linear-gradient(90deg, rgba(62, 190, 222, 1), rgba(50, 156, 216, 1) 45%, rgba(34, 88, 167, 1)); 
  padding: 15px 30px; 
  border-radius: 30px; 
  transition: opacity 0.3s ease, transform 0.3s ease;
  border: 2px solid #2258a7;
} 

.navigation .contact-btn a { 
  color: #fff; 
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation .contact-btn:hover { 
  background-image: none; 
  border: 2px solid #2258a7;
} 

.navigation .contact-btn a:hover { 
  color: #2258a7; 
}

/* モバイル用お問い合わせボタン（PC時は非表示） */
.header-actions {
  display: none;
}

.contact-btn-mobile {
  display: none;
}

@media (max-width:500px) {
  .logo {
    max-width: 90px;
  }
}

/* ====== ハンバーガーアイコン（PCは非表示） ====== */
.nav-toggle{
  display:none; 
  width:44px; 
  height:44px; 
  border:0; 
  background:transparent;
  position:relative; 
  cursor:pointer; 
  z-index:1001;
}
.nav-toggle__bar{
  position:absolute; 
  left:8px; 
  right:8px; 
  height:2px; 
  background:#0c072a;
  transition:transform .25s cubic-bezier(.4,0,.2,1), opacity .2s cubic-bezier(.4,0,.2,1);
}
.nav-toggle__bar:nth-child(1){ top:13px; }
.nav-toggle__bar:nth-child(2){ top:21px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1){ 
  transform:translateY(4px) rotate(45deg); 
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2){ 
  transform:translateY(-4px) rotate(-45deg); 
}

/* ====== 暗幕 ====== */
.nav-scrim{
  position:fixed; 
  inset:0; 
  background:rgba(0,0,0,.25);
  z-index:99; 
  opacity:0; 
  pointer-events:none; 
  transition:opacity .35s cubic-bezier(.4,0,.2,1);
}
.nav-scrim.is-open{ 
  opacity:1; 
  pointer-events:auto; 
}

/* ====== モバイルだけ .navigation をフルスクリーン化 ====== */
@media (max-width: 800px){
  header {
    background-color: rgba(255,255,255,0.8);
  }
  
  .header-inner {
    flex-wrap: wrap;
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1001;
  }
  
  .contact-btn-mobile {
    display: block;
    background-image: linear-gradient(90deg, rgba(62, 190, 222, 1), rgba(50, 156, 216, 1) 45%, rgba(34, 88, 167, 1)); 
    padding: 10px 20px; 
    border-radius: 30px;
  }
  
  .contact-btn-mobile a {
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .nav-toggle{ 
    display: inline-block; 
  }

  .navigation .contact-btn {
    display: none;
  }

  /* ★★★ ここを修正 ★★★ */
  .navigation{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    flex-direction: column;
    justify-content: flex-start;
    gap: 30px;
    padding: 150px 40px 24px;
    
    /* 初期状態：画面右側に隠す */
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    align-items: flex-start;
  }
  
  /* 開いた状態 */
  body.nav-open .navigation{
    transform: translateX(0);
    pointer-events: auto;
  }

  .navigation li{ 
    opacity: 0; 
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  
  body.nav-open .navigation li{ 
    opacity: 1; 
    transform: translateX(0); 
  }
  
  body.nav-open .navigation li:nth-child(1){ transition-delay: 0.2s; }
  body.nav-open .navigation li:nth-child(2){ transition-delay: 0.26s; }
  body.nav-open .navigation li:nth-child(3){ transition-delay: 0.32s; }
  body.nav-open .navigation li:nth-child(4){ transition-delay: 0.38s; }
  body.nav-open .navigation li:nth-child(5){ transition-delay: 0.44s; }
  
  body:not(.nav-open) .navigation li {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .navigation li a{ 
    font-size: 1.8rem; 
    text-align: left;
  }

  body.nav-open{ 
    overflow: hidden; 
  }
}

/* ====== 暗幕 ====== */
.nav-scrim{
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,0.5);
  z-index: 99; 
  opacity: 0; 
  pointer-events: none; 
  transition: opacity 0.35s cubic-bezier(0.4,0,0.2,1);
}

.nav-scrim.is-open{ 
  opacity: 1; 
  pointer-events: auto; 
}

.nav-scrim[hidden] {
  display: none;
}

/* -----------------
ナビゲーションメニューのホバーとアクティブ状態
----------------- */

/* ホバー時の動き（PC時のみ） */
@media (min-width: 801px) {
  .navigation li {
    position: relative;
    transition: transform 0.3s ease;
  }
  
  .navigation li:hover {
    transform: translateY(-5px);
  }
  
  .navigation li a {
    transition: color 0.3s ease;
  }
  
  .navigation li:hover a {
    color: #2258a7; /* 青色 */
  }
}

/* アクティブページのスタイル */
.navigation li.active {
  position: relative;
}

.navigation li.active a {
  color: #2258a7; /* 青色 */
}

/* 青丸の表示 */
.navigation li.active::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: #2258a7;
  border-radius: 50%;
}

/* モバイル時は青丸を調整 */
@media (max-width: 800px) {
  .navigation li.active::before {
    top: 50%;
    transform: translateY(-50%);
    left: -20px;
  }
}

/* お問い合わせボタンはホバー効果を除外 */
.navigation .contact-btn:hover {
  transform: none;
}

.navigation .contact-btn {
  transition: opacity 0.3s ease;
}

.navigation .contact-btn:hover {
  opacity: 0.9;
}

/* -----------------
フッター
----------------- */
footer {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
}

footer.content-section {
  margin-top: 0;
}

.footer-nav {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-bottom: 70px;
}

.footer-nav li {
  position: relative;
  transition: transform 0.3s ease;
}

.footer-nav a {
  color: #0c072a;
  transition: color 0.3s ease;
}

/* ホバー時の動き（PC時のみ） */
@media (min-width: 801px) {
  .footer-nav li:hover {
    transform: translateY(-5px);
  }
  
  .footer-nav li:hover a {
    color: #2258a7; /* 青色 */
  }
}

/* アクティブページのスタイル */
.footer-nav li.active a {
  color: #2258a7; /* 青色 */
}

/* 青丸の表示 */
.footer-nav li.active::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: #2258a7;
  border-radius: 50%;
}

.footer-content {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-content .logo {
  width: 50%;
}

.footer-content .logo img {
  width: 100%;
}

.footer-content .address {
  text-align: left;
}

.footer-content .address p {
  margin-bottom: 5px;
}

.facebook-link a {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  position: relative;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
  color: #0c072a;
}

/* Facebookリンクのホバー効果 */
@media (min-width: 801px) {
  .facebook-link a:hover {
    transform: translateY(-3px);
    cursor: pointer;
  }
  
  .facebook-link a:hover p {
    color: #2258a7
  }
}

.facebook-link a p {
  transition: color 0.3s ease;
}

.facebook-link a::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 1px;
  background-color: #0c072a;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.facebook-link img {
  max-width: 30px;
}

.copyright {
  font-size: 1.2rem;
}

@media (max-width:800px) {
  .footer-nav {
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 70px;
  }

  .footer-nav li {
    display: flex;
    justify-content: center;
  }
  
  /* モバイル時は青丸の位置を調整 */
  .footer-nav li.active::before {
    display: inline;
    top: 50%;
    left: -15px;
    transform: translateY(-50%);
  }

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

/* -----------------
TOPページ
----------------- */

/* KV */
.kv {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: calc(100vh - var(--header-h));
  z-index: 0;            /* ← 下層（ヘッダーより下、コンテンツより下） */
}

/* KV */
.kv {
  position: fixed;
  top: var(--header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: calc(100vh - var(--header-h));
  z-index: 0;
  overflow: clip; /* はみ出し防止 */
}

/* 背景動画コンテナ */
.kv-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 背景動画 */
.kv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 暗幕（読みやすさ用） */
.kv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.35));
  z-index: 1;
}

/* テキストレイヤー */
.kv-inner {
  position: relative;
  z-index: 2;           /* 動画の上 */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 10px;
}

/* メディアクエリの出し分け（例） */
.pc-only { display: block; }
.sp-only { display: none; }

@media (max-width: 800px) {
  .pc-only { display: none; }
  .sp-only { display: block; }
}


h2 {
  font-size: clamp(3rem, 6vw, 6.7rem);
  margin-bottom: 60px;
}

h2 .large {
  font-size: clamp(4rem, 8vw, 8.6rem);
  letter-spacing: -0.05em; /* px → em で可変対応 */
}

h2 .medium {
  font-size: clamp(3.6rem, 7vw, 7.2rem);
}

.main-copy {
  font-size: clamp(1.6rem, 2vw, 2rem);
}

.br {
  display: none;
}

@media(max-width:770px) {
  .br {
    display: block;
  }
}

/* About */
.about {
  background-image: url(../img/s2_background.jpeg);
  background-repeat: repeat;
  padding: 180px 20px 180px 0;
}

.about-content {
  display: flex;
  max-width: 1320px;
  gap: 70px;
  align-items: center;
}

.about-content img {
  width: 55%;
  aspect-ratio: 36 / 29;
  object-fit: cover;
}

.about-content .about-text {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
}

.about-text h4 {
  font-size: clamp(2rem,6vw,3rem);
  font-weight: 600;
}

.about-text h4 .bg-white {
  background-color: #fff;
  color: #2258a7;
  
}

@media (max-width:800px) {
  .about {
    padding: 60px 0;
  }

  .about-content {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 100px;
  }

  .about-content img {
    width: 80%;
  }

  .about-text {
    position: relative;
    padding: 0 20px;
  }

  .about-text p {
    margin-bottom: 20px;
  }

  .about-text h4 {
    text-align: center;
  }

  .sp-whitebg {
    background-color: #fff;
    color: #2258a7;
    padding: 10px;
    position: absolute;
    right: 0;
    bottom: -70%;
    z-index: 30;
    width: 80%;
  }

  .sp-whitebg::before {
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    right: 20px;
    bottom: -20px;
    border: 2px solid #fff;
    z-index: -1;
  }
}

/* works */
.company {
  background-image: url(../img/s3_background.png);
  padding: 80px 20px ;
  position: relative;
}

.company::after {
  content: "";
  height: 100%;
  width: 100%;
  background-color: #fff;
  opacity: 0.3;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.company .section-title {
  position: relative;
  z-index: 10;
}

.company-content {
  max-width: 1046px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
}

.company-list {
  width: 50%;
  padding: 60px 0;
}

.company-list dl {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.8rem;
}

.company-list dl dt {
  width: 25%;
  padding: 14px 0;
  border-bottom: 1px solid #0c072a;
}

.company-list dl dd {
  width: 75%;
  padding: 14px 0;
  border-bottom: 1px solid #0c072a;
}

.map {
  width: 40%;
  aspect-ratio: 1/1;
}

.map iframe {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  -webkit-transform: translateZ(0); /* Safari用 */
  transform: translateZ(0);
}

.company .btn {
  position: relative;
  z-index: 10;
}

@media (max-width:800px) {
  .company-content {
    flex-direction: column;
  }

  .company-list {
    padding-top: 0;
    width: 100%;
  }

  .company-list dl {
    font-size: 1.4rem;
    flex-direction: column;
  }

  .company-list dl dt {
    border-bottom: none;
    padding-bottom: 0;
  }

  .company-list dl dd {
    width: 100%;
    padding-top: 0;
  }

  .map {
    width: 100%;
    aspect-ratio: 1/1;
  }

  .company .btn a {
    margin-bottom: 40px;
  }
}

.slider-container {
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: -100px; 
  margin-bottom: 100px;
}

.slider-wrapper {
  display: flex;
  animation: scroll 30s linear infinite;
  width: fit-content;
  margin-bottom: -150px;
  position: relative;
}

.slide {
  flex-shrink: 0;
  width: 288px;
  height: 180px;
  margin: 0 1rem;
  border-radius: 1px;
  overflow-x: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: transform 0.3s ease;
}

.slide:nth-child(odd) {
  margin-top: 30px;
}

.slide img {
  width: 100%;
  height: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

h1 {
  text-align: center;
  color: #333;
}

@media (max-width: 800px) {
  .slide {
    width: 170px;
    height: 130px;
  }
}

/* service */
.service {
  padding: 160px 20px 100px;
  background-image: url(../img/s4_background.jpeg);
  background-repeat: repeat;
}

.bg-logo {
  background-image: url(../img/log.png);
  background-size: contain;
  background-position: center;
  padding: 40px 0;
}

.service-copy {
  text-align: center;
}

.service-copy h4{
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 40px;
}

/* コンテナをGrid化 */
.service-content {
  --minCol: 240px;            /* 1カラムの最小幅（ここを変えるとブレイクの気持ちよさが変わる） */
  --gap: 24px;

  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: var(--gap);

  /* 画面幅に合わせて自動で 4→3→2→1 と折り返す */
  grid-template-columns: repeat(auto-fit, minmax(var(--minCol), 1fr));
}

/* 各カードを縦並び＆中央寄せ。高さを揃えるためにgridで内側を組む */
.service-content .item {
  display: grid;
  grid-template-rows: auto auto 1fr; /* 画像, 矢印, テキスト */
  align-items: start;
  justify-items: center;
  text-align: center;
}

/* 画像（サービス画像） */
.service-content .item > img:not(.arrow) {
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 4 / 3;     /* 必要なら固定比率。不要なら消してOK */
  object-fit: contain;
  display: block;
}

/* 矢印画像 */
.service-content .item .arrow {
  width: 28px;
  height: auto;
  margin-block: 8px 4px;
  opacity: 0.9;
}

/* 説明テキスト */
.service-content .item p {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.8;
  margin: 0;
}

.service .btn {
  margin-bottom: 0;
}

/* ── ブレイクポイント微調整（任意） ───────────────── */

/* タブレット付近：最小カラム幅を少し狭めて2列に落ちやすく */
@media (max-width: 1024px) {
  .service-content { --minCol: 220px; --gap: 20px; }
  .service-content .item > img:not(.arrow) { width: min(100%, 300px); }
}

/* スマホ：1〜2列。テキストの可読性を優先して余白を少し増やす */
@media (max-width: 768px) {
  .service-content { --minCol: 200px; --gap: 16px; }
  .service-content .item { padding: 14px; }
  .service-content .item .arrow { width: 24px; }
}

/* かなり狭い端末：1列確定に寄せる & 画像が小さくなりすぎないよう下限を底上げ */
@media (max-width: 420px) {
  .service-content { --minCol: 300px; } /* これで1列になり、画像が極端に小さくならない */
  .service-content .item > img:not(.arrow) { width: min(100%, 360px); }
}

/* -----------------
施工実績カルーセル
----------------- */

.carousel-section {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.carousel-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 0;
}

.carousel-wrapper {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.carousel-slide {
    position: absolute;
    width: 400px;
    height: 350px;
    left: 50%;
    top: 50%;
    transform-origin: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.carousel-slide img:hover {
  transform: scale(1.3);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 20px;
}

.carousel-caption h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.carousel-caption p {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* カルーセルの位置設定 */
.carousel-slide[data-position="0"] {
    transform: translate(-50%, -50%) scale(1) translateZ(0);
    z-index: 5;
    opacity: 1;
}

.carousel-slide[data-position="1"],
.carousel-slide[data-position="-1"] {
    transform: translate(-50%, -50%) scale(0.8) translateZ(-100px);
    z-index: 4;
    opacity: 0.7;
}

.carousel-slide[data-position="1"] {
    transform: translate(calc(-50% + 350px), -50%) scale(0.8) translateZ(-100px);
}

.carousel-slide[data-position="-1"] {
    transform: translate(calc(-50% - 350px), -50%) scale(0.8) translateZ(-100px);
}

.carousel-slide[data-position="2"],
.carousel-slide[data-position="-2"] {
    transform: translate(-50%, -50%) scale(0.6) translateZ(-200px);
    z-index: 3;
    opacity: 0.4;
}

.carousel-slide[data-position="2"] {
    transform: translate(calc(-50% + 600px), -50%) scale(0.6) translateZ(-200px);
}

.carousel-slide[data-position="-2"] {
    transform: translate(calc(-50% - 600px), -50%) scale(0.6) translateZ(-200px);
}

.carousel-slide[data-position="3"],
.carousel-slide[data-position="-3"] {
    opacity: 0;
    pointer-events: none;
}

/* ナビゲーションボタン */
.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav-button:hover {
    background: #2258a7;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-button.prev {
    left: 20px;
}

.carousel-nav-button.next {
    right: 20px;
}

.carousel-nav-button span {
  margin-bottom: 7px;
}

/* インジケーター */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: #2258a7;
    width: 30px;
    border-radius: 6px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .carousel-wrapper {
        height: 300px;
    }
    
    .carousel-slide {
        width: 280px;
        height: 250px;
    }
    
    .carousel-slide[data-position="1"],
    .carousel-slide[data-position="-1"] {
        transform: translate(-50%, -50%) scale(0.7) translateZ(-50px);
    }
    
    .carousel-slide[data-position="1"] {
        transform: translate(calc(-50% + 200px), -50%) scale(0.7) translateZ(-50px);
    }
    
    .carousel-slide[data-position="-1"] {
        transform: translate(calc(-50% - 200px), -50%) scale(0.7) translateZ(-50px);
    }
    
    .carousel-slide[data-position="2"],
    .carousel-slide[data-position="-2"] {
        opacity: 0;
    }
}


.works {
  position: relative;
  padding: 80px 20px;
}


.works-bg {
  background: url(../img/s5_background.jpg);
  background-position-x: center;
  background-size: cover;
  height: 60vh;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

@media (max-width:800px) {
  .works {
    padding: 60px 20px 0;
  }
  .works-bg {
    height: 40vh;
  }
}

/* お知らせ */
.news-content {
  max-width: 1320px;
  margin:0 0 0 auto;
  display: flex;
}

.news-list {
  width: 45%;
  padding: 0 40px;
}

.news-list li {
  border-bottom: 1px solid #2258a7;
  padding: 40px 0;
}

.news-list li:first-child {
  border-top: 1px solid #2258a7;
}

.news-list li a {
  color: #0c072a;
  transition: 0.3s;
}

.news-list li a:hover {
  opacity: 0.6;
}

.small-text {
  margin-bottom: 10px;
}

.small-text .category {
  color: #2258a7;
  display: inline-block;
  margin-left: 40px;
}

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

.news-img {
  width: 55%;
}

@media (max-width:800px) {
  .news-content {
    flex-direction: column;
    margin-bottom: 60px;
  }

  .news-list {
    width: 100%;
  }

  .news-list li {
    padding: 20px 0;
  }

  .news-img {
    width: 100%;
    padding: 0 20px;
  }

  .news-title {
    font-size: 1.6rem;
  }
}

/* -----------------
業務内容ページ
----------------- */

.page-title {
  margin-top: var(--header-h);
  margin-bottom: 100px;
  text-align: center;
  border-bottom: 2px solid #2258a7;
  position: relative;
}

.page-title::after {
  content: "";
  width: 100%;
  height: 0.8px;
  background: #2258a7;
  position: absolute;
  bottom: -10px;
  left: 0;
}

.page-title p {
  font-size: clamp(1.6rem,3vw,3rem);
  background: linear-gradient(
    90deg,
    rgba(62, 190, 222, 1),
    rgba(50, 156, 216, 1) 45%,
    rgba(34, 88, 167, 1)
  );

  /* テキストに背景をクリップ */
  -webkit-background-clip: text;
  background-clip: text;

  /* 文字を透明にして背景を見せる */
  -webkit-text-fill-color: transparent;
  color: transparent;

  /* お好みでスムーズに */
  display: inline-block;
}

.page-title h2 {
  font-size: clamp(2.8rem,6vw,4.8rem);
  font-weight: bold;
  background-image: linear-gradient(
    90deg,
    rgba(62, 190, 222, 1),
    rgba(50, 156, 216, 1) 45%,
    rgba(34, 88, 167, 1)
  );
  color: #fff;;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent; /* フォールバック用 */
}

.content {
  max-width: 1120px;
  margin: 0 auto 100px auto;
  position: relative;
}

.background {
  background-image: url(../img/service/service_background-01.jpg);
  max-width: 690px;
  height: 726px;
  background-size: cover;
  position: relative;
  color: #fff;
  padding: 60px 80px;
}

.background.second {
  background-image: url(../img/service/service_background-02.jpg);
}
.background.third {
  background-image: url(../img/service/service_background-03.jpg);
  height: 498px;
}

.background-inner {
  position: relative;
  z-index: 10;
}

.background-inner h3 {
  font-size: 4rem;
}

.service-detail {
  background-color: #dff2fd;
  padding: 80px 40px;
  width: 80%;
  margin: -500px 0 0 auto;
  position: relative;
  z-index: 20;
}

.service-detail.third {
  margin-top: -300px;
}

.service-detail ul li {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 20px;
}

.service-detail ul li img {
  width: 40%;
  object-fit: cover;
}

.service-detail .text h4 {
  font-size: 3rem;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding-left: 10px;
}

.service-detail .text h4::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #3cb8de;
  display: block;
}

.content.reverse .background {
  margin: 0 0 0 auto;
}

.content.reverse .service-detail {
  margin-left: 0;
  margin-right: auto;
}

@media(max-width:800px) {
  .background {
    max-width: 500px;
    height: 400px;
    padding: 40px 20px;
  }

  .background-inner h3 {
  font-size: 2.4rem;
}

  .service-detail {
    margin-top: -200px;
    padding: 40px 15px;
    width: 90%;
  }

  .service-detail ul li {
    flex-direction: column;
    align-items: start;
  }
  .service-detail ul li img {
  width: 60%;
  object-fit: cover;
}

.service-detail .text h4 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.service-detail .text h4::before {
  content: "";
  width: 16px;
  height: 16px;
}
}

/* -----------------
施工実績ページ
----------------- */

.anchor-link {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  justify-content: center;
  margin-bottom: 40px;
  gap: 15px;
  flex-wrap: wrap;
}

.page-title .anchor-link li a {
  font-size: clamp(1.4rem, 3.7vw, 2rem);
  color: #0c072a;
  transition: 0.3s;
}

.page-title .anchor-link li a:hover {
  color: #2258a7;
}

.works-group {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.works-group-title {
  font-size: clamp(2.4rem, 3vw, 4rem);
  padding-bottom: 15px;
  border-bottom: 1px solid #2258a7;
  margin-bottom: 40px;
}

.works-group .sub-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  padding-left: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 15px;
}

.works-group .sub-title::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #3cb8de;
  display: block;
  flex-shrink: 0;
}

/* -----------------
ブロックエディタで作成したコンテンツ用のスタイル
----------------- */

/* ギャラリーブロックのスタイル調整 */
.works-content .wp-block-gallery {
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.works-content .wp-block-gallery .wp-block-image {
    width: calc(33.333% - 10px);
    margin: 0;
    flex-shrink: 0;
    flex-grow: 0; /* ★追加 */
    max-width: calc(33.333% - 10px); /* ★追加 */
}

.works-content .wp-block-gallery .wp-block-image img {
    aspect-ratio: 5/4;
    object-fit: cover;
    width: 100%;
    height: auto;
}

/* =============================================
   施工実績ページ - ギャラリー画像の固定幅設定
   ============================================= */

/* ギャラリー全体の設定 */
.works-content .wp-block-gallery.has-nested-images {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    justify-content: flex-start !important;
    margin-bottom: 15px;
}

/* 画像を33.333%の固定幅に */
.works-content .wp-block-gallery.has-nested-images .wp-block-image {
    width: calc(33.333% - 10px) !important;
    min-width: calc(33.333% - 10px) !important;
    max-width: calc(33.333% - 10px) !important;
    flex: 0 0 calc(33.333% - 10px) !important;
    margin: 0 !important;
}

/* 画像自体のスタイル */
.works-content .wp-block-gallery.has-nested-images .wp-block-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 5/4;
    object-fit: cover;
    display: block;
}

/* キャプションのスタイル */
.works-content .wp-block-gallery.has-nested-images .wp-block-image figcaption {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-top: 8px;
    text-align: left;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .works-content .wp-block-gallery.has-nested-images {
        flex-direction: column !important;
    }
    
    .works-content .wp-block-gallery.has-nested-images .wp-block-image {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* グループブロックのスタイル */
.works-content .wp-block-group.works-group {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.works-content .wp-block-group.works-wrap {
    margin-bottom: 60px;
}

/* 見出しスタイル */
.works-content .works-group-title {
    font-size: clamp(2.4rem, 3vw, 4rem);
    padding-bottom: 15px;
    border-bottom: 1px solid #2258a7;
    margin-bottom: 40px;
}

.works-content .sub-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    padding-left: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.works-content .sub-title::before {
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #3cb8de;
    display: block;
    flex-shrink: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .works-content .wp-block-gallery {
        flex-direction: column;
    }
    
    .works-content .wp-block-gallery .wp-block-image {
        width: 100%;
    }
}



/* -----------------
プライバシーポリシーページ
----------------- */

.privacy-content {
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-title {
  text-align: center;
  margin-bottom: 80px;
}

.privacy-title h2 {
  font-size: clamp(2.4rem,3vw,4.8rem);
  margin-bottom: 5px;
}

.content-inner h3 {
  font-size: clamp(1.8rem,3vw,3.6rem);
  border-bottom: 1px solid #3cb8de;
  padding-bottom: 10px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.content-inner h3::before {
  content: "";
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background-color: #3cb8de;
  display: block;
}

.content-inner li {
  margin-bottom: 60px;
}

/* -----------------
お問合せページ
----------------- */

.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-copy {
  text-align: center;
  margin-bottom: 80px;
}

.contact-text {
  display: none;
}


@media (max-width:480px) {
  .contact-text {
    display: block;
  }
}
/* フォームグループ */
.contact-form-group {
    display: flex;
    border-bottom: 1px solid #bfbfbf;
}

.contact-form-group p {
  display: flex;
  width: 100%;
  gap: 20px;  
}

.contact-form-group:first-child {
  border-top: 1px solid #bfbfbf;
}

.contact-form-group label {
    width: 35%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
    background-color: #2258a7;
    color: #fff;
    padding: 40px;
}

.label-required::after {
    content: "必須";
    background-color: #f8ef07;
    color: #0c072a;
    font-size: 12px;
    padding: 2px 8px;
    font-weight: normal;
    display: block;
}

.contact-form-group input[type="text"],
.contact-form-group input[type="tel"],
.contact-form-group input[type="email"],
.contact-form-group textarea {
    width: 65%;
    transition: border-color 0.3s;
    border: none;
    border: 1px solid #bfbfbf;
    margin: 24px 0;
    padding: 12px;
    font-size: 16px;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-left-color: #3498db;
}

.contact-form-group textarea {
    resize: vertical;
    font-family: inherit;
}

.form-note {
    display: block;
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

/* ボタン */
.form-button {
    text-align: center;
    font-weight: 600;
    margin-top: 60px;
    margin-bottom: 60px;
}

.flex-button p {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    color: #2258a7;
    border: 2px solid #2258a7;
    border-radius: 10px;
    padding: 15px 80px;
    font-size: 1.8rem;
    font-weight: 600;
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}


/* ホバー時（背景＆矢印の動き） */
.btn-submit:hover {
    background-image: linear-gradient(
        90deg,
        rgba(62, 190, 222, 1),
        rgba(50, 156, 216, 1) 45%,
        rgba(34, 88, 167, 1)
    );
    color: #fff;
}

.wpcf7-spinner {
  display: none;
}

/* 確認ページ用スタイル */
.form-wrapper {
  padding: 0 20px;
}

.confirm-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #666;
}

.confirm-content {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin:0 auto 30px;
    max-width: 1200px;
}

.confirm-group {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.confirm-group:last-child {
    border-bottom: none;
}

.confirm-label {
    width: 180px;
    font-weight: bold;
    color: #555;
    flex-shrink: 0;
}

.confirm-value {
    flex: 1;
    color: #333;
}

.confirm-value.message {
    white-space: pre-wrap;
}

/* 確認ページのボタン */
.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.btn-back {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    background-color: #95a5a6;
    color: #fff;
    padding: 15px 40px;
    font-size: 1.6rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .contact-form-group {
        flex-direction: column;
    }

    .contact-form-group p {
      flex-direction: column;
      gap: 0;
      align-items: start;
      margin-bottom: 20px;
    }

    .contact-form-group label {
        width: 100%;
        padding: 20px;
    }

    .contact-form-group input[type="text"],
    .contact-form-group input[type="tel"],
    .contact-form-group input[type="email"],
    .contact-form-group textarea {
        width: 100%;
        margin: 20px;
        border: none;
    }

    .confirm-group {
        flex-direction: column;
    }

    .confirm-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .btn-submit,
    .btn-back {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .btn-submit {
        background-image: linear-gradient(
            90deg,
            rgba(62, 190, 222, 1),
            rgba(50, 156, 216, 1) 45%,
            rgba(34, 88, 167, 1)
        );
        border: none;
        color: #fff;
        font-size: 1.4rem;
        padding: 15px 60px;
    }

    .btn-submit::before {
        right: calc(70px - 0.7em);
    }

    .btn-submit:hover::before {
        right: calc(70px - 0.7em - 6px);
    }

  .flex-button p {
    flex-direction: column;
    gap: 0;
    width: 80%;
    margin: 0 auto;
  }
}

/* Contact Form 7用のスタイル調整 */

.wpcf7 .contact-form-group:first-of-type p {
    border-top: 1px solid #bfbfbf;
}


/* 入力フィールドのラッパー */
.wpcf7 .contact-form-group .wpcf7-form-control-wrap {
    width: 65%;
}

/* 入力フィールド */
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    width: 85%;
}

/* 各入力欄の下に出るエラーメッセージを非表示 */
.wpcf7-not-valid-tip {
    display: none;
}

/* フォーム上部のまとめエラーメッセージのみ表示 */
.screen-reader-response {
    display: none;
}

/* エラーのある入力欄を赤枠で強調 */
.wpcf7-not-valid {
    border: 2px solid #dc3232 !important;
    background-color: #fef7f7;
}

/* フォーカス時もエラー状態を維持 */
.wpcf7-not-valid:focus {
    outline: none;
    border-color: #dc3232 !important;
    box-shadow: 0 0 5px rgba(220, 50, 50, 0.3);
}

.wpcf7-response-output {
  text-align: center;
}

@media(max-width:800px) {

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

  .wpcf7 .contact-form-group .wpcf7-form-control-wrap {
    width: 100%;
    margin: 0;
}

.wpcf7 .contact-form-group label {
  width: 100%;
}

}

.thanks {
  text-align: center;
}

.thanks-message {
  font-size: clamp(2.4rem,4vw,3.2rem);
  margin-bottom: 20px;
}

.thanks p {
  margin-bottom: 40px;
}
/* -----------------
お知らせページ
----------------- */
.news-page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-page-content .news-list {
  width: 100%;
  padding: 0;
}

.news-page-content .news-list li {
  padding: 40px 100px;
}

.news-page-content .news-list li:first-child {
  border-top: none;
}

.news-page-content .news-list li a {
  color: #0c072a;
  display: flex;
  gap: 40px;
  align-items: center;
  transition: 0.3s;
}

.news-page-content .news-list li a:hover {
  opacity: 0.6;
}

.news-page-content .small-text {
  margin-bottom: 0;
}

.small-text .category {
  color: #2258a7;
  display: inline-block;
  margin-left: 40px;
}

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

@media (max-width:800px) {
  .news-page-content .news-list li {
  padding: 20px 10px;
}

  .news-page-content .news-list li a {
    flex-direction: column;
    gap: 5px;
    align-items: start;
  }

  
}

/* pager */
.pager{
  display:flex; 
  align-items:center; 
  justify-content:flex-end; 
  gap:1rem;
  flex-wrap:wrap; 
  margin-top: 32px;
}

.pager-prev, .pager-next, .pager-link{
  min-width: 20px; 
  height: 40px; 
  display:grid; 
  place-items:center;
  color:#0c072a; 
  text-decoration:none;
}

.pager-next {
  background-color: #2258a7;
  border-radius: 50%;
  min-width: 40px;
  color: #fff;
}

.pager-prev:hover, .pager-next:hover, .pager-link:hover{ 
  color: #2258a7; 
}
.pager-list{ 
  display:flex; 
  gap:.4rem; 
  margin:0; 
  padding:0; 
  list-style:none; 
}

.pager-ellipsis{ 
  display:inline-block; 
  min-width:40px; 
  text-align:center; 
  color:#6b7280; 
}

.pager .current{ 
  color:#2258a7; 
  border-color:transparent; 
}

.pager .disabled{ 
  opacity:.4; 
  pointer-events:none; 
}


/* -----------------
お知らせ詳細ページ
----------------- */
.news-detail-title {
  margin-top: 200px;
  border-bottom: 2px solid #2258a7;
  margin-bottom: 60px;
}
.news-detail-title .small-text {
  display: flex;
} 

.news-detail-title h2 {
  font-size: clamp(2.4rem,4vw,4rem);
  margin-bottom: 20px;
}

.news-detail {
  margin-top: var(--header-h);
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 20px;
}

.news-detail-inner {
  display: flex;
}

.news-detail-inner .news-detail-content {
  width: 60%;
}

.news-detail-inner .news-detail-content img {
  margin-bottom: 40px;
  object-fit: contain;
}

.list-articles {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 40px;
}

.news-detail-list {
  width: 40%;
}

.news-detail-list li {
  padding: 15px;
}

@media(max-width:800px) {
  .news-detail-inner {
    flex-direction: column;
    gap: 60px;
  }

  .news-detail-inner .news-detail-content {
  width: 100%;
}
.news-detail-list {
  width: 100%;
}

}

/* -----------------
会社案内ページ
----------------- */
.company-page-kv {
  background-image: url(../img/company-kv.png);
  background-size: cover;
  background-position: right;
  margin-top: var(--header-h);
  margin-bottom: 200px;
  height: calc(80vh - var(--header-h));
  border-bottom: 2px solid #2258a7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.company-page-kv::after {
  content: "";
  height: 1px;
  width: 100%;
  background-color: #2258a7;
  position: absolute;
  bottom: -20px;
  z-index: 20;
}

.company-page-kv .inner {
  display: flex;
  gap: 60px;
  margin-top: 20%;
  justify-content: center;
}

.company-page-kv .inner img {
  width: 13%;
  position: relative;
  z-index: 30;
}

.company-page-kv .inner .text {
  text-align: center;
  background: linear-gradient(
    90deg,
    rgba(62, 190, 222, 1) 0%,
    rgba(50, 156, 216, 1) 30%,
    rgba(34, 88, 167, 1) 70%
    );
  /* テキストに背景をクリップ */
  -webkit-background-clip: text;
  background-clip: text;
  /* 文字を透明にして背景を見せる */
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* お好みでスムーズに */
  display: inline-block;
  font-weight: 800;
}

.company-page-kv h2 {
  margin-bottom: 0;
}

.greeting {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 160px; /* ここは任意の余白 */
}

.greeting-text {
  width: 50%;
  position: relative; /* 必要ならそのままでもOK */
}

.greeting-text .content-title {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 20px 0;
}

.greeting-text .content-title p {
  color: #2258a7;
}

.greeting-text .content-title h3 {
  font-size: clamp(1.8rem,2vw,3.6rem);
}


.greeting-message {
  /* ★ absoluteをやめて相対配置に */
  position: relative;     /* ← フローに残す */
  z-index: 10;

  /* 見た目用：横をはみ出させる（右に30%広げる） */
  width: 130%;
  /* はみ出し方向を右に寄せたいなら、左を基準に */
  /* 必要に応じて左へ少しスライド */
  transform: translateX(0); /* 例: -5% などで微調整 */

  background-color: rgba(223, 242, 253, 0.8);
  padding: 60px 120px 60px 100px;
}

.representative-name { margin-top: 40px; }

.representative-name .company-name{
  font-size: 2.4rem;
  margin-bottom: 5px;
}

.representative-name .wrapper {
  display: flex;
  gap: 20px;
  align-items: baseline;
}

.representative-name .wrapper .name {
  font-size: 2rem;
}

.greeting img {
  width: 50%;
  object-fit: cover;
  aspect-ratio: 7/4;
  /* テキストより背面にしたいなら */
  position: relative;
  z-index: 0;
}

.company-detail {
  margin-bottom: 100px;
}

.company-detail-list {
  max-width: 495px;
  margin: 0 auto 140px auto;
  padding: 0 20px;
}

.company-detail-list dl {
  display: flex;
  flex-wrap: wrap;
}

.company-detail-list dt {
  width: 25%;
  border-bottom: 1px solid #0c072a;
  padding: 10px 3px 10px 0;
}

.company-detail-list dd {
  width: 75%;
  border-bottom: 1px solid #0c072a;
  padding: 10px 0;
}

.gmap {
  width: 100%;
  aspect-ratio: 18/5;
}

.gmap iframe {
  width: 100%;
  height: 100%;
}

.company-address {
  background-color: #fff;
  margin: -60px 0 0 auto;
  width: 40%;
  padding: 40px  120px 40px 80px;
  position: relative;
  z-index: 100;
  font-size: 1.8rem;
}

.address-title {
  border-bottom: 1px solid #2258a7;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

@media(max-width:800px) {

.company-page-kv .inner {
  flex-direction: column-reverse;
  align-items: center;
}

.company-page-kv .inner img {
  width: 20%;
  position: relative;
  z-index: 10;
}

.greeting {
  flex-direction: column;
}

.greeting-text {
  width: 100%;
}

.greeting-message {
  padding: 40px;
  width: 90%;
}

.greeting img {
  width: 70%;
  margin: -20px 0 0 auto;
  z-index: 30;
}

.company-address {
  width: 80%;
  padding: 20px;
  font-size: 1.4rem;
}

.gmap {
  width: 100%;
  aspect-ratio: 8/9;
}

.representative-name .company-name{
  font-size: 1.8rem;
}

.representative-name .wrapper .name {
  font-size: 1.6rem;
}
}

@media(max-width:500px) {
  .company-page-kv {
    margin-bottom: 120px;
  }
}

.p-404 {
  text-align: center;
  padding: 120px 20px;
  margin-top: 20vh;

  h1 {
    font-size: 4rem;
  }

  a {
    display: inline-block;
    margin-top: 32px;
    color: #2258a7;
  }

  a:hover {
    opacity: 0.7;
  }
}