@charset "UTF-8";

/* すべてのWebページに適用される */
html{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    box-sizing: border-box;
}
body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center; /* 横方向中央 */
    background-color: white;
}

.wrapper {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 10px;
}


/* ヘッダーの固定とレイアウト調整 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background:white;
    color: black;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
}
/* ヘッダー内の行 */
.header-row {
    display: flex;
    width: 80%;
    justify-content: space-between;
    align-items: center;
}
/* アイコンスタイル */
.icon-form {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px; 
    height: 50px;
    border-radius: 15%; /* 角を丸くする */
    color: #ffffff; /* アイコンとテキストの両方を白に設定 */
    text-decoration: none;
    font-size: 12px; /* 文字が飛び出さないようにフォントサイズを調整 */
    background-color:lightgreen;
    transition: background-color 0.3s ease, color 0.3s ease; /* スムーズな変更 */
    padding: 5px; /* アイコン内に余白を追加 */
    box-sizing: border-box; /* パディングを含めてサイズを計算 */
    overflow: hidden; /* 文字が飛び出さないようにオーバーフローを隠す */
    text-align: center; /* 文字を中央揃えにする */
}

/* 電話番号や借金相談フォームのテキスト部分を白に設定 */
.icon-form span {
    color: #ffffff; /* 赤文字を白に変更 */
}

.icon-form:before {
    content: '\2709'; /* メールアイコン */
    margin-right: 5px;
    font-size: 18px; /* アイコンのフォントサイズを調整 */
    color: #ffffff; /* アイコンも白色 */
}
/* メインコンテンツ */
main {
    border-bottom: 5px dotted;
    padding-top: 120px; /* ← 少し余裕を持たせる */    
    padding: 100px 20px 20px; /* ヘッダーの高さ分の余白を確保 */
}
 /* メインコンテンツがヘッダーに隠れないように */
 .content {
    padding-top: 20px;
}

h2 {
    margin-top: 40px;
    padding: 10px;
    background: #eee;
    border-left: 5px solid #333;
}

.section {
    margin-bottom: 40px;
}

