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

.side_title {
    margin-bottom: -5px;  /*background-color: rgba(115,132,150,0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); */
}

aside .side_title img {
  width: 100%;
  height: auto;
}

body {
  font-family: 'M PLUS 1p', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #3e3a39;
  background-color: #e3e4e3;
}

header {
  position: relative;
  background-color: #F5F5F5;
  /*color: white;*/
  /*padding: 1rem;*/
  overflow: hidden;
  max-width: 100vw;
  /* モバイル用の幅 */
  margin: 0 auto;
  /* 中央揃え */
  /*   -webkit-box-shadow: 0px 10px 10px 10px rgba(0,0,0,0.30);
/*    box-shadow: 10px 0px 10px rgba(0,0,0,0.30);
	*/
}

footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.video-container {
  width: 100%;
  position: relative;
  padding-top: 56.25%;
  /* 16:9アスペクト比 */
}

.header-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 1240px;
  max-width: 100vw;
  background: transparent;
  z-index: 100;
  transition: all 0.3s ease;
}

/* スクロール時の縮小固定 */
.header-container.scrolled {
  transform: translateX(-50%) scale(0.85);
  transform-origin: top right;
  /* 右上起点に変更 */
}

/* ハンバーガーメニューの新しいスタイル */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 15px;
  margin-right: 20px;
  transition: all 0.3s;
  outline: none;
  z-index: 1000;
  /* メニュー上に表示 */
}

.hamburger-box {
  width: 35px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  width: 35px;
  height: 4px;
  background-color: #000;
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner::before,
.hamburger-inner::after {
  width: 35px;
  height: 4px;
  background-color: #000;
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
  content: "";
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

/* ハンバーガーメニューのアニメーションスタイル */
.hamburger.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

nav ul {
  display: flex;
  list-style: none;
  background-color: rgba(255, 255, 255, 0.5);
  /* PC版メニューの背景色 */
}

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  color: #3e3a39;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #ddd;
}

.container {
  max-width: 1248px;
  width: 100vw;
  /* モバイル用の幅 */
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  background-color: #f5f5f5;
  /*    box-shadow: 10px 0px 10px rgba(0,0,0,0.30);
	*/
}

main {
  flex: 2;
  min-width: 0;
  background-color: #f5f5f5;
  /*padding-right: 2rem;*/
}

a {
  text-decoration: underline;
  color: #000000;
}

#email::placeholder {
  color: #999;
  /* 薄いグレー */
  font-style: italic;
  /* イタリック体にする */
}

#message::placeholder {
  color: #999;
  /* 薄いグレー */
  font-style: italic;
  /* イタリック体にする */
}

aside {
  flex: 0.7;
  min-width: 200px;
  padding: 0 1rem;
  background-color: #f5f5f5;
  /*padding: 1rem;*/
  border-radius: 5px;
}

.content-img {
  justify-content: center;
}

.category-cards .category-card p {
  font-family: "M PLUS 1p";
  font-size: 16px;
  margin-left: 0px;
  margin-right: 0px;
}

.content-img img {
  display: block;
  object-fit: cover;
  width: 100%;
}

.card {
  background-color: f5f5f5;
  border-radius: 0px;
  padding-right: 0.5rem;
  padding-left: 1.0rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
/*  border-bottom: 2px dotted #3e4e3d;*/
}

h1,
h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #585757;
    font-weight: 400;
    font-family: "M PLUS 1p";
    line-height: 1.3em;
}

h3 {
  margin-bottom: 1rem;
  color: #585757;
  font-family: "M PLUS 1p";
  font-weight: 500;
}

.wrap.block .block h3 {
  padding-top: 10px;
  text-align: left;
}

.wrap.block .block p {
  color: #3E3A39;
  padding-top: 1rem;
  /* [disabled]margin-top: 15px; */
  text-align: right;
}

p {
  /* [disabled]margin-bottom: 1rem; */
}

.wrap {
  display: flex;
}

.block {
  justify-content: space-between;
}

/* コンテンツ切り替え用のスタイル */
.content-section {
  display: none;
}

.wrap .block p {
  color: #3E3A39;
  padding-top: 0px;
  margin-top: 15px;
}

.content-section.active {
  display: block;
}

.menu-link {
  position: relative;
}

.menu-link.active {
  font-weight: bold;
}

.menu-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
}

