@charset "utf-8";

/*Font Awesomeの読み込み*/
/*---------------------------------------------------------------------------*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");


/*Google Fontsの読み込み*/
/*---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap');



/*CSSカスタムプロパティ（サイト全体を一括管理する為の設定）*/
/*---------------------------------------------------------------------------*/
:root {
  --space-large: 8vw;
  /*主に余白の一括管理用。画面幅100%＝100vwです。*/
}

/*fadeInのキーフレーム設定（汎用的）*/
/*---------------------------------------------------------------------------*/
@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}


/*fadeOutのキーフレーム設定（汎用的）*/
/*---------------------------------------------------------------------------*/
@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    visibility: hidden;
  }
}


/*全体の設定*/
/*---------------------------------------------------------------------------*/
body * {
  box-sizing: border-box;
}

html,
body {
  font-size: 13px;
  height: 100%;
  overflow-x: hidden;
}

/*画面幅1200px以上の追加指定*/
@media screen and (min-width:1000px) {

  html,
  body {
    font-size: 14px;
  }

}

/*追加指定ここまで*/

/*画面幅1600px以上の追加指定*/
@media screen and (min-width:1600px) {

  html,
  body {
    font-size: 1vw;
  }

}

body {
  overflow-x: clip;  /* または overflow-x:hidden でもOK */
}

/*追加指定ここまで*/

body {
  margin: 0;
  padding: 0;
  font-family: "Zen Maru Gothic", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  -webkit-text-size-adjust: none;
  color: var(--base-inverse-color);
  line-height: 2;
}

.header-spacer {
  height: 110px; /* ヘッダーと同じ高さ */
  background-color: #464340;
}

.header-spacer2 {
  height: 110px; /* ヘッダーと同じ高さ */
  background-color: #FFF6F0;
}

@media screen and (max-width: 767px) {
  .header-spacer {
    padding-top: 60px; /* スマホ時のヘッダー高さ */
  }

  .header-spacer2 {
    padding-top: 60px; /* スマホ時のヘッダー高さ */
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .header-spacer {
    padding-top: 100px; /* タブレット */
  }

  .header-spacer2 {
    padding-top: 100px; /* タブレット */
  }
}


/*リセット他*/
figure {
  margin: 0;
}

dd {
  margin: 0;
}

nav ul {
  list-style: none;
}

nav,
ul,
li,
ol {
  margin: 0;
  padding: 0;
}

p {
  display: block;
  margin-block-start: 0em;
  margin-block-end: 0em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  unicode-bidi: isolate;
}

.text {
  font-size: 1rem;
  align-items: center;
}

/*table全般の設定*/
table {
  border-collapse: collapse;
}

/*画像全般の設定*/
img {
  border: none;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/*videoタグ*/
video {
  max-width: 100%;
}

/*iframeタグ*/
iframe {
  width: 100%;
}

/*input*/
input {
  font-size: 1rem;
}

/*content-wrapper*/
.content-wrapper {
  padding: 0 10rem;
  padding-bottom: 2.5rem;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    .content-wrapper {
      padding: 0 2rem;
      padding-bottom: 2.5rem;
    }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .content-wrapper {
      padding: 0 5rem;
      padding-bottom: 2.5rem;
    }
}

/*リンクテキスト全般の設定*/
/*---------------------------------------------------------------------------*/
a {
  color: inherit; /* 親要素の文字色を継承 */
  transition: 0.3s;
  text-decoration: none;
}

/*マウスオン時*/
a:hover {
  text-decoration: none;
  opacity: 0.9;
}


/*container（サイト全体を囲むボックス）*/
/*---------------------------------------------------------------------------*/
#container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/*header（ロゴが入った最上段のブロック）*/
/*---------------------------------------------------------------------------*/
/*ヘッダーブロック*/
.top-message {
  font-size: 0.7rem;
  padding-left: 10px;
  color: #ecaeb1;
  margin: 0;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 1.2);
  font-weight: bolder
}

header {
  position: fixed;
  left: 0px;
  top: 0px;
  z-index: 1000;
  width: 100%;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 110px;
  color: #ecaeb1;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 1.2);
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.589); /* 半透明の白 */
    backdrop-filter: blur(5px); /* （任意）背景をぼかして見やすくする効果 */
    z-index: -1; /* ヘッダーのコンテンツの下に配置 */
}

