/* General Body Styles */
body {
  font-family: "M PLUS 1p", "Noto Sans JP", sans-serif;
  font-size: 18px;
  margin: 0;
  background-color: #fffefa;
  color: #353535;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
  width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Header */
.header {
  background-color: #f69ba0;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
    position: relative;
    top: 4px;
}

.logo img {
  height: 35px;
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.nav a {
  text-decoration: none;
  color: white;
  font-family: "Merriweather Sans", sans-serif;
  /* font-weight: bold; */
}

/* --- Hamburger Menu Styles --- */
.hamburger-menu {
  display: none; 
  cursor: pointer;
  padding: 5px;
  z-index: 1001; 
  transition: 0.4s;
}

.hamburger-line {
  display: block;
  width: 30px; 
  height: 3px; 
  background-color: #ffffff; 
  margin: 6px 0; 
  transition: 0.4s;
}

/* 「×」印へのアニメーション */
.hamburger-menu.is-active .hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger-menu.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom, #fff0cd, #f69ba0 52%);
  height: 770px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.hero-content {
  z-index: 2;
  padding: 0 20px;
}
.logo-large img {
  width: 500px;
  margin-bottom: 20px;
}
.subtitle {
  font-size: 40px;
  margin: 30px 0;
}

.hero-text {
  /* font-size: 15px; */
  line-height: 1;
}

.hero-bg-image {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 109px;
  background-image: url("4874b3878f487113963c84b8e582890f51b2c8cd.png");
  background-size: cover;
  background-position: center;
}

/* Main Visual Section */
.main-visual {
  height: 596px;
  width: 100%;
  /* max-width: 1060px; */
  margin: 0 auto;
}
.main-visual video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About Section */
.about {
  padding: 30px 20px;
  text-align: center;
  position: relative; 
  z-index: 1; 
  background-color: #fffefa; /* SVGのうねりがPNGで背景透過でない場合、ここで背景色を指定 */
  }

.about h2 {
  font-family: "Merriweather Sans", sans-serif;
  font-size: 40px;
  color: #e36e70;
  margin-bottom: 64px;
}

.about-text {
  /* font-size: 16px; */
  line-height: 1.625;
  max-width: 866px;
  margin: 0 auto;
  text-align: left;
}

/* --- うねりSVG用のスタイル --- */
.wave-divider {
  position: absolute; 
  bottom: 0;
  left: 0;
  width: 100%;
  height: 170px;
  line-height: 0; 
  z-index: 1; 
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 170px;
}

/* Productions Gallery */
.productions-gallery {
  /* background-color: #f6e6ea; */
  padding: 80px 0;
}
.productions-gallery .container {
  background-color: #fffefa;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.productions-gallery h2 {
  font-family: "Merriweather Sans", sans-serif;
  font-size: 40px;
  color: #e36e70;
  text-align: center;
  margin-bottom: 64px;
}
.productions-content {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: center;
}
.productions-image img {
  width: 490px;
  border-radius: 10px;
}
.productions-text {
  max-width: 490px;
  line-height: 1.5;
  letter-spacing: 0.1rem;
}

/* Collaboration Section */
.collaboration-section {
  padding: 90px 0;
  background: linear-gradient(
    135deg,
    rgba(255, 184, 197, 0.6) 0%,
    rgba(255, 202, 181, 0.4) 100%
  ),
    /* 2. カンマで区切り、下に敷く画像を指定 */ 
    url('./img/gradation.png');

  /* 画像とフォールバック色の設定 */
  background-size: cover; /* 画像をセクション全体に引き伸ばす */
  background-position: center; /* 画像の中央を表示 */
  background-color: #fffefa; /* 画像が読み込めない場合の背景色 */;
}
.collaboration-section h2 {
  font-family: "Merriweather Sans", sans-serif;
  font-size: 40px;
  color: #353535;
  text-align: center;
}
.collaboration-content {
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 20px;
}
.company-card {
  width: 480px;
  background: linear-gradient(
    to bottom,
    rgba(255, 254, 250, 0) 20%,
    #fffefa 63%
  );
  border-radius: 20px;
  padding: 25px;
  box-sizing: border-box;
}
.company-card a{
    color: #D9697D;
  }

.company-logo {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.company-logo img {
  max-width: 250px;
  max-height: 160px;
}
.company-card hr {
  border: 0;
  height: 2px;
  background-color: rgba(235, 201, 201, 0.5);
  margin: 10px 0 20px;
}
.company-card h3 {
  font-size: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.company-card h4{
    text-align: center;
    font-size: 0.85rem;
    margin: 0 auto;
}
.company-card p {
  font-size: 15px;
  line-height: 1.67;
  height: 180px;
}
.awards,
.works {
  margin-top: 20px;
}
.awards {
  display: flex;
  justify-content: space-evenly;
  /* grid-template-columns: 1fr 1fr; */
  gap: 16px;
}
.award-item {
  background-color: white;
  border-radius: 10px;
  padding: 17px;
}
.award-title {
  /* background-color: #dab8b8; */
  /* color: rgba(255, 255, 255, 0.6); */
  padding: 5px 0;
  text-align: center;
  /* border-radius: 4px; */
  /* margin-bottom: 8px; */
}
.award-item img{
  max-width: 175px;
  max-height: 135px;
}
.award-item p {
  font-size: 12px;
  text-align: center;
  color: #775d5d;
  margin: 0;
  height: auto;
}
.works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.works span {
  background-color: #fffefa;
  border-radius: 10px;
  padding: 9px;
  text-align: center;
  color: #fffefa;
  font-size: 12px;
  background-color: rgba(218, 184, 184, 0.93);
  height: 142px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.3;
}
.collaboration-icon {
  font-size: 180px;
  color: #c3a4a4;
  font-family: "Inter", sans-serif;
  font-weight: 100;
  align-self: center;
}

/* Motto Section */
.motto-section {
  background: radial-gradient(
      circle at center, 
      rgba(240, 185, 133, 0.5) 0%,
      transparent 70% /* 70%の位置で透明にする */
    ),
    #ff9799;
  padding: 128px 20px;
  text-align: center;
  color: white;
}
.motto-main {
  font-size: 36px;
  margin-bottom: 24px;
}
.motto-sub {
  font-family: "Merriweather Sans", sans-serif;
  font-size: 20px;
  opacity: 0.9;
}

/* Office Section */
.company-section {
  background-color: rgba(255, 250, 250, 0.67);
  padding: 60px 20px;
}
.company-container {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.company-info {
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.company-info h4 {
  font-family: "Merriweather Sans", sans-serif;
  font-size: 24px;
  color: #e36e70;
  margin-top: auto;
  margin-bottom: 8px;
}
.company-info p {
  font-size: 14px;
  line-height: 1;
}
.company-map {
  width: 474px;
  border-radius: 10px;
  overflow: hidden;
}

/* Footer */
.footer {
  background-color: #353535;
  color: white;
}
.footer-container {
  display: flex;
  justify-content: space-evenly;
  padding-bottom: 48px;
}
.footer h4 {
  font-size: 16px;
  margin-bottom: 16px;
}
.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  text-decoration: none;
}
.social-icons {
  display: flex;
  gap: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  padding: 33px 20px 20px;
}
.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}


/* Tablet Styles */
@media (max-width: 1060px) {
    .container {
        width: 100%;
        padding: 0 10px;
    }
    .productions-content,
    .collaboration-content,
    .company-container,
    .footer-container {
        flex-direction: column;
        align-items: center;
    }
    .wave-divider svg {
        width: 160%; /* うねりの高さの見え方を調整 */
        /* place-self: anchor-center; */
        margin-top: 11%;
  }
    .productions-text {
        margin-top: 20px;
    }
    .collaboration-icon {
        transform: rotate(90deg);
    }
    .company-info {
        width: 100%;
        max-width: 474px;
        margin-bottom: 30px;
    }
    .footer-container {
        gap: 40px;
    }
    .footer-links ul {
        align-items: center;
    }
    .main-visual {
      height: auto;
      margin: -5px 0;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    body{
      font-size: 15px;
    }

    .nav {
      /* デフォルトでは非表示（画面外で透明） */
      visibility: hidden;
      opacity: 0;
      transform: translateY(-20px); /* 少し上に見切れた状態から */
      transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s; /* アニメーションを設定 */
      
      /* レイアウトとスタイル */
      position: absolute;
      top: 100%; /* ヘッダーのすぐ下 */
      left: 0;
      width: 100%;
      background-color: #f69ba0; /* ヘッダーと同じ背景色 */
      padding: 10px 0;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav.is-active {
      display: block;
      visibility: visible;
      opacity: 1;
      transform: translateY(0); /* 元の位置（Y座標0）に移動 */
    }

    .nav ul {
      flex-direction: column; /* メニュー項目を縦並びにする */
      align-items: center; /* 中央揃え */
    }

    .hamburger-menu {
      display: block; /* 768px以下で表示 */
    }
    .hero {
        height: auto;
        padding: 100px 0;
    }
    .logo-large img {
        width: 80%;
    }
    .subtitle {
        font-size: 28px;
    }
    .hero-text {
        font-size: 1.1rem;
        line-height: 2;
    }
    h2 {
      font-size: 32px !important;
    }
    .main-visual video {
      height: 80vh;
    }
    .about, .productions-gallery, .collaboration-section, .company-section {
        padding: 60px 10px;
        margin-top: -5px;
    }
    .productions-image img,
    .company-card {
        width: 100%;
        max-width: 480px;
        /* padding: 15px; */
    }
    .awards {
    flex-direction: column;
  }
    .award-item {
      padding: 5px;
    }
    .works {
        grid-template-columns: 1fr 1fr;
    }
    .company-card p {
        height: auto;
        /* min-height: 120px; */
    }
    .motto-main {
        font-size: 24px;
    }
    .motto-sub {
        font-size: 16px;
    }
    .company-map, .company-map iframe {
        width: 100%;
        max-width: 474px;
    }
}

/* --- レスポンシブ改行クラス --- */

/* モバイル (768px以下) でのみ表示する改行 */
.br-sp {
  display: none; /* PCでは非表示 */
}
@media (max-width: 768px) {
  .br-sp {
    display: block; /* モバイルでは表示 (改行として機能) */
  }
}

/* PC (769px以上) でのみ表示する改行 */
.br-pc {
  display: block; /* PCでは表示 */
}
@media (max-width: 768px) {
  .br-pc {
    display: none; /* モバイルでは非表示 */
  }
}