@charset "utf-8";

/* common */
:root {
  --main-width: 390px;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family:
    'Noto Sans JP',
    -apple-system,
    BlinkMacSystemFont,
    'Helvetica Neue',
    'Segoe UI',
    'Hiragino Sans',
    Meiryo,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background: #dce0ea;
}

.Main {
  background-color: #f2f3f7;
}

.Main,
.Footer,
section {
  display: block;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

h1 {
  max-width: 100%;
}

a {
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #333;
  text-decoration: none;
  opacity: 0.7;
}

.u-sp {
  display: block;
}

.u-pc {
  display: none;
}

.Main,
.Footer {
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 571px) {
  .Main,
  .Footer {
    max-width: var(--main-width);
  }
}

@media (min-width: 768px) {
  body .u-sp {
    display: none;
  }

  body .u-pc {
    display: block;
  }
}

@media (min-width: 1440px) {
  .Main {
    flex-grow: 1;
  }
}

/* .Hero */

.Hero__ttl {
  margin-bottom: 0;
  text-align: center;
}

.Hero__txt {
  position: relative;
  margin: 32px 16px 20px;
  font-size: 16px;
  font-weight: bold;
  line-height: 2.4;
  text-align: center;
}

.Hero__txt::before,
.Hero__txt::after {
  position: absolute;
  top: 50%;
  width: 16%;
  height: 2px;
  content: '';
  background-color: #c7c7c7;
  transform: translateY(-50%);
}

.Hero__txt::before {
  left: 0;
}

.Hero__txt::after {
  right: 0;
}

.Hero__txt--highlight {
  font-size: 24px;
  line-height: 1.6;
  color: #92b729;
}

.Hero-plan {
  margin: 0 15px;
  text-align: center;
}

.Hero-plan-btn {
  position: relative;
  display: block;
  padding: 11px;
  color: #fff;
  text-decoration: none;
  background-color: #327e3d;
  border-radius: 8px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.Hero-plan-btn::before,
.Hero-plan-btn::after {
  position: absolute;
  top: 50%;
  right: 10px;
  content: '';
  border-bottom: 10px solid transparent;
  transform: translateY(-50%);
}

.Hero-plan-btn::before {
  border-top: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.Hero-plan-btn::after {
  right: 17px;
  border-top: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 4px solid #327e3d;
}

.Hero-plan-btn:last-child::after {
  border-left: 4px solid #db6503;
}

.Hero-plan-btn:hover {
  color: #fff;
}

.Hero-plan-btn:last-child {
  background-color: #db6503;
}

.Hero-plan-btn + .Hero-plan-btn {
  margin-top: 32px;
}

.Hero-plan-btn__txt {
  margin-bottom: 0;
  font-size: 15px;
}

.Hero-plan-btn__txt--compact {
  font-size: 14px;
}

.Hero-plan-btn__ttl {
  margin-bottom: 0;
  font-size: 26px;
  font-weight: bold;
  line-height: 1.25;
}

.Hero-plan-btn__ttl--highlight {
  font-size: 36px;
}

@media (min-width: 768px) {
  .Hero-plan-btn__txt {
    font-size: 16px;
    letter-spacing: -1px;
  }
}

@media (min-width: 960px) {
  .Hero {
    margin-top: 60px;
  }
}

/* END: .Hero */

/* .Fixed */

.Fixed-logo {
  display: none;
}

.Fixed-plan {
  display: none;
}

.Fixed-chat {
  display: none;
}

@media (min-width: 960px) {
  .Fixed-plan-btn {
    position: relative;
    display: block;
    padding: 11px;
    color: #fff;
    text-decoration: none;
    background-color: #327e3d;
    border-radius: 8px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  }

  .Fixed-plan-btn::before,
  .Fixed-plan-btn::after {
    position: absolute;
    top: 50%;
    right: 10px;
    content: '';
    border-bottom: 10px solid transparent;
    transform: translateY(-50%);
  }

  .Fixed-plan-btn::before {
    border-top: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
  }

  .Fixed-plan-btn::after {
    right: 17px;
    border-top: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 4px solid #327e3d;
  }

  .Fixed-plan-btn:last-child::after {
    border-left: 4px solid #db6503;
  }

  .Fixed-plan-btn:hover {
    color: #fff;
  }

  .Fixed-plan-btn:last-child {
    background-color: #db6503;
  }

  .Fixed-plan-btn + .Fixed-plan-btn {
    margin-top: 16px;
  }

  .Fixed-plan-btn__txt {
    margin-bottom: 0;
    font-size: 13px;
    letter-spacing: -1px;
  }

  .Fixed-plan-btn__ttl {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.25;
  }

  .Fixed-plan-btn__ttl--highlight {
    font-size: 26px;
  }

  .Fixed-chat-head {
    position: relative;
  }

  .Fixed-chat-head__img {
    position: absolute;
    top: -8px;
    height: auto;
  }

  .Fixed-chat-head h4 {
    margin: 0 12px 12px;
  }

  .Fixed-chat-head__ttl {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
  }

  .Fixed-chat-head__ttl--highlight {
    color: #92b729;
  }

  .Fixed-chat-head__ttl--custom {
    font-size: 20px;
  }

  .Fixed-chat-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-left: 8px;
  }

  .Fixed-chat-body__txt {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.3;
  }

  .Fixed-chat-lnk {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    text-decoration: none;
    background-color: #89b130;
    border-radius: 10px;
  }

  .Fixed-chat-lnk__txt {
    margin: 5px 0;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
  }

  .Fixed-logo {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    display: block;
    height: 60px;
    background-color: #fff;
  }

  .Fixed-plan {
    --width-plan: 284px;

    position: fixed;
    left: calc((calc((100vw - var(--main-width)) / 2) - var(--width-plan)) / 2);
    display: block;
    width: 100%;
    max-width: var(--width-plan);
    padding: 8px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
  }

  .Fixed-plan__img {
    position: absolute;
    top: -160px;
    right: 0;
    left: 0;
    margin: auto;
  }

  .Fixed-chat {
    --width-chat: 284px;

    position: fixed;
    right: calc(
      (calc((100vw - var(--main-width)) / 2) - var(--width-chat)) / 2
    );
    display: block;
    min-width: var(--width-chat);
    padding: 16px 8px;
    background-color: #fff;
    border-radius: 16px;
  }

  .Fixed-plan,
  .Fixed-chat {
    top: 535px;
  }
}

@media (min-width: 1024px) {
  .Fixed-chat {
    --width-chat: 300px;
  }

  .Fixed-plan {
    --width-plan: 300px;
  }
}

@media (min-width: 1200px) {
  .Fixed-plan {
    --width-plan: 408px;

    left: calc((calc((100vw - var(--main-width)) / 2) - var(--width-plan)) / 2);
    max-width: var(--width-plan);
    padding: 24px;
  }

  .Fixed-plan-btn + .Fixed-plan-btn {
    margin-top: 32px;
  }

  .Fixed-plan-btn__txt {
    font-size: 16px;
  }

  .Fixed-plan-btn__txt--compact {
    font-size: 14px;
  }

  .Fixed-plan-btn__ttl {
    font-size: 26px;
  }

  .Fixed-plan-btn__ttl--highlight {
    font-size: 36px;
  }

  .Fixed-chat {
    --width-chat: 358px;

    right: calc(
      (calc((100vw - var(--main-width)) / 2) - var(--width-chat)) / 2
    );
    min-width: var(--width-chat);
    padding: 20px 16px;
  }

  .Fixed-plan,
  .Fixed-chat {
    top: 250px;
  }

  .Fixed-chat-head h4 {
    margin: 0 28px 12px;
  }

  .Fixed-chat-head__ttl {
    font-size: 28px;
  }

  .Fixed-chat-body__txt {
    font-size: 16px;
  }
}

@media (min-width: 1440px) {
  .Fixed-plan,
  .Fixed-chat {
    top: 445px;
  }
}

/* END: .Fixed */

/* .Footer */

.Footer {
  flex-grow: 1;
  padding-top: 35px;
  background-color: #f2f3f7;
}

.Footer__copyright {
  padding: 24px 16px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 20px;
  color: #888;
  text-align: center;
  border-top: 1px solid #ccc;
}

@media (min-width: 1440px) {
  .Footer {
    flex-grow: unset;
  }
}

/* END: .Footer */
