@charset "utf-8";
html {
    font-size: 100%;
}

.sp,.sp-hamburger-button,.sp-hamburger-menu {
    display: none;
}

body {
    color: #FFFFFF;
    width: 100%;
    background-color: #241091;
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-weight: 400;
    font-style: normal;
}

@media screen and (min-width: 481px) {
    .sp {
        display: none;
    }
}

/*    header    */

#header {
    margin: 3rem auto;
    display: flex;
    max-width: 78rem;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size:2rem;
    color:#80CBC4;
    letter-spacing: 15%;
    line-height: 2rem;
    vertical-align: middle;
}

#tomatsuri {
    display: inline-block;
    font-size:0.875rem;
    color:#FF6F4B;
    letter-spacing: 32%;
    line-height: 1.25rem;
    vertical-align: middle;
}

#title-line {
    display: inline-block;
    height: 1px;
    width: 14.625rem;
    background-color: #FF6F4B;
    vertical-align: middle;
}

.pc-nav ul{
    display: flex;
}

.pc-nav ul li {
    padding:0 3rem;
    border-left: 0.5px solid #FFFFFF;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 10%;
}

.pc-nav ul li:last-child {
    border-right: 0.5px solid #FFFFFF;
}


/*    mainvisual    */
.mainvisual.pc {
    position: relative;
    width: 100%;
    height: 798px;
    background-color: #241091;
    overflow: hidden;
}

#main-top-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 70%;
    z-index: 1;
    object-fit: cover;
}

#main-under-img {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 40%;
    height: 20%;
    z-index: 2;
    object-fit: cover;
}

.mainvisual.pc h2 {
    position: absolute;
    top: 6.25rem;
    left: 12.5rem;
    font-size: 2rem;
    font-weight: bold;
    writing-mode: vertical-rl;
    letter-spacing: 15%;
    line-height: 2.5;
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

.underline {
    background: linear-gradient(to left, /* ① グラデーションを左からスタート（今回は縦書きなので、左右が逆転する。） */
        rgba(255, 111, 75, 0.5) 0%,  /* ② グラデの開始色はオレンジ、右端から０距離のところから塗り始める。 */
        rgba(255, 111, 75, 0.5) 10px, /* ③ 今回はグラデにせず、ずっと同じ色で塗りつぶす。太さは10px。*/
        transparent 10px  /* ④「以降の文字のアンダーラインは透明」という設定。HTMLを工夫してるから書かなくていいかと思ったけど、これがないとうまくラインを引けなかった。*/
    );
}


/*メインビジュアル以降の部分*/
.main-home {
    position: relative;
    width: 60rem;
    height: 35.75rem;
    margin: 6.5rem auto 9rem;

    display: flex;
    flex-direction: column;
}

#main-border-yoko {
    position: absolute;
    top: 0;
    left: -6rem;
    background-color: #FF6F4B;
    width: 66rem;
    height: 1px;
}

#main-border-tate {
    position: absolute;
    top: -6rem;
    left: 0;
    background-color: #FF6F4B;
    width: 1px;
    height: 42rem;
}



.main-home h3 {
    padding: 5rem 0 3rem;
    margin: 0 auto;
    color: #80CBC4;
    font-size: 1.5rem;
    line-height: 150%;
    font-weight: bold;
    margin-left: 2.75rem;
}

.main-contents-wrapper {
    display: flex;
    justify-content: center;
    gap: 2.75rem;
}

.main-text-1,.main-text-pc  {
    margin-bottom: 2rem;
    line-height: 2.25;
}

#kenichi {
    width: 17.5rem;
    height: 22.875rem;
    position: fill;
}

/*フッター*/

#footer {
    display: flex;
    flex-direction: column;
    height: 10rem;
    width: 100%;
    align-items: center;
}

.footer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5.25rem;
    padding-top: 2rem;
    line-height: 1.5;
}

#footer-tomatsuri {
    font-size: 2rem;
    letter-spacing: 15%;
    vertical-align: middle;
}

small {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 0.625rem;
}



 /* ----------------------------
            about
 ----------------------------- */

#about,#service {
    background-color: #F0F4F8;
    width: 100%;
    color: #000;
}

.underpage-header {
/*ヘッダー画像の設定*/
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)) ,
        url('../image/both/underpage-top.png');
    background-size: cover;
    background-position: center;
    height: 13rem;
    width: 100%;

/*ヘッダー文字の設定*/
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 20%;
}

/*オレンジタイトル*/
.about-h3,.service-h3 {
    color: #FF6F4B;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 16%;
    line-height: 2.5;
    font-family: 'Inter', sans-serif;
    text-align: center;
    display: inline-block;
    width: 100%;
}