/* アイコンのスタイル */
.icon {
    width: 120px;
    height: 120px;
    border-radius: 20%;
    display: flex;
    justify-content: flex-end; /* フレックスボックスでコンテンツを下部に配置 */
    align-items: center;
    margin: 15px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

/* アイコン画像 */
.icon img {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
}

/* アイコンの文字を下部に配置 */
.icon span {
    position: absolute;
    bottom: 10px;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* 背景を追加して文字を読みやすく */
    color: white;
    padding: 3px 5px;
    border-radius: 5px;
    text-align: center;
}

/* アイコンホバー時のエフェクト */
.icon:hover {
    transform: scale(1.1);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

/* 各アイコンの色 */
.icon1 { background-color: #2E8B57; } /* 借金相談 (緑) */
.icon2 { background-color: #4682B4; } /* 民事事件 (青) */
.icon3 { background-color: #32CD32; } /* 家事事件 (明るい緑) */
.icon4 { background-color: #1E90FF; } /* 少年・刑事事件 (明るい青) */

/* スタイリッシュな線 */
.styled-line {
    border: 0;
    border-top: 3px dashed #4682B4;
    margin: 20px 0;
}

/* アイコン化された問い合わせリンク */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}
.contact-icon:hover {
    transform: scale(1.1);
    background-color: #2E8B57;
}

.form-icon {
    margin-right: 8px;
    font-size: 18px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.price-table th, .price-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}
.price-table th {
    background-color: #f4f4f4;
}

.contact-icon {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 10px;
    background-color: #007bff; /* ボタンの背景色 */
    color: #fff; /* 文字色 */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    border-radius: 5px;
    text-align: center;
    width: auto; /* 必要に応じて調整 */
    max-width: 250px; /* ボタンの最大幅 */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.container {
    display: flex; /* Use Flexbox */
    flex-wrap: wrap; /* Allow icons to wrap to the next line if necessary */
    justify-content: space-around; /* Distribute space evenly around each icon */
    max-width: 800px;
    margin: 20px auto;
    padding: 10px;
}
.highlight {
    font-size: 1.2em;
    font-weight: bold;
    color: #d9534f;
    background-color: #fff3cd;
    padding: 5px;
    border-radius: 5px;
}

.price-list{
    width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
}

.price-list th, td {
    border: 2px solid green;
}

.price-list th, td {
            padding: 10px;
            text-align: center;
}
.sc_heading {
    font-size: 22px;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-bottom: 3px solid #000;
    background-color: #fff;
    color: #000;
    margin-bottom: 20px;
}

/* 弁護士情報 */
.lawyer-profile {
    display: flex;
    align-items: center;
    gap: 20px; /* 画像とテキストの間隔 */
    margin-bottom: 20px;
}

.lawyer-photo img {
    width: 70%; /* 画像サイズ */
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.lawyer-text {
    flex-grow: 1;
}
.wp-block-list li {
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

/* フッター */
.footer {
    font-size: 18px;
    color: #191970;
    text-align: center;
    padding: 10px 0;
}

.footer p {
    font-size: 12px;
    color: #191970;
}
 /* レスポンシブ対応 */
 @media (max-width: 600px) {
    header {
        padding: 15px 0;
    }
    .content {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .icon-tel, .icon-form {
        display: none; /* スマートフォンでは非表示に設定 */
    }
}
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }
}
/* レスポンシブ対応 */
@media screen and (max-width: 600px) {
    .wrapper {
        width: 95%;
        font-size: 16px;
    }

    input, select {
        width: 100%;
        font-size: 16px;
    }

    form, input, textarea, select {
        width: 100%;
    }

    label {
        display: block;
        width: 100%;
        text-align: left;
        margin-bottom: 5px;
    }

    .button {
        margin-left: 0;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .lawyer-item {
        flex-direction: column;
        align-items: center;
    }
    
    .lawyer-text {
        text-align: center;
    }
}

form {
    /* フォームをページの中央に置く */
    margin: 0 auto;
    /* フォームの範囲がわかるようにする */
    padding: 1em;
    border: 1px solid #CCC;
    border-radius: 1em;
    width:550px;
  }
  
  ul {
    list-style: none;
    padding: 0;
    margin-left:30px;
    margin-right:0;
    margin-bottom:20px;
    margin-top:5px;
  }
  
  form li + li {
    margin-top: 1em;
  }
   
  label {
    /* すべてのラベルを同じサイズにして、きちんと揃える */
    display: inline-block;
    width: 260px;
    text-align: right;
  }
  
  
  input, textarea {
    /* すべてのテキストフィールドのフォント設定を一致させる
       デフォルトで、textarea は等幅フォントが設定されている */
    font: 1em sans-serif;
  
    /* すべてのテキストフィールドを同じサイズにする */
    width: 260px;
    box-sizing: border-box;
  
    /* テキストフィールドのボーダーの外見を同一にする */
    border: 1px solid #999;
  }
  
  input:focus,
  textarea:focus {
    /* アクティブな要素を少し強調する */
    border-color: #000;
  }
  
  textarea {
    /* 複数行のテキストフィールドをラベルにきちんと揃える */
    vertical-align: top;
  
    /* テキスト入力に十分な領域を与える */
    height: 5em;
  }
  
  .button {
    /* ボタンを他のテキストフィールドと同じ場所に置く */
    margin-left: 265px; /* label 要素と同じサイズ */
  }
  
  button {
    /* このマージンは、ラベルとテキストフィールドの間のスペースと
       おおよそ同じスペースを表す */
    margin-left: .5em;
  }
  
  /* 更新フォームサイズ調整 */
  form.editform {
    width:400px;
  }
  
  form.editform label {
    width: 90px;
  }
  
  form.editform .button {
    margin-left: 95px;
  }