/* -----------------------
 * device width
 * ----------------------- */
@media (max-width: 1079px) {
  body {
    /* min-width: 1080px; */
  }
}

@media (max-width: 599px) {
  body {
    min-width: 100%;
  }
}

/* -----------------------
 * header
 * ----------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header_height);
  background-color: #fff;
  border-bottom: 2px solid #F6AB00;
  z-index: 100;
  /* min-width: 1080px; */
}

.header__container {
  margin: 0 auto;
  padding: 0 40px;
  padding-right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 599px) {
  .header {
    min-width: 100%;
  }

  .header__container {
    padding-left: 20px;
  }
}

/* -----------------------
 * logo
 * ----------------------- */

.header__logo-link {
  display: block;
}

.header__logo-img {
  display: block;
  width: 220px;
}

@media (max-width: 599px) {
  .header__logo-img {
    width: 160px;
  }
}

/* -----------------------
 * global navigation
 * ----------------------- */
.header__nav {
  display: block;
  padding-left: 30px;
  flex: 1;
}

.header__nav-list {
  display: flex;
  justify-content: end;
  align-items: end;
  gap: 40px;
  padding-right: 40px;
}

.header__nav-link {
  display: block;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.15em;
}

@media (min-width: 600px) and (max-width: 1249px) {
  .header__nav-list {
    gap: clamp(24px, 2vw, 40px);
  }
  .header__nav-link {
    font-size: clamp(1.4rem, 1.3vw, 1.6rem);
  }
}


/* -----------------------
 * modal menu button
 * ----------------------- */

.modal__nav-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  z-index: 102;
  position: relative;
  width: 60px;
  height: 100%;
}

.modal__nav-button:focus,
.modal__nav-button:focus-visible {
  outline: none;
}

.modal__nav-button-line {
  width: 32px;
  height: 3px;
  background-color: #000;
  transition: all 0.3s ease;
}


body.nav-open .modal__nav-button .modal__nav-button-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

body.nav-open .modal__nav-button .modal__nav-button-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .modal__nav-button .modal__nav-button-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


@media (max-width: 1079px) {

  .modal__nav-button {
    display: flex;
  }

  .header__nav {
    top: 60px;
    padding-left: 0;
  }

  .header__nav{
    position: fixed;
    top: var(--header_height);
    left: 0;
    z-index: 101;
    width: 100%;
    height: calc(100vh - var(--header_height));
    height: calc(100dvh - var(--header_height));
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    background-color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }

  body.nav-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width);
  }

  
  body.nav-open .header__nav{
    opacity: 1;
    visibility: visible;
    overflow-y: auto;
  }


  body.nav-open .header {
    padding-right: var(--scrollbar-width);
  }

  .header__nav-list {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 35px;
    padding-right: 0;
    padding: 40px 0 60px;
    margin: auto;
  }
  
  .header__nav-link {
    font-size: 2.0rem;
  }

  .header__nav-link br {
    display: none;
  }
}


/* -----------------------
 * main content
 * ----------------------- */
.main {
  margin-top: var(--header_height);
}


/* -----------------------
 * main visual
 * ----------------------- */
.hero {
  position: relative;
}

.hero__image-img {
  width: 100%;
}


/* -----------------------
 * お知らせ
 * ----------------------- */

.news__section-inner {
  display: flex;
  gap: 100px;
}

.news__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news__list {
  flex: 1;
}

.news__title {
  font-size: var(--text_6xl);
  font-weight: bold;
  text-align: left;
  color: #000;
}

.news__list-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news__list-item {
  border-bottom: 1px solid #D9D9D9;
}

.news__item-link {
  display: flex;
  align-items: center;
  padding: 20px 0;
  gap: 20px;
  position: relative;
}

.news__item-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.news__item-date {
  font-size: 1.5rem;
  color: #000;
  min-width: 100px;
}

.news__item-category {
  display: block;
  padding: 2px 12px;
  padding-left: 16px;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: bold;
  white-space: nowrap;
  min-width: 100px;
  text-align: center;
  line-height: 1.5;
  border: 2px solid #ccc;
}