/*オレンジタイトル下の下線を、疑似要素で作成*/
.about-h3::after {
    content: ""; /*これで疑似要素が爆誕*/
    display: block; /*改行*/

    width: 4.75rem;
    height: 1px;
    background-color:#FF6F4B;
    margin: 0 auto 3rem;
}

.about-h3:first-child {
    padding-top: 1.5rem;
}

/*各余白とボーダーの設定*/

.about-all {
    max-width: 65rem;
    margin: 0 auto;
}

.about-column {
    padding: 4.75rem 8rem;
    box-sizing: border-box;
    border-bottom: 1px solid #80CBC4;
    border-left: 1px solid #80CBC4;
}

.about-column:last-child {
    padding-bottom: 0;
    border-bottom: 0px solid #80CBC4;
}


.about-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 49rem;
    margin: 0 auto;
}

.last-margin {
    width: 100%;
    height: 12rem;
}


/*ごあいさつコラム*/
#goaisatsu-text-wrapper {
    font-size: 1rem;
    line-height:2.25rem;
    width: 100%; 
}

.goaisatsu-text {
    margin-bottom: 2rem;
}

.goaisatsu-text:last-child {
    content: "";
    display: block;
    margin-bottom: 0;
}

.navy-bold {
    color:#241091;
    font-weight: bold;
}

.orange-line {
    border-bottom: 0.4rem solid rgba(255, 111, 75, 0.3);
}



/*基本情報・代表取締役の共通設定*/
.dl-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.dl-item:last-child {
    margin-bottom: 0;
}

dt {
   color: #241091;
   font-weight: bold; 
   width: 8.75rem;
}

dd {
    width: 36rem;
}

.torishimari-dd {
    line-height: 2.25rem;
}


 /* ----------------------------
            service
 ----------------------------- */


/*margin・padding・ボーダーの設定*/

.service-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 58.375rem;
    margin: 0 auto;
}

.service-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.service-top {
    display: flex;
    justify-content: center;
}

.service-top .service-item {
    width: 29rem;
    padding-top: 6.25rem;
    padding-bottom: 2.25rem;
}

.service-bottom {
    display: flex;
    justify-content: center;
    border-top: 1px solid #80CBC4;
}

.service-bottom .service-item {
    width: 20rem;
    height: 30rem;
    padding-top: 4.875rem;
    padding: 4.875rem 2.25rem 0;
    border-right: 1px solid #80CBC4;
}

.service-bottom .service-item:last-child {
    border-right: 0px solid #80CBC4;
}


#service-01 {
    padding-right : 4.375rem;
    border-right: 1px solid #80CBC4;
}

#service-02 {
    padding-left : 4.375rem;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}



/*タイトルのスタイリング*/

.service-number {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: transparent; 
    -webkit-text-stroke: 1px #241091;
    margin-bottom: 1rem;
    text-align: center;
}

.service-item h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 10%;
    margin: 0 auto 2rem;
    text-align: center;
    color: #FF6F4B;
}

.service-bottom-h3-wrapper {
    display: flex;
    height: 6.625rem;
    justify-content: center;
    align-items: center;
}

.service-bottom .service-number {
    margin-bottom: 2.5rem;
}

.service-bottom h3 {
    line-height: 2;
}

.service-top p {
    margin-top: 2rem;
    width: 90%;
    line-height: 2;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

.service-bottom p {
    width: 90%;
    line-height: 2;
}



/*注意書きの設定*/

/* 全体の枠 */
.caution {
    margin: 7.625rem auto 9rem;
    padding: 2rem;
    border: 1px solid #80CBC4;
}

/* ※と文章を横に並べる設定 */
.caution-item {
    display: flex;       /* 横並びにする */
    gap: 1rem;           /* ※と文章の間の隙間 */
    margin-bottom: 2rem; /* セットごとの下の余白 */
}

.caution-item:last-child {
    margin-bottom: 0;    /* 最後の項目は余白なし */
}

/* ※印の設定 */
.kome {
    flex-shrink: 0;      /* ※印が潰れないように固定 */
    color: #333;
    line-height: 2;
}

/* 文章の設定 */
.caution-text {
    margin: 0;           /* pタグのデフォルト余白を消す */
    color: #333;
    line-height: 2;
    font-family: "Zen Kaku Gothic New", sans-serif;
}

/* オレンジのライン設定 */
.green-bold {
    /* inlineに固定することでflexの影響を受けなくする */
    display: inline; 
    font-weight: bold;
    color:#57b1a8;
}




 /* ----------------------------
            mobile
 ----------------------------- */

@media screen and (max-width: 1000px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    background-color: #241091;
}



* {
    box-sizing: border-box;
}

/*header*/

#header {
    background-color: #241091;
    margin: 0;
    padding: 3rem 0;
}

