/* ============================================================
   K-KEN — 屋号サイト
   参考: terasu歯科（手書き英字＋小和文 / センター揃え / 角丸カード
        / 色ブロブ / ピルボタン）
   ずらし: 色相を青・シアン・バイオレット主導へ。書体は Shantell Sans
   構造: 左レール（目次・CTA）＋ 右カラム（端末幅を維持）
   シグネチャ: .upfront「先にお伝えしていること」— ここを弱めない
   ============================================================ */

:root{
  /* --- base --- */
  --ink:      #1B1F2A;
  --ink-soft: #5A6274;
  --paper:    #FFFFFF;
  --paper-2:  #F3F6FC;
  --line:     #E4E9F2;

  /* --- pop palette（フラット。グラデにしない） --- */
  --blue:   #3D6BFF;
  --cyan:   #16C2C2;
  --violet: #8B5CF6;
  --pink:   #FF5FA2;
  --amber:  #FFC53D;
  --coral:  #FF7A45;

  /* --- type --- */
  --hand:   "Shantell Sans", cursive;
  --maru:   "Zen Maru Gothic", sans-serif;
  --gothic: "Zen Kaku Gothic New", sans-serif;

  --t-label: 11px;
  --t-xs:    12.5px;
  --t-sm:    14px;
  --t-base:  15.5px;
  --t-lg:    19px;
  --t-xl:    27px;
  --t-en:    38px;

  /* --- space / shape --- */
  --s-sm: 14px;
  --s-md: 26px;
  --s-lg: 68px;

  --r:      18px;
  --r-lg:   26px;
  --r-pill: 999px;

  --sh:    0 2px 4px rgba(27,31,42,.04), 0 10px 24px rgba(27,31,42,.07);
  --sh-lg: 0 4px 8px rgba(27,31,42,.05), 0 18px 40px rgba(27,31,42,.10);

  /* --- layout --- */
  --phone: 424px;

  /* --- motion --- */
  --pop: cubic-bezier(.2, 1.5, .35, 1);
}