/* カテゴリーリストのスタイル */
.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 0.5rem;
}

.category-link {
  color: #3e3a39;
  text-decoration: none;
  padding: 0.3rem 0;
  display: block;
  transition: all 0.3s ease;
}

.category-link:hover {
  color: #3e3a39;
  padding-left: 0.5rem;
}

.category-link.active {
  font-weight: bold;
  color: #2d4374;
  padding-left: 0.5rem;
  border-left: 3px solid #4a6ea9;
}

/* カテゴリーコンテンツのスタイル */
.category-section {
  display: none;
}

.wrap .block p {
  color: #3E3A39;
  padding-top: 0px;
  margin-top: 15px;
}

.category-section.active {
  display: block;
}

/* カテゴリーカードのスタイル */
.category-cards {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 1rem;
    margin-top: -8px;
    top: -5px;
}

.category-card ul li  {
  background-color: white;
  border-radius: 0;
  box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.1);
  /*padding: 1rem;*/
  cursor: pointer;
  /*transition: all 0.3s ease;
    border-left: 3px solid transparent;*/
  height: auto;
}

/*.category-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}*/
.category-card img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/*.category-card.active {
    border-left: 3px solid #4a6ea9;
    background-color: #f9f9f9;
}*/
.category-card h4 {
  margin-top: 0.5em;
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 0.5rem;
  padding-top: 0 1rem;
  /* [disabled]padding-bottom: 0.5rem; */
  padding-left: 0.5em;
  padding-right: 1.0rem;
  color: #585757;
  font-family: "M PLUS 1p";
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5em;
}

.category-card p {
  font-size: 0.9rem;
  margin: 0;
  padding-top: 0 1rem;
  padding-bottom: 0em;
  padding-left: 1em;
  padding-right: 1.0rem;
  color: #3e3a39;
  margin-bottom: 1em;
}

.mobile-nav-header {
  display: none;
  /* デフォルトでは非表示 */
}

.readmore .readmore-content a {
  color: #0022FF;
  text-decoration: underline;
}

