@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&display=swap");

* {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  /* Dev */
  /*outline: 1px solid #FF0000; /* デバッグ用アウトライン */
}

body {
  background-color: #f3f3f3;

  margin: 50px auto;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  background-color: #212121;
  display: flex;
  align-items: center;
  padding: 10px;
  z-index: 5000; /* ヘッダーを前面に固定 */
}

.btn_ATS {
  color: white;
  text-decoration: none; /*リンクの下線を消すやつ*/
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.menu-toggle {
  font-size: 1.5em;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none; /* デフォルトでは非表示 */
  margin-left: auto; /* 右寄せ */
}

.nav-menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: white;
}

.mobile-footer {
  display: none;
}

.main_content_for_infopage {
  display: none;
}

/* 画面幅が768px以下になったらメニューを隠し、ハンバーガーを表示 */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px; /* 右端に配置 */
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #333;
  }

  .nav-menu ul {
    flex-direction: column;
    text-align: center;
    padding: 0;
  }

  .nav-menu a {
    display: block;
    padding: 10px;
    color: white;
  }

  .nav-menu.show {
    display: flex;
  }

  .bottom-nav {
    display: flex !important;
  }

  .sidebar-fixed {
    display: none !important;
  }
  .sidebar-list {
    display: none;
  }
  .main-content {
    margin-left: 0 !important;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 0 0 0;
  }
  .youkoso {
    display: none !important;
  }
  #editBtn,
  #shareBtn,
  #homeBtn,
  #otherBtn {
    display: inline-block !important;
    background: #fff;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 1rem;
    color: #333;
    text-decoration: none;
  }
  .mobile-footer {
    display: block;
    margin-top: 32px;
    margin-bottom: 0;
  }

  .main_content_for_infopage {
    display: block !important;
    width: 85%;
    margin: 20px auto; /* 中央配置 */
    padding: 20px;
    background-color: #ffffff; /* 背景色 */
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .container {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .profile-section {
    width: 80% !important;
    box-shadow: none !important;
  }
}

/*下部メニュー*/
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  background-color: transparent;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 10px 25px;
  z-index: 5000;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
}

.bottom-nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.bottom-nav a:hover {
  transform: scale(1.1);
}

.bottom-nav i {
  font-size: 15px;
}

.bottom-nav span {
  font-size: 10px;
  margin-top: 4px;
}

/* 初期状態ではbottom-navを非表示にする */
.bottom-nav {
  display: none;
}

/* サイドバー */
.sidebar {
  position: fixed;
  top: 30px;
  right: -300px;
  width: 250px;
  height: 100vh; /* Changed to viewport height */
  background-color: rgba(255, 255, 255, 0.1); /* 半透明の背景を追加 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 1px solid rgba(0, 0, 0, 0.3);
  transition: right 0.4s ease;
  z-index: 2000;
  padding: 80px 20px 20px;
  box-sizing: border-box; /* Added for better padding and height management */
}

.sidebar.active {
  right: 0;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 18px;
  color: #333;
}
.sidebar ul li a {
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 18px;
  color: #000000;
  text-decoration: none;
}

/* --- サイドバー --- */
.main-layout {
  display: flex;
  min-height: 100vh;
  background: #f3f3f3;
}

.sidebar-fixed {
  width: 220px;
  background: #e6e6e6;
  padding: 32px 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-shadow: 1px 0 8px rgba(0, 0, 0, 0.03);
  position: fixed;
  left: 0;
  top: 60;
  z-index: 10;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
}
.sidebar-logo-icon {
  font-size: 2rem;
  margin-right: 8px;
}
.sidebar-logo-text {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
}
.sidebar-list {
  list-style: none;
  padding: 0;
  width: 100%;
}
.sidebar-list li {
  margin: 16px 0;
  width: 100%;
}
.sidebar-list a,
.sidebar-link-btn {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 10px 32px;
  border-radius: 8px 0 0 8px;
  transition: background 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  box-sizing: border-box;
}
.sidebar-list a:hover,
.sidebar-link-btn:hover {
  background: #d1d1d1;
}

/* --- メインコンテンツ --- */

.main-content {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 0 0 0;
}