*{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: var(--t-base);
  line-height: 1.95;
  letter-spacing: .01em;
  word-break: normal;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

a{ color: var(--blue); }
:focus-visible{ outline: 3px solid var(--amber); outline-offset: 3px; }

p{ margin: 0 0 1.3em; }
p:last-child{ margin-bottom: 0; }
strong{ font-weight: 400; background: linear-gradient(transparent 62%, #FFE9A8 62%); }

/* ============================================================
   SCROLL POP — スクロールで飛び込んでくる動き
   ============================================================ */
[data-anim]{
  opacity: 0;
  transform: translateY(26px) scale(.94);
}
[data-anim].in{
  opacity: 1;
  transform: none;
  transition:
    opacity .45s ease calc(var(--i, 0) * 70ms),
    transform .68s var(--pop) calc(var(--i, 0) * 70ms);
}

/* ============================================================
   SHELL
   ============================================================ */
.shell{ display: block; }
.screen{ background: var(--paper); min-height: 100vh; overflow: hidden; }
.wrap{ width: min(100% - 40px, 384px); margin-inline: auto; text-align: center; }

/* ============================================================
   BLOB — フラットな有機シェイプ
   ============================================================ */
.blob{
  position: absolute;
  display: block;
  border-radius: 58% 42% 47% 53% / 46% 55% 45% 54%;
  will-change: transform;
}
@keyframes drift{
  0%,100%{ transform: translate3d(0,0,0) rotate(0deg); }
  50%    { transform: translate3d(0,-14px,0) rotate(7deg); }
}

/* ============================================================
   RAIL
   ============================================================ */
.rail{
  position: relative;
  background: var(--paper-2);
  overflow: hidden;
}
.rail .blobs{ position: absolute; inset: 0; pointer-events: none; }
.rail .b1{ width: 220px; height: 200px; left: -70px; top: -60px;  background: var(--blue);   opacity: .13; }
.rail .b2{ width: 180px; height: 190px; right: -60px; top: 22%;   background: var(--pink);   opacity: .12; }
.rail .b3{ width: 240px; height: 210px; left: 8%;    bottom: 12%; background: var(--cyan);   opacity: .12; }
.rail .b4{ width: 150px; height: 160px; right: 14%;  bottom: -50px; background: var(--amber); opacity: .16; }

.rail-inner{
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 384px);
  margin-inline: auto;
  padding: 18px 0;
}
.mark{
  font-family: var(--hand);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .02em;
  margin: 0;
}
.mark-sub{
  font-family: var(--maru);
  font-weight: 500;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  margin: 0;
}
.index, .rail-cta, .glyph{ display: none; }

/* ============================================================
   KV
   ============================================================ */
.kv{ position: relative; padding: 56px 0 var(--s-lg); overflow: hidden; }
.kv-art{ position: absolute; inset: -40px -20px auto -20px; height: 460px; pointer-events: none; color: #fff; }
.kv-art .blob{ animation: drift 9s ease-in-out infinite; }
.kv .k1{ width: 250px; height: 230px; left: -60px;  top: -40px; background: var(--pink);   opacity: .85; animation-delay: -1s; }
.kv .k2{ width: 210px; height: 220px; right: -50px; top: 10px;  background: var(--amber);  opacity: .9;  animation-delay: -3s; }
.kv .k3{ width: 190px; height: 170px; left: 32%;    top: 120px; background: var(--cyan);   opacity: .8;  animation-delay: -5s; }
.kv .k4{ width: 160px; height: 165px; right: 6%;    top: 190px; background: var(--violet); opacity: .7;  animation-delay: -2s; }
.kv .k5{ width: 175px; height: 150px; left: -40px;  top: 215px; background: var(--blue);   opacity: .65; animation-delay: -6.5s; }

.doodle{ position: absolute; stroke: #fff; opacity: .95; }
.doodle.d1{ width: 54px; left: 8%;   top: 26px; transform: rotate(-9deg); }
.doodle.d2{ width: 34px; right: 16%; top: 62px; transform: rotate(12deg); }
.doodle.d3{ width: 40px; left: 24%;  top: 168px; transform: rotate(6deg); }
.doodle.d4{ width: 46px; right: 10%; top: 214px; transform: rotate(-6deg); }

.kv-copy{ position: relative; z-index: 1; padding-top: 250px; }
.kv-en{
  font-family: var(--hand);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.32;
  margin: 0 0 14px;
}
h1{
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-xl);
  line-height: 1.62;
  letter-spacing: .01em;
  margin: 0 0 18px;
}
.kv-lead{ font-size: var(--t-sm); color: var(--ink-soft); }
.byline{
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--t-sm);
  color: var(--ink-soft);
  margin: 22px 0 0;
}

/* ============================================================
   SECTION
   ============================================================ */
.section{ padding: var(--s-lg) 0; }
.band{ background: var(--paper-2); }

.sec-head{ margin: 0 0 30px; }
.sec-head .en{
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--t-en);
  line-height: 1.2;
  letter-spacing: .01em;
}
.sec-head .ja{
  display: block;
  font-family: var(--maru);
  font-weight: 500;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  letter-spacing: .06em;
  margin-top: 6px;
}

.lede{
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-lg);
  line-height: 1.75;
  margin: 0 0 22px;
}
.lede.sm{ font-size: var(--t-sm); font-weight: 500; color: var(--ink-soft); }

.note-p{ font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9; margin-top: 22px; }

/* ============================================================
   CARD
   ============================================================ */
.card{
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 26px 22px;
  margin-bottom: var(--s-sm);
  text-align: center;
}
.card:last-of-type{ margin-bottom: 0; }
.card.soft{ font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.95; text-align: left; }
.card .ct{
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-base);
  margin: 0 0 8px;
}
.card p:not(.ct){ font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9; }

.c-blue{ color: var(--blue); }
.c-cyan{ color: var(--cyan); }
.c-violet{ color: var(--violet); }
.c-pink{ color: var(--pink); }
.c-amber{ color: var(--amber); }
.c-coral{ color: var(--coral); }

/* --- 経歴 --- */
.career{ list-style: none; margin: 0; padding: 0; }
.career .fig{
  display: block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  margin-bottom: 10px;
}
.career .fig small{ font-size: 18px; margin-left: 2px; }
.career .role{ display: block; font-family: var(--maru); font-weight: 700; font-size: var(--t-base); }
.career .desc{ display: block; font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.85; margin-top: 5px; }

