@charset "UTF-8";

@media screen and (max-width: 1240px) {
  .w_inner {
    width: 100%;
    padding-right: 20px !important;
    padding-left: 20px !important;
  }
}

@media screen and (max-width: 1023px) {
  body.fixed {
    position: fixed;
    width: 100%;
    height: 100%;
  }

  /* --------------------------------------------
   * 　サイドバーレイアウト (今回の大幅修正箇所)
   * -------------------------------------------- */
  #container:not(.container_front):not(.container_404) {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
  }

  #container:not(.container_front):not(.container_404) main {
    width: 100% !important;
    min-width: unset;
    padding: 20px 15px;
    box-sizing: border-box;
    order: 1;
  }

  #container:not(.container_front):not(.container_404) > main + *,
  #container:not(.container_front):not(.container_404) aside#sidebar,
  #container:not(.container_front):not(.container_404) .container_side {
    width: 100% !important;
    min-width: 100%;
    margin: 0 !important;
    padding: 20px 15px;
    box-sizing: border-box;
    order: 2;
    background-color: #f9f9f9;
    border-radius: 8px;
  }

  footer {
    margin-top: 50px;
  }

  /* --------------------------------------------
   * 　ナビ
   * -------------------------------------------- */
  header .nav_wrap nav {
    display: none;
  }

  header .nav_wrap.open {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 8888;
    width: 100%;
    height: 100vh;
    background: #EF0846;
    padding: 75px 30px;
    overflow-y: auto;
  }

  header .nav_wrap.open #nav_open {
    position: absolute;
    top: 13px;
    right: 20px;
    z-index: 9999;
  }

  header .nav_wrap.open nav {
    display: block;
    width: 100%;
    height: 100%;
  }

  header .nav_wrap.open nav ul {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    flex-direction: column;
  }

  header .nav_wrap.open nav ul li {
    width: 100%;
    border-bottom: 1px dotted #ddd;
    margin-left: 0 !important;
  }

  header .nav_wrap.open nav ul li a {
    padding: 13px 3px 8px;
    display: block;
  }

  header .nav_wrap.open nav ul li:last-child {
    border: none;
    margin-top: 30px;
    text-align: center;
  }

  header .nav_wrap #nav_open {
    display: block;
    width: 70px;
    height: 60px;
    position: relative;
    z-index: 9999;
  }

  header .nav_wrap #nav_open span {
    display: block;
    width: 50px;
    height: 2px;
    background: #000;
    position: absolute;
    top: 50%;
    left: calc(50% - 25px);
    transition: all ease 0.15s;
  }

  header .nav_wrap #nav_open span:before {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #000;
    position: absolute;
    top: 10px;
    transition: all ease 0.15s;
  }

  header .nav_wrap #nav_open span:after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #000;
    position: absolute;
    top: -10px;
    transition: all ease 0.15s;
  }

  header .nav_wrap.open #nav_open span {
    background: #EF0846;
  }

  header .nav_wrap.open #nav_open span:before {
    transform: rotate(45deg);
    top: 0;
    transition: all ease 0.15s;
    background: #fff;
  }

  header .nav_wrap.open #nav_open span:after {
    transform: rotate(-45deg);
    top: 0;
    transition: all ease 0.15s;
    background: #fff;
  }
}

