/* すべての要素に box-sizing を適用 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "helvetica neue", helvetica, arial, sans-serif;
  color: #333;
  line-height: 1.8;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

p {
  margin: 0;
  padding: 0;
}

/* 見出し */
h1 {
  font-size: 2em;
  font-weight: 100;
  margin: 0;
  padding: 0;
  font-family: "nitalago-ruika", sans-serif;
}

h2 {
  font-size: 1.8em;
  font-weight: 100;
  margin: 0 0 10px 0;
  padding: 0;
  font-family: "nitalago-ruika", sans-serif;
  line-height: 1.4;
}

h3 {
  font-size: 1.5em;
  font-weight: 100;
  margin: 0;
  padding: 0;
  font-family: "nitalago-ruika", sans-serif;
}

.text-bold {
  font-size: 1.1em;
  font-weight: bold;
}

.text-bold-red {
  font-weight: 100;
  font-size: 1.2em;
  color: red;
  font-family: "nitalago-ruika", sans-serif;
}

.badge {
  display: inline-block;
  padding: 0.2em 0.5em;
  font-size: 0.8em;
  color: #fff;
  background-color: red;
  border-radius: 0.2em;
  vertical-align: 2px;
}

#content-wrap {
  display: flex;
}

/* サイドバー（固定） */
#sidebar {
  width: 320px;
  padding: 20px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  background-color: #fff; /* 背景色必須（重なり防止） */
  box-shadow: 1px 1px 50px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

#site-name {
  font-size: 1.5em;
  font-weight: 100;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo {
  height: 40px;
  display: block;
}

#sidebar h2 {
  font-size: 1.2em;
  font-weight: 100;
  margin-bottom: 0px;
  margin-top: 60px;
}

#sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#sidebar ul li a {
  color: #999;
  text-decoration: none;
  transition: 0.3s;
}
#sidebar ul li a:hover {
  color: #000;
  transition: 0.3s;
}

#main-container {
  width: calc(100% - 320px);
  margin-left: 320px;
}

/* メインコンテンツ */
.main-content {
  padding: 60px;
}

.section {
  margin-bottom: 60px;
}

.videos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.video-item {
  width: calc(50% - 10px); /* gapの調整含む */
  border: 2px solid #333;
  border-radius: 10px;
  padding: 0;
}

.video-item h3 {
  font-size: 1.2em;
  font-weight: 100;
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px 8px 0 0;
}

.video-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 8px 8px;
}

.special-offer {
  border: 2px solid #ccc;
  padding: 20px;
  background: #fff;
  margin-top: 20px;
}

.present-list {
  font-size: 1.2em;
  font-weight: bold;
  list-style: none;
}

.download-list {
  padding-left: 0;
}
.present-list.download-list li {
  margin-bottom: 40px;
}

.coupon {
  font-size: 1.2em;
  font-weight: bold;
  list-style: none;
}

.copyable {
  background: yellow;
  padding: 5px 8px;
  cursor: pointer;
  user-select: all;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  transition: background 0.3s;
}

.copyable:hover {
  background: gold;
}

.copyable i {
  font-size: 0.9em;
  color: #555;
}

footer {
  padding: 20px;
  background-color: #f8f8f8;
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* モバイルヘッダー */
#mobile-header {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

.mobile-logo {
  font-family: "nitalago-ruika", sans-serif;
  font-size: 1.5em;
  font-weight: 100;
  display: flex;
  align-items: center;
  gap: 10px;
}

#menu-toggle {
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
}

/* モバイルメニュー */
#mobile-menu {
  display: none;
  background: #f9f9f9;
  padding: 10px 20px;
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu ul li a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #ddd;
}

/* 表示切り替え（JSで操作） */
#mobile-menu.active {
  display: block;
}

.download-button {
  display: inline-block;
  padding: 15px 25px;
  background-color: #ff5722;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
  background-color: #e64a19;
  text-decoration: none;
  color: #fff;
}

.download-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.download-grid .download-button {
  flex: 1 1 calc(50% - 15px);
  box-sizing: border-box;
  text-align: center;
}

.header-buttons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.header-buttons .download-button {
  flex: 1 1 calc(50% - 15px);
  text-align: center;
}

/* モバイル対応：サイドバーを非表示にする */
@media (max-width: 768px) {
  #sidebar {
    display: none;
  }
  #mobile-header {
    display: flex;
  }
  #sidebar {
    display: none;
  }

  #main-container {
    width: 100%;
    margin-left: 0;
  }

  .main-content {
    padding: 20px;
  }

  .video-item {
    width: 100%;
  }
}
