@charset "UTF-8";
/*この処理より下のすべてに、このbox-sizing処理を実行する*/
*, *::before, *::after {
    box-sizing: border-box;
}
/*html,bodyの処理*/
body, html {
    margin: 0;
    padding: 0;
}
body {
    font-size: 16px;
    margin: 0;
    padding: 0;
    color: #333;
}
/*a…　の処理*/
a { color: #b7a077; }
a:visited { color: #a8a8a8; }
a:hover {
    color: #988564;
    font-weight: bold;
    text-decoration: none;
}
/*hとpに関する処理*/
h1, h2, h3, h4, h5, h6 { margin-top: 0; }

p {
    margin-top: 0;
    line-height: 1.6;
}
/*wrapper*/
#wrapper {
    width: 790px; 
    margin: 0 auto;
    overflow: hidden; 
}
/*ヘッダーの処理*/
header {
    width: 790px;
    margin: 0 auto;
}
header h1 {
    float: none;      
    margin: 5px auto; 
    width: 100%;      
    max-width: 790px;
    padding: 30px 20px;
    font-size: 40px;
    border-bottom: solid 4px rgba(139, 115, 72, 0.37);
    white-space: nowrap;
    text-align: center;  
}

header #header_contact {
    float: none;      
    display: block;   
    text-align: center;
    margin: 10px 0;   
}

/*グローバルナビゲーションの処理*/
#global_navi {
    width: 790px;
    margin: 16px auto;
    clear: both;
}

#global_navi ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; 
    justify-content: space-between;
}

#global_navi ul li {
   
    width: 196.75px; 
    margin-right: 1px;
}

#global_navi ul li:last-child {
    margin-right: 0; 
}

#global_navi ul li a {
    display: block;
    padding: 16px 0;
    background-color: rgba(127, 255, 212, 0.39);
    color: black;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s linear;
}
#global_navi ul li.current a{
    background-color: #c2ade6;
}
#global_navi ul li a:hover{
    background-color: deepskyblue;
}
/*メイン処理*/
#main {
    width: 100%; 
    float: none; 
}

#main h1 {
    background-image: url(../jpg/header.jpg); 
/*ヘッダー画像はフォルダと拡張子を統一すると(PNG 変換 JPG）便利*/
    color: white;
    text-align: center;
    font-size: 26px;
    border-bottom: solid 1px #8b7348;
}

#main h2 {
    background-image: url(../jpg/header_bg.jpg);
    text-align: center;
    font-size: 18px;
    border-bottom: solid 1px #8b7348;
}

#main h3 {
    font-size: 18px;
    border-left: solid 3px #b7a077;
    padding: 4px 9px 4px 14px;
}
/*JavaScriptページのデザイン調整*/
#OmikujiButton{
text-align: center; /*p要素で指定したIDでボタンの位置を中央に*/
}
#getResult {
  border: 2px solid #2e2a1c;
  box-shadow: 5px 5px 10px black;
  width: 50%;
  border-radius: 400px;
  font-size: 30px;
  text-align: center;
  color:rgb(13, 130, 177); /*getResultのスタイル*/
}

#result {
  text-align: center;
  color:rgb(68, 0, 255);
  font-size: 30px; /*結果（おみくじ）を表示するときのスタイル*/
}

#AGE_button{
text-align: center; /*p要素で指定したIDでボタンの位置を中央に*/
}
#AGE_result{
     margin-top:20px; /*ボタンと結果の文章の間の余白*/
     font-size: 25px; /*スマホ規格以外はこのサイズを適用*/
     text-align: center;
    color:rgb(28, 85, 42); /*AGE_Resultのスタイル*/
}
#AGE_nyuryoku{
    font-size:20px;
     text-align: center;
    color:rgb(28, 85, 42); /*結果（計算結果）を表示するときのスタイル*/
}
/*パンくずリストの処理 ：最後の「＞」を消去*/
#breadcrumb { font-size: smaller; margin-bottom: 10px;}
 /*文字の大きさをsmaller（親要素より1段階小さく）＋下余白10px*/
