﻿@charset "UTF-8";
/* =============================
   基本リセット
============================= */
:root {
  --main-color: #EC6E52;
  --gray-bg: #f7f7f7;
  --dark: #474241;
  --white: #FFFFFF;
  --red: #CC0000;
  --sub-color: #1A2E72;
  --accent-color: #52AE69;
  --wall-color-g: #E9EDEE;
  --wall-color-b: #262626;
  --wall-color-f: #FFFFFF;
  --main-bg-image: url(https://kaitai10.com/useful/wp-content/themes/kaitai-theme/images/contact-bg.png);
  --indent-size: 2.5em; 
  --marker-offset: 1.5em; 
  --indent-size-res: 1em; 
  --marker-offset-res: 0.5em; 
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

a {
  color: var(--dark);
  font-size: 1.0625rem;
  font-weight: 700;
}  

a:hover {
    opacity: 0.8;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--dark);
  background: var(--wall-color-f);
  line-height: 1.7;
  font-size: 87.5%;
  margin: 0;
  padding: 0;
}
.mt80 { margin-top: 80px;}

/* WordPress管理バー（Admin Bar）が挿入する余分なマージンを相殺する */
/* デスクトップで管理バーが出すマージンをリセット */
html {
  margin-top: 0 !important;
  --wp-admin--admin-bar--height: 0 !important;
}

/* もし body にもマージンが設定されていたらリセット */
body {
  margin-top: 0 !important;
}

/* =========================
   ヘッダー
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90000000;
  overflow: visible !important;
  background: var(--wall-color-f);
  display: block;
}

.header-inner {
  max-width: 1280px;
  width: 100%;
  margin: 5px auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  min-height: 70px;
  box-sizing: border-box;
  overflow: visible;
}

.logo {
  margin-top: 0;
  margin-right: auto;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  height: 70px;
}

.logo img,
.logo a img {
  height: 70px;
  width: auto;
  transition: all 0.3s;
  margin: 0;
  padding: 0;
}

.header-inner .nav,
.header-inner > ul {
  display: flex;
  align-items: center;
}

.header-inner .nav {
  margin-right: 32px;
}

.nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 32px;
}

.nav ul li {
  list-style: none;
  display: flex;
  align-items: center;
}

.header-inner > ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-left: 0;
}

.header-inner > ul li {
  display: flex;
  align-items: center;
  list-style: none;
}

.btn-contact-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 0;
  height: 32px;
  color: var(--white);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
  width: 140px;
  text-align: center;
  font-size: 1rem;
}

.bg-color-main {
  background: var(--main-color);
}

.bg-color-sub {
  background: var(--sub-color);
}



/* =============================
   レスポンシブ（スマホ対応）
============================= */
@media (max-width: 1280px) {
  .header-inner {
    padding: 0 10px;
    height: 60px;
    position: relative;
    overflow: visible;
  }
}

@media (max-width: 1280px) and (min-width: 901px) {
    .logo img {
        height: 60px;
    }
}

@media (max-width: 900px) {
  .header-inner {
    margin: 0 0 !important;
    padding: 0 10px !important;
    min-height: 60px !important;
    height: 60px !important;
    position: relative;
    overflow: visible;
  }
  .logo {
    height: 60px;
  }
  .logo img {
    height: 44px;
  }
  .btn-contact {
    width: 120px;
    font-size: 0.95rem;
    height: 36px;
  }
  
 .btn-contact {
    width: 90vw;
    max-width: 320px;
    height: 40px;
    font-size: 1rem;
    margin: 0 auto 20px;
  }
  /* ロゴの可変 */
  .logo img {
    max-height: 52px !important;
    height: auto;
    width: auto;
  }
}

@media (max-width: 768px) {
  .header {
    height: 46px;
  }
  .header-inner {
    margin: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 0px !important;
    margin: 0 auto !important;
  }
  .logo {
    max-height: 36px !important;
  }
  .logo img, 
  .logo a img {
    height: 36px;
    max-height: 36px !important;
  }
}

/* スマホ専用メニュー項目を非表示（PC） */
.nav ul .sp-only {
  display: none !important;
}

@media (max-width: 900px) {
  .nav ul .sp-only {
    display: flex !important;
  }
}

/* =============================
   タブレット（
============================= */
@media (min-width: 901px) and (max-width: 1294px) {
  .pc-only {
    display: none;
  }

}


@media (max-width: 900px) {  
  .pc-only {
    display: none;
  }
}


.w90 { 
  width: 90%; 
  margin: 0 auto;
}

/* =============================
   お役立ち情報
============================= */
.blog-list {
  background: var(--wall-color-g);
  width: 100%;
  margin: 55px 0 0;
  padding: 60px 0 80px;
  text-align: center;
}

.blog-list P{
  width: 100%;
  margin: 0;
  padding: 35px 0 0;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 700;
}

.card-container {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 30px;
  margin: 40px auto 80px;
}

.card {
  background: #fff;
  width: calc((1280px - 80px) / 3);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 30px;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card-content {
  margin: 0;
  padding: 0;
  width: 100%;
  display: block;
}

.card-content span.tag{
  width: 145px;
  height: 22px;
  display: block;
  font-size: 0.875rem;
  color: var(--white);
  font-weight: 700;
  text-align: center;
  line-height: 22px;
  background: var(--main-color);
  border-radius: 50px;
}

.card-content h3{
  display: block;
  font-weight: 700;
  text-align: left;
  line-height: 1.4;
  margin-top: 5px;
}

.card-content h3 span{
  color: var(--main-color);
}

.card img{ 
  width: 100%;
  margin: 10px 0;
}

.card P{ 
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  padding: 0;
}


/* ▼ 1280px以下（3列） */
@media (max-width: 1280px) {

  .card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px;
    margin: 60px auto;
    width: 100%;
  }

  .card {
    width: calc(92% / 3);
    margin-right: 2%;
  }

  .card:last-child {
    margin-right: 0;
  }
}

@media (min-width: 901px) and (max-width: 1280px) {
  .card-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: left !important;
  }
  .card {
    width: calc((100% - 4%) / 3) !important; /* 余白を調整 */
    margin-right: 2% !important;
    margin-bottom: 40px !important;
  }
  .card-container .card:nth-child(3n) {
    margin-right: 0 !important;
  }
}

