:root{
    --main-color: #E67450;
    --sub-color: #FFDA1E;
    --background-color: #e6be5012;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    max-width: 700px;
    margin: 0 auto;
    font-size: 14px;
    color: #222222;
    background:var(--background-color);
    line-height: 1;
    font-family: "ryo-gothic-plusn", sans-serif;
}

a{
    text-decoration: none;
    color: var(--main-color);
}

header{
    background: linear-gradient(to bottom right, var(--main-color), var(--sub-color));
    padding: 20px 20px 100px 20px;
    position: relative;
}

.hamburger-menu {
    position: absolute;
    top: 15px; /* 上からの位置 */
    right: 20px; /* 右からの位置 */
    cursor: pointer;
}

.hamburger-menu .bar {
    display: block;
    width: 25px; /* バーの幅 */
    height: 3px; /* バーの高さ */
    background-color: #ffffff; /* バーの色 */
    margin: 5px 0; /* バーの間隔 */
}


.header-logo{
    margin-bottom: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.header-logo img{
    height: 30px;
}

/* タブコンテンツ */
.tab-content {
    position: relative;
    padding: 0px;
    margin-bottom: 0px; /* フッターの高さ分マージンを取る */
    overflow: hidden; /* はみ出した要素を隠す */
}

.tab-pane {
    display: none;
    transition: transform 0.3s ease;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.tab-pane.active {
    display: block;
    transform: translateX(0);
    position: relative;
}

/* 左からスライドイン */
.tab-pane.slide-from-left {
    transform: translateX(-100%);
    display: block;
}

/* 右からスライドイン */
.tab-pane.slide-from-right {
    transform: translateX(100%);
    display: block;
}

/* 左へスライドアウト */
.tab-pane.slide-to-left {
    transform: translateX(-100%);
    display: block;
}

/* 右へスライドアウト */
.tab-pane.slide-to-right {
    transform: translateX(100%);
    display: block;
}

.profile-img-container {
    display: grid;
    width: 100%;
    max-width: 700px;
    margin: auto;
    grid-gap: 8px;
}

/* デフォルトレイアウト - JSでクラスを追加して制御 */
.profile-img-container {
    grid-template-columns: repeat(2, 1fr);
}

.profile-img-item {
    position: relative;
    width: 100%;
}

/* 各画像のスタイル */
.profile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
}


.link-label{
    font-size: 10px;
    color: #666666;
    margin-bottm: 2px;
    display: block;
}








/* 画像1枚の場合のレイアウト */
.layout-single .profile-img-item {
    grid-column: 1 / -1;
}

/* 画像2枚の場合のレイアウト */
.layout-two {
    grid-template-columns: 1fr;
    gap: 8px;
}

.layout-two .profile-img-item {
    grid-column: 1 / -1;
}

.layout-two .profile-img-item .profile-img {
    aspect-ratio: 1 / 0.5;
}

/* 画像3枚の場合のレイアウト */
.layout-three .profile-img-item[data-index="0"] {
    grid-column: 1 / -1;
}

.layout-three .profile-img-item[data-index="0"] .profile-img {
    aspect-ratio: 1 / 0.65;
}

.layout-three .profile-img-item[data-index="1"],
.layout-three .profile-img-item[data-index="2"] {
    grid-column: span 1;
}

/* 画像4枚の場合のレイアウト */
.layout-four {
    grid-template-columns: repeat(2, 1fr);
}

/* 画像5枚の場合のレイアウト */
.layout-five {
    grid-template-columns: repeat(4, 1fr);
}

.layout-five .profile-img-item[data-index="0"] {
    grid-column: 1 / -1;
}

.layout-five .profile-img-item[data-index="1"],
.layout-five .profile-img-item[data-index="2"],
.layout-five .profile-img-item[data-index="3"],
.layout-five .profile-img-item[data-index="4"] {
    grid-column: span 1;
}

/* レスポンシブ対応 */
@media screen and (max-width: 480px) {
    .profile-img-container {
        grid-gap: 6px;
    }
}

/* 既存の左列・右列のスタイルはここでコメントアウト */
/* 
.left-column {
    width: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.left-column img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    cursor: pointer;
}

.right-column {
    width: 50%;
    aspect-ratio: 2 / 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.right-column img {
    width: 100%;
    height: calc((100% - 5px) / 3);
    object-fit: cover;
    cursor: pointer;
}

.left-column-p4 {
    width: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.left-column-p4 img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    cursor: pointer;
}

.right-column-p4 {
    width: 50%;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.right-column-p4 img {
    width: 100%;
    height: 50%;
    object-fit: cover;
    cursor: pointer;
}
*/

/* モーダルのデフォルトは非表示 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* 画像拡大モーダル専用スタイル */
#imageModal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

#imageModal .modal-content {
    max-width: 95%;
    max-height: calc(95vh - 60px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

#imageModal .modal-content:hover {
    transform: scale(1.02);
}

#imageModal .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

#imageModal .close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    #imageModal .modal-content {
        max-width: 98%;
        max-height: calc(98vh - 60px);
    }
    
    #imageModal .close {
        top: 15px;
        right: 15px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
}

