@charset "utf-8";

/*
  しみ症例集 専用CSS
  common_style.css / menu_style.css の後に読み込む想定です。
  目的：共通CSSの main overflow:hidden による本文非表示を解除し、症例写真ページとして見やすく整える。
*/

/* ===== ページ全体： ===== */
body.page-pigment {
  background: #f7f9fb;
}

body.page-pigment main {
  position: relative;
  top: 0;
  width: 100%;
  overflow: visible;
  z-index: 1;
}

body.page-pigment .common-header {
  position: relative;
  z-index: 20;
}

body.page-pigment .main-menu {
  position: relative;
  z-index: 15;
}

/* ===== タイトル直下 ===== */
body.page-pigment .menu-title {
  height: auto;
  min-height: 45px;
}

body.page-pigment .menu-title h2 {
  margin: 0;
  padding: 9px 0;
  line-height: 1.35;
}

body.page-pigment .treatment-intro-note {
  width: min(940px, calc(100% - 24px));
  margin: 16px auto 18px;
  box-sizing: border-box;
}

/* ===== 症例ページ：目次 ===== */

.case-index{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 18px auto 24px;
  padding: 0 10px;
  max-width: 760px;
}

.case-index a{
  display: block;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(38,108,165,0.18);
  border-radius: 10px;
  background: #f7f9fb;
  color: #224466;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(34,68,102,0.04);
  position: relative;
}

.case-index a::before{
  content: "";
  position: absolute;
  left: 8px;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 3px;
  background: #468cc5;
  opacity: 0.55;
}

.case-index a::after{
  content: "›";
  float: right;
  color: #468cc5;
  font-size: 1.1rem;
  line-height: 1;
}

@media (hover:hover){
  .case-index a:hover{
    background: #eef5fa;
    border-color: rgba(38,108,165,0.32);
    transform: translateY(-1px);
    transition: 0.18s;
  }
}

@media screen and (max-width: 480px){
  .case-index{
    grid-template-columns: 1fr;
    margin: 14px auto 20px;
  }

  .case-index a{
    font-size: 0.92rem;
    padding: 9px 12px 9px 16px;
  }
}

/* ===== 本文幅・基本組み ===== */
body.page-pigment .menu-content.case-list {
  display: block;
  width: min(960px, calc(100% - 20px));
  margin: 0 auto 80px;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  line-height: 1.8;
}

body.page-pigment .content-block {
  margin: 0 0 18px;
  padding: 1.05rem 0.95rem 1.2rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(34, 68, 102, 0.08);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34, 68, 102, 0.06);
  box-sizing: border-box;
}

body.page-pigment .content-block > div {
  margin-top: 1rem;
}

body.page-pigment .content-block > div:first-of-type {
  margin-top: 0.4rem;
}

body.page-pigment .menu-main h3 {
  width: auto;
  margin: 0 0 0.9rem;
  padding: 0.45rem 0.6rem;
  border-left: 5px solid #9bb9d4;
  background: #f6f8fb;
  border-radius: 0 8px 8px 0;
  color: #224466;
}

body.page-pigment .menu-main h4 {
  width: auto;
  margin: 1rem 0 0.45rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(38, 108, 165, 0.35);
  color: #224466;
}

body.page-pigment .menu-main p {
  margin: 0.3rem 0 0.7rem;
  padding: 0 0.2rem;
  line-height: 1.85;
  text-indent: 0;
}

body.page-pigment .note {
  color: #5f6f7a;
  font-size: 0.92rem;
}

/* ===== 画像：横スクロール・はみ出し対策 ===== */
body.page-pigment .img-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0.65rem 0 1rem;
  padding: 0.25rem 0.1rem 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

body.page-pigment .img-box > div {
  flex: 0 0 auto;
}

body.page-pigment .img-description {
  margin-right: 0;
  min-width: 0;
}

body.page-pigment .img-description img,
body.page-pigment .img-box img {
  display: block;
  max-width: min(86vw, 360px);
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

body.page-pigment .img-description p {
  width: 100%;
  margin: 0.35rem 0 0;
  padding: 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4f6678;
}

body.page-pigment .img-circle {
  border-radius: 50%;
}

body.page-pigment .case_presentation .img-box img {
  max-width: min(86vw, 420px);
}

body.page-pigment .explanation,
body.page-pigment .description {
  margin-top: 0.8rem;
}

/* ===== リンクボタン ===== */
body.page-pigment .link-container {
  margin: 0.8rem 0;
}

body.page-pigment .menu-main .link-button {
  display: inline-block;
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
}

body.page-pigment .menu-main .link-button::after {
  content: " >";
  position: static;
  padding-left: 0.7rem;
}

/* ===== 折りたたみ症例 ===== */
body.page-pigment #showAllCases {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ===== フッター・固定CTA ===== */
body.page-pigment footer {
  margin-top: 28px;
}

body.page-pigment .copyright {
  padding-bottom: 54px;
}

body.page-pigment #float-menu {
  z-index: 30;
}

