@charset "utf-8";

/*------------------------------
 共通設定
------------------------------*/
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #333;
}

a {
  text-decoration: none;
  color: #333;
}
a:hover {
  color: #ddd;
}

.txtCenter {
  text-align: center;
}

.resp_align {
  text-align: center;
}

@media (max-width: 600px) {
  .resp_align {
    text-align: left;
  }
}

.mt40 { margin-top: 40px; }
.mt80 { margin-top: 80px; }
.mb40 { margin-bottom: 40px; }


/* フェードイン/アウトの基本設定 */
body.fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.fade-in {
  opacity: 1;
}

/* クリック時のフェードアウト */
body.fade-out {
  opacity: 0;
}

body.visible {
  opacity: 1;
}

/*------------------------------
 ハンバーガーメニュー
------------------------------*/

/* ナビバー全体 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  box-sizing: border-box;
  z-index: 1200;
}

/* ロゴテキスト */
.navbar .logo-text {
  color: #fff;
  font-weight: bold;
  font-size: 1.4rem;
  user-select: none;
}

/* ハンバーガーボタン */
.nav-toggle {
  width: 35px;
  height: 30px;
  cursor: pointer;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 1300;
}

.nav-toggle span {
  display: block;
  height: 4px;
  background-color: #fff; /* 白い線に */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) {
  width: 100%;
}
.nav-toggle span:nth-child(2) {
  width: 80%;
}
.nav-toggle span:nth-child(3) {
  width: 60%;
}

/* 開いたときの×アニメ */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(13px) rotate(45deg);
  width: 100%;
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-13px) rotate(-45deg);
  width: 100%;
}

/* メニューオーバーレイ（全画面） */
.nav-menu {
  position: fixed;
  top: 56px; /* ナビバーの下から */
  left: 0;
  width: 100vw;
  height: calc(100vh - 56px);
  background-color: rgba(255, 255, 255, 0.95);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  z-index: 1100;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  text-align: center;
}

/* 表示状態 */
.nav-menu.show {
  display: flex;
}

/* メニューリンク */
.nav-menu a {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-menu a:hover {
  color: #555;
}

/* スクロール禁止 */
body.menu-open {
  overflow: hidden;
}


/*------------------------------
 トップへ戻る
------------------------------*/

#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 20px;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
#back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/*------------------------------
 パスワード保護
------------------------------*/

.auth-wrap {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.auth-wrap h2 {
    font-weight: 700;
    font-size: 16px;
    border: none;
    margin: 20px auto;
}
.auth-wrap input {
  padding: 10px;
  width: 80%;
}
.auth-wrap button {
  margin-top: 12px;
  padding: 10px 20px;
}


/*------------------------------
 トップページ（ロゴ＋ボタン中央配置）
------------------------------*/
.wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
}

.logo img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

.btn_wrap {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 80px;
}

.btn {
  padding: 12px 28px;
  font-size: 16px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.btn:hover {
  background-color: #555;
}


/*------------------------------
 下層ページ共通
------------------------------*/

h1, h2 {
  text-align: center;
  color: #222;
}

h1 {
  font-size: 36px;
  color: #222;
  text-align: center;
  font-weight: bold;
  margin: 40px 0 24px;
}

h2 {
  position: relative;
  font-size: 24px;
  color: #222;
  padding-bottom: 8px;
  margin: 0 auto 40px;
  border-bottom: 3px solid #7a6651;
  width: fit-content; 
  text-align: center;
}


/*------------------------------
 プロフィール
------------------------------*/

.profile_wrap {
    margin: 80px auto;
    text-align: center;
}
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: left;
}

@media (max-width: 600px) {
  .container {
      max-width: 98%;
      margin: 40px auto;
      padding: 40px 40px;
      background: #fff;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.05);
      text-align: left;
  }
}

/*------------------------------
 ポートフォリオページ全体
------------------------------*/
#portfolio-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px;
}

/*------------------------------
 Webサイト制作セクション
------------------------------*/
.works {
  margin-top: 60px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.work-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 16px;
}

.work-image {
  flex: 1 1 280px;
}
.work-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
}

.work-info {
  flex: 2 1 400px;
}
.work-info h3 {
  margin-top: 0;
  font-size: 20px;
  color: #333;
}
.work-info p {
  margin: 8px 0;
  font-size: 14px;
  color: #555;
}
.site-link {
  font-size: 13px;
  color: #888;
  margin-top: 20px;
  padding-top: 20px;
  display: block;
}

@media (max-width: 600px) {
  .work-info {
    display: block !important;
  }

}

/*------------------------------
 バナー制作セクション
------------------------------*/
.bnr-section {
  margin-top: 40px;
}
.bnr_list {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}
.bnr_list img {
   width: 100%;
  height: auto;
  display: block;
}
.bnr_list li {
  flex: 1;
}
/*------------------------------
 コーディング実績セクション
------------------------------*/
@media (max-width: 600px) {
  .coding-txt {
    width: 95%;
    margin: 0 auto 40px;
  }
}
.works-data {
  margin: 0 15px 10px;
   padding: 16px 40px 32px;
  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

@media (max-width: 600px) {
  .works-data {
    padding: 16px 30px 32px;
  }
}

.work-desc h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}
.work-desc p {
  font-size: 15px;
  margin: 6px 0;
  color: #444;
}

.coding-section {
  background-color: #dcdcdc;
  padding: 60px 0;
}

.coding-section .section-inner {
  max-width: 960px;
  margin: 0 auto;
}


/*------------------------------
 映像制作セクション
------------------------------*/
.movie-section {
  background-color: #888888;
  padding-top: 60px;
  padding-bottom: 100px;
}
.movie-section p img {
  width: 175px;
}