.category--news {
  border-color: #eb615280;
  color: #EB6153;
}

.category--subsidy {
  border-color: #308FDD80;
  color: #308FDD;
}

.category--support {
  border-color: #38A66C80;
  color: #38A66C;
}

.category--seminar {
  border-color: #C463C880;
  color: #C463C8;
}

.news__item-title {
  flex: 1;
  font-size: 1.6rem;
  position: relative;
}

.news__item-link[href] {
  padding-right: 2em;
}

.news__item-link[href]::after {
  content: '';
  background: url('../img/icon_arrow2c.svg') center/contain no-repeat;
  width: 16px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0.5em;
  z-index: 1;
}

.news__item-link[target="_blank"]::after {
  background: url('../img/icon_link2.svg') center/contain no-repeat;
}

.news__item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}


@media (max-width: 1079px) {
  .news__section-inner {
    flex-direction: column;
    gap: 10px;
  }
  
  .news__content {
    min-height: auto;
    display: contents;
  }

  .news__title {
    order: 1;
    text-align: center;
    margin-bottom: 20px;
  }

  .news__list {
    order: 2;
    margin-bottom: 30px;
  }

  .news__button-container {
    order: 3;
  }
}

@media (max-width: 599px) {
  .news__section-inner {
    flex-direction: column;
    gap: 10px;
  }

  .news__content {
    min-height: auto;
    display: contents;
  }

  .news__title {
    order: 1;
    text-align: center;
    margin-bottom: 20px;
  }

  .news__list {
    order: 2;
    margin-bottom: 30px;
  }

  .news__button-container {
    order: 3;
  }

  .news__item-link {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    gap: 8px;
  }

  .news__item-title {
    width: 100%;
    font-size: 1.5rem;
  }

}

/* -----------------------
 * 本事業の支援内容
 * ----------------------- */

.support__section {
  background-color: var(--color_background);
}

.support__description {
  font-size: var(--text_3xl);
  font-weight: 500;
  line-height: 2;
  text-align: center;
}

@media (max-width: 599px) {
  .support__description {
    font-size: 1.8rem;
    text-align: left;
  }
}

.support__arrow {
  width: 100px;
  height: 20px;
  margin: 40px auto;
  background: url(../img/support_arrow.svg) center / contain no-repeat;
}

.support__subtitle {
  font-size: var(--text_6xl);
  font-weight: bold;
  text-align: center;
  margin-bottom: 46px;
}

@media (max-width: 599px) {
  .support__subtitle {
    font-size: clamp(2.2rem, 6vw, 2.8rem);
  }
}

.support__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 30px;
  margin-bottom: 80px;
}

.support__item {
  color: var(--color_accent);
  font-size: clamp(1.6rem, 1.5vw, 1.8rem);
  font-weight: bold;
  line-height: 2;
  text-align: center;
  background-color: #fff;
  padding: 28px 15px;
  border-radius: 32px;
  border: 5px solid #FCE8B7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support__item::before {
  content: '';
  background: url(../img/support_item_bottom.svg) center / contain no-repeat;
  width: 34px;
  height: 28px;
  position: absolute;
  bottom: -26.5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

@media (max-width: 1079px) {
  .support__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(auto,360px));
    justify-content: center;
    gap: 40px 25px;
    margin-bottom: 120px;
  }
  .support__item:nth-child(odd) {
    transform: translateY(-10px);
  }
  .support__item:nth-child(even) {
    transform: translateY(55px);
  }
}

@media (max-width: 599px) {
  .support__items {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .support__item {
    margin-left: 0;
    margin-right: auto;
    min-width: 280px;
    font-size: 1.6rem;
    line-height: 1.7;
    padding: 20px 15px;
  }
  
  .support__item:nth-child(odd) {
    transform: translateY(0);
  }

  .support__item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
    transform: translateY(0);
  }

}


/* -----------------------
 * 連携先のご紹介
 * ----------------------- */

.edogawa__section {
  border-bottom: 2px solid #FCE8B7;
}

.partner__description {
  font-size: var(--text_3xl);
  font-weight: normal;
  line-height: 2;
  text-align: center;
}

