@charset "UTF-8";
/*
 * 歯科技工士ドットネットの見た目（段階 8）
 *
 * 今のサイトの site/application/templates/pc/css/base.css・site.css・unit.css から、
 * 新しいサイトで使う所だけを写した。幅は 1000px 固定をやめ、スマホ（375px）でも横にはみ出さないようにした。
 * 画像は /img/ に今と同じ名前で置いてある。
 */

/* ---- 土台（base.css） ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; padding: 0;
    font-size: 14px; line-height: 1.7;
    font-family: "メイリオ", Meiryo, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Arial, sans-serif;
    color: #333;
    background: url(../../img/head-bg.jpg) repeat-x #fff;
}
img { border: none; vertical-align: bottom; max-width: 100%; height: auto; }
p { margin: 5px 0 10px; }
a, a:link, a:active { color: #3366cc; text-decoration: underline; }
a:visited { color: #777; }
a:hover { color: #ff3300; }
a:hover img { opacity: 0.7; }
table { border-collapse: collapse; border-spacing: 0; }
caption, th { text-align: left; }
input, select, textarea, button { font-size: 16px; font-family: inherit; }
input:focus, select:focus, textarea:focus { background-color: #f0fff0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- 全体の枠（site.css の .all） ---- */
.all { max-width: 1000px; margin: 0 auto; padding: 0 10px; }

