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

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;
}

.container {
  max-width: 1000px;
  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: #333;
}

.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;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #333;
}

.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;
}
.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: #333;
}

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

/* =======================
   MV（メインビジュアル）
   ======================= */

/* MV全体の背景色（柔らかいトーン） */
.mv {
  background: var(--bg-soft);
  padding: 72px 0; /* 上下の余白をつけてセクション感を出す */
  margin-bottom: 40px; /* 数字は調整可：40〜60 推奨 */
}

/* 2カラムレイアウト */
.mv-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

/* 左側テキスト */
.mv{
  background: var(--bg-soft);
  padding: 72px 0;
}

/* 見出し（任意） */
.mv-head{ text-align:center; margin-bottom: 20px; }
.mv-head .eyebrow{
  letter-spacing:.14em; color: var(--accent); font-weight:700; font-size:14px;
  margin-bottom: 6px;
}

/* 画像＋CTAの重ね合わせ */
.mv-hero{
  position: relative;
  max-width: min(1100px, 92vw); /* 画像は中央・四方に余白 */
  margin: 0 auto;               /* 中央寄せ */
  
}
.mv-hero img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 右上オーバーレイのCTAボタン */
/* MV CTAボタン位置を下寄りに変更 */
.mv .cta{
  position: absolute;
  bottom: clamp(14px, 2.2vw, 28px); /* ← 上からではなく下に配置 */
  right: clamp(14px, 2.2vw, 28px);
  padding: 12px 22px;
  border-radius: 999px;
  background: #e53935; /* ← 赤に変更（少し落ち着いた赤） */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.mv .cta:hover{
  transform: translateY(-2px);
  opacity: .92;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* スマホでは画像の下に回す（重なり防止） */
@media (max-width: 560px){
  .mv .cta{
    position: static;
    display: inline-block;
    margin: 12px auto 0 ;
    margin-bottom: 12px;
  }
  .mv-hero{ text-align: center; }
}


/* ===== ABOUT ===== */
/* ===== MVとABOUTの間に余白を作る ===== */
.mv + .about.section {
  margin-top: 100px;  /* 100〜160で調整OK */
}

/* 2カラム：左は最小/最大を固定してブレ防止 */
.about .about-grid{
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr; /* 左: 240〜360pxで安定 */
  gap: 40px;
  align-items: start;
}

/* 左：プロフィール画像（figureの既定marginを無効化＆左上固定） */
.about .profile-img{
  margin: 0;
  max-width: 260px;       /* 320〜380で好みに調整OK */
  width: 100%;
  place-self: start;      /* 左上に固定（“左下ズレ”防止） */
}
.about .profile-img img{
  display: block;         /* 画像下の隙間防止 */
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* 右：名前→本文→SNSの縦ライン */
.about .profile-body{
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}
.about .profile-body .name{
  font-weight: 700;
  font-size: 20px;
  margin: 0;
}

/* SNSボタン */
.socials{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.social-btn{
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.social-btn:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* ===== ABOUT：スマホ（1カラム） ===== */
@media (max-width: 900px){

  /* MVと重ならない余白（上だけ調整） */
  .mv + .about.section {
    margin-top: 160px;
  }

  /* レイアウト → 1カラム中央寄せ */
  .about .about-grid{
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* 画像 */
  .about .profile-img{
    max-width: 80%;
    margin: 0 auto;
  }

  /* 本文揃え（縦ラインを詰めすぎない程度に維持） */
  .about .profile-body{
    padding-top: 0;
  }

  /* SNSアイコン中央寄せ */
  .socials{
    justify-content: center;
  }
  
  #about {
  margin-top: 400px !important;
}
}

/* ===== WORKS===== */

/* ===== WORKS===== */

/* セクション見出しのサブ */
.title .sub{
  display:block;
  font-size:20px;
  color: #ddd;
  margin-top:6px;
  letter-spacing:.06em;
}

/* セクション間の共通余白（ABOUT→WORKS含む） */
.section + .section{
  margin-top: clamp(80px, 8vw, 140px);
}

/* グリッド：PC3 / タブ2 / SP1 */
.works-list{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* カード（ミニマル枠＋薄影、ホバーで上品に浮く） */
.works-item{
  display: block;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.works-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  border-color: #ddd;
}

/* メディア：4:5でトリミング、画像のみズーム（③=2の指定） */
.works-item .card-media{
  aspect-ratio: 4 / 5;       /* ここで比率固定 */
  overflow: hidden;
  background: #f7f7f7;
  position: relative;
}
.works-item .card-media img{
  width:100%; 
  height:100%; 
  object-fit: cover; 
  display:block;
  transition: transform .6s ease;/* ふわっと */
  will-change: transform;
}

.works-item:hover .card-media img{
  transform: scale(1.03);/* 1.03〜1.06で好みに調整 */
}

/* 本文 */
.works-item .card-body{
  padding: 16px 18px 18px;
}
.works-item .card-title{
  margin: 2px 0 8px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}

/* タグ（A=極細線・小さめ、上品） */
.card-tags{
  display:flex; flex-wrap:wrap; gap: 6px 8px; margin-bottom: 8px;
}
.tag{
  display:inline-block;
  padding: 3px 8px;
  font-size: 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  letter-spacing:.02em;
  background: transparent;
  color: inherit;
}

/* スキル行（B） */
.card-skills{
  margin: 0;
  font-size: 12px;
  color: #6b6b6b; /* ポートフォリオの既存トーンを踏襲 */
}

/* レスポンシブ */
@media (max-width: 900px){
  .works-list{ grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 560px){
  .works-list{ grid-template-columns: 1fr; gap: 18px; }
}


/*--------------------------------
 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;
}

/*--------------------------------
 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;
}

.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 img {
  width: 100%;
  height: auto;
}

.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;
}

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

.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: 0 20px;
  }

  .mv-title {
    font-size: 30px;
  }
  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  /* 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;
  }

  .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;
  }

  .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;
  }
}
