/* 共通スタイル - 全ページで使用 */

/* リセット */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 基本レイアウト */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  padding: 20px 20px 0 20px;
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
}

.container {
  width: 80% !important;
  max-width: none !important;
  margin: 0 auto;
  padding: 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ロゴ */
.main-title-container {
  text-align: center;
  margin: -15px 0 30px !important;
  color: #1a237e;
  font-weight: 700;
  font-size: 1.8rem;
}

/* 案1: モダンなグラデーションロゴ */
.logo-option-1 {
  position: relative;
  padding: 10px 20px !important;
  margin: 0 0 10px 0;
}

.logo-option-1 .logo-main {
  background: linear-gradient(135deg, #1a237e 0%, #3949ab 50%, #5c6bc0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.logo-option-1 a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.logo-option-1 a:hover .logo-main {
  opacity: 0.8;
}

.logo-option-1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, transparent, #1a237e, transparent);
  border-radius: 2px;
}

.logo-option-1 .logo-subtitle {
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-top: 8px;
  color: #666;
}

/* 案2: ミニマルなタイポグラフィロゴ */
.logo-option-2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 30px;
  border: 3px solid #1a237e;
  border-radius: 10px;
  background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 4px 6px rgba(26, 35, 126, 0.1);
}

.logo-option-2 .logo-main {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a237e;
  letter-spacing: 3px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.logo-option-2 .logo-acronym {
  font-size: 0.7rem;
  font-weight: 600;
  color: #3949ab;
  letter-spacing: 8px;
  margin-bottom: 5px;
}

.logo-option-2 .logo-subtitle {
  font-size: 0.85rem;
  font-weight: 400;
  color: #666;
  margin-top: 5px;
  letter-spacing: 1px;
}

/* 案3: 装飾的なボーダーロゴ */
.logo-option-3 {
  position: relative;
  padding: 30px 40px;
  background-color: #1a237e;
  color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
  overflow: hidden;
}

.logo-option-3::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.logo-option-3 .logo-main {
  position: relative;
  z-index: 1;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.logo-option-3 .logo-subtitle {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 0.9rem;
  font-weight: bold;
  letter-spacing: 3px;
  margin-top: 8px;
  opacity: 0.9;
}

.logo-option-3::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  pointer-events: none;
}

/* グローバルナビゲーション */
.global-nav {
  background-color: #1a237e;
  padding: 0;
  margin: 0 0 30px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border-radius: 5px;
  position: relative;
}

.nav-container {
  padding: 0;
  position: relative;
}

/* ハンバーガーメニューボタン */
.nav-toggle {
  display: none;
  background-color: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  position: relative;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-toggle:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: -2px;
}

.nav-toggle:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle-icon {
  display: inline-block;
  width: 24px;
  height: 18px;
  position: relative;
  margin-right: 10px;
  vertical-align: middle;
}

.nav-toggle-icon span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background-color: #ffffff;
  border-radius: 3px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.nav-toggle-icon span:nth-child(1) {
  top: 0;
}

.nav-toggle-icon span:nth-child(2) {
  top: 7px;
}

.nav-toggle-icon span:nth-child(3) {
  top: 14px;
}

.nav-toggle.active .nav-toggle-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(135deg);
}

.nav-toggle.active .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.nav-toggle.active .nav-toggle-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-135deg);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  border-radius: 5px;
  overflow: hidden;
}

.nav-item {
  flex: 1;
  min-width: 120px;
}

.nav-item:first-child .nav-link {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.nav-item:last-child .nav-link {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.nav-link {
  display: block;
  padding: 18px 20px !important;
  color: #ffffff !important;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: #ffffff;
  color: #ffffff !important;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: #ffffff;
  color: #ffffff !important;
}

/* コンテンツエリア - 全ページ共通 */
.content-area {
  padding: 40px 20px;
  color: #333;
  flex: 1;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  text-align: left;
}

/* 中央揃えが必要なページ用 */
.content-area.content-area-center {
  text-align: center;
}

.content-area.content-area-center h1,
.content-area.content-area-center h2,
.content-area.content-area-center h3,
.content-area.content-area-center p {
  text-align: center;
}

.content-area h1 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a237e;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #1a237e;
  text-align: left;
}

.content-area h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a237e;
  margin-top: 60px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  text-align: left;
}

.content-area h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a237e;
  margin-top: 30px;
  margin-bottom: 15px;
  text-align: left;
}

.content-area h4 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #1a237e;
  font-size: 1rem;
  font-weight: bold;
}