.hd_wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 3px 10px;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  header {
    height: 60px;
    flex-direction: column;
    justify-content: center;
  }

  .hd_wrap {
    align-items: center;
    padding: 5px;
  }

  .top-message {
    font-size: 0.6rem;
    padding-left: 4px;
    text-align: left;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  header {
    height: 100px;
  }

  .hd_wrap {
    padding: 3px 20px;
  }

  .top-message {
    font-size: 0.85rem;
  }
}

/*ロゴ画像*/
#logo img {
  width: 250px;
}

#logo {
  display: flex;
  margin: 0;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  #logo img {
    width: 110px;
  }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #logo img {
    width: 200px;
  }
}

/*ヘッダーメニュー*/
.menubar {
  margin-left: auto;
  margin-right: 2rem;
}

.menubar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.menubar ul li a {
  position: relative;
}

#menubar ul li a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0px;
  width: 0;
  height: 2px;
  background-color: #ecaeb1;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 1.2);
  transition: all 0.3s ease-out;
  transform: translateX(-50%);
}

#menubar ul li a:hover::after {
  width: 100%;
}

#menubar_hdr {
  display: none;
}

/* 1024px以下でハンバーガーメニュー */
@media screen and (max-width: 1240px) {
  #menubar {
    display: none !important;
  }

  #menubar_hdr {
    display: flex;
  }

  #menubar ul {
    position: absolute;
    z-index: 999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  #menubar li {
    list-style: none;
    text-align: center;
  }

  #menubar li a {
    color: #fff;
    text-decoration: none;
    padding: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
  }
}

/*　メインビジュアル　*/
aside.mainimg {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100vh;
}

.slide0 {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide0_img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

.slide0 .img_com {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ea9876;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  text-align: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
  z-index: 2;
  white-space: pre-wrap;
  line-height: 1.4;
  max-width: 90%;
}

.slide0 .img_com p {
  position: relative;
  display: inline-block;
  padding: 10px;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  z-index: 1;
  margin-top: 25rem;
  animation: slideUp 1.0s ease-out 1 forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

@keyframes slideUp {
    0% {
        /* アニメーション開始時：下に移動し、透明 */
        opacity: 0;
        transform: translateY(20px); 
    }
    100% {
        /* アニメーション終了時：元の位置に戻り、不透明 */
        opacity: 1;
        transform: translateY(0);
    }
}

.big-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #ecaeb1;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 1.2);
    text-align: center;
    margin: 1rem;
    padding: 1rem;
    font-weight: bold;
}

.big-title-container::before,
.big-title-container::after{
    content: '';
    width: 70px;
    height: 3px;
    background-color: #ecaeb1;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 1.2);
}

.big-title-container::before {
    margin-right: 30px;
}

.big-title-container::after {
    margin-left: 30px;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  aside.mainimg {
    height: 100vh;
  }

  .slide0_img {
        object-position: 70%;
    }
  
  .slide0 .img_com {
    font-size: 1.4rem;
    width: 100%;
    font-weight: bold;
    justify-content: center;
    text-shadow: 0 0 5px rgb(0, 0, 0, 0.8);
  }

  .big-title-container {
    font-size: 2rem;
    flex-wrap: wrap;
    padding: 0;
  }

  .big-title-container::before,
  .big-title-container::after{
    display: none;
  }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .slide0 .img_com {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
  }

  .slide0 .img_com p {
    font-size: 2.5rem;
    margin-top: 15rem;
  }

  .big-title-container {
    font-size: 25px;
  }

  .big-title-container::before,
  .big-title-container::after {
    width: 50px;
    margin: 0 20px;
  }
}

/* 各セクションボタン */
.btnarrow4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  width: 260px;
  font-size: 14px;
  font-weight: 700;
  background-color: transparent;
  border: 2px solid #ea9876;
  border-radius: 40px;
  padding-left: 30px;
  padding-right: 15px;
  position: relative;
  overflow: hidden;
}

.btnarrow4::after {
  content: '';
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  transition: right 0.3s ease-out;
}

.btnarrow4:hover::after {
  right: 15px;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
  .btnarrow4 {
    width: 150px;
    font-size: 9px;
    padding: 8px;
    padding-left: 13px;
    padding-right: 10px;
  }

  .btnarrow4::after {
    right: 10px;
    width: 5px;
    height: 5px;
  }
  
  .btnarrow4:hover::after {
    right: 15px;
  }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .btnarrow4 {
    width: 240px;
    font-size: 13px;
    padding: 9px;
    padding-left: 25px;
    padding-right: 12px;
  }
  
  .btnarrow4::after {
    right: 18px;
  }

  .btnarrow4:hover::after {
    right: 18px;
  }
}

