/* ===== 全体リセット ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
}

html, body {
  height: 100%;
  font-family: "Hiragino Mincho ProN", serif;
  color: #340000;
  font-size: 16px; /* 基本本文サイズ */
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== サイドメニュー ===== */
.side-menu {
  display: block;
  position: fixed;
  top: 40%;
  right: 20px;
  transform: translateY(-50%);
}

.side-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-menu li {
  margin: 0 0 25px;
}

.side-menu li a {
  text-decoration: none;
  font-weight: bold;
  color: #340000;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.side-menu li a:hover {
  color: #fff;
  background-color: rgba(41,0,0,0.6);
  border-radius: 5px;
}

/* ===== ハンバーガー＆モバイルメニュー ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: #f8f8f8;
  box-shadow: -2px 0 5px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  padding-top: 60px;
  z-index: 1000;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 20px 0;
  text-align: center;
}

.mobile-menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
}

.mobile-menu.open {
  right: 0;
}

/* ===== Hero セクション ===== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 13%;
  background: url("images/uchino_6270000043.jpg") center/cover no-repeat;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

p {
  font-size: 1.2rem;
}

/* ===== フェードイン文字 ===== */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-10px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 線 ===== */
.line {
  width: 100%;
  height: 10px;
  background-image: url("images/line2.png");
  background-repeat: repeat-x;
  background-position: top;
  background-size: auto 10px;
  background-color: #f7f4e6;
  margin: 0;
}

/* ===== コンテンツ ===== */
.content {
  padding: 50px 13%;
  background-color: #f7f4e6;
}

.content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.content p {
  margin-bottom: 2rem;
}

.about {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.images-column {
  display: flex;
  flex-direction: column;
  gap: -10px;
  width: 400px;
}

.images-column img:nth-child(1) { width: 120px; height: 120px; }
.images-column img:nth-child(2) { width: 150px; height: 150px; }
.images-column img:nth-child(3) { width: 240px; height: 240px; }
.images-column img:nth-child(4) { width: 200px; height: 200px; }

.circle-img {
  border-radius: 50%;
  object-fit: cover;
}

.circle-img.left { align-self: flex-start; }
.circle-img.right { align-self: flex-end; }

.text-column {
  flex: 1;
  font-size: 1rem;
}

.images-port {
  width: 500px;
  height: 350px;
  object-fit: contain;
}

.pc-image-container {
  text-align: center;
  margin-bottom: 60px;
}

.banner-button {
  display: block;
  margin: 25px auto 0;
  text-align: center;
  width: max-content;
  padding: 14px 36px;
  background: linear-gradient(135deg, #ff7f50, #ff6347);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.banner-button:hover {
  background: linear-gradient(135deg, #ff6347, #ff4500);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* ===== トップへ戻るボタン ===== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: #340000;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover { background: #560000; }

/* ===== モバイル版 ===== */
@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.5; }

  /* heroセクション文字を上にあげる */
  .hero {
    justify-content: flex-start;
    padding-left: 5%;
    padding-top: 200px;
    padding-bottom: 0;
  }

  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }

  .about {
    flex-direction: column;
    gap: 20px;
  }

  .images-column {
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .images-column img { 
    width: 80%; height: auto;
  }

  .images-port {
    width: 100%;
    height: auto;
  }

  .content {
    padding: 30px 5%;
  }

  .side-menu { display: none; }

  .hamburger {
    display: flex;
    position: fixed;
    top: 20px;
    right: 20px;
  }

  #Portfolio .text-column p,
  #Portfolio2 .text-column p {
    font-size: 0.9rem;
  }

  #Portfolio .text-column b,
  #Portfolio .text-column strong,
  #Portfolio2 .text-column b,
  #Portfolio2 .text-column strong {
    font-size: 1rem;
  }
}