/* =============================
   1. Base Structure
============================= */
body {
  font-family: sans-serif;
  margin: 0;
  background:#ffffff;
  color: #333;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  position: relative; /* ← これが基準になる */
}

.main {
  position: relative;
  /*padding: 2rem 1rem 1rem;*/
}

/* デフォルトで全て非表示にして、各メディアクエリ内で表示を制御 */
.pc-only {
  display: none;
}
.sp-only {
  display: none;
}

/* PC表示（768px以上） */
@media (min-width: 768px) {
  .pc-only {
    display: block;
  }
}

/* スマホ表示（767px以下） */
@media (max-width: 767px) {
  .sp-only {
    display: block;
  }
}

/* =============================
   2. Header
============================= */
.header {
  padding: 1.5rem 0;
  background: linear-gradient(to bottom, #eef2ff 0%, #f9faff 100%);
}

.header .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
/*.logo {
  color: #7c3aed;
  font-weight: 600;
  font-size: 1.25rem;
}*/

.logo {
  background-image: url("/assets/img/blogbooth.webp");
  background-repeat: no-repeat;
  background-size: contain;
  width: 133px;
  height: 23px;
  display: inline-block;
  vertical-align: middle;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.version {
  color: #a3a3a3;
  font-weight: 600;
  font-size: 11px;
  background: #f7f7f7;
  padding: 6px 18px;
  border-radius: 35px;
  border: solid 1px #ececec;
}
.share-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
}
.share-link:hover {
  text-decoration: underline;
}
.x-icon {
  width: 1em;
  height: 1.2em;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =============================
   3. Hero / Title Area
============================= */
.section-hero {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  overflow: hidden;
  padding-top: 50px;
}

/* 背景画像（beams.jpg） */
.section-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/img/beams.jpg') center/cover no-repeat;
  opacity: 0.5;
  z-index: 0;
}

.main-text {
  max-width: 600px;
}

.subtext {
  font-size: 13px;
  color: #888;
  margin: 0;
}

.headline {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

/* ボタン群（ドキュメント・一覧） */
.button-group {
  display: flex;
  gap: 1rem;
  padding-bottom: 2.5rem;
  flex-wrap: wrap;
}

.button-group a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 13px;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  text-decoration: none;
}

.btn-black {
  color: #000;
}

.btn-black:hover {
  background: #f0f0f0;
}

.btn-gray {
  color: #111827;
}

.btn-gray:hover {
  background: #f0f0f0;
}

/* ボタン内のアイコン専用 */
.button-group .btn-icon {
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  margin-right: 0.4em;
  display: inline-block;
}

/* 背景装飾用アイコン共通 */
.icon {
  position: absolute;
  stroke: #a78bfa;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* 主役アイコン（メガホン等） */
.icon-main {
  width: 450px;
  height: 450px;
  top: -7rem;
  right: -1rem;
}

/* 線状のアイコン（円パス） */
.icon-line {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -150px;
  transform: rotate(15deg);
  stroke-dasharray: 6 6;
  stroke-width: 1;
}

/* 薄いリング装飾 */
.icon-ring {
  width: 800px;
  height: 800px;
  top: -200px;
  right: -250px;
  stroke-width: 1;
  fill: none;
}

/* 背景全体を覆うSVGレイヤー */
.bg-illustration {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}



/* =============================
   4. Search Section
============================= */
.search-section {
  background-color: #fff;
  box-shadow: 1px 6px 13px rgb(0 0 0 / 2%), 0px 5px 6px -4px rgba(0, 0, 0, 0.1);
  border-top: solid 1px #f4f4f4;
}
.search-area {
  padding: 15px 0;
}
.search-wrapper {
  display: flex;
  align-items: center;
  padding:1rem;
}
.search-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #9ca3af;
  flex-shrink: 0;
}
.search-field {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  outline: none;
  background: transparent;
}
.search-field::placeholder {
  font-size: 13px;
  color: #9ca3af;
}

/* =============================
   5. Tool Section
============================= */
/* Toolセクション全体 */
.tool-section {
  background-color: #fff;
  padding: 40px 15px 60px;
  margin-top: 40px;
}

/* ツール一覧（カードレイアウト） */
.tool-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

/* 個々のツールカード */
.tool-list li {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* ホバー時のカード挙動 */
.tool-list li:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* リンク内テキストのスタイル */
.tool-list a {
  display: block;
  padding: 1.2rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: #111827;
  line-height: 1.4;
}

/* ホバー時リンクカラー */
.tool-list a:hover {
  color: #2563eb;
}


/* =============================
   6. Tool Body Content
============================= */
.tool-body {
  margin:50px 0;
}
.tool-body2 h2 {
  font-size: 1.4rem;
  margin-bottom: 1em;
  border-left: 4px solid #ccc;
  padding-left: 0.5em;
  margin-top: 4rem;
}
.tool-body2 h3 {
  font-size: 1.1rem;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.tool-body2 p {
  line-height: 1.8;
  margin-bottom: 1em;
}
.tool-body2 code {
  background: #f4f4f4;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: monospace;
}
.tool-body2 ol,
.tool-body2 ul {
  margin-left: 1.5em;
  margin-bottom: 1.5em;
  padding-left: 1em;
}

.tool-body2 ol {
  list-style-type: decimal;
}

.tool-body2 ul {
  list-style-type: disc;
}

.tool-body2 li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

/* =============================
   Tool Buttons (Scoped)
============================= */
.tool-btn {
  display: inline-block;
  background-color: #0d8bab;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.2s;
  box-shadow: 0 4px 12px rgb(0 0 0 / 30%);
}
.tool-btn:hover {
  background-color: #0c7ea3;
}


/* =============================
   7. Footer
============================= */
.footer {
  /*background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;*/
  padding: 2rem 0 1.5rem;
  font-size: 12px;
  color: #6b7280;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: solid 1px #efefef;
  padding-top: 30px;
}

.footer-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-right {
  display: flex;
  align-items: center;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  color: #1f2937;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-meta {
  /*text-align: center;*/
  font-size: 12px;
  margin-top: 1.5rem;
  color: #9ca3af;
}

.footer-meta a {
  color: #3b82f6;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}


/* =============================
   8. Responsive
============================= */
@media (max-width: 768px) {
  .headline {
    font-size: 1.75rem;
  }
  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .button-group {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .bg-icon {
    display: none;
  }
}
