/* =========================
   Reset
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kosugi Maru', sans-serif;
  /*font-family: "Noto Sans JP", "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
*/
  line-height: 1.6;
  color: #333;
background:
  url("../images/bannerimage/bg.png") repeat-x top center,
  repeating-linear-gradient(
    45deg,
    rgba(255, 228, 236, 0.6) 0 20px,
    rgba(255, 255, 255, 0.6) 20px 40px
  ),
  linear-gradient(
    to bottom,
    #4b3f64 0%,
    #f7bee6 20%,
    #f9f0f2 50%,
    #f9f0f2 100%
  );
background-repeat: repeat-x, repeat, no-repeat;
background-position: top center, top left, top center;
background-size: auto, auto, 100% 100%;
}

/* =========================
   Header
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 1rem;
}
header.scrolled {
  background-color: #ff5874 !important;
}
header .logo {
  display: none !important;
}

.logo img {
  height: 40px;
  transition: transform 0.3s ease;
}

/* =========================
   Navigation
========================= */
nav ul,
.pc-nav {
  display: none !important; /* 常時非表示 */
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}

/* ハンバーガー常時表示・右上固定・丸・影なし */
.hamburger {
  position: fixed !important;
  top: 10px !important;
  right: 20px !important;
  z-index: 1100 !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  width: 48px !important;
  height: 48px !important;
  border: none !important;
  border-radius: 50% !important;
  background-color: #5bc0de !important;
  box-shadow: none !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block !important;
  width: 22px !important;     /* 線の長さ */
  height: 3px !important;     /* 線の太さ */
  margin: 3px 0 !important;   /* 線の間隔 */
  background: #fff !important;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* モバイルメニュー */
.mobile-nav {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;

  display: none;
  flex-direction: column;
  min-width: 220px;
  padding: 1rem;
  background: #333;
  border-radius: 8px;
}
.mobile-nav.active {
  display: flex;
}
.mobile-nav li {
  border-bottom: 1px solid #eee;
}
.mobile-nav a {
  display: block;
  padding: 0.4rem 0;
  color: #fff;
  text-decoration: none;
}

/* =========================
   Hero 2カラム（左：h1 / 右：#services）
========================= */
.hero-wrap{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  max-width:1000px;
  width:100%;
  margin:100px auto 24px;
  padding:30px;                 /* ←白枠内余白 */
  background:#fff;
  border-radius:30px;
  border:8px solid #fff;
  box-shadow:0 0 0 8px #ffd5de;
  box-sizing:border-box;
}

/* PC：1fr 1fr → 500pxずつではなく可変 */
@media(min-width:1025px){
  .hero-wrap{
    grid-template-columns:1fr 1fr;
  }
}

/* スマホ縦積み */
@media(max-width:1024px){
  .hero-wrap{
    grid-template-columns:1fr;
    margin:90px auto 16px;
    padding:40px 20px !important;
    box-shadow:none;
    border:4px solid #fff;
  }
}


/* ロゴ枠を厳密に正方形・隙間なしに */
.corner-logo {
  position: absolute;
  top: -70px;     /* お好みで */
  left: -30px;
  width: 150px;
  height: 150px;
  overflow: hidden;
  border-radius: 8px;
  background: #66d9ef;                  /* ロゴの水色に近い色（透過縁のマスク） */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
/* スマホ縦積み */
@media(max-width:1024px){
.corner-logo {
  left: 6px;
}
}

.corner-logo img {
  position: absolute;
  inset: 0;                             /* top/right/bottom/left: 0 */
  display: block;                       /* 行間の隙間対策 */
  width: 100%;
  height: 100%;
  object-fit: cover;                    /* 正方形いっぱいにトリミング */
}

/* h1（左側） */
.main-title {
  margin: 0;
}
.main-title img{
  display:block;
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:8px;
  border:#ffd5de 2px solid;
}
@media(min-width:1025px){
  .main-title{
    margin-right:10px;
  }
}
@media(max-width:1024px){
.main-title img{
  margin-bottom:10px;
}
}

/* services（右側） */
#services {
  margin: 0;
  padding: 0;
}

/* 右カラム 2列×3 */
#services .samplebanner{
  display:grid !important;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}


