/*
Theme Name: OLTANA-005 Child
Version: 1.0.0
Template: oltana-005
Author: CROOVER inc.
Author URI: https://croover.co.jp
*/

/* GTranslate フローティング強制非表示 */
.gt_switcher_wrapper,
.gtranslate_wrapper {
  display: none !important;
}

/* ヘッダーメニュー内のものだけ表示 */
.ol-header__nav-item--gtranslate .gt_switcher_wrapper,
.ol-header__nav-item--gtranslate .gtranslate_wrapper {
  display: block !important;
  position: static !important;
}

/* お問い合わせフォーム */
.contact-form-inner {
    max-width: 100%;
    margin: 0 auto;
}
.form-item:first-child {
    margin-top: 0;
}
.form-item {
    width: 100%;
    margin: 30px auto 0;
}
.form-item label{
    display: block;
    font-size: 16px;
    color: #333333;
}
.form-item > input{
    width: 100%;
    height: 50px;
    border-radius: 20px;
    border: 1px solid #cccccc;
}
.form-item input::placeholder,
.form-item textarea::placeholder {
    padding-left:15px;
}
.form-flex {
    display: flex;
    flex-direction: column;
}
.form-flex input {
    height: 50px;
    border-radius: 20px;
    border: 1px solid #cccccc;
}
.form-flex input.your-add-1 {
    width: 40%;
}
.form-flex input.your-add-2 {
    width: 100%;
}
.form-hissu {
    color: #ffffff;
    font-size: 13px;
    margin-left: 15px;
    padding: 3px 5px;
    background-color: red;
}
.form-free {
    color: #ffffff;
    font-size: 13px;
    margin-left: 15px;
    padding: 3px 5px;
    background-color: #8DC39F;
}
.form-item textarea{
    height: auto;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #cccccc;
}
.last-check {
    display: flex;
    align-items: center;
    vertical-align: middle;
}
.last-check > input {
    width: auto;
    height: auto;
    margin: 0 10px 0 0;
}
.last-check a {
    text-decoration: none;
}
.form-item.send-btn{
    max-width: 200px;
    margin: 40px auto 0;
}
.form-item.send-btn input{
    background-color: #8DC39F;
    color: #ffffff;
    border-radius: 0px;
    font-weight: 700;
    cursor: pointer;
}
.form-item.send-btn input:hover {
    background-color: #FFFFFF;
    color: #8DC39F;
    border: 1px solid #8DC39F;
    transition: all .3s;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
    background-color: #E1E1E1;
}
textarea#your-content {
    padding-top: 10px;
}

/* wpcf7のspanラッパー経由でもmargin-topを統一 */
.form-item .wpcf7-form-control-wrap {
    display: block;
    margin-top: 10px;
}

/* margin-topはラッパー側で制御するためinput・textareaはリセット */
.form-item > input,
.form-item .wpcf7-form-control-wrap input,
.form-item .wpcf7-form-control-wrap textarea {
    margin-top: 0;
}

/* 入学の流れのフロー図調整 */
.vk_flow.page-flow-custom .vk_flow_frame_text_title {
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}



/* 学校生活のpの調整 */
/* バルーンブロック内のpマージンをリセット */
p.balloon-p-reset {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

@media (min-width: 1729px) {
  p.balloon-p-reset {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
  }
}


/* バルーンブロック内の画像を右に配置 */
/* バルーン内コンテンツをflexで横並び */
.vk_balloon_content:has(.balloon-image-right) {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* テキスト部分を伸ばす */
.vk_balloon_content:has(.balloon-image-right) p {
  flex: 1;
}

/* 画像を右に固定幅で配置 */
.balloon-image-right {
  flex-shrink: 0;
  width: 160px !important;
  margin: 0 !important;
}

.balloon-image-right img {
  width: 100% !important;
  height: auto !important;
}

/* SP：縦並びに切り替え */
@media screen and (max-width: 768px) {
  .vk_balloon_content:has(.balloon-image-right) {
    flex-direction: column;
  }

  .balloon-image-right {
    width: 100% !important;
  }
}

/* バルーンを右端まで広げる */
.vk_balloon_content_outer {
  flex: 1;
}
.vk_balloon_content {
  width: 100%;
}

/* バルーンブロック内の画像を右に配置----ここまで */

/* インデント---- */
p.article-indent {
  padding-left: 2em;
}

/* ぶら下げインデント---- */
p.article-main {
  padding-left: 1.8em;
  text-indent: -2em;
}

p.article-sub {
  padding-left: 3em;
  text-indent: -2em;
}
p.article-sub2 {
  padding-left: 3em;
  text-indent: -1em;
}


/* pタグのマージンを上書き：.small-margin クラス */
.single p.small-margin,
.page:not(.home) p.small-margin {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* お問い合わせフォーム */
@media screen and (max-width:768px) {
    .contact-form-inner {
        padding: 30px 15px;
        border: none;
    }
    .form-item {
        width: 95%;
        margin: 20px auto 0;
    }
    .form-item > input{
        height: 35px;
        border-radius: 15px;
    }
    .form-item textarea{
        border-radius: 8px;
    }
    .form-item input::placeholder {
        padding-left:5px;
    }
    .form-flex input {
        height: 35px;
        border-radius: 15px;
    }
    .form-flex input.your-add-1 {
        width: 70%;
    }
    .form-hissu {
        margin-left: 5px;
    }
    .form-free {
        margin-left: 5px;
    }
    .last-check > input {
        margin: 0 5px 0 0;
    }
    .form-item.send-btn{
        width: 80%;
        margin: 30px auto 0;
    }

    /* モバイルでのラッパーmargin-top */
    .form-item .wpcf7-form-control-wrap {
        margin-top: 5px;
    }
}

/* 文科省認定申請中 */
#olFirstview {
    position: relative;
}

.mext-label {
    position: absolute;
    top: 80px;      /* ファーストビュー内の上からの位置 */
    right: 60px;
    z-index: 999;

    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.08em;

    text-shadow:
        0 0 10px rgba(0,0,0,0.5),
        0 0 20px rgba(0,0,0,0.3);
}

/* スマホ */
@media screen and (max-width: 768px) {
    .mext-label {
        top: 50px;
        right: 20px;
        font-size: 18px;
    }
}
/* カリキュラムフローぶら下がりインデント */
.page-id-207 .vk_flow_frame_text_content p {
    padding-left: 1em;
    text-indent: -1em;
    margin-bottom: 0.8em;
    margin-top: 0;        /* 20px → 0 に変更（最初のpに余白が入るのを防ぐ） */
    line-height: 1.8;     /* px指定 → 比率に変更（フォントサイズに追従させる） */
}

/* 最初のpだけ上マージンなし */
.page-id-207 .vk_flow_frame_text_content p:first-child {
    margin-top: 0;
}