@media (hover: none) and (pointer: coarse) {
    .btnarrow4:hover::after {
        right: 20px;
    }
}

/* 明るい背景色のセクション */
.section-with-bg.color-light {
    background-color: #fff6f0;
    color: #464340;
}

/* 明るい背景色のセクション内の.btnarrow4 */
.section-with-bg.color-light .btnarrow4 {
    color: #464340;
    border-color: #ea9876;
}

/* 明るい背景色のセクション内の.btnarrow4の矢印 */
.section-with-bg.color-light .btnarrow4::after {
    border-top: 2px solid #464340;
    border-right: 2px solid #464340;
}


/* 暗い背景色のセクション */
.section-with-bg.color-dark {
    background-color: #464340;
    color: #f9f9f9;
}

/* 暗い背景色のセクション内の.btnarrow4 */
.section-with-bg.color-dark .btnarrow4 {
    color: #f9f9f9;
    border-color: #ea9876;
}

/* 暗い背景色のセクション内の.btnarrow4の矢印 */
.section-with-bg.color-dark .btnarrow4::after {
    border-top: 2px solid #f9f9f9;
    border-right: 2px solid #f9f9f9;
}

/* NEWSセクション */
ul.ul_news {
    list-style: none;
    margin: 2em auto;
    padding: 0;
    max-width: 900px;
    width: 90%;
}

