*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  min-height:100vh;
  overflow-x:hidden;
  background:#8ad4e0 url('img/pc_bg_another.jpg') repeat-y center top;
  background-size:100% auto;
}

/* === PC Background (fixed room illustration) === */
.pc-bg{
  position:fixed;
  top:0;left:0;
  width:100%;
  height:100vh;
  background:url('img/pc_main-bg.jpg') center top no-repeat;
  background-size:100% auto;
  z-index:0;
  pointer-events:none;
}

/* === Page wrapper === */
.page-wrapper{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  min-height:100vh;
}

/* === Side Navigation (PC only) === */
.side-nav{
  position:fixed;
  left:calc(50% - 540px);
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:10;
}
.side-nav a{
  display:block;
  width:150px;
  text-decoration:none;
  transition:opacity 0.3s;
}
.side-nav a:hover{
  opacity:0.75;
}
.side-nav a img{
  width:100%;
  height:auto;
  display:block;
}

/* === SP Hamburger Menu（PCでは非表示。実体はSPブレイクポイント内で定義） === */
.sp-menu-btn,
.sp-nav,
.sp-nav-overlay{
  display:none;
}

/* === Main Area === */
.main-area{
  position:relative;
  width:660px;
  flex-shrink:0;
  background:url('img/main-area-bg_another.jpg') repeat-y center top;
  background-size:100% auto;
  overflow:visible;
}
.fv-section{
  position:relative;
  width:100%;
  /* aspect ratio from fv_main-bg.jpg: 990x1620 */
  aspect-ratio:990/1620;
  overflow:visible;
  /* 3分割した背景画像のさらに背後（特に一番下の継ぎ目）を白背景に */
  background-color:#fff;
}

/* 背景（fv_main-bg.jpg を上から3分割: 01=136px, 02=530px, 03=954px / 全体1620px） */
.fv-bg-slice{
  position:absolute;
  left:0;
  width:100%;
  z-index:0;
  overflow:hidden;
}
.fv-bg-slice img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
.fv-bg-slice--01{
  top:0;
  height:8.3951%; /* 136/1620 */
}
.fv-bg-slice--02{
  top:8.3951%; /* 136/1620 */
  height:32.716%; /* 530/1620 */
}
.fv-bg-slice--03{
  top:41.1111%; /* 666/1620 */
  height:58.8889%; /* 954/1620 */
}

/* fv_main-bg_02.jpg（Illust Life ロゴ部分）: マジックペンの先端がジグザグ（斜め上・斜め下を繰り返し）に軌跡を描き、
   その軌跡に沿って画像が現れる表示アニメーション。
   帯10本のジグザグ・stroke-widthは「対角線が帯の四隅まで届く太さ(≒帯の高さ×2)」で計算し、隙間なく全面を覆う */
.fv-pen-reveal{
  display:block;
  width:100%;
  height:100%;
}
.fv-pen-path{
  stroke-dasharray:10000;
  stroke-dashoffset:10000;
  animation: fvPenDraw 1.5s ease-in-out 0.3s forwards;
}
@keyframes fvPenDraw{
  to{ stroke-dashoffset:0; }
}

/* === Character & Element Positioning === */
.fv-penguin{
  position:absolute;
  width:42%;
  top:-6%;
  left:-4%;
  z-index:5;
  pointer-events:none;
  animation:
    fvPenguinEnter 0.9s ease-out forwards,
    fvPenguinFloat 5s ease-in-out 0.9s infinite;
}
.fv-penguin img{
  width:100%;
  height:auto;
  display:block;
}

@keyframes fvPenguinEnter{
  0%{
    transform:translate(-60px,-60px);
    opacity:0;
  }
  100%{
    transform:translate(0,0);
    opacity:1;
  }
}

@keyframes fvPenguinFloat{
  0%,100%{
    transform:translate(0,0);
  }
  50%{
    transform:translate(-14px,-14px);
  }
}

.fv-girl{
  position:absolute;
  width:50%;
  bottom:30%;
  left:-8.5%;
  z-index:3;
  pointer-events:none;
}
.fv-girl img{
  width:100%;
  height:auto;
  display:block;
}

