/* 共通 */
html {
    font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "メイリオ", sans-serif;
    font-size: 18px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    html {
        font-size: 16px;
    }
}

a {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    display: inline-block; 
    max-width: 100%;
  }
  

/* ヘッダー */
header {
    position: fixed;
    z-index: 10000;
    width: 100%;
    height: 120px;
    top: 0;
    left: 0;
    background-color: #FFF;
}

header .container {
    max-width: 1600px;
    display: -webkit-flex;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 1200px;
    margin: auto;
    padding-top: 10px;
}

.logo img {
    width: 300px;
    height: auto;
}

@media (max-width: 767px) {
    .logo img {
        width: 200px;
        height: auto;
    }
}

nav {
    display: flex;
    justify-content: right;
    padding-top: 5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 25px;
}

nav ul li a, nav ul li form {
    position: relative;
    display: inline-block;
    line-height: 37px;
    font-weight: bold;
}

nav ul li a {
    color: #333333;
    text-decoration: none;
}

nav ul li a:link, nav ul li a:visited {
    color: #333333;
}

nav ul li button {
    background: transparent;
    border: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    font-family: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: inherit;
}

@media  (max-width: 1194px) {
    header {
        height: 90px;
    }
}

@media (max-width: 1160px) {
    header .container {
        width: 100%;
        padding-top: 10px;
    }
}

@media (max-width: 767px) {
    header .container {
        padding-top: 20px;
    }
    
}

  /* タブレット以下ではサイドメニューを非表示 */
  @media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
  }
  
  /* ハンバーガーメニュー */
  .mobile-header {
    display: none;
  }

  .menu-btn {
    font-size: 40px !important;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    position: absolute;
    right: 10px;
  }

  .material-icons {
    font-size: 60px !important;
  }

  @media (max-width: 767px) {
    .material-icons {
        font-size: 40px !important;
      }
    
  }
  
  /* モバイル用メニュー */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100%;
    background: white;
    transition: right 0.3s ease; 
    z-index: 10;
    padding-left: 50px;
  }
  
  .mobile-menu ul {
    list-style: none;
    padding: 0;
  }
  
  .mobile-menu ul li {
    padding: 10px 0;
  }
  
  .mobile-menu ul li a {
    color: #555;
    text-decoration: none;
  }
  
  .close-btn {
    font-size: 50px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
  }

  .mobile-menu ul li button {
    background: transparent;
    border: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: #555;
    font-family: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: inherit;
  }
  
  /* タブレット以下でハンバーガーメニューを表示 */
  @media (max-width: 1024px) {
    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
      margin-left: 20px;
    }
  
    .mobile-menu {
        right: -100%;
    }
  
    .mobile-menu.show {
        right: 0;
    }
  
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5); /* 透明度50%の黒 */
      display: none;
      z-index: 9; /* メニューの下に配置 */
    }
  
    /* オーバーレイ表示 */
    .overlay.show {
      display: block;
    }
  }


/* フッター */
.footer__inner {
    margin: 50px;
    padding: 50px;
    border-top: 1px solid #e0e0e0;
}
.footer__copy {
    text-align: center;
}

/* ログイン */
.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: auto;
    margin-top: 50px;
    padding: 50px;
    width: 50vw;
    max-width: 800px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    gap: 40px;
}

.login .title {
    text-align: center;
    font-size: 2rem;
}

@media (max-width: 767px) {
    .login .title {
        font-size: 1rem;
    }
}

.form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form input {
    height: 30px;
    border-radius: 5px;
    border: 2px solid #e0e0e0;
    margin-bottom: 20px;
}

.login button {
    background: transparent;
    width: 100%;
    font-size: 1.5rem;
    margin-top: 20px;
    transition: transform 0.2s ease;
    background: transparent;
    border: 1px solid #005cac;
    color: #005cac;
    padding: 10px;
}

.login button:hover {
    transform: scale(1.05);
}

.login form {
    width: 100%;
}

/* 株主様専用ページ */
.content {
    width: 100%;
    max-width: 1600px;
    position: relative;
    margin: 0px auto;
    padding: 120px 0px 0px;
}

@media (max-width: 1024px) {
    .content {
        width: 95vw;
        padding: 90px 0 0;
    }
}

.title {
    text-align: center;
    margin: 0;
    padding: 20px;
    background: #D7F1F3;
    color: #3A788E;
    margin-bottom: 20px;
}

.main_title {
    font-size: 1.8rem;
}

.sub_title {
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    h1 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1rem;
    }

    .main_title {
        font-size: 1.2rem;
    }

    .sub_title {
        font-size: 1rem;
    }
}

.main-list {
    list-style: none;
    counter-reset: roman-counter;
    padding: 0;
    margin: 0;
}

.main-list > li {
    counter-increment: roman-counter;
    margin-bottom: 40px;
}

