/* =========================
   Base
========================= */
*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* ←スマホの“左右スワイプでずれる”を基本的に止める */
}

body{

  font-family: "Nunito", sans-serif;
  color: #181616;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 50px;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f9fbff 40%,
    #f2f7ff 70%,
    #eaf3ff 100%
  );
  line-height: 1.9;

}
.step-image img{
cursor: zoom-in;
}

/* =========================
   amazon_affiliates
========================= */

.amazon-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 14px;
  color: #ff5c93;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: 0.3s ease;
}

.amazon-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #45a7ff, #ff5c93);
  transition: 0.3s ease;
}

.amazon-link:hover {
  transform: translateX(4px);
}

.amazon-link:hover::after {
  width: 100%;
}



/* =========================
   Header (fixed)
========================= */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  z-index: 9999;
  padding-top: env(safe-area-inset-top);
  transition: height .35s ease, background .35s ease, box-shadow .35s ease;
}



/* 動画 */
.header-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.5;
  transition: opacity .35s ease;

}

/* 白い幕（ヘッダーを薄く見せる） */
.site-header::before{
  content:"";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,1); /* ←薄さはここ */
  z-index: 0;
}

/* ほんのり影 */
.site-header::after{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0) 0%,
    rgba(255, 255, 255, 0.35) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ヘッダー中身 */
.header-inner{
  position: relative;
  z-index: 3;

  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .35s ease;
}

.brand{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: all .35s ease;
}

.brand-logo-img{
  /*height: 50px;*/
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  transition: height .35s ease;
}

.brand-sub{
  margin: 0;
  color: #fffbff;
  text-shadow:
    -1px -1px 1px #ff5c93,
     1px -1px 1px #ff5c93,
    -1px  1px 1px #ff5c93,
     1px  1px 1px #ff5c93;
  transition: opacity .25s ease, transform .25s ease;
}

/* nav */
.global-nav{
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  transition: all .35s ease;
}

.nav-link{
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 999px;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.08);
  color: #111;
}