#services .samplebanner .thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  overflow: visible;
  border-radius: 8px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
  will-change: transform;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#services .samplebanner .thumb:hover {
  transform: scale(1.06);
  z-index: 10;
  box-shadow: none;                    /* 影を消す */
  border: 2px solid #fff;              /* 白い2pxの枠 */
}


/* 画像を枠にフィットさせる */
#services .samplebanner .thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                 /* そのまま cover でOK */
  border-radius: inherit;            /* 枠の角丸を継承 */
  transition: none;                  /* 拡大は .thumb に任せる */
}
#services .samplebanner .thumb > img:hover {
  transform: none; /* 既存にあれば打ち消し */
}

/* 6枚で止める（7枚目以降を非表示） */
#services .samplebanner > :nth-child(n + 7) {
  display: none !important;
}

/* スマホ時（右カラムが下に落ちた後も同じ比率で2列） */
@media (max-width: 1024px) {
  #services .samplebanner {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .hero-wrap {
    grid-template-columns: 1fr;         /* 縦積み */
    max-width: min(100%, 1000px);       /* 画面幅に追従 */
    margin: 90px auto 16px;
    padding: 0 10px;                    /* スマホ左右に少し余白 */
  }

  /* h1 はセンタリング＆横幅100% */
  .main-title {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-self: center;               /* グリッド内中央 */
  }
  .main-title img {
    max-width: 100%;                    /* 画像も100%で追従 */
  }

  /* services はその下に2列表示のまま */
  #services {
    width: 100%;
    justify-self: center;               /* 中央寄せ */
  }
  #services .samplebanner {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}


/* =========================
   Section共通
========================= */
section {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
section h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;

  margin: 2rem auto;
  padding: 0.9rem 1.6rem;

  color: #fff;
  font-size: 1.4em;
  font-weight: bold;
  text-align: center;

  background-color: #ff5874;
  background-image: url("../images/bgimage/go.png");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: auto;

  border: 2px solid #ff8b9a;
  border-radius: 50px;

  box-shadow: 0 5px 0 #c7434f, 0 6px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
section h2:hover {
  background-color: #ff708b;
  transform: translateY(2px);
  box-shadow: 0 3px 0 #b53b48, 0 4px 6px rgba(0, 0, 0, 0.2);
}
section h2:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #a02f3c;
}
section h2 i {
  color: #fff;
  font-size: 1.3em;
}

h4 {
  margin: 30px 0;
  font-weight: bold;
  font-size: 1.2em;
}

/* =========================
   ギャラリー（汎用）
========================= */
.samplebanner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: auto;
}
.samplebanner img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.samplebanner img:hover {
  transform: scale(1.03);
}

/* =========================
   モーダル
========================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
}
.modal.active {
  display: flex;
}

.modal-content {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;

  max-width: 90vw;
  max-height: calc(100vh - 80px);
  padding: 16px 16px 12px;

  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  line-height: 0;
}
#image-modal .modal-content img {
  display: block;
  width: 100%;
  max-width: min(90vw, 900px);
  height: auto;
  max-height: calc(100vh - 140px);
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;

  font-size: 1.5rem;
  color: #fff;

  background: #5bc0de;
  border: 2px solid #ccc;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.close-btn:hover {
  background: #ff5874;
  border-color: #ff5874;
}

/* ==== モーダル矢印ボタン ==== */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  cursor: pointer;
  z-index: 1000;
  margin-left: env(safe-area-inset-left, 0px);
  margin-right: env(safe-area-inset-right, 0px);
}
/* 画面端配置 */
#image-modal .prev-btn{ left:2%; }
#image-modal .next-btn{ right:2%; }

/* 矢印ボタンデザイン */
.circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.circle-btn i {
  font-size: 16px;
  line-height: 1;
  pointer-events: none;
}

/* ==============================
   モーダル画像フェード演出
============================== */
#image-modal img {
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#image-modal img.fade-in {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
}

/* =========================
   chat layout
========================= */
.dialog-text{
  font-size:17px;
  line-height:1.8;
}
.dialog-text strong{
  color:#ff8fb3;
  font-weight:600;
}
.chatspace {
  max-width: none; 
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
  margin-top: 60px;
  margin-bottom: 120px;
  padding: 0;
  padding-bottom: 40px;
  box-sizing: border-box;
  overflow-x: hidden;
  border-top: 6px solid #ffd5de;
  border-bottom: 6px solid #ffd5de;
}

