/*========================================
  最新化・最適化された common1.css
========================================*/

/*----------------------------------------
  1. Base (リセットと基本設定)
----------------------------------------*/

/* Modern Reset */
html {
    /* フォントサイズの基準をより管理しやすい 100% に設定 */
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    /* Windows/Mac OS X の和文フォントスタックを最適化 */
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", sans-serif;
    font-size: 12px;
    line-height: 1.5;

    /* 基本設定 */
    margin: 0;
    padding: 0;
    color: #444444;
    background-color: #F5F5F5;
    background-image: url(084.gif);
}

/* td の個別フォント設定は不要なため削除。bodyから継承されます。*/

/* 要素のマージン/パディングリセット */
p, ul, ol, li, h1, h2, h3, h4, h5, h6, form {
    margin: 0;
    padding: 0;
}

/* 画像リセット */
img {
    border: none;
    /* vertical-align: top; は img と周囲の要素間に隙間ができるのを防ぐため維持 */
    vertical-align: top;
}

/* リンクスタイル */
a:link, a:visited {
    color: #0000CD;
    text-decoration: none;
}

/* hover/active を統合し、簡潔に */
a:hover, a:active {
    color: #A9A9A9;
    text-decoration: underline;
}

/*----------------------------------------
  2. Utilities (ユーティリティクラス)
----------------------------------------*/

/* clearfix の現代的な実装 */
.clearFix::after {
    content: "";
    display: block;
    clear: both;
}
/* .clearFix には min-height: 1px; は不要です */

.space {
    /* スペース調整用のクラス。より効率的ですが、HTML側での br/&nbsp; 削減がベスト */
    font-size: 1px;
    line-height: 1px;
}

.clear {
    clear: both;
}

/* 画像フロート */
img.img_left {
    float: left;
    margin: 0 5px 0 0;
}

img.img_right {
    float: right;
    margin: 0 0 0 5px;
}

img.img_center {
    /* 画像を中央配置にするなら、text-align: center; を適用した親要素で囲むのが一般的 */
    margin: 5px auto;
    display: block; /* 中央寄せのためにブロックレベル要素にする */
}

/*----------------------------------------
  3. Layout (メインコンテナと全体構造)
----------------------------------------*/

#conteiner {
    width: 850px;
    margin: 0 auto;
    border-left: 5px solid #DBDBDB;
    border-right: 5px solid #DBDBDB;
    border-bottom: 5px solid #DBDBDB;
    /* border-top がないのは元の構造を維持 */
}

/*----------------------------------------
  4. Header (ヘッダー)
----------------------------------------*/

#header {
    width: 850px;
    height: 130px;
    background: #FFFFFF url(test011.jpg) no-repeat top right;
}

#header h1 {
    /* h1 の幅と高さは画像サイズに合わせて調整されている想定 */
    width: 220px;
    height: 37px;
    margin: 0;
    float: left;
    /* padding: 18px 10px 0 16px; がコメントアウトされているため、不要と判断 */
}

#header h2 {
    /* h2 の使用は推奨されません（h1が唯一であるべき）が、元のスタイルを維持 */
    padding: 30px 10px 0 0;
    font-size: 12px;
    float: right;
    list-style: none; /* list-style: none; は ul/ol に適用すべきですが、元の構造を維持 */
}

#header h3 {
    /* h3 の位置決めは、float要素を避けているようです */
    margin: 0;
    padding: 90px 0 0 330px;
    color: #800000;
    font-size: 18px;
    font-weight: bold;
}

/*----------------------------------------
  5. gnavi (グローバルナビゲーション)
  - セマンティックタグ <nav> への適用を想定
----------------------------------------*/

#gnavi {
    width: 100%;
    background: url(menu_on.jpg) repeat-x top;
    border-top: 2px solid #dcdcdc;
    border-bottom: 2px solid #dcdcdc;
    font-size: 100%;
}

#gnavi ul.nl {
    width: 750px;
    margin: 0 auto;
    padding: 0;
    background: url(img/menu.jpg) repeat-x top;
    border-left: 1px solid #dcdcdc;
    border-right: 1px solid #dcdcdc;
    list-style-type: none;
    text-align: center;
}

#gnavi ul.nl li {
    width: 150px; /* 750px / 5項目 = 150px */
    float: left;
}

#gnavi ul.nl li a {
    display: block;
    position: relative;
    padding: 7px 2px 4px;
    border-left: 1px solid #dcdcdc;
    border-right: 1px solid #dcdcdc;
    text-decoration: none;
    font-weight: bold;
    color: #708090;
    line-height: 100%;
}

#gnavi ul.nl li a span.en {
    display: block;
    margin-top: 3px;
    font-size: 65%;
    font-weight: normal;
    color: #708090;
}

#gnavi ul.nl li a:hover {
    color: #000555;
    background: url(menu_off.jpg) repeat-x top;
}

#gnavi ul.nl li a:hover span.en {
    color: #000555;
}

/*----------------------------------------
  6. Contents (メインコンテンツ)
  - セマンティックタグ <main> への適用を想定
----------------------------------------*/

#contents {
    width: 850px;
    background: #FFFFFF repeat-y top left;
    /* background: url(img/contents_lm_bg.jpg) がコメントアウトされているため削除 */
    float: left;
}

#main {
    clear: both;
    width: 850px; /* main の幅が contents と同じ 850px なので、内部要素の調整が必要です */
    float: left;
    padding: 0 0 0 30px; /* 左側にパディングがあるため、コンテンツは 820px になるはず */
    /* width を 820px にし、padding-left: 30px を親か兄弟要素に持たせる方が望ましい */
}

