@font-face {
    font-family: "sawarabi";
    src: url("../font/SawarabiGothic/SawarabiGothic-Regular.ttf");
}

/* bodyの余白なくす */
body {
    margin: 0;
    background-color: white;
}

/* main設定 */
main {
    display: flex;
    flex-flow: column;
    align-items: center;
    font-family: "sawarabi", sans-serif;
}

/* 文字折り返し */
main>span main>p {
    word-break: break-all;
}

/* コンテンツ全体のページ幅 */
.contents {
    width: 100%;
    background-color: white;
    margin-bottom: 30px;
}

/* ▼画面サイズ（横幅）が700px以上の場合に適用 */
@media screen and (min-width: 700px) {
    .contents {
        width: 700px;
    }
}

/*タイトル上部を除く部分のデザイン*/
.down {
    padding: 30px;
}

/* 見出しデザイン */
h1 {
    font-weight: lighter;
    margin-top: 1rem;
    margin-bottom: 0.1rem;
    padding: 0;
}

.subtitle {
    font-size: 0.8em;
    margin: 0;
    padding: 0;
}

h2 {
    line-height: 1.4;
    margin: 0;
    margin-top: 30px;
    padding: 0.3em 0.8em;
    border-left: 5px solid var(--color);
    color: #000000;
}

/* title周りの設定 */
.top {
    width: 100%;
    margin-top: 260px;
    text-align: center;
    display: flex;
    justify-content: center;
    /*左右中央揃え*/
    align-items: center;
    /*上下中央揃え*/
    background-color: white;
}

/*メインアイコン　★pdf固有*/
.main-icon {
    width: 100px;
}

.title {
    width: 100%;
    color: var(--color);
}

.title_text {
    font-size: 2rem;
    font-weight: normal;
}

/* DAY◯の部分 */
.fukidashi {
    margin: 20px 0;
}

.fukidashi dt {
    position: relative;
    color: #fff;
    font-weight: bold;
    float: left;
    clear: both;
    padding: 10px 15px;
    background-color: var(--color);
    border-radius: 10px 0px 0px 10px;
}

.fukidashi dd {
    padding: 10px 30px;
    display: inline-block;
    background-color: #f8f8f8;
    margin: 0;
}

.fukidashi dt::after {
    left: 100%;
    top: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: rgba(136, 183, 213, 0);
    border-width: 10px;
    margin-top: -10px;
    border-left-color: var(--color);
}

/* 旅程 */
/* 旅程　Day〇 */
.date {
    font-size: 1.2rem;
}

/* 旅程　詳細部分*/
.head {
    display: flex;
}

.time {
    font-size: 1.2rem;
    font-weight: bold;
    flex: 0 0 4rem;
    text-align: right;
}

.icon {
    flex: 0 0 30px;
    display: flex;
    justify-content: center;
    /*左右中央揃え*/
    align-items: center;
    /*上下中央揃え*/
}

.location {
    flex: 0 0 auto;
    font-size: 1.2rem;
    font-weight: bold;
}

.tail {
    display: flex;
}

.medium {
    padding-bottom: 20px;
    flex: 0 0 4rem;
    text-align: right;
    position: relative;
    font-weight: bold;
}

.line {
    flex: 0 0 30px;
}

.medium::after {
    position: absolute;
    /*--positionを追加--*/
    top: 0;
    left: 100%;
    margin: 0 14px;
    content: "";
    width: 2px;
    /*--縦線の太さ(幅)--*/
    height: 100%;
    background-color: var(--color);
    /*--縦線の色--*/
}

.detail {
    flex: 0 0 auto;
    max-width: calc(100% - 30px - 4rem - 20px);
    /*--幅注意--*/
    padding: 10px;
    font-size: 1rem;
}

/* 吹き出し本体 */
.balloon {
    position: relative;
    padding: 5px;
    background-color: var(--color);
    border: 3px solid var(--color);
    color: white;
    border-radius: 10px;
    display: inline-block;
    /* 横幅を自動で変更 */
}

/* beforeで三角を表現 */
.balloon::before {
    content: "";
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    left: -10px;
    top: 3px;
    border-right: 10px solid var(--color);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

#output {
    margin: 10px;
}