/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Header */
.header {
  background-color: #71664c;
  height: 60px;
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px 8px;
  height: 100%;
  justify-content: space-between;
}

.header-logo {
  width: 70px;
  object-fit: cover;
}

.header-brand {
  height: 18px;
  width: 135px;
  object-fit: cover;
}

.header-text {
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  color: white;
  letter-spacing: 1px;
  white-space: nowrap;
}

.header-text p{
  margin-bottom: 8px;
  font-size: 20px;
}

.header-subtext{
  font-size: 8px;
  font-family: 'Noto Sans JP sans-serif';
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-divider{
  background-color: white;
  height: 1px;
  width: 10px;
}

.empty-contents{
  width: 75px;
}

/* Hero Section */
.hero {
  width: 100%;
  background-color: #F4E6DA;
}

.hero-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  object-fit: cover;
  border: none;
  pointer-events: none; /* ユーザーがビデオと直接やり取りできないようにする */
}

/* Title Section */
.latest-tag{
  margin-top: 15px;
  width: 80px;
}

.title-section {
  padding: 6px 18px 0;
}


.concept-section {
  background: linear-gradient(to bottom, #f4e6da 0%, white 100%);
  padding: 0 18px;
}

.title-main {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #333;
  letter-spacing: 1px;
  line-height: 1.4;
  padding: 6px 0;
}

.title-box{
  display: flex; 
  flex-direction: column;
  align-items: center;
}

.introduction{
  margin-top: 45px;
}

.intro-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.profile-text{
  font-family: 'Shippori Mincho', serif;
  font-size: 13px;
  color: #4b5563;
  padding: 10px 10px;
  margin-top: 10px;
  border: solid 1px #e2d7ce;
}

.profile-name{
  font-size: 18px;
  line-height: 2;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-third,
.btn-tertiary,
.btn-line {
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 4px 20px;
  border-radius: 100px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform 0.2s;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-third:hover,
.btn-tertiary:hover,
.btn-line:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(179.204deg, #B89B5E 2.6478%, #6D582B 96.681%);
  color: white;
  font-size: 16px;
  height: 40px;
  width: 165px;
}

.btn-secondary {
  background: linear-gradient(to bottom, #b89b5e 1.389%, #907744 98.611%);
  color: white;
  font-size: 18px;
  height: 48px;
  width: 240px;
}

.btn-third{
  background: linear-gradient(to bottom, #b89b5e 1.389%, #907744 98.611%);
  color: white;
  font-size: 18px;
  height: 48px;
  width: 240px;
}

.btn-tertiary {
  background: linear-gradient(177.457deg, #87703E 7.8411%, #5C481D 80.011%);
  color: white;
  font-size: 18px;
  height: 48px;
  width: 240px;
}

.btn-line {
  background: linear-gradient(179.132deg, #11C654 4.4504%, #1E8C47 87.315%);
  color: white;
  font-size: 18px;
  height: 40px;
  width: 253px;
}

.btn-watch {
  gap: 14px;
}

.btn-small {
  gap: 4px;
}

.btn-space{
  margin-left: 50px;
  margin-bottom: 2px;
}

.btn-space02{
  margin-left: 15px;
}

.btn-space03{
  margin-left: 10px;
  margin-bottom: 2px;
}

.btn-space04{
  margin-bottom: 2px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-icon svg {
  display: block;
}

/* Profile Section */
.profile-section {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-icon img{
  width: 75px;
  height: 75px;
}

.intro-text-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-title {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 22px;
  color: #555;
  letter-spacing: 2px;
  text-align: center;
}

.intro-divider {
  width: 267px;
  height: 2px;
  background-color: #b89b5e;
}

.intro-subtitle {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 18px;
  color: #555;
  letter-spacing: 2px;
  text-align: center;
  line-height: 28px;
  margin-top: 6px;
}

.intro-description {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 15px;
  color: #4b5563;
  text-align: center;
  line-height: 2;
  margin: 24px 0 10px;
}

.intro-description p{
  margin-bottom: 15px;
}

/* Video List Section */
.video-list-section {
  background: linear-gradient(to bottom, #ffffff 5%, #fbf5ed 25%, #eed1b1 50%, #fffdfd 90%);
  padding: 80px 0;
  position: relative;
}

.video-list {
  max-width: 364px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 0 0px;
}

.movie-list{
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 0 10px;
}

.list-divider {
  width: 10%;
  height: 1px;
  background-color: #b89b5e;
}

.card-info{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Category */
.category{
  font-size: 14px;
  color: #87703e;
  height: 25px;
  background: #fdf9f2;
  border-radius: 3px;
  padding: 0 10px;
  border: 1px solid #87703e;
}

/* Video Card */
.video-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 2px;
  padding: 15px 15px 30px;
}

.video-thumbnail {
  width: 100%;
  margin-bottom: 5px;
}

.video-thumbnail img{
  width: 100%;
}

.video-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.video-text{
  text-align: left;
  width: 100%;
  height: 100px;
}

.video-date {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700;
  font-size: 11px;
  color: #b89b5e;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  border-bottom: 1px solid #b89b5e;
  padding-bottom: 1px;
  width: 80.22px;
  text-align: center;
  line-height: 16.5px;
}

.video-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #333;
  line-height: 29.25px;
  margin-top: 6px;
}

.video-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.video-buttons span{
  margin-bottom: 2px;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 80px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e5e7eb;
  background: white;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s;
}

.pagination-btn.active {
  background: #b89b5e;
  color: white;
  font-weight: 700;
}

.pagination-btn:hover:not(.active) {
  background: #f3f4f6;
}

/* Floating Button */
.floating-btn {
  position: fixed;
  bottom: 90px;
  right: 3%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #b89b5e;
  border: none;
  box-shadow: 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: transform 0.2s;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn svg {
  transform: rotate(-90deg);
}

/* Footer */
.footer {
  background-color: #e2d7ce;
  height: 230px;
  text-align: center;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
}

.footer-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 20px;
  color: #71664c;
  letter-spacing: 4px;
  text-align: center;
  line-height: 28px;
  margin-bottom: 8px;
}

.footer-logo{
  width: 120px;
  display: inline-block;
  margin-bottom: 30px;
}

/* Bottom Menu */
.bottom-menu {
  height: 52px;
  color: #71664c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.bottom-menu-link {
  font-family: 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 14px;
  color: #71664c;
  letter-spacing: 1.4px;
  text-decoration: underline;
  transition: opacity 0.2s;
}

.bottom-menu-link:hover {
  opacity: 0.8;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 331px;
  padding: 26px 0;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* Video Modal Specific Styles */
.modal-video {
  max-width: 90%;
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: black;
  border-radius: 8px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

@media (min-width: 769px) {
  .modal-video {
    max-width: 900px;
  }
}

@media (max-width: 390px) {
  .modal-video {
    max-width: 95%;
  }
  
.modal-close {
    top: -40px;
    width: 32px;
    height: 32px;
  }
}

/* LINE友だち追加モーダル Specific Styles */
.modal-line {
  max-width: 331px;
  width: 100%;
  padding: 0 0 24px;
  background: white;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  border-radius: 0;
  gap: 10px;
}

.line-modal-banner {
  background-color: #71664C;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  margin-left: -26px;
  margin-right: -26px;
  margin-bottom: 19px;
}

.line-modal-banner p {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: white;
  text-align: center;
  line-height: normal;
  margin: 0;
  white-space: nowrap;
}

.line-modal-description {
  font-family: 'Shippori Mincho', serif;
  font-weight: 400;
  font-size: 16px;
  color: black;
  text-align: center;
  line-height: 24px;
  margin: 0 0 19px 0;
  padding: 0 20px;
}

.btn-line-modal {
  background: linear-gradient(179.132deg, #11C654 4.4504%, #1E8C47 87.315%);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 4px 16px 4px 16px;
  height: 48px;
  width: 270px;
  border-radius: 100px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.1);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.2s;
  margin: 0;
}

/* LINE友だち追加モーダルの背景クリック対応 */
#lineModal.modal {
  cursor: pointer;
}

#lineModal .modal-content {
  cursor: default;
}

/* Fixed Bottom Navigation */
.fixed-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #71664c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 93px;
  padding: 8px 0;
  z-index: 50;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-item:hover {
  opacity: 0.8;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
}

.nav-icon svg {
  display: block;
}

.nav-label {
  font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: white;
  text-align: center;
  line-height: normal;
}

/* Add padding to main content to prevent overlap with fixed nav */
body {
  padding-bottom: 60px;
}

@media (min-width: 768px) {
  .tb-pc{
    display: none;
  }
}

@media (max-width: 1279px) {
.sp-only{
    display: none;
  }
}

@media (min-width: 769px) {
  body {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0;
  }

  .header{
    height: 80px;
  }

  .profile-section{
    justify-content: center;
  }

  .profile-text{
    width: 500px;
    font-size: 12px;
  }

  .intro-title{
    font-size: 24px;
  }

  .intro-divider{
    width: 300px;
  }

  .intro-subtitle {
    font-size: 20px;
  }

  .intro-description p {
    margin-bottom: 0px;
}

  .video-info{
    gap: 20px;
  }

  .movie-list {
  gap: 30px;
  margin-bottom: 0;
  }

  .list-divider {
  width: 3%;
  }

  .video-list{
    max-width: 100%;
    flex-direction: row;
    margin: 3% 10%;
    flex-wrap: wrap;
  }

  .video-list:has(.video-card:only-child) {
    justify-content: center;
  }

  .video-card{
    width: calc(50% - 18px);
  }

  .btn-secondary{
    font-size: 18px;
    width: 240px;
  }

  .btn-third{
    font-size: 18px;
    width: 240px;
  }

  .btn-tertiary{
    font-size: 18px;
    width: 240px;
  }

  .footer {
    height: 240px;
    padding-bottom: 60px;
}
}

@media (min-width: 1280px) {
  .pc-only{
    display: none;
  }

  .header-content {
    padding: 12px 60px 8px;
  }

  .header-logo {
    width: 100px;
  }

  .header-text p {
    font-size: 25px;
  }

  .header-subtext {
    font-size: 11px;
}

  .header-brand {
    height: 27px;
    width: 200px;
    object-fit: cover;
}

  .hero{
    display: flex;
    flex-direction:row-reverse;
    background: linear-gradient(to bottom, #f4e6da 0%, white 100%);
  }

  .introduction {
    margin-top: 30px;
  }

  .intro-description{
    text-align: left;
    margin: 8px 0 0;
  }

  .profile-section{
    justify-content: flex-start;
  }

  .profile-icon img {
    width: 90px;
    height: 90px;
  }

  .profile-text{
    width: 100%;
  }

  .title-section{
    text-align: left;
    padding: 0 30px 0 5%;
    width: 60%;
  }

  .title-main{
    font-size: 24px;
  }

  .title-box{
  display: block; 
  }

  .btn-primary, .btn-secondary, .btn-third, .btn-tertiary, .btn-line {
    justify-content: center;
  }

  .video-title {
    font-size: 24px;
    line-height: 1.4;
  }

  .video-buttons{
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
  }

  .btn{
  width: calc(50% - 5px);
  }

  .btn-secondary{
    font-size: 18px;
    width: calc(50% - 5px);
  }

  .btn-third{
    font-size: 18px;
    width: 100%;
  }

  .btn-tertiary{
    font-size: 18px;
    width: calc(50% - 5px);
  }

  .btn-space {
    margin-left: 0;
    margin-right: 10px;
  }

  .btn-space02 {
    margin-left: 0;
    margin-right: 10px;
  }
}