.chatspace-inner{
 max-width:1200px;
  margin: 0 auto;
  padding: 2rem;
}

.chat{
  display:flex;
  align-items:flex-start;
  max-width:800px;
  margin:40px auto;
}

/* アイコン基礎 */
.icon{
  width:180px;
  height:180px;
  object-fit:cover;
  border-radius:50%;
}

.chat.rozeris .icon{
  border:6px solid #ff8383;
  box-shadow:
    0 0 0 10px #ffd5de,
    0 0 0 14px #ffeef2;
}
.chat.sian .icon{
  border:6px solid #5bc0de;
  box-shadow:
    0 0 0 10px #b8e9f7,
    0 0 0 14px #e8faff;
}

/* =========================
   bubble (ベース)
========================= */
.bubble{
  position:relative;
  max-width:600px;
  padding:25px 30px;
  font-size:16px;
  line-height:1.7;
  border-radius:60px;   /* ←角丸強化 */
}

/* ロゼリス（左） */
.chat.rozeris .bubble{
  background:#ffeaea;
  border:6px solid #ff8383;
  box-shadow:
    inset 0 0 0 6px #ffd5de,
    inset 0 0 0 12px #ffeef2;
  margin-left:20px;
  padding-left:110px;
}

/* しあん（右） ※反転 */
.chat.sian{
  flex-direction:row-reverse;
}
.chat.sian .bubble{
  background:#e6fdff;
  border:6px solid #5bc0de;
  box-shadow:
    inset 0 0 0 6px #b8e9f7,
    inset 0 0 0 12px #e8faff;
  margin-right:20px;
  padding-right:110px;
}

/* =========================
   名前丸（●）
========================= */
.point-label{
  position:absolute;
  top:-30px;   /* バブル上に浮く */
  left:50%;
  transform:translateX(-50%);
  width:110px;
  height:110px;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:20px;
  font-weight:bold;
  color:#fff;
  z-index:3;
}

/* ロゼリス色 */
.chat.rozeris .point-label{
  background:#ff8383;
}

/* しあん色 */
.chat.sian .point-label{
  background:#5bc0de;
}

/* PC配置： ロゼリス＝右上 / しあん＝左上  */
.chat.rozeris .point-label{
  top:-20px;
  left:40px;
  right:auto;
   box-shadow:0 0 0 8px #ffd5de;
}

.chat.sian .point-label{
  top:-20px;
  left:auto;
  right:-70px;
  box-shadow:0 0 0 8px #b8e9f7;
}

/* =========================
   尻尾（さんかく型）
========================= */
.chat.rozeris .bubble::after{
  content:"";
  position:absolute;
  left:-30px; top:95px;
  width:30px;height:34px;
  background:#ff8383;
  clip-path:polygon(0% 50%,100% 0%,100% 100%);
  z-index:5;
}
.chat.sian .bubble::after{
  content:"";
  position:absolute;
  right:-30px; top:95px;
  width:30px;height:34px;
  background:#5bc0de;
  clip-path:polygon(0% 0%,100% 50%,0% 100%);
  z-index:5;
}


