/* ケンブリッジ英検アプリ Web版 (元: Click製アプリの実測値ベース) */
@view-transition { navigation: auto; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  background: #cfe9e5;
  color: #000;
}
.app {
  max-width: 480px; margin: 0 auto; min-height: 100dvh;
  background: #d7fdf5;
  display: flex; flex-direction: column;
  box-shadow: 0 0 24px rgba(0,0,0,.12);
}
main { flex: 1; padding: 16px 0 calc(78px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 0; }
svg { fill: currentColor; width: 24px; height: 24px; }

/* ---- header ---- */
.appbar {
  position: sticky; top: 0; z-index: 10;
  background: #00bdb6; color: #fff;
  min-height: 56px; display: flex; align-items: center; justify-content: center;
  padding-top: env(safe-area-inset-top);
}
.appbar h1 { font-size: 16px; font-weight: 500; }
.appbar h1.big { font-size: 18px; }
.hback {
  position: absolute; left: 10px; bottom: 10px;
  width: 36px; height: 36px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.hback:active { background: rgba(255,255,255,.25); }

/* ---- footer tabs ---- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  max-width: 480px; margin: 0 auto;
  background: #00bdb6;
  display: flex;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; min-height: 54px; padding: 6px 0 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #4a4a4a; text-decoration: none; font-size: 12px;
}
.tabbar a.on { color: #fff; }

/* ---- common parts ---- */
a { color: inherit; text-decoration: none; }
.logo { width: 323px; max-width: 88%; height: auto; margin: 12px 0 8px; }
.hero { width: 100%; height: auto; margin: 8px 0; }
.badge { width: 183px; height: auto; margin: 24px 0; }
.banner { position: relative; display: block; width: calc(100% - 18px); margin: 14px 0 8px; }
.banner img { width: 100%; height: auto; display: block; }
.playbtn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; border-radius: 28px; background: rgb(109,109,212);
  display: flex; align-items: center; justify-content: center; color: #fff; opacity: .92;
}
.btnbox {
  background: #fff; border: 1px solid #000;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 12px; line-height: 1.6;
}
.btnbox:active { background: #eef7f5; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; width: calc(100% - 20px); margin: 14px 0 8px; }
.widebtns { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 8px; }
.btnbox.wide { width: 291px; max-width: 82%; min-height: 50px; font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; width: calc(100% - 58px); margin: 12px 0; }
.btnbox.tall { height: 104px; font-size: 14px; }
.btnbox.tall2 { height: 95px; }
.f13 { font-size: 13px !important; } .f15 { font-size: 15px !important; }
.f16 { font-size: 16px !important; } .f17 { font-size: 17px !important; } .f18 { font-size: 18px !important; }

.backpill {
  margin: 28px auto 20px; width: 155px; height: 44px; border-radius: 22px;
  background: rgb(82,190,186); color: #f9f9f9;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 500;
}
.backpill svg { width: 18px; height: 18px; }
.backpill:active { opacity: .85; }

/* ---- 新メインメニュー ---- */
.examname { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 10px 0 2px; }
.examname .ja { font-size: 20px; font-weight: 700; }
.examname .en { font-size: 11px; color: #333; }
.btnbox .sub { flex-basis: 100%; font-size: 10px; margin-top: 2px; }
.grid3 .btnbox { min-height: 68px; height: auto; padding: 6px 2px; flex-wrap: wrap; align-content: center; word-break: keep-all; overflow-wrap: anywhere; line-height: 1.4; }
.transnote { font-size: 12px; line-height: 1.8; margin: 18px 20px 8px; }
.transnote-add { color: #555; font-size: 11px; }

/* ---- cards ---- */
.cards { width: calc(100% - 16px); display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.card { background: #fff; border-radius: 4px; padding: 14px 16px; position: relative; display: block; }
.card.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; }
.cardttl { font-size: 14px; font-weight: 700; }
.card.row img { width: 160px; height: 47px; object-fit: cover; flex: none; }

.card.lv { padding: 12px 14px; }
.lvttl { display: block; font-size: 12px; font-weight: 700; padding-right: 72px; line-height: 1.5; }
.card.lv img { position: absolute; right: 10px; top: 16px; width: 61px; height: 62px; object-fit: contain; }
.lvdesc { display: block; font-size: 14px; line-height: 1.4; margin-top: 6px; padding-right: 72px; }

.card.appc { padding: 16px 14px 14px; min-height: 150px; }
.card.appc.slim { min-height: 0; padding-bottom: 12px; }
.appttl { font-size: 16px; margin-bottom: 8px; padding-right: 4px; }
.appdesc { font-size: 12px; color: #333; margin-bottom: 6px; padding-right: 100px; }
.applink { display: block; text-align: center; color: #4a90e2; font-size: 14px; font-weight: 700; padding: 3px 0; }
.card.appc img { position: absolute; right: 12px; bottom: 12px; width: 91px; height: 50px; object-fit: contain; }

.card.mov { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 80px; }
.movttl { font-size: 16px; font-weight: 700; }
.movthumb { width: 168px; height: 61px; background: #000; display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.movthumb svg { width: 22px; height: 22px; opacity: .9; }

.card.kk { padding: 12px 16px 14px; }
.kkttl { display: block; text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.kkdesc { display: block; font-size: 10px; line-height: 1.4; }

/* ---- sample pages ---- */
.badgegrid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px 4px; width: calc(100% - 6px); margin: 40px 0 60px; }
.badgegrid img { width: 100%; height: auto; display: block; }
.pbtns { width: calc(100% - 32px); display: flex; flex-direction: column; gap: 15px; }
.pbtn {
  background: #fff; border: 1px solid #bdbdbd; min-height: 59px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; text-align: center;
}
.pbtn:active { background: #eef7f5; }
.note { font-size: 14px; text-align: center; margin: 26px 16px 4px; }
.note.small { font-size: 9px; text-align: left; margin: 20px 16px 0; line-height: 1.6; }

/* ---- FAQ ---- */
.faqlist { width: calc(100% - 16px); display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.faqrow {
  background: #fff; border-radius: 4px; min-height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; text-decoration: underline;
}
.faqrow:active { background: #eef7f5; }
.mailcard {
  width: 249px; min-height: 73px; margin: 16px auto 0;
  background: #fff; border: 1px solid #bdbdbd;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 700;
}
.mailcard svg { color: #348f7a; }
.imglink { width: calc(100% - 26px); margin: 8px 0; }
.imglink img { width: 100%; height: auto; display: block; }