/* --- タイル（お請けしていること） --- */
.grid2{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.grid2 .card{ margin: 0; padding: 22px 12px; }
.tile .ico{
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  border-radius: var(--r);
  background: currentColor;
}
.tile .ico svg{ width: 22px; height: 22px; color: #fff; }
.tile .tt{ display: block; font-family: var(--maru); font-weight: 700; font-size: var(--t-sm); }
.tile .td{ display: block; font-size: var(--t-xs); color: var(--ink-soft); line-height: 1.65; margin-top: 4px; }

/* --- チェックリスト --- */
.checks{ list-style: none; margin: 0; padding: 0; }
.checks li{
  position: relative;
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 16px 18px 16px 46px;
  margin-bottom: 10px;
  text-align: left;
  font-size: var(--t-sm);
  line-height: 1.85;
}
.checks li:last-child{ margin-bottom: 0; }
.checks li::before{
  content: "";
  position: absolute;
  left: 17px; top: 20px;
  width: 16px; height: 9px;
  border-left: 3px solid var(--cyan);
  border-bottom: 3px solid var(--cyan);
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* ============================================================
   ★ シグネチャ — 先にお伝えしていること
   お断り事項に、通常セールスポイントに与える視覚的重みを与える。
   ここを小さくすると、このサイトの意図が消える。
   ============================================================ */
.upfront{
  background: #FFF7E4;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 40px 20px 34px;
}
.upfront .sec-head{ margin-bottom: 6px; }
.upfront .sec-head .en{ color: var(--coral); }
.upfront .note{
  font-family: var(--maru);
  font-weight: 500;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  margin: 0 0 30px;
}
.upfront .note::before{
  content: "";
  display: inline-block;
  width: 26px; height: 4px;
  border-radius: 2px;
  background: var(--amber);
  vertical-align: middle;
  margin-right: 9px;
  transform: translateY(-2px);
}
.upfront .item{
  background: var(--paper);
  border-radius: var(--r);
  padding: 24px 18px;
  margin-bottom: 12px;
}
.upfront .item:last-child{ margin-bottom: 0; }
.upfront .item h3{
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-lg);
  line-height: 1.6;
  margin: 0 0 10px;
}
.upfront .item p{ font-size: var(--t-sm); color: var(--ink-soft); line-height: 1.9; text-align: left; }

/* ============================================================
   BUTTON — ピル＋色付き丸矢印
   ============================================================ */
.cta-guide{
  font-family: var(--maru);
  font-weight: 500;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  margin: 0 0 10px;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  padding: 10px 10px 10px 24px;
  min-height: 56px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s ease, transform .2s var(--pop);
}
.btn.big{ font-size: 20px; }
.btn:hover{ border-color: var(--blue); transform: translateY(-2px); }
.btn .arw{
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  flex: none;
}
.btn .arw svg{ width: 17px; height: 17px; }

/* ============================================================
   FORM
   ============================================================ */
.form{
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 26px 20px 28px;
  text-align: left;
  margin-bottom: var(--s-sm);
}

/* ハニーポット。人には見せず、ボットだけが埋める */
.hp{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field{ margin: 0 0 18px; }
.field label{
  display: block;
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-sm);
  margin-bottom: 7px;
}
.req{
  display: inline-block;
  font-family: var(--maru);
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1.7;
  color: #fff;
  background: var(--pink);
  border-radius: var(--r-pill);
  padding: 1px 9px;
  margin-left: 5px;
  vertical-align: 2px;
}
.opt{ font-weight: 500; font-size: var(--t-xs); color: var(--ink-soft); }

.field input,
.field textarea{
  display: block;
  width: 100%;
  font-family: var(--gothic);
  font-size: 16px; /* iOSの自動ズームを防ぐため16px未満にしない */
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper-2);
  border: 2px solid transparent;
  border-radius: var(--r);
  padding: 13px 14px;
  min-height: 52px;
  transition: border-color .18s ease, background .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea{ resize: vertical; }
.field input:focus,
.field textarea:focus{
  outline: none;
  background: var(--paper);
  border-color: var(--blue);
}
.field input:focus-visible,
.field textarea:focus-visible{ outline: none; }

.hint{
  display: block;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 7px;
}

.consent{ margin: 0 0 22px; }
.consent label{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-sm);
  line-height: 1.75;
  cursor: pointer;
}
.consent input[type="checkbox"]{
  flex: none;
  width: 22px; height: 22px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.submit{
  width: 100%;
  justify-content: center;
  cursor: pointer;
  padding-left: 20px;
}
.submit:hover{ border-color: var(--blue); }

/* --- エラー表示 --- */
.form-alert{
  background: #FFECF3;
  border-radius: var(--r);
  padding: 14px 18px;
  margin-bottom: var(--s-sm);
  text-align: left;
}
.form-alert p{
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-sm);
  color: #C2185B;
  margin: 0;
}
.err{
  display: block;
  font-size: var(--t-xs);
  line-height: 1.7;
  color: #C2185B;
  margin-top: 6px;
}
.field:has(.err) input,
.field:has(.err) textarea{ border-color: var(--pink); background: var(--paper); }

/* --- 個人情報の取り扱い --- */
.privacy{
  background: var(--paper);
  border-radius: var(--r);
  box-shadow: var(--sh);
  text-align: left;
  overflow: hidden;
}
.privacy summary{
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-sm);
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.privacy summary::-webkit-details-marker{ display: none; }
.privacy summary::after{
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  border-radius: 1px;
  transform: rotate(45deg) translate(-2px,-2px);
  transition: transform .2s ease;
}
.privacy[open] summary::after{ transform: rotate(-135deg) translate(-2px,-2px); }

.privacy-body{ padding: 0 18px 20px; }
.privacy-body dl{ margin: 0; }
.privacy-body dt{
  font-family: var(--maru);
  font-weight: 700;
  font-size: var(--t-xs);
  color: var(--blue);
  margin-bottom: 3px;
}
.privacy-body dd{
  margin: 0 0 14px;
  font-size: var(--t-xs);
  color: var(--ink-soft);
  line-height: 1.85;
}
.privacy-body dd:last-child{ margin-bottom: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot{
  background: var(--paper-2);
  padding: 46px 0 60px;
  font-size: var(--t-xs);
  color: var(--ink-soft);
}
.foot-mark{
  font-family: var(--hand);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 18px;
}
.site-foot dl{ margin: 0 0 var(--s-md); }
.site-foot dt{
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--t-label);
  letter-spacing: .08em;
  color: var(--ink-soft);
  margin-bottom: 1px;
}
.site-foot dd{ margin: 0 0 12px; color: var(--ink); }
.site-foot .policy, .site-foot .copy{ margin: 0; }
.site-foot .copy{ font-family: var(--hand); font-weight: 700; }

/* ============================================================
   THANKS
   ============================================================ */
.mark-link{ text-decoration: none; color: inherit; display: block; }
.thanks{ padding: 90px 0 var(--s-lg); }
.thanks-en{
  font-family: var(--hand);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  color: var(--cyan);
  margin: 0 0 10px;
}
.thanks h1{ margin-bottom: 16px; }
.thanks-lead{ font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: 26px; }
.thanks .card{ margin-bottom: 26px; }

/* ============================================================
   PC — 左にレール、右に端末幅の画面
   ============================================================ */
@media (min-width: 960px){

  .shell{
    display: grid;
    grid-template-columns: 1fr var(--phone);
    padding-inline-end: clamp(0px, 3vw, 56px);
    align-items: start;
  }

  .rail{ position: sticky; top: 0; height: 100vh; height: 100dvh; }
  .rail .blob{ animation: drift 11s ease-in-out infinite; }
  .rail-inner{
    width: min(100% - 96px, 340px);
    margin-inline: 0;
    margin-left: clamp(48px, 7vw, 120px);
    height: 100%;
    padding: clamp(44px, 6vh, 68px) 0;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3.5vh, 40px);
  }
  .mark{ font-size: 34px; }
  .mark-sub{ font-size: var(--t-sm); }

  .index{ display: block; }
  .index ol{ list-style: none; margin: 0; padding: 0; }
  .index a{
    display: grid;
    grid-template-columns: 2.4em 1fr;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: var(--r-pill);
    text-decoration: none;
    color: var(--ink-soft);
    transition: background .2s ease, color .2s ease;
  }
  .index .n{ font-family: var(--hand); font-weight: 700; font-size: var(--t-sm); }
  .index .t{ font-family: var(--maru); font-weight: 500; font-size: var(--t-xs); }
  .index a:hover{ background: rgba(255,255,255,.7); color: var(--ink); }
  .index a[aria-current]{ background: var(--paper); color: var(--ink); box-shadow: var(--sh); }
  .index a[aria-current] .n{ color: var(--blue); }

  .rail-cta{ margin-top: auto; display: block; }
  .glyph{
    display: block;
    position: absolute;
    right: -.16em; bottom: -.18em;
    margin: 0;
    font-family: var(--maru);
    font-weight: 700;
    font-size: clamp(200px, 25vw, 340px);
    line-height: .8;
    color: rgba(61,107,255,.06);
    user-select: none; pointer-events: none;
  }

  .screen{ box-shadow: -20px 0 60px rgba(27,31,42,.10); }
  .wrap{ width: min(100% - 48px, 376px); }
}

/* ============================================================
   MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ transition: none !important; animation: none !important; }
  [data-anim]{ opacity: 1; transform: none; }
}