.fv-monster{
  position:absolute;
  width:58%;
  bottom:32%;
  right:-12%;
  z-index:3;
  pointer-events:none;
}
.fv-monster img{
  width:100%;
  height:auto;
  display:block;
}

.fv-catch{
  position:absolute;
  width:54%;
  bottom:28%;
  left:50%;
  transform:translateX(-50%);
  z-index:4;
  pointer-events:none;
}
.fv-catch img{
  width:100%;
  height:auto;
  display:block;
}

/* ============================================
   === Message Section
   ============================================ */
.message-section{
  width:100%;
  padding: 60px 0 140px;
}
.message-inner{
  display:flex;
  flex-direction:column;
  gap:56px;
  padding:0 48px;
}

/* --- 各ブロック --- */
.message-block{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  opacity:0;
  transform:translateY(32px);
  transition:opacity 0.7s ease, transform 0.7s ease;
}
.message-block.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* --- 見出し（背景画像をimgで配置） --- */
.message-heading{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:420px;
  max-width:100%;
  margin:0 auto;
}
.msg-bg-img{
  display:block;
  width:100%;
  height:auto;
}
.message-heading span{
  position:absolute;
  left:0;right:0;
  top:50%;
  transform:translateY(-50%);
  text-align:center;
  font-family:'M PLUS 1',sans-serif;
  font-size:26px;
  font-weight:500;
  color:#ffffff;
  letter-spacing:0.1em;
  line-height:1.2;
  pointer-events:none;
  padding:0 16px;
  white-space:nowrap;
}

/* --- 本文 --- */
.message-body{
  font-family:'Noto Sans JP',sans-serif;
  font-size:18px;
  color:#555555;
  line-height:2;
  letter-spacing:0.05em;
  text-align:center;
}

/* ============================================
   === Works Section
   ============================================ */
.works-section{
  position:relative;
  width:100%;
  margin-top:60px;
}

/* --- ペンギン2（レイヤー下） --- */
.works-penguin{
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:360px;
  z-index:0;
  pointer-events:none;
  will-change:transform;
}
.works-penguin img{
  width:100%;
  height:auto;
  display:block;
}

/* --- 吹き出し --- */
.penguin-hukidashi{
  position:absolute;
  top:-10%;
  right:-30%;
  width:55%;
  opacity:0;
  transform:scale(0.5);
  transition:opacity 0.4s ease, transform 0.4s ease;
  pointer-events:none;
}
.penguin-hukidashi.is-visible{
  opacity:1;
  transform:scale(1);
}
.penguin-hukidashi img{
  width:100%;
  height:auto;
  display:block;
}

/* --- フレーム --- */
.works-frame-up,
.works-frame-down{
  position:relative;
  z-index:2;
  width:100%;
  line-height:0;
}
.works-frame-up img,
.works-frame-down img{
  width:100%;
  height:auto;
  display:block;
}

/* --- 白背景コンテンツ --- */
.works-content{
  position:relative;
  z-index:2;
  background:#ffffff;
  padding:20px 0 50px;
}

/* --- タイトル --- */
.works-title{
  text-align:center;
  margin-bottom:36px;
}
.works-title img{
  width:224px;
  height:auto;
  display:inline-block;
}

/* --- スライダー --- */
.works-slider-wrap{
  width:100%;
  overflow:hidden;
  position:relative;
  cursor:grab;
}
.works-slider-wrap:active{
  cursor:grabbing;
}
.works-slider{
  display:flex;
  gap:20px;
  transition:none;
  will-change:transform;
  user-select:none;
}
.works-slide{
  flex-shrink:0;
  width:280px;
  background:#bddce8;
  border-radius:4px;
  padding:16px;
  min-height:200px;
}
.works-slide img{
  width:100%;
  height:240px;
  display:block;
  border-radius:2px;
  background:#fff;
  object-fit:contain;
  -webkit-user-drag:none;
}

/* --- ドット --- */
.works-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:28px;
}
.works-dot{
  width:12px;
  height:12px;
  border-radius:50%;
  background:#bddce8;
  cursor:pointer;
  transition:background 0.3s;
}
.works-dot.active{
  background:#4e7f96;
}