.site-title {
    font-size: 1.8rem;
    margin-left: 1.25rem;
    box-sizing: border-box;
}

#tomatsuri {
    font-size: 0.75rem;
}

#title-line {
    width: 13.5rem;
}

.pc-nav {
    display: none;
}

/*mainvisual*/

.mainvisual.sp{
    position: relative;
    width: 100%;
    height: 47rem; 
    background-color: #241091;
    object-fit: fill;
    overflow: hidden;
}

.s-main-top {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    width: 25.25rem;
    height: 22.75rem;
}

.s-main-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.s-main-bottom {
    position: absolute;
    top: 24.25rem;
    left: 0;
    z-index: 2;
    width: 17.75rem;
    height: 16.125rem;
}

.s-main-bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*footer*/
#footer-tomatsuri {
    font-size: 1.8rem;
    letter-spacing: 15%;
    vertical-align: left;
}




.mainvisual.sp h2 {
    position: absolute;
    top: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    font-weight: bold;
    writing-mode: vertical-rl;
    letter-spacing: 15%;
    line-height: 2;
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

#s-main-border-tate {
    position: absolute;
    bottom: 0;
    left: 1.25rem;
    background-color: #FF6F4B;
    width: 1px;
    height: 13.375rem;
}





/*main-home*/

*, *::before, *::after {
    box-sizing: border-box;
}

.main-home {
    position: static;
    width: calc(100vw - 2.5rem);
    box-sizing:border-box;
    height: auto;
    border-left: 1px solid #FF6F4B;
    margin: 0 1.25rem;
}

.main-home-wrapper {
    padding-left: 1.75rem;
}


.main-home h3 {
    margin-left: 0;
}

.main-contents-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.main-text {
    width: calc(100vw - 4.25rem);
}

.main-text-sp {
    margin-bottom: 2rem;
    line-height: 2.25;

    font-size: 14px !important; /* remをやめてpxで固定 */
    width: 100% !important;
    word-break: break-all;      /* どこでもいいから改行させる */
}

.torishimari {
    text-align: center;
}

#kenichi {
    display: inline-block;
    margin: 0 auto;
}


#main-border-tate {
    display: none;
}

#main-border-yoko {
    position: static;
    width: auto;
    height: 1px;

    display: block;
    height: 1px;
    background-color: #FF6F4B;

    margin-left: -1.25rem;
    margin-right: -1.25rem;
}





/*footer*/


#footer {
    width: 100%;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #241091;
}

.footer-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

small {
    margin-top: 2.5rem;
}





 /* ----------------------------
            about
 ----------------------------- */

 .about-all {
    width: 100%;
 }

 .about-column {
    margin: 0 1.25rem;
    padding: 0 1rem;
    box-sizing: border-box;
    border-left: 1px solid #80CBC4;
    width: calc(100vw - 1.25rem);  
}

.about-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 3.3rem;
}

.about-h3 {
    width: calc(100vw - 2.85rem);
}

/*ごあいさつ*/

#goaisatsu-text-wrapper{
    margin: 0 0 3.3rem;
    padding: 0 0.8rem;
    box-sizing: border-box;
    width: calc(100vw - 2.85rem);
}


/*基本情報*/

.about-text-wrapper {
    padding: 0 0.8rem;
    width: 100%; 
    box-sizing: border-box;
}

.about-dt{
    width: 7rem;
}

.about-dd {
    width: auto;
}



/*代表取締役について*/

#torishimari.about-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#torishimari .about-wrapper{
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

#torishimari .dl-item{
    padding: 0 0;
    width: 90%; /*どんな画面幅でも、90%を占めるように。*/
    max-width: 23rem; /*ただし画面幅が広い場合はもっと左右の余白を広げたいので、最大でも23remまでにしかならないように。*/
}

.torishimari-dt {
    width: 100%;
    margin: 0 auto;
    line-height: 2.25rem;
    text-align: center;
}

.torishimari-dd {
    width: auto;
    margin: 0 auto 2rem;
    word-break: break-all;
    overflow-wrap: break-word;
}


