.japanese-home {
  margin: 8px 0 36px;
  padding: 16px;
  border: 2px solid #004836;
  border-radius: 22px;
  background: #fffdf2;
  box-shadow: 0 14px 34px #003f2f1c;
}

.japanese-home-heading {
  align-items: flex-end;
  margin-bottom: 14px;
}

.japanese-home-heading h2 {
  max-width: 250px;
  line-height: 1.34;
}

.japanese-home-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 180px;
  padding: 34px 20px 24px;
  overflow: hidden;
  border: 3px solid #ffe500;
  border-radius: 18px;
  color: #f9f7f0;
  background: #004836;
  text-align: left;
  box-shadow: 0 16px 30px #003f2f38;
}

.japanese-home-ribbon {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 18px;
  padding: 7px 12px;
  border-radius: 0 0 10px 10px;
  color: #17362f;
  background: #ffe500;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .04em;
}

.japanese-home-card::before,
.japanese-home-card::after {
  position: absolute;
  border: 1px solid #fff2;
  border-radius: 50%;
  content: '';
}

.japanese-home-card::before {
  right: -34px;
  bottom: -68px;
  width: 180px;
  height: 180px;
}

.japanese-home-card::after {
  right: 10px;
  bottom: -24px;
  width: 92px;
  height: 92px;
}

.japanese-home-copy,
.japanese-home-sample,
.japanese-home-arrow {
  position: relative;
  z-index: 1;
}

.japanese-home-copy small,
.japanese-home-copy span {
  display: block;
  color: #d4e1db;
  font-size: 9px;
}

.japanese-home-copy strong {
  display: block;
  margin: 7px 0 13px;
  font-size: 23px;
}

.japanese-home-copy .japanese-home-cta {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #17362f;
  background: #ffe500;
  font-size: 10px;
  font-weight: 900;
}

.japanese-home-sample {
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 86px;
  padding: 12px 8px;
  border: 1px solid #ffffff3b;
  border-radius: 50%;
  background: #ffffff18;
  box-shadow: 0 0 0 6px #ffffff0b;
  text-align: center;
}

.japanese-home-sample b {
  font-size: 12px;
  font-family: 'Noto Sans KR', sans-serif;
}

.japanese-home-sample small {
  margin-top: -15px;
  color: #dbe9e2;
  font-size: 8px;
}

.japanese-home-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #fff;
}

.japanese-home-arrow svg {
  width: 18px;
}

.japanese-content {
  padding-top: 18px;
}

.japanese-toolbar {
  margin-bottom: 17px;
}

.japanese-header {
  position: relative;
  min-height: 290px;
  margin: 0 -20px 22px;
  padding: 36px 24px;
  overflow: hidden;
  color: #f9f7f0;
  background: #004836;
}

.japanese-header::before {
  position: absolute;
  right: -62px;
  bottom: -82px;
  width: 250px;
  height: 250px;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  box-shadow: 0 0 0 34px #ffffff0b, 0 0 0 68px #ffffff08;
  content: '';
}

.japanese-header .eyebrow {
  color: #a9cabb;
}

.japanese-header h1 {
  position: relative;
  margin: 18px 0 14px;
  font-size: 31px;
  line-height: 1.3;
  letter-spacing: -1.5px;
  z-index: 1;
}

.japanese-header h1 span {
  color: #9bc5b2;
}

.japanese-header p {
  position: relative;
  color: #cbded5;
  font-size: 11px;
  line-height: 1.75;
  z-index: 1;
}

.japanese-header-stamp {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 1px solid #ffffff50;
  border-radius: 50%;
  color: #fff;
  transform: rotate(-7deg);
  z-index: 1;
}

.japanese-header-stamp small,
.japanese-header-stamp span {
  font-size: 7px;
  letter-spacing: 1px;
}

.japanese-header-stamp strong {
  margin: -12px 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 22px;
}

.japanese-category-tabs {
  display: flex;
  gap: 8px;
  margin: 0 -20px 26px;
  padding: 0 20px 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.japanese-category-tabs::-webkit-scrollbar {
  display: none;
}

.japanese-category-tabs button {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid #d9ded9;
  border-radius: 999px;
  color: #607269;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.japanese-category-tabs button.selected {
  border-color: #004836;
  color: #fff;
  background: #004836;
}

.camera-shortcut {
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  gap: 11px;
  align-items: center;
  width: 100%;
  margin: -7px 0 28px;
  padding: 14px;
  border: 1px solid #cbdad3;
  border-radius: 9px;
  color: #174437;
  background: #e8f1ed;
  text-align: left;
}

.camera-shortcut > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #004836;
}

