/* ------------------------------------------------------------------------

sugimura web craft standard CSS design version 1.0
初版作成 2024-10-21

------------------------------------------------------------------------ */

/* カスタムプロパティ */
:root {
    --button-main-color: #00a2af;
    /* #00a2af green この部分はお好きな色に適宜変更してください  */
    --button-sub-color: #fff;
    /* #fff white */
    --green-color: #338833;
    --pink-color: #eb46a6;
    --gray-color: #aaaaaa;
    --red-color: #ff0000;
    --blue-color: #0000ff;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

/* -----------------------------------------
     汎用
----------------------------------------- */
.w-10 { width: 10%; }
.w-20 { width: 20%; }
.w-30 { width: 30%; }
.w-40 { width: 40%; }
.w-50 { width: 50%; }
.w-60 { width: 60%; }
.w-70 { width: 70%; }
.w-80 { width: 80%; }
.w-90 { width: 90%; }
.w-100 { width: 100%; }
.my-5 { margin-top: 5px; margin-bottom: 5px;}
.my-10 { margin-top: 10px; margin-bottom: 10px;}
.my-15 { margin-top: 15px; margin-bottom: 15px;}
.my-20 { margin-top: 20px; margin-bottom: 20px;}
.mx-5 { margin-left: 5px; margin-right: 5px;}
.mx-10 { margin-left: 10px; margin-right: 5px;}
.mx-15 { margin-left: 15x; margin-right: 5px;}
.mx-20 { margin-left: 20px; margin-right: 5px;}
.ml-1rem { margin-left: 1rem;}
.ml-2rem { margin-left: 2rem;}
.mt-1rem { margin-top: 1rem;}
.mt-2rem { margin-top: 2rem;}
.my-1rem { margin-top: 1rem; margin-bottom: 1rem; }
.pt-1rem { padding-top: 1rem;}
.pt-2rem { padding-top: 2rem;}
.pb-1rem { padding-bottom: 1rem; }
.pb-2rem { padding-bottom: 2rem; }

/* -----------------------------------------
     ボタン
----------------------------------------- */
.btn {
    display: inline-block;
    min-width: 200px;
    padding: 10px 20px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    border: 2px solid transparent;
    /* あらかじめ透過ボーダーを引いて、反転ボタンのボーダー分の幅を考慮しておく  */
}

/* ホバー時の挙動（少し透明） */
.btn:hover {
    opacity: 0.7;
}

/* スモールボタン */
.btn--small {
    padding: 5px 7px;
    min-width: 100px;
    font-size: 0.8em;
}

/* ラージボタン btnクラスと併用してください */
.btn--large {
    width: 100%;
    padding: 15px 30px;
    font-size: 1.2em;
    letter-spacing: 0.08em;
    max-width: 300px;
}

/* メインボタンカラー */
.btn--default_color {
    background-color: var(--button-main-color);
}

/* メインボタンカラー disabled */
.btn--default_color:disabled {
    background-color: var(--gray-color);
}

/* メインボタン（反転）カラー */
.btn--reverse_color {
    background-color: var(--button-sub-color);
    border: 2px solid var(--button-main-color);
    color: var(--button-main-color);
}

/* メインボタン（反転）ホバー */
.btn--reverse_color:hover {
    background-color: var(--button-main-color);
    color: var(--button-sub-color);
}

/* ボタン無効 */
.btn--disable_color {
    background-color: var(--gray-color);
}

/* その他の色 */
.btn--blue_color {
    background-color: var(--blue-color);
}

.btn--red_color {
    background-color: var(--red-color);
}

.btn--pink_color {
    background-color: var(--pink-color);
}

.btn--yellow_color {
    background-color: var(--yellow-color);
}

/* 少し角をまるめる */
.btn--border-radius {
    border-radius: 10px;
}

/* かなり角を丸める */
.btn--border-radius2 {
    border-radius: 2rem;
}

/* 矢印付き smallサイズは付けないでください */
.btnRightWrap,
.btnLeftWrap {
    position: relative;
    padding: 10px 40px;
}

.btnRightWrap::after {
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    margin: auto;
    content: "";
    display: block;
    width: 0.8em;
    height: 0.8em;
    border-top: 2px solid;
    border-right: 2px solid;
    color: #fff;
    transform: rotate(45deg);
}

.btnLeftWrap::before {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    margin: auto;
    content: "";
    display: block;
    width: 0.8em;
    height: 0.8em;
    border-top: 2px solid;
    border-left: 2px solid;
    color: #fff;
    transform: rotate(-45deg);
}

/* -----------------------------------------
    トグル（スイッチ）
----------------------------------------- */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
  }
  
  /* input要素のチェックボックス（デフォルト）を消す */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* スイッチ描画 */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
  }
  
  /* 〇を描画 */
  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }
  
  /* チェック時に色を緑に変更 */
  input:checked + .slider {
    background-color: #4CAF50;
  }
  
  /* チェック時に〇を右に移動 */
  input:checked + .slider:before {
    transform: translateX(26px);
  }

/* -----------------------------------------
     フォーム部品
----------------------------------------- */

/* --- 入力ボックス --- */
.inputBox,
.default {
    display: block;
}

.inputBox input[type="text"],
.inputBox input[type="search"],
.inputBox input[type="email"],
.inputBox input[type="url"],
.inputBox input[type="tel"],
.inputBox input[type="number"],
.inputBox input[type="password"],
.inputBox textarea {
    -webkit-appearance: none;
    appearance: none;
    /* ブラウザ標準スタイルシートを無効にする*/
    width: 100%;
    padding: 10px 20px 8px 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 16px;
    /*16px 以上を推奨*/
}

