#modal { display: none; }

A:link { color: #ff3300; } 
A:visited { color: #ff6600; } 
A:hover { color: #FFC600;} 
A:active { color: #ff9900; } 

html{
font-size: 18px;}

*{
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;
}

body{
background-color: #fafafa;
color: #222;
font-family: メイリオ, ＭＳ Ｐゴシック, ArialMT, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif; 
font-size: 1rem;
line-height: 150%;
margin: 0px;
padding: 0px;
text-align: center;
width: 100%;}

img {
border:0px;
vertical-align: middle;
width: 100%;}

strong{
font-weight: normal;}

.form { ime-mode: disabled; } 

::placeholder {
   color: #ccc;
}

.menu-btn {
    position: fixed;
    top: 2px;
    right: 3px;
    display: flex;
    height: 54px;
    width: 54px;
    justify-content: center;
    align-items: center;
    z-index: 90;
background-color:#f2802d;
}
.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    height: 3px;
    width: 25px;
    border-radius: 3px;
    background-color: #ffffff;
    position: absolute;
}
.menu-btn span:before {
    bottom: 8px;
}
.menu-btn span:after {
    top: 8px;
}

#menu-btn-check:checked ~ .menu-btn span {
    background-color: rgba(242, 128, 45, 0);/*メニューオープン時は真ん中の線を透明にする*/
}
#menu-btn-check:checked ~ .menu-btn span::before {
    bottom: 0;
    transform: rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
}

#menu-btn-check {
    display: none;
}

.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    background-color:#f2802d;
}
.menu-content ul {
    padding: 70px 10px 0;
}
.menu-content ul li {
    border-bottom: solid 1px #ffffff;
    list-style: none;
}
.menu-content ul li a {
    display: block;
    width: 100%;
    font-size: 20px;
    box-sizing: border-box;
    color:#ffffff;
    text-decoration: none;
    padding: 9px 15px 10px 0;
    position: relative;
}
.menu-content ul li a::before {
    content: "";
    width: 7px;
    height: 7px;
    border-top: solid 2px #ffffff;
    border-right: solid 2px #ffffff;
    transform: rotate(45deg);
    position: absolute;
    right: 11px;
    top: 16px;
}

.menu-content {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 100%;/*leftの値を変更してメニューを画面外へ*/
    z-index: 80;
    background-color:rgba(160,206,88,0.9);
    transition: all 0.5s;/*アニメーション設定*/
}

#menu-btn-check:checked ~ .menu-content {
    left: 0;/*メニューを画面内へ*/
}

div.container01{
background: #fff;
margin: 0px;
padding: 5px 0px;
text-align: left;
width: 100%;}

div.contents01{
background: #eaeaea;
margin: 5px 5px;
padding: 10px 10px;
text-align: left;}

div.alpha01{
background-image: url(image/alpha-back.gif);
background-position: right top;
background-repeat: no-repeat;
background-color: #fff;
border: 1px #555 solid;
margin: 0px auto;
padding: 16px 16px;
text-align: left;}

