/* /////////////
 全体 
///////////// */
/* 検証用  */
/* * {
  outline: 1px solid;
} */

* {
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* overflow: hidden; */
  font-family: sans-serif;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

.column {
  width: 50%;
  overflow: hidden;
  position: relative;
}

.section {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 2em;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.7s ease;
}

/* ナビゲーション */
.nav {
  position: fixed;
  top: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
  z-index: 100;
}

.nav button {
  margin: 5px 0;
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1em;
  border-radius: 4px;
}

.nav button.active,
.left1-bg-image {
  background-color: rgba(255, 255, 255, 0.8);
  color: black;
}

/* /////////////
 1P
///////////// */
.left1-bg-image {
  background-image: url(img/left-portfolio-bg.jpg);
  background-size: cover;
  background-position: center;
}

.right1-bg-image {
  background-image: url(img/right-portfolio-bg.jpg);
  background-size: cover;
  background-position: center;
  display: block;
}

.lefttitle {
  font-size: 128px;
  color: white;
  text-align: left;
  text-shadow: 7px 7px 5px rgba(0, 0, 0, 0.3);
}

.righttitle {
  text-align: left;
  font-size: 128px;
  color: white;
  position: absolute;
  top: 267px;
  text-shadow: 7px 7px 5px rgba(0, 0, 0, 0.3);
}

.right1-bg-image img{
  position: relative;
  top: 750px;
  left: 680px;
}

/* /////////////
 2P
///////////// */
.left2 img {
  max-width: 80%;
}

.left2 {
  display: flex;
  flex-direction: column;
}

.name-jp {
  display: block;
  font-size: 36px;
  text-align: center;
  margin-top: 42px;
  text-shadow: 2px 7px 7px #000000;
}

.name-en {
  font-size: 32px;
  text-shadow: 2px 7px 7px #000000;
}

.content {
  width: 413px;
  font-size: 19px;
}

.content p {
  line-height: 2rem;
  color: rgba(74, 70, 70, 1);
}

.date {
  text-align: right;
  margin-top: 2em;
  font-style: italic;
}

/* /////////////
 3P
///////////// */
.left3 .image-img,
.right3 .image-img {
  display: inline-block;
  margin: 15px;
  cursor: pointer;
  transition: transform 0.2s;
}

.left3 img:hover,
.right3 img:hover {
  transform: scale(1.05);
}

.image-box {
  display: flex;
  flex-direction: column;
  width: 300px;
  margin: 0 auto;
  align-items: center;
}

.pop {
  position: relative;
  right: 55px;
}

.page {
  display: flex;
  width: 100%;
  height: 100vh;
}

.mobile-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-section {
  width: 100%;
}

@media screen and (max-width: 767px) {

  /* 横並び → 縦並びに */
  .container {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  /* 左右カラムを縦に並べる */
  .column {
    width: 100%;
    height: auto;
    overflow: visible;
    position: relative;
  }

  /* 各セクションを普通に並べる（絶対配置解除） */
  .section {
    position: relative;
    transform: none !important;
    transition: none;
  }

  /* 文字サイズ調整 */
  .lefttitle,
  .righttitle {
    font-size: 48px;
    text-align: center;
    position: relative;
    top: auto;
  }

  /* ナビゲーション非表示（スクロールで見られるため） */
  .nav {
    display: none;
  }

  /* 画像サイズを自動調整 */
  img {
    height: auto;
  }

  body {
    overflow: auto;
  }

  .left3,
  .right1-bg-image {
    display: none;
  }

  .left3-dummy{
    display: block;
    padding-top: 100px;
  }
}

/* ///////////////////
 ボタン
///////////////// */
.header {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #88d4db;
  padding: 10px 20px;
  z-index: 1000;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
  font-weight: bold;
  font-size: 18px;
  color: #fff;
}

/* === ハンバーガーアイコン === */
.menu-btn {
  width: 30px;
  height: 22px;
  position: relative;
  cursor: pointer;
  z-index: 1100;
}

.menu-btn span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  left: 0;
  transition: 0.3s;
}

.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 9px; }
.menu-btn span:nth-child(3) { top: 18px; }

/* === メニュー全体 === */
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #88d4db;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /* 初期状態：上に隠れて透明 */
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 2000;
}

/* === メニュー内リンク === */
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}

.menu li {
  margin: 15px 0;
}

.menu a {
  text-decoration: none;
  color: #fff;
  font-size: 22px;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.menu a:hover {
  color: #EC6D6D; /* お好みのアクセントカラー */
}

/* === 開いた状態 === */
.menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* === 背景の暗幕 === */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease;
  z-index: 1000;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* === ハンバーガーアイコン変形（×） === */
.menu-btn.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* === スマホ表示でのみ表示 === */
@media screen and (max-width: 767px) {
  .header {
    display: flex;
  }

  .container {
    margin-top: 70px; /* ヘッダー分の余白 */
    flex-direction: column;
  }

  .column {
    width: 100%;
  }
}
