/* CSS Document */

/* 基本指定（リセットCSSとbox-sizing） */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border: 0 none;
    font-size: 100%;
    font-family:"ＭＳ Ｐゴシック","平成角ゴシック",sans-serif;
    margin: 0;
    outline: 0 none;
    padding: 0;
    vertical-align: baseline;
    box-sizing: border-box; /* ここにbox-sizingを追加 */
}

/* 画像指定 */
img{
    border: none;
}
a img {
    border: none;
}

/* リンク色（ページ全体） */
a { 
    color: #007bff; /* 青系のリンク色 */
    text-decoration: none; /* デフォルトの下線をなくす */
    transition: color 0.3s ease; /* ホバー時の色の変化をスムーズに */
}

a:hover { 
    color: #0056b3; /* ホバー時に少し濃い青に */
    text-decoration: underline; /* ホバー時に下線を表示 */
}

hr{
    color:#CCCCCC;
    margin: 10px 20px;
}

/* 文字装飾 */
.red { color: #ff0000; }
.blue { color: #0000cc; }
.orange { color: #FF9900; }
.green { color: #00CC33; }
.light_b { color: #33CCFF; }
.b { font-weight: bold; }
.xx-small { font-size:58%; }
.x-small { font-size:69%; }
.small { font-size:83%; }
.large { font-size:120%; }
.x-large { font-size:144%; }
.xx-large { font-size:172%; }
.yline { background: #ffff00; }

/* 文字列寄せ */
.link_r {
    text-align: right;
    margin-right:10px;
}
#content .to-center {text-align:center;}
#content .to-right {text-align:right;}
.float-right {
  margin-bottom:10px;
  margin-left:10px;
  float:right;
  display:inline;
}
.float-left {
  margin-bottom:10px;
  margin-right:10px;
  float:left;
  display:inline;
}

/* コンテンツ共通の基本スタイル */
body {
    text-align: center;
    font-size: 16px;
    font-family: 'Hiragino Sans', 'ヒラギノ角ゴ ProN W3', 'メイリオ', Meiryo, sans-serif;
    color: #333333;
    line-height: 1.7;
    background-image: url(img/body_bg.gif);
    background-repeat: repeat;
    background-color: #F8F8F8;
    margin: 0;
    padding: 0;
}

/* PC向けデザイン (641px以上) */
@media screen and (min-width: 641px){
    #wrapper{
        width:820px;
        background-image: url(img/bg.gif);
        margin-right: auto;
        margin-left: auto;
        padding: 0px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* サイト全体にうっすら影を追加 */
    }

    /* ヘッダー */
    #header{
        width:800px;
        margin:0 auto;
    }

    #head_img{
        height: 275px;
        background: url(img/top.jpg) no-repeat center center;
        background-size: cover;
        margin-bottom:30px;
        border-bottom:4px solid #336699;
        position: relative;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    h1{
        font-size:16px;
        font-weight:bold;
        margin: 0 auto;
        padding: 8px 20px;
        width: 800px; /* PC版の固定幅 */
        background: linear-gradient(to right, #336699, #5A9BD6);
        text-align: right;
        color: #FFFFFF;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    h1 a{
        text-decoration:none;
        color:#FFFFFF;
        display: block;
    }

    /* メインコンテンツ */
    #content{
        width:760px;
        margin: 20px auto;
        padding: 0 20px;
        text-align: left;
    }

    .inner{
        margin: 20px 15px;
        border: 1px solid #E0E0E0;
        border-radius: 8px;
        padding: 20px;
        background-color: #FFFFFF;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        overflow: hidden;
    }

    /* 各見出しのデザイン */
    h2{
        height: auto;
        background: linear-gradient(to right, #316497, #5A9BD6);
        line-height: normal;
        font-size: 24px;
        font-weight:bold;
        clear:both;
        color: #FFFFFF;
        padding: 15px 20px;
        margin: -20px -20px 20px -20px;
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        text-indent: 0;
        text-align: left;
    }

    h3{
        height: auto;
        line-height: normal;
        font-size: 20px;
        font-weight:bold;
        border-bottom: 2px solid #336699;
        margin-top: 30px;
        margin-bottom: 15px;
        padding-bottom: 5px;
        padding-left: 0;
        color: #336699;
    }

    h4 {
        font-size: 16px;
        font-weight: bold;
        margin-top: 25px;
        margin-bottom: 10px;
        color: #555;
        border-left: 4px solid #5A9BD6;
        padding-left: 10px;
    }

    /* 段落のスタイル */
    .inner p {
        background: none;
        margin: 0 0 15px 0;
        font-size: 15px;
        line-height: 1.8;
        text-align: justify;
        color: #333;
    }
    .inner p:last-child {
        margin-bottom: 0;
    }

    /* リストのスタイル */
    .inner ul, .inner ol {
        margin: 0 0 15px 20px;
        padding: 0;
        list-style-position: outside;
    }
    .inner ul li {
        margin-bottom: 8px;
        line-height: 1.6;
        color: #333;
    }
    .inner ol li {
        margin-bottom: 8px;
        line-height: 1.6;
        color: #333;
    }

    /* テーブルのスタイル（料金プラン） */
    .inner table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;
        font-size: 14px;
        border: 1px solid #ddd;
    }
    .inner table th, .inner table td {
        padding: 12px;
        border: 1px solid #ddd;
        text-align: left;
    }
    .inner table th {
        background-color: #f2f2f2;
        font-weight: bold;
        color: #333;
        white-space: nowrap;
    }
    .inner table tr:nth-child(even) {
        background-color: #f9f9f9;
    }
    .inner table tr:hover {
        background-color: #e9e9e9;
    }

    /* 画像の回り込み調整 */
    .img_l{
        float:left;
        background:#fff;
        margin-top: 0;
        margin-right: 10px;
        margin-bottom: 0;
        margin-left: 15px;
        padding-top: 0px;
        padding-right: 10px;
        padding-bottom: 5px;
        padding-left: 15;
    }

    .img_r{
        float:right;
        padding-left:10px;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 10px;
        padding-right: 15px;
    }

    /* ボタンのデザイン（元の状態に戻す） */
    .bt_c{
        text-align:center;
        clear:both;
        width: 600px;
        height: 60px; /* 元の高さ */
        margin-top: 10px;
        margin-right: auto;
        margin-bottom: 20px;
        margin-left: auto;
        padding-top: 10px;
        padding-right: 63px;
        padding-bottom: 10px;
        padding-left: 63px;
    }

    /* .bt_c a と .bt_c a img のスタイルは削除し、img/bt.jpgがそのまま表示されるようにする */
    /* 必要であれば、aタグのデフォルトスタイルが適用される */

    /* お客様の声セクションのデザイン */
    .customer-voice-section {
        background-color: #F8FCFF;
        border: 1px solid #CCE7FF;
    }

    .customer-voice-section h2 {
        background: linear-gradient(to right, #6EC1E4, #5A9BD6);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        margin-bottom: 25px;
    }

    .customer-voice-container {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 25px;
    }

    .voice-item {
        background-color: #FFFFFF;
        border: 1px solid #E0E0E0;
        border-radius: 10px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        flex: 1;
        min-width: 280px;
        max-width: 32%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .voice-text {
        font-size: 15px;
        line-height: 1.7;
        color: #444;
        margin-bottom: 15px;
        position: relative;
    }

    .voice-text::before {
        content: "“";
        font-size: 40px;
        color: #D3D3D3;
        position: absolute;
        left: -10px;
        top: -10px;
        opacity: 0.5;
        z-index: 1;
    }

    .voice-text::after {
        content: "”";
        font-size: 40px;
        color: #D3D3D3;
        position: absolute;
        right: -10px;
        bottom: -10px;
        opacity: 0.5;
        z-index: 1;
    }

    .voice-author {
        font-size: 14px;
        color: #777;
        text-align: right;
        font-weight: bold;
        margin-top: auto;
    }

    /* FAQセクションのデザイン */
    .faq-section {
        background-color: #FDFDFD;
        border: 1px solid #EAEAEA;
    }

    .faq-section h2 {
        background: linear-gradient(to right, #7ED0FF, #5A9BD6);
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
        margin-bottom: 25px;
    }

    .faq-container {
        margin-top: 20px;
    }

    .faq-item {
        margin-bottom: 15px;
        border: 1px solid #EAEAEA;
        border-radius: 5px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .faq-question {
        background-color: #F0F8FF;
        color: #336699;
        padding: 15px 20px;
        font-size: 17px;
        font-weight: bold;
        cursor: pointer;
        position: relative;
        margin: 0;
    }

    .faq-question::after {
        content: '+';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: #336699;
        transition: transform 0.3s ease;
    }

    .faq-question.active::after {
        content: '-';
        transform: translateY(-50%) rotate(180deg);
    }

    .faq-answer {
        background-color: #FFFFFF;
        padding: 15px 20px;
        font-size: 15px;
        line-height: 1.7;
        color: #555;
    }

    .faq-answer p {
        margin: 0;
    }

    /* フッター */
    #footer{
        text-align: center;
        clear: both;
        overflow:hidden;
    }
    #footer p {
        margin: 0 20px;
        text-align: left;
    }
    address {
        font-style: normal;
        color: #FFFFFF;
        text-align: center;
        display: block;
        background: #336699;
        font-size: 12px;
        margin: 30px auto 0px auto;
        padding: 5px 0px;
        width: 800px;
    }
    #space{
        margin: 0 15px 15px;
        padding:15px 0;
        font-size:10px;
        border-top:1px #ccc solid;
        clear:both;
        text-align: left;
    }
}

/* モバイル向けデザイン (640px以下) */
@media screen and (max-width: 640px){
    /* ヘッダー */
    #header {
        margin:0 auto;
        padding: 0;
    }

    #header img {
        width: 100%;
    }

    #head_img{
        margin-bottom: 10px;
        border-bottom: 4px solid #336699;
        height: auto;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }

    h1{
        font-size:14px; /* モバイルでの文字サイズ */
        font-weight:bold;
        padding: 8px 15px;
        width: 100%; /* モバイルで幅を100%に設定 */
        background: linear-gradient(to right, #336699, #5A9BD6);
        text-align: right;
        color: #FFFFFF;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    h1 a{
        text-decoration: none;
        color: #FFFFFF;
        display: block;
    }

    /* メインコンテンツ */
    #content{
        margin: 0 auto;
        padding: 0 10px;
        text-align: left;
    }

    #content img {
        width: 280px;
    }

    .inner{
        background: #FFF;
        margin: 15px auto 20px;
        border: 1px solid #336699;
        padding: 15px;
        border-radius: 6px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    }

    /* 各見出しのデザイン */
    h2{
        background: linear-gradient(to right, #316497, #5A9BD6);
        font-size: 20px;
        font-weight:bold;
        clear:both;
        color: #FFFFFF;
        padding: 10px 15px;
        margin: -15px -15px 15px -15px;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
    }

    h3{
        font-size: 18px;
        font-weight:bold;
        border-bottom: 1px solid #316AC5; /* モバイルでは少し細く */
        padding: 10px 0;
        margin-top: 25px;
        margin-bottom: 10px;
    }

    h4 {
        font-size: 15px;
        margin-top: 20px;
        margin-bottom: 8px;
        border-left: 3px solid #5A9BD6;
        padding-left: 8px;
    }

    /* 段落のスタイル */
    .inner p{
        background: none;
        margin: 10px;
        font-size: 14px;
        line-height: 1.7;
        text-align:justify;
    }

    /* リストのスタイル */
    .inner ul, .inner ol {
        margin-left: 15px;
        margin-bottom: 10px;
    }
    .inner ul li, .inner ol li {
        margin-bottom: 5px;
        line-height: 1.5;
    }

    /* テーブルのスタイル（料金プラン） */
    .inner table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .inner table th, .inner table td {
        padding: 8px;
    }

    /* 画像の回り込み調整 */
    .img_l{
        background:#fff;
        float: none;
        margin: 15px auto;
        width: 90%;
        display: block;
    }

    .img_r{
        margin: 10px;
        float: none;
        margin: 15px auto;
        width: 90%;
        display: block;
    }

    .link_r {
        display: none;
    }

    /* ボタンのデザイン（元の状態に戻す） */
    .bt_c {
        text-align: center;
        width: auto; /* 幅を自動調整 */
        height: auto; /* 高さを自動調整 */
        margin: 10px auto 20px; /* マージンを調整 */
        padding: 0; /* パディングをリセット */
    }
    /* .bt_c a と .bt_c a img のスタイルは削除し、img/bt.jpgがそのまま表示されるようにする */
    /* 必要であれば、aタグのデフォルトスタイルが適用される */


    /* お客様の声セクションのデザイン (モバイル) */
    .customer-voice-section h2 {
        background: linear-gradient(to right, #6EC1E4, #5A9BD6);
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        margin-bottom: 20px;
    }

    .customer-voice-container {
        flex-direction: column;
        gap: 15px;
    }

    .voice-item {
        min-width: unset;
        max-width: 100%;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    }

    .voice-text {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .voice-text::before,
    .voice-text::after {
        font-size: 30px;
    }

    .voice-author {
        font-size: 13px;
    }

    /* FAQセクションのデザイン (モバイル) */
    .faq-section h2 {
        background: linear-gradient(to right, #7ED0FF, #5A9BD6);
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        margin-bottom: 20px;
    }

    .faq-item {
        margin-bottom: 10px;
        border-radius: 4px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .faq-question {
        padding: 12px 15px;
        font-size: 15px;
    }

    .faq-question::after {
        right: 15px;
        font-size: 18px;
    }

    .faq-answer {
        padding: 12px 15px;
        font-size: 14px;
        line-height: 1.6;
    }

    /* フッター */
    #footer{
        text-align: center;
        clear: both;
        overflow:hidden;
    }

    #footer p {
        margin: 0 20px;
        text-align: left;
        font-size: 12px;
    }

    address {
        font-style: normal;
        color: #FFFFFF;
        text-align: center;
        display: block;
        background: #336699;
        font-size: 12px;
        margin: 20px auto 0px;
        padding: 5px 0px;
    }
}