/* --- ボタン --- */
.works-btn-wrap{
  text-align:center;
  padding:54px 32px 0;
}
.works-btn{
  display:inline-block;
  transition:opacity 0.3s;
}
.works-btn:hover{
  opacity:0.7;
}
.works-btn img{
  height:21px;
  width:auto;
  display:block;
}

@keyframes worksBtnPulse{
  0%{transform:scale(1);}
  10%{transform:scale(1.1);}
  20%{transform:scale(1);}
  100%{transform:scale(1);}
}

@media(min-width:768px){
  .works-btn img{
    height:25.2px;
    animation:worksBtnPulse 4s ease-in-out infinite;
  }
}

/* ============================================
   === Flow Section
   ============================================ */
.flow-section{
  position:relative;
  width:100%;
  background:url('img/flow_bg_main.jpg') no-repeat center top;
  background-size:100% auto;
  padding:60px 0 80px;
}

/* --- タイトル --- */
.flow-title{
  text-align:center;
  margin-bottom:16px;
}
.flow-title img{
  width:224px;
  height:auto;
  display:inline-block;
}

/* --- サブタイトル --- */
.flow-subtitle{
  text-align:center;
  font-family:'Noto Sans JP',sans-serif;
  font-size:18px;
  color:#555;
  letter-spacing:0.05em;
  margin-bottom:40px;
}

/* --- ステップイラスト（1枚絵） --- */
.flow-illust{
  padding:0 40px;
}
.flow-illust img{
  width:100%;
  height:auto;
  display:block;
}

/* ============================================
   === Price Section
   ============================================ */
.price-section{
  position:relative;
  width:100%;
}

/* --- フレーム --- */
.price-frame-up,
.price-frame-down{
  position:relative;
  z-index:2;
  width:100%;
  line-height:0;
}
.price-frame-up img,
.price-frame-down img{
  width:100%;
  height:auto;
  display:block;
}

/* --- 白背景コンテンツ --- */
.price-content{
  background:#ffffff;
  padding:40px 60px 56px;
}

/* --- タイトル --- */
.price-title{
  text-align:center;
  margin-bottom:44px;
}
.price-title img{
  width:224px;
  height:auto;
  display:inline-block;
}

/* --- 料金テーブル --- */
.price-list{
  width:100%;
}
.price-item{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  padding:18px 0;
  border-bottom:1.5px dashed #a8c8d8;
}
.price-item:first-child{
  border-top:1.5px dashed #a8c8d8;
}

/* --- 品目名 --- */
.price-name{
  font-family:'Noto Sans JP',sans-serif;
  font-size:16px;
  font-weight:700;
  color:#3d6a82;
  letter-spacing:0.04em;
  flex:1;
}

/* --- 金額 --- */
.price-val{
  font-family:'Noto Sans JP',sans-serif;
  font-size:16px;
  font-weight:700;
  color:#3d6a82;
  letter-spacing:0.04em;
  white-space:nowrap;
  flex-shrink:0;
}
.price-val--consult{
  font-size:18px;
}

/* --- 注釈 --- */
.price-notes{
  list-style:none;
  margin-top:28px;
}
.price-notes li{
  font-family:'Noto Sans JP',sans-serif;
  font-size:16px;
  color:#3d6a82;
  letter-spacing:0.03em;
  line-height:2;
}

/* ============================================
   === Contact & News Section
   ============================================ */
.contact-section{
  position:relative;
  width:100%;
  background:url('img/main-area-bg_another.jpg') repeat-y center top;
  background-size:100% auto;
  padding:60px 60px 80px;
}

/* --- お問合せブロック --- */
.contact-block{
  position:relative;
  display:flex;
  align-items:flex-start;
  min-height:240px;
  margin-bottom:60px;
}

/* --- 左テキストエリア --- */
.contact-left{
  position:relative;
  z-index:2;
  flex:1;
  padding-right:20px;
  padding-top:20px;
}
.contact-heading{
  margin-bottom:18px;
}
.contact-heading img{
  width:174px;
  height:auto;
  display:block;
}
.contact-lead{
  font-family:'Noto Sans JP',sans-serif;
  font-size:18px;
  color:#3d6a82;
  letter-spacing:0.04em;
  margin-bottom:14px;
}
.contact-link{
  display:inline-block;
  font-family:'Noto Sans JP',sans-serif;
  font-size:18px;
  font-weight:700;
  color:#3d6a82;
  text-decoration:none;
  letter-spacing:0.04em;
  transition:opacity 0.3s;
}
.contact-link:hover{
  opacity:0.65;
}