/* =========================================================
   スマホ（～768px）：レイアウト変更＋三角削除＋文字位置調整
========================================================= */
@media (max-width: 768px) {

  .point-label {
    position: absolute !important;
    top: -20px !important;         /* ← この高さで調整 */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 140px !important;       /* ← 幅を少し広めに */
    height: auto !important;       /* ← 高さは自動 */
    padding: 10px 16px !important; /* ← 内側余白 */
    border-radius: 16px !important;/* ← 四角＋角丸 */
    background: #ff8383 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: bold;
    box-shadow: 0 0 0 6px #ffd5de !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 5;
  }

  /* しあん用カラー（もし必要なら） */
  .chat.sian .point-label {
    background: #5bc0de !important;
    box-shadow: 0 0 0 6px #b8e9f7 !important;
  }

  /* 吹き出しとアイコンを縦に配置 */
  .chat {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  /* アイコンを上、吹き出しを下に */
  .chat .icon {
    order: 1 !important;
    margin-bottom: 12px !important;
  }
  .chat .bubble {
    order: 2 !important;
    padding: 30px 20px !important;
    margin: -10px 0 0 0!important;
    text-align: left !important; /* ←左寄せ or centerに変更可 */
  }

  /* 三角▲削除（完全非表示） */
  .bubble::after {
    display: none !important;
  }


  /* テキストの内側マージン調整 */
  .dialog-text {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 左右反転レイアウトを解除 */
  .chat.sian {
    flex-direction: column !important;
  }

  /* 吹き出し全体の幅を狭めて可愛く */
  .bubble {
    max-width: 90% !important;
    border-radius: 30px !important;
  }
}







/* =========================
   固定お問い合わせボタン
========================= */
.callme {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 100;
  margin: 0;
  padding: 0;
  opacity: 0.85;
}
.callme a {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  max-width: 240px;
  margin: 0 auto;
  padding: 20px 25px 10px;

  color: #fff;
  font-weight: 600;
  text-decoration: none;

  background: #5bc0de;
  border-radius: 8px;
  border-bottom: solid 5px #428ac7;

  transition: 0.3s ease-in-out;
}
.callme a span {
  position: absolute;
  top: -15px;

  width: 80%;
  padding: 3px 0;

  color: #428ac7;
  font-size: 0.8rem;
  text-align: center;

  background: #ffff00;
  border-radius: 5px;
  filter: drop-shadow(0px 1px 2px #aaa);
}
.callme a span:after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top: 5px solid #ffffff;
}
.callme a:hover {
  transform: translateY(3px);
  border-bottom: solid 2px #428ac7;
}

/* =========================
   下部中央ボタン（制作内容を確認する）
========================= */
.confirm-button {
  width: 100%;
  text-align: center;
  margin: -160px 0 60px; /* ページ下に余裕を持たせる */
}

.confirm-button a {
  display: inline-block;
  background: #ff5874;
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 5px 0 #c7434f, 0 6px 10px rgba(0,0,0,.2);
  border: 2px solid #ff8b9a;
  transition: all 0.25s ease-in-out;
}

.confirm-button a:hover {
  background: #ff708b;
  transform: translateY(2px);
  box-shadow: 0 3px 0 #b53b48, 0 4px 6px rgba(0,0,0,.2);
}

.confirm-button a:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #a02f3c;
}

/* =========================
   フッター装飾（可愛いバルーン風）
========================= */
footer {
  position: relative;
  background: #817daf; /* ベース色（紫） */
  color: #fff;
  font-size:80%;
  text-align: center;
  padding: 40px 20px;
  overflow: hidden; /* バルーンがはみ出ないように */
}

/* 円の装飾 */
footer::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 280px;

  background:
    radial-gradient(circle at 10% 60%, #ffa9c0 0 60px, transparent 61px),
    radial-gradient(circle at 30% 40%, #ffd580 0 45px, transparent 46px),
    radial-gradient(circle at 55% 70%, #ffb3a7 0 55px, transparent 56px),
    radial-gradient(circle at 80% 35%, #ffcece 0 70px, transparent 71px),
    radial-gradient(circle at 95% 60%, #ffe6a7 0 50px, transparent 51px),
    radial-gradient(circle at 70% 80%, #ffc4e3 0 40px, transparent 41px),
    radial-gradient(circle at 15% 90%, #ffd9b3 0 35px, transparent 36px);

  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.6; /* 柔らかい印象に */
  z-index: 1;
}

/* フッター本文を前面に */
footer * {
  position: relative;
  z-index: 2;
}

/* 文字部分のスタイルを整える */
footer a {
  color: #fff;
  text-decoration: underline;
  font-weight: 500;
}
footer a:hover {
  text-decoration: none;
  opacity: 0.8;
}
footer img {
  margin: 20px 0;
}


/* =========================
   Responsive
========================= */


/* ==== ナビ動作の保険（必ず末尾に追記） ==== */
#mobileNav.active {
  display: flex !important;
}
#mobileNav {
  z-index: 4000 !important;
}
#hamburger {
  z-index: 4001 !important;
}

/* モバイルメニューのクリックを邪魔しないように */
#mobileNav,
#hamburger {
  pointer-events: auto !important;
}

