/* =========================================
   TOP PAGE
========================================= */



/* =========================================
   HERO
========================================= */

.top-hero {
  padding: 10px 0;

  background: #f2f2f2;
}

.top-hero-inner {
  width: calc(100% - 40px);
  max-width: 980px;

  min-height: 285px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    350px
    minmax(0, 1fr);

  overflow: hidden;

  background: #ffffff;
}



/* =========================================
   HERO LEFT
========================================= */

.top-hero-person {
  position: relative;

  min-height: 285px;

  padding-top: 22px;

  overflow: hidden;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  background: #ffffff;
}

.top-hero-person > img {
  width: 100%;
  height: 100%;

  max-height: 270px;

  object-fit: contain;

  object-position: center bottom;
}



/* HERO SMALL LOGO */

.hero-small-logo {
  position: absolute;

  top: 27px;
  left: 55px;

  z-index: 3;

  color: #333333;
}

.hero-small-logo small {
  display: block;

  color: #777777;

  font-size: 9px;

  line-height: 1.3;
}

.hero-small-logo strong {
  display: block;

  margin-top: 1px;

  color: #302356;

  font-size: 13px;

  line-height: 1.3;
}



/* =========================================
   HERO RIGHT
========================================= */

.top-hero-copy {
  padding:
    47px
    43px
    29px
    20px;
}

.top-hero-copy h1 {
  margin: 0 0 8px;

  color: #159578;

  font-size: 30px;

  font-weight: 700;

  line-height: 1.35;

  letter-spacing: 0.02em;
}

.top-hero-lead {
  margin: 0 0 19px;

  color: #159578;

  font-size: 17px;

  font-weight: 700;

  line-height: 1.8;
}



/* =========================================
   HERO SERVICE LINKS
========================================= */

.hero-service-links {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 7px;
}