/* メールフォーム*/
.form-container {
  width: 60%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.input-row {
  width: 100%;
  margin-bottom: 5px;
  display: flex;
}

.message-row {
  width: 100%;
  display: flex;
}

input[type="email"] {
  width: calc(100% - 40px);
  /* submitボタンの幅(40px)分を引く */
  height: 30px;
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  background: linear-gradient(to bottom, #f5f5f5, #ffffff);
  transition: all 0.3s ease;
}

/* メール欄の右側に空白を作る */
.email-spacer {
  width: 85px;
  /* submitボタンと同じ幅 */
}

textarea {
  height: 30px;
  padding: 5px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
  background: linear-gradient(to bottom, #f5f5f5, #ffffff);
  transition: all 0.3s ease;
  resize: none;
  flex: 1;
  border-right: none;
  overflow: hidden;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 8px rgba(74, 144, 226, 0.6);
}

.submit-button {
  height: 30px;
  width: 80px;
  padding: 0;
  margin: 0;
  background: none;
  border: 1px solid #ccc;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.submit-button img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.submit-button:hover img {
  transform: scale(1.1);
}

.submit-button:active {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  transform: translateY(1px);
}

.author {
  text-align: right;
  right: 0px;
  margin-top: -20px;
}

.content-section ul li {
  border-bottom: 2px dotted #3e4e3d;
  padding-bottom: 30px;
}

ul li {
  margin-bottom: 30px;
  list-style: none;
}

ul li .title2 {
  margin-top: -20px;
}

ul li .letter {}

.category-card ul {
  margin-bottom: -0px;
}

.category-card ul li {
  margin-bottom: 0px;
}
footer p a {
    color: rgba(255,255,255,1.00);
}
article-item {
  border-bottom: 2px dotted #3e4e3d;
  padding-bottom: 30px;
}

/* レスポンシブデザイン */
/* PC Menu - Fixed at top center */
@media (min-width: 769px) {

  .video-container video {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .main-content {
    margin: 0 auto;
    box-shadow: 10px 0px 10px rgba(0, 0, 0, 0.30);
    width: 1248px;
  }

  /* Create a fixed navigation wrapper */
  header::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1248px;
    height: 50px;
    /* Adjust based on your menu height */
    background-color: rgba(250, 249, 245, 0.9);
    /* Semi-transparent background */
    z-index: 99;
  }

  /* Keep the header in the normal flow for scrolling content */
  header {
    position: relative;
    max-width: 1248px;
    margin: 0 auto;
  }

  /* Position the navigation fixed at the top */
  header nav {
    position: fixed;
    top: 0px;
    /* Adjust for vertical positioning */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1248px;
    z-index: 100;
    display: flex;
    justify-content: center;
  }

  nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    background-color: transparent;
  }

  nav ul li {
    margin: 0 5px;
    /* Adjusted spacing between menu items */
  }

  /* Style for menu item links with images */
  nav ul li a {
    display: block;
    width: 150px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: none;
    /* Remove color transition */
    font-size: 0;
    /* Hide text content */
    color: transparent;
  }

  /* Example of how to set different background images for each menu item 
     Replace these URLs with your actual image paths */
  nav ul li:nth-child(1) a {
    background-image: url('../images/menu_topic.png');
  }

  nav ul li:nth-child(2) a {
    background-image: url('../images/menu_learn.png');
  }

  nav ul li:nth-child(3) a {
    background-image: url('../images/menu_lifestyle.png');
  }

  nav ul li:nth-child(4) a {
    background-image: url('../images/menu_local.png');
  }

  nav ul li:nth-child(5) a {
    background-image: url('../images/menu_money.png');
  }

  nav ul li:nth-child(6) a {
    background-image: url('../images/menu_nft.png');
  }

  /* Hover state for menu items */
  nav ul li:nth-child(1) a:hover {
    background-image: url('../images/menu_topic_hover.png');
  }

  nav ul li:nth-child(2) a:hover {
    background-image: url('../images/menu_learn_hover.png');
  }

  nav ul li:nth-child(3) a:hover {
    background-image: url('../images/menu_lifestyle_hover.png');
  }

  nav ul li:nth-child(4) a:hover {
    background-image: url('../images/menu_local_hover.png');
  }

  nav ul li:nth-child(5) a:hover {
    background-image: url('../images/menu_money_hover.png');
  }

  nav ul li:nth-child(6) a:hover {
    background-image: url('../images/menu_nft_hover.png');
  }

  /* Active state for menu items */
  nav ul li a.active,
  nav ul li a.menu-link.active {
    background-image: url('../images/menu_topic_on.png');
  }

  nav ul li:nth-child(2) a.active,
  nav ul li:nth-child(2) a.menu-link.active {
    background-image: url('../images/menu_learn_on.png');
  }

  nav ul li:nth-child(3) a.active,
  nav ul li:nth-child(3) a.menu-link.active {
    background-image: url('../images/menu_lifestyle_on.png');
  }

  nav ul li:nth-child(4) a.active,
  nav ul li:nth-child(4) a.menu-link.active {
    background-image: url('../images/menu_local_on.png');
  }

  nav ul li:nth-child(5) a.active,
  nav ul li:nth-child(5) a.menu-link.active {
    background-image: url('../images/menu_money_on.png');
  }

  nav ul li:nth-child(6) a.active,
  nav ul li:nth-child(6) a.menu-link.active {
    background-image: url('../images/menu_nft_on.png');
  }

  /* Override the active menu underline effect */
  .menu-link.active::after {
    display: none;
  }

  /* Ensure space at the top of content for the fixed menu */
  header .container {
    padding-top: 70px;
    /* Match height of fixed nav */
  }

  /* Ensure video container maintains correct width */
  .video-container {
    max-width: 1248px;
    margin: 0 auto;
  }

  .nft {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {

  .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mobile-white-square {
    position: absolute;
    top: 9px;
    right: 15px;
    width: 40px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 500;
  }

  .hamburger {
    display: block;
  }

  header .container {
    width: 100%;
  }

  aside {
    padding: 0rem;
    background-color: #f5f5f5;
    border-radius: 5px;
  }

  h1,
  h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #585757;
    font-weight: 400;
    font-family: "M PLUS 1p";
    font-size: 1.3em;
    line-height: 1.5em;
  }


  h3 {
    margin-bottom: 1rem;
    color: #585757;
    font-family: "M PLUS 1p";
    font-weight: 500;
  }

  .content-img {
    padding: 0rem;
  }

  .card {
    background-color: f5f5f5;
    border-radius: 0px;
    padding-right: 0rem;
    padding-left: 0rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .content-img img {
    display: block;
    height: auto;
    max-width: 100%;
  }

  .category-img img {
    display: block;
    height: auto;
    object-fit: cover;
    max-width: 100%;
    /*	height: 150px;*/
  }

  /* メニュー開閉のアニメーション */
  nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateY(-20px);
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);

    display: flex;
    flex-direction: column;
    /* 縦方向に並べる */
    align-items: center;
    /* 水平方向中央揃え */
  }

  .mobile-nav-header {
    display: none;
    width: 100%;
    padding: 0px 0;
    background-color: #fff;
    justify-content: center;
    align-items: center;
  }

  nav.open .mobile-nav-header {
    display: flex;
  }

  .mobile-nav-header img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
  }

  .mobile-nav-header {
    position: relative;
    width: 120%;
    /* アイテムの幅を100%に */
    text-align: center;
    padding-bottom: 20px;
    /* テキストとボーダーラインの間隔 */
  }

  .mobile-nav-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* リストアイテムの幅全体 */
    height: 1px;
    /* ボーダーラインの太さ */
    background-color: #3e3a39;
    /* ボーダーラインの色 */
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: 30%;
    /* これにより、リストを下に押し下げる */
  }

  nav.open {
    max-height: 100vh;
    /* 十分な高さ */
    opacity: 1;
    transform: translateY(0);
    padding: 1rem;
  }

  /* メニュー項目のアニメーション */
  nav ul li {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    transition-delay: 0.05s;
    margin: 1rem 0;
    /* 間隔を調整 */
    width: 100%;
    /* 幅を100%に */
  }

  nav.open ul li {
    opacity: 1;
    transform: translateY(0);
  }

  /* 連続するリスト項目に遅延を追加 */
  nav.open ul li:nth-child(1) {
    transition-delay: 0.1s;
  }

  nav.open ul li:nth-child(2) {
    transition-delay: 0.15s;
  }

  nav.open ul li:nth-child(3) {
    transition-delay: 0.2s;
  }

  nav.open ul li:nth-child(4) {
    transition-delay: 0.25s;
  }

  nav.open ul li:nth-child(5) {
    transition-delay: 0.3s;
  }

  nav.open ul li:nth-child(6) {
    transition-delay: 0.35s;
  }

  nav.open ul li:nth-child(7) {
    transition-delay: 0.4s;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
    /* リスト自体も中央揃え */
    text-align: center;
    /* テキストも中央揃え */
    width: 100%;
    /* 幅を100%に */
  }

  nav ul li {
    position: relative;
    width: 60%;
    /* リストアイテムの幅を100%に */
    text-align: center;
    padding-bottom: 10px;
    /* テキストとボーダーラインの間隔 */
  }

  nav ul li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* リストアイテムの幅全体 */
    height: 1px;
    /* ボーダーラインの太さ */
    background-color: #3e3a39;
    /* ボーダーラインの色 */
  }

  /* メールフォーム*/
  /* form width */
  .form-container {
    width: 100%;
  }

  /* メール欄の右側に空白を作る */
  .email-spacer {
    width: 90px;
    /* submitボタンと同じ幅 */
  }

  /*メールフォームここまで:*/

  .button-group {
    text-align: center;
    /* ボタンを中央に配置 */
  }

  main,
  aside {
    flex: 100%;
    padding-right: 0;
  }

  .btn {
    display: flex;
    justify-content: center;
  }

  .btns {
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
    padding: 6px 25px;
    color: #ffd500;
    font-weight: bold;
    letter-spacing: 0.5pt;
    text-decoration: none;
    background-color: #ffffff;
    border: 2px solid #ffd500;
    cursor: pointer;
    transition-duration: 0.3s;
    -webkit-transition-duration: 0.3s;
    -moz-transition-duration: 0.3s;
    -o-transition-duration: 0.3s;
    -ms-transition-duration: 0.3s;
  }

  .btns:hover {
    color: #ffffff;
    background-color: #ffd500;
  }

  main {
    margin-bottom: 1.5rem;
  }

  .category-cards {
    display: grid;
    grid-template-columns: repeat(1fr);
    gap: 30px;
    margin-bottom: 20px;
  }

  .category-card {
    height: 100%;
  }

  .nft {
    display: flex;
    justify-content: center;
  }

  .nft img {
    width: 90%;
  }
}
