/*
 * top-page.css
 * トップページ専用のスタイルシートです。
 * common.css と一緒に読み込んでください。
*/
ul{
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}
body{
    background: white;
}
/* --------------------------------
 * Header for Top Page
 * -------------------------------- */
.top-header {
    padding: 20px 0 0;
    text-align: center;
    background-image: url(../images/background_ppr.jpg);
}

.top-header .logo img {
    max-width: 300px;
    height: auto;
}

.top-nuv-menu {
    display: flex;
    justify-content: center;
}

.nav{
    position: relative;
    z-index: 10;
    transform: translateY(22px);
    margin-top: 12px;
}

.kaneki_moji::before{
    display: inline-block;
    content: "";
    height: 1.8em;
    width: 1.8em;
    background-image: url(../images/kaneki_moji.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
    mix-blend-mode: darken;
}
/* --------------------------------
 * Hero Section
 * -------------------------------- */
 .hero-wrapper {
    position: relative;
    overflow: hidden; /* 画像がはみ出さないように */
    background-image: url(../images/background_ppr.jpg);
}
.hero-wrapper .hero {
    width: 100%;
    max-width: 1200px;
    line-height: 0;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
    position: relative;
}
.hero-wrapper .hero img {
    width: 100%;
    height: 27vw;
    min-height: 510px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
    
.hero-wrapper .hero::before {
    content: '';
    display: block;
    height: 50px;
}
.hero-wrapper .hero::after {
    content: '';
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    bottom: 0;
    background-image: url(../images/kaneki_nami.svg);
    background-size: 600px;
    background-repeat: no-repeat;
    background-position: right bottom;
    opacity: 0.5;
    z-index: auto;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/menu-sya.png), url(../images/hero1.jpg);
    background-position: top, center;
    background-size: 100%, 150%;
    background-repeat: repeat-x, no-repeat;
    opacity: 0.6;
    z-index: 0;
}

/* --------------------------------
 * Bond Section
 * -------------------------------- */
.bond {
    /*background-image: url(../images/shimz_hito.jpg);*/
    background-color: #2e3369;
    background-blend-mode: luminosity;
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    /* overflow: hidden; */
    height: 14vw;
    min-height: 265px;
}
.bond .bond-text {
    height: 100%;
    align-content: end;
    background-image: url(../images/shimz_moji.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position-y: 20%;
}

.bond .bond-text h2 {
    font-family: var(--mincho-font--);
    font-size: 42px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 30px;
    color: #fff;
    padding-left: 40px;
}


/* 青いオーバーレイ */
.bond::before {
    content: '';
    background-image: url(../images/kaneki_nami_line.svg), url(../images/shimz_hito.jpg);
    background-blend-mode: screen;
    background-size: 600px, contain;
    background-repeat: no-repeat;
    background-position: right top, right top;
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    transform: translateX(-50%);
    background-color: #22275a;
    z-index: 1;
}

.bond-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    align-items: flex-end;
    height: 100%;
    mix-blend-mode: plus-lighter;
}
.bond-container::after{
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-color: rgb(33 33 33);
    z-index: 1;
    clip-path: polygon(0 0, 100% 100%, 100% 0);
}
.bond-description {
    flex: 1;
    max-width: 1200px;
    padding: 20px 0 80px 40px ;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: url(../images/kizuna.png);
    background-repeat: no-repeat;
}
.bond-description p{
    width: 50%;
}

.bond-text p {
    font-size: 16px;
    line-height: 1.8;
}

.bond-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: absolute;
    right: 0;
    z-index: 10;
    width: 50%;
    bottom: 0;
}
.bond-image img {
    width: 100%;
    max-width: 510px;
    height: auto;
    position: relative;
    right: 0;
}

.bond-image::after{
    content: '';
    width: 120%;
    height: 100%;
    position: absolute;
    bottom: 0;
    right: 0;
    clip-path: polygon(100% 60%, 0% 100%, 100% 100%);
    background-color: #b8b9b5a3;
}

/* --------------------------------
 * Message Section
 * -------------------------------- */
.message {
    background-image: url(../images/background_ppr.jpg);
    max-width: 1200px;
    margin: 0 auto;
}

.message-container {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 40px 0 0;
    background-image: url(../images/shi.png);
    background-repeat: no-repeat;
    background-position: right bottom;
}

.message-image {
    flex: 1;
    mix-blend-mode: darken;
}

.message-image img {
    width: 100%;
    height: auto;
    display: block;
}

.message-text {
    flex: 1;
    font-size: 16px;
    line-height: 2;
    text-align: justify;
}

/* --------------------------------
 * Emblem Section
 * -------------------------------- */
.emblem {
    padding: 40px 0;
    text-align: center;
    background-image: url(../images/background_ppr.jpg);
    background-repeat: repeat;
    background-color: #e2e5da;
    background-blend-mode: multiply;
    max-width: 1200px;
    margin: 0 auto;
}
.emblem .container > p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    line-height: 2;
    text-align: center;
}
.emblem-image {
    min-height: 100px; /* 画像がない場合の最低限の高さ */
}
.emblem-image img {
    max-width: 150px;
}

/* --------------------------------
 * Branches Section
 * -------------------------------- */
.branches {
    padding: 80px 0;
}
.branches h2 {
    text-align: center;
    font-family: var(--mincho-font--);
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 60px;
}

