#contents_application {
    width: 380px;
}

p.expansion {
    margin-left: 5px !important;
    text-align: left;
}
ul.expansion_text {
    text-align: left;
}

/*---------- IPOフォームのデザイン ----------*/

h1 {
    font-size: 2em; /* 見出しの大きさ */
    font-weight: bold; /* 太字 */
    color: #003366; /* 深い青色 */
    text-align: center; /* 中央揃え */
    margin: 10px 0; /* 上下の余白 */
    padding: 10px 15px; /* 内側の余白 */
    background-color: #e6f0fa; /* 淡い青背景 */
    border-left: 8px solid #00509e; /* 左にアクセントライン */
    border-radius: 5px; /* 丸みをつける */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 軽い影で立体感 */
}
  
#ipoStatusForm {
    margin: 0 0 20px 0;
    padding: 20px;
    background-color: #f2f4f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
  
#ipoStatusForm label {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 5px;
}
  
#ipoStatusForm select {
    margin-bottom: 10px;
    padding: 5px 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1.1em;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
  
#ipoStatusForm select:focus {
    border-color: #007bbb;
    box-shadow: 0 0 8px rgba(0, 123, 187, 0.3);
}
  
#ipoStatusForm button {
    margin-top: 10px;
    padding: 5px 15px;
    color: #ffffff;
    background-color: #007bbb;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
}
  
#ipoStatusForm button:hover {
    background-color: #005f9e;
    transform: translateY(-2px);
}
  
#ipoStatusForm button:active {
    background-color: #004080;
    transform: translateY(0);
}

/*---------- 保存済みデータセクションのデザイン ----------*/

#savedDataSection {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
  
#savedDataSection h2 {
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #003366;
    border-bottom: 3px solid #007bbb;
}
  
#savedDataSection h3 a {
    text-decoration: none;
    display: inline-block; /* ボタン風にする */
    margin-bottom: 3px;
    padding: 3px 15px; /* 内側の余白を追加 */
    font-size: 1em; /* フォントサイズ */
    font-weight: bold; /* 太字にする */
    color: #ffffff; /* テキストの色を白に設定 */
    background-color: #0066E3; /* ベース背景色を明るめに設定 */
    border-radius: 25px; /* 角を丸くする */
    transition: background-color 0.3s ease, transform 0.2s ease; /* ホバー時のアニメーション */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* ボタンの影 */
}

#savedDataSection h3 a:hover {
    background-color: #004FBA; /* ホバー時の背景色 */
    transform: translateY(-2px); /* ホバー時に少し持ち上げる */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); /* ホバー時の影を強調 */
}

#savedDataSection h3 a:active {
    background-color: #003A8A; /* クリック時の背景色 */
    transform: translateY(0); /* 押し込まれた状態を表現 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* クリック時の影を縮小 */
}
  
#savedDataSection p.schedule_status {
    font-size: 1.1em;
    color: #757575;
    margin: 0 0 3px 0;
}
  
/*---------- 幹事証券リスト 保存済みリスト のデザイン ----------*/
#underwritersSection {
    margin-top: 20px;
}

#underwritersSection ul,
#savedDataSection ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#underwritersSection li,
#savedDataSection li {
    margin-bottom: 15px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 10px; /* 要素間のスペース */
    justify-content: space-between;
}

.securities_name {
    flex: 2; /* 証券会社名部分の幅を確保 */
    word-wrap: break-word; /* 長い名前を折り返す */
    min-width: 0; /* 長いテキストを折り返すための設定 */
    font-size: 1em;
    font-weight: bold;
}

.securities_name a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}
  
.securities_name a:hover {
    color: #007bbb;
}

.securities_name a:visited {
    color: #333333;
}
  
#underwritersSection select,
#savedDataSection select {
    flex: 1; /* ステータスボックスの幅を確保 */
    margin-bottom: 0;
    padding: 3px 10px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#savedDataSection select:focus {
    border-color: #007bbb;
    box-shadow: 0 0 8px rgba(0, 123, 187, 0.3);
}

#savedDataSection button {
    flex: 0.5; /* 削除ボタンの幅を狭く調整 */
    padding: 3px 5px; /* コンパクトなボタンサイズ */
    color: #ffffff;
    background-color: #d9534f;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
}
  
#savedDataSection button:hover {
    background-color: #c9302c;
    transform: translateY(-2px);
}
  
#savedDataSection button:active {
    background-color: #ac2925;
    transform: translateY(0);
}

/*---------------------------- PC向けのスタイル ----------------------------*/
@media only screen and (min-width: 768px) {



}

/*---------------------------- スマートフォン向けのスタイル ----------------------------*/
@media only screen and (max-width: 768px) {
    #contents_application {
        width: 100%;
    }

    h1 {
        font-size: 1.7em; /* スマホサイズで少し小さく */
        padding: 8px 10px; /* パディングを調整 */
    }

    #ipoStatusForm,
    #savedDataSection {
        padding: 15px;
    }
    #ipoStatusForm label {
        font-size: 1.3em;
    }
    #ipoStatusForm select {
        margin-bottom: 10px;
        padding: 3px 10px;
        font-size: 1.2em;
    }
    #ipoStatusForm button {
        font-size: 1.2em;
    }

    #savedDataSection h2 {
        font-size: 1.6em;
    }
    #savedDataSection h3 a {
        font-size: 1em;
    }
    #savedDataSection p.schedule_status {
        font-size: 1.1em;
        margin: 0 0 3px 0;
    }
    #underwritersSection li,
    #savedDataSection li {
        margin-bottom: 15px;
        padding: 7px 10px;
        flex-direction: row; /* 横並びを維持 */
        align-items: center;
    }
    #underwritersSection select,
    #savedDataSection li select,
    #savedDataSection li button {
        margin-top: 0; /* 上下の余白をなくす */
        margin-bottom: 0;
    }

    .securities_name {
        font-size: 1.1em;
    }
    #underwritersSection select,
    #savedDataSection select {
        padding: 3px 10px;
        font-size: 1.2em;
    }
    #savedDataSection button {
        padding: 3px 5px; /* コンパクトなボタンサイズ */
        font-size: 1em;
    }
}