

/* ===== HEROセクション ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin: 0; 
  padding: 0;
    border-bottom: 1px solid #000;}

/* hero上のテキスト */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 1rem 2rem;
  border-radius: 8px;
}

.hero-text h2 {
  font-size: clamp(1.6rem, 1rem + 2.0vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.hero-text p {
  font-size: clamp(0.9rem, 0.7rem + 0.625vw, 1.2rem);
}




/* ===== front 画像 文字===== */
.s-text{
font-size: 0.875rem;  }


.item-text{
font-size: clamp(0.875rem, 1rem + 0.5vw, 1rem);
font-weight: 700;
margin: 0.5em;
  }
.caption-box {
  border: 1px solid #333; 
  padding: 1.5rem;         
  border-radius: 8px;     
  background-color: #fff; 
}
.img-row {
display: flex;
    gap: 20px;
width: 110%;
    box-sizing: border-box;
    margin-top: clamp(4rem, 2rem + 4.38vw, 7rem);
    margin-left: calc(var(--side-padding) * -0.6);
}
.img-column {
    display: flex;
    flex-direction: column; 
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}


.img_block,
.te_block {
   display: flex;
    gap: 20px;     
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.te_block .text-column {
 flex: 1 1 0; 
    min-width: 0;
    width: auto; 
    margin: 0;
    padding: 0;
    display: block;
    text-align: left;   
}
.img-column2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

@media (max-width: 769px) {
  .img-column2 {
    margin-top: 60px;

}  .img-column{
    margin-top: 60px;

}}

.img_block2 {
    display: flex;
    width: 77%;
    gap: 20px;
    align-items: flex-start;
}


.te_block2 {
    display: flex;
    width: 103%;
    gap: 20px;
}

.text-column2:nth-child(1) {
    flex: 1 1 auto; 
}

.text-column2:nth-child(2) {
    flex: 1 1 auto; 
}


.grid-3col {
    display: flex;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}


.grid-3col > * {
    flex: 1; 
    min-width: 0; 
}


.grid-3col img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.grid-item {
    flex: 1;
    display: flex;
    flex-direction: column; 
    align-items: center;  
    text-align: center; 
}
.wf-wrapper {
        display: flex;
        gap: 20px;
        align-items: flex-start;
        width: 100%;
     width: 77%;}
    
.wf-item {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .wf-image {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .wf-image img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
        display: block;
    }
    
    .wf-text {
       text-align: center;
    }
@media (min-width: 769px) {
   .wf-text {
        text-align: left; 
        margin-right: -20px; 
    }
   .wf-text140px {
    text-align: left; 
        margin-right: -20px; 
           width: calc(100% + 140px); 
}}

@media (max-width: 768px) {
    .img_block2 {
    width: 100%;   }
    
    .te_block {
        flex-direction: column;
        gap: 10px;
    }
    .te_block .text-column {
        width: 100%;
    }


.grid-3col {
 margin: 0px;
    flex-direction: column;
}

  .wf-wrapper {
        display: flex;
        flex-direction: column;
    }
    .wf-image img {
        width: 100%;
        height: auto;
    }
    .img_block30 {
    width: 60%;   }
}

.img_block img,
.te_block .text-column {
    flex: 1 1 0;
    min-width: 0;
    width: 100%; 
    height: auto;
}
.img_block2 img {
    flex: 5 1 0;  
    min-width: 0;
    width: 100%;
    height: auto;
}
.img_block,
.te_block {
    display: flex;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.img_block img {
    height: auto;
    max-width: 100%;
    display: block;
}
.img_block30{
    width: 30%;    
    height: auto;       
    display: block;       
    margin-left: 0;   
    margin-right: auto;  

}
.img_block40{
    width: 40%;    
    height: auto;       
    display: block;       
    margin-left: 0;   
    margin-right: auto;  

}
.img_block45{
    width: 45%;    
    height: auto;       
    display: block;       
    margin-left: 0;   
    margin-right: auto;  

}
.img_block50{
    width: calc(50% - 10px); 
    height: auto;       
    display: block;       
    margin-left: 0;  
    margin-right: 20px;  
}
.img_block80{
    width: 80%;
    margin-left: 0;
    margin-right: auto;
}
.img-row img {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  display: block;
}
.flex-containerW img {
    height: 100%;
    width: auto; 
    max-width: 100%; 
    flex: 0 1 auto;  
    min-width: 0;    
    
    object-fit: contain; 
}
.flex-containerW {
display: flex;
    gap: 10px;
    width: 100%;
    height: 100%; 
    align-items: flex-start; 
}

@media (max-width: 768px) {
.img_block80,.img_block50,.img_block45,.img_block,.text-column ,.img_block40,.wf-wrapper{
    width: 100%;     }

    .img_block30{
    width: 60%;  }
}


.text-column {
  margin-top: 0.5em !important;  }

  
/* PC：横並び */
@media (min-width: 768px) {
  .img-row img {
  }
}

/* SP：縦並び */
@media (max-width: 767px) {
  .img-row {
    flex-direction: column;
         padding-bottom: 0px;
        width: 100%;
        margin-left: 0; }
 .img_block45{
    margin-top: 0em;
}
}

/* ===== Worksセクション左右レイアウト ===== */
.works-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== 横並び配置 画像他===== */
.works-inner {
display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.works-text {
  flex: 1 1 50%;
  min-width: 280px;
}
.works-text-w{
font-weight: 800;
font-size: clamp(1rem, 0.5rem + 1.328vw, 1.5625rem);
}
.works-image {
    flex: 1 1 35%;
    margin-right: 5%;
    min-width: 200px;
}

.works-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.p3{
  margin-top: 3%;
  }
  .p5{
  margin-top: 5%;
  }
.p10{
  margin-top: 10%;
  }
  .p20{
  margin-top: 20%;
  }
    .p6_b{
  margin-bottom: 6%;
  }

  .p20_b{
  margin-bottom: 20%;
  }
   .p2em{
  margin-bottom: 2em;
  }
     .p1em{
  margin-bottom: 1em;
  }
  .l20{
  margin-left: 20px;  }
 @media (max-width: 768px) {
  
  .p60b{
    margin-bottom: 60px; } }
/* ===== 見出し＋小アイコン ===== */
.icon{    width: 27px;
}
  .icon-column{
    display: flex;
    align-items: center;
    gap: 20px;
   margin: 20px 0px 0px 0px;
font-size: 0.75rem; 
  }
.section-header.top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  text-align: center;
}
.section-header {
    display: flex;
    justify-content: flex-end;
    align-items: start;
    gap: 0.3rem;
    margin-bottom: 1.8rem;
    text-align: left;
    flex-direction: column;
        margin-top: 10em;
}
.section-header h2 {
    font-size: clamp(1.6rem, 1rem + 4vw, 5.625rem);
    font-weight: 900;
    color: #222;
    margin: 0;
    font-family: "Plus Jakarta Sans";
    -webkit-text-stroke: 1.5px currentColor;
    letter-spacing: 0.03em;
    line-height: 1; 
}

.section-icon {
width: clamp(24px, 1rem + 1.875vw, 40px);
  height: auto;
  animation: floatY 3s ease-in-out infinite;
  opacity: 0.85;
}


.works-text.c-card-group{
    flex: 1 1 50%;
    min-width: 280px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: right;
}
.c-card-group h3 {
    font-size: clamp(2.5rem, 1.5rem + 3.44vw, 4.25rem);
    font-weight: 600;
    color: #222;
    margin: 0;
}

.about-block {
    margin: 0.3em 0 0 0;
font-size: clamp(0.875rem, 0.589rem + 1.215vw, 1.5625rem);
    display: flex;
}
@media (max-width: 768px) {
  .about-block {
    margin: 0.5em 0 0 0;
    display: block;
}}
.small_t {
  font-size: 0.8em;
    padding: 0.5em 1em 0.4em 6.5em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 500;
    line-height: 2.5;
    margin-left: calc(var(--side-padding) * -1);
  }
/* ===== 文章装飾 ===== */

.blue-marker {
background: #afdeff;
    padding: 0.05em  1em 0.2em 4em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 700;
    line-height: 1.5;
font-size: clamp(1rem, 0.5rem + 1.328vw, 1.5625rem);
    margin-left: calc(var(--side-padding) * -1);
  }
.blue{background: #afdeff;
    }
.pink-marker {
    background: #f6afce;
    padding: 0.05em  1em 0.2em 4em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 700;
    line-height: 1.5;
font-size: clamp(1rem, 0.5rem + 1.328vw, 1.5625rem);
    margin-left: calc(var(--side-padding) * -1);
  }
 .pink {
    background: #f6afce;}

.green-marker {
    background: #9de1a5;
    padding: 0.05em  1em 0.2em 4em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 700;
    line-height: 1.5;
font-size: clamp(1rem, 0.5rem + 1.328vw, 1.5625rem);
    margin-left: calc(var(--side-padding) * -1);
  }
 .green {
    background: #9de1a5;}


.yellow-marker{
    background: #fcee68;
    padding: 0.05em  1em 0.2em 4em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    font-weight: 700;
    line-height: 1.5;
font-size: clamp(1rem, 0.5rem + 1.328vw, 1.5625rem);
    margin-left: calc(var(--side-padding) * -1);
  }
.yellow{
    background: #fcee68;}
.gray-marker{
    background: #dcdcdc;
    color: #000; 
    display: inline-block;
    min-width: clamp(30px, 10vw + 20px, 100px);
    text-align: end; 
       padding: 0.05em  1em 0.2em 4em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 1.5;
    margin-left: calc(var(--side-padding) * -1);
  margin-right: 0.5em;
      display: flex;
    align-items: center;
  }
.gray{
    background: #dcdcdc;}

.caption-title{
    font-weight: 600;
font-size: clamp(0.9375rem, 0.831rem + 0.453vw, 1.375rem);}

.caption-icon{
    color: #AFDEFE;
  margin-right: 0.3em;
vertical-align: middle;}


@media (max-width: 825px){
.blue-marker,.pink-marker,.green-marker,.yellow-marker, .gray-marker{
 padding: 0.05em 1em 0.2em var(--side-padding);
grid-template-columns: 1fr;
        display: grid;
      text-align: start;}
  
.gray-marker {
        margin-bottom: 0.5em;
}}

/* ===== アニメーション（ゆるく上下に浮く） ===== */
@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}


/* ===== スマホ表示 ===== */
@media (max-width: 768px) {



  /* トップへ戻るボタン */
  .to-top {
    right: 1.2rem;
    bottom: 1.5rem;
    width: 44px;
    height: 44px;
  }
  .to-top .arrow-up {
    width: 20px;
    height: 20px;
  }

  /* Worksセクション */
  .works-inner {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20%;
  }

  .works-text {
    flex: 1 1 100%;
    min-width: auto;
  }

  .works-image {
    flex: 1 1 100%;
    min-width: auto;
    margin-top: 1.5rem;
    margin: 0 auto;
   width: 80%;
  }

  /* ヘッダー・メニュー */
  .menu-toggle { display: flex; }

  /* お問い合わせフォーム */
  .contact-form {
    padding: 2rem 0;
  }


  .section-header {
        display: flex;
        justify-content: center;
        margin-top: 5em;
  }

  .works-image {
    margin-top: 1.5rem;
  }
}


.page-hero {
  width: 100%;
  height: 240px; 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.page-title {
  color: #fff;
  font-size: 2rem;
  text-align: center;
}

/* ローディング画面 */
/* スクロール防止 */
html.noscroll,
body.noscroll {
  overflow: hidden;
  height: 100vh;
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #003654;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}


/* ローダーを非表示にするクラス */
#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}

/* ===このページのみのロード画面=== */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  visibility: visible;
  transition: opacity .6s ease, visibility .6s ease;
}

/* ロゴを10%にする */
#loading-screen .loading-inner img {
  width: 10%;
  height: auto;
}
/* ロゴを中央に */
.loading-inner{
display: flex;
    justify-content: center;}
/* 消えるとき */
#loading-screen.hide {
  opacity: 0;
  visibility: hidden;
}

/* ロード中スクロール無効 */
body.loading-no-scroll {
  overflow: hidden;
  height: 100vh;
}
  .icon-row{
   display: flex;
    align-items: center;
    flex-direction: row;
    margin-right: 0.5em;
    gap: 1em; 
  }

@media screen and (max-width: 768px) {
  .icon-column {
display: flex;
        flex-direction: column;
        gap: 0.8em;
        align-items: flex-start;
        margin: 0px;
      margin: 0px;}
.icon.l20 {
     margin: 0px; }
  .icon-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
  }
}

/* NEWS */
.p-news-item {
  display: flex;
  gap: 20px; 
  padding: 30px 0;
 background-image: radial-gradient(circle, #000 0.8px, transparent 0.7px);
    background-size: 6px 2px;
    background-position: bottom;
    background-repeat: repeat-x;
}

.p-news-item__date {
  flex-basis: 80px;
  flex-shrink: 0;
    font-weight: 600;
    color: #000;
    font-size: clamp(0.875rem, 0.565rem + 1.326vw, 1.625rem);
    letter-spacing: 0.08em;
}

.p-news-item__content {
  flex: 1;
}

.p-news-item__title {
  margin: 0 0 8px 0; 
  font-size: 16px;
      font-weight: 600;
    color: #000;
    font-size: clamp(0.875rem, 0.565rem + 1.326vw, 1.625rem);
    letter-spacing: 0.08em;
}

.p-news-item__text {
  font-size: clamp(0.875rem, 0.668rem + 0.884vw, 1.375rem);
  color: #6c6e70;
  line-height: 1.6;
}
.p-news-item__text a {
    text-decoration: none; /* 標準の線を消す */
    color: inherit;
    border-bottom: 1px solid #6c6e70; 
    padding-bottom: 1px;   
    display: inline-block;  
}

@media screen and (max-width: 768px) {
.p-news-item__date {
    flex-basis: 50px;}
}