.inputBox textarea {
    max-width: none;
    font-family: inherit;
}

/* --- ラジオボタン・チェックボックス --- */
input[type="radio"],
input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

/* フォーカス時*/
input[type="radio"]:focus+span,
input[type="checkbox"]:focus+span {
    outline: 1px solid #ccc;
}

/* クリック範囲*/
input[type="radio"]+span,
input[type="checkbox"]+span {
    display: inline-block;
    position: relative;
    margin: 0 2em 0 0;
    padding: 0.3em 0.3em 0.3em 2em;
    line-height: 1;
    vertical-align: middle;
    cursor: pointer;
}

/* ラジオボタンスタイル*/
input[type="radio"]+span:before {
    content: "";
    position: absolute;
    top: 0.25em;
    left: 0;
    width: 1.375em;
    height: 1.375em;
    border: 1px solid #999;
    border-radius: 50%;
    line-height: 1;
    background: #fff;
}

/* ラジオボタンチェック印（未選択）*/
input[type="radio"]+span:after {
    content: "";
    display: none;
}

/* ラジオボタンチェック印（選択）*/
input[type="radio"]:checked+span:after {
    display: block;
    position: absolute;
    top: 0.45em;
    left: 0.2em;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #3D98B4;
    line-height: 1;
}

/* チェックボックススタイル*/
input[type="checkbox"]+span:before {
    position: absolute;
    top: 0.3em;
    left: 0;
    content: "";
    width: 1.25em;
    height: 1.25em;
    border: 1px solid #999;
    background: #fff;
    line-height: 1;
    vertical-align: middle;
}

/* チェックボックス未チェック時*/
input[type="checkbox"]+span:after {
    content: "";
    display: none;
}

/* チェックボックスチェック時*/
input[type="checkbox"]:checked+span:after {
    display: block;
    position: absolute;
    top: 0.3em;
    left: 0.4em;
    width: 0.5em;
    height: 1em;
    content: "";
    border-bottom: 3px solid #3D98B4;
    border-right: 3px solid #3D98B4;
    transform: rotate(45deg);
}

/* --- ファイルアップロードボタン --- */
input[type="file"] {
    /* 非表示にする*/
    opacity: 0;
    position: absolute;
}

.fileUpload {
    /* ボタンを自作*/
    display: inline-block;
    padding: 10px 20px;
    background: var(--button-main-color);
    color: var(--button-sub-color);
    cursor: pointer;
}

.fileUpload:focus {
    /* フォーカス時のスタイル（※tabindex=0 でフォーカス可能になる）*/
    outline: 2px solid #7ec3d8;
}

/* -----------------------------------------
     テーブル
----------------------------------------- */

/* 
        テーブルラッパー
        テーブルに横スクロールバーを表示する（表示しきれないとき）

        使い方
        table要素をtableWrapperクラスで囲みます。
        table要素はthなどの列幅を固定長(px)で適切に確保してください。
*/

.tableWrapper {
    width: 100%;
    padding-bottom: 10px;
    overflow-x: auto;
    /* 中身がはみ出したら横スクロールバーを出す*/
}

/*  tableクラス table要素に必ず付与してください。
    widthは同クラス名で適宜上書きしてください。コンテナのmax-widthが1000pxならそれ未満にしないと常にスクロールバーは表示されます。
*/

.table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 900px;
    background-color: inherit;
}

.table th {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
    font-weight: bold;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #ccc;
    font-size: 14px;
}

/*
    列カラー情報

    table--color_xxxx でth全体を囲んでください。
*/

.table--column_red th {
    background-color: var(--red-color);
    color: #fff;
}

.table--column_gray th {
    background-color: var(--gray-color);
    color: black;
}

/* テキストの位置調整 */

.table--text_center {
    text-align: center;
}

.table--text_right {
    text-align: right;
}

/* -----------------------------------------
    見出し
----------------------------------------- */

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
h5 { font-size: 13px; }

.heading--red,
.heading--skyblue,
.heading--green,
.heading--orange {
    padding: 0.5em;
    color: #494949;
    background: #fffaf4;
}

.heading--red {
    border-left: solid 5px red;
    border-bottom: solid 2px red;
}

.heading--skyblue {
    border-left: solid 5px skyblue;
    border-bottom: solid 2px skyblue;
}

.heading--green {
    border-left: solid 5px green;
    border-bottom: solid 2px green;
}

.heading--orange {
    border-left: solid 5px #ffaf58;
    border-bottom: solid 2px #ffaf58;
}

.heading-boxshadow {
    padding: 0.75em 1em;
    background-color: #5b6654;
    color: #fff;
    -webkit-box-shadow: 5px 5px 0 #852222;
    box-shadow: 5px 5px 0 #852222;    
}

/* 下線つき */
.heading-border {
    color: #494949;
    position: relative;
    padding: 1rem 0 0.5rem 0;
    border-bottom: 6px solid #852222;
    margin-bottom: 1rem;
}

.heading-border::before {
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 20%;
    height: 6px;
    content: '';
    background: #998989;
}

/* -----------------------------------------
    文章
----------------------------------------- */

.normal_writing p,
.normal_writing span {
    font-size: 1rem;
    line-height: 1.7;
    padding-bottom: 0.75rem;
    text-align: justify;
    text-indent: 1rem;
}

.writing p,
.writing span {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
}

/* -----------------------------------------
   フィギュア
----------------------------------------- */

figure {
    margin: 0 0 1rem;
    height: auto;
}

.figure {
    display: inline-block;
}

.figure-img {
    margin-bottom: 0.5rem;
    line-height: 1;
}

.figure-caption {
    font-size: 0.75rem;
    color: #6c757d;
}
