/* Variables */
:root {
  --primary-color: #0b1f3c; /* ネイビー系（トライズのイメージ） */
  --accent-color: #fca311; /* ゴールド・オレンジ系（元気でビジネスライクなアクセント） */
  --bg-color: #f7f9fa;
  --text-color: #333333;
  --text-light: #555555;
  --border-color: #e0e0e0;
  --white: #ffffff;
  --marker-color: rgba(252, 163, 17, 0.4);
  
  --font-family: 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* CTAボタンのための余白 */
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul, ol {
  list-style: none;
}

/* Header */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 15px 20px;
  text-align: center;
}

.header-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Main Content */
.main-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white);
  box-shadow: 0 0 20px rgba(0,0,0,0.02);
}

.article-container {
  padding: 0;
}

.article-header {
  padding: 30px 20px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.article-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

/* Article Body */
.article-body {
  padding: 30px 20px;
}

.article-body p {
  margin-bottom: 25px;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

/* Headings */
.article-body h2 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin: 50px 0 25px;
  padding: 15px 15px 15px 20px;
  background: #f0f4f8;
  border-left: 5px solid var(--primary-color);
  border-radius: 0 5px 5px 0;
  line-height: 1.4;
}

.article-body h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin: 40px 0 25px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--border-color);
  position: relative;
}

.article-body h3::before {
  content: "■";
  color: var(--accent-color);
  margin-right: 8px;
}

/* Images */
.article-image {
  margin: 0 0 30px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.article-image img {
  width: 100%;
  transition: transform 0.3s ease;
}

/* UI Components */
.mk {
  background: linear-gradient(transparent 60%, var(--marker-color) 60%);
  font-weight: bold;
}

.summary-box {
  background-color: #fff9ed;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  padding: 25px 20px;
  margin: 30px 0;
  box-shadow: 0 4px 10px rgba(252, 163, 17, 0.1);
}

.summary-box ul {
  padding: 0;
}

.summary-box li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #333;
}

.summary-box li::before {
  content: "✓";
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.summary-box li:last-child {
  margin-bottom: 0;
}

.balloon {
  position: relative;
  background: #e8f4fc;
  border-radius: 10px;
  padding: 20px;
  margin: 30px 0;
}

.balloon::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 30px;
  border-top: 15px solid #e8f4fc;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
}

.balloon p {
  margin: 0;
  font-weight: 700;
  color: var(--primary-color);
}

.note {
  background-color: #f7f7f7;
  padding: 15px;
  border-radius: 5px;
  margin: 25px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.note p {
  margin: 0;
  font-size: inherit;
}

ul {
  margin: 25px 0;
  padding-left: 20px;
}

.article-body > ul li {
  list-style-type: disc;
  margin-bottom: 10px;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.spec-table th, .spec-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
  text-align: center;
}

.spec-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: bold;
}

.spec-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* CTA Area */
.cta-area {
  background-color: #f0f4f8;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: center;
  margin: 40px 0;
}

.cta-area p {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-block;
  background-color: #ff3b3b;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 18px 25px;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 59, 59, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 400px;
}

.cta-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 5px rgba(255, 59, 59, 0.4);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 10px 15px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  display: flex;
  justify-content: center;
}

.floating-cta.show {
  transform: translateY(0);
}

.floating-cta-btn {
  background-color: #ff3b3b;
  color: white;
  width: 100%;
  max-width: 500px;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  display: block;
  box-shadow: 0 4px 10px rgba(255, 59, 59, 0.3);
  position: relative;
  overflow: hidden;
}

.floating-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100% }
  20% { left: 200% }
  100% { left: 200% }
}

.floating-cta-text {
  display: block;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Internal Links */
.internal-links {
  margin: 40px 0;
  padding: 20px;
  background-color: #fff;
  border: 2px solid var(--border-color);
  border-radius: 8px;
}

.internal-links-title {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  display: inline-block;
}

.internal-links ul {
  margin: 0;
  padding-left: 0;
}

.internal-links li {
  margin-bottom: 15px;
  list-style: none;
  line-height: 1.4;
}

.internal-links li::before {
  content: "▶";
  color: var(--accent-color);
  margin-right: 8px;
  font-size: 0.9em;
  display: inline-block;
}

.internal-links a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
}

.internal-links a:hover {
  border-bottom-color: var(--accent-color);
  color: var(--accent-color);
}

/* Footer */
.site-footer {
  background-color: var(--primary-color);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

.js-marker {
  background-size: 0% 100%;
  background-image: linear-gradient(transparent 60%, var(--marker-color) 60%);
  background-repeat: no-repeat;
  transition: background-size 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-marker.is-active {
  background-size: 100% 100%;
}

@media screen and (min-width: 600px) {
  /* PC or larger tablets */
  .main-content {
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
  }
}