/* ===== スマホ調整 ===== */
@media screen and (max-width: 799px) {
  body.page-pigment .menu-content.case-list {
    width: calc(100% - 14px);
    font-size: 0.98rem;
  }

  body.page-pigment .content-block {
    padding: 0.9rem 0.7rem 1rem;
    border-radius: 10px;
  }

  body.page-pigment .menu-main h3 {
    font-size: 1.1rem;
  }

  body.page-pigment .menu-main h4 {
    font-size: 1rem;
  }

  body.page-pigment .img-box {
    gap: 10px;
  }

  body.page-pigment .footer-menu .line_link a {
    font-size: 0.92rem;
  }
}

/* ===== PCでは症例写真を少しゆったり ===== */
@media screen and (min-width: 800px) {
  body.page-pigment .content-block {
    padding: 1.25rem 1.35rem 1.45rem;
  }

  body.page-pigment .img-box {
    gap: 16px;
  }
}
.case-card{
  margin: 1.4rem 0;
  padding: 1rem 0.9rem;
  border: 1px solid rgba(38,108,165,0.16);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 10px rgba(34,68,102,0.04);
}

.case-card h4{
  margin-top: 0;
}

.case-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0.4rem 0 0.7rem;
}

.case-meta span{
  font-size: 0.86rem;
  color: #36576f;
  background: #f3f7fa;
  border: 1px solid #dce8f0;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.case-lead{
  font-weight: 500;
}

.case-photo-wrap{
  position: relative;
}

.case-photo-wrap img{
  display: block;
  border-radius: 6px;
}

.photo-label{
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 0.2rem 0.55rem;
  font-size: 0.8rem;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 999px;
}

.case-detail{
  margin-top: 0.7rem;
}

.case-summary{
  margin: 0.8rem 0 0;
  border-top: 1px solid #e2e8ee;
}

.case-summary div{
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e2e8ee;
}

.case-summary dt{
  color: #266ca5;
  font-weight: 600;
}

.case-summary dd{
  margin: 0;
}

.case-note{
  font-size: 0.88rem;
  color: #555;
  margin-top: 0.7rem;
}

.case-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.8rem;
}

.case-links a{
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid #d7dbe0;
  border-radius: 6px;
  background: #f6f8fb;
  font-size: 0.9rem;
}

@media screen and (max-width: 799px){
  .case-summary div{
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
/* ===== 症例ページ：CTA ===== */

.case-cta{
  margin: 20px auto 8px;
  padding: 18px 16px;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(244,248,252,1) 0%,
      rgba(236,244,250,1) 100%
    );
  border: 1px solid rgba(38,108,165,0.14);
  text-align: center;
  box-shadow: 0 0 12px rgba(34,68,102,0.05);
}

.case-cta p{
  margin: 0 0 14px;
  color: #334;
  font-size: 0.97rem;
  line-height: 1.7;
}

.case-cta a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #06c755;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px rgba(6,199,85,0.22);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.case-cta a::before{
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  background-image: url("../images/LINE_logoinside.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

@media (hover:hover){
  .case-cta a:hover{
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(6,199,85,0.28);
    opacity: 0.96;
  }
}

.case-cta a:active{
  transform: translateY(0);
}

@media screen and (max-width: 480px){

  .case-cta{
    margin-top: 16px;
    padding: 16px 12px;
  }

  .case-cta p{
    font-size: 0.93rem;
    line-height: 1.6;
  }

  .case-cta a{
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    font-size: 0.96rem;
  }
}
/* 症例間リンク */
html {
  scroll-behavior: smooth;
}

.case-card {
  scroll-margin-top: 65px;
}

.case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.case-head h4 {
  margin: 0;
  flex: 1;
}

.case-nav.top {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.case-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.case-nav-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #1f5e7a, #5fa8c7);
  box-shadow: 0 5px 14px rgba(31, 94, 122, 0.18);
}

.case-nav-btn.primary::after {
  content: "↓";
  margin-left: 0.4em;
}

.case-nav-btn.secondary {
  color: #1f5e7a;
  background: #f3f8fa;
  border: 1px solid #cfe1e8;
}

@media (max-width: 640px) {
  .case-head {
    display: flex;
  }

  .case-nav.top {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .case-nav-btn {
    font-size: 0.8rem;
    min-height: 36px;
    padding: 0 10px;
  }
}