/* MS_INS-35 v2ヘッダー C1 */

/* Utility Classes */
.ib {
  display: inline-block;
}

.mt6 {
  margin-top: 6px;
}

/* Common Settings */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000; 
  transition: transform 0.3s ease-in-out;
  background: #fff;
}

.header.header-visible {
  transform: translateY(0);
}

.header.header-hidden {
  transform: translateY(-100%);
}

.header *,
.mobile_dropdown * {
  box-sizing: border-box;
}

.mobile_dropdown a {
  background-color: transparent;
  text-decoration: none;
  color: inherit;
}

.header button,
.header [type='button'],
.header [type='reset'],
.header [type='submit'],
.mobile_dropdown button,
.mobile_dropdown [type='button'],
.mobile_dropdown [type='reset'],
.mobile_dropdown [type='submit'] {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
}

.header button,
.header input,
.header optgroup,
.header select,
.header textarea,
.mobile_dropdown button,
.mobile_dropdown input,
.mobile_dropdown optgroup,
.mobile_dropdown select,
.mobile_dropdown textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  vertical-align: middle;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0;
  outline: 0;
  border-radius: 0;
  text-align: inherit;
  border: none;
}

.header fieldset,
.mobile_dropdown fieldset {
  margin: 0;
  padding: 0;
  min-width: 0;
  border: none;
}

.header_spacer {
  height: 100%;
}

.mobile_dropdown .st666_btn {
  position: relative;
  width: calc(260em / 16);
  aspect-ratio: 260/50;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, #ffe061 0%, #ffce37 100%);
  box-shadow: inset 0 calc(-4em / 16) 0 rgba(0, 0, 0, 0.2);
  border-radius: calc(4em / 16);
  margin: 0 auto;
  padding-right: calc(20em / 16);
  cursor: pointer;
  color: #333333;
}