.content-area p {
  margin-bottom: 20px;
  text-align: left;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-area ul {
  margin-bottom: 20px;
  padding-left: 30px;
  margin-left: 20px;
}

.content-area ol {
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 30px;
}

.content-area li {
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-area ol li {
  margin-bottom: 8px;
  line-height: 1.8;
}

/* privacy.html, disclaimer.html用の追加スタイル */
.content-area.compact h1 {
  margin-bottom: 30px;
  padding-bottom: 0;
  border-bottom: none;
}

.content-area.compact h2 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.3rem;
  border-bottom: 2px solid #1a237e;
  padding-bottom: 5px;
}

.content-area.compact h3 {
  margin-top: 25px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: bold;
}

.content-area.compact p {
  margin-bottom: 15px;
}

.content-area.compact ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.content-area.compact li {
  margin-bottom: 8px;
}

/* max-width: 900pxが必要なページ用 */
.content-area.narrow {
  max-width: 900px;
}

.content-area .intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.content-area .feature-list {
  list-style: none;
  padding-left: 0;
}

.content-area .feature-list li {
  margin-bottom: 25px;
}

.content-area .feature-list li h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

/* フッター */
.footer {
  text-align: center;
  padding: 30px 0;
  margin-top: 30px;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
}

.footer-links a {
  color: #1a237e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 0 5px;
}

.footer-links a:hover {
  color: #3949ab;
}

.footer-links a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -12px;
  color: #ccc;
  font-weight: normal;
}

.footer-copyright {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #999;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .container {
    width: 95% !important;
    max-width: none !important;
    padding: 15px;
    margin: 0 auto;
  }
  
  /* ロゴのレスポンシブ対応 */
  .main-title-container {
    margin: -10px 0 20px !important;
  }
  
  .logo-option-1 {
    padding: 8px 15px !important;
  }
  
  .logo-option-1 .logo-main {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }
  
  .logo-option-1 .logo-subtitle {
    font-size: 0.8rem;
  }
  
  .logo-option-2 .logo-main {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }
  
  .logo-option-2 {
    padding: 15px 10px;
  }
  
  .logo-option-3 .logo-main {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }
  
  .logo-option-3 {
    padding: 15px 20px;
  }
  
  .global-nav {
    margin: 0 0 15px 0;
  }
  
  .nav-container {
    padding: 0;
  }
  
  /* ハンバーガーメニューボタンを表示 */
  .nav-toggle {
    display: block;
  }
  
  /* ナビゲーションメニューをデフォルトで非表示 */
  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  /* アクティブな場合は表示 */
  .nav-list.active {
    display: flex;
  }
  
  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-item:first-child .nav-link {
    border-radius: 0;
  }
  
  .nav-item:last-child .nav-link {
    border-radius: 0;
    border-bottom: none;
  }
  
  .nav-link {
    padding: 15px 20px !important;
    text-align: left;
    font-size: 0.95rem;
    color: #ffffff !important;
    border-bottom: none;
  }
  
  .nav-link:hover,
  .nav-link.active {
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.15);
  }
  
  /* コンテンツエリアのレスポンシブ対応 */
  .content-area {
    padding: 20px 15px;
    max-width: 100%;
  }
  
  .content-area.narrow {
    max-width: 100%;
  }
  
  .content-area h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  
  .content-area h2 {
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 8px;
  }
  
  .content-area h3 {
    font-size: 1.1rem;
    margin-top: 25px;
    margin-bottom: 12px;
  }
  
  .content-area p {
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  .content-area ul,
  .content-area ol {
    padding-left: 25px;
    margin-left: 10px;
    margin-bottom: 15px;
  }
  
  .content-area li {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .footer {
    padding: 20px 0;
    margin-top: 20px;
    font-size: 0.85rem;
  }
  
  .footer-links {
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .footer-links a {
    font-size: 0.85rem;
  }
  
  .footer-links a:not(:last-child)::after {
    right: -8px;
  }
  
  .footer-copyright {
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 8px;
  }
  
  .container {
    width: 98% !important;
    padding: 12px;
  }
  
  .main-title-container {
    margin: -8px 0 15px !important;
  }
  
  .logo-option-1 .logo-main {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
  }
  
  .logo-option-1 .logo-subtitle {
    font-size: 0.75rem;
  }
  
  .global-nav {
    margin: 0 0 12px 0;
  }
  
  .nav-toggle {
    padding: 12px 15px;
    font-size: 1.3rem;
  }
  
  .nav-link {
    padding: 12px 15px !important;
    font-size: 0.9rem;
  }
  
  .content-area {
    padding: 15px 10px;
  }
  
  .content-area h1 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
  }
  
  .content-area h2 {
    font-size: 1.15rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  
  .content-area h3 {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
  }
  
  .content-area p {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  
  .content-area ul,
  .content-area ol {
    padding-left: 20px;
    margin-left: 5px;
  }
  
  .content-area li {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }
  
  .footer {
    padding: 15px 0;
    margin-top: 15px;
    font-size: 0.8rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .footer-links a {
    font-size: 0.8rem;
  }
  
  .footer-links a:not(:last-child)::after {
    display: none;
  }
  
  .footer-copyright {
    font-size: 0.75rem;
  }
}