/* --- ペンギン3（右側・横線に乗った形） --- */
.contact-penguin{
  position:absolute;
  right:-60px;
  bottom:0;
  width:320px;
  z-index:1;
  pointer-events:none;
}
.contact-penguin img{
  width:100%;
  height:auto;
  display:block;
}

/* --- おしらせブロック --- */
.news-block{
  position:relative;
  z-index:2;
}
.news-heading{
  margin-bottom:20px;
}
.news-heading img{
  width:152px;
  height:auto;
  display:block;
}

/* --- ニュースリスト --- */
.news-list{
  list-style:none;
}
.news-item{
  display:flex;
  align-items:baseline;
  gap:24px;
  font-family:'Noto Sans JP',sans-serif;
  font-size:18px;
  color:#3d6a82;
  letter-spacing:0.04em;
  line-height:2.2;
}
.news-date{
  flex-shrink:0;
  font-weight:700;
}
.news-text{
  font-weight:400;
}

/* ============================================
   === Footer
   ============================================ */
.site-footer{
  position:relative;
  width:100%;
}
.footer-frame-up{
  width:100%;
  line-height:0;
}
.footer-frame-up img{
  width:100%;
  height:auto;
  display:block;
}
.footer-content{
  background:#ffffff;
  padding:40px 60px 44px;
  text-align:center;
}
.footer-copy{
  font-family:'Noto Sans JP',sans-serif;
  font-size:14px;
  color:#3d6a82;
  letter-spacing:0.05em;
}

/* ============================================
   === Fixed Ask Button
   ============================================ */
.fixed-ask-btn{
  position:fixed;
  bottom:24px;
  right:calc(50% - 330px + 16px);
  width:150px;
  z-index:100;
}
.ask-btn-link{
  display:block;
}
.ask-btn-link img{
  width:100%;
  height:auto;
  display:block;
}
/* --- 右下（＋マーク部分）：タップで固定ボタンごと非表示 --- */
.ask-btn-close{
  position:absolute;
  right:2%;
  bottom:2%;
  width:26%;
  height:26%;
  background:transparent;
  border:none;
  padding:0;
  margin:0;
  cursor:pointer;
  z-index:2;
  -webkit-tap-highlight-color:transparent;
}

/* ============================================
   === Go To Top Button
   ============================================ */
.gototop-btn{
  position:fixed;
  bottom:24px;
  left:calc(50% - 330px + 16px);
  width:56px;
  z-index:100;
  display:block;
  transition:opacity 0.3s;
}
.gototop-btn:hover{
  opacity:0.75;
}
.gototop-btn img{
  width:100%;
  height:auto;
  display:block;
}