.menu-modal{
    max-width: 700px;
    display: flex;
    flex-direction: column;
    margin: 10% auto;
    padding: 30px;
}

#qrcode {
    text-align: center;
}

#qrcode p {
    display: block;
    background: #fff;
    text-align: center;
    padding: 25px 0 0 0;
    font-weight: bold;
}

#qrcode-display {
    background: #fff;
    padding: 20px;
    display: inline-block;
    margin: 0 auto;
}

#qrcode-display img {
    display: block;
    margin: 0 auto;
}

.urlcopy{
    width: 100%;
    background: var(--main-color);
    color: #fff;
    padding: 20px;
    border: none;
    border-radius: 5px;
    margin-top: 40px;
    cursor: pointer;
    transition: all 0.3s ease; /* スムーズな色変化のためのトランジション */
    user-select: none; /* テキスト選択を防ぐ */
    -webkit-tap-highlight-color: transparent; /* モバイルでのタップハイライトを無効化 */
}

/* ホバー時（マウスが乗った時） */
.urlcopy:hover {
    background: #c85a3a; /* メインカラーより少し濃い色 */
    transform: translateY(-1px); /* 少し浮き上がる効果 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* アクティブ時（押している間） */
.urlcopy:active {
    background: #00A678; /* 緑色に変更 */
    transform: translateY(1px); /* 押し込まれる効果 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.1s ease; /* 押した瞬間は素早く変化 */
}

/* フォーカス時（キーボードでフォーカスした時やタップした時） */
.urlcopy:focus {
    outline: none;
    background: #00A678; /* 緑色に変更 */
    box-shadow: 0 0 0 3px rgba(0, 166, 120, 0.3); /* フォーカスリング */
}

/* タッチデバイス対応（iOSやAndroid） */
@media (hover: none) and (pointer: coarse) {
    .urlcopy:hover {
        background: var(--main-color); /* タッチデバイスではホバー効果を無効化 */
        transform: none;
        box-shadow: none;
    }
    
    .urlcopy:active {
        background: #00A678; /* タッチ時は緑色 */
        transform: scale(0.98); /* 少し縮む効果 */
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.parson-basic-block{
    margin-top: 0px;
}

.parson-name{
    font-size: 30px;
    font-weight: bold;
}

.parson-company{
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 5px;
}


.parson-gray-block{
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap; /* 子要素を折り返し可能に */
    gap: 5px;        /* 必要に応じて */
}


.parson-gray-flex{
    display: flex;
    align-items: center;
}

.parson-gray-flex:first-child {
    flex-basis: 100%;  /* 1つ目は全幅に */
}

.parson-label{
    background: #ffffff;
    border: 2px solid #e9e9e9;
    border-radius: 100vh;
    padding: 4px 10px;
    font-size: 12px;
    display: inline-block;
    white-space: nowrap;
    margin-right: 5px;
}

.parson-text{
    margin-right: 15px;
}


.container{
    padding: 20px 20px 50px 20px;
    position: relative;
    /*margin-bottom: 50px;*/
}


.content-box{
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.1);
}

.content-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-top: 35px solid var(--main-color);
    border-left: 35px solid transparent;
    border-radius: 0 20px 0 0;
}

.content-box-first{
    margin-top: -100px;
}

.content-title{
    display: flex;
    margin-bottom: 15px;
}

.content-title img{
    width: 16px;
    margin-right: 10px;
}

.content-title h3{
    font-size: 16px;
    font-weight: bold;
}


.content-box p{
    line-height: 1.5;
}

  

.timeline-item {
    padding: 3em 0em 2em 2em;
    position: relative;
    color: #222222;
    border-left: 2px solid rgba(0, 0, 0, 0.3);
  }
  .timeline-item h3{
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
  }
  .timeline-item p {

  }
  .timeline-item::before {
    content: attr(date-is);
    position: absolute;
    left: 2em;
    font-weight: bold;
    top: 1em;
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 0.785rem;
  }
  .timeline-item::after {
    width: 10px;
    height: 10px;
    display: block;
    top: 12px;
    position: absolute;
    left: -8px;
    border-radius: 10px;
    content: '';
    border: 2px solid rgba(0, 0, 0, 0.3);
    background: #fff;
  }
  .timeline-item:last-child {
    border-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.3) 60%,
      rgba(0, 0, 0, 0)
    ) 1 100%;
  }
  




