/* ハンバーガー表示（JSが幅不足を検知すると header に .menu-compact を付与） */
header.menu-compact .ib .menubtn {
    display: block;
    flex: none;
    width: 30px;
    height: 30px;
    margin-left: auto;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: url(../images/sp_menu.svg) 50% 50% / 20px auto no-repeat;
}

header.menu-compact.menu-open .ib .menubtn {
    background-image: url(../images/close.svg);
    background-size: 18px auto;
}

header.menu-compact .ib .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin: 0;
    height: auto;
    max-height: calc(100vh - 50px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    white-space: normal;
    background: #fff;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

header.menu-compact.menu-open .ib .menu {
    display: flex;
}

header.menu-compact .ib .menu > .dropdown, header.menu-compact .ib .menu > .menu-list {
    display: grid;
    grid-template-columns: 1fr 54px;
    align-items: stretch;
    position: static;
    height: auto;
    border-top: 1px solid #ddd;
}

header.menu-compact .ib .menu > .menu-list {
    grid-template-columns: 1fr;
}

header.menu-compact .ib .menu > .dropdown > a, header.menu-compact .ib .menu > .menu-list > a {
    display: flex;
    align-items: center;
    min-height: 50px;
    height: auto;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.4;
}

header.menu-compact .ib .menu > .menu-icon-item > a.menu-icon-link {
    padding: 0 20px;
}

header.menu-compact .ib .menu .menu-icon {
    width: 26px;
    height: 26px;
    font-size: 15px;
}

header.menu-compact .ib .menu .menu-icon svg {
    width: 16px;
    height: 16px;
}

header.menu-compact .ib .menu .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    cursor: pointer;
}

header.menu-compact .ib .menu .menu-toggle svg {
    transition: transform 0.2s;
}

header.menu-compact .ib .menu .dropdown.expanded .menu-toggle svg {
    transform: rotate(180deg);
}

header.menu-compact .ib .menu .dropdown .dropdown-content {
    grid-column: 1 / -1;
    position: static;
    display: none;
    min-width: 0;
    padding: 0;
    background: #fafafa;
    box-shadow: none;
}

header.menu-compact .ib .menu .dropdown:hover .dropdown-content, header.menu-compact .ib .menu .dropdown:focus-within .dropdown-content {
    display: none;
}

header.menu-compact .ib .menu .dropdown.expanded .dropdown-content {
    display: block;
}

header.menu-compact .ib .menu .dropdown-content a {
    padding: 13px 20px 13px 38px;
    font-size: 13px;
    line-height: 1.4;
    border-top: 1px solid #eee;
    text-decoration: none;
    white-space: normal;
}

header.menu-compact .ib .menu .dd-head {
    max-width: none;
    margin: 0;
    padding: 10px 20px 10px 38px;
    border-top: 1px solid #eee;
    border-bottom: 0;
}

@media (max-width: 600px) {
  body .ib {
    width: 100%; }
  body .sp_content {
    display: block !important; }
  body .pc_content {
    display: none !important; }

  header {
    min-height: inherit; }
    header .ib {
      height: 60px;
      padding: 10px; }
      header.menu-compact .ib .menubtn {
        width: 40px;
        height: 40px; }
      header .ib a.logo {
        height: 40px; }
        header .ib a.logo img {
          width: auto;
          height: 100%; }
        header .ib a.logo span {
          margin-left: 7px; }
      header .ib .menu {
        z-index: 99; }
    header nav {
      overflow-x: scroll; }
      header nav .ib {
        height: auto;
        width: max-content;
        max-width: inherit; }
        header nav .ib a {
          font-size: 13px;
          padding: 15px 10px;
          width: auto; }
          header nav .ib a:before {
            display: none; }
      header nav::-webkit-scrollbar {
        height: 1px; }

  #content.subpage {
    margin-top: 100px; }
  #content.account {
    margin-top: 100px; }
  #content.no_login {
    margin-top: 60px; }
  #content .ib {
    padding: 16px; }
    #content .ib.df .main.selection .box {
      padding-bottom: 60px; }
    #content .ib.df .main h2 {
      margin-bottom: 20px; }
    #content .ib.df .main .box {
      padding: 17px 17px 60px; }
      #content .ib.df .main .box h3 {
        letter-spacing: 0; }
      #content .ib.df .main .box.new .meta .company:before {
        content: "NEW!";
        letter-spacing: 0;
        font-size: 11px;
        color: #fff;
        top: -3px;
        background: #FF6060;
        padding: 2px 5px;
        position: relative;
        width: 40px;
        text-align: center;
        margin-bottom: 7px;
        font-weight: bold;
        display: block;
        margin-right: 4px; }
      #content .ib.df .main .box.new h3:before {
        display: none; }
    #content .ib h2 {
      letter-spacing: 0.05em;
      margin: 30px 0 20px; }
  #content table {
    width: 100%;
    display: block;
    border-bottom: none; }
    #content table tr, #content table th, #content table td, #content table tbody {
      width: 100% !important;
      display: block; 
      overflow-wrap: break-word;}
    #content table tr th {
      padding: 15px;
      border-top: none; }
    #content table tr td {
      padding: 15px 0; 
      line-height: 2;}
  #content .row_btn a {
    width: 49%; }
    #content .row_btn a.w100 {
      width: 100% !important; }
    #content .row_btn a.active {
      width: 100%;
      margin-top: 10px; }
  #content .pager {
    justify-content: center; }

  #content .ib .remark {
    font-size: 15px;
    padding: 25px; }
    #content .ib .remark + .notice {
      margin-top: 10px; }
  #content .ib .box {
    padding: 16px; }
    #content .ib .box.mypage .row span {
      display: block;
      width: 100%;
      padding: 20px 0; }
    #content .ib .box.mypage .row a {
      width: 100%;
      display: block; }
    #content .ib .box.confirm .row span {
      display: block;
      width: 100%;
      padding: 10px 0; }
    #content .ib .box.confirm .row .choicelist span {
      display: inline;
      padding: 10px 0; }
    #content .ib .box.confirm .row input, #content .ib .box.confirm .row textarea, #content .ib .box.confirm .row select {
      display: block;
      width: 100%; }
    #content .ib .box .row {
      padding: 0;
      border: none;
      flex-wrap: wrap;
      margin-right: 0;
      margin-left: 0; }
      #content .ib .box .row:nth-of-type(n+2) span {
        padding-top: 15px; }
      #content .ib .box .row.email_new:nth-of-type(n+2) span {
        padding-top: 15px; }
      #content .ib .box .row.email_new span {
        font-size: 14px; }
      #content .ib .box .row .select_outer {
        width: 100%; }
      #content .ib .box .row span {
        display: block;
        font-size: 14px; }
      #content .ib .box .row input {
        display: block;
        width: 100%;
        margin-top: 10px; }
  #content .ib .agreement {
    margin-top: 40px; }
    #content .ib .agreement a.forget_password {
      display: block;
      position: relative; }
  #content .ib button {
    margin-bottom: 0; }
  #content .ib input::placeholder {
    font-size: 12px; }
  #content .notice {
    padding: 25px;
    line-height: 1.5; }
    #content .notice + .main {
      margin-top: -30px; }

  #content.static .ib p {
    font-size: 14px;
    line-height: 2; } 
    
    .row-group {
        flex-direction: column;
        align-items: flex-start;
    }
   .input-container {
    width: 100%;
	}
}