@media (max-width: 599px) {
  .partner__description {
    font-size: 1.8rem;
  }
}

.partner__list {
  margin-top: 40px;
}

.partner__item {
  border-top: 1px solid #D9D9D9;
  padding: 40px 0px;
}
.partner__item:last-child {
  padding-bottom: 0;
}

.partner__item-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.partner__item-banner-img {
  max-width: 600px;
  width: 80%;
  max-height: 180px;
  object-fit: contain;
}

.partner__item-button-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner__item-button {
  position: relative;
  display: inline-block;
  min-width: 260px;
  background: #fff;
  border-radius: 30px;
  border: 2px solid var(--color_accent);
  color: var(--color_accent);
  background-color: #fff;
  padding: 12px 24px;
  padding-right: 60px;
  font-size: 1.6rem;
  font-weight: bold;
  text-align: left;
  text-decoration: none;
  letter-spacing: 0.1em;
  margin: auto;
  cursor: pointer;
}

@media (max-width: 599px) {
  .partner__item-button {
    min-width: 240px;
    padding: 8px 20px;
    padding-right: 50px;
    font-size: 1.5rem;
  }
}

.partner__item-button::before {
  content: '支援メニューを開く';
}

.partner__item-button:after {
  content: '';
  background: url('../img/icon_arrow2c.svg') center/contain no-repeat;
  position: absolute;
  transform: translateY(-50%) rotate(90deg);
  top: 50%;
  right: 24px;
  width: 18px;
  height: 18px;
}

@media (max-width: 599px) {
  .partner__item-button:after {
    background-size: 16px;
  }
}

.partner__item--open .partner__item-button::before {
  content: '支援メニューを閉じる';
}

.partner__item--open .partner__item-button:after {
  transform: translateY(-50%) rotate(270deg);
}

.partner__menu-container {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.partner__menu-inner {
  background-color: var(--color_background);
  padding: 40px;
  border-radius: 12px;
  margin-top: 20px;
}

.partner__menu-inner:has(.partner__sub-list) {
  padding-top: 12px;
}

.partner__menu-list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: center;
  gap: 20px 60px;
  margin-bottom: 30px;
}

.partner__menu-item {
  position: relative;
  font-size: var(--text_2xl);
  font-weight: bold;
  padding-left: 2em;
  letter-spacing: 0.1em;
}

.partner__menu-item:before {
  content: '';
  background: url('../img/icon_check-box.svg') center/contain no-repeat;
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  height: 1lh;
}

.partner__sub-list {
  margin-bottom: 40px;
}

.partner__sub-item {
  border-bottom: 2px solid #F5DDA5;
}

.partner__sub-item-title {
  width: 100%;
  font-size: var(--text_4xl);
  font-weight: bold;
  position: relative;
  text-align: center;
  padding: 30px 40px;
  cursor: pointer;
  user-select: none;
}