.camera-shortcut svg {
  width: 18px;
}

.camera-shortcut strong,
.camera-shortcut small {
  display: block;
}

.camera-shortcut strong {
  margin-bottom: 4px;
  font-size: 11px;
}

.camera-shortcut small {
  color: #698077;
  font-size: 8px;
}

.phrase-section {
  margin-bottom: 34px;
}

.phrase-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 15px;
}

.phrase-heading h2 {
  margin-top: 6px;
  font-size: 20px;
}

.japanese-phrase-list {
  display: grid;
  gap: 10px;
}

.phrase-card {
  position: relative;
  padding: 19px 54px 18px 17px;
  border: 1px solid #e0e3df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px #153f3210;
}

.phrase-card .phrase-meaning {
  display: inline-block;
  margin-bottom: 8px;
  color: #667970;
  font-size: 9px;
  font-weight: 800;
}

.phrase-card .phrase-japanese {
  display: block;
  color: #173c31;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 18px;
  line-height: 1.45;
  word-break: keep-all;
}

.phrase-card .phrase-korean {
  display: block;
  margin-top: 5px;
  color: #007558;
  font-size: 11px;
  font-weight: 800;
}

.phrase-speak {
  position: absolute;
  top: 18px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d7e1dc;
  border-radius: 50%;
  color: #005c45;
  background: #eef5f1;
}

.phrase-speak svg {
  width: 16px;
}

.japanese-pronunciation-note {
  margin-top: 12px;
  color: #7a857f;
  font-size: 9px;
  line-height: 1.65;
}

.camera-translate {
  margin: 0 0 24px;
  padding: 23px 18px 20px;
  border: 1px solid #cedbd5;
  border-radius: 12px;
  background: #e9f1ed;
}

.camera-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.camera-title-icon {
  display: grid;
  flex: 0 0 43px;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #fff;
  background: #004836;
}

.camera-title-icon svg {
  width: 21px;
}

.camera-title h2 {
  margin-top: 5px;
  color: #173c31;
  font-size: 17px;
  line-height: 1.4;
}

.camera-translate > p {
  margin: 15px 0;
  color: #5d7167;
  font-size: 10px;
  line-height: 1.7;
}

.camera-primary,
.camera-share,
.papago-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.camera-primary {
  gap: 12px;
  color: #fff;
  background: #004836;
}

.camera-primary > svg {
  width: 22px;
}

.camera-primary span {
  display: grid;
  gap: 3px;
  text-align: left;
}

.camera-primary strong {
  font-size: 12px;
}

.camera-primary small {
  color: #c8dcd3;
  font-size: 8px;
}

.camera-preview-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #ced8d3;
  border-radius: 8px;
  background: #fff;
}

.camera-preview-wrap[hidden] {
  display: none;
}

.camera-preview-wrap img {
  width: 58px;
  height: 58px;
  border-radius: 6px;
  object-fit: cover;
}

.camera-preview-wrap div {
  min-width: 0;
}

.camera-preview-wrap strong,
.camera-preview-wrap span {
  display: block;
}

.camera-preview-wrap strong {
  max-width: 190px;
  overflow: hidden;
  color: #28463c;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.camera-preview-wrap span {
  margin-top: 5px;
  color: #708078;
  font-size: 8px;
}

.camera-share {
  gap: 7px;
  margin-top: 9px;
  color: #004836;
  background: #fff;
  border: 1px solid #b8cbc2;
  font-size: 10px;
}

.camera-share[hidden] {
  display: none;
}

.camera-share svg,
.papago-button svg {
  width: 16px;
}

.papago-button {
  gap: 10px;
  margin-top: 9px;
  color: #fff;
  background: #03c75a;
  font-size: 11px;
}

.camera-steps {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.camera-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #52685e;
  font-size: 9px;
}

.camera-steps li > span {
  display: grid;
  flex: 0 0 21px;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #fff;
  background: #5d7e6f;
  font-size: 8px;
  font-weight: 900;
}

.camera-translate .camera-privacy {
  margin: 16px 0 5px;
  color: #718178;
  font-size: 8px;
}

.camera-source {
  color: #005b45;
  font-size: 8px;
  font-weight: 800;
}

@media (max-width: 360px) {
  .japanese-home-card { grid-template-columns: 1fr 74px; gap: 10px; }
  .japanese-home-sample { min-width: 72px; min-height: 72px; }
  .japanese-header-stamp { right: 12px; width: 98px; height: 98px; }
}
