/*--------------------------------
 基本
---------------------------------*/
body {
    font-family: 'Josefin Sans', 'Zen Kaku Gothic New', sans-serif;
    font-size: 15px;
    letter-spacing: .05em;
    color: #3E2226;
  }
  
  a {
    transition: opacity .3s;
    text-decoration: none;
    color: #1ca9e3;
  }
  
  img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border-style: none;
  }
  
  /*--------------------------------
   レスポンシブ表示
  ---------------------------------*/
  .pc-only {
    display: block;
  }
  
  .sp-only {
    display: none;
  }
  
  /*--------------------------------
   レイアウト
  ---------------------------------*/
  .wrapper {
    padding-top: 73px;
  }
  
  .section {
    padding: 90px 0;
  }
  
  .section:nth-of-type(odd) {
    background-color: #fff;
  }
  
  .container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 40px;
  }
  
  /*--------------------------------
   余白ユーティリティ
  ---------------------------------*/
  .u-mt-10 { margin-top: 10px; }
  .u-mt-20 { margin-top: 20px; }
  .u-mt-30 { margin-top: 30px; }
  .u-mb-10 { margin-bottom: 10px; }
  .u-mb-20 { margin-bottom: 20px; }
  .u-mb-30 { margin-bottom: 30px; }
  
  /*--------------------------------
   見出し
  ---------------------------------*/
  .title {
    font-size: 34px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: .05em;
    color: #3E2226;
  }
  
  .lead {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
  }
  
  /*--------------------------------
   ヘッダー
  ---------------------------------*/
  .header {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
    background-color: #fff;
  }
  
  .header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
  }
  
  .header-logo {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.2;
    margin-right: 20px;
    letter-spacing: .05em;
  }
  
  .header-logo a { color: #3E2226; }
  
  .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: normal;
    display: inline-block;
    padding: 5px 0;
    transition: .3s;
    letter-spacing: .05em;
    color: #3E2226;
  }
  .gnav-item a:after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    content: "";
    transition: .3s;
    transform: translateX(-50%);
    background-color: #3E2226;
  }
  .gnav-item a:hover:after { width: 100%; }
  
 /* MVレイアウト */