/* ▼ 900px以下（1列） */
@media (max-width: 900px) {

  .card-container {
    display: block;
    width: 90%;
    margin: 60px auto;
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
    margin-right: 0 !important;
  }
}

@media (max-width: 640px) {  
  .blog-list {
    width: 100%;
    margin: 140px 0 0;
    padding: 60px 0;
    text-align: center;
    display: block;
  }

  .blog-list P{
    font-size: 1rem;
    text-align: left;
    margin: 0 5%;
    width: 90%;
  }

  .card-container {
    display: block;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px;
    margin: 60px auto;
    width: 90%;
  }

  .card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
  }

}

@media (max-width: 480px) {  

  .blog-list {
    margin: 60px 0 0;
    padding: 60px 0;
    text-align: center;
    display: block;
  }

  .card-content h3{
    font-size: 1rem;
  }

  .blog-list P {
    font-size: 0.875rem;
  }

}

/* =============================
   新着情報
============================= */
.news-section {
  width: 100%;
  margin: 35px 0 0;
  padding: 30px 0 100px;
}

.news-list {
  list-style: none;
  max-width: 1200px;
  margin: 85px auto 60px;
}

/* =============================
   PC（横並び・中央揃え調整）
============================= */
.news-item {
  border-bottom: 1px solid #ddd;
  padding: 22px 18px;
  display: flex;
  align-items: center;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

/* ★カテゴリラベル 共通化 */
.news-item span[class^="news-label"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-right: 24px;
  flex-shrink: 0;
  width: 155px;
  text-align: center;
  line-height: 20px;
}

.news-label01 { background: var(--sub-color); }
.news-label02 { background: var(--main-color); }
.news-label03 { background: var(--accent-color); }

.news-item .news-date {
  margin-right: 24px;
  padding: 4px 0;
}

.news-item .news-text {
  padding: 4px 0;
}

/* =============================
   1200px以下
============================= */
@media screen and (max-width: 1200px) {
  .news-list {
    margin: 60px 20px;
    width: calc(100% - 40px);
  }
}

/* =============================
   1024px以下
============================= */
@media screen and (max-width: 1024px) {
  .news-item {
    padding: 18px 15px;
    font-size: 0.95rem;
  }

  .news-item span[class^="news-label"] {
    width: 140px;
    font-size: 0.8rem;
    margin-right: 20px;
  }

  .news-item .news-date {
    margin-right: 20px;
  }
}

/* =============================
   768px以下（テキストが勝手に横並びになる問題を解決）
============================= */
@media screen and (max-width: 768px) {

  .news-item {
    flex-wrap: wrap;
    align-items: center; /* ★中央揃えに修正 */
    padding: 12px 10px;
  }

  /* ★1行目：カテゴリ＋日付（横並び・中央） */
  .news-item span[class^="news-label"],
  .news-item .news-date {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-bottom: 4px;
    margin-top: 2px;
  }

  .news-item span[class^="news-label"] {
    width: 130px;
    padding: 5px 12px;
    font-size: 13px;
  }

  .news-item .news-date {
    font-size: 12px;
  }

  /* ★2行目：テキストは必ず改行し、上にずれないよう margin-top を調整 */
  .news-item .news-text {
    width: 100%;
    display: block;
    margin-top: 8px; /* ★テキストが上に行かないよう調整 */
    font-size: 14px;
  }


  /* ★1行目：カテゴリ＋日付（横並び） */
  .news-item span[class^="news-label"],
  .news-item .news-date {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    margin-top: 2px;
  }

  /* カテゴリ */
  .news-item span[class^="news-label"] {
    width: 140px;
    padding: 5px 15px;
    font-size: 13px;
    height: 26px;
  }

  /* 日付 */
  .news-item .news-date {
    font-size: 12px;
  }

  /* ★2行目：テキストは必ず改行して全幅へ */
  .news-item .news-text {
    width: 100%;
    display: block;
    margin-top: 6px;
    font-size: 14px;
  }
}

/* =============================
   600px以下（スマホ）
============================= */
@media (max-width: 600px) {
  .news-item {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* ★1行目：カテゴリ＋日付（横並び） */
  .news-item span[class^="news-label"],
  .news-item .news-date {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    margin-right: 10px;
    flex-shrink: 0;
    white-space: nowrap; /* ★折り返し防止 → テキストが押し上がらないように */
  }

  /* ★カテゴリ */
  .news-item span[class^="news-label"] {
    width: 130px;
    height: 24px;
    padding: 2px 0;
    font-size: 12px;
  }

  /* ★日付 */
  .news-item .news-date {
    font-size: 12px;
  }

  /* ★2行目：テキストを必ず下に落とす */
  .news-item .news-text {
    display: block !important;
    width: 100% !important;
    margin-top: 8px !important;
    font-size: 14px;
    clear: both !important;
    order: 99; /* ★テキストを最下段に強制配置 */
  }


  /* ★1行目：カテゴリ＋日付（横並び） */
  .news-item span[class^="news-label"],
  .news-item .news-date {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
    margin-right: 10px;
  }

  /* ★カテゴリ */
  .news-item span[class^="news-label"] {
    width: 130px;
    height: 24px;
    padding: 2px 0;
    font-size: 12px;
  }

  /* ★日付 */
  .news-item .news-date {
    font-size: 12px;
  }

  /* ★2行目：テキストは必ず改行し、横並び禁止 */
  .news-item .news-text {
    width: 100% !important;
    display: block !important;
    margin-top: 6px;
    font-size: 14px;
    clear: both;
  }


  /* 1行目：カテゴリ＋日付 */
  .news-item span[class^="news-label"],
  .news-item .news-date {
    display: inline-flex;
    margin-bottom: 4px;
  }

  .news-item span[class^="news-label"] {
    width: 130px;
    height: 24px;
    font-size: 12px;
    margin-right: 10px;
  }

  .news-item .news-date {
    font-size: 12px;
  }

  .news-item .news-text {
    width: 100%;
    margin-top: 4px;
    font-size: 14px;
  }
}

/* =============================
   420px以下
============================= */
@media screen and (max-width: 420px) {
  .news-section {
    padding: 30px 0 40px;
  }

  .news-item {
    font-size: 0.85rem;
  }

  .news-item span[class^="news-label"] {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .news-item .news-date {
    font-size: 0.8rem;
  }
}



/* =============================
   共通お問い合わせ部
============================= */
.contact-section {
  width: 100%;
  margin: 0px 0 0;
  padding: 30px 0;
  background: var(--main-bg-image) no-repeat center top;
  background-size: cover;
}

.contact-section h2{
  width: 100%;
  margin: 20px 0 0;
  text-align: center;
  color: var(--white);
  font-size: 2.25em;
}

.contact-section p{
  width: 100%;
  margin: 5px 0 0;
  text-align: center;
  color: var(--white);
  font-size: 1.25rem;
}

.contact-section p .sp-only {
  display: none;
}

.contact-grid{
  width: 1102px;
  margin: 25px auto;
  display: flex;
}

.contact-card{
  margin: 0px 30px 0 0;
  background: #fff;
  width: calc((1102px - 60px) / 3);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 10px 50px 20px;
  box-sizing: border-box;
}

.contact-card:last-child{
  margin: 0px 0px 0 0;
}

.contact-card img{
  margin: 0;
  display: block;
  width: 100%;
}

.contact-card h3{
  margin: 0;
  display: block;
  background: var(--main-color);
  font-weight: 800;
  font-size: 1.0625rem;
  text-align: center;
  width: 100%;
  height: 55px;
  line-height: 55px;
  border-radius: 50px;
  position: relative;
}

.contact-card h3::after {
  position: absolute;
  font-size: 22px;
  font-family: "Font Awesome 5 Free";
  content: '\f138';
  font-weight: 600;
  color: var(--white);
  right: 20px;
  top: 0;

}

.contact-card h3 a{
  color: #FFF;
  display: block;
}

.contact-card p{
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 600;
  color: var(--dark);
}

span.freetel a{
  font-size: 1.4375rem;
}

/* ▼ 1200px以下（大画面ノートPC） */
@media screen and (max-width: 1200px) {
  .contact-grid {
    width: 96%;
    gap: 25px;
  }

  .contact-card {
    width: calc((100% - 40px) / 3);
    padding: 10px 20px 20px;
  }

  .contact-card img {
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }

}

/* ▼ 1024px以下（タブレット横） */
@media screen and (max-width: 1024px) {
  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-section p {
    font-size: 1.125rem;
  }

  .contact-section p .sp-only {
    display: none;
  }

  .contact-grid {
    width: 96%;
    gap: 20px;
  }

  .contact-card {
    width: calc((100% - 20px) / 3);
    padding: 10px 10px 20px;
  }
  
  .contact-card {
    margin-right: 10px;
  }

  .contact-card h3 {
    font-size: 90%;
  }

  .contact-card img {
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }

  .contact-card p {
    font-size: 80%;
    white-space: nowrap;
  }

}

/* ▼ 768px以下（タブレット縦） */
@media screen and (max-width: 768px) {
  .contact-section {
    padding: 30px 5%;
    background: var(--main-bg-image) repeat-y center top;
  }

  .contact-section h2 {
    font-size: 1.5rem;
  }

  .contact-section p {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .contact-section p .sp-only {
    display: block;
  }

  .contact-grid {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 25px;
  }

  .contact-card {
    width: 100%;
    max-width: 500px;
    padding: 15px 40px 25px;
  }

  .contact-card {
    margin-right: 0;
  }

  .contact-card img {
    margin: 0 auto;
    text-align: center;
  }

  .contact-card h3 {
    font-size: 1rem;
    height: 50px;
    line-height: 50px;
  }

  .contact-card p {
    font-size: 0.9rem;
  }

  .contact-card p span {
    font-size: 1.25rem;
  }
}

/* ▼ 480px以下（スマホ） */
@media screen and (max-width: 480px) {
  .contact-section {
    width: 100%;
    margin: 0px 0 0;
    padding: 40px 5% 15px;
    background: var(--main-bg-image) repeat-y center top;
  }

  .contact-section h2 {
    margin: 0px 0 0;
    font-size: 1.25rem;
  }

  .contact-section p {
    font-size: 0.95rem;
  }

  .contact-section p .sp-only {
    display: block;
  }

  .contact-card {
    padding: 15px 25px 25px;
  }

  .contact-card h3 {
    font-size: 0.95rem;
  }

  .contact-card p {
    font-size: 0.85rem;
  }

  .contact-card p span {
    font-size: 1.1rem;
  }
}


/* ▼ 420px以下（スマホ） */
@media screen and (max-width: 420px) {
  .contact-section h2 {
    font-size: 1rem;
  }

  .contact-section p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

}


/* ▼ 360px以下（小型スマホ） */
@media screen and (max-width: 360px) {
  .contact-card {
    padding: 10px 20px 20px;
  }

  .contact-card h3 {
    font-size: 0.9rem;
  }

  .contact-card p {
    font-size: 0.8rem;
  }
}



/* =============================
   フッター
============================= */
.footer {
  background: var(--wall-color-b);
  color: var(--white);
  padding: 70px 0;
}

.footer-contact {
  width: 1280px;
  margin: 0 auto;
}

.footer-contact .f-logo img{
  width: 150px;
  height: auto;
  margin-top: 0px;
  margin-bottom: 60px;
}

.footer p {
  margin-bottom: 40px;
  font-size: 1.125rem;
}

.footer p a{
  color: var(--white);
}

.footer p .sp-only{
  display: none;
}

.footer p.copy {
  font-size: 0.875rem;
}

/* ▼ 1200px以下（ノートPC） */
@media screen and (max-width: 1280px) {
  .footer-contact {
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
}

/* ▼ 1024px以下（タブレット横） */
@media screen and (max-width: 1024px) {
  .footer {
    padding: 60px 0;
  }

  .footer-contact {
    width: 90%;
  }

  .footer-contact .f-logo img {
    width: 130px;
    height: auto;
    margin-bottom: 40px;
  }

  .footer p {
    font-size: 0.875rem;
    margin-bottom: 30px;
  }

  .footer p .sp-only{
    display: none;
  }

  .footer p.copy {
    font-size: 0.85rem;
  }
}

/* ▼ 768px以下（タブレット縦） */
@media screen and (max-width: 768px) {
  .footer {
    padding: 50px 0;
  }

  .footer-contact {
    width: 92%;
  }

  .footer-contact .f-logo img {
    width: 120px;
    height: auto;
    margin-bottom: 40px;
  }

  .footer p {
    font-size: 0.875rem;
    margin-bottom: 25px;
  }

  .footer p .sp-only{
    display: block;
    line-height: 1.6;
  }

  .footer p.copy {
    font-size: 0.8rem;
  }
}

/* ▼ 480px以下（スマホ） */
@media screen and (max-width: 480px) {
  .footer {
    padding: 40px 0;
  }

  .footer-contact {
    width: 90%;
    padding: 0;
  }

  .footer-contact .f-logo img {
    width: 100px;
    height: auto;
    margin-bottom: 40px;
  }

  .footer p,
  .footer a {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  .footer p.copy {
    font-size: 0.6rem;
  }
}

/* ▼ 420px以下（スマホ） */
@media screen and (max-width: 420px) {
  
  .footer-contact .f-logo img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
  }

  .footer p,
  .footer a {
    font-size: 0.8125rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}


/* ▼ 360px以下（小型スマホ） */
@media screen and (max-width: 360px) {
  .footer {
    padding: 35px 0;
  }

  .footer p {
    font-size: 0.75rem;
    margin-bottom: 15px;
  }

  .footer p.copy {
    font-size: 0.6rem;
  }
}



/* ----------------------------------------------------------------- */
/* 連絡ボタンのグループ設定 */
/* ----------------------------------------------------------------- */
.fixed-contact-group {
  position: fixed;
  right: 0;
  top: 40%;
  display: flex;
  writing-mode: vertical-rl;
  z-index: 999; 
}

/* ▼ 480px以下（スマホ） */
@media screen and (max-width: 480px) {
  .fixed-contact-group {
    position: fixed;
    right: 0;
    bottom: 30%;
    display: flex;
    writing-mode: vertical-rl;
    z-index: 999; 
  }
}





/* ----------------------------------------------------------------- */
/* ページTOP設定 */
/* ----------------------------------------------------------------- */
#page_top {
width: 50px;
height: 50px;
position: fixed;
right: 10px;
bottom: 20px;
background: var(--main-color);
border-radius: 50%;
opacity: 0.6;
}

/* Font Awesome */
#page_top::before {
font-family: "Font Awesome 5 Free";
font-weight: 900;
content: '\f0d8';
font-size: 40px;
color: rgb(255, 255, 255);
position: absolute;
top: 50%;
left: 50%;
translate: -50% -50%;
}

@media (max-width: 900px) {
  #page_top {
    display: none;
  }
}


/* ============================================== */
/* 固定お問い合わせボタン */
/* ============================================== */
.contact-button {
  /* ボタンの共通スタイル */
  display: block; 
  padding: 15px 10px;
  margin-bottom: 10px;
  text-align: center;
  text-decoration: none;
  font-size: 1.0rem;
  font-weight: bold;
  color: var(--white);
  border-radius: 8px 0 0 8px;
  font-family: monospace;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

/* アイコンの調整 */
.contact-button i {
  margin-left: -5px;
}

/* 資料請求ボタン（色を設定） */
.contact-button.materials {
  background: var(--main-color);
}

/* お問い合わせボタン（色を設定） */
.contact-button.contact {
  background: var(--sub-color);
}


@media (min-width: 601px) and (max-width: 900px) {
  .contact-button {
    padding: 10px 5px;
    font-size: 0.875rem;
  }
}


@media (max-width: 768px) {
    .fixed-contact-group {
        position: fixed !important; 
        bottom: 0 !important;       
        top: auto !important;      /* PC側の top:40% を解除 */
        left: 0 !important; 
        right: 0 !important; 
        width: 100%;
        z-index: 9999;
        display: flex !important; 
        flex-direction: row !important; 
        justify-content: flex-start; 
        align-items: stretch;
        border-top: 1px solid #ddd;
        background-color: #fff;
        padding: 0;
        margin: 0; 
        height: auto;
    }

    .fixed-contact-group .contact-button {
        display: flex !important; 
        width: 50% !important; 
        flex-basis: 50%; 
        flex-grow: 0; 
        flex-shrink: 0; 
        writing-mode: horizontal-tb !important; 
        white-space: nowrap; 
        border-radius: 0; 
        margin-bottom: 0 !important; 
        flex-direction: row; /* 横並びに変更 */
        align-items: center; /* 垂直方向中央寄せ */
        justify-content: center; /* 水平方向中央寄せ */
        padding: 10px 0; 
        font-size: 14px; 
        border-right: 1px solid rgba(255, 255, 255, 0.2); 
        position: static; 
        left: auto;
        right: auto;
    }
    
    .fixed-contact-group .contact-button:last-child {
        border-right: none;
        position: absolute;
        bottom: 0;
        right: 0;
    }
    .fixed-contact-group .contact-button:first-child {
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .contact-button i {
        margin: 0; 
        margin-right: 5px; /* アイコンとテキストの間に少しスペース */
        order: 0; /* デフォルトの順序（テキストより前）*/
        font-size: 18px;
    }
}


