body {
  /* font-family: "Montserrat","Helvetica Neue",Arial,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif; */
  font-size: 15px;
  letter-spacing: .05em;
  color: #616161;
}

body{
  font-family: maru-maru-gothic-clr-stdn, sans-serif;
  font-style: normal;
  font-weight: 400;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #33A6BB;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

/* PC・共通のビデオ設定 */
.works-item video {
  width: 100%;
  height: 260px;     /* PCのグレーの枠（他の画像）と同じくらいの高さに固定 */
  object-fit: cover; /* 枠の中に動画を綺麗にフィットさせる（引き伸ばし防止） */
  background-color: #e9ecf2;
}



.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section {
  padding: 68px 0;
}

.section:nth-of-type(odd) {
  background-color: #fffbf4;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #554236;
  font-family: "expo-serif-pro" , serif;
  font-style: normal;
  /* font-weight: 300; */
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0,0,0,.1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px 10px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
  font-family: "expo-serif-pro" , serif;
  /* font-style: normal; */
  /* font-weight: 300; */
}

.header-logo img{
    max-width: 35%;
}


.header-logo a {
  /* color: #333; */
  color: #554236;
}
.header-logo a:hover {
  color: #ddcd77;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  /* color: #333; */
  color: #554236;
  font-family: "expo-serif-pro" , serif;
  /* font-style: normal; */
  /* font-weight: 300; */
}
.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #DC9FB4;
  /* background-color: #ffc85b; */
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 77vh;
  text-align: center;
  background-image: url(../img/background.jpg);
}

.mv-container {
  padding: 0 40px;
}

.mv-title {
  font-size: 55px;
  /* font-weight: bold; */
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: .1em;
  /* font-family: "lemonde-journal", serif; */
  /* font-family: "turnip-re", serif; */
  /* font-family: "los-feliz", serif; */
  font-family: "expo-serif-pro" , serif;
  font-style: normal;
  font-weight: 300;
  color: #554236;
}
.mv-subtitle {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 15px;
  margin-top: 30px;
  letter-spacing: .08em;
  font-family: "expo-serif-pro" , serif;
  font-style: normal;
  font-weight: 700;
  color: #f45e34;
}
.mv-subsubtitle {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 40px;
  margin-top: 15px;
  letter-spacing: .08em;
  font-family: "expo-serif-pro" , serif;
  font-style: normal;
  font-weight: 300;
  color: #f45e34;
}
.mv-text {
  font-size: 16px;
  line-height: 1.8;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #616161;

/* width: 400px; */
/*ボックスの幅*/
/* height: auto; */
/*ボックスの高さ*/
overflow: hidden; /*画像拡大時にはみ出た部分を隠す*/
}

.works-item img {
  /* width: 100%; */
  /*画像の幅*/
  /* height: auto; */
  /*画像の高さ*/

  object-fit: cover;

  transition-duration: 0.5s; 
  /*変化の時間*/
  
}

.works-item:hover img {
  transform: scale(1.05,1.05); /*画像の拡大*/
  cursor: pointer; /*カーソルをポインターにする*/
}

/* 270行目〜：他の要素を崩さず、動画の周りにだけグレーの枠を出す設定 */
.works-item video {
  width: 100%;        /* 枠の横幅いっぱいに広げる */
  height: 232px;      /* 他の画像と全体の高さを揃える */
  object-fit: cover;  /* 動画の比率を保ったまま綺麗に収める */
  
  /* ★ここがポイントです */
  padding: 12px;      /* 内側に余白を作って、動画を少し内側に押し込める */
  background-color: #e9ecf2; /* 内側に空いた隙間をグレーで染める */
  box-sizing: border-box;    /* 余白を232pxの高さの中に含める */
  
  display: block;     /* エラー（警告）回避 */
  transition-duration: 0.5s;
}

.works-item:hover video {
  transform: scale(1.05,1.05); /*画像の拡大*/
  cursor: pointer; /*カーソルをポインターにする*/
}

video{
  background-color: #e9ecf2;
}

.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

.works_logo{
  margin-top: 40px;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 About
---------------------------------*/
.service {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 100px;
  margin-top: 80px;
}
.service-img {
  width: 20%;
  margin: 70px 50px;
  border-radius: 50%;
}
.service-img img {
  border-radius: 50%;
}
.service-body {
  flex: 1;
}

.service-body p {
  font-size: 15px;
  line-height: 1.8;
}

.service-body p:not(:last-child) {
  margin-bottom: 30px;
}

p.profile-txt{
  font-size: 20px;
  font-weight: 500;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
  margin-bottom: 50px;
}
.profile-img {
  width: 20%;
  margin: 60px 50px;
  border-radius: 50%;
}
.profile-img img {
  border-radius: 50%;
}
.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/* 「事業内容」の親要素 */
p.profile-txt.underline-trigger {
  font-size: 20px;
  font-weight: 500;
  position: relative;
  /*display: inline-block;  必須：これがないと線が右端まで突き抜けます */
  max-width: 600px; /* 例えば400pxなど、好きな長さで止めることができます */
  margin-bottom: 15px !important; /* 余白を少し詰める */
  padding-bottom: 5px; /* 線との距離を確保 */
}

/* 下線の土台 */
p.profile-txt.underline-trigger::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;      /* 一番下に配置 */
  width: 0;       /* 最初は0 */
  height: 1px;
  background: #727171;
  transition: width 1.2s ease; /* 少しゆっくり（1.2秒）伸びるように変更 */
}

/* 実行された時 */
p.profile-txt.underline-trigger.active::after {
  width: 100%;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}
/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

  
/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
  color: #554236;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

h3.works-heading {
    padding:0.2em 1em;
    border-bottom: 7px solid #fbdac8;
    background-color: #ffffff;
    color: #3d3535;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
  margin-left: auto;
}

 p.works-list{
  font-size: 18px;
  margin-top: 50px;
 }

.home-link {
  text-align: center;
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */
  .mv {
    height: 40vh;
  }

  .mv-container {
     padding: 70 50px;
  }

  .mv-title {
    font-size: 30px;
    padding-top: 40px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-top: 10px;
  }

  .mv-text {
    font-size: 14px;
    line-height: 1.7;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .works-item img{
    width: 100%;
    height:auto;
  }

/* 672行目付近のメディアクエリ内 */
.works-item video {
  width: 100%;       
  height: 111px;     /* スマホの他の画像と高さを合わせる */
  object-fit: cover; 
  padding: 8px;      /* スマホ用のグレー枠の太さ */
  background-color: #e9ecf2; /* スマホでも内側にグレーを敷く */
  box-sizing: border-box;
}

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: block;
  }
  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
    margin-top: 30px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

h3.works-heading {
    padding:0 .4em .2em;
    border-bottom: 3px solid #fbdac8;
    background-color: #ffffff;
    color: #333333;
}

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}
