@charset "utf-8"; // ーーーーー料金表画面ーーーーーーー body#fee { .pc-only { display: block; } .sp-only { display: none; } .sec_top { background: url(../images/fee/fee-top@2x.png) no-repeat center center / cover; } .sec_under-catchcopy { padding-bottom: 80px; h2 { font-size: 40px; letter-spacing: 0.05em; line-height: 1.5; margin-bottom: 40px; } p { font-size: 16px; line-height: 2; } } .sec_under-fee { background: #f1f1f1; color: #000; padding: 48px 64px; max-width: 100%; .container { .h3-deco { color: #0c5fbc; &:before { background-color: #0c5fbc; /* 横線の色 */ } } h3 { margin-bottom: 0px; } } } .table-inner{ margin: 0 auto; max-width: 800px; } .sec_under-fee-content { background-color: #f1f1f1; padding-top: 0; ol { li { background-color: #fff; // padding: 48px 80px; padding: 48px 24px; border-radius: 10px; max-width: 960px; margin: 0 auto; box-sizing: border-box; color: #141316; &:nth-child(2n) { margin: 40px auto; } .set { display: flex; border-bottom: solid 1px #ddd; padding-bottom: 24px; .case-num { font-size: 12px; color: #fff; background-color: #0c5fbc; padding: 8px 12px; border-radius: 28px; font-weight: bold; letter-spacing: 0.1em; font-family: "Barlow", Medium; // 追記 display: inline-block; // インライン要素として表示 white-space: nowrap; // テキストの折り返しを防止 text-align: center; // テキストを中央揃え width: 72px; height: 100%; } h4 { margin-left: 16px; font-size: 24px; font-weight: 500; letter-spacing: 0.05em; color: #000; span { font-size: 16px; } } .price { font-size: 32px; letter-spacing: 0.05em; line-height: 1; margin: 0 0 0 auto; .yen { font-size: 16px; } } } .info-container { background-color: #eff5ff; padding: 32px 48px 32px 48px; border-radius: 10px; margin: 32px 0 24px 0; background-repeat: no-repeat; background-size: 120px; background-position: right 40px center; .innerwrap { display: flex; // 全体を横並びに flex-wrap: wrap; // 内容が幅を超える場合に折り返し .set { margin-bottom: 16px; border-bottom: none; margin: 0; display: inline; height: 24px; align-items: center; &:nth-of-type(4) { margin-top: 16px; } &:nth-of-type(5) { margin-top: 16px; } .label { white-space: nowrap; // 改行を防止 font-size: 12px; color: #5a626c; margin-right: 12px; line-height: 1; } .value { font-size: 16px; color: #141316; margin-right: 80px; line-height: 1; } } } } table { border-collapse: collapse; table-layout: fixed; max-width: 800px; margin: 0 auto; th, td { border: 2px solid #e8e8e8; padding: 0 20px; } thead { th { background-color: #f1f1f1; color: #141316; border: 2px solid #e8e8e8; border-right: 2px solid #e8e8e8; border-bottom: 2px solid #e8e8e8; max-width: 240px; font-weight: 500; text-align: center; height: 56px; width: 30%; &:nth-child(1) { width: 240px; } &:nth-child(2) { width: 200px; } &:nth-child(3) { width: 120px; } &:nth-child(4) { width: 240px; } &:last-of-type { border-right: 2px solid #e8e8e8; } } } tbody { tr{ height: 72px; th { color: #141316; background-color: #f1f1f1; font-weight: 500; text-align: left; border-bottom: 2px solid #e8e8e8; } td{ text-align: center; } .price { font-size: 20px; font-weight: bold; letter-spacing: 0px; max-width: 200px; width: 25%; .yen { margin-left: 8px; font-size: 16px; font-weight: normal; } } .uantity { font-size: 16px; font-weight: bold; max-width: 120px; width: 15%; } .total { font-size: 24px; max-width: 240px; width: 30%; } } } } } .case01 { .info-container { background-image: url(../images/fee/case-01.svg); } } .case02 { .info-container { background-image: url(../images/fee/case-02.svg); } } .case03 { .info-container { background-image: url(../images/fee/case-03.svg); } } .case04{ .info-container{ .innerwrap{ p{ .ttl{ color: #5A626C; display: block; font-size: 12px; margin-bottom: 4px; } } } } table{ width: 100%; tr{ height: auto; th{ max-width: 320px; padding: 20px 0; text-align: center; width: 40%; .note{ color: #5A626C; display: block; font-size: 12px; } } td{ padding: 20px 0; width: auto; .price-wrapper{ align-items: baseline; display: flex; justify-content: center; .txt{ margin: 0 8px 0 0; } } .txt{ font-size: 14px; letter-spacing: 0.05em; margin-bottom: 4px; } .price{ max-width: none; width: auto; } } } } .comments{ font-size: 14px; margin: 16px 0 0 8px; } } } } } @media (max-width: 768px) { body#fee { .pc-only { display: none; } .sec_under-fee { padding: 20px; } .sec_under-fee-content { ol { li { padding: 32px 24px 40px; .set { display: block; padding-bottom: 16px; h4 { font-size: 20px; margin: 4px 0 8px 0; } } .info-container { padding: 24px 0 32px 20px; background-position: right 20px bottom; .innerwrap { display: block; .set { display: block; height: auto; padding-bottom: 12px; &:nth-of-type(4) { margin-top: 0px !important; } &:nth-of-type(5) { margin-top: 0px !important; padding-bottom: 0px; } .value { margin-right: 0; font-size: 14px; } } } } // モーダルのスタイル .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.8); // 背景の半透明 display: flex; justify-content: center; align-items: center; z-index: 9999; &.hidden { display: none; } .modal-content { width: 100%; text-align: center; table { background: #fff; border-collapse: collapse; table-layout: fixed; max-width: 798px; text-align: center; margin: 0 auto; th, td { border: 2px solid #e8e8e8; padding: 1em; } thead { th { background-color: #f1f1f1; color: #141316; border: 2px solid #e8e8e8; border-right: 2px solid #e8e8e8; border-bottom: 2px solid #e8e8e8; max-width: 240px; font-weight: normal; &:nth-child(1) { width: 240px; } &:nth-child(2) { width: 200px; } &:nth-child(3) { width: 120px; } &:nth-child(4) { width: 240px; } &:last-of-type { border-right: 2px solid #e8e8e8; } } } tbody { th { color: #141316; background-color: #f1f1f1; font-weight: normal; text-align: center; border-bottom: 2px solid #e8e8e8; } .price { font-size: 20px; font-weight: bold !important; .yen { margin-left: 8px; font-size: 16px; font-weight: normal; } } .uantity { font-size: 16px; font-weight: bold; } .total { font-size: 24px; } } } .modal-footer { color: #fff; h3 { margin: 0; font-size: 18px; font-weight: bold; } .close-button { margin-top: 24px; color: #0056b3; // ボタンの文字色 background-color: #fff; padding: 16px; border-radius: 50%; // 丸い形にする border: none; font-size: 24px; cursor: pointer; img { width: 100%; } } } .tableimg { width: 100%; max-width: 560px; margin: 0 auto; } } } .btn-gradient { background: linear-gradient( 90deg, rgb(10, 95, 188), rgb(112, 239, 234) ); display: block !important; margin-top: 16px; &::before { background-image: none; } } } .case04{ .table-inner{ .info-container{ padding: 24px 20px; .innerwrap{ p{ font-size: 14px; } } } table{ tr{ th, td{ border: 1px solid #e8e8e8; display: block; max-width: none; width: 100%; } th{ border-bottom: 0; border-top: 0; font-size: 14px; padding: 8px 0; } td{ padding: 16px 0; } &:first-child{ th{ border-top: 1px solid #e8e8e8; } } } } } } } } .sec_under-catchcopy { padding: 20px 20px 80px 20px; h2 { font-size: 32px; } } } }