/* ===============================
   COMMON BASE
================================ */
body {
  margin: 0;
  padding: 0;
  background: #C1C1C1;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

/* ===============================
   LINK
================================ */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===============================
   MAIN TITLE
================================ */
.archive-title-main {
  text-align: center;
  margin: 40px 0 30px;
  font-size: 26px;
  letter-spacing: 0.05em;
}

/* ===============================
   SECTION
================================ */
.section {
  margin-bottom: 50px;
}

.section h2 {
  font-size: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* ===============================
   TEXT BLOCK（段落）
================================ */
p {
  margin: 0 0 0.6em;
}

/* ===============================
   MESSAGE / ARTICLE TEXT
================================ */
.message {
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.message p:first-child {
  font-weight: bold;
  margin-bottom: 0.8em;
}

/* ===============================
   LIST（SERVICE / EXPERIENCE）
================================ */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list,
.experience-list {
  line-height: 1.4;
}

.service-list li,
.experience-list li {
  padding: 4px 0;
}

.service-list li {
  border-bottom: 1px dotted #ccc;
}

/* 補足文 */
.service-lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}

/* ===============================
   DETAILS（折りたたみ）
================================ */
details {
  margin-top: 10px;
}

details p {
  line-height: 1.5;
  margin-top: 10px;
}

details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  list-style: none;
  color: #3a6cff;
  position: relative;
  padding-left: 18px;
}

details summary::-webkit-details-marker {
  display: none;
}

/* ▶ アイコン */
details summary::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
  transition: transform 0.2s ease;
}

/* open時 */
details[open] summary::before {
  transform: rotate(90deg);
}

details summary:hover {
  color: #1f4fe0;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .archive-title-main {
    font-size: 22px;
    margin: 30px 0 20px;
  }

  .section {
    margin-bottom: 40px;
  }
}

/* ===============================
   SEAMLESS SCROLL SETTINGS
================================ */
html, body {
  height: auto;       /* 高さを固定しない */
  overflow: visible;   /* 親画面のスクロールを許可 */
}

.site-header {
  height: auto;        /* 内容に合わせて伸び縮みさせる */
  min-height: 170px;
  width: 100%;
  background: #C1C1C1;
  border-bottom: 1px solid #999;
}

.content-wrapper {
  margin: 0;
  padding: 0;
  line-height: 0; 
  font-size: 0;
  vertical-align: top;
}

.content-wrapper iframe {
  width: 100%;
  border: none;
  overflow: hidden;    /* iframe内のスクロールバーを隠す */
}

/* ===============================
   BACK TO TOP BUTTON
================================ */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: #333;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;           /* 最初は隠しておく */
  transition: opacity 0.3s;
  z-index: 1000;
  border: none;
  font-size: 20px;
}

#back-to-top.show {
  opacity: 0.8;         /* スクロールしたら表示 */
}

/* ===============================
   HEADER BALANCE & GAP FIX
================================ */
html, body {
  margin: 0;
  padding: 0;
}

.header-container {
  /* 上に15pxの余白を持たせ、下を0にします */
  padding: 15px 10px 15 10px; 
  text-align: center;
  background: #C1C1C1;
}

/* 1段目：ロゴとSNS（下揃え） */
.header-top-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 15px;
  margin-bottom: 5px;
}

/* PC版ロゴサイズ */
.main-logo {
  height: 120px; 
  display: block;
  margin: 0;
}

.sns-area {
  display: flex;
  align-items: flex-end;
  padding-bottom: 5px; 
}

.sns-area img {
  height: 30px;
  margin: 0 4px;
  display: block;
}

/* 2段目：肩書き */
.header-tagline {
  color: #B04D48;
  font-size: 13px;
  margin: 0 0 5px 0;
  line-height: 1.2;
}

/* 3段目：メニュー */
.menu-nav {
  font-size: 15px;
  margin: 0;
  /* メニュー下の余白を極限まで削る（3px） */
  padding-bottom: 3px;
  line-height: 1;
}

/* ヘッダー自体の高さを中身に合わせる */
.site-header {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #999;
  display: block;
  line-height: 0; 
}

/* コンテンツエリアの隙間抹殺 */
.content-wrapper {
  margin: 0;
  padding: 0;
  line-height: 0;
  display: block;
}

#contents-frame {
  display: block;
  width: 100%;
  border: none;
  margin: 0;
}

/* ===============================
   スマホ縦持ち・横持ち両対応の調整
================================ */
@media (max-width: 600px) {
  .header-container {
    padding-top: 10px;
    padding-bottom: 0;
  }

  /* 縦持ち（画面が狭い）時に隙間ができやすい箇所の徹底排除 */
  .header-top-row {
    gap: 8px;
    margin-bottom: 2px; /* 5pxからさらに短縮 */
    flex-wrap: nowrap;  /* 絶対に折り返させない */
  }

  .main-logo {
    height: 45px; /* 縦持ち時は少し小さくして一行を維持 */
  }

  .sns-area img {
    height: 24px;
  }

  .header-tagline {
    font-size: 11px;
    margin-bottom: 0px; /* 肩書き下の余白をゼロに */
    line-height: 1.1;   /* 行間を極限まで詰める */
  }

  .menu-nav {
    font-size: 13px;
    line-height: 1.1;   /* メニュー自体の高さを最小限に */
    padding-bottom: 2px;
    margin-top: 2px;
  }
}

/* スマホ縦持ち時の隙間を強制排除 */
@media (max-width: 600px) {
  .header-container {
    padding-bottom: 0 !important;
  }
  
  .menu-nav {
    line-height: 1 !important; /* メニュー文字の上下の余白を抹殺 */
    margin-bottom: 0 !important;
    padding-bottom: 5px !important; /* 境界線までの距離を最小限に */
  }

  /* ヘッダーとiframeの境界を密着させる */
  .site-header {
    border-bottom: 1px solid #999;
    margin-bottom: 0;
  }
}

/* common.css の末尾に追加または上書き */
.content-wrapper {
  margin: 0;
  padding: 0;
  line-height: 0; /* これが重要：子要素の隙間をゼロにします */
  font-size: 0;   /* 文字スペースによる隙間を排除 */
  background-color: #C1C1C1;
}

#contents-frame {
  display: block; /* 画像やiframeの下の数pxの隙間を消す */
  width: 100%;
  border: none;
  margin: 0;
  padding: 0;
}