.hero-service-links a {
  min-height: 35px;

  padding: 6px 8px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #ffffff;

  background: #d0c64f;

  border-radius: 2px;

  font-size: 14px;

  font-weight: 700;

  line-height: 1.35;

  text-align: center;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.hero-service-links a:hover {
  background: #b8ad39;

  transform: translateY(-1px);
}



/* =========================================
   TOP MAIN LAYOUT
========================================= */

.top-main-container {
  width: calc(100% - 40px);
  max-width: 980px;

  margin: 33px auto 80px;

  display: grid;

  grid-template-columns:
    190px
    minmax(0, 1fr);

  gap: 28px;
}

.top-sidebar,
.top-main-content {
  min-width: 0;
}



/* =========================================
   TOP FEATURES
========================================= */

.top-features {
  padding:
    17px
    20px
    20px;

  border: 2px solid #89afe4;

  border-radius: 6px;

  background: #ffffff;
}

.top-features > h2 {
  margin:
    0
    0
    17px;

  color: #80a9df;

  font-size: 28px;

  font-weight: 400;

  line-height: 1.3;

  text-align: center;
}



/* FEATURE ITEM */

.top-feature-item {
  position: relative;

  min-height: 83px;

  margin-bottom: 10px;

  padding:
    13px
    20px
    12px
    48px;

  display: flex;

  align-items: center;

  color: #ffffff;

  background: #96b5df;
}

.top-feature-item:last-child {
  margin-bottom: 0;
}



/* NUMBER */

.top-feature-number {
  position: absolute;

  top: 12px;
  left: -10px;

  width: 44px;
  height: 31px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #72a0de;

  background: #ffffff;

  border: 1px solid #72a0de;

  border-radius: 4px;

  font-size: 22px;

  font-weight: 700;

  line-height: 1;
}



/* TEXT */

.top-feature-text {
  width: 100%;
}

.top-feature-text h3 {
  margin: 0 0 4px;

  color: #ffffff;

  font-size: 16px;

  font-weight: 700;

  line-height: 1.5;
}

.top-feature-text p {
  margin: 0;

  color: #ffffff;

  font-size: 14px;

  line-height: 1.65;
}



/* =========================================
   SECTION TITLE
========================================= */

.top-section-title {
  position: relative;

  margin: 0;

  padding:
    0
    0
    8px
    18px;

  color: #30264b;

  border-bottom: 1px solid #bdbdbd;

  font-size: 17px;

  font-weight: 400;

  line-height: 1.4;
}

.top-section-title::before {
  content: "";

  position: absolute;

  top: 1px;
  left: 3px;

  width: 5px;
  height: 22px;

  background: #39275e;
}



/* =========================================
   NEWS
========================================= */

.top-news {
  margin-top: 27px;
}

.top-news-list a {
  min-height: 40px;

  padding: 8px 9px;

  display: grid;

  grid-template-columns:
    98px
    minmax(0, 1fr);

  align-items: center;

  border-bottom: 1px dotted #cccccc;

  color: #39275e;

  font-size: 13px;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.top-news-list a:hover {
  color: #f28a31;

  background: #fafafa;
}

.top-news-list time {
  color: #333333;

  font-size: 12px;

  font-variant-numeric: tabular-nums;
}

.top-news-list span {
  line-height: 1.5;
}



/* =========================================
   SERVICES
========================================= */

.top-services {
  margin-top: 30px;

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 13px;
}



/* SERVICE CARD */

.top-service-card {
  position: relative;

  min-height: 320px;

  padding-bottom: 42px;

  overflow: hidden;

  border: 1px solid #cccccc;

  background: #ffffff;
}



/* SERVICE IMAGE */

.top-service-image {
  display: block;

  overflow: hidden;
}

.top-service-image img {
  width: 100%;
  height: 110px;

  object-fit: cover;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.top-service-image:hover img {
  transform: scale(1.03);

  opacity: 0.9;
}



/* SERVICE BODY */

.top-service-body {
  padding: 10px 11px;
}

.top-service-body h2 {
  margin:
    0
    0
    8px;

  color: #30264b;

  font-size: 16px;

  line-height: 1.4;
}

.top-service-body p {
  margin: 0;

  color: #30264b;

  font-size: 13px;

  line-height: 1.65;
}



/* MORE BUTTON */

.top-more-button {
  position: absolute;

  right: 9px;
  bottom: 10px;

  min-width: 88px;

  padding:
    5px
    9px;

  color: #ffffff;

  background: #39275e;

  border-radius: 2px;

  font-size: 11px;

  font-weight: 700;

  text-align: center;

  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.top-more-button:hover {
  background: #5a477d;

  transform: translateY(-1px);
}



/* =========================================
   BOOKLET
========================================= */

.top-booklet {
  margin-top: 20px;

  padding:
    20px
    20px
    22px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    125px;

  gap: 18px;

  border: 1px solid #cccccc;

  background: #ffffff;
}



/* BOOKLET TEXT */

.top-booklet-text {
  min-width: 0;
}

.booklet-label {
  width: fit-content;

  padding:
    3px
    15px;

  display: inline-block;

  color: #ffffff;

  background: #4bae20;

  border-radius: 16px;

  font-size: 13px;

  font-weight: 700;

  line-height: 1.5;
}

.top-booklet h2 {
  margin:
    5px
    0
    0;

  color: #ee1700;

  font-size: 30px;

  font-weight: 700;

  line-height: 1.25;

  text-decoration:
    underline
    #f2d31e
    5px;
}

.top-booklet h3 {
  margin:
    1px
    0
    9px;

  color: #30264b;

  font-size: 25px;

  line-height: 1.35;
}

.booklet-lead {
  font-weight: 700;
}

.top-booklet hr {
  margin:
    12px
    0;

  border: 0;

  border-top: 1px solid #dddddd;
}

.top-booklet p {
  margin:
    8px
    0;

  color: #333333;

  font-size: 13px;

  line-height: 1.8;
}



/* BOOKLET IMAGE */

.top-booklet-image {
  display: flex;

  align-items: flex-start;

  justify-content: center;
}

.top-booklet-image img {
  width: 100%;

  max-width: 125px;

  border: 1px solid #dddddd;

  box-shadow:
    0 2px 5px
    rgba(0, 0, 0, 0.12);
}



/* =========================================
   COMMON SIDEBAR ON TOP
========================================= */

.top-sidebar .common-sidebar {
  width: 100%;
}

.top-sidebar .sidebar-banner {
  margin-bottom: 13px;
}

.top-sidebar .sidebar-office {
  margin-top: 0;
}



/* =========================================
   TABLET
========================================= */

@media screen and (max-width: 900px) {

  /* HERO */

  .top-hero-inner {
    grid-template-columns:
      38%
      62%;
  }

  .top-hero-copy {
    padding:
      35px
      25px
      28px
      15px;
  }

  .top-hero-copy h1 {
    font-size: 26px;
  }

  .top-hero-lead {
    font-size: 15px;
  }

  .hero-service-links a {
    font-size: 13px;
  }


  /* MAIN */

  .top-main-container {
    grid-template-columns:
      170px
      minmax(0, 1fr);

    gap: 20px;
  }


  /* FEATURES */

  .top-feature-text h3 {
    font-size: 15px;
  }

  .top-feature-text p {
    font-size: 13px;
  }


  /* SERVICES */

  .top-service-body h2 {
    font-size: 15px;
  }

  .top-service-body p {
    font-size: 12px;
  }

}



/* =========================================
   MOBILE
========================================= */

@media screen and (max-width: 760px) {

  /* =====================================
     HERO
  ====================================== */

  .top-hero {
    padding: 0;

    background: #ffffff;
  }

  .top-hero-inner {
    width: 100%;

    min-height: 0;

    display: flex;

    flex-direction: column;
  }



  /* COPY FIRST */

  .top-hero-copy {
    order: 1;

    padding:
      28px
      20px
      25px;

    background: #ffffff;
  }

  .top-hero-copy h1 {
    font-size: 24px;

    line-height: 1.45;
  }

  .top-hero-lead {
    font-size: 14px;

    line-height: 1.75;
  }



  /* PERSON SECOND */

  .top-hero-person {
    order: 2;

    min-height: 290px;

    padding-top: 15px;

    background: #f7f7f7;
  }

  .top-hero-person > img {
    max-height: 280px;
  }

  .hero-small-logo {
    top: 20px;
    left: 20px;
  }



  /* HERO BUTTONS */

  .hero-service-links {
    grid-template-columns:
      repeat(2, 1fr);
  }

  .hero-service-links a {
    min-height: 39px;

    font-size: 13px;
  }



  /* =====================================
     MAIN
  ====================================== */

  .top-main-container {
    width: calc(100% - 30px);

    margin-top: 28px;

    display: flex;

    flex-direction: column;
  }


  /* メインを先に表示 */

  .top-main-content {
    order: 1;
  }

  .top-sidebar {
    order: 2;

    margin-top: 30px;
  }



  /* =====================================
     FEATURES
  ====================================== */

  .top-features {
    padding:
      15px
      14px
      16px;
  }

  .top-features > h2 {
    font-size: 24px;
  }

  .top-feature-item {
    min-height: 0;

    padding:
      14px
      13px
      14px
      42px;
  }

  .top-feature-number {
    top: 12px;

    width: 40px;
    height: 30px;

    font-size: 20px;
  }

  .top-feature-text h3 {
    font-size: 15px;
  }

  .top-feature-text p {
    font-size: 13px;
  }



  /* =====================================
     NEWS
  ====================================== */

  .top-news-list a {
    grid-template-columns:
      90px
      minmax(0, 1fr);

    font-size: 13px;
  }



  /* =====================================
     SERVICES
  ====================================== */

  .top-services {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .top-service-card {
    min-height: 0;

    padding-bottom: 50px;
  }

  .top-service-image img {
    height: 190px;
  }

  .top-service-body {
    padding: 15px;
  }

  .top-service-body h2 {
    font-size: 19px;
  }

  .top-service-body p {
    font-size: 14px;

    line-height: 1.7;
  }

  .top-more-button {
    right: 15px;
    bottom: 14px;

    min-width: 110px;

    font-size: 13px;
  }



  /* =====================================
     BOOKLET
  ====================================== */

  .top-booklet {
    grid-template-columns: 1fr;

    padding: 18px;
  }

  .top-booklet h2 {
    font-size: 26px;
  }

  .top-booklet h3 {
    font-size: 22px;
  }

  .top-booklet p {
    font-size: 13px;
  }

  .top-booklet-image {
    justify-content: flex-start;
  }

  .top-booklet-image img {
    max-width: 150px;
  }



  /* =====================================
     SIDEBAR
  ====================================== */

  .top-sidebar .common-sidebar {
    display: grid;

    grid-template-columns:
      repeat(2, 1fr);

    gap: 15px;
  }

  .top-sidebar .sidebar-banner {
    margin-bottom: 0;
  }

  .top-sidebar .sidebar-office {
    grid-column: 1 / -1;
  }

}



/* =========================================
   SMALL MOBILE
========================================= */

@media screen and (max-width: 480px) {

  /* HERO */

  .top-hero-copy h1 {
    font-size: 21px;
  }

  .top-hero-lead {
    font-size: 13px;
  }

  .hero-service-links {
    grid-template-columns: 1fr;
  }

  .hero-service-links a {
    font-size: 13px;
  }



  /* FEATURES */

  .top-features > h2 {
    font-size: 21px;
  }



  /* NEWS */

  .top-news-list a {
    grid-template-columns: 1fr;

    gap: 2px;
  }



  /* BOOKLET */

  .top-booklet h2 {
    font-size: 23px;
  }

  .top-booklet h3 {
    font-size: 20px;
  }



  /* SIDEBAR */

  .top-sidebar .common-sidebar {
    display: block;
  }

  .top-sidebar .sidebar-banner {
    margin-bottom: 15px;
  }

}