/* 画面下部に固定するフッターメニュー */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--main-color); /* 背景色 */
    height: 60px;
    max-width: 700px;
    margin: 0 auto;
    z-index: 999;
  }
  
  /* ulを横並びにし、幅いっぱい使う */
  .nav-list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none; /* li のデフォルトマーカーを消す */
    height: 100%;     /* 親要素（footer）の高さを継承 */
  }
  
  /* li は幅を均等に割り当てる */
  .nav-list li {
    flex: 1;          /* 各 li が均等に幅をとる */
    border-right: 1px solid #fff; /* メニュー間の白い縦線 */
    display: flex;    /* a を縦横中央に配置するため */
  }
  
  /* 最後のメニューだけ縦線を消す */
  .nav-list li:last-child {
    border-right: none;
  }
  
  /* メニューリンクのスタイル */
  .nav-list li a {
    flex: 1;
    display: flex;
    flex-direction: column; /* アイコン+文字を縦並び */
    align-items: center;
    justify-content: center;
    text-decoration: none;  /* 下線を消す */
    color: #fff;            /* 文字色（白） */
  }
  
  /* アイコン部分 */
  .nav-icon {
    font-size: 1.2rem; /* アイコンの大きさ */
    margin-bottom: 8px;
  }
  
  /* 文字部分 */
  .nav-label {
    font-size: 11px;
  }
  
  /* タブメニューの現在のページ表示 */
  .nav-list li a.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-weight: bold;
  }
  
  /* ホバー・フォーカス時に色を少し変える例（お好みで） */
  .nav-list li a:hover,
  .nav-list li a:focus {
    background-color: rgba(255, 255, 255, 0.2);
  }





  /* テーブル全体のスタイル */
