/* Minimal, cacheable CSS for this theme (front + policy pages). */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  line-height: 1.5;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: #111;
  background: #fff;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
}

/* Front page layout */
.main {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
}

.main .max600 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  max-width: 780px;
  width: 100%;
}

/* Utility container width used outside .main */
.max600 {
  max-width: 780px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .main .max600 {
    max-width: 100%;
  }
  .max600 {
    max-width: 100%;
  }
}

.main .max600 img {
  width: 100%;
}

/* Shared CTA block */
.button-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 30px 20px;
  width: 100%;
}

.button-box__title {
  margin-bottom: 6px;
}

.button-box__sub {
  max-width: 480px;
  margin-bottom: 16px;
}

.button-box__cont {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.button-box__cont a {
  display: block;
}

.button-box__cont__img {
  width: 100%;
}

.button-box__cont a.line {
  width: 44%;
}

.button-box__cont a.tel {
  width: 54%;
}

/* Policy links section on front page */
.policy {
  background-color: #333;
  width: 100%;
  padding-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin-bottom: 170px;
}

@media screen and (max-width: 768px) {
  .policy {
    margin-bottom: 140px;
  }
}

@media screen and (max-width: 425px) {
  .policy {
    margin-bottom: 100px;
  }
}

.policy__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 25px 0 0;
  text-align: center;
  color: #fff;
}

@media screen and (max-width: 768px) {
  .policy__title {
    font-size: 14px;
  }
}

.policy .cont-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 780px;
  gap: 12px;
  padding: 0 12px;
  flex-wrap: wrap;
}

.policy .cont-box .policy-btn {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
}

@media screen and (max-width: 768px) {
  .policy .cont-box .policy-btn {
    font-size: 14px;
  }
}

/* Sticky CTA */
.stickyblock {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 26vw;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
  max-width: 100%;
  padding: 0 20px 0;
  max-height: 200px;
}

.stickyblock .stickyback {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 1;
  object-fit: cover;
}

@media screen and (max-width: 425px) {
  .stickyblock .button-box__cont {
    margin-bottom: 5px;
  }
}

/* Policy / Terms pages */
.container {
  width: 100%;
  margin: 0 auto;
}

.policy-page,
.tokushoho-price-page {
  margin: 0 auto;
  padding: 40px 30px 200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  max-width: 780px;
}

@media screen and (max-width: 768px) {
  .policy-page,
  .tokushoho-price-page {
    padding: 40px 30px 100px;
    max-width: 100%;
  }
}

.page-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 24px;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .page-title {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 100%;
  }
}

.policy-section {
  margin-bottom: 30px;
}

.policy-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid #ddd;
}

@media screen and (max-width: 768px) {
  .policy-section h2 {
    font-size: 16px;
  }
}

.policy-section p,
.policy-section li {
  line-height: 1.6;
}

.policy-section ol {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 15px;
  padding-left: 0;
}

/* Terms/price tables */
.section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 30px 0 20px;
  padding-left: 10px;
  border-left: 4px solid #426579;
}

.tokushoho-section {
  margin-bottom: 60px;
}

.price-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #eee;
}

.price-subsection {
  margin-bottom: 40px;
}

.price-table-wrapper {
  margin-bottom: 30px;
  overflow-x: auto;
}

.price-note {
  margin-top: 40px;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 5px;
}

.price-note p {
  margin: 5px 0;
  font-size: 14px;
  color: #666;
}

.campaign-text {
  color: #e60012;
  font-weight: 700;
  font-size: 0.9em;
  margin-left: 10px;
}

.new-price {
  color: #e60012;
  font-weight: 700;
}

.tokushoho-table,
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  table-layout: fixed;
}

.tokushoho-table th,
.tokushoho-table td,
.price-table th,
.price-table td {
  padding: 12px 8px;
  border: 1px solid #ddd;
  word-wrap: break-word;
}

.tokushoho-table th {
  width: 30%;
  background-color: #f5f5f5;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}

.tokushoho-table td {
  width: 70%;
  vertical-align: top;
}

.price-table th {
  width: 40%;
  background-color: #f5f5f5;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  vertical-align: top;
}

.price-table td {
  width: 60%;
  text-align: right;
  line-height: 1.4;
  vertical-align: top;
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 18px;
    margin: 25px 0 15px;
  }

  .tokushoho-table th,
  .tokushoho-table td,
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .tokushoho-table th,
  .price-table th {
    border-bottom: none;
  }

  .tokushoho-table td,
  .price-table td {
    border-top: none;
  }

  .button-box__cont {
    margin-bottom: 5px;
  }
}