.mv{
    background:#F4ECE9;
  }
  
  .mv-inner{
    max-width:1340px;
    margin:0 auto;
    padding:0 15vw;
    height:85vh;
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  
  .mv-text-area{
    flex:1;
  }
  
  .mv-title{
    font-size:30px;
    font-weight:bold;
    margin-bottom:5px;
  }
  
  .mv-subtitle{
    font-size:15px;
    font-weight:normal;
  }
  
/* スライダー上下中央 */
.mv-slider{
    width:400px;
    display:flex;
    align-items:center;
  }
  
  /* 高さを確保する */
  .mv-slider-list{
    position:relative;
    width:100%;
    aspect-ratio: 8 / 5;
  }
  
  /* 黒い丸を消す */
  .mv-slider-list,
  .mv-slider-list li{
    list-style:none;
    padding:0;
    margin:0;
  }
  
  .mv-slider-list{
    position:relative;
    width:100%;
  }
  
  .mv-slider-list li{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    display:none;
  }
  
  .mv-slider-list li:first-child{
    display:block;
  }
  
  .mv-slider img{
    width:100%;
    border:1px solid #e6e6e6;
  }
  
  /* SP */
  @media screen and (max-width:767px){
  
    .mv-inner{
      flex-direction:column;
      height:auto;
      padding:40px 20px;
    }
  
    .mv-text-area{
      margin-bottom:20px;
      text-align:center;
    }
  
    .mv-slider{
      width:100%;
      justify-content:center;
    }
  
    .mv-title{font-size:30px;}
    .mv-subtitle{font-size:16px;}
  }
  
  
  /*--------------------------------
   Works
  ---------------------------------*/
  .works-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: -40px;
  }
  
  .works-item {
    width: 31.74603%;
    margin-right: 1.58730%;
    margin-bottom: 40px;
    color: #3E2226;
  }
  .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; }
  
    /*--------------------------------
      About
    --------------------------------*/
    .about { background-color: #F4ECE9; }
    
    .profile {
      display: flex;
      flex-wrap: wrap;
      max-width: 800px;
      margin: 0 auto;
    }
    
    .profile-img {
      width: 20%;
      margin-right: 30px;
      border-radius: 50%;
    }
    
    .profile-img img { border-radius: 50%; }
    
    .profile-body { flex: 1; }
    .profile-body p {
      font-size: 15px;
      line-height: 1.8;
      margin-bottom: 30px;
    }
    .profile-body p:last-child { margin-bottom: 0; }
    
    /*--------------------------------
      Contact
    --------------------------------*/
    .contact { text-align: center; }
    .contact-item:not(:last-child) { margin-right: 10px; }
    .contact-text { margin-top: 10px; }
    
  
  /*--------------------------------
   下層：Worksページ
  ---------------------------------*/
  .article {
    padding: 80px 0;
    background-color: #F4ECE9;
  }
  .article-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  .article-title {
    font-size: 28px; /* 小さめに調整 */
    margin-bottom: 30px;
    text-align: center;
  }
  
  .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: #3E2226;
  }
  
  .article-body p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
  }
  
  .article-body p.u-mb-0 { margin-bottom: 0; }
  
  .article-body p.article-note {
    text-align: right;
    color: #3E2226;
    font-size: 12px;
  }
  
  /*--------------------------------
   デザインについての区切り線
  ---------------------------------*/
  .article-body h4.design-item {
    position: relative;
    font-size: 16px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3E2226;
  }
  
  .article-body ul {
    margin-left: 20px;
    margin-bottom: 30px;
  }
  
  .article-body img {
    margin: 20px 0;
    border-radius: 4px;
  }
  
  /*--------------------------------
   コンテナ：中央揃え＋上下余白
  ---------------------------------*/
  .btn-container {
    text-align: center;
    margin: 2em 0;
  }
  .arrow-link-underline {
    --arrow-color: #333;
    position: relative;
    display: inline-block;
    padding: 0 2em .4em .5em;
    color: var(--arrow-color);
    text-decoration: none;
    font-weight: bold;
  }
  .arrow-link-underline:hover { color: var(--arrow-color); }
  .arrow-link-underline::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 10px;
    border-bottom: 1.5px solid var(--arrow-color); 
    border-right: 1.5px solid var(--arrow-color);
    transform: skewX(50deg);
    transition: left .3s ease;
  }
  .arrow-link-underline:hover::before { left: 10%; }
  
  /*--------------------------------
   ページトップ
  ---------------------------------*/
  .page-top {
    font-weight: bold;
    padding: 10px;
    cursor: pointer;
    text-align: center;
    background-color: #3E2226;
  }
  .page-top .material-icons-outlined { color: #fff; vertical-align: bottom; }
  
  /*--------------------------------
   フッター
  ---------------------------------*/
  .footer {
    padding: 30px;
    background-color: #3E2226;
  }
  .copyright {
    font-size: 10px;
    text-align: center;
    color: #797979;
  }
  
  /*--------------------------------
   Media Queries
  ---------------------------------*/
  @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: 55vh; padding: 20px 10px;}
    .mv-container { padding: 0 20px; }
    .mv-title { font-size: 20px; }
    .mv-subtitle { font-size: 12px; margin-bottom: 20px; }
    .mv-text { font-size: 14px; line-height: 1.7; }
  
    .works-item { flex: 0 0 48%; margin-right: 0; margin-bottom: 30px; }
    .works-item:nth-child(odd) { margin-right: 10px; }
    .skill-item { width: 100%; margin-bottom: 35px; }
  
    .article { padding: 50px 0; }
    .article-title { font-size: 24px; }
    .article-body h3 { font-size: 16px; padding-left: .8em; }
    .article-body h4.design-item { font-size: 14px; margin-top: 30px; margin-bottom: 10px; }
    .article-body p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }

    .contact .g_foam {width: 100%;}

    .profile {
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
    }
    .profile-img {
        width: 70%;
        border-radius: 50%;
        margin: 10px 0;
    }
  }
  /* タブレットのみ（768px〜1024px）に適用 */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* ここにタブレット専用のスタイルを記述 */
    .mv-inner {
        padding: 0 7vw;
        height: 40vh;
    }
    .mv-title {
        font-size: 24px;
    }
    .mv-subtitle {
        font-size: 13px;
    }
  }
  