#main .textarea {
    /* 850px - 30px(mainの左padding) = 820px の中で 700px を使っている */
    width: 700px;
    padding: 12px 7px 7px 7px;
}

#main .textarea p.center {
    padding: 10px;
    line-height: 20px;
    text-align: center;
}

#main .textarea p.right {
    padding: 10px 0;
    line-height: 20px;
    text-align: right;
}

#main .textarea div.pleft10 {
    padding-left: 10px;
}

/* タイトルスタイル */
.title {
    width: 850px;
    height: 30px;
    padding: 10px 0 0 14px;
    background: url(test016.jpg) no-repeat top left;
    font-size: 15px;
    color: #FFFFFF;
}

/*----------------------------------------
  7. basic_table (最適化されたテーブルスタイル)
  - 以前の議論での最適化内容を反映
----------------------------------------*/

#main .basic_table table {
    border-top: 1px solid #CCCCCC;
    border-left: 1px solid #CCCCCC;
    border-collapse: collapse;
}

/* th の共通スタイル */
#main .basic_table th {
    padding: 5px;
    background: #EEEEEE;
    border-right: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
    vertical-align: middle;
    color: #000000;
    text-align: center; /* th のテキストを中央揃えに設定 */
}

/* th の左寄せスタイル (必要であれば) */
#main .basic_table th.th_left {
    background: #F5F5F5;
    text-align: left;
    vertical-align: top;
}

/* td の共通スタイル */
#main .basic_table td {
    padding: 5px 8px;
    background: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
    border-right: 1px solid #CCCCCC;
    vertical-align: top;
}

/* 以前の議論で追加されたリストと段落のスタイル */
.basic_table th, .basic_table td {
    padding: 10px; /* 以前の議論でのパディング調整 */
    vertical-align: top;
    line-height: 1.5;
}

.basic_table p {
    margin: 5px 0; /* 段落の間隔を調整 */
}

.basic_table td ul {
    list-style: disc; /* リストマーク (黒丸) を使用 */
    padding-left: 1.5em;
    margin: 0;
}

.basic_table tr:first-child td ul {
    list-style: none; /* 業務内容のリスト（リストマークなし） */
    padding-left: 0;
}

.basic_table td ul li {
    margin-bottom: 3px;
}

/*----------------------------------------
  8. Image Gallery (画像ギャラリー)
  - 以前の議論で追加されたスタイル
----------------------------------------*/

.image-gallery {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

.image-item {
    width: 250px;
    text-align: center;
}

.event-photo {
    border-width: 2px;
    border-color: #DFFFFF;
    border-style: inset;
    margin: 0 5px;
}

.photo-gallery {
    text-align: center;
    padding: 10px 0;
}

/*----------------------------------------
  9. Contact Box (問い合わせボックス)
  - 以前の議論で追加されたスタイル
----------------------------------------*/

.contact-box {
    width: 480px;
    margin-left: 10px;
    padding: 7px 12px;
    border: 1px solid #CCCCCC;
    line-height: 1.5;
}

.contact-box address ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-box address ul li {
    margin-bottom: 5px;
}

/*----------------------------------------
  10. Footer (フッター)
  - セマンティックタグ <footer> への適用を想定
----------------------------------------*/

#footer {
    clear: both;
    width: 850px;
    height: 20px;
    background: #E7E7E7;
    border-top: 1px solid #999999;
    /* height: 20px; では footer_right の padding: 15px 5px 0 0; と競合します。
       高さを自動調整できるよう height: 20px; を削除することを推奨しますが、元のコードを尊重し、
       height を維持する場合は padding を調整する必要があります。
       ここでは height を削除し、コンテンツに高さを任せます。*/
    height: auto; /* auto に変更を推奨 */
}

#footer_left {
    float: left;
    padding: 5px; /* 全体にパディングを追加 */
}

#footer_right {
    padding: 15px 5px 0 0;
    float: right;
    /* padding-top: 15px; はフッターを下に押し下げますが、auto にした height であれば動作します */
}

/*----------------------------------------
  11. Other (その他)
----------------------------------------*/

.show_right {
    float: right;
}

/* top_contents のスタイル（index.htmlでのみ必要）*/

#top_contents {
    width: 850px;
    padding: 0;
    background: #FFFFFF;
}

#top_contents table {
    width: 700px;
    border: 0;
}

#top_contents td.left,
#top_contents td.right {
    width: 360px;
    border: 0;
    vertical-align: top;
}

#top_contents td.center {
    /* colspan は CSS ではなく HTML の属性です */
    width: 710px;
    border: 0;
    vertical-align: top;
}

#top_contents td.mid_dot {
    width: 10px;
    border: 0;
    background: url(img/top_contents_dot.gif) repeat-y center center;
}

#top_contents .top_title {
    width: 335px;
    height: 27px;
    padding: 8px 0 0 25px;
    background: url(img/top_15.jpg) no-repeat top left;
    font-size: 12px;
}

#top_contents .top_title_long {
    width: 700px;
    height: 27px;
    padding: 8px 0 0 25px;
    background: url(img/test016.jpg) no-repeat top left;
    font-size: 14px;
}

#top_contents p.text {
    padding: 8px 12px;
}

#top_contents .link {
    width: 232px;
    height: 36px;
    background: url(img/top_link_bg.jpg) no-repeat top left;
    font-size: 12px;
    font-weight: bold;
    float: right;
}

#top_contents .link a {
    display: block;
    width: 172px;
    height: 27px;
    padding: 9px 0 0 46px;
    background: url(img/top_link_bg.jpg) no-repeat top left;
    font-size: 12px;
    font-weight: bold;
    color: #E06F00;
}

#top_contents .link a:hover {
    background: url(img/top_link_bg_hover.jpg) no-repeat top left;
    color: #CE5802;
}