.notice-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 12px auto;
  z-index: 20;
}
.notice-message {
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 1.05rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}
.notice-message.success {
  background: #e6ffe6;
  color: #1a7f1a;
  border: 1px solid #b2e6b2;
}
.notice-message.error {
  background: #ffe6e6;
  color: #b30000;
  border: 1px solid #ffb2b2;
}

.profile-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  padding: 40px 32px 32px 32px;
  max-width: 480px;
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-title {
  font-family: "Segoe UI", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #444;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e6e6e6;
  margin-bottom: 10px;
}
.profile-username {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.profile-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}
.icon-link img {
  width: 28px;
  height: 28px;
  filter: grayscale(0.2);
  transition: filter 0.2s;
}
.icon-link:hover img {
  filter: grayscale(0) drop-shadow(0 0 2px #969696);
}
.profile-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.profile-link-card {
  display: flex;
  align-items: center;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 1.1rem;
  color: #222;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: background 0.2s, box-shadow 0.2s;
  gap: 16px;
}
.profile-link-card img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}
.profile-link-card span {
  font-size: 0.95rem;
  color: #888;
  margin-left: 8px;
}
.profile-link-card:hover {
  background: #e6e6ff;
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.08);
}
.profile-ad {
  width: 100%;
  margin: 18px 0 10px 0;
  position: relative;
}
.ad-label {
  position: absolute;
  top: 8px;
  right: 16px;
  background: #969696;
  color: #fff;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 2px 10px;
  z-index: 2;
}
.profile-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 0.98rem;
}

/* --- フッター --- */
.main-footer {
  text-align: center;
  background: #f3f3f3;
  padding: 32px 0 12px 0;
  margin-left: 220px;
  color: #888;
  font-size: 0.98rem;
}

/*コンテナ群*/
.container {
  width: 85%;
  margin: 20px auto; /* 中央配置 */
  padding: 20px;
  background-color: #ffffff; /* 背景色 */
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.side_container {
  width: 100%;
  margin: 20px auto; /* 中央配置 */
  padding: 20px;
  background-color: #ffffff; /* 背景色 */
  border-radius: 5px;
}

footer {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  color: rgb(255, 255, 255);
}

.under_text {
  font-size: 0.8rem;
  position: fixed;
  bottom: 0;
}

.service_text {
  font-family: "Segoe UI", sans-serif;
  text-align: left;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: #444;
}

/*ローディング用*/
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 共有モーダル */
.share-modal-container {
  display: none; /* 初期状態は非表示 */
  position: fixed;
  z-index: 6000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.MutualLink {
  color: #53acff;
}

.sub0_container {
  font-family: "Noto Sans JP", sans-serif;
  display: block;
  width: 85%;
  margin: 24px auto;
  padding: 20px;
  background-color: #ffffff; /* 背景色 */
  box-shadow: 0 2px 8px rgba(108, 99, 255, 0.08);
  border-radius: 5px;
}

#homeBtn,
#editBtn {
  display: none;
}

.main_content_for_infopage {
  display: none;
}

.container_for_infopage {
  font-family: "Noto Sans JP", sans-serif;
  width: 85%;
  margin: 20px auto; /* 中央配置 */
  padding: 20px;
  background-color: #ffffff; /* 背景色 */
  border-radius: 5px;
}

/*ホバー処理等*/
.profile_c {
  width: 110px;
  height: 110px;
  margin-bottom: 10px;
  position: relative;
  border-radius: 50%;
  background: #f7f7f7;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  /* flexは不要 */
}

.profile_c img.profile-avatar {
  width: 110px;
  height: 110px;
  object-fit: contain; /* cover→containに変更 */
  border-radius: 50%;
  display: block;
  background: #fff;
}

.profile_c .mask {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 5px;
  left: 5px;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile_c:hover .mask {
  opacity: 1;
}

.profile_c .caption {
  font-size: 1rem;
  color: #fff;
  text-align: center;
  padding: 0;
  margin: 0;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.edit_icon {
  width: 20px;
  height: auto;
}

.container_xperiasuki {
  width: 85%;
  margin: 20px auto; /* 中央配置 */
  padding: 20px;
  background-color: #ffffff; /* 背景色 */
  border-radius: 5px;
}

.container_xperiasuki h2 {
  color: #4a4a4a;
  margin-bottom: 18px;
  border-left: 6px solid #525252;
  padding-left: 12px;
  letter-spacing: 2px;
}


.hidden_area{
  display: none;
}