body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Kaku Gothic ProN", sans-serif;
  overflow-x: hidden;  /* これは残してOK */
  width: 100%;
  max-width: 100vw;   /* ← 横幅を画面に収める */
  background-image: url("background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* ナビゲーション */
.navbar {
  background-color: rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  font-family: 'Zen Kurenaido', sans-serif;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.navbar li a {
  text-decoration: none;
  color: #6e5c50;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.navbar li a:hover {
  color: #a479b3;
}

/* トップビジュアル */
.top-visual {
  width: 100%;
  padding: 80px 0 40px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.top-visual-inner {
  text-align: center;
  width: 50%;
  max-width: 600px;
  padding: 0 16px;
  margin: 0 auto;          
  box-sizing: border-box;
  overflow: hidden;
}

.top-visual img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.intro-text {
  margin-top: 16px;
  max-width: 100%;         
  word-wrap: break-word;   
  font-family: 'Zen Kurenaido', sans-serif;
  font-size: 1rem;
  color: #6e5c50;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  display: inline-block;
  line-height: 1.8;
  word-break: break-word;
}

/* プロフィール */

.profile-section {
  padding: 60px 20px;
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #d8bfd8;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.profile-text h2 {
  font-size: 1.6rem;
  margin: 10px 0 5px;
  color: #6e5c50;
}

.romaji {
  font-size: 0.9rem;
  color: #a79dac;
  display: block;
  margin-top: 4px;
}

.tagline {
  font-size: 1.1rem;
  color: #a479b3;
  margin-bottom: 15px;
}

.description {
  font-size: 1rem;
  color: #5f4b45;
  line-height: 1.8;
  max-width: 90%;
  margin: 0 auto 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 16px;
  text-decoration: none;
  color: #fff;
  background-color: #a479b3;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.social-links a:hover {
  background-color: #c2a1d3;
}

/* ニュース */

.news-section {
  padding: 2em 1em;
  text-align: center;
}

.news-section h2 {
  font-size: 1.8em;
  color: #744c3c;
  margin-bottom: 1em;
  font-family: "Zen Maru Gothic", sans-serif;
}

.news-card {
  background: #fff;
  border: 2px solid #e0cfc2;
  border-radius: 12px;
  padding: 1em;
  margin-bottom: 1em;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.news-date {
  font-size: 0.9em;
  color: #aa8877;
  margin-bottom: 0.5em;
}

.news-content {
  font-size: 1em;
  color: #6e5c50;
}

/* SNS */

.sns-links {
  background-color: rgba(255, 255, 255, 0.8);
}

.sns-icons {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.sns-icons img {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.sns-icons img:hover {
  transform: scale(1.1);
}

.sns-links {
  text-align: center;
  padding: 40px 20px;
}

.sns-links h2 {
  color: #744c3c;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.icon-list {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.icon-list img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.icon-list img:hover {
  transform: scale(1.2);
}

/* コンタクト */

.contact-section {
  padding: 3em 1em;
  text-align: center;

  font-size: 1rem;
  color: #5f4b45;
  line-height: 1.8;
  max-width: 90%;
  margin: 0 auto 20px;
}

.contact-section h2 {
  font-size: 2em;
  margin-bottom: 1em;
  color: #b26ba6; /* メインカラー系 */
}

.contact-section {
  text-align: center;
  padding: 4em 1em;
}

.contact-mail {
  color: #704c9f;
}
.contact-mail:hover {
  color: #5a356a;
}

/* フッター */

.site-footer {
  background-color: #fff;
  color: #704c9f; 
  text-align: center;
  padding: 2em 1em;
  font-size: 0.9em;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-links a {
  color: #b48fc2;
  text-decoration: none;
  margin: 0 0.5em;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #5a356a;
  text-decoration: underline;
}


@media screen and (max-width: 768px) {
  .navbar ul {
    flex-wrap: wrap !important;
    gap: 10px !important; 
    justify-content: center !important;
  }

  .top-visual-inner {
    padding: 0 10px !important;
  width: 80%;

  }

  .intro-text {
    font-size: 1.1rem !important;
  }

  .profile-image {
    width: 120px !important;
    height: 120px !important;
  }

  .profile-text h2 {
    font-size: 1.3rem !important;
  }

  .tagline {
    font-size: 1rem !important;
  }

  .description {
    font-size: 0.95rem !important;
    padding: 0 10px !important;
  }
}

/* 横スクロールを徹底的に封じる */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;       /* はみ出し禁止 */
}

body * {
  box-sizing: border-box;   /* paddingで幅がはみ出さないように */
}

/* Flex系のはみ出し対策 */
.navbar ul,
.profile-container,
.icon-list {
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

/* 大きめの要素をスマホで縮める */
.top-visual-inner,
.news-card,
.contact-section,
.site-footer {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}