/* === Responsive: SP (max-width: 767px) === */
@media(max-width:767px){
  body{
    background:#f5d0cb;
  }
  .pc-bg{
    display:none;
  }
  .side-nav{
    display:none;
  }
  .main-area{
    width:100%;
    max-width:660px;
  }
  .fv-section{
    width:100%;
  }
  .fv-penguin{
    top:calc(-6% + 15px);
    left:calc(-4% + 15px);
  }
  .fv-girl{
    width:48%;
    left:-1%;
    bottom:33%;
  }
  .fv-monster{
    width:50%;
    right:-1%;
    bottom:33%;
  }
  .fv-catch{
    width:64.9%;
    bottom:calc(23% - 50px);
  }
  /* message SP */
  .message-section{
    padding:40px 0 120px;
  }
  .message-inner{
    gap:40px;
    padding:0 24px;
  }
  .message-heading{
    width:330px;
  }
  .message-heading span{
    font-size:clamp(14px, 4vw, 29px);
    white-space:nowrap;
  }
  .message-body{
    font-size:15px;
  }
  .message-body br{
    display:none;
  }
  /* works SP */
  .works-penguin{
    width:260px;
    top:0;
  }
  .works-slide{
    width:220px;
    padding:12px;
  }
  .works-title img{
    width:180px;
  }
  .works-btn-wrap{
    text-align:center;
    padding:35px 20px 0;
  }
  .works-btn img{
    height:23px;
    animation:worksBtnPulse 4s ease-in-out infinite;
  }
  /* flow SP */
  .flow-section{
    padding:40px 0 60px;
  }
  .flow-title img{
    width:180px;
  }
  .flow-subtitle{
    font-size:15px;
    margin-bottom:28px;
  }
  .flow-illust{
    padding:0 20px;
  }
  /* price SP */
  .price-content{
    padding:32px 24px 44px;
  }
  .price-title img{
    width:180px;
  }
  .price-item{
    flex-direction:column;
    gap:4px;
    padding:14px 0;
  }
  .price-name{
    font-size:17px;
  }
  .price-val{
    font-size:17px;
    align-self:flex-end;
  }
  .price-val--consult{
    font-size:18px;
  }
  .price-notes li{
    font-size:14px;
  }
  /* contact SP */
  .contact-section{
    padding:44px 28px 60px;
  }
  .contact-block{
    min-height:160px;
    margin-bottom:40px;
  }
  .contact-left{
    margin-top:0;
    padding-top:0;
  }
  .contact-penguin{
    width:270px;
    right:-30px;
    transform:translateY(50px);
  }
  .contact-heading img{
    width:140px;
  }
  .contact-lead{
    font-size:15px;
  }
  .contact-link{
    font-size:15px;
  }
  .news-heading img{
    width:124px;
  }
  .news-item{
    font-size:15px;
    gap:12px;
    flex-direction:column;
    line-height:1.6;
    margin-bottom:8px;
  }
  /* footer SP */
  .footer-content{
    padding:32px 24px 36px;
  }
  .footer-copy{
    font-size:12px;
  }
  /* fixed ask button SP */
  .fixed-ask-btn{
    right:16px;
    bottom:16px;
    width:120px;
  }
  /* go to top button SP */
  .gototop-btn{
    left:16px;
    bottom:16px;
    width:46px;
  }

  /* ============================================
     === SP Hamburger Menu
     ============================================ */
  .sp-menu-btn{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    position:fixed;
    top:16px;
    right:16px;
    width:48px;
    height:48px;
    background:#ffffff;
    border:none;
    border-radius:50%;
    box-shadow:0 2px 8px rgba(61,106,130,0.25);
    z-index:210;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }
  .sp-menu-btn span{
    display:block;
    width:22px;
    height:2px;
    background:#3d6a82;
    border-radius:2px;
    transition:transform 0.3s ease, opacity 0.3s ease;
  }
  .sp-menu-btn.active span:nth-child(1){
    transform:translateY(7px) rotate(45deg);
  }
  .sp-menu-btn.active span:nth-child(2){
    opacity:0;
  }
  .sp-menu-btn.active span:nth-child(3){
    transform:translateY(-7px) rotate(-45deg);
  }

  .sp-nav{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:24px;
    position:fixed;
    top:0;
    right:0;
    width:240px;
    max-width:72vw;
    height:100%;
    background:#fff9f0;
    padding:100px 20px 32px;
    box-shadow:-2px 0 14px rgba(61,106,130,0.2);
    z-index:200;
    transform:translateX(100%);
    transition:transform 0.35s ease;
    overflow-y:auto;
  }
  .sp-nav.active{
    transform:translateX(0);
  }
  .sp-nav__link{
    display:block;
    width:100%;
    max-width:140px;
    transition:opacity 0.3s;
  }
  .sp-nav__link:active{
    opacity:0.7;
  }
  .sp-nav__link img{
    width:100%;
    height:auto;
    display:block;
  }

  .sp-nav-overlay{
    display:block;
    position:fixed;
    inset:0;
    background:rgba(61,106,130,0.4);
    z-index:190;
    opacity:0;
    pointer-events:none;
    transition:opacity 0.3s ease;
  }
  .sp-nav-overlay.active{
    opacity:1;
    pointer-events:auto;
  }
}

/* Very small screens */
@media(max-width:400px){
  .fv-penguin{
    width:38%;
  }
}