.mobile_dropdown .st666_btn:visited,
.mobile_dropdown .st666_btn:hover,
.mobile_dropdown .st666_btn:active,
.mobile_dropdown .st666_btn:focus {
  background: linear-gradient(#ffcc33, #ffe062);
  color: #333333;
}

.mobile_dropdown .st666_btn:after {
  content: '';
  position: absolute;
  top: calc(16em / 16);
  right: calc(16em / 16);
  width: calc(16em / 16);
  aspect-ratio: 1/1;
  background: url(/personal/car/img/st666/st666_btn.webp) no-repeat center / contain;
}

.logo_img {
  width: 110px;
  height: auto;
}

.header__content {
  display: flex;
  justify-content: space-between;
  position: relative;
  flex-wrap: wrap;
  width: 100vw;
  height: auto;
  background: #fff;
  z-index: 1000;
  padding: 4px 4px 4px 10px;
}

.header_spacer {
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo > * {
  display: block;
}

.logo_img {
  width: 110px;
  height: auto;
}

.js-overlay {
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 900;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.05s linear;
}

.disp_sp {
  display: block;
}

.disp_pc {
  display: none;
}

.right-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.bottom-area {
  width: 100%;
  z-index: 100;
}

.bottom-box {
  display: flex;
  padding: 8px 16px 16px;
  gap: 16px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.bottom-btn {
  border: 1px solid #d9d9d9;
  padding: 16px;
  gap: 8px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.2;
  width: 50%;
  -webkit-user-select: none;
  user-select:none;
}

.textColor--brand {
  color: #00665a;
}

.textColor--brand:visited {
  opacity: 0.8;
}

.bottom-btn__icon {
  width: 25px;
  height: auto;
}

.header_btn {
  border-radius: 6px;
}

.hamburger {
  position: relative;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px!important;
  box-sizing: content-box;
}

.hamburger__label{
  font-size: 10px;
  width: 100%;
  position: absolute;
  bottom: 6px;
  left: 0;
  text-align: center;
  color: #00665A;
  -webkit-user-select: none;
  user-select:none;
}

.hamburger__line {
  position: absolute;
  left: 19px;
  width: 26px;
  height: 2px;
  background-color: #00665A;
  transition: all .4s;
}

.hamburger__line:nth-of-type(1) {
  top: 10px;
}
.hamburger__line:nth-of-type(2) {
  top: 19px;
}
.hamburger__line:nth-of-type(3) {
  top: 28px;
}

.hamburger.active .hamburger__line:nth-of-type(1) {
  transform: translateY(9px) rotate(-45deg);
}
.hamburger.active .hamburger__line:nth-of-type(2) {
  opacity: 0;
}
.hamburger.active .hamburger__line:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

.menuItem__icon {
  margin-right: auto;
  margin-left: 8px;
}

@media (hover: hover) {
  .search__close:hover {
    background-image: url('/shared/v2/images/header/btn-search-close-hover-pc.webp');
  }

  .search__icon.expanded:hover {
    background: #fff;
  }

  .search__icon.expanded #SS_searchForm_pc > input:hover {
    background: #f2f2f2;
  }

  .car-area__link:hover {
    color: #00665a;
    opacity: 0.8;
  }

  .menu__dropdown-header > .menuItem__link:hover,
  .menu__dropdown-item > .menuItem__link:hover {
    text-decoration: none !important;
  }

  .menu__item > .menuItem__link:hover,
  .menu__item > .menuItem__link.on,
  .menu__item > .menuItem__head:hover,
  .menu__item > .menuItem__head.on {
    z-index: 1010;
    border-bottom-color: transparent;
  }

  .other-btn:hover,
  .right-btn:hover,
  .menuItem__categoryTop:hover{
    color: #00665a;
    background-color: #f2f2f2;
    box-shadow: none;
  }

  .bottom-btn:hover {
    color: #000;
    box-shadow: none;
  }

  .bottom-btn:hover .bottom-btn__icon {
    opacity: 1 !important;
  }

  .bottom-btn:hover,
  .js-menu_toggle:hover,
  .header_btn:hover {
    background-color: #f2f2f2;
    border-radius: 6px;
  }

  .search__icon:hover {
    background-color: #f2f2f2;
  }
}

.search-wrapper {
  width: 100%;
  max-width: 1366px;
  position: relative;
  margin: 0 auto;
  margin-top: -46px;
}

/* Search Icon */
.search__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid #dbdbdb;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.search__icon.expanded {
  width: 280px;
  border-radius: 50px;
  justify-content: space-between;
  padding-right: 10px;
  position: absolute;
}

.search__box {
  display: none;
  width: 100%;
}

.search__box input {
  border: none;
  font-size: 13px;
  width: 100%;
  line-height: 24px;
  margin-left: 4px;
  padding-right: 8px;

}

#SS_searchForm_pc > input {
  pointer-events: none;
  margin: 8px 0;
}

.search__icon.expanded #SS_searchForm_pc {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.search__icon.expanded #SS_searchForm_pc > input {
  pointer-events: auto;
  padding: 8px 16px;
  width: 16px;
  box-sizing: content-box;
  border-radius: 16px;
}

.search__close {
  display: none;
  opacity: 0;
  z-index: 5000;
  position: absolute;
  right: -51px;
  top: 11px;
  transition: all 0.2s ease;
  background: url('/shared/v2/images/header/btn-search-close-pc.webp') left top;
  background-size: 42px auto;
  width: 42px;
  height: 42px;
}

.search-wrapper.open {
  z-index: 5000;
}

.search__icon {
  position: absolute;
  right: -49px;
  top: 11px;
}

/* SP Menu */
.mobile_dropdown {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1010;
  display: none;
  background: #fff;
  overflow-y: scroll;
  box-sizing: border-box;
  transition:all .4s cubic-bezier(0.25, 1, 0.5, 1);
  top:52px;
  opacity: 0;
}
.mobile_dropdown.open{
  opacity: 1;
  animation: fade-in .6s;
}
@keyframes fade-in {
    0% {opacity: 0;}
  100% {opacity: 1;}
}

.car-area {
  background: #e2f8f5;
  padding: 24px 16px 32px;
}