#torishimari .dl-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.last-margin {
    height: 3rem;
}


 /* ----------------------------
            service
 ----------------------------- */

 .service-top {
    display: block;
    margin: 0 auto;
    width: 100%;
 }

 .service-top .service-item {
    width: auto;
    padding: 5rem 0.5rem 3.25rem;
    box-sizing: border-box;
 }

 .service-bottom {
    display: block;
    width: 100%;
 }

 .service-image {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
 }

 #service-01 {
    padding-right: 0.5rem;
    margin: 0 1.25rem;
    box-sizing: border-box;
    border-right: 0px solid #80CBC4;

}

#service-02 {
    margin: 0 1.25rem;
    padding-left: 0.5rem;
    box-sizing: border-box;
}




.service-bottom {
    border-top: 0px solid #80CBC4;
    width: 100%;
    box-sizing: border-box;
}

.service-bottom .service-item {
    width: auto;
    height: auto;
    padding: 4rem 3.75rem 3.25rem;
    margin: 0 1.25rem;
    box-sizing: border-box;
}


#service-03 {
    border-right: 0px solid #80CBC4;
    box-sizing: border-box;
}

#service-04 {
    border-right: 0px solid #80CBC4;
}

.service-bottom .service-number {
    margin-bottom: 1rem;
}

.service-bottom h3 {
    margin-bottom: 2rem;
}

.service-bottom-h3-wrapper {
    height: auto;
}

.service-item {
    border-left: 1px solid #80CBC4;
    border-bottom: 1px solid #80CBC4;
}



.caution {
    margin: 7.625rem 3rem 9rem;
    padding: 1rem;
}



 /* ----------------------------
            hamburger
 ----------------------------- */

/* ボタンの基本スタイル */
.sp-hamburger-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 24px;
    z-index: 100;
    cursor: pointer;
}

.sp-hamburger-button span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #999; /* 線の色 */
    transition: all 0.3s;
}

.sp-hamburger-button span:nth-child(1) { top: 0; }
.sp-hamburger-button span:nth-child(2) { top: 11px; }
.sp-hamburger-button span:nth-child(3) { top: 22px; }

/* ボタンが active になった時の「×」アニメーション */
.sp-hamburger-button.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.sp-hamburger-button.active span:nth-child(2) {
    opacity: 0;
}
.sp-hamburger-button.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* メニューの基本スタイル（初期状態は非表示） */
.sp-hamburger-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: #e4e4e4; /* 背景色 */
    z-index: 90;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5rem;

    /* スライドのための設定 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateX(100%);
}

.ham-toma-logo {
    color:#57b1a8;
    font-size: 1.25rem;
    letter-spacing: 15%;
    text-align: left;
    margin-top: 4rem;
}

.ham-tomatsuri {
    display: inline-block;
    font-size: 0.875rem;
    color:#57b1a8 !important;
    letter-spacing: 32%;
    line-height: 1.25rem;
    vertical-align: middle;
}

.ham-tomaline {
    background-color:#57b1a8 !important;
}


/* メニューが active になった時に表示 */
.sp-hamburger-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* リストのスタイル */
.sp-menu-wrapper {
    list-style: none;
    padding: 0;
    margin-top: 1.25rem;
    text-align: left;
}
.sp-menu-wrapper li {
    margin: 1.5rem 0;
    position: relative;
    padding-left: 2rem;
}

.sp-menu-wrapper li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-color: #999; /* ドットの色 */
    border-radius: 10%;
}

.sp-menu-wrapper a {
    text-decoration: none;
    font-size: 1.5rem;
    color: #241091;
}

.sp-menu-wrapper a:active {
    color: #FF6F4B;
}



 /* ----------------------------
            tablet
 ----------------------------- */

 /*基本スマホ版と同様で、レイアウトが崩れるところだけ以下で設定。*/

@media screen and (min-width: 481px) and (max-width: 1024px) {


     /* ----------------------------
                index
    ----------------------------- */

/*メインビジュアルはPC版を使う*/

.mainvisual.pc {
    display: block;
}

.mainvisual.sp {
    display: none;
}



.main-home-wrapper {
    text-align: center;
}

#footer {
    display: flex;
    align-items: flex-start !important;
    padding-left: 1.25rem;
}
}

     /* ----------------------------
                about
    ----------------------------- */
@media screen and (min-width: 600px) and (max-width: 1024px) {

#goaisatsu-text-wrapper {
    padding: 0 4rem;
}
}

.about-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dl-item {
    display: flex;
    width: 100%;
    max-width: 500px;
    text-align: left;
}

.about-dd {
    width: auto;
    margin: 0; 
}


     /* ----------------------------
                service
    ----------------------------- */


 .service-image {
    max-width: 500px;
    height: auto;
    box-sizing: border-box;
 }

 .service-item p{
    text-align: center;
 }

}