@media screen and (max-width: 767px) {
  .off_mobile {
    display: none !important;
  }

  .on_mobile {
    display: block !important;
  }

  .page_head, .section_head {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 20px;
    padding: 0 10px;
    box-sizing: border-box;
  }

  section {
    margin-bottom: 40px;
  }
  
  .top_key_visual {
    height: 200px;
    margin-bottom: 30px;
  }

  .container_front .localnews_card {
    margin-bottom: 30px;
    padding-bottom: 20px;
  }

  .container_front .localnews_card:last-child {
    margin-bottom: 0;
  }

  .container_front .localnews_card .img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
  }

  .front_blog .blog_list_wrap ul {
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
  }

  .front_blog .blog_list_wrap ul li {
    padding: 10px 0;
    border-bottom: 1px dotted #e0e0e0;
  }

  .front_blog .blog_list_wrap ul li:last-child {
    border-bottom: none;
  }

  .front_blog .blog_list_wrap ul li a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
  }

  .front_blog .blog_list_wrap ul li .date {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3px;
  }

  .front_blog .blog_list_wrap ul li .ttl {
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.4;
  }

  .container_localnews .localnews_wrap {
    margin-bottom: 20px;
  }

  .container_localnews .localnews_wrap > a {
    display: flex;
    flex-direction: column !important;
    padding: 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }

  .container_localnews .localnews_wrap > a .img {
    width: 100% !important;
    min-width: 100%;
    margin-bottom: 15px;
    margin-right: 0 !important;
  }

  .container_localnews .localnews_wrap > a .img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
  }

  .container_localnews .localnews_wrap > a .txtarea {
    width: 100% !important;
    text-align: left;
  }

  .container_localnews .localnews_wrap > a .txtarea .localnews_name {
    text-align: left;
    font-size: 2.0rem;
    margin-bottom: 10px;
    font-weight: bold;
  }

  .container_localnews .localnews_wrap > a .txtarea .explain {
    font-size: 1.4rem;
    line-height: 1.6;
    margin-bottom: 15px;
  }

  .container_localnews .localnews_wrap > a .txtarea .btn_common {
    margin-top: 10px;
    width: 100%;
    text-align: center;
    padding: 12px 15px;
    font-size: 1.6rem;
  }

  .container_localnews_detail .block {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 0;
  }

  .container_localnews_detail .block .img {
    width: 100%;
    min-width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

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

  .container_localnews_detail .block .txtarea {
    width: 100%;
    margin-top: 0;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .container_localnews_detail .block .txtarea .head {
    margin-bottom: 10px;
  }

  .container_school_bldg .school_list_wrap > ul li {
    flex-direction: column;
    margin-bottom: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
  }

  .container_school_bldg .school_list_wrap > ul li .img {
    width: 100%;
    min-width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .container_school_bldg .school_list_wrap > ul li .img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
  }

  .container_school_bldg .school_list_wrap > ul li .txtarea {
    padding-top: 0;
  }
  
  .container_school_bldg .school_list_wrap > ul li .txtarea h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .container_school_bldg .school_list_wrap > ul li .txtarea p {
    font-size: 1.4rem;
    line-height: 1.6;
  }

  .wpcf7 table .flexwrap {
    justify-content: flex-start;
    flex-direction: column;
  }

  .wpcf7 table .td_left {
    display: block;
    width: 100%;
    border: none;
    padding: 10px 0 3px;
    font-weight: bold;
  }

  .wpcf7 table .td_right {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
  }
  
  .wpcf7 table input[type="text"],
  .wpcf7 table input[type="email"],
  .wpcf7 table input[type="tel"],
  .wpcf7 table textarea {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1.6rem;
  }

  .wpcf7 p:last-of-type {
    text-align: center;
    margin-top: 30px;
  }

  .wpcf7 input[type="submit"] {
    width: 80%;
    max-width: 300px;
    padding: 15px 20px;
    font-size: 1.8rem;
    border-radius: 5px;
    background-color: #EF0846;
    color: #fff;
    border: none;
    cursor: pointer;
  }

  .footer_nav ul {
    flex-direction: column;
    width: 100%;
    border-top: 1px dotted #ddd;
    padding-top: 10px;
  }

  .footer_nav ul li {
    text-align: center;
    border-bottom: 1px dotted #dddddd;
  }

  .footer_nav ul li:last-child {
    border-bottom: none;
  }

  .footer_nav ul li a {
    display: block;
    padding: 12px 0 8px;
    font-size: 1.5rem;
  }

  .entry-content,
  .post-content,
  .page-content,
  .main-content article {
    padding: 20px 15px;
    box-sizing: border-box;
  }

  .entry-content p,
  .post-content p,
  .page-content p {
    font-size: 1.5rem;
    line-height: 1.7;
    margin-bottom: 1.5em;
  }

  .entry-content h1,
  .entry-content h2,
  .entry-content h3,
  .entry-content h4,
  .entry-content h5,
  .entry-content h6 {
    font-size: 2.2rem;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
  }
  .entry-content h2 { font-size: 2.0rem; }
  .entry-content h3 { font-size: 1.8rem; }
  .entry-content h4 { font-size: 1.6rem; }
  .entry-content h5 { font-size: 1.5rem; }
}

/* ==============================
   ヘッダーロゴ（画像）
============================== */
header .logo .img img {
  max-width: clamp(180px, 28vw, 320px); /* PCで大きく、スマホで縮小 */
  height: auto;
}

/* Salon 二虹 のテキストロゴ */
header .logo .logo-text {
  font-size: clamp(1.2rem, 4vw, 4rem); /* PCで大きく、スマホで縮小 */
  font-weight: bold;
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

/* キャッチフレーズ（h1.tagline） */
header .logo .tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.6rem);
  font-weight: normal;
  margin-bottom: 8px;
  color: #333; /* 必要なら色指定 */
  display: block; /* 念のため強制表示 */
}