#breadcrumb ol { list-style: none; margin: 0; padding: 0; }
#breadcrumb ol li { display: inline; }
#breadcrumb ol li::after { content: ">"; padding: 0 7px; }
#breadcrumb ol li:last-child::after { content: none; }
/*メインページの写真とお知らせ欄：追加処理*/
#main_visual, #news {
    width: 790px;
    margin: 0 auto 20px;
}

/*フッターの処理*/

footer {
    width: 790px;
    margin: 20px auto 0;
    background-color: #352b23;
    text-align: center;
}

footer #footer_nav {
    background-color: #201919;
    padding: 10px 0;
}

footer #footer_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

footer #footer_nav li {
    display: inline-block;
    border-left: solid 1px #fff;
    margin-left: 8px;
    padding-left: 8px;
    font-size: smaller;
    color: #fff;
}

footer #footer_nav li:first-child {
    border-left: none;
}

footer small {
    display: block;
    padding: 8px 0;
    color: #fff;
}


/*自己紹介ページの処理*/
#syoukai table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

#syoukai th, #syoukai td {
    border: 1px solid #c7c7c7;
    padding: 6px;
}

#syoukai th {
    background-color: rgba(135, 206, 235, 0.62);
    text-align: left;
    width: 8em;
}
#news {
    width: 790px;     
    margin: 20px auto; 
    padding: 0;       
}

#news dl {
    width: 100%;
    overflow: hidden;
}
#news dt{
    width: 8em;
    float: left;
    margin-bottom: 10px;
    clear: both;
}
#news dd{
    margin-left: 8em;
    margin-bottom: 10px;
}
/*年齢計算プログラムの※の色変更*/
.must{color:#f00;}

/*メディアクエリの処理*/
@media screen and (max-width: 767px) {
    img{
        max-width: 100%;
    }
    /*全体幅を100%に */
    #wrapper, header, #global_navi, #main_visual, #news, #main, 
    #OmikujiButton, #getResult, #result, #AGE_button, footer {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 10px; 
    }
    /*(jasp.html)年齢計算プログラムの「入力してください」文の文字サイズ調整 */
    #AGE_nyuryoku{
         font-size:17px;
         width: 100%;
         box-sizing: border-box;
     }
    /*(jasp.html)年齢計算プログラムの結果表示の文字サイズ調整 */
    #AGE_result{
         font-size:18px;
         width: 100%;
         box-sizing: border-box;
     }
    /*(jasp.html)年月日の入力フォームの幅調整 */
    #year, #month, #day{
         width: 20%;
        margin: 0;
        padding: 2px; 
        box-sizing: border-box;
    }

    /*ヘッダー：文字のサイズを調整 */
    header h1 {
        font-size: 20px;   /* 文字を小さく */
        padding: 20px 10px;
        white-space: normal; /* 改行を許可 */
        width: auto;
    }

    header #header_contact {
        margin: 10px 0;
        font-size: 14px;
    }

    /*ナビゲーションの4つ並びを2つずつ2列になるように変更 */
    #global_navi ul {
        display: flex;
        flex-wrap: wrap; /* 折り返し許可 */
        justify-content: space-between;
    }

    #global_navi ul li {
        width: 49%;      
        margin-right: 0;
        margin-bottom: 2px; 
    }

    #global_navi ul li a {
        padding: 12px 0;
        font-size: 14px;
    }

    /*お知らせページの文字が小さくなりすぎないよう調整 */
    #news dt, #news dd {
        font-size: 14px;
        line-height: 1.4; /*行間：line-height*/
    }

    /*テーブルがスマホで横に突き抜けてはみ出さないように調整*/
    #syoukai table {
        display: block;
        overflow: auto; /* 横スクロールを可能に */
        white-space: nowrap; /* 自動で改行しない */
    }
}