@charset "UTF-8";

/* --- レイアウト全体 --- */
html,
body {
  width: 100vw;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Montserrat', sans-serif;
  line-height: 1.6;
  background: #f7f7f7;
  color: #333;
}

/* --- ヘッダー・フッター --- */
header,
footer {
  background-image: url('../images/indexbs.jpg');
  color: #fff;
  text-align: center;
  padding: 1.5em 1em;
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  max-width: 100vw;
  height: 712px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #000;
  font-size: 3rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: height 0.3s, font-size 0.3s, color 0.3s;
  z-index: 1000;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

header.shrink {
  height: 56px;
  font-size: 1rem;
  color: #fff;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  height: 100%;
  box-sizing: border-box;
  padding-left: 1em;
  padding-right: 1em;
  position: relative;
}

header.shrink .header-content {
  justify-content: flex-start;
  align-items: center;
  padding: 0;
}

.header-content h1 {
  font-family: 'Quicksand', 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  margin: 0 0 0.2em 0;
  transition: all 0.6s;
}

header .header-content section {
  font-size: 13px;
  font-weight: normal;
  line-height: 1.6;
  margin-top: 0.03rem;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-sizing: border-box;
  padding: 1em;
}

.hero {
  text-align: center;
  margin-top: 0.03rem;
  padding: 4em 1em;
  background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
  color: #333;
}

.hero p {
  font-size: 1.1em;
  margin-bottom: 1em;
  color: #555;
}

.cta-button {
  display: inline-block;
  background: #4a90e2;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

.cta-button:hover {
  background: #357ab8;
  transform: scale(1.2);
}

.intro {
  font-size: 13px;
  font-weight: normal;
  line-height: 1.6;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  box-sizing: border-box;
  padding: 1em;
  transition: opacity 0.5s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.intro.shrink {
  opacity: 0;
  pointer-events: none;
}

.signature {
  text-align: right;
  margin-top: 1em;
  font-style: italic;
}

/* --- SNSリンク --- */
.sns-links {
  display: flex;
  position: fixed;
  top: 8px;
  left: 8px;
  margin-left: 0;
  transition: all 0.6s;
  background: rgba(255, 255, 255, 0.35);
  padding: 4px 8px;
  border-radius: 8px;
}

.sns-links.fixed {
  position: fixed;
  top: 8px;
  left: 8px;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sns-links a img {
  transition: transform 0.5s ease;
  transform: scale(1.2);
}

.sns-links.fixed a img {
  transform: scale(0.8);
}

.sns-links a:hover img {
  transform: scale(1.5);
}

.sns-links.fixed a:hover img {
  transform: scale(1.0);
}

/* --- ハンバーガーメニュー --- */
.hamburger {
  position: absolute;
  top: 5px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: #ffffff99;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
}

.hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.hamburger-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 220px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 60px 20px 20px 20px;
  font-size: 13px;
}

.hamburger-menu.open {
  display: block;
}

.hamburger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-menu li {
  margin-bottom: 7px;
}

.hamburger-menu a {
  color: #333;
  text-decoration: none;
  font-size: inherit;
}

/* --- 目次・カテゴリ --- */
.toc-section {
  background: #f0f0f0;
  border-radius: 12px;
  padding: 2em 1em;
  margin-bottom: 2em;
  box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.category-section {
  margin-bottom: 2.5em;
}

.category-section h2 {
  font-size: 1.6em;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #2a2a2a;
  border-left: 6px solid #4a90e2;
  padding-left: 0.5em;
  background: #f0f7ff;
  display: inline-block;
}

.app-list>section {
  margin-bottom: 1.5em;
}

button {
  display: inline-block;
  background: #4a90e2;
  color: #fff;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s ease;
}

button:hover {
  background: #357ab8;
  transform: scale(1.2);
}

.google-play-icon img {
  height: 40px;
  transition: transform 0.3s ease;
  transform: scale(1);
}

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

.show-manual-btn {
  display: block;
  margin: 0 auto;
  width: 80%;
  max-width: 600px;
}

.manual-iframe {
  width: 100%;
  max-width: 600px;
  height: 300px;
  border: none;
}

.manual-div {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.manual-div.visible {
  opacity: 1;
}

/* --- アプリ埋め込み --- */
.app-list section {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1em;
  margin-bottom: 1.5em;
  transition: box-shadow 0.3s ease;
}

.app-list section:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-embed {
  margin: 1em 0;
  width: 100%;
  height: 500px;
  background: #e0e0e0;
  text-align: center;
  line-height: 300px;
  color: #999;
  box-sizing: border-box;
}

.app-embed iframe {
  width: 100%;
  max-width: 100%;
  height: 500px;
  border: none;
  display: block;
}

/* --- h3見出し --- */
h3 {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.5em;
  color: #222;
  margin-top: 2em;
  margin-bottom: 0.5em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* --- ナビゲーション --- */
nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  margin-bottom: 0.5em;
}

nav ul li a {
  color: #0066cc;
  text-decoration: none;
}

/* --- セクション --- */
section {
  margin-bottom: 3em;
}

main {
  padding-top: 650px;
  padding-left: 0.2em;
  padding-right: 0.2em;
  max-width: 100vw;
  width: 100vw;
}

/* --- メディアクエリ --- */
@media (max-width: 600px) {
  main {
    max-width: 100vw;
    padding: 1em 0.5em;
  }
}

@media (max-width: 600px) {
  header {
    height: 200vw;
    min-height: 56px;
    max-height: 712px;
    font-size: 1.5rem;
    padding: 0.5em 0.2em;
  }

  header.shrink {
    height: 56px;
    font-size: 0.9rem;
    padding: 0.2em 0.2em;
  }

  .header-content {
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    max-width: 100vw;
    width: 100vw;
    justify-content: center;
    box-sizing: border-box;
  }

  nav ul li {
    margin-bottom: 0.3em;
  }

  .app-embed {
    height: 250px;
    line-height: 250px;
  }

  .app-embed iframe {
    width: 100% !important;
    height: 250px !important;
  }

  section {
    margin-bottom: 2em;
  }

  main {
    padding-top: 650px;
    padding-left: 0.2em;
    padding-right: 0.2em;
    max-width: 100vw;
    width: 100vw;
  }
}

/* --- privacypolicy.html専用 --- */
body.privacy main {
  padding-top: 80px !important;
}

body.privacy header {
  height: 60px !important;
  min-height: 0 !important;
  max-height: 80px !important;
}

/* --- フィードバックフォーム専用 --- */
form#feedbackForm {
  background: #fff;
  padding: 2em;
  margin: 2em auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

form#feedbackForm label {
  display: block;
  margin-top: 1em;
  font-weight: bold;
  color: #333;
}

form#feedbackForm select,
form#feedbackForm input[type="text"],
form#feedbackForm input[type="email"],
form#feedbackForm textarea {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.3em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

form#feedbackForm textarea {
  resize: vertical;
}

form#feedbackForm input[type="checkbox"] {
  margin-right: 0.5em;
}

form#feedbackForm button[type="submit"] {
  margin-top: 1.5em;
  background: #4a90e2;
  color: #fff;
  padding: 0.8em 1.5em;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

form#feedbackForm button[type="submit"]:hover {
  background: #357ab8;
  transform: scale(1.05);
}

#thankYouMessage {
  text-align: center;
  font-size: 1.2em;
  color: #2a2a2a;
  margin-top: 3em;
  padding: 2em;
  background: #e6f7ff;
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