.nav-link:hover{
  background: rgba(77, 163, 255, 0.9);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.nav-current{
  background: rgba(77,163,255,0.95);
  color: #fff;
  font-weight: 600;
}

/* =========================
   Main
========================= */

.layout{
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* セクション */
.section{
  margin: 18px 0 26px;
}

.section h2{
  margin: 0 0 14px;
  padding-left: 12px;
  border-left: 5px solid var(--accent, #4da3ff);
}

/* =========================
   Cards
========================= */
.cards{
  display: grid;
  gap: 18px;
}

.card{
  display: flex;
  gap: 18px;
  padding: 18px;
  align-items: center;
  background: linear-gradient(135deg,
    rgba(173,216,255,0.55),
    rgba(241,200,255,0.35)
  );
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.65);

  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;

  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );

  transition:0.6s;
}

.card:hover::before{
  left:100%;
}

.card h3{
  font-size: 20px;
  margin: 0 0 8px;
}

.card p{
  margin: 0;
  line-height: 1.7;
}

.card .catch{
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card .desc{
  font-size: 14px;
  line-height: 1.9;
}

.card .price{
  font-size: 14px;
  font-weight: 700;
}

.card .more{
  font-size: 14px;
  font-weight: 700;
  color: #f12dc3;
}
/* タグ */
.tag-new, .tag-accent{
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 5px;
  border-radius: 999px;
  font-size: 20px;
}

.tag-new{
  color: #ffffff;
  font-weight: 700;
  text-shadow:
    0 0 4px #ff79c6,
    0 0 8px #ff79c6,
    0 0 12px #ff79c6,
    0 0 16px #ff1493;
}

.tag-accent{
  background: rgba(248, 250, 252, 0.9);
  border: 3px solid rgba(139, 0, 0, 0.5);
  color: #062b5f;
  padding: 3px 10px;
}

/* 画像（スマホで切れないように最初から max-width） */
.card-img{
  flex-shrink: 0;
  width: 420px;
  max-width: 100%;
  margin-left: auto;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* =========================
   Side Panels
========================= */
.panel{
  background: rgba(240, 240, 240, 0.7);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.panel h3{
  margin: 0 0 10px;
  font-size: 14px;
}

.search{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;          /* 右寄せにしたい時に便利 */
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 999px;
  padding: 6px 8px;
  backdrop-filter: blur(10px);
}

/* 入力欄は細め */
.search_input{
  width: 160px;               /* 好きに調整OK */
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  padding: 4px 6px;
  color: #111;
}

/* 虫眼鏡ボタンは小さく丸く */
.search_btn{
  width: 30px;
  height: 30px;
  margin-left: auto; 
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  display: grid;
  font-size: 14px;
  place-items: center;
}

/*.header-search__btn:hover{
  filter: brightness(1.05);
}*/
/**/

.chatbox, .aff{
  min-height: 220px;
  border-radius: 12px;
  background: rgba(240,248,255,0.55);
  border: 1px dashed rgba(0,0,0,0.12);
  padding: 10px;
  line-height: 1.6;
}
.aff {
  margin-bottom: 1.5em;
  padding-bottom: 1em;
  border-bottom: 1px dashed #ccc;
}
.main-title{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden; 
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(0,0,0,0.2);
}
/* ===== ソーシャルリンク ===== */
.social-section {
  margin: 0px 0px 50px 0px;
  text-align: center;
}

.social-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 24px;
  position: relative;
}

.social-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #ff4d6d;
  margin: 8px auto 0;
  border-radius: 999px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-links a {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.social-links img {
  width: 62px;
  height: 62px;
}


/* ブランドサイズ */
.brand-logo-img{
  height:70px;
  transition:all .35s ease;

}

/* ナビ */
.global-nav{
  transition:all .35s ease;
}

/* ===== スクロール後 ===== */

.site-header.shrink{

  backdrop-filter: blur(12px);
  background: linear-gradient(
    90deg,
  rgba(110, 187, 255, 0.895),
  rgba(177, 128, 255, 0.866)
  );

  box-shadow: 0 4px 20px rgba(0,0,0,0.08);

}

.site-header.shrink::before{
  background: transparent;
}
.site-header.shrink .header-video{
  opacity: 0;
}
/* ロゴ縮小 */

.site-header.shrink .brand-logo-img{
  height:40px;
}

.site-header.shrink .header-inner{
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.site-header.shrink .brand{
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.site-header.shrink .brand-sub{
  opacity: 0;
  transform: translateY(-8px);
  width: 0;
  overflow: hidden;
  white-space: nowrap;
}

.site-header.shrink .global-nav{
  flex-wrap: nowrap;
  gap: 12px;
}
/* サブタイトル消す */

.site-header.shrink .brand-sub{
  opacity:0;
  transform:translateY(-10px);
  pointer-events:none;
}

/* ナビ少し詰める */

.site-header.shrink .global-nav{
  transform:translateY(-5px);
}


/* =========================
   PC: 3 columns
========================= */
@media (min-width: 1350px){
  .profile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .profile-icon {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .profile-name {
    margin-top:100px;
    font-weight: bold;
    font-size: 17px;
  }

  .mobile-bottom{ 
    display: none;
  }

  .site-main{
    /* header固定ぶんだけ下げる */
    padding-top: 150px;
  }

  .site-header{
    height: 200px;
  }
  .site-header.shrink{
    height: 80px;
  }

  .layout{
    max-width: 1500px;
    display: grid;
    grid-template-columns: 340px minmax(720px, 1fr) 340px;
    gap: 20px;
    align-items: start;
  }

  .side{
    position: sticky;
    top: 170px; /* header 150 + 余白 */
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .global-nav{
    gap: 100px;
  }

  .nav-link{
    font-size: 15px;
  }
  .brand-logo-img{
    height: 80px;
  }

  .brand-sub{
    margin: 0px;
    font-size: 20px;
  }
    .site-header.shrink .brand-logo-img{ height: 42px; }



}
@media (max-width: 1350px){
  .side{
    display: none; /* スマホではサイド非表示（今の方針） */
  }
  .header-inner{
    /*justify-content: flex-start;  center→上寄せ 
    gap: 4px;                    10px→小さく */
    padding: 6px 12px;           /* 24px→少し縮める */
  }

  .site-main{
    /* header固定ぶんだけ下げる */
    padding-top: 80px;
  }

  .site-header{
    height: 150px;
  }
  .site-header.shrink{
    height: 70px;
  }

  .global-nav{
    gap: 40px;
  }

  .nav-link{
    font-size: 15px;
    padding: 5px 22px;
  }
  .brand-logo-img{
    height: 50px;
  }

  .brand-sub{
    margin: 0px;
    font-size: 20px;
  }
  .panel{
    margin-top: 16px;
  }
  .site-header.shrink .global-nav{ gap: 10px; }
  .site-header.shrink .brand-logo-img{ height: 34px; }
}
/* =========================
   Mobile tuning
========================= */
@media (max-width: 800px){

  .side{
    display: none; /* スマホではサイド非表示（今の方針） */
  }

  .header-inner{
   /* justify-content: flex-start; center→上寄せ 
    gap: 4px;                    10px→小さく */
    padding: 6px 12px;           /* 24px→少し縮める */
  }
  .site-header{
    height: 100px;               /* 100→ちょい余裕 */
  }
  .site-main{
    /* header固定ぶんだけ下げる */
    padding-top: 30px;
  }

  .site-header{
    height: 100px;
  }
  .site-header.shrink{
    height: 60px;
  }
  .card{
    flex-direction: column;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
  }

  .card-img{
    width: 100%;
  }

  .nav-link{
    font-size: 9px;
    padding: 6px 10px;
  }
  .global-nav{
    gap: 20px;
  }

  .brand-logo-img{
    height: 35px;
  }

  .brand-sub{
    margin: 0px;
    font-size: 8px;
  }
  .panel{
    margin-top: 16px;
  }
    .profile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .profile-icon {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .profile-name {
    font-weight: bold;
    font-size: 20px;
  }
  .site-header.shrink .brand-logo-img{ height: 24px; }
  .site-header.shrink .global-nav{ gap: 6px; }
  .site-header.shrink .header-inner{
    padding: 0 10px;
  }
}

/* footer */
.site-footer{
  text-align: center;
  font-size: 12px;
  padding: 10px 0 14px;
  color: #1e2122;
  margin-bottom: 20px;
}