ul.ul_news > li {
    padding: 1em;
    border-bottom: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

ul.ul_news > li > .news-item {
    display: flex;
    align-items: center;
    gap: 1em;
}

ul.ul_news > li:hover {
    background-color: #312f2d;
}

ul.ul_news > li a {
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
}

ul.ul_news > li .news_date {
    color: #f9f9f9;
    font-size: 0.9em;
    white-space: nowrap;
    flex-shrink: 0;
}

ul.ul_news > li .icon {
    display: inline-block;
    padding: 0.2em 0.5em;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    border-radius: 5px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* スマートフォン */
@media screen and (max-width: 767px) {
    ul.ul_news > li > .news-item {
        align-items: flex-start;
        gap: 0.5em;
        display: block;
        column-gap: 0.5rem;
    }

    ul.ul_news > li .news_date,
    ul.ul_news > li .icon {
        font-size: 0.8em;
    }
    
    ul.ul_news > li:hover {
        background-color: #464340;
    }
}

/* タブレット */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    ul.ul_news {
        width: 95%;
    }
    
    ul.ul_news > li {
        padding: 0.8em;
    }
    
    ul.ul_news > li > .news-item {
        gap: 0.8em;
    }

    ul.ul_news > li:hover {
        background-color: #464340;
    }
}

/* カテゴリーアイコン */
ul.ul_news > li .icon.blog {
    background-color: #ea9876;
}
ul.ul_news > li .icon.news {
    background-color: #ecaeb1;
}
ul.ul_news > li .icon.etc {
    background-color: #9c9c9c;
}

/* NEWアイコンのスタイル */
ul.ul_news > li .new-icon {
    display: inline-block;
    background-color: #e2586e;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    padding: 0.2em 0.5em;
    border-radius: 5px;
    animation: flash 1s infinite alternate;
}

/*　施術事例セクション　*/
/*---------------------------------------------------------*/
/* ブログ一覧全体の設定 */
.blog_index-topics_wrap {
    list-style: none;
    padding: 0;
    margin: 1em auto;
    max-width: 1200px;
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
}

.blog_index-topics_wrap li {
    background-color: #bfd8ab;
    border: 1px solid #00000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc((100% - 4.5em) / 4);
    flex: 0 0 calc((100% - 4.5em) / 4); /* ← 重要！！ */
    flex-grow: 0 !important;   /* ← これが絶対必要 */
    flex-basis: calc((100% - 4.5em) / 4) !important;
    width: auto !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog_index-topics_wrap li:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.blog_index-topics_wrap li.flex {
    display: flex;
    flex-direction: column;
    position: relative;
}

.blog_index-topics_wrap li figure {
    margin: 0;
    flex-shrink: 0;
}

.blog_index-topics_wrap li img {
    width: 100%;
    height: auto;
    display: block;
}

.blog_index-topics_wrap .btn_wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.blog_index-topics_wrap .icon {
    display: inline-block;
    padding: 0.3em 0.8em;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    background-color: #555;
    border-radius: 5px;
    white-space: nowrap;
}

/* カテゴリごとの色 */
.blog_index-topics_wrap .icon.foot { background-color: #A3D9A5; }
.blog_index-topics_wrap .icon.esthe { background-color: #D9A5A3; }
.blog_index-topics_wrap .icon.nail { background-color: #A5A3D9; }
.blog_index-topics_wrap .icon.make { background-color: #D9C9A3; }
.blog_index-topics_wrap .icon.blog { background-color: #ea9876; }
.blog_index-topics_wrap .icon.etc { background-color: #9c9c9c; }

.blog_index-topics_wrap li a:last-of-type {
    padding: 0.8em;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog_index-topics_wrap figcaption span {
    display: inline-block;
    font-size: 0.8em;
    color: #666;
    margin-right: 0.5em;
}

.blog_index-topics_wrap .newicon {
    background-color: #e2586e;
    color: white;
    font-size: 0.6em;
    font-weight: bold;
    padding: 0.2em 0.4em;
    border-radius: 5px;
    animation: flash 1s infinite alternate;
}

.blog_index-topics_wrap figcaption p {
    margin: 0.4em 0 0;
    font-size: 0.8em;
    font-weight: bold;
    color: #464340;
    line-height: 1.4;
}

/* アニメーション */
@keyframes flash {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.blog_wrap {
    display: flex;
    margin: 0 auto;
    padding: 20px;
    gap: 30px;
}

.blog_main {
    flex-grow: 1;
    min-width: 0;
}

.blog_sub {
    width: 300px; /* サイドバーの固定幅（例） */
    flex-shrink: 0;
}

/* --- 検索フォーム --- */
.search_box {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 0; 
}

.normal_text FORM {
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    padding-bottom: 20px;
}

.normal_text INPUT[type="submit"] {
    padding: 6px 10px;
    border: none;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: normal;
}

/* --- メインコンテンツ（ブログサムネイル） --- */
.blog_thumbnail_wrap {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.blog_thumbnail_wrap > li.flex {
    background-color: #bfd8ab;
    border: 1px solid #00000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: calc((100% - 60px) / 3); 
    flex-grow: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    display: flex;
}

.blog_thumbnail_wrap > li.flex:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* 記事リンク (サムネイル) */
.blog_imgItem {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0.9rem;
    flex-grow: 1;
    color: #464340;
}

.blog_imgItem .wrap {
    padding: 0 0 10px 0;
    font-size: 0.85em;
    color: #666; 
    flex-shrink: 0;
}

.blog_imgItem .ttl {
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    min-height: 40px; 
    font-size: 0.8rem;
    flex-grow: 1;
}

.blog_imgItem figure {
    margin: 0;
    display: block;
    width: 100%;
    padding-top: 100%;
    height: 0; 
    position: relative;
    overflow: hidden; 
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.blog_imgItem figure img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog_imgItem .text {
    flex-grow: 1;
    padding: 10px;
    font-size: 0.9em;
}

.blog_imgItem .text p {
    margin: 0;
    color: #555;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* --- カテゴリアイコン (サムネイル内) --- */
.blog_imgItem .btn_wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.blog_imgItem .icon {
    display: inline-block;
    padding: 0.3em 0.8em;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    background-color: #555;
    border-radius: 5px;
    white-space: nowrap;
}

/* 指定色に基づくカテゴリ別スタイル */
.blog_imgItem .icon.make { 
    background-color: #D9C9A3; 
}

.blog_imgItem .icon.nail { 
    background-color: #A5A3D9;
}

.blog_imgItem .icon.aesthetic { 
    background-color: #D9A5A3;
}

.blog_imgItem .icon.footcare { 
    background-color: #A3D9A5;
}

.blog_imgItem .icon.blog { 
    background-color: #ea9876;
}

.blog_imgItem .icon.etc { 
    background-color: #9c9c9c; 
}

/* --- サイドバー --- */
.blog_sub .box1,.box2,.box3 {
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    background-color: transparent;
}

.sidebar-heading {
    font-size: 1.1em;
    font-weight: bold;
    color: initial;
    border-bottom: 2px solid #ffb3c1; 
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* 最新記事リスト */
.list-sub a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
    position: relative;
    padding-left: 20px; 
    transition: none;
}

.list-sub a:hover {
    color: #ffb3c1;
}

.list-sub a p {
    margin: 0;
    line-height: 1.3;
}

/* NEWアイコン (最新記事リストの先頭) */
.list-sub:first-child a::before {
    content: "NEW";
    display: inline-block;
    background-color: #e2586e;
    color: #fff;
    font-size: 0.6em;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.list-sub:first-child a {
    padding-left: 45px;
}


/* カテゴリ一覧 */
.blog_sub .cat_icon, .blog_sub .cat_icon2 {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px 5px 5px 0;
    border-radius: 5px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    color: #fff;
    transition: none;
    opacity: 1;
}

.blog_sub p a:hover .cat_icon, .blog_sub p a:hover .cat_icon2 {
    opacity: 1;
}

.blog_sub p a {
    text-decoration: none;
}

/* --- カテゴリごとの色分け --- */
/* メイク */
.blog_sub .cat_icon.make { background-color: #D9C9A3; }

/* ネイル */
.blog_sub .cat_icon.nail { background-color: #A5A3D9; }

/* エステ */
.blog_sub .cat_icon.esthe { background-color: #D9A5A3; }

/* フットケア */
.blog_sub .cat_icon.footcare { background-color: #A3D9A5; }

/* BLOG */
.blog_sub .cat_icon.blog { background-color: #ea9876; }

/* その他 */
.blog_sub .cat_icon.etc { background-color: #9c9c9c; }

/* 全て表示 (cat_icon2) */
.blog_sub .cat_icon2 {
    background-color: #505050;
    color: #fff;
}

/* アーカイブ */
.blog_sub SELECT {
    padding: 5px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 0;
}
.blog_sub INPUT[type="submit"] {
    padding: 5px 10px;
    border: none;
    background-color: #ffb3c1;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    font-weight: normal;
    transition: none;
}

.blog_sub INPUT[type="submit"]:hover {
    background-color: #ffb3c1;
}

/* --- ページネーションスタイル --- */
.pagination_wrap {
    clear: both;
    padding: 15px 0;
    text-align: center;
}

.page_link {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9em;
}

.page_link:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.page_link.active {
    background-color: #ffb3c1;
    color: #fff;
    border-color: #ffb3c1;
    font-weight: bold;
}

/* --- NEWアイコンの共通スタイル --- */
.newicon {
    background-color: #e2586e;
    color: #fff;
    display: inline-block;
    font-size: 0.7em;
    font-weight: bold;
    line-height: 1;
    padding: 3px 6px;
    margin-right: 5px;
    border-radius: 4px;
    text-align: center;
    text-transform: uppercase;
    min-width: 35px; 
}

/* --- ブログ詳細（記事本体）のスタイル --- */
h1 {
    width: 70%;
    margin: 0 auto;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 3px solid #ffb3c1;
    line-height: 1.5;
    text-shadow: none;
    text-align: center;
}

.blog_main > span {
    width: 3rem;
    padding: 5px;
    font-size: 0.9em;
}

.blog_main_img {
    margin: 20px auto;
    max-width: 40%;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.blog_main_img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.img_caption_title {
    display: block;
    text-align: center; 
}

.text_wrap {
    width: 55%;
    margin: 0 auto;
    margin-bottom: 25px;
    line-height: 1.7;
    color: #444;
}

.text_wrap p {
    font-size: 1em;
    margin: 1em 0;
}

.text_wrap p strong,
.text_wrap p em {
    font-weight: bold;
    color: #e2586e;
}

.blog_detail_wrap .blog_main {
    width: 100%;
    flex-grow: 1;
    max-width: none;
}

.blog_detail_wrap .blog_sub {
    display: none;
}

.back_to_list_btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: #ff9966;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back_to_list_btn:hover {
    background-color: #ff8c47;
}

/* ホバーアクション無効化 */
@media screen and (min-width: 1025px) {
    .back_to_list_btn:hover {
        background-color: #ff8c47;
    }
}

/* --- スマートフォン (max-width: 767px) --- */
@media screen and (max-width: 767px) {
    .blog_index-topics_wrap li a:last-of-type {
        padding: 0.4rem 0.8rem;
        margin-bottom: 1rem;
    }

    .blog_index-topics_wrap figcaption p {
        margin: 0;
    }

    .blog_wrap {
        flex-direction: column;
        padding: 10px;
        gap: 20px;
    }

    .blog_main {
        width: 100%;
        order: 2;
    }

    .blog_sub {
        width: 100%;
        order: 1;
    }

    /* 検索フォーム */
    .normal_text FORM {
        align-items: stretch;
    }
    .normal_text INPUT[type="text"] {
        width: 100%;
      }

    .normal_text INPUT[type="submit"] {
        width: 25%;
        margin: 5px auto;
        padding: 0.3rem 0.8rem;
    }

    /* ブログ一覧（サムネイル） */
    .blog_thumbnail_wrap {
        gap: 15px; /* ギャップを小さく */
    }

    .blog_thumbnail_wrap > li.flex {
        /* 1列表示にする */
        width: 100%; 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 影を控えめに */
    }
    
    /* 施術事例セクション (トップなど、3列表示のままにする場合は修正不要) */
    .blog_index-topics_wrap li {
         width: calc((100% - 1.5em) / 2); /* 2列表示にする */
    }
    
    /* ホバーアクションの無効化 (タッチデバイスではホバーは基本的に不要) */
    .blog_thumbnail_wrap > li.flex:hover,
    .blog_index-topics_wrap li:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        cursor: default;
    }

    /* 記事詳細モードの調整 */
    .blog_main .blog_title {
        width: 100%;
        font-size: 1rem;
        margin-bottom: 0;
    }
    .blog_main_img {
        width: 100%;
        margin: 0 auto;
      }
    .text_wrap {
        width: 90%;
        margin: 0 auto;
    }
    .text_wrap p {
        font-size: 0.9em;
    }

    /* サイドバーのカテゴリ・アーカイブ表示 */
    .blog_sub .box2 {
        padding: 10px;
    }
    .blog_sub .box1,.box3 {
        display: none;
    }
    .blog_sub SELECT {
        width: calc(100% - 70px); /* 選択ボックスの幅 */
    }

    .back_to_list_btn {
        padding: 8px 15px;
        font-size: 14px;
        display: block;
        width: 35%;
        margin: 0 auto;
    }
}

/* --- タブレット (min-width: 768px and max-width: 1024px) --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    /* ブログ全体とメイン/サブの構造 */
    .blog_wrap {
        gap: 20px;
        padding: 20px 15px;
    }

    .blog_sub {
        width: 240px; /* サイドバーの幅を少し縮小 */
    }

    /* ブログ一覧（サムネイル） */
    .blog_thumbnail_wrap {
        gap: 20px;
    }

    .blog_thumbnail_wrap > li.flex {
        /* 2列表示にする (3列だと窮屈なため) */
        width: calc((100% - 20px) / 2); 
    }
    
    /* 施術事例セクション (4列表示を3列に変更) */
    .blog_index-topics_wrap {
        gap: 1.2em;
    }
    .blog_index-topics_wrap li {
        width: calc((100% - 20px) / 2); 
    }
    
    /* 記事詳細モードの調整 */
    .blog_main .blog_title {
        width: 85%;
        font-size: 1.4em;
    }
    .blog_main_img,
    .text_wrap {
        width: 80%;
    }

    .back_to_list_btn {
        padding: 9px 25px;
        font-size: 15px;
    }
}

/* ABOUT */
/* メッセージ */
.syomei {
  text-align: right;
}

/* MENU */
/* フットケア */
.osusume_menu {
  background-color: #FFDAB9;
  color: #464340;
  border-radius: 10px;
  padding: 15px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  text-align: left;
  font-weight: bold;
  margin-top: 1rem;
}

/* メニューページのサイドメニュー */
.side-menu-fixed {
    position: fixed; 
    top: 150px;
    right: 30px;
    width: 200px;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    z-index: 1000;
}

.side-menu-fixed .menu-heading { 
    font-size: 1.1rem;
    color: #464340;
    border-bottom: 2px solid #EA9876;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

.side-menu-fixed ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-menu-fixed a {
    display: block;
    padding: 8px 5px;
    text-decoration: none;
    font-size: 0.95rem;
    color: #464340;
    transition: background-color 0.2s;
}

.side-menu-fixed a:hover {
    background-color: #f9f9f9;
    color: #EA9876;
}

.side-menu-fixed a.active {
    font-weight: bold;
    color: #fff;
    background-color: #EA9876;
    border-radius: 4px;
}

html {
    scroll-behavior: smooth;
}
section[id] {
    scroll-margin-top: 150px;
}


@media (max-width: 1024px) {
    .side-menu-fixed {
        display: none; 
    }
}

.text_area {
  text-align: center;
}

/*blurスタイル。ぼかしで出現するスタイル。
---------------------------------------------------------------------------*/
/*待機中の設定*/
.blur {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px) scale(1.02); /* ←下から出てくる */
  transition: opacity .6s ease-out, transform 1s ease-out, filter .8s ease-out;
}

/*要素が見えたら実行するアクション*/
.blurstyle {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1); /* ←自然に戻る */
}