.mobile_dropdown .car-area__link {
  color: #00665a;
  font-weight: bold;
  text-decoration: underline;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 180px;
  margin: 0 auto 24px;
}

.car-area__link > *:first-child {
  padding-bottom: 4px;
}

.car-area__link::after {
  content: '';
  display: block;
  background-image: url(/shared/v2/images/header/icon-arrow-all.webp);
  background-repeat: no-repeat;
  background-size: 7px 14px;
  background-position: right center;
  height: 14px;
  width: 23px;
}

/* Accordion Related */
.accordion-box {
  display: flex;
  flex-flow: column;
  gap: 6px;
  max-width: 448px;
  margin: 0 auto 24px;
}

.menu__accordion {
  background: #fff;
  border: 1px solid #a1dec8;
  border-radius: 6px;
  overflow: hidden;
}

.menu__accordion-header {
  padding: 6px 0 6px 0;
  border-top: 1px solid #a1dec8;
  position: relative;
  cursor: pointer;
}

.menu__accordion-header::before,
.menu__accordion-header::after {
  background-color: var(--COLOR_BRAND_PRIMARY);
  bottom: 0;
  content: "";
  height: 2px;
  margin: auto 16px;
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  z-index: 10;
}
.menu__accordion-header::after {
  transform: rotate(-90deg);
  transition: transform var(--TRANSITION);
}

.open.menu__accordion-header::after {
  transform: rotate(0deg);
}
.menu__accordion-content.open .menu__accordion-item:not(:first-of-type) {
  border-top: 1px solid #a1dec8;
}

.menu__accordion-header:first-child,
.menu__accordion-item:first-child {
  border-top: none;
}

.menu__accordion-content .menu__accordion-item{
  position: relative;
}