/* ---- ヘッダー（_header.tpl） ---- */
.header {
    min-height: 170px; padding-left: 235px;
    background: url(../../img/logo-mark.jpg) no-repeat left top;
}
.header .h-tagline { margin: 0; padding-top: 7px; height: 30px; text-align: right; font-size: 12px; line-height: 1.2; color: #555; }
.header .h-middle { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.header .h-logo { display: block; margin-top: 2px; }
.header .h-logo img { display: block; width: 503px; }
.header .h-login { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; font-size: 12px; line-height: 1.2; }
.header .h-login img { display: block; }
.header .member-name a { color: #7a5c38; font-weight: bold; }
.header .logout-button {
    padding: 4px 12px; font-size: 12px; cursor: pointer;
    color: #fff; background: linear-gradient(#7a8da8, #4f6280); border: 1px solid #3f5068; border-radius: 3px;
}
/* 緑の帯（今の .h-bigbtn・.h-smallbtn。今と同じ画像のボタン） */
.header .h-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0 6px; }
.header .h-bigbtn, .header .h-smallbtn { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.header .h-bigbtn li, .header .h-smallbtn li { margin: 0; }
.header .h-bar img { display: block; }
.header .logout { margin: 0; }

/* 画像だけのボタン（ログイン・検索・ログアウト） */
button.image-button, button.image-button:hover { padding: 0; margin: 0; border: 0; background: none; border-radius: 0; cursor: pointer; line-height: 0; }
button.image-button img { display: block; }

/* ---- 本文と左のメニュー（site.css の .content・.main・.navi） ---- */
.content { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-areas: "navi main"; gap: 15px; padding-bottom: 10px; }
.content .main { grid-area: main; min-width: 0; }
.content .navi { grid-area: navi; background: #e1eaf8; padding: 10px 0 30px; align-self: start; }

/* 見出し（今の .page-head と .block h3） */
.main h1 {
    margin: 0 0 15px; padding: 22px 20px 26px;
    font-size: 24px; font-weight: normal; line-height: 1.2; letter-spacing: 1px; color: #000;
    font-family: Times, "ＭＳ 明朝", "Hiragino Mincho ProN", Georgia, "Times New Roman", serif;
    background: url(../../img/h2-bg.jpg) repeat-x left bottom;
}
.main h2 {
    clear: both; margin: 30px 0 12px; padding: 10px 15px;
    font-size: 17px; font-weight: bold; line-height: 1.3; color: #fff;
    background: linear-gradient(#11aaa6 0%, #079995 55%, #068683 100%);
    border-radius: 5px; box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}
.main h3 {
    margin: 18px 0 8px; padding: 5px 0 7px 8px;
    font-size: 15px; line-height: 1.3; color: #099;
    border-bottom: 1px dotted #aaa; border-left: 5px solid #099;
}
.main ul, .main ol { margin: 10px 0; padding-left: 1.6em; }
.main li { margin: 5px 0; }
.main ul li { list-style: square; }

/* パンくず（今の .pankuzu） */
.main .breadcrumb { margin: 0 0 10px; font-size: 12px; color: #999; }
.main .breadcrumb a { color: #555; }

/* ---- 左のメニュー（今の .navi .menu） ---- */
.navi .menu ul { margin: 0; padding: 0; list-style: none; }
.navi .menu > ul > li { margin: 0 10px 3px 0; }
.navi .menu li a img { vertical-align: middle; }
.navi .menu li a, .navi .menu li a:link, .navi .menu li a:visited, .navi .menu li .navi-label {
    display: block; padding: 12px 0 12px 30px;
    font-size: 14px; font-weight: bold; line-height: 1.2; color: #7a5c38; text-decoration: none;
    background: url(../../img/navi-bul.gif) no-repeat 0 6px #fff;
}
.navi .menu li a:visited { color: #555; }
.navi .menu li a:hover, .navi .menu li a[aria-current="page"] { color: #5c8b18; background-image: url(../../img/navi-bul-on.gif); }
.navi .menu li ul { padding: 5px 0; margin: 0 0 0 10px; background: #fff; }
.navi .menu li ul li { margin: 0 0 10px; }
.navi .menu li ul li a, .navi .menu li ul li a:link, .navi .menu li ul li a:visited {
    margin: 0 0 0 10px; padding: 0 0 0 15px; font-size: 14px;
    background: url(../../img/navi-bul-s.gif) no-repeat 0 5px;
}
.navi .menu li ul li a:hover, .navi .menu li ul li a[aria-current="page"] { color: #5c8b18; background-image: url(../../img/navi-bul-s-on.gif); }
.navi .menu form { margin: 0; }
.navi .menu .navi-button {
    display: block; width: 100%; padding: 12px 0 12px 30px; text-align: left; cursor: pointer;
    font-size: 14px; font-weight: bold; line-height: 1.2; color: #7a5c38;
    background: url(../../img/navi-bul.gif) no-repeat 0 6px #fff; border: 0;
}
.navi .menu .navi-button:hover { color: #5c8b18; background-image: url(../../img/navi-bul-on.gif); }

/* ---- 関係団体のリンクと広告の枠（今の site.css の .navi .links・.navi .free） ---- */
.navi .links { background: #fff; padding: 5px 0; margin: 15px 10px 0; }
.navi .links ul { margin: 0; padding: 0; }
.navi .links ul li { list-style: none; margin: 7px 10px; padding: 0; font-size: 12px; }
.navi .links ul li a, .navi .links ul li a:link, .navi .links ul li a:visited {
    margin: 0; padding: 0 0 0 15px; font-size: 12px; color: #7a5c38; line-height: 1.2;
    background: url(../../img/navi-bul-s.gif) no-repeat 0 5px; overflow-wrap: anywhere;
}
.navi .links ul li a:visited { color: #555; }
.navi .links ul li a:hover { color: #5c8b18; background-image: url(../../img/navi-bul-s-on.gif); }
.navi .free { background: #fff; padding: 10px; margin: 15px 10px 0; font-size: 12px; text-align: center; }
.navi .free img { max-width: 100%; height: auto; }

/* ---- ページの上へ ---- */
.topagetop { clear: both; text-align: right; margin: 0; padding: 10px 30px 10px 0; background: url(../../img/topagetop.gif) no-repeat right center; }
.topagetop a { font-size: 12px; color: #555; }

/* ---- フッター（_footer.tpl） ---- */
.footer { clear: both; color: #ccc; background: url(../../img/footer_bg.jpg) #0d7e78; }
.footer .foot-wrap { max-width: 1000px; margin: 0 auto; padding: 20px 10px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.footer .foot-link2 h2 { margin: 10px 0 0; font-size: 14px; font-weight: bold; color: #fff; }
.footer .foot-link2 ul { margin: 8px 0; padding: 0; list-style: none; }
.footer .foot-link2 li { display: inline-block; margin: 2px 0; padding: 0 10px; border-right: 1px solid #999; line-height: 1.4; }
.footer .foot-link2 li:last-child { border-right: none; }
.footer .foot-link2 a, .footer .foot-link2 a:link, .footer .foot-link2 a:visited { color: #ccc; font-size: 12px; }
.footer .foot-link2 a:hover { color: #fff; }
.footer .foot-bottom { max-width: 1000px; margin: 0 auto; min-height: 100px; padding: 0 10px; background: url(../../img/footer_img.png) no-repeat left bottom; background-size: 460px auto; }
.footer .copyright { margin: 0; padding: 65px 0 10px; font-size: 12px; color: #fff; text-align: right; }
.footer .copyright em { font-style: normal; color: #fff; font-size: 13px; }

/* ---- 本文の部品（今まで layouts/app.blade.php と search/_style.blade.php にあったもの） ---- */
.status { background: #eef8ee; border: 1px solid #9c9; padding: 8px 12px; }
.errors { background: #fdeeee; border: 1px solid #d99; padding: 8px 12px; }
.error { color: #c00; display: block; }
.field { margin: 0 0 16px; }
.field > label, .field > .label { display: block; font-weight: bold; }
.required { color: #c00; font-size: 0.85em; }
.hint { font-size: 0.85em; color: #555; }
.field > .hint { display: block; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=number], input[type=date], select, textarea {
    width: 100%; max-width: 560px; padding: 6px; border: 1px solid #aaa; border-radius: 2px; background: #fff;
}
input[type=file] { max-width: 100%; }
textarea { min-height: 6em; }
button, input[type=submit] {
    padding: 8px 22px; cursor: pointer; font-weight: bold;
    color: #fff; background: linear-gradient(#ff7a3d, #e5531a); border: 1px solid #c5450f; border-radius: 4px;
}
button:hover, input[type=submit]:hover { background: linear-gradient(#e5531a, #ff7a3d); }
table.confirm { border-collapse: collapse; width: 100%; margin: 5px 0 15px; }
table.confirm th, table.confirm td { border: 1px solid #ccc; padding: 6px 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table.confirm th { background: #f0f0f0; width: 30%; font-weight: normal; color: #111; }
fieldset { border: 1px solid #ccc; margin: 0 0 16px; padding: 8px 12px; min-width: 0; }
.search-form { background: #f3f3f3; padding: 12px 15px; margin: 10px 0 15px; }
.search-form fieldset { background: #fff; }
.search-form .choices label { display: inline-block; margin-right: 12px; font-weight: normal; }
table.results { border-collapse: collapse; width: 100%; margin: 16px 0; }
table.results th, table.results td { border: 1px solid #ccc; padding: 6px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
table.results th { background: #f0f0f0; font-weight: normal; }
.pagination { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; }
.main .pagination li { list-style: none; margin: 0; }
.pagination li > * { display: inline-block; padding: 4px 10px; border: 1px solid #c0c0c0; background: #fff; text-decoration: none; }
.pagination .active > * { background: #e0e0e0; font-weight: bold; color: #cc0000; }
.detail-image { float: right; margin: 0 0 16px 16px; max-width: 200px; height: auto; padding: 6px; background: #f7f7f7; border: 1px solid #ddd; }
.notice { background: #fffff0; border: 1px solid #f30; padding: 7px 15px; margin: 10px 0; font-size: 0.9em; color: #030; }
.mypage-nav { margin: 0 0 15px; padding: 8px 12px; background: #e1eaf8; border-radius: 4px; }
.static-page { overflow-wrap: anywhere; }
.concept { margin: 10px 0 20px; padding: 14px 18px; border: 1px dotted #333; background: #fff; }

/* ---- 「コンテンツ提供終了」の案内（止めた機能の説明のページ・終了の案内のページ・トップのお知恵拝借） ---- */
.content-ended { margin: 0 0 20px; padding: 14px 18px; border: 3px solid #c00; background: #fff5f5; color: #333; border-radius: 4px; }
.main .content-ended .content-ended-title { margin: 0 0 8px; padding: 0; background: none; font-family: inherit; font-size: 22px; font-weight: bold; line-height: 1.3; letter-spacing: 0; color: #c00; }
.content-ended p { margin: 4px 0; }
.content-ended .content-ended-hint { margin-top: 10px; font-size: 12px; color: #555; }
.content-ended-small { margin: 10px 0; }
.main .content-ended-small .content-ended-title { font-size: 18px; }

/* ---- トップ（今の top.css と index.tpl） ---- */
.top-page .top-col { display: grid; grid-template-columns: minmax(0, 560px) 190px; justify-content: space-between; gap: 0 10px; }
.top-page .top-main-image { margin: 0; }
.top-page .top-main-image img { display: block; }
.top-page .top-news { padding-bottom: 20px; }
.top-page .concept { margin: 16px 0; padding: 36px 20px 16px; background: url(../../img/concept.jpg) no-repeat #fff; border: 1px dotted #333; font-size: 13px; }
.main .top-page h2.top-news-ttl { margin: 0 0 10px; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.top-page .top-news-ttl img { display: block; }
.main .top-page .top-banners { margin: 0; padding: 0; }
.main .top-page .top-banners li { list-style: none; margin: 0 0 10px; }
.top-page .top-banners img { display: block; }
.top-page .top-papers { margin: 10px 0 20px; padding: 10px; background: #f1f1f1; border: 1px dotted #9e9e9e; }
.top-page .top-news-list th { padding: 0 10px 10px 5px; color: #666; vertical-align: top; white-space: nowrap; font-weight: bold; }
.top-page .top-news-list td { padding: 0 10px 10px 5px; vertical-align: top; overflow-wrap: anywhere; }
.top-page .top-news-list td p { margin: 0 0 8px; }
.top-page .top-sub { padding-bottom: 10px; }
.top-page .top-sub p { margin: 10px 0; }
.top-page .top-sub img { display: block; }
.top-page .top-login { background: url(../../img/top-login-bg.jpg) no-repeat #099; padding: 15px; color: #ff6; font-weight: bold; }
.top-page .top-login p { margin: 0 0 7px; }
.top-page .top-login form { margin: 0; }
.top-page .top-login label { display: block; margin: 0 0 7px; padding: 0; }
.top-page .top-login input { margin: 0; width: 160px; max-width: 100%; padding: 2px 4px; font-size: 14px; }
.top-page .top-login .go-mypage { background: #fff; }
.main .top-page .top-ban { margin: 0; padding: 0; }
.main .top-page .top-ban li { margin: 7px 0; padding: 0; list-style: none; }
.top-page .top-sns { font-size: 12px; }
.top-page .top-free { padding: 10px 15px; background: #f0f0f0; }
.top-page .top-free p { margin: 5px 0; font-size: 12px; line-height: 1.5; }
/* 青い帯の見出し（今の site.css の .main .block h3） */
.top-page .block { margin: 20px 0 0; }
.main .top-page .block h2, .main .legacy-content .block h3 {
    margin: 0; padding: 12px 15px 25px; font-size: 18px; line-height: 1; color: #fff; font-weight: bold;
    background: url(../../img/h3-bg-blue.jpg) no-repeat right top; background-size: auto 50px; border: 0; border-radius: 0; box-shadow: none;
}
.top-page .block .honbun { padding: 0 5px; }
.top-page table.tb1 { margin: 5px 0; }
.top-page .choice { display: inline-block; margin-right: 10px; font-weight: normal; }
.top-page .tb1 select, .top-page .tb1 input[type=text] { max-width: 100%; }
table.tb1 { clear: both; width: 100%; border-collapse: collapse; }
table.tb1 th, table.tb1 td { border: 1px solid #ccc; padding: 5px 10px; vertical-align: top; }
table.tb1 th { color: #111; background: #f0f0f0; font-weight: normal; text-align: left; white-space: nowrap; }
.al-right { text-align: right; }
.al-center, .img_c { text-align: center; }

/* ---- 今のサイトの静的なページの本文（resources/views/legacy/pages。今の site.css・base.css から） ---- */
.legacy-content { overflow-wrap: anywhere; }
.legacy-content img { max-width: 100%; height: auto; }
.legacy-content .page-head h1, .legacy-content .page-head3 h1 { margin-bottom: 10px; }
.legacy-content .page-head3 h1 { background-image: url(../../img/h2-bg3.jpg); }
.legacy-content .pankuzu ul { margin: 0 0 10px; padding: 0; }
.legacy-content .pankuzu li { font-size: 12px; color: #999; }
.legacy-content .pankuzu li a { color: #555; }
.main .legacy-content ul.inline li { display: inline; list-style: none; margin: 0; padding: 0; }
.legacy-content .block, .legacy-content .block3 { margin: 0 0 40px; clear: both; }
.main .legacy-content .block3 h3 {
    margin: 0; padding: 12px 15px 25px; font-size: 18px; line-height: 1; color: #fff; font-weight: bold;
    background: url(../../img/h3-bg-green.jpg) no-repeat right top; background-size: auto 40px; border: 0;
}
.legacy-content .honbun { padding: 0 5px; }
.main .legacy-content .block h4 { font-size: 14px; color: #099; line-height: 1.3; margin: 15px 0 7px; padding: 5px 0 7px 7px; border-bottom: 1px dotted #aaa; border-left: 5px solid #099; }
.main .legacy-content .block3 h4 { font-size: 14px; color: #060; line-height: 1.3; margin: 15px 0 7px; padding: 5px 0 7px 7px; border-bottom: 1px dotted #aaa; border-left: 5px solid #060; }
.legacy-content h5 { color: #555; line-height: 1.3; margin: 15px 0 7px; font-size: 14px; }
.legacy-content .waku { border: 1px solid #ccc; padding: 7px 15px; margin: 10px 0; }
.legacy-content .bg { background: #f3f3f3; padding: 7px 15px; margin: 10px 0; }
.legacy-content .bg3 { background: #ffc; padding: 7px 15px; margin: 10px 0; }
.legacy-content .waku3 { padding: 7px 30px; margin: 10px 0; }
.legacy-content .bgyellow { border: 1px solid #f30; padding: 7px 15px; margin: 10px 0; background: #fffff0; color: #030; }
.legacy-content table { max-width: 100%; }
.legacy-content .red { color: #c00; }
.legacy-content .red0 { color: #f00; }
.legacy-content .blue { color: #36c; }
.legacy-content .green { color: #393; }
.legacy-content .fix-bold { font-weight: bold; }
.legacy-content .fix16 { font-size: 16px; }
.legacy-content .mar-l20 { margin-left: 20px; }
.legacy-content .mar-l25 { margin-left: 25px; }
.legacy-content .mar-l40 { margin-left: 40px; }
.legacy-content .mar-l50 { margin-left: 50px; }
.legacy-content .mar-r25 { margin-right: 25px; }
.legacy-content .mar-t40 { margin-top: 40px; }
.legacy-content .mar-b20 { margin-bottom: 20px; }
.legacy-content .mar-b25 { margin-bottom: 25px; }
.legacy-content .mar-b50 { margin-bottom: 50px; }

/* ---- スマホ・小さい画面 ---- */
@media (max-width: 800px) {
    .header { min-height: 0; padding-left: 0; background: none; }
    .header .h-tagline { height: auto; padding: 6px 0 4px; text-align: left; font-size: 11px; }
    .header .h-middle { flex-wrap: wrap; align-items: center; }
    .header .h-logo { flex: 1 1 240px; }
    .header .h-logo img { width: 100%; max-width: 503px; }
    .content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "navi"; }
    .content .navi { padding: 10px 0 15px; }
    .navi .menu > ul > li { margin-right: 0; }
    .top-page .top-col { grid-template-columns: minmax(0, 1fr); }
    .top-page .top-sub { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 10px; justify-items: center; }
    .top-page .top-sub > * { width: 190px; max-width: 100%; }
    .top-page .top-sub .top-free { width: auto; }
    .legacy-content .mar-l40, .legacy-content .mar-l50 { margin-left: 10px; }
}
@media (max-width: 600px) {
    body { background-size: auto 140px; }
    .header .h-login img { width: 92px; }
    .header .h-bigbtn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .header .h-bigbtn img { width: 100%; max-width: 167px; height: auto; }
    .top-page .top-news-list th, .top-page .top-news-list td { display: block; padding: 0 5px; }
    .top-page .top-news-list td { padding-bottom: 10px; }
    table.tb1 th, table.tb1 td { display: block; width: 100%; white-space: normal; }
    table.tb1 th { border-bottom: 0; }
    .main .top-page .block h2, .main .legacy-content .block h3, .main .legacy-content .block3 h3 { line-height: 1.3; padding-bottom: 14px; background-size: cover; }
    .legacy-content .mar-l20, .legacy-content .mar-l25, .legacy-content .mar-l40, .legacy-content .mar-l50 { margin-left: 0; }
    .main h1 { padding: 16px 12px 22px; font-size: 20px; }
    .footer .foot-wrap { grid-template-columns: minmax(0, 1fr); }
    .footer .foot-bottom { background-size: 280px auto; min-height: 70px; }
    .footer .copyright { padding: 10px 0 80px; text-align: left; }
    table.confirm th, table.confirm td { display: block; width: 100%; }
    table.confirm th { border-bottom: 0; }
    table.results { display: block; overflow-x: auto; }
    .detail-image { float: none; display: block; margin: 0 0 12px; }
}