.box_title {
    border-bottom: 3px solid #e0e0e0;
    padding-bottom: 20px;
    font-weight: bold;
    margin-bottom: 20px;
}

.box_title::before {
    content: counter(roman-counter, upper-roman) ". ";
}

.box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 10px;
    margin-bottom: 35px;
}

.box_info {
    border-left: 3px solid #005cac;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 15px;
}

.box_text, .card_body {
    display: flex;
    flex-direction: column;
}

.card_title {
    color: #005cac;
}

.card_name {
    font-weight: bold;
}

/* サブセクションのスタイル */
.sub-section-list {
    list-style: none;
    counter-reset: section-counter;
    padding: 0;
    margin: 0;
}

.sub-section-list > li {
    counter-increment: section-counter;
    margin-bottom: 20px;
}

.sub-section-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.sub-section-title::before {
    content: "（" counter(section-counter) "）";
    margin-right: 8px;
}

.detail-list {
    list-style: none;
}

@media (max-width: 767px) {
    .detail-list {
        padding: 0;
    }
}

.detail-list li {
    padding-left: 1.3em;
    margin-bottom: 30px;
}

.card__item {
    margin-bottom: 30px;
    padding-left: 1.3em;
}
.card__item th {
    width: 30%;
    text-align: center;
}

.bold {
    font-weight: bold;
}

.bold_content {
    padding-left: 1.3em;
    margin-bottom: 15px;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

th, td {
    border: 2px solid #e0e0e0; /* 縦横の線 */
    padding: 8px;
}

/* アンケートページ */
.ancate_text {
    margin: 50px 0;
}

.answer-group ul {
    list-style: none;
}

.answer-group ul li input[type="text"] {
    width: 90%;
    height: 100px;
}

@media (max-width: 767px) {
    .answer-group ul {
        padding: 0;
    }
}

/* アンケートページのエラーメッセージ */
.error-message {
    background-color: #f8d7da; 
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    position: relative;
}

.error-message::before {
    content: "⚠️ ";
    font-weight: bold;
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    font-weight: bold;
    color: #721c24;
    cursor: pointer;
}

/* アンケート完了画面 */
.back-btn {
    margin: auto;
    margin-top: 50px;
    align-items: center;
    text-align: center;
    background: #005cac;
    border: 2px solid #005cac;
    color: #fff;
    font-weight: bold;
    width: 50%;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.back-btn:hover {
    transform: scale(1.05);
}

.br-sp {
    display: none;
  }

  @media  (max-width: 768px) {
    .br-sp {
      display: block;
    }
  }

/* お問い合わせフォーム */
.form_title {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.form_inner {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0 1rem;
  }
  
  .form-row {
    display: flex;
    flex-direction: column; /* モバイル想定の基本縦並び */
    margin-bottom: 1rem;
  }
  
  .form-row label {
    margin-bottom: 0.5rem;
  }
  
  .form-row input,
  .form-row textarea {
    width: 100%;
    box-sizing: border-box; /* パディング・ボーダー込みで幅を制限 */
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }

.ancate_send button, .mail_btn, .back-btn {
    margin-top: 30px;
    width: 100%;
    background: transparent;
    border: 1px solid #005cac;
    font-size: 1.1rem;
    color: #005cac;
    padding: 10px;
  }

  .form-row .label {
    width: 200px;
  }
  
  @media (min-width: 768px) {
    .form-row {
      flex-direction: row;
      align-items: center;
    }
  
    .form-row label {
      width: 200px;
      margin-bottom: 0;
    }
  
    .form-row input,
    .form-row textarea {
      flex: 1;
    }

    .ancate_send button, .mail_btn, .back-btn {
        display: flex;
        justify-content: center;
        margin: auto;
        margin-top: 30px;
        width: 318px;
        background: transparent;
        border: 1px solid #005cac;
        font-size: 1.1rem;
        color: #005cac;
        padding: 10px;
    }
  }

/* 個人情報の取り扱い */
.card_list_privacy {
    list-style-type: lower-roman;
}

.card_list_privacy .card_label {
    font-weight: bold;
}

.card_list_privacy .card__item {
    margin-bottom: 20px;
}

/* cuvo リスク */
.card_list_risk {
    list-style: decimal;
}

.card_list_risk .card__item {
    margin-bottom: 40px;
}

.card_list_risk .card__item td {
    text-align: left;
}

.card_list_risk .card__item td.item {
    width: 30%;
}

.card_list_risk .card__item td ul {
    list-style: disc;
    padding-inline-start: 20px;
}

/* 株主優待券 */
.benefit_img {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 80%;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .benefit_img {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media print {
    header {
        display: none;
    }

    .page {
        page-break-before: always;
        page-break-inside: avoid;
        break-before: page;
        break-inside: avoid;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .page:first-child {
        page-break-before: auto;
        break-before: auto;
    }

    .title {
        display: none;
    }

    .benefit_img {
        width: 80%;
        margin-bottom: 10px;
    }
}