.branches-layout {
    display: grid;
    grid-template-columns: 1fr 40% 1fr;
    align-items: center;
    gap: 40px;
}

.branch-map {
    min-height: 200px; 
    flex: 0.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.branch-map img {
    width: 100%;
}
.japan-map-svg {
    width: 100%;
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.branch-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    line-height: 2.2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    min-width: 80px;
}

.branch-list li {
    position: relative;
    text-align: left;
}

.branch-list li::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #939393;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-list li:hover::after {
    width: 300%;
}

.branch-list a {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    letter-spacing: 0.1em;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-list a:hover {
    color: #939393;
    transform: translateX(8px);
}

/* シェブロン付きの円 */
.branch-list li::before {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #939393;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.branch-list li:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(300%) scale(1.1);
}

/* シェブロン（矢印）を追加 */
.branch-list-left li::before {
    background-image: url(../images/shv.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.branch-list-right li::before {
    left: -40px;
    right: auto;
    background-image: url(../images/shv.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}
.branches .branch-list-right li:hover::before {
    transform: translateY(-50%) translateX(720%) scale(1.1);
}


.branch-list-left {
    justify-self: end; /* Gridアイテムを右端に寄せる */
    text-align: left;
}

.branch-list-right {
    justify-self: start; /* Gridアイテムを左端に寄せる */
    text-align: left;
}


/* --------------------------------
 * Responsive Design
 * -------------------------------- */
@media (max-width: 768px) {
  .top-header {
    padding: 15px 20px 0;
  }
  .top-header .logo img {
    max-width: 240px;
  }
  .nav {
    transform: translateY(15px);
    margin-top: 8px;
  }
  .nav-menu {
    gap: 20px;
  }
  .nav-link {
    font-size: 14px;
    padding: 8px 0;
  }
  .top-page .hero-wrapper .hero img {
    height: 40vw;
    min-height: 250px;
    max-height: 350px;
  }
  .hero-wrapper .hero::after {
    background-size: 500px;
  }
  .bond {
    height: auto;
    min-height: 200px;
    padding: 10px 0;
  }
  .bond::before {
    background-size: 500px, contain;
    background-position: right top, 200% top;
  }
  .bond-container {
    align-items: flex-end;
    height: 180px;
  }
  .bond-container::after {
    display: none;
  }
  .bond .bond-text {
    background-size: 80%;
    background-position: center 20%;
  }
  .bond .bond-text h2 {
    font-size: 40px;
    padding-left: 20px;
    margin-bottom: 20px;
  }
  .bond-description {
    width: 100%;
    padding: 20px 40vw 40px 20px;
  }
  .bond-description p {
    width: 100%;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 15px;
  }
  .bond-image {
    width: 40vw;
    max-width: 510px;
    margin: 20px auto 0;
  }
  .bond-image img {
    max-width: 300px;
    display: block;
  }
  .message-container {
    flex-direction: row;
    gap: 10px;
    padding: 20px 20px 0 0;
  }
  .message-text {
    font-size: 14px;
    line-height: 1.8;
  }
  .emblem {
    padding: 30px 20px;
  }
  .emblem .container > p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
  }
  .branches {
    padding: 40px 20px;
  }
  .branches h2 {
    font-size: 28px;
    margin-bottom: 40px;
  }
  /*
  .branches-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }*/
  .branch-list {
    font-size: 16px;
    line-height: 2;
    align-items: center;
    text-align: center;
  }
  .branch-list-left,
  .branch-list-right {
    justify-self: center;
  }
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 0 20px;
  }
  .footer-info h3 {
    font-size: 18px;
  }
  .footer-details p {
    font-size: 13px;
  }
}

@media (max-width: 426px) {
  .top-header .logo img {
    max-width: 200px;
  }
  .nav-menu {
    gap: 15px;
  }
  .nav-link {
    font-size: 12px;
  }
  .top-page .hero-wrapper .hero img {
    height: 45vw;
    min-height: 220px;
    max-height: 300px;
  }
  .hero-wrapper .hero::after {
    background-size: 320px;
  }
  .bond::before {
        background-size: 320px, contain;
        background-image: url(../images/kaneki_nami_line.svg);
  }
  .bond .bond-text h2 {
    font-size: 37px;
    padding-left: 15px;
  }
  .bond-description {
    padding: 15px;
  }
  .bond-description p {
    font-size: 13px;
  }
      .bond-image {
        width: 40vw;
        max-width: 510px;
        margin: 20px auto 0;
        opacity: 0.4;
        z-index: -1;
        mix-blend-mode: exclusion;
    }
  .message-container {
    padding: 15px;
    flex-direction: column-reverse;
;
    .message-image {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
      opacity: 0.9;

    }
  }
  .message-text {
    font-size: 13px;
  }
  .emblem {
    padding: 20px 15px;
  }
  .emblem .container > p {
    font-size: 13px;
  }
  .branches {
    padding: 30px 15px;
  }
  .branches h2 {
    font-size: 24px;
  }
  .branches-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "map map"
      "left right";
    gap: 20px;
  }
  .branch-map {
    grid-area: map;
  }
  .branch-list-left {
    grid-area: left;
    justify-self: center;
  }
  .branch-list-right {
    grid-area: right;
    justify-self: center;
  }
  .branch-list {
    font-size: 14px;
  }
}