.menu__accordion-content.open .menu__accordion-item:first-child:before{
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  background: linear-gradient(#E9E8E8, transparent);
  transition: opacity ease-in-out .4s;
  opacity: 0;
}

.menu__accordion-content .menu__accordion-content .menu__accordion-item:last-child:after{
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  background: linear-gradient(transparent ,#E9E8E8);
  bottom: 0;
  transition: opacity ease-in-out .4s;
  opacity: 0;
}

.menu__accordion-content.open .menu__accordion-item:first-child:before,
.menu__accordion-content .menu__accordion-content.open .menu__accordion-item:last-child:after{
  opacity: 1;
}

.accordion__link,
.accordion__text {
  transition: font-size easease-in-out .2s;
  font-size: 18px;
  display: flex;
  padding: 10px 12px;
  margin-left: 50px;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  position: relative;
}

.menu__accordion-item .menu__accordion-content .accordion__link,
.menu__accordion-item .menu__accordion-content .accordion__text{
  font-size: 16px;
}

.menu__accordion > .menu__accordion-item > .menu__accordion-header {
  font-weight: bold;
}

.accordion__link::after {
  content: '';
  display: block;
  background-image: url(/shared/v2/images/header/icon-arrow-all.webp);
  background-repeat: no-repeat;
  background-size: 7px 14px;
  background-position: right center;
  height: 14px;
  width: 23px;
}

.menu__accordion-item > .accordion__link {
  padding: 16px 12px 16px 12px;
}

.menu__accordion-header .accordion__link,
.menu__accordion-header .accordion__text {
  border-left: 1px solid #a1dec8;
}

.menu__accordion-content > .menu__accordion-header > .accordion__link {
  font-weight: normal;
}

.menu__accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.2s ease-out;
}
.menu__accordion-content__inner{
  overflow-y: hidden;
}

.menu__accordion-content.open {
  border-top: 1px solid #a1dec8;
  grid-template-rows: 1fr;
}

/* Other Car Insurance */
.car-other {
  padding: 24px 16px;
  max-width: 480px;
  margin: 0 auto 24px;
}

.other-heading {
  text-align: center;
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 24px;
}

.other-btn-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.other-btn {
  display: flex;
  align-items: center;
  width: calc(50% - 4px);
  box-sizing: border-box;
  gap: 8px;
  padding: 16px 12px;
  border-radius: 6px;
  border: 1px solid #d9d9d9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.other-btn-icon {
  width: 48px;
  -webkit-user-select: none;
  user-select:none;
}

.other-btn-label {
  font-size: 13px;
  -webkit-user-select: none;
  user-select:none;
}

/* Search Form (SP) */
.searchForm_sp {
  margin-top: 24px;
}

.searchForm_sp__inner {
  display: flex;
}

.mobile_dropdown .searchForm_sp__input {
  border-radius: 6px 0 0 6px;
  border: 1px solid #d9d9d9;
  border-right: none;
  width: 100%;
  padding: 14px;
  font-size: 17px;
  box-sizing: border-box;
}

.mobile_dropdown .searchForm_sp__button {
  box-sizing: border-box;
  display: flex;
  width: 84px;
  justify-content: center;
  align-items: center;
  border-radius: 0 6px 6px 0;
  border: 1px solid #d9d9d9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 20px;
  height: 20px;
  padding: 17px;
  box-sizing: content-box;
}

/* Other Links */
.car-link {
  padding: 24px 16px 32px;
  background: #f6f6f6;
  margin-bottom: 64px;
}

.car-link * {
  border-color: #ccc!important;
}

.car-link .menu__accordion-header > .accordion__link {
  border-left-color: #ccc!important;
}

.car-link .menu__accordion > .menu__accordion-item > .accordion__link {
  font-weight: bold;
}

/* MS_INS-35 v2ヘッダー C2 */
@media (width >= 980px) {
  .disp_pc {
    display: block;
  }

  .menu--pc {
    display: flex;
    z-index: 1000;
  }

  .disp_sp {
    display: none;
  }

  .right-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
  }

  .right-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    box-sizing: border-box;
    text-decoration: none;
    min-height: 47px;
    color: #00665a;
    border-radius: 6px 0 0 6px;
    padding: 6px 8px 6px 12px;
    border: 1px solid #dbdbdb;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    -webkit-user-select: none;
  user-select:none;
  }

  .right-btn:visited {
    color: #00665a;
  }

  .right-btn:last-of-type {
    border-radius: 0 6px 6px 0;
    padding: 6px 12px 6px 8px;
    border-left: none;
  }

  .right-btn__icon {
    width: 18px;
    height: auto;
  }

  .header__content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    z-index: 100;
    padding: 0 12px;
    padding-right: 58px;
  }

  .logo_img {
    width: 120px;
    height: auto;
  }

  /* PC Menu */
  .menu__list {
    display: flex;
    align-items: center;
  }

  .menu__dropdown {
    pointer-events: none;
    display: none;
    opacity: 0;
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    gap: 32px;
    border-radius: 6px;
    padding: 32px;
    transition: opacity 0.05s linear;
    min-width: max-content;
  }

  .on + .menu__dropdown {
    pointer-events: all;
  }

  .menu__dropdown > .menu__dropdown-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .menu__dropdown > .menu__dropdown-content > .menu__dropdown-item {
    gap: 18px;
    word-break: keep-all;
  }

  .menu__dropdown-content .menu__dropdown-content {
    text-wrap: nowrap;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .menu__dropdown > .menu__dropdown-content--grid {
    gap: 18px;
  }

  .menu__dropdown-content--grid .menu__dropdown-content {
    display: grid;
    grid-template-rows: repeat(2, minmax(1px, auto));
    grid-column-gap: 32px;
    grid-row-gap: 16px;
    grid-auto-flow: column;
  }

  .menu__dropdown-content--grid2 .menu__dropdown-content {
    display: grid;
    grid-template-rows: repeat(3, minmax(1px, auto));
    grid-column-gap: 32px;
    grid-row-gap: 16px;
    grid-auto-flow: column;
  }

  .dropdown-btn-box {
    width: 334px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    text-wrap: wrap;
  }

  .dropdown-btn-box .other-btn {
    word-break: keep-all;
  }

  .menu__dropdown-header,
  .menu__dropdown-item {
    width: 100%;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: flex-start;
  }

  .menu__dropdown-header > .menuItem__link {
    color: #222;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
  }

  .menu__dropdown-header > .menuItem__link::before {
    content: '';
    display: block;
    background-image: url(/shared/v2/images/header/icon-arrow2-all.webp);
    background-repeat: no-repeat;
    background-size: 12px 12px;
    background-position: right center;
    height: 12px;
    width: 12px;
    margin-top: -2px;
  }

  .menu__dropdown-header > .menuItem__text {
    font-size: 13px;
    font-weight: bold;
    color: #222;
  }

  .menu__dropdown-header > .menuItem__text:empty{
    min-height: 21px;
  }

  .menu__dropdown-item > .menuItem__link {
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
    color: #222;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 4px;
    align-items: flex-start;
    text-decoration: underline;
    position: relative;
    padding-left: 20px;
  }

  .menu__dropdown-item > .menuItem__link::after {
    content: '';
    display: block;
    background-image: url(/shared/v2/images/header/icon-arrow-all.webp);
    background-repeat: no-repeat;
    background-size: 6px 12px;
    background-position: right center;
    height: 14px;
    width: 15px;
    position: absolute;
    top: 1px;
    left: 0;
  }

  .menu__item > .menuItem__link,
  .menu__item > .menuItem__head {
    font-size: 12px;
    line-height: 140%;
    vertical-align: middle;
    text-decoration: none;
    color: #00665a;
    display: flex;
    padding: 5px 5px 8px;
    margin-top: 3px;
    border-bottom: 1px solid #00665a;
    position: relative;
    border-radius: 6px 6px 0 0;
    margin: 5px 0.4545455vw 0;
  }
  .menu__item > .menuItem__link.current{
    font-weight: bold;
    border-bottom-width: 3px;
    padding-bottom: 6px;
  }
  .menuItem__categoryTop{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    padding: 5px 6px 6.27px;
    border-radius: 6px;
    border: 1px solid #dbdbdb;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1;
    gap: 5px;
    text-decoration: none;
    -webkit-user-select: none;
  user-select:none;
  }
  .menuItem__categoryTop img{
    width: 29px;
  }
  .menuItem__categoryTop span{
    font-size: 10px;
    color: #00665a;
  }
  .menu__item > .menuItem__head {
    cursor: default;
  }

  .menu__item > .menuItem__link.on,
  .menu__item > .menuItem__head.on {
    background: #fff;
    font-weight: bold;
  }

  .menu__item:nth-child(2) > .menuItem__link,
  .menu__item:last-child > .menuItem__head {
    line-height: 280%;
  }

  _::-webkit-full-page-media, _:future, :root .menu__item:nth-child(2) > .menuItem__link,
  _::-webkit-full-page-media, _:future, :root .menu__item:last-child > .menuItem__head {
    line-height: 274%;
  }

  .search-wrapper {
    margin-top: -57px;
    height: 0;
  }

  .menu__item:last-child > .menu__dropdown {
    width: auto;
  }

  .menuItem__icon {
    margin-right: inherit;
    margin-left: 0;
  }
}

/* MS_INS-35 v2ヘッダー C3 */
@media (width >= 1100px) {
  .header__content {
    width: 100%;
    padding-right: 64px;
    max-width: 1124px;
    box-sizing: border-box;
    margin: 0 auto;
  }

  .logo_img {
    width: 130px;
    height: auto;
  }


  .menu__item > .menuItem__link,
  .menu__item > .menuItem__head {
    font-size: 14px;
    margin: 5px 5px 0;
  }

  .menu__dropdown {
    top: 54px;
  }

  .menu__dropdown-header > .menuItem__link {
    font-size: 14px;
  }

  .menu__dropdown-header > .menuItem__text {
    font-size: 14px;
    font-weight: bold;
    color: #222;
  }

  .menu__dropdown-item > .menuItem__link {
    font-size: 13px;
  }

  .search__icon,
  .search__close {
    right: -52px;
    top: 9px;
  }
}