div.sub{
border-bottom: 3px #f2802d solid;
border-image: linear-gradient(to right, #a0ce58 20%, #ffc821 21%);
border-image-slice: 1;
color: #675525;
font-size: 18pt;
margin-bottom: 10px;
padding: 20px 0px 10px 0px;}

div.sub2{
background-iamge: url(image/sub-back.gif);
color: #851111;
font-size: 1rem;
font-weight: bold;
margin: 10px 0px;
padding: 0px;
text-align: left;}

div.footer{
background-image: url(image/wagara-back.gif);
background-position: center top;
background-repeat: repeat;
color: #fbfbfb;
font-size: 0.8rem;
margin: 0px;
padding: 25px 0px;}

div.q{
background-color: #f2802d;
border: 1px #f2802d solid;
color:#fff;
font-size:14pt;
margin:0px;
padding: 15px;}

div.a{
background-color: #fff;
border: 1px #f2802d dashed;
border-top: none;
margin:0px;
padding: 15px;}

div.kaiketsu01{
background-color: #bb1515;
color:#fff;
font-size:14pt;
margin:0px 3px;
padding: 7px;
width:150px;}

div.kaiketsu02{
background-color: #fff;
border: 1px #bb1515 solid;
margin:0px 3px;
padding: 15px;}

li.menu{
background:-webkit-gradient(linear, 0% 0%, 0% 80%, from(#221815), to(#221815));
border: 1px #0b0706 solid;
color:#fff;
font-size: 1rem;
height: 50px;
line-height:50px;
text-align: center;
}

li.menu2{
background:-webkit-gradient(linear, 0% 0%, 0% 80%, from(#221815), to(#221815));
border: 1px #0b0706 solid;
color:#fff;
font-size: 1rem;
height: 44px;
line-height:44px;
list-style-type: none;
margin: 0px;
padding-bottom: 5px;
text-align: left;
}

h1.top{
background-color: #f2802d;
background-image: url(image/wagara-back.gif);
background-position: center top;
background-repeat: repeat;
color: #fff;
font-size: 0.8rem;
font-weight: normal;
margin: 0px auto 5px auto;
padding: 15px 0px;
text-align: center;
}

h1{
background-color: #f2802d;
background-image: url(image/wagara-back.gif);
background-position: center top;
background-repeat: repeat;
color: #fff;
font-size: 0.8rem;
font-weight: normal;
margin: 0px auto 5px auto;
padding: 15px 60px 15px 8px;
text-align: center;
}

h2{
background-color: #f2802d;
border: 1px #f2802d solid;
color: #fff;
font-size: 1.2rem;
font-weight: normal;
margin: 0px auto;
padding: 25px 0px 25px 0px;
text-align: center;
vertical-align: middle;}

h3{
border-bottom: 3px #f2802d solid;
border-image: linear-gradient(to right, #a0ce58 20%, #ffc821 21%);
border-image-slice: 1;
color: #675525;
font-size: 18pt;
margin-bottom: 10px;
padding: 0px 0px 10px 0px;}

table{
border-collapse: collapse;
margin: 5px 0px;
width: 100%;}

table.access{
background-color: #fff;
border-collapse: separate;
margin: 5px 0px;
width:100%;}

td.access01{
background-color: #f2802d;
border: 1px #f2802d solid;
color: #fff;
padding: 8px 5px;
text-align: center;}

td.access02{
background-color: #fff;
border: none;
padding: 8px 10px;
text-align: left;}

td.hyot{
background-color: #f2802d;
border: 1px #f2802d solid;
color: #fff;
font-weight: normal;
padding: 15px 10px;
text-align: center;}

td.hyo01{
background-color: #fdeab2;
border: 1px #f2802d solid;
font-weight: normal;
padding: 8px 12px;}

td.hyo02{
background-color: #fff;
border: 1px #f2802d solid;
padding: 8px 10px;
text-align: left;}

td.hyo03{
background-color: #ffffff;
border-bottom: 1px #2f2928 solid;
border-right: 1px #2f2928 solid;
padding: 8px 12px;
vertical-align: top;}

td.hyo04{
background-color: #2f2928;
border-bottom: 1px #ffea00 solid;
border-left: 3px #ffea00 solid;
border-right: 1px #151313 solid;
color: #fff;
font-weight: normal;
padding: 8px 10px;
text-align: left;}

td.hyo05{
background-color: #ffffff;
border-bottom: 1px #979797 solid;
border-left: 3px #ffea00 solid;
border-right: 1px #979797 solid;
padding: 8px 10px;
text-align: left;}

td.feet{
background-color: #f2802d;
border: 1px #e55a16 solid;
color: #fff;
font-weight: normal;
padding: 8px 10px;
text-align: center;}

td.fee01{
background-color: #fdeab2;
border: 1px #f2802d solid;
font-weight: normal;
padding: 8px 12px;
width:100%;}

td.fee02{
background-color: #fff;
border: 1px #f2802d solid;
padding: 8px 10px;
text-align: left;
vertical-align: top;
width: 100%;}

td.fee03{
background-color: #fff;
border: 1px #f2802d solid;
font-size: 14pt;
padding: 8px 12px;
text-align: right;
vertical-align: top;
width: 100%;}

table.form{
width: 100%;}

input,textarea{
border:1px solid #ccc;
box-shadow:none;
font-size:20px;
padding:5px;
-webkit-border-radius: 5px;

-moz-border-radius: 5px;}

input,textarea.100{
border:1px solid #ccc;
box-shadow:none;
font-size:20px;
padding:5px;
width: 90%;
-webkit-border-radius: 5px;

-moz-border-radius: 5px;}


.txtmode1 {
  ime-mode: active;   /* 全角モード */}

.txtmode2 {
  ime-mode: inactive; /* 半角モード */}

select{
border:1px solid #ccc;
box-shadow:none;
font-size:20px;
padding:5px;
-webkit-border-radius: 5px;

-moz-border-radius: 5px;}

table.qa{
border-collapse: collapse;
width: 520px;}

td.qa1{
background-color: #FFEDCB;
border: 1px #90632F solid;
color: #5D3A10;
font-size: 1rem;
padding: 5px 3px;
vertical-align: top;}

td.qa2{
border: 1px #90632F solid;
padding: 5px 3px;
vertical-align: top;}

td.out{
border: 10px #BF9E76 solid;
padding: 0px;
margin: 0px;}

td.ryoukint{
background-color: #341A00;
border-top: 1px #2C1600 solid;
border-bottom: 1px #2C1600 solid;
border-left: 1px #CDB38B solid;
border-right: 1px #2C1600 solid;
color: #fefefe;
font-weight: bold;
padding: 3px;
text-align: center;
vertical-align: top;}

td.ryoukin1{
background-color: #F6E4B4;
border: 1px #2C1600 solid;
padding: 3px;
text-align: left;
vertical-align: top;
width: 22%;}

td.ryoukin2{
background-color: #ffffff;
border: 1px #2C1600 solid;
padding: 3px;
text-align: right;
vertical-align: top;
width: 26%;}


table.voice{
width: 525px;
margin: 0px;
border: 0px;
border-collapse: collapse;
width: 100%;}

a.menu{
background-image: linear-gradient(#f99043 0% 50%, #f2802d 50% 100%);
border: 1px #c95d0f solid;
color:#ffffff;
display: inline-block;
height: 50px;
margin: 5px 0px;
padding: 10px 8px;
text-align: left;
text-decoration: none;
width: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;}

a.menu2{
background-image: linear-gradient(#f99043 0% 50%, #f2802d 50% 100%);
border: 1px #c95d0f solid;
color:#ffffff;
display: inline-block;
margin: 0px;
padding: 5px 8px;
text-align: left;
text-decoration: none;
width: 100%;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;}

a.gotop{
background-image: linear-gradient(#f99043 0% 50%, #f2802d 50% 100%);
border: 1px #c95d0f solid;
box-sizing: border-box;
color:#ffffff;
display: inline-block;
font-size: 0.8rem;
margin: 5px 3px;
padding: 10px 5px;
text-align: center;
text-decoration: none;
width: 120px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;}

a.pc{
background:-webkit-gradient(linear, 0% 0%, 0% 80%, from(#532c0d), to(#3c1c02));
border: 1px #281301 solid;
box-shadow: 0px 1px 1px #bca879;
box-sizing: border-box;
color:#ffffff;
display: inline-block;
float: right;
margin-right: 5px;
padding: 7px 5px 0px 5px;
text-align: center;
text-decoration: none;
width: 47px;
-webkit-border-radius: 8px;
-moz-border-radius: 8px;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
-o-box-sizing: border-box;
-ms-box-sizing: border-box;}



div.icon{
background:-webkit-gradient(linear, 0% 0%, 0% 80%, from(#f13636), to(#e22323));
border: 1px #d50000 solid;
color: #fff;
font-size: 1rem;
font-weight: bold;
margin: 0px auto;
padding: 10px;
text-align: center;
width: 90%;
-webkit-border-radius: 15px;
-moz-border-radius: 15px; 
}

a.icon{
color: #fff;
margin: 20px auto;
padding: 10px 20px;
text-align: center;
text-decoration: none;
width: 90%;
}

#acMenu dt{
    background:url(image/open.jpg) no-repeat;
    display:block;
    margin: 0px auto;
    text-align:center;
    cursor:pointer;
    height: 100%;
    width:100%;
    }
#acMenu dd{
    margin: 0px auto;
    padding: 5px;
    text-align:left;
    display:none;
    width: 100%;
    }
#acMenu dt.active{
    background:url(image/close.jpg) no-repeat;
    height: 100%;
    width: 100%;
    }


/* ------------------------------------------- */
/* 7. 会話形式（アバターあり）専用の追加スタイル */
/* ------------------------------------------- */

/* 【全体】中央寄せと幅の制限、その他の既存設定に影響を与えないよう設計 */
.dialogue-section {
    max-width: 1050px;
    margin: 40px auto; /* ★中央寄せ */
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #ffffff; 
    /* 既存のCSSによる予期せぬ位置崩れを防ぐためのリセット */
    position: static;
    float: none;
    box-sizing: border-box;
}

/* タイトル部分 */
.dialogue-title {
    border-left: 5px solid #b35900; 
    padding-left: 10px;
    margin-bottom: 25px;
    font-size: 1.5em;
    color: #b35900;
    background-color: #fce8cc !important;
    width: 100%;
}

/* 各発言のブロック - 横並びの基盤 */
.speaker {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    box-sizing: border-box; /* 内部要素もボックスサイズ計算を標準に */
}

/* --- アバター画像と名前のコンテナ --- */
.avatar-info {
    display: flex; 
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 94px; /* ★井口行政書士の名前が1行に収まる幅 */
    position: static;
    float: none;
}

/* アバター画像の設定 (サイズ固定) */
.avatar {
    width: 60px; 
    height: 60px;
    border-radius: 50%; 
    object-fit: cover;
}

/* 名前の設定 */
.avatar-name {
    margin-top: 5px; 
    font-size: 0.8em;
    font-weight: bold;
    color: #675525;
    text-align: center;
    line-height: 1.2;
}


/* --- 吹き出し（セリフ部分）の共通設定 --- */
.speech-bubble {
    padding: 15px;
    border-radius: 15px;
    position: relative;
    max-width: 75%; 
}
.speech-bubble p {
    margin: 0;
    font-size: 1.2em;
    line-height: 1.6;
    text-align: left; /* 内部テキストは左寄せを明示 */
}

/* ------------------------------------------- */
/* 8. 登場人物ごとの設定 */
/* ------------------------------------------- */

/* 井口行政書士（左側）の設定 */
.speaker-iguchi {
    justify-content: flex-start;
}
.speaker-iguchi .avatar-info {
    margin-right: 15px; 
}
.speech-iguchi {
    background-color: #ffefe4; 
}
.speech-iguchi::before {
    content: ''
    position: absolute;
    top: 15px;
    left: -10px;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #ffefe4 transparent transparent transparent;
    transform: rotate(45deg);
}

/* 井口由紀（左側）の設定 */
.speaker-yuki {
    justify-content: flex-start;
}
.speaker-yuki .avatar-info {
    margin-right: 15px; 
}
.speech-yuki {
    background-color: #fdf1f4; 
}
.speech-yuki::before {
    content: ''
    position: absolute;
    top: 15px;
    left: -10px;
    border-style: solid;
    border-width: 10px 10px 0 0;
    border-color: #ffefe4 transparent transparent transparent;
    transform: rotate(45deg);
}

/* 川西さま（右側）の設定 */
.speaker-kawanishi {
    justify-content: flex-end; /* ★ブロック全体を右寄せ */
}
.speaker-kawanishi .avatar-info {
    order: 2; /* アバターを右側に配置 */
    margin-left: 15px;
}
.speech-kawanishi {
    background-color: #fffae0; 
}
.speech-kawanishi::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -10px;
    border-style: solid;
    border-width: 0;
    border-color: #fffae0 transparent transparent transparent;
    transform: rotate(-45deg);
}

/* 伊丹さま（右側）の設定 */
.speaker-itami {
    justify-content: flex-end; /* ★ブロック全体を右寄せ */
}
.speaker-itami .avatar-info {
    order: 2; /* アバターを右側に配置 */
    margin-left: 15px;
}
.speech-itami {
    background-color: #fff5d8; 
}
.speech-itami::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -10px;
    border-style: solid;
    border-width: 0;
    border-color: #fff5d8 transparent transparent transparent;
    transform: rotate(-45deg);
}


/* 元の定義文のスタイル */
.original-definition {
    max-width: 100%;
    margin-top: 30px;
    padding: 15px;
    background-color: #fff;
    border-left: 3px solid #ff8c42; 
    text-align: left; 
}
.original-definition h3 {
    margin-top: 0;
    color: #ff8c42;
    font-size: 1.2em;
}