.partner__sub-item-title::after {
  content: '';
  background: url(../img/icon_arrow2.svg) center/contain no-repeat;
  width: 40px;
  height: 40px;
  background-color: var(--color_accent);
  border-radius: 50%;
  background-size: 45%;
  position: absolute;
  right: 0px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

@media (max-width: 599px) {
  .partner__sub-item-title::after {
    content: '';
    background: url(../img/icon_arrow2.svg) center/contain no-repeat;
    width:  28px;
    height: 28px;
    background-color: var(--color_accent);
    border-radius: 50%;
    background-size: 45%;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
  }
}

.partner__sub-item--open .partner__sub-item-title {
  color: var(--color_accent);
}

@media (any-hover: hover) {
  .partner__sub-item-title:hover {
    opacity: 1;
    color: var(--color_accent);
  }
}

.partner__sub-item-body {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.partner__sub-item-body-inner {
  padding-bottom: 40px;
}

.partner__sub-item--open .partner__sub-item-title:after {
  transform: translateY(-50%) rotate(270deg);
}

.partner__sub-item-body-text {
  font-size: var(--text_lg);
  line-height: 2;
  margin-bottom: 20px;
}

@media (max-width: 1079px) {
  .partner__menu-list {
    grid-template-columns: repeat(auto-fit, 220px);
    gap: 20px 3px;
  }
}

@media (max-width: 599px) {

  .partner__menu-inner {
    padding: 30px 20px;
  }

  .partner__menu-list {
    grid-template-columns: auto;
    gap: 10px 20px;
    margin-bottom: 30px;
  }

  .partner__item {
    padding: 30px 0px;
  }
  .partner__item-banner-img {
    width: 90%;
  }

  .partner__sub-item-title {
    padding: 20px 0px;
    padding-right: 40px;
    text-align: left;
  }

  .partner__sub-item-titl::after {
    width: 32px;
    height: 32px;
  }

}

/* -----------------------
 * サクッと解説 用語集
 * ----------------------- */

.terms__section {
  background-color: var(--color_background);
}

.terms__category {
  border: 5px solid #FCE8B7;
  border-radius: 12px;
  background-color: #fff;
}

.terms__categories{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terms__category-title {
  width: 100%;
  font-size: var(--text_3xl);
  font-weight: bold;
  position: relative;
  text-align: center;
  padding: 30px 40px;
  cursor: pointer;
  user-select: none;
}

.terms__category-title::after {
  content: '';
  background: url(../img/icon_arrow2.svg) center/contain no-repeat;
  width: 40px;
  height: 40px;
  background-color: var(--color_accent);
  border-radius: 50%;
  background-size: 45%;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
}

.terms__category-body {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

.terms__category--open .terms__category-title {
  color: #F1830D;
}

.terms__category--open .terms__category-title:after {
  transform: translateY(-50%) rotate(270deg);
}

@media (any-hover: hover) {
  .terms__category-title:hover {
    opacity: 1;
    color: #F1830D;
  }
}


.terms__category-body-inner {
  border-top: 2px solid #F6AB00;
  background-color: #FFFBF2;
  padding: 45px 60px;
  border-radius: 0 0 12px 12px;
}

.terms__definitions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 40px;
}

@media (max-width: 1079px) {
  .terms__definitions {
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  }
}

.terms__term {
  font-size: var(--text_3xl);
  font-weight: bold;
  display: flex;
  margin-bottom: 0.5em;
}

.terms__term::before {
  content: '●';
  margin-right: 0.5em;
  margin-top: 0.3em;
  color: var(--color_accent2);
  font-size: var(--text_lg);
}

.terms__description {
  font-size: var(--text_lg);
  line-height: 1.75;
}

@media (max-width: 1079px) {
  .terms__category-title {
    padding-right: 100px;
  }
}

@media (max-width: 599px) {
  .terms__category-title {
    text-align: left;
    padding: 20px;
    padding-right: 60px;
  }
  
  .terms__category-title::after {
    width:  28px;
    height: 28px;
    right: 20px;
  }

  .terms__category-body-inner {
    padding: 30px 20px;
  }

  .terms__definitions {
    grid-template-columns: 1fr;
    gap: 30px 40px;
  }
}

/* -----------------------
 * 事業承継カンタン診断
 * ----------------------- */

.diagnosis__description {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  border-radius: 8px;
  background-image: repeating-linear-gradient(-45deg, #faefd6, #faefd6 10px, #fffbf2 10px, #fffbf2 20px);
}

.diagnosis__preparation {
  font-size: var(--text_5xl);
  font-weight: bold;
  text-align: center;
  color: #F1830D;
  background-color: #FFF;
  padding: 5px 20px;
  border-radius: 8px;
}


/* -----------------------
 * footer
 * ----------------------- */

.footer {
  margin-top: auto;
  background-color: var(--color_accent);
}

.footer__container {
  position: relative;
  margin-left:  auto;
  margin-right: auto;
  max-width: var(--container_width);
  padding-left:  var(--container_padding);
  padding-right: var(--container_padding);
  padding-bottom: 32px;
  padding-top: 32px;
}

.footer__nav {
  display: block;
}

.footer__nav-list {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 40px;
}

.footer__nav-link {
  display: block;
  color: #fff;
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.15em;
}

.footer__copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.1em;
}

@media (max-width: 1079px) {
  .footer__container {
    padding-bottom: 40px;
    padding-top:    40px;
  }

  .footer__nav-list{
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 20px;
  }

  .footer__nav-link {
    font-size: 1.6rem;
  }
  
  .footer__nav-link br {
    display: none;
  }
  
}

/* -----------------------
 * お申込みはこちら ボタン
 * ----------------------- */

.contact-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.contact-button--fade-out {
  opacity: 0;
  pointer-events: none;
}

.contact-button__link {
  display: block;
  width:  200px;
  height: 200px;
  max-height: 30vh;
  max-width:  30vh;
  clip-path: circle(50% at 50% 50%);
}

@media (any-hover: hover) {
  .contact-button__link:hover {
    opacity: 1 !important;
    scale: 1.07;
  }
}

.contact-button__img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 1079px) {
  .contact-button {
    bottom: 20px;
    right:  20px;
  }
  .contact-button__link {
    width:  160px;
    height: 160px;
  }
}

@media (max-width: 599px) {
  .contact-button {
    bottom: 20px;
    right:  10px;
  }
  .contact-button__link {
    width:  28vw;
    height: 28vw;
    max-width:  160px;
    max-height: 160px;
  }
}


/* -----------------------
 * breadcrumb
 * ----------------------- */

.breadcrumb__container {
  position: relative;
  margin-left:  auto;
  margin-right: auto;
  padding-left:  var(--container_padding);
  padding-right: var(--container_padding);
  padding-top: 32px;
}

.breadcrumb__list {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 599px) {
  .breadcrumb__list {
    font-size: 1.3rem;
  }
}


.breadcrumb__item {
  display: flex;
}

.breadcrumb__item a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
}

.breadcrumb__item::after {
  content: "";
  background: url('../img/icon_arrow3.svg') center/contain no-repeat;
  padding-right: 1.7em;
}

.breadcrumb__item:last-of-type {
  color: hsl(0, 0%, 70%);
  pointer-events: none;
}
.breadcrumb__item:last-of-type::after {
  display: none;
}

/* -----------------------
 * 下層ページ
 * ----------------------- */

.page__section {
  padding-top: 50px;
  /* min-height: 80vh; */
}

.page__section .news__list {
  margin-top: 70px;
  margin-bottom: 70px;
}


/* -----------------------
 * 事業承継診断の流れ
 * ----------------------- */

.flow__steps {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;
  padding-bottom: 80px;
}

.flow__step { 
  padding: 60px 45px;
  background-color: var(--color_background);
  border-radius: 12px;
  display: flex;
}

.flow__step-content {
  flex: 1;
}

.flow__title {
  font-size: var(--text_4xl);
  font-weight: bold;
  width: 400px;
  margin-bottom: 1em;
  display: flex;
}

.flow__arrow {
  width: 100px;
  height: 20px;
  margin: 25px auto;
  background: url(../img/support_arrow.svg) center / contain no-repeat;
}

.flow__step-number {
  font-size: var(--text_9xl);
  font-family: var(--font_family_Roboto);
  color: var(--color_accent);
  padding-right: 0.25em;
  line-height: 0.8;
}

.flow__text {
  font-size: var(--text_xl);
  line-height: 2;
}

.flow__button-container {
  margin-top: 25px;
}

.flow__section1 {
  padding-bottom: 0;
}

.flow__section1-inner {
  border-bottom: 1px solid #D9D9D9;
}

.flow__section2 .section__title,
.flow__section2 .flow__step-number {
  color: #38A66C;
}

.flow__section2 .flow__step {
  background-color: #EBF6F0;
}

.flow__section2 .common__button.icon_link {
  background-color: #38A66C;
}

.flow__section2 .flow__arrow {
  background: url(../img/flow_arrow.svg) center / contain no-repeat;
}

@media (max-width: 599px) {

  .flow__steps {
    padding-top: 10px;
    padding-bottom: 60px;
  }

  .flow__step { 
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .flow__title {
    width: 100%;
  }

  .flow__button-container {
    display: flex;
    justify-content: center;
  }

}
