body {
  font-family: "Montserrat", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .8px;
  color: #333;
}
html, body {
  overflow-x: hidden;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #1ca9e3;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

ul,
li {
  list-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.section {
  padding: 80px 0;
}

.inner {
  max-width: 1340px;
  margin: 72px auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: normal;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 80px;
  letter-spacing: .05em;
  color: #333;
}
.subtitle {
  font-size: 28px;
  font-weight: normal;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 80px;
  letter-spacing: .05em;
  color: #333;
}

.lead {
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 2000;
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-top:10px;
  margin-right: 20px;
  letter-spacing: .05em;
}
.logo-Kanji{
  position: relative;
  top:10px;
  font-size: 1.4em;
}
.header-logo a {
  color: #333;
}

.header-nav-list {
  display: flex;
  justify-content: space-between;
}

.header-nav-item:not(:last-child) {
  margin-right: 20px;
}

.header-nav-item a {
  font-size: 14px;
  font-weight: bold;
  padding: 5px 0;
  letter-spacing: .05em;
  color: #333;
}

.header-nav-item a:hover {
  opacity: .8;
}

h1 img {
  width: 65px;
  vertical-align: middle;
  margin-right: 10px;
}
/*--------------------------------
 ハンバーガーメニュー
---------------------------------*/
/* ボタン */
.menu-btn {
  position: fixed;   
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1100;
  pointer-events: auto;  
}

/* 追加：テキストだけ絶対配置で下に出す */
.menu-btn__label {
  position: absolute;
  top: 30px;          /* ボタン本体より下に */
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 700;
  color: #333;
  letter-spacing: .05em;
  pointer-events: none;
}

/* 開いたときは白 */
.menu-btn.open .menu-btn__label {
  color: #fff;
}


/* 四角2つを少しずらして配置 */
.menu-btn .bar {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid #333;
  transition: transform .4s ease, opacity .4s ease;
}
.menu-btn .bar:first-child { top: 4px; left: 4px; }
.menu-btn .bar:last-child  { bottom: 4px; right: 4px; }

/* open状態でアニメ変形 */
.menu-btn.open .bar:first-child {
  transform: rotate(45deg) translate(2px,2px);
}
.menu-btn.open .bar:last-child {
  transform: rotate(-45deg) translate(2px,-2px);
}
/* open時は白に変化 */
.menu-btn.open .bar {
  border-color: #fff;   /* 枠線を白に */
}

/* ナビゲーション（オーバーレイ） */
.menu {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  background: rgba(0,0,0,.9);
  display: flex;
  justify-content: center;
  align-items: center; 
  pointer-events: none;  /* クリック無効化 */
  transform: translateX(100%);
  transition: transform .4s ease;
  z-index: 1000;
}
.menu.open { transform: translateX(0); 
  pointer-events: auto;  /* クリック有効化 */ 
}

.menu ul { list-style: none; text-align: center; }
.menu li { margin: 20px 0; }
.menu a {
  color: #fff;
  font-size: 22px;
  text-decoration: none;
}
.header-logo a,
.header-logo .logo-Kanji {
  color: #333;
  transition: color .5s ease;
}
.header.open .header-logo a,
.header.open .header-logo .logo-Kanji {
  color: #fff;
  font-weight:300;
}
.no-scroll {
  overflow: hidden;
  height: 100%;
}

/*--------------------------------
 スプリットスクリーン
---------------------------------*/
.split {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.split-body {
  width: 50%;
  padding-right: 3%;
  padding-left: 10%;
}

.split-img {
  width: 50%;
  height: 95vh;
  background-image: url("../img/back02.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.split-title {
  font-size: 42px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: .05em;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}


/*ホバーエフェクト*/
.works-img img {
  transform: scale(1);
  transition: .3s ease-in-out;
}
.works-img:hover img {
  transform: scale(1.1);
}


.works-name {
  font-size: 15px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 13px;
}

/*--------------------------------
 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: 3px;
}

.video {
  


}
section .inner{
  
}
.video video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 40px auto;
}

/*--------------------------------
 スライダー
---------------------------------*/
div#contact img {
  width: 400px;
  height: auto;

}

div#contact {
  margin: 48px auto;
  max-width: 1260px;

}


/*--------------------------------
 profile
---------------------------------*/
.profile {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem;
}
.profile{
background-image: url("../img/mypfbg.jpg");
background-size: cover;
background-repeat: no-repeat; 
background-position: top center;
color: white;
 filter: grayscale(80%); 
}


@media screen and (min-width: 768px) {
  .profile {
    background: none;
    color: #000; /* 黒文字 */
  }

  .profile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background:
      linear-gradient(to right, #fff 0%, #fff 40%, rgba(255,255,255,0) 70%),
      url("../img/mypfbg.jpg") right center/auto 100% no-repeat;
    z-index: -1;
  }
}













/*--------------------------------
 Contact
---------------------------------*/
.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}
/* Contact Form */
.contact-form{
  max-width: 720px;
  margin: 32px 0 0;
  backdrop-filter: blur(2px);
}
.contact p,
.contact-form {
  margin-left: auto;
  margin-right: auto;
  text-align: left;      /* ラベルや入力は左揃えのまま */
  max-width: 720px;      /* 中央に収める幅 */
}
.contact-form .form-field{
  margin-bottom: 18px;
}

.contact-form label{
  display: block;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: 6px;
  color: #333;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  color: #333;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: #1ca9e3;
  box-shadow: 0 0 0 3px rgba(28,169,227,.12);
}

.contact-form .hp{ display:none !important; }

.btn-submit{
  display: block;
  margin:0 auto;
  text-align: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #1ca9e3, #6ed6ff);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, opacity .25s ease;
}
.btn-submit:hover{ transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.btn-submit:active{ transform: translateY(0); }

.form-msg{
  margin-top: 12px;
  min-height: 1.4em;
  color: #1ca9e3;
  font-weight: 700;
}
 .note {
  font-size: 0.85em;
  color: #e60033;  /* 赤字 */
  margin-bottom: 12px;
}

/* ダーク背景（timeline等）の中でも読みやすいように継承調整 */
.sec .contact-form label,
.sec .contact-form input,
.sec .contact-form textarea{ color: inherit; }
.sec .contact-form input,
.sec .contact-form textarea{ background:#fff; }

@media (max-width: 767px){
  .btn-submit{ width: 35%; text-align: center; }
}
@media (max-width: 400px){
  .btn-submit{ width: 80%; text-align: center;
  margin:0 auto; 
  display:block; }
 
}

/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #f3f3f3;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}


.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*--------------------------------
 下層:Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 20px;
  text-align: center;
}

.article-img {
  margin-bottom: 20px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-info-title {
  font-size: 15px;
}

.article-body img {
  margin-bottom: 30px;
}

.article-body p {
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}
/* 最初は透明＋下に少しずらす */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

/* 表示時のスタイル */
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
.slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-left.show {
  opacity: 1;
  transform: translateX(0);
}
/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 13px;
    line-height: 1.7;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 40px;
  }

  /* レイアウト */
  .section {
    padding: 60px 0;
  }

  .inner {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header-inner {
    padding: 0 20px;
  }

  .header-logo {
    font-size: 16px;
  }

  .header-nav-item:not(:last-child) {
    margin-right: 10px;
  }

  .header-nav-item a {
    font-size: 11px;
  }

  /* スプリットスクリーン */
  .split {
    flex-direction: column-reverse;
  }

  .split-body {
    width: 100%;
    padding-right: 3%;
    padding-left: 8%;
  }

  .split-img {
    width: 100%;
    height: 67vh;
    margin-bottom: 20px;
    background-image: url("../img/名称未設定-2.png");
  }

  .split-title {
    font-size: 32px;
  }

  /* Works */
  .works-name {
    font-size: 10px;
  }

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }
}


/* ギャラリー */


.gallery{
columns: 4;/*段組みの数*/
padding:0 15px;/*ギャラリー左右に余白をつける*/
}

.gallery li {
    margin-bottom: 20px;/*各画像下に余白をつける*/
}

/*ギャラリー内のイメージは横幅100%にする*/

 .gallery img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/*　横幅900px以下の段組み設定　*/
@media only screen and (max-width: 900px) {
  .gallery{
  columns:3;
  } 
}

@media only screen and (max-width: 768px) {
  .gallery{
  columns: 2;
  } 
}


/*========= レイアウトのためのCSS ===============*/

.gallery ul{
  margin:0;
  padding: 0;
  list-style: none;
}

.gallery a{
  color: #333;
}

.gallerya:hover,
.gallerya:active{
  text-decoration: none;
}



/*画像を出現させるアニメーションCSS*/

.flipLeft{
animation-name: flipLeft;
animation-duration:0.5s;
animation-fill-mode:forwards;
perspective-origin: left center;
opacity: 0;
}

@keyframes flipLeft{
  from {
   transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
  opacity: 0;
  }

  to {
  transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
  opacity: 1;
  }
}
/* ===== Section Theme Switch (section-scoped) ===== */
/* 各 .sec セクション自身だけ色を変える */
.sec{
  --sec-bg: transparent;
  --sec-fg: inherit;
  background: var(--sec-bg);
  color: var(--sec-fg);
  transition: background-color .6s ease, color .35s ease;
}

/* セクション内のテキスト/見出しも継承 */
.sec .title,
.sec .lead,
.sec .works-name,
.sec .works-info,
.sec a { color: inherit; }

@media (prefers-reduced-motion: reduce){
  .sec{ transition: none; }
}