.table-container {
    width: 100%;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* ヘッダー（左側の項目） */
.custom-table th {
    font-weight: bold;
    padding: 12px;
    text-align: left;
    width: 30%;
}

/* データセル（右側の値） */
.custom-table td {
    padding: 12px;
    word-break: break-all;
    line-height: 1.5;
}

/* 横ボーダーのみ設定（最上段と最下段なし） */
.custom-table tr:not(:first-child) {
    border-top: 1px solid #ddd;
}

.sns-icon{
    width: 30px !important;
}

/* レスポンシブ対応（スマホ用） */
@media screen and (max-width: 600px) {
    .custom-table th, .custom-table td {
        font-size: 12px;
    }
}





.solution-flex{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.solution-label{
    background: var(--main-color);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100vh;
}

.solution-price{
    border-top: 2px solid #dddddd;
    margin-top: 15px;
    padding-top: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.solution-price span{
    font-size: 24px;
}



.contact-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.email {
    font-size: 18px;
    flex-grow: 1;
    text-decoration: none;
}

.telnumber {
    font-size: 18px;
    flex-grow: 1;
    text-decoration: none;
    color: #222222;
}

.copybutton {
    background: #fff;
    color: var(--main-color);
    border: 3px solid var(--main-color);
    padding: 14px;
    min-width: 240px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
}

.copybutton:hover {
    background: var(--main-color);
    color: #fff;
}

#copy-message {
    display: none;
    color: var(--main-color);
    font-size: 14px;
    margin-top: 5px;
    text-align: center;
}



.line-button{
    background: #4FA22C;
    color: #fff;
    padding: 14px;
    font-weight: bold;
    min-width: 240px;
    text-align: center;
}


.telbutton {
    background: #fff;
    color: var(--main-color);
    border: 3px solid var(--main-color);
    padding: 14px;
    min-width: 240px;
    border-radius: 2px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background 0.3s;
}



.ad-modal-flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .ad-modal-tag span {
    border: 1px solid #bcbcbc;
    border-radius: 100vh;
    font-size: 11px;
    padding: 0px 5px;
    margin-right: 5px;
    margin-top: 5px;
    white-space: nowrap;
  }
  



.poweredby{
    margin-bottom: 80px; /* 60px + 20px */
    padding: 0 16px;
}

.powered-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 1px 0px rgba(255, 255, 255, 0.4) inset,
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.powered-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15) 0%,
        rgba(168, 85, 247, 0.15) 25%,
        rgba(236, 72, 153, 0.15) 50%,
        rgba(251, 146, 60, 0.15) 75%,
        rgba(34, 197, 94, 0.15) 100%);
    opacity: 0.8;
}

.powered-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

.powered-content {
    position: relative;
    z-index: 2;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.powered-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.powered-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.powered-icon {
    width: 14px;
    height: 14px;
    color: #8b5cf6;
}

.powered-description {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.powered-cta {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 12px 20px;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(30, 41, 59, 0.24),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.powered-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.powered-cta:hover::before {
    left: 100%;
}

.powered-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(30, 41, 59, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
}

.powered-logo {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-right: 8px;
    letter-spacing: 0.5px;
}

.powered-arrow-container {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.powered-arrow {
    width: 14px;
    height: 14px;
    color: #ffffff;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.powered-cta:hover .powered-arrow {
    transform: translateX(2px);
}

.powered-cta:hover .powered-arrow-container {
    background: rgba(255, 255, 255, 0.25);
}

/* レスポンシブ対応 */
@media screen and (max-width: 580px) {
    .powered-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 18px 20px;
    }
    
    .powered-info {
        align-items: center;
        text-align: center;
    }
    
    .powered-description {
        font-size: 13px;
    }
    
    .powered-cta {
        align-self: stretch;
        justify-content: center;
        padding: 14px 24px;
    }
}

@media screen and (max-width: 400px) {
    .poweredby {
        padding: 0 12px;
    }
    
    .powered-content {
        padding: 16px 16px;
    }
    
    .powered-badge {
        font-size: 10px;
    }
    
    .powered-description {
        font-size: 12px;
    }
}



.parson-name-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bookmark-icon {
    color: var(--main-color);
    font-size: 24px;
    cursor: pointer;
}



.request-wrap{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    padding-top: 10px;
}

.request-profile-image{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.request-profile-info h3{
    font-size: 16px;
    margin-bottom: 5px;
}

.request-profile-info p{
    font-size: 14px;
    margin: 0;
}

.request-company{
    font-size: 16px;
    font-weight: bold;
}

.request-person{
    font-size: 14px;
}

.request-body{
    margin-top: 20px;
}

.request-body h4{
    font-size: 16px;
    margin-bottom: 10px;
}

.request-body textarea{
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}


.request-btn{
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #222222;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}

/* 非活性状態のボタン */
.request-btn[disabled] {
    background-color: #949494;
    cursor: not-allowed;
    opacity: 0.7;
}

@media screen and (max-width: 600px) {

    .request-profile-image{
        width: 50px;
        height: 50px;
    }

    .request-profile-info h3{
        font-size: 13px;
        margin-bottom: 0px;
    }
    
    .request-profile-info p{
        font-size: 12px;
    }

    .request-btn{
        font-size: 14px;
        padding: 20px;
    }
    
}












